Rewrite and name change.
[minipack.git] / patches / jpeg / 01-autoconfiscate.patch
blob72c84837b04f48796bbc35b44477b877833e858f
1 diff --git a/ChangeLog b/ChangeLog
2 new file mode 100755
3 index 0000000..effc85a
4 --- /dev/null
5 +++ b/ChangeLog
6 @@ -0,0 +1,29 @@
7 +2006-02-25 Paul van den Berg <paulberg@wanadoo.nl>
9 + * created branch jpeg6b_vollbeding
11 + * added jpegclub.org/jpegexiforient.c and a modified
12 + version of jpegclub.org/exifautotran.txt as exifautotran.sh
14 + * applied changes to jpeg6b_original
16 + * removed changed testimages
18 + * replaced jaricom.c, jcarith.c, and jdarith.c with dummies
19 + from sylvana.net/jpeg-ari/jpeg-ari-28mar98.tar.gz
21 + * removed dos-isms, Makefile and jconfig.h
23 + * Got latest source from jpegclub.org/libjpeg-6c.tar.gz
26 +2006-02-15 Frank Warmerdam <warmerdam@pobox.com>
28 + * Introduced ChangeLog file.
30 + * modified nominal version to be 6.1.0 instead of 6b.
32 + * Applied all Bob Friesenhahn's autoconf/automake/libtool changes.
34 + * Committed jpeb6b from the ijg download site as the baseline. Tagged
35 + it as jpeg6b_original.
36 diff --git a/INSTALL b/INSTALL
37 new file mode 100755
38 index 0000000..54caf7c
39 --- /dev/null
40 +++ b/INSTALL
41 @@ -0,0 +1,229 @@
42 +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
43 +Foundation, Inc.
45 + This file is free documentation; the Free Software Foundation gives
46 +unlimited permission to copy, distribute and modify it.
48 +Basic Installation
49 +==================
51 + These are generic installation instructions.
53 + The `configure' shell script attempts to guess correct values for
54 +various system-dependent variables used during compilation. It uses
55 +those values to create a `Makefile' in each directory of the package.
56 +It may also create one or more `.h' files containing system-dependent
57 +definitions. Finally, it creates a shell script `config.status' that
58 +you can run in the future to recreate the current configuration, and a
59 +file `config.log' containing compiler output (useful mainly for
60 +debugging `configure').
62 + It can also use an optional file (typically called `config.cache'
63 +and enabled with `--cache-file=config.cache' or simply `-C') that saves
64 +the results of its tests to speed up reconfiguring. (Caching is
65 +disabled by default to prevent problems with accidental use of stale
66 +cache files.)
68 + If you need to do unusual things to compile the package, please try
69 +to figure out how `configure' could check whether to do them, and mail
70 +diffs or instructions to the address given in the `README' so they can
71 +be considered for the next release. If you are using the cache, and at
72 +some point `config.cache' contains results you don't want to keep, you
73 +may remove or edit it.
75 + The file `configure.ac' (or `configure.in') is used to create
76 +`configure' by a program called `autoconf'. You only need
77 +`configure.ac' if you want to change it or regenerate `configure' using
78 +a newer version of `autoconf'.
80 +The simplest way to compile this package is:
82 + 1. `cd' to the directory containing the package's source code and type
83 + `./configure' to configure the package for your system. If you're
84 + using `csh' on an old version of System V, you might need to type
85 + `sh ./configure' instead to prevent `csh' from trying to execute
86 + `configure' itself.
88 + Running `configure' takes awhile. While running, it prints some
89 + messages telling which features it is checking for.
91 + 2. Type `make' to compile the package.
93 + 3. Optionally, type `make check' to run any self-tests that come with
94 + the package.
96 + 4. Type `make install' to install the programs and any data files and
97 + documentation.
99 + 5. You can remove the program binaries and object files from the
100 + source code directory by typing `make clean'. To also remove the
101 + files that `configure' created (so you can compile the package for
102 + a different kind of computer), type `make distclean'. There is
103 + also a `make maintainer-clean' target, but that is intended mainly
104 + for the package's developers. If you use it, you may have to get
105 + all sorts of other programs in order to regenerate files that came
106 + with the distribution.
108 +Compilers and Options
109 +=====================
111 + Some systems require unusual options for compilation or linking that
112 +the `configure' script does not know about. Run `./configure --help'
113 +for details on some of the pertinent environment variables.
115 + You can give `configure' initial values for configuration parameters
116 +by setting variables in the command line or in the environment. Here
117 +is an example:
119 + ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
121 + *Note Defining Variables::, for more details.
123 +Compiling For Multiple Architectures
124 +====================================
126 + You can compile the package for more than one kind of computer at the
127 +same time, by placing the object files for each architecture in their
128 +own directory. To do this, you must use a version of `make' that
129 +supports the `VPATH' variable, such as GNU `make'. `cd' to the
130 +directory where you want the object files and executables to go and run
131 +the `configure' script. `configure' automatically checks for the
132 +source code in the directory that `configure' is in and in `..'.
134 + If you have to use a `make' that does not support the `VPATH'
135 +variable, you have to compile the package for one architecture at a
136 +time in the source code directory. After you have installed the
137 +package for one architecture, use `make distclean' before reconfiguring
138 +for another architecture.
140 +Installation Names
141 +==================
143 + By default, `make install' will install the package's files in
144 +`/usr/local/bin', `/usr/local/man', etc. You can specify an
145 +installation prefix other than `/usr/local' by giving `configure' the
146 +option `--prefix=PATH'.
148 + You can specify separate installation prefixes for
149 +architecture-specific files and architecture-independent files. If you
150 +give `configure' the option `--exec-prefix=PATH', the package will use
151 +PATH as the prefix for installing programs and libraries.
152 +Documentation and other data files will still use the regular prefix.
154 + In addition, if you use an unusual directory layout you can give
155 +options like `--bindir=PATH' to specify different values for particular
156 +kinds of files. Run `configure --help' for a list of the directories
157 +you can set and what kinds of files go in them.
159 + If the package supports it, you can cause programs to be installed
160 +with an extra prefix or suffix on their names by giving `configure' the
161 +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
163 +Optional Features
164 +=================
166 + Some packages pay attention to `--enable-FEATURE' options to
167 +`configure', where FEATURE indicates an optional part of the package.
168 +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
169 +is something like `gnu-as' or `x' (for the X Window System). The
170 +`README' should mention any `--enable-' and `--with-' options that the
171 +package recognizes.
173 + For packages that use the X Window System, `configure' can usually
174 +find the X include and library files automatically, but if it doesn't,
175 +you can use the `configure' options `--x-includes=DIR' and
176 +`--x-libraries=DIR' to specify their locations.
178 +Specifying the System Type
179 +==========================
181 + There may be some features `configure' cannot figure out
182 +automatically, but needs to determine by the type of machine the package
183 +will run on. Usually, assuming the package is built to be run on the
184 +_same_ architectures, `configure' can figure that out, but if it prints
185 +a message saying it cannot guess the machine type, give it the
186 +`--build=TYPE' option. TYPE can either be a short name for the system
187 +type, such as `sun4', or a canonical name which has the form:
189 + CPU-COMPANY-SYSTEM
191 +where SYSTEM can have one of these forms:
193 + OS KERNEL-OS
195 + See the file `config.sub' for the possible values of each field. If
196 +`config.sub' isn't included in this package, then this package doesn't
197 +need to know the machine type.
199 + If you are _building_ compiler tools for cross-compiling, you should
200 +use the `--target=TYPE' option to select the type of system they will
201 +produce code for.
203 + If you want to _use_ a cross compiler, that generates code for a
204 +platform different from the build platform, you should specify the
205 +"host" platform (i.e., that on which the generated programs will
206 +eventually be run) with `--host=TYPE'.
208 +Sharing Defaults
209 +================
211 + If you want to set default values for `configure' scripts to share,
212 +you can create a site shell script called `config.site' that gives
213 +default values for variables like `CC', `cache_file', and `prefix'.
214 +`configure' looks for `PREFIX/share/config.site' if it exists, then
215 +`PREFIX/etc/config.site' if it exists. Or, you can set the
216 +`CONFIG_SITE' environment variable to the location of the site script.
217 +A warning: not all `configure' scripts look for a site script.
219 +Defining Variables
220 +==================
222 + Variables not defined in a site shell script can be set in the
223 +environment passed to `configure'. However, some packages may run
224 +configure again during the build, and the customized values of these
225 +variables may be lost. In order to avoid this problem, you should set
226 +them in the `configure' command line, using `VAR=value'. For example:
228 + ./configure CC=/usr/local2/bin/gcc
230 +will cause the specified gcc to be used as the C compiler (unless it is
231 +overridden in the site shell script).
233 +`configure' Invocation
234 +======================
236 + `configure' recognizes the following options to control how it
237 +operates.
239 +`--help'
240 +`-h'
241 + Print a summary of the options to `configure', and exit.
243 +`--version'
244 +`-V'
245 + Print the version of Autoconf used to generate the `configure'
246 + script, and exit.
248 +`--cache-file=FILE'
249 + Enable the cache: use and save the results of the tests in FILE,
250 + traditionally `config.cache'. FILE defaults to `/dev/null' to
251 + disable caching.
253 +`--config-cache'
254 +`-C'
255 + Alias for `--cache-file=config.cache'.
257 +`--quiet'
258 +`--silent'
259 +`-q'
260 + Do not print messages saying which checks are being made. To
261 + suppress all normal output, redirect it to `/dev/null' (any error
262 + messages will still be shown).
264 +`--srcdir=DIR'
265 + Look for the package's source code in directory DIR. Usually
266 + `configure' can determine that directory automatically.
268 +`configure' also accepts some other, not widely useful, options. Run
269 +`configure --help' for more details.
271 diff --git a/Makefile.am b/Makefile.am
272 new file mode 100755
273 index 0000000..10d4251
274 --- /dev/null
275 +++ b/Makefile.am
276 @@ -0,0 +1,138 @@
278 +# Automake Makefile for the JPEG library
280 +# This file is written by Bob Friesenhahn, bfriesen@simple.dallas.tx.us
283 +# Don't require all the GNU mandated files
284 +AUTOMAKE_OPTIONS = 1.9 dist-zip dist-bzip2 foreign
286 +# Sources to build library
287 +LIBSOURCES = jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
288 + jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
289 + jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
290 + jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
291 + jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
292 + jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
293 + jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
294 + jquant2.c jutils.c jmemmgr.c @MEMORYMGR@.c
296 +# System dependent sources
297 +SYSDEPSOURCES = jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
299 +# Headers which are installed to support the library
300 +INSTINCLUDES = jerror.h jmorecfg.h jpeglib.h
302 +# Headers which are not installed
303 +OTHERINCLUDES = cderror.h cdjpeg.h jchuff.h jdct.h jdhuff.h jinclude.h \
304 + jmemsys.h jpegint.h jversion.h transupp.h
306 +# Manual pages (Automake uses 'MANS' for itself)
307 +DISTMANS= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
309 +# Other documentation files
310 +DOCS= README install.doc usage.doc wizard.doc example.c libjpeg.doc \
311 + structure.doc coderules.doc filelist.doc change.log
313 +# Makefiles for various systems
314 +MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
315 + makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
316 + makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
317 + maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
318 + makvms.opt
320 +# Configuration files
321 +CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.h.in jconfig.mc6 jconfig.dj \
322 + jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \
323 + jconfig.sas jconfig.vms
325 +# Miscellaneous support files
326 +OTHERFILES= README.1st jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 \
327 + jmemdosa.asm
329 +# Test support files
330 +TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
331 + testimgp.jpg
333 +# libtool libraries to build
334 +lib_LTLIBRARIES = libjpeg.la
336 +# Library sources for libjpeg.la
337 +libjpeg_la_SOURCES = $(LIBSOURCES)
339 +# LDFLAGS for libjpeg.la
340 +libjpeg_la_LDFLAGS = -no-undefined \
341 + -version-info $(JPEG_LIB_VERSION)
343 +# Conditionally-build library sources for libjpeg.la
344 +EXTRA_libjpeg_la_SOURCES = $(SYSDEPSOURCES)
346 +# Executables to build
347 +bin_PROGRAMS = cjpeg djpeg rdjpgcom wrjpgcom jpegtran
349 +# Executable sources & libs
350 +cjpeg_SOURCES = cjpeg.c rdppm.c rdgif.c rdtarga.c rdrle.c rdbmp.c rdswitch.c cdjpeg.c
351 +cjpeg_LDADD = libjpeg.la $(PNGLIBS)
352 +djpeg_SOURCES = djpeg.c wrppm.c wrgif.c wrtarga.c wrrle.c wrbmp.c rdcolmap.c cdjpeg.c
353 +djpeg_LDADD = libjpeg.la $(PNGLIBS)
354 +jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c
355 +jpegtran_LDADD = libjpeg.la
356 +rdjpgcom_SOURCES = rdjpgcom.c
357 +wrjpgcom_SOURCES = wrjpgcom.c
359 +# Manual pages to install
360 +man_MANS = $(DISTMANS)
362 +# Headers to install
363 +include_HEADERS = $(INSTINCLUDES)
365 +# Other distributed headers
366 +noinst_HEADERS = $(OTHERINCLUDES)
368 +# Other distributed files
369 +EXTRA_DIST = $(DOCS) $(DISTMANS) $(MKFILES) $(CONFIGFILES) $(SYSDEPSOURCES) \
370 + $(OTHERFILES) $(TESTFILES)
372 +# Files to be cleaned
373 +CLEANFILES = testout.ppm testout.bmp testout.jpg testoutp.ppm testoutp.jpg testoutt.jpg
375 +# Install jconfig_api.h
376 +install-data-local:
377 + $(mkinstalldirs) $(DESTDIR)$(includedir)
378 + $(INSTALL_HEADER) jconfig_api.h $(DESTDIR)$(includedir)/jconfig.h
380 +# Uninstall jconfig_api.h
381 +uninstall-local:
382 + rm -f $(DESTDIR)$(includedir)/jconfig.h
384 +# Non-Automake subdirectories to distribute
385 +DISTDIRS = m4 config
386 +dist-hook:
387 + ( \
388 + builddir=`pwd` ; \
389 + cd $(srcdir) && \
390 + ( \
391 + for dir in $(DISTDIRS) ; do \
392 + find $$dir -depth -print | egrep -v '(~$$)|(/CVS)|(/\.#)|(/\.deps)' \
393 + | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
394 + done \
395 + ) \
398 +# Run tests
399 +test: check-local
400 +check-local:
401 + $(RM) testout*
402 + ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg
403 + ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg
404 + ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm
405 + ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
406 + ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
407 + ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
408 + cmp $(srcdir)/testimg.ppm testout.ppm
409 + cmp $(srcdir)/testimg.bmp testout.bmp
410 + cmp $(srcdir)/testimg.jpg testout.jpg
411 + cmp $(srcdir)/testimg.ppm testoutp.ppm
412 + cmp $(srcdir)/testimgp.jpg testoutp.jpg
413 + cmp $(srcdir)/testorig.jpg testoutt.jpg
415 diff --git a/Makefile.in b/Makefile.in
416 new file mode 100755
417 index 0000000..ddd9c50
418 --- /dev/null
419 +++ b/Makefile.in
420 @@ -0,0 +1,1000 @@
421 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
422 +# @configure_input@
424 +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
425 +# 2003, 2004, 2005 Free Software Foundation, Inc.
426 +# This Makefile.in is free software; the Free Software Foundation
427 +# gives unlimited permission to copy and/or distribute it,
428 +# with or without modifications, as long as this notice is preserved.
430 +# This program is distributed in the hope that it will be useful,
431 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
432 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
433 +# PARTICULAR PURPOSE.
435 +@SET_MAKE@
438 +# Automake Makefile for the JPEG library
440 +# This file is written by Bob Friesenhahn, bfriesen@simple.dallas.tx.us
445 +srcdir = @srcdir@
446 +top_srcdir = @top_srcdir@
447 +VPATH = @srcdir@
448 +pkgdatadir = $(datadir)/@PACKAGE@
449 +pkglibdir = $(libdir)/@PACKAGE@
450 +pkgincludedir = $(includedir)/@PACKAGE@
451 +top_builddir = .
452 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
453 +INSTALL = @INSTALL@
454 +install_sh_DATA = $(install_sh) -c -m 644
455 +install_sh_PROGRAM = $(install_sh) -c
456 +install_sh_SCRIPT = $(install_sh) -c
457 +INSTALL_HEADER = $(INSTALL_DATA)
458 +transform = $(program_transform_name)
459 +NORMAL_INSTALL = :
460 +PRE_INSTALL = :
461 +POST_INSTALL = :
462 +NORMAL_UNINSTALL = :
463 +PRE_UNINSTALL = :
464 +POST_UNINSTALL = :
465 +build_triplet = @build@
466 +host_triplet = @host@
467 +target_triplet = @target@
468 +bin_PROGRAMS = cjpeg$(EXEEXT) djpeg$(EXEEXT) rdjpgcom$(EXEEXT) \
469 + wrjpgcom$(EXEEXT) jpegtran$(EXEEXT)
470 +DIST_COMMON = README $(am__configure_deps) $(include_HEADERS) \
471 + $(noinst_HEADERS) $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
472 + $(srcdir)/jconfig.h.in $(srcdir)/jconfig_api.h.in \
473 + $(top_srcdir)/configure ChangeLog INSTALL ansi2knr.1 \
474 + ansi2knr.c config/config.guess config/config.sub \
475 + config/depcomp config/install-sh config/ltmain.sh \
476 + config/missing install-sh
477 +subdir = .
478 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
479 +am__aclocal_m4_deps = $(top_srcdir)/configure.ac
480 +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
481 + $(ACLOCAL_M4)
482 +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
483 + configure.lineno configure.status.lineno
484 +mkinstalldirs = $(install_sh) -d
485 +CONFIG_HEADER = jconfig.h jconfig_api.h
486 +CONFIG_CLEAN_FILES =
487 +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
488 +am__vpath_adj = case $$p in \
489 + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
490 + *) f=$$p;; \
491 + esac;
492 +am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
493 +am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" \
494 + "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(includedir)"
495 +libLTLIBRARIES_INSTALL = $(INSTALL)
496 +LTLIBRARIES = $(lib_LTLIBRARIES)
497 +libjpeg_la_LIBADD =
498 +am__objects_1 = jcapimin.lo jcapistd.lo jccoefct.lo jccolor.lo \
499 + jcdctmgr.lo jchuff.lo jcinit.lo jcmainct.lo jcmarker.lo \
500 + jcmaster.lo jcomapi.lo jcparam.lo jcphuff.lo jcprepct.lo \
501 + jcsample.lo jctrans.lo jdapimin.lo jdapistd.lo jdatadst.lo \
502 + jdatasrc.lo jdcoefct.lo jdcolor.lo jddctmgr.lo jdhuff.lo \
503 + jdinput.lo jdmainct.lo jdmarker.lo jdmaster.lo jdmerge.lo \
504 + jdphuff.lo jdpostct.lo jdsample.lo jdtrans.lo jerror.lo \
505 + jfdctflt.lo jfdctfst.lo jfdctint.lo jidctflt.lo jidctfst.lo \
506 + jidctint.lo jidctred.lo jquant1.lo jquant2.lo jutils.lo \
507 + jmemmgr.lo @MEMORYMGR@.lo
508 +am_libjpeg_la_OBJECTS = $(am__objects_1)
509 +libjpeg_la_OBJECTS = $(am_libjpeg_la_OBJECTS)
510 +binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
511 +PROGRAMS = $(bin_PROGRAMS)
512 +am_cjpeg_OBJECTS = cjpeg.$(OBJEXT) rdppm.$(OBJEXT) rdgif.$(OBJEXT) \
513 + rdtarga.$(OBJEXT) rdrle.$(OBJEXT) rdbmp.$(OBJEXT) \
514 + rdswitch.$(OBJEXT) cdjpeg.$(OBJEXT)
515 +cjpeg_OBJECTS = $(am_cjpeg_OBJECTS)
516 +am__DEPENDENCIES_1 =
517 +cjpeg_DEPENDENCIES = libjpeg.la $(am__DEPENDENCIES_1)
518 +am_djpeg_OBJECTS = djpeg.$(OBJEXT) wrppm.$(OBJEXT) wrgif.$(OBJEXT) \
519 + wrtarga.$(OBJEXT) wrrle.$(OBJEXT) wrbmp.$(OBJEXT) \
520 + rdcolmap.$(OBJEXT) cdjpeg.$(OBJEXT)
521 +djpeg_OBJECTS = $(am_djpeg_OBJECTS)
522 +djpeg_DEPENDENCIES = libjpeg.la $(am__DEPENDENCIES_1)
523 +am_jpegtran_OBJECTS = jpegtran.$(OBJEXT) rdswitch.$(OBJEXT) \
524 + cdjpeg.$(OBJEXT) transupp.$(OBJEXT)
525 +jpegtran_OBJECTS = $(am_jpegtran_OBJECTS)
526 +jpegtran_DEPENDENCIES = libjpeg.la
527 +am_rdjpgcom_OBJECTS = rdjpgcom.$(OBJEXT)
528 +rdjpgcom_OBJECTS = $(am_rdjpgcom_OBJECTS)
529 +rdjpgcom_LDADD = $(LDADD)
530 +am_wrjpgcom_OBJECTS = wrjpgcom.$(OBJEXT)
531 +wrjpgcom_OBJECTS = $(am_wrjpgcom_OBJECTS)
532 +wrjpgcom_LDADD = $(LDADD)
533 +DEFAULT_INCLUDES = -I. -I$(srcdir) -I. -I.
534 +depcomp = $(SHELL) $(top_srcdir)/config/depcomp
535 +am__depfiles_maybe = depfiles
536 +COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
537 + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
538 +LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
539 + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
540 + $(AM_CFLAGS) $(CFLAGS)
541 +CCLD = $(CC)
542 +LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
543 + $(AM_LDFLAGS) $(LDFLAGS) -o $@
544 +SOURCES = $(libjpeg_la_SOURCES) $(EXTRA_libjpeg_la_SOURCES) \
545 + $(cjpeg_SOURCES) $(djpeg_SOURCES) $(jpegtran_SOURCES) \
546 + $(rdjpgcom_SOURCES) $(wrjpgcom_SOURCES)
547 +DIST_SOURCES = $(libjpeg_la_SOURCES) $(EXTRA_libjpeg_la_SOURCES) \
548 + $(cjpeg_SOURCES) $(djpeg_SOURCES) $(jpegtran_SOURCES) \
549 + $(rdjpgcom_SOURCES) $(wrjpgcom_SOURCES)
550 +man1dir = $(mandir)/man1
551 +NROFF = nroff
552 +MANS = $(man_MANS)
553 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
554 +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
555 +ETAGS = etags
556 +CTAGS = ctags
557 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
558 +distdir = $(PACKAGE)-$(VERSION)
559 +top_distdir = $(distdir)
560 +am__remove_distdir = \
561 + { test ! -d $(distdir) \
562 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
563 + && rm -fr $(distdir); }; }
564 +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 $(distdir).zip
565 +GZIP_ENV = --best
566 +distuninstallcheck_listfiles = find . -type f -print
567 +distcleancheck_listfiles = find . -type f -print
568 +ACLOCAL = @ACLOCAL@
569 +AMDEP_FALSE = @AMDEP_FALSE@
570 +AMDEP_TRUE = @AMDEP_TRUE@
571 +AMTAR = @AMTAR@
572 +AR = @AR@
573 +AS = @AS@
574 +AUTOCONF = @AUTOCONF@
575 +AUTOHEADER = @AUTOHEADER@
576 +AUTOMAKE = @AUTOMAKE@
577 +AWK = @AWK@
578 +CC = @CC@
579 +CCDEPMODE = @CCDEPMODE@
580 +CFLAGS = @CFLAGS@
581 +CPP = @CPP@
582 +CPPFLAGS = @CPPFLAGS@
583 +CXX = @CXX@
584 +CXXCPP = @CXXCPP@
585 +CXXDEPMODE = @CXXDEPMODE@
586 +CXXFLAGS = @CXXFLAGS@
587 +CYGPATH_W = @CYGPATH_W@
588 +DEFS = @DEFS@
589 +DEPDIR = @DEPDIR@
590 +DLLTOOL = @DLLTOOL@
591 +ECHO = @ECHO@
592 +ECHO_C = @ECHO_C@
593 +ECHO_N = @ECHO_N@
594 +ECHO_T = @ECHO_T@
595 +EGREP = @EGREP@
596 +EXEEXT = @EXEEXT@
597 +F77 = @F77@
598 +FFLAGS = @FFLAGS@
599 +INSTALL_DATA = @INSTALL_DATA@
600 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
601 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
602 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
603 +JPEG_LIB_VERSION = @JPEG_LIB_VERSION@
604 +LDFLAGS = @LDFLAGS@
605 +LIBOBJS = @LIBOBJS@
606 +LIBS = @LIBS@
607 +LIBTOOL = @LIBTOOL@
608 +LN_S = @LN_S@
609 +LTLIBOBJS = @LTLIBOBJS@
610 +MAINT = @MAINT@
611 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
612 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
613 +MAKEINFO = @MAKEINFO@
614 +MEMORYMGR = @MEMORYMGR@
615 +OBJDUMP = @OBJDUMP@
616 +OBJEXT = @OBJEXT@
617 +PACKAGE = @PACKAGE@
618 +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
619 +PACKAGE_NAME = @PACKAGE_NAME@
620 +PACKAGE_STRING = @PACKAGE_STRING@
621 +PACKAGE_TARNAME = @PACKAGE_TARNAME@
622 +PACKAGE_VERSION = @PACKAGE_VERSION@
623 +PATH_SEPARATOR = @PATH_SEPARATOR@
624 +PNGLIBS = @PNGLIBS@
625 +RANLIB = @RANLIB@
626 +SET_MAKE = @SET_MAKE@
627 +SHELL = @SHELL@
628 +STRIP = @STRIP@
629 +VERSION = @VERSION@
630 +ac_ct_AR = @ac_ct_AR@
631 +ac_ct_AS = @ac_ct_AS@
632 +ac_ct_CC = @ac_ct_CC@
633 +ac_ct_CXX = @ac_ct_CXX@
634 +ac_ct_DLLTOOL = @ac_ct_DLLTOOL@
635 +ac_ct_F77 = @ac_ct_F77@
636 +ac_ct_OBJDUMP = @ac_ct_OBJDUMP@
637 +ac_ct_RANLIB = @ac_ct_RANLIB@
638 +ac_ct_STRIP = @ac_ct_STRIP@
639 +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
640 +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
641 +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
642 +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
643 +am__include = @am__include@
644 +am__leading_dot = @am__leading_dot@
645 +am__quote = @am__quote@
646 +am__tar = @am__tar@
647 +am__untar = @am__untar@
648 +bindir = @bindir@
649 +build = @build@
650 +build_alias = @build_alias@
651 +build_cpu = @build_cpu@
652 +build_os = @build_os@
653 +build_vendor = @build_vendor@
654 +datadir = @datadir@
655 +exec_prefix = @exec_prefix@
656 +host = @host@
657 +host_alias = @host_alias@
658 +host_cpu = @host_cpu@
659 +host_os = @host_os@
660 +host_vendor = @host_vendor@
661 +includedir = @includedir@
662 +infodir = @infodir@
663 +install_sh = @install_sh@
664 +libdir = @libdir@
665 +libexecdir = @libexecdir@
666 +localstatedir = @localstatedir@
667 +mandir = @mandir@
668 +mkdir_p = @mkdir_p@
669 +oldincludedir = @oldincludedir@
670 +prefix = @prefix@
671 +program_transform_name = @program_transform_name@
672 +sbindir = @sbindir@
673 +sharedstatedir = @sharedstatedir@
674 +sysconfdir = @sysconfdir@
675 +target = @target@
676 +target_alias = @target_alias@
677 +target_cpu = @target_cpu@
678 +target_os = @target_os@
679 +target_vendor = @target_vendor@
681 +# Don't require all the GNU mandated files
682 +AUTOMAKE_OPTIONS = 1.9 dist-zip dist-bzip2 foreign
684 +# Sources to build library
685 +LIBSOURCES = jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
686 + jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
687 + jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
688 + jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
689 + jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
690 + jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
691 + jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
692 + jquant2.c jutils.c jmemmgr.c @MEMORYMGR@.c
695 +# System dependent sources
696 +SYSDEPSOURCES = jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
698 +# Headers which are installed to support the library
699 +INSTINCLUDES = jerror.h jmorecfg.h jpeglib.h
701 +# Headers which are not installed
702 +OTHERINCLUDES = cderror.h cdjpeg.h jchuff.h jdct.h jdhuff.h jinclude.h \
703 + jmemsys.h jpegint.h jversion.h transupp.h
706 +# Manual pages (Automake uses 'MANS' for itself)
707 +DISTMANS = cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
709 +# Other documentation files
710 +DOCS = README install.doc usage.doc wizard.doc example.c libjpeg.doc \
711 + structure.doc coderules.doc filelist.doc change.log
714 +# Makefiles for various systems
715 +MKFILES = configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
716 + makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
717 + makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
718 + maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
719 + makvms.opt
722 +# Configuration files
723 +CONFIGFILES = jconfig.cfg jconfig.bcc jconfig.h.in jconfig.mc6 jconfig.dj \
724 + jconfig.wat jconfig.vc jconfig.mac jconfig.st jconfig.manx \
725 + jconfig.sas jconfig.vms
728 +# Miscellaneous support files
729 +OTHERFILES = README.1st jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 \
730 + jmemdosa.asm
733 +# Test support files
734 +TESTFILES = testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
735 + testimgp.jpg
738 +# libtool libraries to build
739 +lib_LTLIBRARIES = libjpeg.la
741 +# Library sources for libjpeg.la
742 +libjpeg_la_SOURCES = $(LIBSOURCES)
744 +# LDFLAGS for libjpeg.la
745 +libjpeg_la_LDFLAGS = -no-undefined \
746 + -version-info $(JPEG_LIB_VERSION)
749 +# Conditionally-build library sources for libjpeg.la
750 +EXTRA_libjpeg_la_SOURCES = $(SYSDEPSOURCES)
752 +# Executable sources & libs
753 +cjpeg_SOURCES = cjpeg.c rdppm.c rdgif.c rdtarga.c rdrle.c rdbmp.c rdswitch.c cdjpeg.c
754 +cjpeg_LDADD = libjpeg.la $(PNGLIBS)
755 +djpeg_SOURCES = djpeg.c wrppm.c wrgif.c wrtarga.c wrrle.c wrbmp.c rdcolmap.c cdjpeg.c
756 +djpeg_LDADD = libjpeg.la $(PNGLIBS)
757 +jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c
758 +jpegtran_LDADD = libjpeg.la
759 +rdjpgcom_SOURCES = rdjpgcom.c
760 +wrjpgcom_SOURCES = wrjpgcom.c
762 +# Manual pages to install
763 +man_MANS = $(DISTMANS)
765 +# Headers to install
766 +include_HEADERS = $(INSTINCLUDES)
768 +# Other distributed headers
769 +noinst_HEADERS = $(OTHERINCLUDES)
771 +# Other distributed files
772 +EXTRA_DIST = $(DOCS) $(DISTMANS) $(MKFILES) $(CONFIGFILES) $(SYSDEPSOURCES) \
773 + $(OTHERFILES) $(TESTFILES)
776 +# Files to be cleaned
777 +CLEANFILES = testout.ppm testout.bmp testout.jpg testoutp.ppm testoutp.jpg testoutt.jpg
779 +# Non-Automake subdirectories to distribute
780 +DISTDIRS = m4 config
781 +all: jconfig.h jconfig_api.h
782 + $(MAKE) $(AM_MAKEFLAGS) all-am
784 +.SUFFIXES:
785 +.SUFFIXES: .c .lo .o .obj
786 +am--refresh:
787 + @:
788 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
789 + @for dep in $?; do \
790 + case '$(am__configure_deps)' in \
791 + *$$dep*) \
792 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
793 + cd $(srcdir) && $(AUTOMAKE) --foreign \
794 + && exit 0; \
795 + exit 1;; \
796 + esac; \
797 + done; \
798 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
799 + cd $(top_srcdir) && \
800 + $(AUTOMAKE) --foreign Makefile
801 +.PRECIOUS: Makefile
802 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
803 + @case '$?' in \
804 + *config.status*) \
805 + echo ' $(SHELL) ./config.status'; \
806 + $(SHELL) ./config.status;; \
807 + *) \
808 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
809 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
810 + esac;
812 +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
813 + $(SHELL) ./config.status --recheck
815 +$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
816 + cd $(srcdir) && $(AUTOCONF)
817 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
818 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
820 +jconfig.h: stamp-h1
821 + @if test ! -f $@; then \
822 + rm -f stamp-h1; \
823 + $(MAKE) stamp-h1; \
824 + else :; fi
826 +stamp-h1: $(srcdir)/jconfig.h.in $(top_builddir)/config.status
827 + @rm -f stamp-h1
828 + cd $(top_builddir) && $(SHELL) ./config.status jconfig.h
829 +$(srcdir)/jconfig.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
830 + cd $(top_srcdir) && $(AUTOHEADER)
831 + rm -f stamp-h1
832 + touch $@
834 +jconfig_api.h: stamp-h2
835 + @if test ! -f $@; then \
836 + rm -f stamp-h2; \
837 + $(MAKE) stamp-h2; \
838 + else :; fi
840 +stamp-h2: $(srcdir)/jconfig_api.h.in $(top_builddir)/config.status
841 + @rm -f stamp-h2
842 + cd $(top_builddir) && $(SHELL) ./config.status jconfig_api.h
844 +distclean-hdr:
845 + -rm -f jconfig.h stamp-h1 jconfig_api.h stamp-h2
846 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
847 + @$(NORMAL_INSTALL)
848 + test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
849 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
850 + if test -f $$p; then \
851 + f=$(am__strip_dir) \
852 + echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
853 + $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
854 + else :; fi; \
855 + done
857 +uninstall-libLTLIBRARIES:
858 + @$(NORMAL_UNINSTALL)
859 + @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
860 + p=$(am__strip_dir) \
861 + echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
862 + $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
863 + done
865 +clean-libLTLIBRARIES:
866 + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
867 + @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
868 + dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
869 + test "$$dir" != "$$p" || dir=.; \
870 + echo "rm -f \"$${dir}/so_locations\""; \
871 + rm -f "$${dir}/so_locations"; \
872 + done
873 +libjpeg.la: $(libjpeg_la_OBJECTS) $(libjpeg_la_DEPENDENCIES)
874 + $(LINK) -rpath $(libdir) $(libjpeg_la_LDFLAGS) $(libjpeg_la_OBJECTS) $(libjpeg_la_LIBADD) $(LIBS)
875 +install-binPROGRAMS: $(bin_PROGRAMS)
876 + @$(NORMAL_INSTALL)
877 + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
878 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
879 + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
880 + if test -f $$p \
881 + || test -f $$p1 \
882 + ; then \
883 + f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
884 + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
885 + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
886 + else :; fi; \
887 + done
889 +uninstall-binPROGRAMS:
890 + @$(NORMAL_UNINSTALL)
891 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
892 + f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
893 + echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
894 + rm -f "$(DESTDIR)$(bindir)/$$f"; \
895 + done
897 +clean-binPROGRAMS:
898 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
899 + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
900 + echo " rm -f $$p $$f"; \
901 + rm -f $$p $$f ; \
902 + done
903 +cjpeg$(EXEEXT): $(cjpeg_OBJECTS) $(cjpeg_DEPENDENCIES)
904 + @rm -f cjpeg$(EXEEXT)
905 + $(LINK) $(cjpeg_LDFLAGS) $(cjpeg_OBJECTS) $(cjpeg_LDADD) $(LIBS)
906 +djpeg$(EXEEXT): $(djpeg_OBJECTS) $(djpeg_DEPENDENCIES)
907 + @rm -f djpeg$(EXEEXT)
908 + $(LINK) $(djpeg_LDFLAGS) $(djpeg_OBJECTS) $(djpeg_LDADD) $(LIBS)
909 +jpegtran$(EXEEXT): $(jpegtran_OBJECTS) $(jpegtran_DEPENDENCIES)
910 + @rm -f jpegtran$(EXEEXT)
911 + $(LINK) $(jpegtran_LDFLAGS) $(jpegtran_OBJECTS) $(jpegtran_LDADD) $(LIBS)
912 +rdjpgcom$(EXEEXT): $(rdjpgcom_OBJECTS) $(rdjpgcom_DEPENDENCIES)
913 + @rm -f rdjpgcom$(EXEEXT)
914 + $(LINK) $(rdjpgcom_LDFLAGS) $(rdjpgcom_OBJECTS) $(rdjpgcom_LDADD) $(LIBS)
915 +wrjpgcom$(EXEEXT): $(wrjpgcom_OBJECTS) $(wrjpgcom_DEPENDENCIES)
916 + @rm -f wrjpgcom$(EXEEXT)
917 + $(LINK) $(wrjpgcom_LDFLAGS) $(wrjpgcom_OBJECTS) $(wrjpgcom_LDADD) $(LIBS)
919 +mostlyclean-compile:
920 + -rm -f *.$(OBJEXT)
922 +distclean-compile:
923 + -rm -f *.tab.c
925 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/@MEMORYMGR@.Plo@am__quote@
926 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cdjpeg.Po@am__quote@
927 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cjpeg.Po@am__quote@
928 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/djpeg.Po@am__quote@
929 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcapimin.Plo@am__quote@
930 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcapistd.Plo@am__quote@
931 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jccoefct.Plo@am__quote@
932 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jccolor.Plo@am__quote@
933 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcdctmgr.Plo@am__quote@
934 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jchuff.Plo@am__quote@
935 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcinit.Plo@am__quote@
936 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcmainct.Plo@am__quote@
937 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcmarker.Plo@am__quote@
938 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcmaster.Plo@am__quote@
939 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcomapi.Plo@am__quote@
940 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcparam.Plo@am__quote@
941 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcphuff.Plo@am__quote@
942 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcprepct.Plo@am__quote@
943 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jcsample.Plo@am__quote@
944 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jctrans.Plo@am__quote@
945 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdapimin.Plo@am__quote@
946 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdapistd.Plo@am__quote@
947 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdatadst.Plo@am__quote@
948 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdatasrc.Plo@am__quote@
949 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdcoefct.Plo@am__quote@
950 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdcolor.Plo@am__quote@
951 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jddctmgr.Plo@am__quote@
952 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdhuff.Plo@am__quote@
953 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdinput.Plo@am__quote@
954 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdmainct.Plo@am__quote@
955 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdmarker.Plo@am__quote@
956 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdmaster.Plo@am__quote@
957 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdmerge.Plo@am__quote@
958 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdphuff.Plo@am__quote@
959 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdpostct.Plo@am__quote@
960 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdsample.Plo@am__quote@
961 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jdtrans.Plo@am__quote@
962 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jerror.Plo@am__quote@
963 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jfdctflt.Plo@am__quote@
964 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jfdctfst.Plo@am__quote@
965 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jfdctint.Plo@am__quote@
966 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jidctflt.Plo@am__quote@
967 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jidctfst.Plo@am__quote@
968 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jidctint.Plo@am__quote@
969 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jidctred.Plo@am__quote@
970 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmemansi.Plo@am__quote@
971 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmemdos.Plo@am__quote@
972 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmemmac.Plo@am__quote@
973 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmemmgr.Plo@am__quote@
974 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmemname.Plo@am__quote@
975 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jmemnobs.Plo@am__quote@
976 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jpegtran.Po@am__quote@
977 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jquant1.Plo@am__quote@
978 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jquant2.Plo@am__quote@
979 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/jutils.Plo@am__quote@
980 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdbmp.Po@am__quote@
981 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdcolmap.Po@am__quote@
982 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdgif.Po@am__quote@
983 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdjpgcom.Po@am__quote@
984 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdppm.Po@am__quote@
985 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdrle.Po@am__quote@
986 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdswitch.Po@am__quote@
987 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rdtarga.Po@am__quote@
988 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/transupp.Po@am__quote@
989 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrbmp.Po@am__quote@
990 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrgif.Po@am__quote@
991 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrjpgcom.Po@am__quote@
992 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrppm.Po@am__quote@
993 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrrle.Po@am__quote@
994 +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/wrtarga.Po@am__quote@
996 +.c.o:
997 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
998 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
999 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1000 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1001 +@am__fastdepCC_FALSE@ $(COMPILE) -c $<
1003 +.c.obj:
1004 +@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
1005 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
1006 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1007 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1008 +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
1010 +.c.lo:
1011 +@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
1012 +@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
1013 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
1014 +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1015 +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
1017 +mostlyclean-libtool:
1018 + -rm -f *.lo
1020 +clean-libtool:
1021 + -rm -rf .libs _libs
1023 +distclean-libtool:
1024 + -rm -f libtool
1025 +uninstall-info-am:
1026 +install-man1: $(man1_MANS) $(man_MANS)
1027 + @$(NORMAL_INSTALL)
1028 + test -z "$(man1dir)" || $(mkdir_p) "$(DESTDIR)$(man1dir)"
1029 + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
1030 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
1031 + for i in $$l2; do \
1032 + case "$$i" in \
1033 + *.1*) list="$$list $$i" ;; \
1034 + esac; \
1035 + done; \
1036 + for i in $$list; do \
1037 + if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
1038 + else file=$$i; fi; \
1039 + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
1040 + case "$$ext" in \
1041 + 1*) ;; \
1042 + *) ext='1' ;; \
1043 + esac; \
1044 + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
1045 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
1046 + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
1047 + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
1048 + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst"; \
1049 + done
1050 +uninstall-man1:
1051 + @$(NORMAL_UNINSTALL)
1052 + @list='$(man1_MANS) $(dist_man1_MANS) $(nodist_man1_MANS)'; \
1053 + l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
1054 + for i in $$l2; do \
1055 + case "$$i" in \
1056 + *.1*) list="$$list $$i" ;; \
1057 + esac; \
1058 + done; \
1059 + for i in $$list; do \
1060 + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
1061 + case "$$ext" in \
1062 + 1*) ;; \
1063 + *) ext='1' ;; \
1064 + esac; \
1065 + inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
1066 + inst=`echo $$inst | sed -e 's/^.*\///'`; \
1067 + inst=`echo $$inst | sed '$(transform)'`.$$ext; \
1068 + echo " rm -f '$(DESTDIR)$(man1dir)/$$inst'"; \
1069 + rm -f "$(DESTDIR)$(man1dir)/$$inst"; \
1070 + done
1071 +install-includeHEADERS: $(include_HEADERS)
1072 + @$(NORMAL_INSTALL)
1073 + test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
1074 + @list='$(include_HEADERS)'; for p in $$list; do \
1075 + if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1076 + f=$(am__strip_dir) \
1077 + echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
1078 + $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
1079 + done
1081 +uninstall-includeHEADERS:
1082 + @$(NORMAL_UNINSTALL)
1083 + @list='$(include_HEADERS)'; for p in $$list; do \
1084 + f=$(am__strip_dir) \
1085 + echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
1086 + rm -f "$(DESTDIR)$(includedir)/$$f"; \
1087 + done
1089 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
1090 + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
1091 + unique=`for i in $$list; do \
1092 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1093 + done | \
1094 + $(AWK) ' { files[$$0] = 1; } \
1095 + END { for (i in files) print i; }'`; \
1096 + mkid -fID $$unique
1097 +tags: TAGS
1099 +TAGS: $(HEADERS) $(SOURCES) jconfig.h.in jconfig_api.h.in $(TAGS_DEPENDENCIES) \
1100 + $(TAGS_FILES) $(LISP)
1101 + tags=; \
1102 + here=`pwd`; \
1103 + list='$(SOURCES) $(HEADERS) jconfig.h.in jconfig_api.h.in $(LISP) $(TAGS_FILES)'; \
1104 + unique=`for i in $$list; do \
1105 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1106 + done | \
1107 + $(AWK) ' { files[$$0] = 1; } \
1108 + END { for (i in files) print i; }'`; \
1109 + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
1110 + test -n "$$unique" || unique=$$empty_fix; \
1111 + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1112 + $$tags $$unique; \
1113 + fi
1114 +ctags: CTAGS
1115 +CTAGS: $(HEADERS) $(SOURCES) jconfig.h.in jconfig_api.h.in $(TAGS_DEPENDENCIES) \
1116 + $(TAGS_FILES) $(LISP)
1117 + tags=; \
1118 + here=`pwd`; \
1119 + list='$(SOURCES) $(HEADERS) jconfig.h.in jconfig_api.h.in $(LISP) $(TAGS_FILES)'; \
1120 + unique=`for i in $$list; do \
1121 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1122 + done | \
1123 + $(AWK) ' { files[$$0] = 1; } \
1124 + END { for (i in files) print i; }'`; \
1125 + test -z "$(CTAGS_ARGS)$$tags$$unique" \
1126 + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1127 + $$tags $$unique
1129 +GTAGS:
1130 + here=`$(am__cd) $(top_builddir) && pwd` \
1131 + && cd $(top_srcdir) \
1132 + && gtags -i $(GTAGS_ARGS) $$here
1134 +distclean-tags:
1135 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1137 +distdir: $(DISTFILES)
1138 + $(am__remove_distdir)
1139 + mkdir $(distdir)
1140 + $(mkdir_p) $(distdir)/config
1141 + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
1142 + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
1143 + list='$(DISTFILES)'; for file in $$list; do \
1144 + case $$file in \
1145 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
1146 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
1147 + esac; \
1148 + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1149 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
1150 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \
1151 + dir="/$$dir"; \
1152 + $(mkdir_p) "$(distdir)$$dir"; \
1153 + else \
1154 + dir=''; \
1155 + fi; \
1156 + if test -d $$d/$$file; then \
1157 + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1158 + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
1159 + fi; \
1160 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
1161 + else \
1162 + test -f $(distdir)/$$file \
1163 + || cp -p $$d/$$file $(distdir)/$$file \
1164 + || exit 1; \
1165 + fi; \
1166 + done
1167 + $(MAKE) $(AM_MAKEFLAGS) \
1168 + top_distdir="$(top_distdir)" distdir="$(distdir)" \
1169 + dist-hook
1170 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
1171 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1172 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1173 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
1174 + || chmod -R a+r $(distdir)
1175 +dist-gzip: distdir
1176 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1177 + $(am__remove_distdir)
1178 +dist-bzip2: distdir
1179 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1180 + $(am__remove_distdir)
1182 +dist-tarZ: distdir
1183 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1184 + $(am__remove_distdir)
1186 +dist-shar: distdir
1187 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1188 + $(am__remove_distdir)
1189 +dist-zip: distdir
1190 + -rm -f $(distdir).zip
1191 + zip -rq $(distdir).zip $(distdir)
1192 + $(am__remove_distdir)
1194 +dist dist-all: distdir
1195 + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
1196 + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
1197 + -rm -f $(distdir).zip
1198 + zip -rq $(distdir).zip $(distdir)
1199 + $(am__remove_distdir)
1201 +# This target untars the dist file and tries a VPATH configuration. Then
1202 +# it guarantees that the distribution is self-contained by making another
1203 +# tarfile.
1204 +distcheck: dist
1205 + case '$(DIST_ARCHIVES)' in \
1206 + *.tar.gz*) \
1207 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
1208 + *.tar.bz2*) \
1209 + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
1210 + *.tar.Z*) \
1211 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1212 + *.shar.gz*) \
1213 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
1214 + *.zip*) \
1215 + unzip $(distdir).zip ;;\
1216 + esac
1217 + chmod -R a-w $(distdir); chmod a+w $(distdir)
1218 + mkdir $(distdir)/_build
1219 + mkdir $(distdir)/_inst
1220 + chmod a-w $(distdir)
1221 + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1222 + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1223 + && cd $(distdir)/_build \
1224 + && ../configure --srcdir=.. --prefix="$$dc_install_base" \
1225 + $(DISTCHECK_CONFIGURE_FLAGS) \
1226 + && $(MAKE) $(AM_MAKEFLAGS) \
1227 + && $(MAKE) $(AM_MAKEFLAGS) dvi \
1228 + && $(MAKE) $(AM_MAKEFLAGS) check \
1229 + && $(MAKE) $(AM_MAKEFLAGS) install \
1230 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1231 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1232 + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1233 + distuninstallcheck \
1234 + && chmod -R a-w "$$dc_install_base" \
1235 + && ({ \
1236 + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1237 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1238 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1239 + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1240 + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1241 + } || { rm -rf "$$dc_destdir"; exit 1; }) \
1242 + && rm -rf "$$dc_destdir" \
1243 + && $(MAKE) $(AM_MAKEFLAGS) dist \
1244 + && rm -rf $(DIST_ARCHIVES) \
1245 + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
1246 + $(am__remove_distdir)
1247 + @(echo "$(distdir) archives ready for distribution: "; \
1248 + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1249 + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
1250 +distuninstallcheck:
1251 + @cd $(distuninstallcheck_dir) \
1252 + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
1253 + || { echo "ERROR: files left after uninstall:" ; \
1254 + if test -n "$(DESTDIR)"; then \
1255 + echo " (check DESTDIR support)"; \
1256 + fi ; \
1257 + $(distuninstallcheck_listfiles) ; \
1258 + exit 1; } >&2
1259 +distcleancheck: distclean
1260 + @if test '$(srcdir)' = . ; then \
1261 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1262 + exit 1 ; \
1263 + fi
1264 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1265 + || { echo "ERROR: files left in build directory after distclean:" ; \
1266 + $(distcleancheck_listfiles) ; \
1267 + exit 1; } >&2
1268 +check-am: all-am
1269 + $(MAKE) $(AM_MAKEFLAGS) check-local
1270 +check: check-am
1271 +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(MANS) $(HEADERS) \
1272 + jconfig.h jconfig_api.h
1273 +install-binPROGRAMS: install-libLTLIBRARIES
1275 +installdirs:
1276 + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(includedir)"; do \
1277 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
1278 + done
1279 +install: install-am
1280 +install-exec: install-exec-am
1281 +install-data: install-data-am
1282 +uninstall: uninstall-am
1284 +install-am: all-am
1285 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1287 +installcheck: installcheck-am
1288 +install-strip:
1289 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1290 + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1291 + `test -z '$(STRIP)' || \
1292 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
1293 +mostlyclean-generic:
1295 +clean-generic:
1296 + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1298 +distclean-generic:
1299 + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1301 +maintainer-clean-generic:
1302 + @echo "This command is intended for maintainers to use"
1303 + @echo "it deletes files that may require special tools to rebuild."
1304 +clean: clean-am
1306 +clean-am: clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
1307 + clean-libtool mostlyclean-am
1309 +distclean: distclean-am
1310 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1311 + -rm -rf ./$(DEPDIR)
1312 + -rm -f Makefile
1313 +distclean-am: clean-am distclean-compile distclean-generic \
1314 + distclean-hdr distclean-libtool distclean-tags
1316 +dvi: dvi-am
1318 +dvi-am:
1320 +html: html-am
1322 +info: info-am
1324 +info-am:
1326 +install-data-am: install-data-local install-includeHEADERS install-man
1328 +install-exec-am: install-binPROGRAMS install-libLTLIBRARIES
1330 +install-info: install-info-am
1332 +install-man: install-man1
1334 +installcheck-am:
1336 +maintainer-clean: maintainer-clean-am
1337 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1338 + -rm -rf $(top_srcdir)/autom4te.cache
1339 + -rm -rf ./$(DEPDIR)
1340 + -rm -f Makefile
1341 +maintainer-clean-am: distclean-am maintainer-clean-generic
1343 +mostlyclean: mostlyclean-am
1345 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1346 + mostlyclean-libtool
1348 +pdf: pdf-am
1350 +pdf-am:
1352 +ps: ps-am
1354 +ps-am:
1356 +uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
1357 + uninstall-info-am uninstall-libLTLIBRARIES uninstall-local \
1358 + uninstall-man
1360 +uninstall-man: uninstall-man1
1362 +.PHONY: CTAGS GTAGS all all-am am--refresh check check-am check-local \
1363 + clean clean-binPROGRAMS clean-generic clean-libLTLIBRARIES \
1364 + clean-libtool ctags dist dist-all dist-bzip2 dist-gzip \
1365 + dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \
1366 + distclean-compile distclean-generic distclean-hdr \
1367 + distclean-libtool distclean-tags distcleancheck distdir \
1368 + distuninstallcheck dvi dvi-am html html-am info info-am \
1369 + install install-am install-binPROGRAMS install-data \
1370 + install-data-am install-data-local install-exec \
1371 + install-exec-am install-includeHEADERS install-info \
1372 + install-info-am install-libLTLIBRARIES install-man \
1373 + install-man1 install-strip installcheck installcheck-am \
1374 + installdirs maintainer-clean maintainer-clean-generic \
1375 + mostlyclean mostlyclean-compile mostlyclean-generic \
1376 + mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
1377 + uninstall-am uninstall-binPROGRAMS uninstall-includeHEADERS \
1378 + uninstall-info-am uninstall-libLTLIBRARIES uninstall-local \
1379 + uninstall-man uninstall-man1
1382 +# Install jconfig_api.h
1383 +install-data-local:
1384 + $(mkinstalldirs) $(DESTDIR)$(includedir)
1385 + $(INSTALL_HEADER) jconfig_api.h $(DESTDIR)$(includedir)/jconfig.h
1387 +# Uninstall jconfig_api.h
1388 +uninstall-local:
1389 + rm -f $(DESTDIR)$(includedir)/jconfig.h
1390 +dist-hook:
1391 + ( \
1392 + builddir=`pwd` ; \
1393 + cd $(srcdir) && \
1394 + ( \
1395 + for dir in $(DISTDIRS) ; do \
1396 + find $$dir -depth -print | egrep -v '(~$$)|(/CVS)|(/\.#)|(/\.deps)' \
1397 + | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
1398 + done \
1399 + ) \
1402 +# Run tests
1403 +test: check-local
1404 +check-local:
1405 + $(RM) testout*
1406 + ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg
1407 + ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg
1408 + ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm
1409 + ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
1410 + ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
1411 + ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
1412 + cmp $(srcdir)/testimg.ppm testout.ppm
1413 + cmp $(srcdir)/testimg.bmp testout.bmp
1414 + cmp $(srcdir)/testimg.jpg testout.jpg
1415 + cmp $(srcdir)/testimg.ppm testoutp.ppm
1416 + cmp $(srcdir)/testimgp.jpg testoutp.jpg
1417 + cmp $(srcdir)/testorig.jpg testoutt.jpg
1418 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
1419 +# Otherwise a system limit (for SysV at least) may be exceeded.
1420 +.NOEXPORT:
1421 diff --git a/README.1st b/README.1st
1422 new file mode 100755
1423 index 0000000..fcb0a86
1424 --- /dev/null
1425 +++ b/README.1st
1426 @@ -0,0 +1,23 @@
1427 +This package is identical to the IJG JPEG 6b release except that it
1428 +uses a modern build system based on the latest autoconf, automake, and
1429 +libtool. In fact, CVS versions of autoconf and libtool were used to
1430 +create this package. Later versions of the package are likely to use
1431 +released versions of autoconf and libtool.
1433 +The package is produced by Bob Friesenhahn <bfriesen@GraphicsMagick.org>
1434 +so that is where any bug reports pertaining to building this package
1435 +should be sent to.
1437 +An example build sequence for the package (should work for Linux, FreeBSD,
1438 +and OSX) is:
1440 + tar -xzvf libjpeg-6b.tar.gz
1441 + cd libjpeg-6b
1442 + ./configure --prefix=/place/to/install
1443 + make
1444 + make check
1445 + sudo make install
1447 +The package build has been verified to work for Windows MinGW/MSYS,
1448 +Apple's OSX "Panther", and Sun's Solaris 9.
1450 diff --git a/aclocal.m4 b/aclocal.m4
1451 new file mode 100755
1452 index 0000000..c6b83da
1453 --- /dev/null
1454 +++ b/aclocal.m4
1455 @@ -0,0 +1,7256 @@
1456 +# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1458 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
1459 +# 2005 Free Software Foundation, Inc.
1460 +# This file is free software; the Free Software Foundation
1461 +# gives unlimited permission to copy and/or distribute it,
1462 +# with or without modifications, as long as this notice is preserved.
1464 +# This program is distributed in the hope that it will be useful,
1465 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
1466 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
1467 +# PARTICULAR PURPOSE.
1469 +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1471 +# serial 48 AC_PROG_LIBTOOL
1474 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
1475 +# -----------------------------------------------------------
1476 +# If this macro is not defined by Autoconf, define it here.
1477 +m4_ifdef([AC_PROVIDE_IFELSE],
1478 + [],
1479 + [m4_define([AC_PROVIDE_IFELSE],
1480 + [m4_ifdef([AC_PROVIDE_$1],
1481 + [$2], [$3])])])
1484 +# AC_PROG_LIBTOOL
1485 +# ---------------
1486 +AC_DEFUN([AC_PROG_LIBTOOL],
1487 +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
1488 +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
1489 +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
1490 + AC_PROVIDE_IFELSE([AC_PROG_CXX],
1491 + [AC_LIBTOOL_CXX],
1492 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1493 + ])])
1494 +dnl And a similar setup for Fortran 77 support
1495 + AC_PROVIDE_IFELSE([AC_PROG_F77],
1496 + [AC_LIBTOOL_F77],
1497 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
1498 +])])
1500 +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
1501 +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
1502 +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
1503 + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
1504 + [AC_LIBTOOL_GCJ],
1505 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1506 + [AC_LIBTOOL_GCJ],
1507 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
1508 + [AC_LIBTOOL_GCJ],
1509 + [ifdef([AC_PROG_GCJ],
1510 + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1511 + ifdef([A][M_PROG_GCJ],
1512 + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
1513 + ifdef([LT_AC_PROG_GCJ],
1514 + [define([LT_AC_PROG_GCJ],
1515 + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
1516 +])])# AC_PROG_LIBTOOL
1519 +# _AC_PROG_LIBTOOL
1520 +# ----------------
1521 +AC_DEFUN([_AC_PROG_LIBTOOL],
1522 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
1523 +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
1524 +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
1525 +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
1527 +# This can be used to rebuild libtool when needed
1528 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
1530 +# Always use our own libtool.
1531 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1532 +AC_SUBST(LIBTOOL)dnl
1534 +# Prevent multiple expansion
1535 +define([AC_PROG_LIBTOOL], [])
1536 +])# _AC_PROG_LIBTOOL
1539 +# AC_LIBTOOL_SETUP
1540 +# ----------------
1541 +AC_DEFUN([AC_LIBTOOL_SETUP],
1542 +[AC_PREREQ(2.50)dnl
1543 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
1544 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
1545 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
1546 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
1547 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
1548 +AC_REQUIRE([AC_PROG_CC])dnl
1549 +AC_REQUIRE([AC_PROG_LD])dnl
1550 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
1551 +AC_REQUIRE([AC_PROG_NM])dnl
1553 +AC_REQUIRE([AC_PROG_LN_S])dnl
1554 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
1555 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1556 +AC_REQUIRE([AC_OBJEXT])dnl
1557 +AC_REQUIRE([AC_EXEEXT])dnl
1558 +dnl
1560 +AC_LIBTOOL_SYS_MAX_CMD_LEN
1561 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1562 +AC_LIBTOOL_OBJDIR
1564 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1565 +_LT_AC_PROG_ECHO_BACKSLASH
1567 +case $host_os in
1568 +aix3*)
1569 + # AIX sometimes has problems with the GCC collect2 program. For some
1570 + # reason, if we set the COLLECT_NAMES environment variable, the problems
1571 + # vanish in a puff of smoke.
1572 + if test "X${COLLECT_NAMES+set}" != Xset; then
1573 + COLLECT_NAMES=
1574 + export COLLECT_NAMES
1575 + fi
1576 + ;;
1577 +esac
1579 +# Sed substitution that helps us do robust quoting. It backslashifies
1580 +# metacharacters that are still active within double-quoted strings.
1581 +Xsed='sed -e 1s/^X//'
1582 +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
1584 +# Same as above, but do not quote variable references.
1585 +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
1587 +# Sed substitution to delay expansion of an escaped shell variable in a
1588 +# double_quote_subst'ed string.
1589 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
1591 +# Sed substitution to avoid accidental globbing in evaled expressions
1592 +no_glob_subst='s/\*/\\\*/g'
1594 +# Constants:
1595 +rm="rm -f"
1597 +# Global variables:
1598 +default_ofile=libtool
1599 +can_build_shared=yes
1601 +# All known linkers require a `.a' archive for static linking (except MSVC,
1602 +# which needs '.lib').
1603 +libext=a
1604 +ltmain="$ac_aux_dir/ltmain.sh"
1605 +ofile="$default_ofile"
1606 +with_gnu_ld="$lt_cv_prog_gnu_ld"
1608 +AC_CHECK_TOOL(AR, ar, false)
1609 +AC_CHECK_TOOL(RANLIB, ranlib, :)
1610 +AC_CHECK_TOOL(STRIP, strip, :)
1612 +old_CC="$CC"
1613 +old_CFLAGS="$CFLAGS"
1615 +# Set sane defaults for various variables
1616 +test -z "$AR" && AR=ar
1617 +test -z "$AR_FLAGS" && AR_FLAGS=cru
1618 +test -z "$AS" && AS=as
1619 +test -z "$CC" && CC=cc
1620 +test -z "$LTCC" && LTCC=$CC
1621 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
1622 +test -z "$DLLTOOL" && DLLTOOL=dlltool
1623 +test -z "$LD" && LD=ld
1624 +test -z "$LN_S" && LN_S="ln -s"
1625 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
1626 +test -z "$NM" && NM=nm
1627 +test -z "$SED" && SED=sed
1628 +test -z "$OBJDUMP" && OBJDUMP=objdump
1629 +test -z "$RANLIB" && RANLIB=:
1630 +test -z "$STRIP" && STRIP=:
1631 +test -z "$ac_objext" && ac_objext=o
1633 +# Determine commands to create old-style static archives.
1634 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
1635 +old_postinstall_cmds='chmod 644 $oldlib'
1636 +old_postuninstall_cmds=
1638 +if test -n "$RANLIB"; then
1639 + case $host_os in
1640 + openbsd*)
1641 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1642 + ;;
1643 + *)
1644 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
1645 + ;;
1646 + esac
1647 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
1650 +_LT_CC_BASENAME([$compiler])
1652 +# Only perform the check for file, if the check method requires it
1653 +case $deplibs_check_method in
1654 +file_magic*)
1655 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
1656 + AC_PATH_MAGIC
1657 + fi
1658 + ;;
1659 +esac
1661 +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
1662 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
1663 +enable_win32_dll=yes, enable_win32_dll=no)
1665 +AC_ARG_ENABLE([libtool-lock],
1666 + [AC_HELP_STRING([--disable-libtool-lock],
1667 + [avoid locking (might break parallel builds)])])
1668 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1670 +AC_ARG_WITH([pic],
1671 + [AC_HELP_STRING([--with-pic],
1672 + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
1673 + [pic_mode="$withval"],
1674 + [pic_mode=default])
1675 +test -z "$pic_mode" && pic_mode=default
1677 +# Use C for the default configuration in the libtool script
1678 +tagname=
1679 +AC_LIBTOOL_LANG_C_CONFIG
1680 +_LT_AC_TAGCONFIG
1681 +])# AC_LIBTOOL_SETUP
1684 +# _LT_AC_SYS_COMPILER
1685 +# -------------------
1686 +AC_DEFUN([_LT_AC_SYS_COMPILER],
1687 +[AC_REQUIRE([AC_PROG_CC])dnl
1689 +# If no C compiler was specified, use CC.
1690 +LTCC=${LTCC-"$CC"}
1692 +# If no C compiler flags were specified, use CFLAGS.
1693 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1695 +# Allow CC to be a program name with arguments.
1696 +compiler=$CC
1697 +])# _LT_AC_SYS_COMPILER
1700 +# _LT_CC_BASENAME(CC)
1701 +# -------------------
1702 +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
1703 +AC_DEFUN([_LT_CC_BASENAME],
1704 +[for cc_temp in $1""; do
1705 + case $cc_temp in
1706 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1707 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
1708 + \-*) ;;
1709 + *) break;;
1710 + esac
1711 +done
1712 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
1716 +# _LT_COMPILER_BOILERPLATE
1717 +# ------------------------
1718 +# Check for compiler boilerplate output or warnings with
1719 +# the simple compiler test code.
1720 +AC_DEFUN([_LT_COMPILER_BOILERPLATE],
1721 +[ac_outfile=conftest.$ac_objext
1722 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
1723 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1724 +_lt_compiler_boilerplate=`cat conftest.err`
1725 +$rm conftest*
1726 +])# _LT_COMPILER_BOILERPLATE
1729 +# _LT_LINKER_BOILERPLATE
1730 +# ----------------------
1731 +# Check for linker boilerplate output or warnings with
1732 +# the simple link test code.
1733 +AC_DEFUN([_LT_LINKER_BOILERPLATE],
1734 +[ac_outfile=conftest.$ac_objext
1735 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
1736 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
1737 +_lt_linker_boilerplate=`cat conftest.err`
1738 +$rm conftest*
1739 +])# _LT_LINKER_BOILERPLATE
1742 +# _LT_AC_SYS_LIBPATH_AIX
1743 +# ----------------------
1744 +# Links a minimal program and checks the executable
1745 +# for the system default hardcoded library path. In most cases,
1746 +# this is /usr/lib:/lib, but when the MPI compilers are used
1747 +# the location of the communication and MPI libs are included too.
1748 +# If we don't find anything, use the default library path according
1749 +# to the aix ld manual.
1750 +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
1751 +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
1752 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
1753 +}'`
1754 +# Check for a 64-bit object if we didn't find anything.
1755 +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; }
1756 +}'`; fi],[])
1757 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
1758 +])# _LT_AC_SYS_LIBPATH_AIX
1761 +# _LT_AC_SHELL_INIT(ARG)
1762 +# ----------------------
1763 +AC_DEFUN([_LT_AC_SHELL_INIT],
1764 +[ifdef([AC_DIVERSION_NOTICE],
1765 + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
1766 + [AC_DIVERT_PUSH(NOTICE)])
1768 +AC_DIVERT_POP
1769 +])# _LT_AC_SHELL_INIT
1772 +# _LT_AC_PROG_ECHO_BACKSLASH
1773 +# --------------------------
1774 +# Add some code to the start of the generated configure script which
1775 +# will find an echo command which doesn't interpret backslashes.
1776 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
1777 +[_LT_AC_SHELL_INIT([
1778 +# Check that we are running under the correct shell.
1779 +SHELL=${CONFIG_SHELL-/bin/sh}
1781 +case X$ECHO in
1782 +X*--fallback-echo)
1783 + # Remove one level of quotation (which was required for Make).
1784 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1785 + ;;
1786 +esac
1788 +echo=${ECHO-echo}
1789 +if test "X[$]1" = X--no-reexec; then
1790 + # Discard the --no-reexec flag, and continue.
1791 + shift
1792 +elif test "X[$]1" = X--fallback-echo; then
1793 + # Avoid inline document here, it may be left over
1795 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
1796 + # Yippee, $echo works!
1798 +else
1799 + # Restart under the correct shell.
1800 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
1803 +if test "X[$]1" = X--fallback-echo; then
1804 + # used as fallback echo
1805 + shift
1806 + cat <<EOF
1807 +[$]*
1808 +EOF
1809 + exit 0
1812 +# The HP-UX ksh and POSIX shell print the target directory to stdout
1813 +# if CDPATH is set.
1814 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
1816 +if test -z "$ECHO"; then
1817 +if test "X${echo_test_string+set}" != Xset; then
1818 +# find a string as large as possible, as long as the shell can cope with it
1819 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
1820 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
1821 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
1822 + echo_test_string=`eval $cmd` &&
1823 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
1824 + then
1825 + break
1826 + fi
1827 + done
1830 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1831 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1832 + test "X$echo_testing_string" = "X$echo_test_string"; then
1834 +else
1835 + # The Solaris, AIX, and Digital Unix default echo programs unquote
1836 + # backslashes. This makes it impossible to quote backslashes using
1837 + # echo "$something" | sed 's/\\/\\\\/g'
1839 + # So, first we look for a working echo in the user's PATH.
1841 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
1842 + for dir in $PATH /usr/ucb; do
1843 + IFS="$lt_save_ifs"
1844 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
1845 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
1846 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
1847 + test "X$echo_testing_string" = "X$echo_test_string"; then
1848 + echo="$dir/echo"
1849 + break
1850 + fi
1851 + done
1852 + IFS="$lt_save_ifs"
1854 + if test "X$echo" = Xecho; then
1855 + # We didn't find a better echo, so look for alternatives.
1856 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
1857 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
1858 + test "X$echo_testing_string" = "X$echo_test_string"; then
1859 + # This shell has a builtin print -r that does the trick.
1860 + echo='print -r'
1861 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
1862 + test "X$CONFIG_SHELL" != X/bin/ksh; then
1863 + # If we have ksh, try running configure again with it.
1864 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
1865 + export ORIGINAL_CONFIG_SHELL
1866 + CONFIG_SHELL=/bin/ksh
1867 + export CONFIG_SHELL
1868 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
1869 + else
1870 + # Try using printf.
1871 + echo='printf %s\n'
1872 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
1873 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
1874 + test "X$echo_testing_string" = "X$echo_test_string"; then
1875 + # Cool, printf works
1877 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1878 + test "X$echo_testing_string" = 'X\t' &&
1879 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1880 + test "X$echo_testing_string" = "X$echo_test_string"; then
1881 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
1882 + export CONFIG_SHELL
1883 + SHELL="$CONFIG_SHELL"
1884 + export SHELL
1885 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
1886 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
1887 + test "X$echo_testing_string" = 'X\t' &&
1888 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
1889 + test "X$echo_testing_string" = "X$echo_test_string"; then
1890 + echo="$CONFIG_SHELL [$]0 --fallback-echo"
1891 + else
1892 + # maybe with a smaller string...
1893 + prev=:
1895 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
1896 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
1897 + then
1898 + break
1899 + fi
1900 + prev="$cmd"
1901 + done
1903 + if test "$prev" != 'sed 50q "[$]0"'; then
1904 + echo_test_string=`eval $prev`
1905 + export echo_test_string
1906 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
1907 + else
1908 + # Oops. We lost completely, so just stick with echo.
1909 + echo=echo
1910 + fi
1911 + fi
1912 + fi
1913 + fi
1917 +# Copy echo and quote the copy suitably for passing to libtool from
1918 +# the Makefile, instead of quoting the original, which is used later.
1919 +ECHO=$echo
1920 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1921 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1924 +AC_SUBST(ECHO)
1925 +])])# _LT_AC_PROG_ECHO_BACKSLASH
1928 +# _LT_AC_LOCK
1929 +# -----------
1930 +AC_DEFUN([_LT_AC_LOCK],
1931 +[AC_ARG_ENABLE([libtool-lock],
1932 + [AC_HELP_STRING([--disable-libtool-lock],
1933 + [avoid locking (might break parallel builds)])])
1934 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
1936 +# Some flags need to be propagated to the compiler or linker for good
1937 +# libtool support.
1938 +case $host in
1939 +ia64-*-hpux*)
1940 + # Find out which ABI we are using.
1941 + echo 'int i;' > conftest.$ac_ext
1942 + if AC_TRY_EVAL(ac_compile); then
1943 + case `/usr/bin/file conftest.$ac_objext` in
1944 + *ELF-32*)
1945 + HPUX_IA64_MODE="32"
1946 + ;;
1947 + *ELF-64*)
1948 + HPUX_IA64_MODE="64"
1949 + ;;
1950 + esac
1951 + fi
1952 + rm -rf conftest*
1953 + ;;
1954 +*-*-irix6*)
1955 + # Find out which ABI we are using.
1956 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
1957 + if AC_TRY_EVAL(ac_compile); then
1958 + if test "$lt_cv_prog_gnu_ld" = yes; then
1959 + case `/usr/bin/file conftest.$ac_objext` in
1960 + *32-bit*)
1961 + LD="${LD-ld} -melf32bsmip"
1962 + ;;
1963 + *N32*)
1964 + LD="${LD-ld} -melf32bmipn32"
1965 + ;;
1966 + *64-bit*)
1967 + LD="${LD-ld} -melf64bmip"
1968 + ;;
1969 + esac
1970 + else
1971 + case `/usr/bin/file conftest.$ac_objext` in
1972 + *32-bit*)
1973 + LD="${LD-ld} -32"
1974 + ;;
1975 + *N32*)
1976 + LD="${LD-ld} -n32"
1977 + ;;
1978 + *64-bit*)
1979 + LD="${LD-ld} -64"
1980 + ;;
1981 + esac
1982 + fi
1983 + fi
1984 + rm -rf conftest*
1985 + ;;
1987 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
1988 + # Find out which ABI we are using.
1989 + echo 'int i;' > conftest.$ac_ext
1990 + if AC_TRY_EVAL(ac_compile); then
1991 + case `/usr/bin/file conftest.o` in
1992 + *32-bit*)
1993 + case $host in
1994 + x86_64-*linux*)
1995 + LD="${LD-ld} -m elf_i386"
1996 + ;;
1997 + ppc64-*linux*|powerpc64-*linux*)
1998 + LD="${LD-ld} -m elf32ppclinux"
1999 + ;;
2000 + s390x-*linux*)
2001 + LD="${LD-ld} -m elf_s390"
2002 + ;;
2003 + sparc64-*linux*)
2004 + LD="${LD-ld} -m elf32_sparc"
2005 + ;;
2006 + esac
2007 + ;;
2008 + *64-bit*)
2009 + case $host in
2010 + x86_64-*linux*)
2011 + LD="${LD-ld} -m elf_x86_64"
2012 + ;;
2013 + ppc*-*linux*|powerpc*-*linux*)
2014 + LD="${LD-ld} -m elf64ppc"
2015 + ;;
2016 + s390*-*linux*)
2017 + LD="${LD-ld} -m elf64_s390"
2018 + ;;
2019 + sparc*-*linux*)
2020 + LD="${LD-ld} -m elf64_sparc"
2021 + ;;
2022 + esac
2023 + ;;
2024 + esac
2025 + fi
2026 + rm -rf conftest*
2027 + ;;
2029 +*-*-sco3.2v5*)
2030 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2031 + SAVE_CFLAGS="$CFLAGS"
2032 + CFLAGS="$CFLAGS -belf"
2033 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
2034 + [AC_LANG_PUSH(C)
2035 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
2036 + AC_LANG_POP])
2037 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2038 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2039 + CFLAGS="$SAVE_CFLAGS"
2040 + fi
2041 + ;;
2042 +sparc*-*solaris*)
2043 + # Find out which ABI we are using.
2044 + echo 'int i;' > conftest.$ac_ext
2045 + if AC_TRY_EVAL(ac_compile); then
2046 + case `/usr/bin/file conftest.o` in
2047 + *64-bit*)
2048 + case $lt_cv_prog_gnu_ld in
2049 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
2050 + *) LD="${LD-ld} -64" ;;
2051 + esac
2052 + ;;
2053 + esac
2054 + fi
2055 + rm -rf conftest*
2056 + ;;
2058 +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
2059 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
2060 + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
2061 + AC_CHECK_TOOL(AS, as, false)
2062 + AC_CHECK_TOOL(OBJDUMP, objdump, false)
2063 + ;;
2064 + ])
2065 +esac
2067 +need_locks="$enable_libtool_lock"
2069 +])# _LT_AC_LOCK
2072 +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2073 +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
2074 +# ----------------------------------------------------------------
2075 +# Check whether the given compiler option works
2076 +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
2077 +[AC_REQUIRE([LT_AC_PROG_SED])
2078 +AC_CACHE_CHECK([$1], [$2],
2079 + [$2=no
2080 + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
2081 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2082 + lt_compiler_flag="$3"
2083 + # Insert the option either (1) after the last *FLAGS variable, or
2084 + # (2) before a word containing "conftest.", or (3) at the end.
2085 + # Note that $ac_compile itself does not contain backslashes and begins
2086 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2087 + # The option is referenced via a variable to avoid confusing sed.
2088 + lt_compile=`echo "$ac_compile" | $SED \
2089 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2090 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2091 + -e 's:$: $lt_compiler_flag:'`
2092 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2093 + (eval "$lt_compile" 2>conftest.err)
2094 + ac_status=$?
2095 + cat conftest.err >&AS_MESSAGE_LOG_FD
2096 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2097 + if (exit $ac_status) && test -s "$ac_outfile"; then
2098 + # The compiler can only warn and ignore the option if not recognized
2099 + # So say no if there are warnings other than the usual output.
2100 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
2101 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2102 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
2103 + $2=yes
2104 + fi
2105 + fi
2106 + $rm conftest*
2109 +if test x"[$]$2" = xyes; then
2110 + ifelse([$5], , :, [$5])
2111 +else
2112 + ifelse([$6], , :, [$6])
2114 +])# AC_LIBTOOL_COMPILER_OPTION
2117 +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
2118 +# [ACTION-SUCCESS], [ACTION-FAILURE])
2119 +# ------------------------------------------------------------
2120 +# Check whether the given compiler option works
2121 +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
2122 +[AC_CACHE_CHECK([$1], [$2],
2123 + [$2=no
2124 + save_LDFLAGS="$LDFLAGS"
2125 + LDFLAGS="$LDFLAGS $3"
2126 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
2127 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
2128 + # The linker can only warn and ignore the option if not recognized
2129 + # So say no if there are warnings
2130 + if test -s conftest.err; then
2131 + # Append any errors to the config.log.
2132 + cat conftest.err 1>&AS_MESSAGE_LOG_FD
2133 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
2134 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
2135 + if diff conftest.exp conftest.er2 >/dev/null; then
2136 + $2=yes
2137 + fi
2138 + else
2139 + $2=yes
2140 + fi
2141 + fi
2142 + $rm conftest*
2143 + LDFLAGS="$save_LDFLAGS"
2146 +if test x"[$]$2" = xyes; then
2147 + ifelse([$4], , :, [$4])
2148 +else
2149 + ifelse([$5], , :, [$5])
2151 +])# AC_LIBTOOL_LINKER_OPTION
2154 +# AC_LIBTOOL_SYS_MAX_CMD_LEN
2155 +# --------------------------
2156 +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
2157 +[# find the maximum length of command line arguments
2158 +AC_MSG_CHECKING([the maximum length of command line arguments])
2159 +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
2160 + i=0
2161 + teststring="ABCD"
2163 + case $build_os in
2164 + msdosdjgpp*)
2165 + # On DJGPP, this test can blow up pretty badly due to problems in libc
2166 + # (any single argument exceeding 2000 bytes causes a buffer overrun
2167 + # during glob expansion). Even if it were fixed, the result of this
2168 + # check would be larger than it should be.
2169 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
2170 + ;;
2172 + gnu*)
2173 + # Under GNU Hurd, this test is not required because there is
2174 + # no limit to the length of command line arguments.
2175 + # Libtool will interpret -1 as no limit whatsoever
2176 + lt_cv_sys_max_cmd_len=-1;
2177 + ;;
2179 + cygwin* | mingw*)
2180 + # On Win9x/ME, this test blows up -- it succeeds, but takes
2181 + # about 5 minutes as the teststring grows exponentially.
2182 + # Worse, since 9x/ME are not pre-emptively multitasking,
2183 + # you end up with a "frozen" computer, even though with patience
2184 + # the test eventually succeeds (with a max line length of 256k).
2185 + # Instead, let's just punt: use the minimum linelength reported by
2186 + # all of the supported platforms: 8192 (on NT/2K/XP).
2187 + lt_cv_sys_max_cmd_len=8192;
2188 + ;;
2190 + amigaos*)
2191 + # On AmigaOS with pdksh, this test takes hours, literally.
2192 + # So we just punt and use a minimum line length of 8192.
2193 + lt_cv_sys_max_cmd_len=8192;
2194 + ;;
2196 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
2197 + # This has been around since 386BSD, at least. Likely further.
2198 + if test -x /sbin/sysctl; then
2199 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
2200 + elif test -x /usr/sbin/sysctl; then
2201 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
2202 + else
2203 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
2204 + fi
2205 + # And add a safety zone
2206 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
2207 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
2208 + ;;
2210 + interix*)
2211 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
2212 + lt_cv_sys_max_cmd_len=196608
2213 + ;;
2215 + osf*)
2216 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
2217 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
2218 + # nice to cause kernel panics so lets avoid the loop below.
2219 + # First set a reasonable default.
2220 + lt_cv_sys_max_cmd_len=16384
2222 + if test -x /sbin/sysconfig; then
2223 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
2224 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
2225 + esac
2226 + fi
2227 + ;;
2228 + sco3.2v5*)
2229 + lt_cv_sys_max_cmd_len=102400
2230 + ;;
2231 + sysv5* | sco5v6* | sysv4.2uw2*)
2232 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
2233 + if test -n "$kargmax"; then
2234 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
2235 + else
2236 + lt_cv_sys_max_cmd_len=32768
2237 + fi
2238 + ;;
2239 + *)
2240 + # If test is not a shell built-in, we'll probably end up computing a
2241 + # maximum length that is only half of the actual maximum length, but
2242 + # we can't tell.
2243 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
2244 + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
2245 + = "XX$teststring") >/dev/null 2>&1 &&
2246 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
2247 + lt_cv_sys_max_cmd_len=$new_result &&
2248 + test $i != 17 # 1/2 MB should be enough
2249 + do
2250 + i=`expr $i + 1`
2251 + teststring=$teststring$teststring
2252 + done
2253 + teststring=
2254 + # Add a significant safety factor because C++ compilers can tack on massive
2255 + # amounts of additional arguments before passing them to the linker.
2256 + # It appears as though 1/2 is a usable value.
2257 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
2258 + ;;
2259 + esac
2261 +if test -n $lt_cv_sys_max_cmd_len ; then
2262 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
2263 +else
2264 + AC_MSG_RESULT(none)
2266 +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
2269 +# _LT_AC_CHECK_DLFCN
2270 +# ------------------
2271 +AC_DEFUN([_LT_AC_CHECK_DLFCN],
2272 +[AC_CHECK_HEADERS(dlfcn.h)dnl
2273 +])# _LT_AC_CHECK_DLFCN
2276 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
2277 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
2278 +# ---------------------------------------------------------------------
2279 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
2280 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2281 +if test "$cross_compiling" = yes; then :
2282 + [$4]
2283 +else
2284 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
2285 + lt_status=$lt_dlunknown
2286 + cat > conftest.$ac_ext <<EOF
2287 +[#line __oline__ "configure"
2288 +#include "confdefs.h"
2290 +#if HAVE_DLFCN_H
2291 +#include <dlfcn.h>
2292 +#endif
2294 +#include <stdio.h>
2296 +#ifdef RTLD_GLOBAL
2297 +# define LT_DLGLOBAL RTLD_GLOBAL
2298 +#else
2299 +# ifdef DL_GLOBAL
2300 +# define LT_DLGLOBAL DL_GLOBAL
2301 +# else
2302 +# define LT_DLGLOBAL 0
2303 +# endif
2304 +#endif
2306 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
2307 + find out it does not work in some platform. */
2308 +#ifndef LT_DLLAZY_OR_NOW
2309 +# ifdef RTLD_LAZY
2310 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
2311 +# else
2312 +# ifdef DL_LAZY
2313 +# define LT_DLLAZY_OR_NOW DL_LAZY
2314 +# else
2315 +# ifdef RTLD_NOW
2316 +# define LT_DLLAZY_OR_NOW RTLD_NOW
2317 +# else
2318 +# ifdef DL_NOW
2319 +# define LT_DLLAZY_OR_NOW DL_NOW
2320 +# else
2321 +# define LT_DLLAZY_OR_NOW 0
2322 +# endif
2323 +# endif
2324 +# endif
2325 +# endif
2326 +#endif
2328 +#ifdef __cplusplus
2329 +extern "C" void exit (int);
2330 +#endif
2332 +void fnord() { int i=42;}
2333 +int main ()
2335 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2336 + int status = $lt_dlunknown;
2338 + if (self)
2340 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2341 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2342 + /* dlclose (self); */
2344 + else
2345 + puts (dlerror ());
2347 + exit (status);
2349 +EOF
2350 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
2351 + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
2352 + lt_status=$?
2353 + case x$lt_status in
2354 + x$lt_dlno_uscore) $1 ;;
2355 + x$lt_dlneed_uscore) $2 ;;
2356 + x$lt_dlunknown|x*) $3 ;;
2357 + esac
2358 + else :
2359 + # compilation failed
2360 + $3
2361 + fi
2363 +rm -fr conftest*
2364 +])# _LT_AC_TRY_DLOPEN_SELF
2367 +# AC_LIBTOOL_DLOPEN_SELF
2368 +# ----------------------
2369 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
2370 +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
2371 +if test "x$enable_dlopen" != xyes; then
2372 + enable_dlopen=unknown
2373 + enable_dlopen_self=unknown
2374 + enable_dlopen_self_static=unknown
2375 +else
2376 + lt_cv_dlopen=no
2377 + lt_cv_dlopen_libs=
2379 + case $host_os in
2380 + beos*)
2381 + lt_cv_dlopen="load_add_on"
2382 + lt_cv_dlopen_libs=
2383 + lt_cv_dlopen_self=yes
2384 + ;;
2386 + mingw* | pw32*)
2387 + lt_cv_dlopen="LoadLibrary"
2388 + lt_cv_dlopen_libs=
2389 + ;;
2391 + cygwin*)
2392 + lt_cv_dlopen="dlopen"
2393 + lt_cv_dlopen_libs=
2394 + ;;
2396 + darwin*)
2397 + # if libdl is installed we need to link against it
2398 + AC_CHECK_LIB([dl], [dlopen],
2399 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
2400 + lt_cv_dlopen="dyld"
2401 + lt_cv_dlopen_libs=
2402 + lt_cv_dlopen_self=yes
2403 + ])
2404 + ;;
2406 + *)
2407 + AC_CHECK_FUNC([shl_load],
2408 + [lt_cv_dlopen="shl_load"],
2409 + [AC_CHECK_LIB([dld], [shl_load],
2410 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
2411 + [AC_CHECK_FUNC([dlopen],
2412 + [lt_cv_dlopen="dlopen"],
2413 + [AC_CHECK_LIB([dl], [dlopen],
2414 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
2415 + [AC_CHECK_LIB([svld], [dlopen],
2416 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
2417 + [AC_CHECK_LIB([dld], [dld_link],
2418 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
2419 + ])
2420 + ])
2421 + ])
2422 + ])
2423 + ])
2424 + ;;
2425 + esac
2427 + if test "x$lt_cv_dlopen" != xno; then
2428 + enable_dlopen=yes
2429 + else
2430 + enable_dlopen=no
2431 + fi
2433 + case $lt_cv_dlopen in
2434 + dlopen)
2435 + save_CPPFLAGS="$CPPFLAGS"
2436 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
2438 + save_LDFLAGS="$LDFLAGS"
2439 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
2441 + save_LIBS="$LIBS"
2442 + LIBS="$lt_cv_dlopen_libs $LIBS"
2444 + AC_CACHE_CHECK([whether a program can dlopen itself],
2445 + lt_cv_dlopen_self, [dnl
2446 + _LT_AC_TRY_DLOPEN_SELF(
2447 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2448 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2449 + ])
2451 + if test "x$lt_cv_dlopen_self" = xyes; then
2452 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2453 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2454 + lt_cv_dlopen_self_static, [dnl
2455 + _LT_AC_TRY_DLOPEN_SELF(
2456 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2457 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2458 + ])
2459 + fi
2461 + CPPFLAGS="$save_CPPFLAGS"
2462 + LDFLAGS="$save_LDFLAGS"
2463 + LIBS="$save_LIBS"
2464 + ;;
2465 + esac
2467 + case $lt_cv_dlopen_self in
2468 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2469 + *) enable_dlopen_self=unknown ;;
2470 + esac
2472 + case $lt_cv_dlopen_self_static in
2473 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2474 + *) enable_dlopen_self_static=unknown ;;
2475 + esac
2477 +])# AC_LIBTOOL_DLOPEN_SELF
2480 +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
2481 +# ---------------------------------
2482 +# Check to see if options -c and -o are simultaneously supported by compiler
2483 +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
2484 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
2485 +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2486 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2487 + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2488 + $rm -r conftest 2>/dev/null
2489 + mkdir conftest
2490 + cd conftest
2491 + mkdir out
2492 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
2494 + lt_compiler_flag="-o out/conftest2.$ac_objext"
2495 + # Insert the option either (1) after the last *FLAGS variable, or
2496 + # (2) before a word containing "conftest.", or (3) at the end.
2497 + # Note that $ac_compile itself does not contain backslashes and begins
2498 + # with a dollar sign (not a hyphen), so the echo should work correctly.
2499 + lt_compile=`echo "$ac_compile" | $SED \
2500 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2501 + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2502 + -e 's:$: $lt_compiler_flag:'`
2503 + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2504 + (eval "$lt_compile" 2>out/conftest.err)
2505 + ac_status=$?
2506 + cat out/conftest.err >&AS_MESSAGE_LOG_FD
2507 + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2508 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
2509 + then
2510 + # The compiler can only warn and ignore the option if not recognized
2511 + # So say no if there are warnings
2512 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
2513 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2514 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2515 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2516 + fi
2517 + fi
2518 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
2519 + $rm conftest*
2520 + # SGI C++ compiler will create directory out/ii_files/ for
2521 + # template instantiation
2522 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
2523 + $rm out/* && rmdir out
2524 + cd ..
2525 + rmdir conftest
2526 + $rm conftest*
2528 +])# AC_LIBTOOL_PROG_CC_C_O
2531 +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
2532 +# -----------------------------------------
2533 +# Check to see if we can do hard links to lock some files if needed
2534 +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
2535 +[AC_REQUIRE([_LT_AC_LOCK])dnl
2537 +hard_links="nottested"
2538 +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
2539 + # do not overwrite the value of need_locks provided by the user
2540 + AC_MSG_CHECKING([if we can lock with hard links])
2541 + hard_links=yes
2542 + $rm conftest*
2543 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2544 + touch conftest.a
2545 + ln conftest.a conftest.b 2>&5 || hard_links=no
2546 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
2547 + AC_MSG_RESULT([$hard_links])
2548 + if test "$hard_links" = no; then
2549 + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
2550 + need_locks=warn
2551 + fi
2552 +else
2553 + need_locks=no
2555 +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
2558 +# AC_LIBTOOL_OBJDIR
2559 +# -----------------
2560 +AC_DEFUN([AC_LIBTOOL_OBJDIR],
2561 +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2562 +[rm -f .libs 2>/dev/null
2563 +mkdir .libs 2>/dev/null
2564 +if test -d .libs; then
2565 + lt_cv_objdir=.libs
2566 +else
2567 + # MS-DOS does not allow filenames that begin with a dot.
2568 + lt_cv_objdir=_libs
2570 +rmdir .libs 2>/dev/null])
2571 +objdir=$lt_cv_objdir
2572 +])# AC_LIBTOOL_OBJDIR
2575 +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
2576 +# ----------------------------------------------
2577 +# Check hardcoding attributes.
2578 +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
2579 +[AC_MSG_CHECKING([how to hardcode library paths into programs])
2580 +_LT_AC_TAGVAR(hardcode_action, $1)=
2581 +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
2582 + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
2583 + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
2585 + # We can hardcode non-existant directories.
2586 + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
2587 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
2588 + # have to relink, otherwise we might link with an installed library
2589 + # when we should be linking with a yet-to-be-installed one
2590 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
2591 + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
2592 + # Linking always hardcodes the temporary library directory.
2593 + _LT_AC_TAGVAR(hardcode_action, $1)=relink
2594 + else
2595 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2596 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2597 + fi
2598 +else
2599 + # We cannot hardcode anything, or else we can only hardcode existing
2600 + # directories.
2601 + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
2603 +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
2605 +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
2606 + # Fast installation is not supported
2607 + enable_fast_install=no
2608 +elif test "$shlibpath_overrides_runpath" = yes ||
2609 + test "$enable_shared" = no; then
2610 + # Fast installation is not necessary
2611 + enable_fast_install=needless
2613 +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
2616 +# AC_LIBTOOL_SYS_LIB_STRIP
2617 +# ------------------------
2618 +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
2619 +[striplib=
2620 +old_striplib=
2621 +AC_MSG_CHECKING([whether stripping libraries is possible])
2622 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
2623 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2624 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2625 + AC_MSG_RESULT([yes])
2626 +else
2627 +# FIXME - insert some real tests, host_os isn't really good enough
2628 + case $host_os in
2629 + darwin*)
2630 + if test -n "$STRIP" ; then
2631 + striplib="$STRIP -x"
2632 + AC_MSG_RESULT([yes])
2633 + else
2634 + AC_MSG_RESULT([no])
2636 + ;;
2637 + *)
2638 + AC_MSG_RESULT([no])
2639 + ;;
2640 + esac
2642 +])# AC_LIBTOOL_SYS_LIB_STRIP
2645 +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
2646 +# -----------------------------
2647 +# PORTME Fill in your ld.so characteristics
2648 +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
2649 +[AC_MSG_CHECKING([dynamic linker characteristics])
2650 +library_names_spec=
2651 +libname_spec='lib$name'
2652 +soname_spec=
2653 +shrext_cmds=".so"
2654 +postinstall_cmds=
2655 +postuninstall_cmds=
2656 +finish_cmds=
2657 +finish_eval=
2658 +shlibpath_var=
2659 +shlibpath_overrides_runpath=unknown
2660 +version_type=none
2661 +dynamic_linker="$host_os ld.so"
2662 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
2663 +if test "$GCC" = yes; then
2664 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2665 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
2666 + # if the path contains ";" then we assume it to be the separator
2667 + # otherwise default to the standard path separator (i.e. ":") - it is
2668 + # assumed that no part of a normal pathname contains ";" but that should
2669 + # okay in the real world where ";" in dirpaths is itself problematic.
2670 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2671 + else
2672 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2673 + fi
2674 +else
2675 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2677 +need_lib_prefix=unknown
2678 +hardcode_into_libs=no
2680 +# when you set need_version to no, make sure it does not cause -set_version
2681 +# flags to be left without arguments
2682 +need_version=unknown
2684 +case $host_os in
2685 +aix3*)
2686 + version_type=linux
2687 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
2688 + shlibpath_var=LIBPATH
2690 + # AIX 3 has no versioning support, so we append a major version to the name.
2691 + soname_spec='${libname}${release}${shared_ext}$major'
2692 + ;;
2694 +aix4* | aix5*)
2695 + version_type=linux
2696 + need_lib_prefix=no
2697 + need_version=no
2698 + hardcode_into_libs=yes
2699 + if test "$host_cpu" = ia64; then
2700 + # AIX 5 supports IA64
2701 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
2702 + shlibpath_var=LD_LIBRARY_PATH
2703 + else
2704 + # With GCC up to 2.95.x, collect2 would create an import file
2705 + # for dependence libraries. The import file would start with
2706 + # the line `#! .'. This would cause the generated library to
2707 + # depend on `.', always an invalid library. This was fixed in
2708 + # development snapshots of GCC prior to 3.0.
2709 + case $host_os in
2710 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2711 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2712 + echo ' yes '
2713 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2715 + else
2716 + can_build_shared=no
2717 + fi
2718 + ;;
2719 + esac
2720 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
2721 + # soname into executable. Probably we can add versioning support to
2722 + # collect2, so additional links can be useful in future.
2723 + if test "$aix_use_runtimelinking" = yes; then
2724 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2725 + # instead of lib<name>.a to let people know that these are not
2726 + # typical AIX shared libraries.
2727 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2728 + else
2729 + # We preserve .a as extension for shared libraries through AIX4.2
2730 + # and later when we are not doing run time linking.
2731 + library_names_spec='${libname}${release}.a $libname.a'
2732 + soname_spec='${libname}${release}${shared_ext}$major'
2733 + fi
2734 + shlibpath_var=LIBPATH
2735 + fi
2736 + ;;
2738 +amigaos*)
2739 + library_names_spec='$libname.ixlibrary $libname.a'
2740 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
2741 + 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'
2742 + ;;
2744 +beos*)
2745 + library_names_spec='${libname}${shared_ext}'
2746 + dynamic_linker="$host_os ld.so"
2747 + shlibpath_var=LIBRARY_PATH
2748 + ;;
2750 +bsdi[[45]]*)
2751 + version_type=linux
2752 + need_version=no
2753 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2754 + soname_spec='${libname}${release}${shared_ext}$major'
2755 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2756 + shlibpath_var=LD_LIBRARY_PATH
2757 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2758 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2759 + # the default ld.so.conf also contains /usr/contrib/lib and
2760 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2761 + # libtool to hard-code these into programs
2762 + ;;
2764 +cygwin* | mingw* | pw32*)
2765 + version_type=windows
2766 + shrext_cmds=".dll"
2767 + need_version=no
2768 + need_lib_prefix=no
2770 + case $GCC,$host_os in
2771 + yes,cygwin* | yes,mingw* | yes,pw32*)
2772 + library_names_spec='$libname.dll.a'
2773 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
2774 + postinstall_cmds='base_file=`basename \${file}`~
2775 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
2776 + dldir=$destdir/`dirname \$dlpath`~
2777 + test -d \$dldir || mkdir -p \$dldir~
2778 + $install_prog $dir/$dlname \$dldir/$dlname~
2779 + chmod a+x \$dldir/$dlname'
2780 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2781 + dlpath=$dir/\$dldll~
2782 + $rm \$dlpath'
2783 + shlibpath_overrides_runpath=yes
2785 + case $host_os in
2786 + cygwin*)
2787 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2788 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2789 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
2790 + ;;
2791 + mingw*)
2792 + # MinGW DLLs use traditional 'lib' prefix
2793 + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2794 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
2795 + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
2796 + # It is most probably a Windows format PATH printed by
2797 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
2798 + # path with ; separators, and with drive letters. We can handle the
2799 + # drive letters (cygwin fileutils understands them), so leave them,
2800 + # especially as we might pass files found there to a mingw objdump,
2801 + # which wouldn't understand a cygwinified path. Ahh.
2802 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2803 + else
2804 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2805 + fi
2806 + ;;
2807 + pw32*)
2808 + # pw32 DLLs use 'pw' prefix rather than 'lib'
2809 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
2810 + ;;
2811 + esac
2812 + ;;
2814 + *)
2815 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2816 + ;;
2817 + esac
2818 + dynamic_linker='Win32 ld.exe'
2819 + # FIXME: first we should search . and the directory the executable is in
2820 + shlibpath_var=PATH
2821 + ;;
2823 +darwin* | rhapsody*)
2824 + dynamic_linker="$host_os dyld"
2825 + version_type=darwin
2826 + need_lib_prefix=no
2827 + need_version=no
2828 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
2829 + soname_spec='${libname}${release}${major}$shared_ext'
2830 + shlibpath_overrides_runpath=yes
2831 + shlibpath_var=DYLD_LIBRARY_PATH
2832 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2833 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
2834 + if test "$GCC" = yes; then
2835 + 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"`
2836 + else
2837 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2838 + fi
2839 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2840 + ;;
2842 +dgux*)
2843 + version_type=linux
2844 + need_lib_prefix=no
2845 + need_version=no
2846 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
2847 + soname_spec='${libname}${release}${shared_ext}$major'
2848 + shlibpath_var=LD_LIBRARY_PATH
2849 + ;;
2851 +freebsd1*)
2852 + dynamic_linker=no
2853 + ;;
2855 +kfreebsd*-gnu)
2856 + version_type=linux
2857 + need_lib_prefix=no
2858 + need_version=no
2859 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2860 + soname_spec='${libname}${release}${shared_ext}$major'
2861 + shlibpath_var=LD_LIBRARY_PATH
2862 + shlibpath_overrides_runpath=no
2863 + hardcode_into_libs=yes
2864 + dynamic_linker='GNU ld.so'
2865 + ;;
2867 +freebsd* | dragonfly*)
2868 + # DragonFly does not have aout. When/if they implement a new
2869 + # versioning mechanism, adjust this.
2870 + if test -x /usr/bin/objformat; then
2871 + objformat=`/usr/bin/objformat`
2872 + else
2873 + case $host_os in
2874 + freebsd[[123]]*) objformat=aout ;;
2875 + *) objformat=elf ;;
2876 + esac
2877 + fi
2878 + version_type=freebsd-$objformat
2879 + case $version_type in
2880 + freebsd-elf*)
2881 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2882 + need_version=no
2883 + need_lib_prefix=no
2884 + ;;
2885 + freebsd-*)
2886 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2887 + need_version=yes
2888 + ;;
2889 + esac
2890 + shlibpath_var=LD_LIBRARY_PATH
2891 + case $host_os in
2892 + freebsd2*)
2893 + shlibpath_overrides_runpath=yes
2894 + ;;
2895 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2896 + shlibpath_overrides_runpath=yes
2897 + hardcode_into_libs=yes
2898 + ;;
2899 + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2900 + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2901 + shlibpath_overrides_runpath=no
2902 + hardcode_into_libs=yes
2903 + ;;
2904 + freebsd*) # from 4.6 on
2905 + shlibpath_overrides_runpath=yes
2906 + hardcode_into_libs=yes
2907 + ;;
2908 + esac
2909 + ;;
2911 +gnu*)
2912 + version_type=linux
2913 + need_lib_prefix=no
2914 + need_version=no
2915 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
2916 + soname_spec='${libname}${release}${shared_ext}$major'
2917 + shlibpath_var=LD_LIBRARY_PATH
2918 + hardcode_into_libs=yes
2919 + ;;
2921 +hpux9* | hpux10* | hpux11*)
2922 + # Give a soname corresponding to the major version so that dld.sl refuses to
2923 + # link against other versions.
2924 + version_type=sunos
2925 + need_lib_prefix=no
2926 + need_version=no
2927 + case $host_cpu in
2928 + ia64*)
2929 + shrext_cmds='.so'
2930 + hardcode_into_libs=yes
2931 + dynamic_linker="$host_os dld.so"
2932 + shlibpath_var=LD_LIBRARY_PATH
2933 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2934 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2935 + soname_spec='${libname}${release}${shared_ext}$major'
2936 + if test "X$HPUX_IA64_MODE" = X32; then
2937 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2938 + else
2939 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2940 + fi
2941 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2942 + ;;
2943 + hppa*64*)
2944 + shrext_cmds='.sl'
2945 + hardcode_into_libs=yes
2946 + dynamic_linker="$host_os dld.sl"
2947 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2948 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2949 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2950 + soname_spec='${libname}${release}${shared_ext}$major'
2951 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2952 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2953 + ;;
2954 + *)
2955 + shrext_cmds='.sl'
2956 + dynamic_linker="$host_os dld.sl"
2957 + shlibpath_var=SHLIB_PATH
2958 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2959 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
2960 + soname_spec='${libname}${release}${shared_ext}$major'
2961 + ;;
2962 + esac
2963 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2964 + postinstall_cmds='chmod 555 $lib'
2965 + ;;
2967 +interix3*)
2968 + version_type=linux
2969 + need_lib_prefix=no
2970 + need_version=no
2971 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2972 + soname_spec='${libname}${release}${shared_ext}$major'
2973 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2974 + shlibpath_var=LD_LIBRARY_PATH
2975 + shlibpath_overrides_runpath=no
2976 + hardcode_into_libs=yes
2977 + ;;
2979 +irix5* | irix6* | nonstopux*)
2980 + case $host_os in
2981 + nonstopux*) version_type=nonstopux ;;
2982 + *)
2983 + if test "$lt_cv_prog_gnu_ld" = yes; then
2984 + version_type=linux
2985 + else
2986 + version_type=irix
2987 + fi ;;
2988 + esac
2989 + need_lib_prefix=no
2990 + need_version=no
2991 + soname_spec='${libname}${release}${shared_ext}$major'
2992 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
2993 + case $host_os in
2994 + irix5* | nonstopux*)
2995 + libsuff= shlibsuff=
2996 + ;;
2997 + *)
2998 + case $LD in # libtool.m4 will add one of these switches to LD
2999 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
3000 + libsuff= shlibsuff= libmagic=32-bit;;
3001 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
3002 + libsuff=32 shlibsuff=N32 libmagic=N32;;
3003 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
3004 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
3005 + *) libsuff= shlibsuff= libmagic=never-match;;
3006 + esac
3007 + ;;
3008 + esac
3009 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3010 + shlibpath_overrides_runpath=no
3011 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3012 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3013 + hardcode_into_libs=yes
3014 + ;;
3016 +# No shared lib support for Linux oldld, aout, or coff.
3017 +linux*oldld* | linux*aout* | linux*coff*)
3018 + dynamic_linker=no
3019 + ;;
3021 +# This must be Linux ELF.
3022 +linux*)
3023 + version_type=linux
3024 + need_lib_prefix=no
3025 + need_version=no
3026 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3027 + soname_spec='${libname}${release}${shared_ext}$major'
3028 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3029 + shlibpath_var=LD_LIBRARY_PATH
3030 + shlibpath_overrides_runpath=no
3031 + # This implies no fast_install, which is unacceptable.
3032 + # Some rework will be needed to allow for fast_install
3033 + # before this can be enabled.
3034 + hardcode_into_libs=yes
3036 + # Append ld.so.conf contents to the search path
3037 + if test -f /etc/ld.so.conf; then
3038 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
3039 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
3040 + fi
3042 + # We used to test for /lib/ld.so.1 and disable shared libraries on
3043 + # powerpc, because MkLinux only supported shared libraries with the
3044 + # GNU dynamic linker. Since this was broken with cross compilers,
3045 + # most powerpc-linux boxes support dynamic linking these days and
3046 + # people can always --disable-shared, the test was removed, and we
3047 + # assume the GNU/Linux dynamic linker is in use.
3048 + dynamic_linker='GNU/Linux ld.so'
3049 + ;;
3051 +knetbsd*-gnu)
3052 + version_type=linux
3053 + need_lib_prefix=no
3054 + need_version=no
3055 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3056 + soname_spec='${libname}${release}${shared_ext}$major'
3057 + shlibpath_var=LD_LIBRARY_PATH
3058 + shlibpath_overrides_runpath=no
3059 + hardcode_into_libs=yes
3060 + dynamic_linker='GNU ld.so'
3061 + ;;
3063 +netbsd*)
3064 + version_type=sunos
3065 + need_lib_prefix=no
3066 + need_version=no
3067 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3068 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3069 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3070 + dynamic_linker='NetBSD (a.out) ld.so'
3071 + else
3072 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
3073 + soname_spec='${libname}${release}${shared_ext}$major'
3074 + dynamic_linker='NetBSD ld.elf_so'
3075 + fi
3076 + shlibpath_var=LD_LIBRARY_PATH
3077 + shlibpath_overrides_runpath=yes
3078 + hardcode_into_libs=yes
3079 + ;;
3081 +newsos6)
3082 + version_type=linux
3083 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3084 + shlibpath_var=LD_LIBRARY_PATH
3085 + shlibpath_overrides_runpath=yes
3086 + ;;
3088 +nto-qnx*)
3089 + version_type=linux
3090 + need_lib_prefix=no
3091 + need_version=no
3092 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3093 + soname_spec='${libname}${release}${shared_ext}$major'
3094 + shlibpath_var=LD_LIBRARY_PATH
3095 + shlibpath_overrides_runpath=yes
3096 + ;;
3098 +openbsd*)
3099 + version_type=sunos
3100 + sys_lib_dlsearch_path_spec="/usr/lib"
3101 + need_lib_prefix=no
3102 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
3103 + case $host_os in
3104 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3105 + *) need_version=no ;;
3106 + esac
3107 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3108 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3109 + shlibpath_var=LD_LIBRARY_PATH
3110 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3111 + case $host_os in
3112 + openbsd2.[[89]] | openbsd2.[[89]].*)
3113 + shlibpath_overrides_runpath=no
3114 + ;;
3115 + *)
3116 + shlibpath_overrides_runpath=yes
3117 + ;;
3118 + esac
3119 + else
3120 + shlibpath_overrides_runpath=yes
3121 + fi
3122 + ;;
3124 +os2*)
3125 + libname_spec='$name'
3126 + shrext_cmds=".dll"
3127 + need_lib_prefix=no
3128 + library_names_spec='$libname${shared_ext} $libname.a'
3129 + dynamic_linker='OS/2 ld.exe'
3130 + shlibpath_var=LIBPATH
3131 + ;;
3133 +osf3* | osf4* | osf5*)
3134 + version_type=osf
3135 + need_lib_prefix=no
3136 + need_version=no
3137 + soname_spec='${libname}${release}${shared_ext}$major'
3138 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3139 + shlibpath_var=LD_LIBRARY_PATH
3140 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3141 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3142 + ;;
3144 +solaris*)
3145 + version_type=linux
3146 + need_lib_prefix=no
3147 + need_version=no
3148 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3149 + soname_spec='${libname}${release}${shared_ext}$major'
3150 + shlibpath_var=LD_LIBRARY_PATH
3151 + shlibpath_overrides_runpath=yes
3152 + hardcode_into_libs=yes
3153 + # ldd complains unless libraries are executable
3154 + postinstall_cmds='chmod +x $lib'
3155 + ;;
3157 +sunos4*)
3158 + version_type=sunos
3159 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
3160 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3161 + shlibpath_var=LD_LIBRARY_PATH
3162 + shlibpath_overrides_runpath=yes
3163 + if test "$with_gnu_ld" = yes; then
3164 + need_lib_prefix=no
3165 + fi
3166 + need_version=yes
3167 + ;;
3169 +sysv4 | sysv4.3*)
3170 + version_type=linux
3171 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3172 + soname_spec='${libname}${release}${shared_ext}$major'
3173 + shlibpath_var=LD_LIBRARY_PATH
3174 + case $host_vendor in
3175 + sni)
3176 + shlibpath_overrides_runpath=no
3177 + need_lib_prefix=no
3178 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3179 + runpath_var=LD_RUN_PATH
3180 + ;;
3181 + siemens)
3182 + need_lib_prefix=no
3183 + ;;
3184 + motorola)
3185 + need_lib_prefix=no
3186 + need_version=no
3187 + shlibpath_overrides_runpath=no
3188 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3189 + ;;
3190 + esac
3191 + ;;
3193 +sysv4*MP*)
3194 + if test -d /usr/nec ;then
3195 + version_type=linux
3196 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
3197 + soname_spec='$libname${shared_ext}.$major'
3198 + shlibpath_var=LD_LIBRARY_PATH
3199 + fi
3200 + ;;
3202 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3203 + version_type=freebsd-elf
3204 + need_lib_prefix=no
3205 + need_version=no
3206 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
3207 + soname_spec='${libname}${release}${shared_ext}$major'
3208 + shlibpath_var=LD_LIBRARY_PATH
3209 + hardcode_into_libs=yes
3210 + if test "$with_gnu_ld" = yes; then
3211 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3212 + shlibpath_overrides_runpath=no
3213 + else
3214 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3215 + shlibpath_overrides_runpath=yes
3216 + case $host_os in
3217 + sco3.2v5*)
3218 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3219 + ;;
3220 + esac
3221 + fi
3222 + sys_lib_dlsearch_path_spec='/usr/lib'
3223 + ;;
3225 +uts4*)
3226 + version_type=linux
3227 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
3228 + soname_spec='${libname}${release}${shared_ext}$major'
3229 + shlibpath_var=LD_LIBRARY_PATH
3230 + ;;
3233 + dynamic_linker=no
3234 + ;;
3235 +esac
3236 +AC_MSG_RESULT([$dynamic_linker])
3237 +test "$dynamic_linker" = no && can_build_shared=no
3239 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3240 +if test "$GCC" = yes; then
3241 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3243 +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
3246 +# _LT_AC_TAGCONFIG
3247 +# ----------------
3248 +AC_DEFUN([_LT_AC_TAGCONFIG],
3249 +[AC_ARG_WITH([tags],
3250 + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
3251 + [include additional configurations @<:@automatic@:>@])],
3252 + [tagnames="$withval"])
3254 +if test -f "$ltmain" && test -n "$tagnames"; then
3255 + if test ! -f "${ofile}"; then
3256 + AC_MSG_WARN([output file `$ofile' does not exist])
3257 + fi
3259 + if test -z "$LTCC"; then
3260 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
3261 + if test -z "$LTCC"; then
3262 + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
3263 + else
3264 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3265 + fi
3266 + fi
3267 + if test -z "$LTCFLAGS"; then
3268 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
3269 + fi
3271 + # Extract list of available tagged configurations in $ofile.
3272 + # Note that this assumes the entire list is on one line.
3273 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
3275 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3276 + for tagname in $tagnames; do
3277 + IFS="$lt_save_ifs"
3278 + # Check whether tagname contains only valid characters
3279 + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
3280 + "") ;;
3281 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3282 + ;;
3283 + esac
3285 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3286 + then
3287 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3288 + fi
3290 + # Update the list of available tags.
3291 + if test -n "$tagname"; then
3292 + echo appending configuration tag \"$tagname\" to $ofile
3294 + case $tagname in
3295 + CXX)
3296 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
3297 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
3298 + (test "X$CXX" != "Xg++"))) ; then
3299 + AC_LIBTOOL_LANG_CXX_CONFIG
3300 + else
3301 + tagname=""
3302 + fi
3303 + ;;
3305 + F77)
3306 + if test -n "$F77" && test "X$F77" != "Xno"; then
3307 + AC_LIBTOOL_LANG_F77_CONFIG
3308 + else
3309 + tagname=""
3310 + fi
3311 + ;;
3313 + GCJ)
3314 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3315 + AC_LIBTOOL_LANG_GCJ_CONFIG
3316 + else
3317 + tagname=""
3318 + fi
3319 + ;;
3321 + RC)
3322 + AC_LIBTOOL_LANG_RC_CONFIG
3323 + ;;
3325 + *)
3326 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3327 + ;;
3328 + esac
3330 + # Append the new tag name to the list of available tags.
3331 + if test -n "$tagname" ; then
3332 + available_tags="$available_tags $tagname"
3333 + fi
3334 + fi
3335 + done
3336 + IFS="$lt_save_ifs"
3338 + # Now substitute the updated list of available tags.
3339 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
3340 + mv "${ofile}T" "$ofile"
3341 + chmod +x "$ofile"
3342 + else
3343 + rm -f "${ofile}T"
3344 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
3345 + fi
3347 +])# _LT_AC_TAGCONFIG
3350 +# AC_LIBTOOL_DLOPEN
3351 +# -----------------
3352 +# enable checks for dlopen support
3353 +AC_DEFUN([AC_LIBTOOL_DLOPEN],
3354 + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
3355 +])# AC_LIBTOOL_DLOPEN
3358 +# AC_LIBTOOL_WIN32_DLL
3359 +# --------------------
3360 +# declare package support for building win32 DLLs
3361 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
3362 +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
3363 +])# AC_LIBTOOL_WIN32_DLL
3366 +# AC_ENABLE_SHARED([DEFAULT])
3367 +# ---------------------------
3368 +# implement the --enable-shared flag
3369 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3370 +AC_DEFUN([AC_ENABLE_SHARED],
3371 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
3372 +AC_ARG_ENABLE([shared],
3373 + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
3374 + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
3375 + [p=${PACKAGE-default}
3376 + case $enableval in
3377 + yes) enable_shared=yes ;;
3378 + no) enable_shared=no ;;
3379 + *)
3380 + enable_shared=no
3381 + # Look at the argument we got. We use all the common list separators.
3382 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3383 + for pkg in $enableval; do
3384 + IFS="$lt_save_ifs"
3385 + if test "X$pkg" = "X$p"; then
3386 + enable_shared=yes
3387 + fi
3388 + done
3389 + IFS="$lt_save_ifs"
3390 + ;;
3391 + esac],
3392 + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
3393 +])# AC_ENABLE_SHARED
3396 +# AC_DISABLE_SHARED
3397 +# -----------------
3398 +# set the default shared flag to --disable-shared
3399 +AC_DEFUN([AC_DISABLE_SHARED],
3400 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3401 +AC_ENABLE_SHARED(no)
3402 +])# AC_DISABLE_SHARED
3405 +# AC_ENABLE_STATIC([DEFAULT])
3406 +# ---------------------------
3407 +# implement the --enable-static flag
3408 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3409 +AC_DEFUN([AC_ENABLE_STATIC],
3410 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
3411 +AC_ARG_ENABLE([static],
3412 + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
3413 + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
3414 + [p=${PACKAGE-default}
3415 + case $enableval in
3416 + yes) enable_static=yes ;;
3417 + no) enable_static=no ;;
3418 + *)
3419 + enable_static=no
3420 + # Look at the argument we got. We use all the common list separators.
3421 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3422 + for pkg in $enableval; do
3423 + IFS="$lt_save_ifs"
3424 + if test "X$pkg" = "X$p"; then
3425 + enable_static=yes
3426 + fi
3427 + done
3428 + IFS="$lt_save_ifs"
3429 + ;;
3430 + esac],
3431 + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
3432 +])# AC_ENABLE_STATIC
3435 +# AC_DISABLE_STATIC
3436 +# -----------------
3437 +# set the default static flag to --disable-static
3438 +AC_DEFUN([AC_DISABLE_STATIC],
3439 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3440 +AC_ENABLE_STATIC(no)
3441 +])# AC_DISABLE_STATIC
3444 +# AC_ENABLE_FAST_INSTALL([DEFAULT])
3445 +# ---------------------------------
3446 +# implement the --enable-fast-install flag
3447 +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
3448 +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
3449 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
3450 +AC_ARG_ENABLE([fast-install],
3451 + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
3452 + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
3453 + [p=${PACKAGE-default}
3454 + case $enableval in
3455 + yes) enable_fast_install=yes ;;
3456 + no) enable_fast_install=no ;;
3457 + *)
3458 + enable_fast_install=no
3459 + # Look at the argument we got. We use all the common list separators.
3460 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3461 + for pkg in $enableval; do
3462 + IFS="$lt_save_ifs"
3463 + if test "X$pkg" = "X$p"; then
3464 + enable_fast_install=yes
3465 + fi
3466 + done
3467 + IFS="$lt_save_ifs"
3468 + ;;
3469 + esac],
3470 + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
3471 +])# AC_ENABLE_FAST_INSTALL
3474 +# AC_DISABLE_FAST_INSTALL
3475 +# -----------------------
3476 +# set the default to --disable-fast-install
3477 +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
3478 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3479 +AC_ENABLE_FAST_INSTALL(no)
3480 +])# AC_DISABLE_FAST_INSTALL
3483 +# AC_LIBTOOL_PICMODE([MODE])
3484 +# --------------------------
3485 +# implement the --with-pic flag
3486 +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
3487 +AC_DEFUN([AC_LIBTOOL_PICMODE],
3488 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3489 +pic_mode=ifelse($#,1,$1,default)
3490 +])# AC_LIBTOOL_PICMODE
3493 +# AC_PROG_EGREP
3494 +# -------------
3495 +# This is predefined starting with Autoconf 2.54, so this conditional
3496 +# definition can be removed once we require Autoconf 2.54 or later.
3497 +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
3498 +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
3499 + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3500 + then ac_cv_prog_egrep='grep -E'
3501 + else ac_cv_prog_egrep='egrep'
3502 + fi])
3503 + EGREP=$ac_cv_prog_egrep
3504 + AC_SUBST([EGREP])
3505 +])])
3508 +# AC_PATH_TOOL_PREFIX
3509 +# -------------------
3510 +# find a file program which can recognise shared library
3511 +AC_DEFUN([AC_PATH_TOOL_PREFIX],
3512 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3513 +AC_MSG_CHECKING([for $1])
3514 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3515 +[case $MAGIC_CMD in
3516 +[[\\/*] | ?:[\\/]*])
3517 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3518 + ;;
3520 + lt_save_MAGIC_CMD="$MAGIC_CMD"
3521 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3522 +dnl $ac_dummy forces splitting on constant user-supplied paths.
3523 +dnl POSIX.2 word splitting is done only on the output of word expansions,
3524 +dnl not every word. This closes a longstanding sh security hole.
3525 + ac_dummy="ifelse([$2], , $PATH, [$2])"
3526 + for ac_dir in $ac_dummy; do
3527 + IFS="$lt_save_ifs"
3528 + test -z "$ac_dir" && ac_dir=.
3529 + if test -f $ac_dir/$1; then
3530 + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
3531 + if test -n "$file_magic_test_file"; then
3532 + case $deplibs_check_method in
3533 + "file_magic "*)
3534 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3535 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3536 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3537 + $EGREP "$file_magic_regex" > /dev/null; then
3539 + else
3540 + cat <<EOF 1>&2
3542 +*** Warning: the command libtool uses to detect shared libraries,
3543 +*** $file_magic_cmd, produces output that libtool cannot recognize.
3544 +*** The result is that libtool may fail to recognize shared libraries
3545 +*** as such. This will affect the creation of libtool libraries that
3546 +*** depend on shared libraries, but programs linked with such libtool
3547 +*** libraries will work regardless of this problem. Nevertheless, you
3548 +*** may want to report the problem to your system manager and/or to
3549 +*** bug-libtool@gnu.org
3551 +EOF
3552 + fi ;;
3553 + esac
3554 + fi
3555 + break
3556 + fi
3557 + done
3558 + IFS="$lt_save_ifs"
3559 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3560 + ;;
3561 +esac])
3562 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3563 +if test -n "$MAGIC_CMD"; then
3564 + AC_MSG_RESULT($MAGIC_CMD)
3565 +else
3566 + AC_MSG_RESULT(no)
3568 +])# AC_PATH_TOOL_PREFIX
3571 +# AC_PATH_MAGIC
3572 +# -------------
3573 +# find a file program which can recognise a shared library
3574 +AC_DEFUN([AC_PATH_MAGIC],
3575 +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3576 +if test -z "$lt_cv_path_MAGIC_CMD"; then
3577 + if test -n "$ac_tool_prefix"; then
3578 + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3579 + else
3580 + MAGIC_CMD=:
3581 + fi
3583 +])# AC_PATH_MAGIC
3586 +# AC_PROG_LD
3587 +# ----------
3588 +# find the pathname to the GNU or non-GNU linker
3589 +AC_DEFUN([AC_PROG_LD],
3590 +[AC_ARG_WITH([gnu-ld],
3591 + [AC_HELP_STRING([--with-gnu-ld],
3592 + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3593 + [test "$withval" = no || with_gnu_ld=yes],
3594 + [with_gnu_ld=no])
3595 +AC_REQUIRE([LT_AC_PROG_SED])dnl
3596 +AC_REQUIRE([AC_PROG_CC])dnl
3597 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
3598 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3599 +ac_prog=ld
3600 +if test "$GCC" = yes; then
3601 + # Check if gcc -print-prog-name=ld gives a path.
3602 + AC_MSG_CHECKING([for ld used by $CC])
3603 + case $host in
3604 + *-*-mingw*)
3605 + # gcc leaves a trailing carriage return which upsets mingw
3606 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3607 + *)
3608 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3609 + esac
3610 + case $ac_prog in
3611 + # Accept absolute paths.
3612 + [[\\/]]* | ?:[[\\/]]*)
3613 + re_direlt='/[[^/]][[^/]]*/\.\./'
3614 + # Canonicalize the pathname of ld
3615 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3616 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3617 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3618 + done
3619 + test -z "$LD" && LD="$ac_prog"
3620 + ;;
3621 + "")
3622 + # If it fails, then pretend we aren't using GCC.
3623 + ac_prog=ld
3624 + ;;
3625 + *)
3626 + # If it is relative, then search for the first ld in PATH.
3627 + with_gnu_ld=unknown
3628 + ;;
3629 + esac
3630 +elif test "$with_gnu_ld" = yes; then
3631 + AC_MSG_CHECKING([for GNU ld])
3632 +else
3633 + AC_MSG_CHECKING([for non-GNU ld])
3635 +AC_CACHE_VAL(lt_cv_path_LD,
3636 +[if test -z "$LD"; then
3637 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3638 + for ac_dir in $PATH; do
3639 + IFS="$lt_save_ifs"
3640 + test -z "$ac_dir" && ac_dir=.
3641 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3642 + lt_cv_path_LD="$ac_dir/$ac_prog"
3643 + # Check to see if the program is GNU ld. I'd rather use --version,
3644 + # but apparently some variants of GNU ld only accept -v.
3645 + # Break only if it was the GNU/non-GNU ld that we prefer.
3646 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3647 + *GNU* | *'with BFD'*)
3648 + test "$with_gnu_ld" != no && break
3649 + ;;
3650 + *)
3651 + test "$with_gnu_ld" != yes && break
3652 + ;;
3653 + esac
3654 + fi
3655 + done
3656 + IFS="$lt_save_ifs"
3657 +else
3658 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3659 +fi])
3660 +LD="$lt_cv_path_LD"
3661 +if test -n "$LD"; then
3662 + AC_MSG_RESULT($LD)
3663 +else
3664 + AC_MSG_RESULT(no)
3666 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3667 +AC_PROG_LD_GNU
3668 +])# AC_PROG_LD
3671 +# AC_PROG_LD_GNU
3672 +# --------------
3673 +AC_DEFUN([AC_PROG_LD_GNU],
3674 +[AC_REQUIRE([AC_PROG_EGREP])dnl
3675 +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3676 +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
3677 +case `$LD -v 2>&1 </dev/null` in
3678 +*GNU* | *'with BFD'*)
3679 + lt_cv_prog_gnu_ld=yes
3680 + ;;
3682 + lt_cv_prog_gnu_ld=no
3683 + ;;
3684 +esac])
3685 +with_gnu_ld=$lt_cv_prog_gnu_ld
3686 +])# AC_PROG_LD_GNU
3689 +# AC_PROG_LD_RELOAD_FLAG
3690 +# ----------------------
3691 +# find reload flag for linker
3692 +# -- PORTME Some linkers may need a different reload flag.
3693 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
3694 +[AC_CACHE_CHECK([for $LD option to reload object files],
3695 + lt_cv_ld_reload_flag,
3696 + [lt_cv_ld_reload_flag='-r'])
3697 +reload_flag=$lt_cv_ld_reload_flag
3698 +case $reload_flag in
3699 +"" | " "*) ;;
3700 +*) reload_flag=" $reload_flag" ;;
3701 +esac
3702 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3703 +case $host_os in
3704 + darwin*)
3705 + if test "$GCC" = yes; then
3706 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3707 + else
3708 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
3709 + fi
3710 + ;;
3711 +esac
3712 +])# AC_PROG_LD_RELOAD_FLAG
3715 +# AC_DEPLIBS_CHECK_METHOD
3716 +# -----------------------
3717 +# how to check for library dependencies
3718 +# -- PORTME fill in with the dynamic library characteristics
3719 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
3720 +[AC_CACHE_CHECK([how to recognise dependent libraries],
3721 +lt_cv_deplibs_check_method,
3722 +[lt_cv_file_magic_cmd='$MAGIC_CMD'
3723 +lt_cv_file_magic_test_file=
3724 +lt_cv_deplibs_check_method='unknown'
3725 +# Need to set the preceding variable on all platforms that support
3726 +# interlibrary dependencies.
3727 +# 'none' -- dependencies not supported.
3728 +# `unknown' -- same as none, but documents that we really don't know.
3729 +# 'pass_all' -- all dependencies passed with no checks.
3730 +# 'test_compile' -- check by making test program.
3731 +# 'file_magic [[regex]]' -- check by looking for files in library path
3732 +# which responds to the $file_magic_cmd with a given extended regex.
3733 +# If you have `file' or equivalent on your system and you're not sure
3734 +# whether `pass_all' will *always* work, you probably want this one.
3736 +case $host_os in
3737 +aix4* | aix5*)
3738 + lt_cv_deplibs_check_method=pass_all
3739 + ;;
3741 +beos*)
3742 + lt_cv_deplibs_check_method=pass_all
3743 + ;;
3745 +bsdi[[45]]*)
3746 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3747 + lt_cv_file_magic_cmd='/usr/bin/file -L'
3748 + lt_cv_file_magic_test_file=/shlib/libc.so
3749 + ;;
3751 +cygwin*)
3752 + # func_win32_libid is a shell function defined in ltmain.sh
3753 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3754 + lt_cv_file_magic_cmd='func_win32_libid'
3755 + ;;
3757 +mingw* | pw32*)
3758 + # Base MSYS/MinGW do not provide the 'file' command needed by
3759 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3760 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3761 + lt_cv_file_magic_cmd='$OBJDUMP -f'
3762 + ;;
3764 +darwin* | rhapsody*)
3765 + lt_cv_deplibs_check_method=pass_all
3766 + ;;
3768 +freebsd* | kfreebsd*-gnu | dragonfly*)
3769 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3770 + case $host_cpu in
3771 + i*86 )
3772 + # Not sure whether the presence of OpenBSD here was a mistake.
3773 + # Let's accept both of them until this is cleared up.
3774 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3775 + lt_cv_file_magic_cmd=/usr/bin/file
3776 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3777 + ;;
3778 + esac
3779 + else
3780 + lt_cv_deplibs_check_method=pass_all
3781 + fi
3782 + ;;
3784 +gnu*)
3785 + lt_cv_deplibs_check_method=pass_all
3786 + ;;
3788 +hpux10.20* | hpux11*)
3789 + lt_cv_file_magic_cmd=/usr/bin/file
3790 + case $host_cpu in
3791 + ia64*)
3792 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3793 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3794 + ;;
3795 + hppa*64*)
3796 + [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]']
3797 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3798 + ;;
3799 + *)
3800 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
3801 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
3802 + ;;
3803 + esac
3804 + ;;
3806 +interix3*)
3807 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3808 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3809 + ;;
3811 +irix5* | irix6* | nonstopux*)
3812 + case $LD in
3813 + *-32|*"-32 ") libmagic=32-bit;;
3814 + *-n32|*"-n32 ") libmagic=N32;;
3815 + *-64|*"-64 ") libmagic=64-bit;;
3816 + *) libmagic=never-match;;
3817 + esac
3818 + lt_cv_deplibs_check_method=pass_all
3819 + ;;
3821 +# This must be Linux ELF.
3822 +linux*)
3823 + lt_cv_deplibs_check_method=pass_all
3824 + ;;
3826 +netbsd*)
3827 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3828 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3829 + else
3830 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3831 + fi
3832 + ;;
3834 +newos6*)
3835 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3836 + lt_cv_file_magic_cmd=/usr/bin/file
3837 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
3838 + ;;
3840 +nto-qnx*)
3841 + lt_cv_deplibs_check_method=unknown
3842 + ;;
3844 +openbsd*)
3845 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3846 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3847 + else
3848 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3849 + fi
3850 + ;;
3852 +osf3* | osf4* | osf5*)
3853 + lt_cv_deplibs_check_method=pass_all
3854 + ;;
3856 +solaris*)
3857 + lt_cv_deplibs_check_method=pass_all
3858 + ;;
3860 +sysv4 | sysv4.3*)
3861 + case $host_vendor in
3862 + motorola)
3863 + 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]]'
3864 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3865 + ;;
3866 + ncr)
3867 + lt_cv_deplibs_check_method=pass_all
3868 + ;;
3869 + sequent)
3870 + lt_cv_file_magic_cmd='/bin/file'
3871 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3872 + ;;
3873 + sni)
3874 + lt_cv_file_magic_cmd='/bin/file'
3875 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3876 + lt_cv_file_magic_test_file=/lib/libc.so
3877 + ;;
3878 + siemens)
3879 + lt_cv_deplibs_check_method=pass_all
3880 + ;;
3881 + pc)
3882 + lt_cv_deplibs_check_method=pass_all
3883 + ;;
3884 + esac
3885 + ;;
3887 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3888 + lt_cv_deplibs_check_method=pass_all
3889 + ;;
3890 +esac
3892 +file_magic_cmd=$lt_cv_file_magic_cmd
3893 +deplibs_check_method=$lt_cv_deplibs_check_method
3894 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
3895 +])# AC_DEPLIBS_CHECK_METHOD
3898 +# AC_PROG_NM
3899 +# ----------
3900 +# find the pathname to a BSD-compatible name lister
3901 +AC_DEFUN([AC_PROG_NM],
3902 +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
3903 +[if test -n "$NM"; then
3904 + # Let the user override the test.
3905 + lt_cv_path_NM="$NM"
3906 +else
3907 + lt_nm_to_check="${ac_tool_prefix}nm"
3908 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3909 + lt_nm_to_check="$lt_nm_to_check nm"
3910 + fi
3911 + for lt_tmp_nm in $lt_nm_to_check; do
3912 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3913 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3914 + IFS="$lt_save_ifs"
3915 + test -z "$ac_dir" && ac_dir=.
3916 + tmp_nm="$ac_dir/$lt_tmp_nm"
3917 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3918 + # Check to see if the nm accepts a BSD-compat flag.
3919 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3920 + # nm: unknown option "B" ignored
3921 + # Tru64's nm complains that /dev/null is an invalid object file
3922 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3923 + */dev/null* | *'Invalid file or object type'*)
3924 + lt_cv_path_NM="$tmp_nm -B"
3925 + break
3926 + ;;
3927 + *)
3928 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3929 + */dev/null*)
3930 + lt_cv_path_NM="$tmp_nm -p"
3931 + break
3932 + ;;
3933 + *)
3934 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3935 + continue # so that we can try to find one that supports BSD flags
3936 + ;;
3937 + esac
3938 + ;;
3939 + esac
3940 + fi
3941 + done
3942 + IFS="$lt_save_ifs"
3943 + done
3944 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3945 +fi])
3946 +NM="$lt_cv_path_NM"
3947 +])# AC_PROG_NM
3950 +# AC_CHECK_LIBM
3951 +# -------------
3952 +# check for math library
3953 +AC_DEFUN([AC_CHECK_LIBM],
3954 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3955 +LIBM=
3956 +case $host in
3957 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3958 + # These system don't have libm, or don't need it
3959 + ;;
3960 +*-ncr-sysv4.3*)
3961 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3962 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3963 + ;;
3965 + AC_CHECK_LIB(m, cos, LIBM="-lm")
3966 + ;;
3967 +esac
3968 +])# AC_CHECK_LIBM
3971 +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
3972 +# -----------------------------------
3973 +# sets LIBLTDL to the link flags for the libltdl convenience library and
3974 +# LTDLINCL to the include flags for the libltdl header and adds
3975 +# --enable-ltdl-convenience to the configure arguments. Note that
3976 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
3977 +# it is assumed to be `libltdl'. LIBLTDL will be prefixed with
3978 +# '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
3979 +# (note the single quotes!). If your package is not flat and you're not
3980 +# using automake, define top_builddir and top_srcdir appropriately in
3981 +# the Makefiles.
3982 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
3983 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
3984 + case $enable_ltdl_convenience in
3985 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
3986 + "") enable_ltdl_convenience=yes
3987 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
3988 + esac
3989 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
3990 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
3991 + # For backwards non-gettext consistent compatibility...
3992 + INCLTDL="$LTDLINCL"
3993 +])# AC_LIBLTDL_CONVENIENCE
3996 +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
3997 +# -----------------------------------
3998 +# sets LIBLTDL to the link flags for the libltdl installable library and
3999 +# LTDLINCL to the include flags for the libltdl header and adds
4000 +# --enable-ltdl-install to the configure arguments. Note that
4001 +# AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
4002 +# and an installed libltdl is not found, it is assumed to be `libltdl'.
4003 +# LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
4004 +# '${top_srcdir}/' (note the single quotes!). If your package is not
4005 +# flat and you're not using automake, define top_builddir and top_srcdir
4006 +# appropriately in the Makefiles.
4007 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
4008 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
4009 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
4010 + AC_CHECK_LIB(ltdl, lt_dlinit,
4011 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
4012 + [if test x"$enable_ltdl_install" = xno; then
4013 + AC_MSG_WARN([libltdl not installed, but installation disabled])
4014 + else
4015 + enable_ltdl_install=yes
4016 + fi
4017 + ])
4018 + if test x"$enable_ltdl_install" = x"yes"; then
4019 + ac_configure_args="$ac_configure_args --enable-ltdl-install"
4020 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
4021 + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
4022 + else
4023 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4024 + LIBLTDL="-lltdl"
4025 + LTDLINCL=
4026 + fi
4027 + # For backwards non-gettext consistent compatibility...
4028 + INCLTDL="$LTDLINCL"
4029 +])# AC_LIBLTDL_INSTALLABLE
4032 +# AC_LIBTOOL_CXX
4033 +# --------------
4034 +# enable support for C++ libraries
4035 +AC_DEFUN([AC_LIBTOOL_CXX],
4036 +[AC_REQUIRE([_LT_AC_LANG_CXX])
4037 +])# AC_LIBTOOL_CXX
4040 +# _LT_AC_LANG_CXX
4041 +# ---------------
4042 +AC_DEFUN([_LT_AC_LANG_CXX],
4043 +[AC_REQUIRE([AC_PROG_CXX])
4044 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4045 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
4046 +])# _LT_AC_LANG_CXX
4048 +# _LT_AC_PROG_CXXCPP
4049 +# ------------------
4050 +AC_DEFUN([_LT_AC_PROG_CXXCPP],
4052 +AC_REQUIRE([AC_PROG_CXX])
4053 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4054 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4055 + (test "X$CXX" != "Xg++"))) ; then
4056 + AC_PROG_CXXCPP
4058 +])# _LT_AC_PROG_CXXCPP
4060 +# AC_LIBTOOL_F77
4061 +# --------------
4062 +# enable support for Fortran 77 libraries
4063 +AC_DEFUN([AC_LIBTOOL_F77],
4064 +[AC_REQUIRE([_LT_AC_LANG_F77])
4065 +])# AC_LIBTOOL_F77
4068 +# _LT_AC_LANG_F77
4069 +# ---------------
4070 +AC_DEFUN([_LT_AC_LANG_F77],
4071 +[AC_REQUIRE([AC_PROG_F77])
4072 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
4073 +])# _LT_AC_LANG_F77
4076 +# AC_LIBTOOL_GCJ
4077 +# --------------
4078 +# enable support for GCJ libraries
4079 +AC_DEFUN([AC_LIBTOOL_GCJ],
4080 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
4081 +])# AC_LIBTOOL_GCJ
4084 +# _LT_AC_LANG_GCJ
4085 +# ---------------
4086 +AC_DEFUN([_LT_AC_LANG_GCJ],
4087 +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
4088 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
4089 + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
4090 + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
4091 + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
4092 + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
4093 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
4094 +])# _LT_AC_LANG_GCJ
4097 +# AC_LIBTOOL_RC
4098 +# -------------
4099 +# enable support for Windows resource files
4100 +AC_DEFUN([AC_LIBTOOL_RC],
4101 +[AC_REQUIRE([LT_AC_PROG_RC])
4102 +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
4103 +])# AC_LIBTOOL_RC
4106 +# AC_LIBTOOL_LANG_C_CONFIG
4107 +# ------------------------
4108 +# Ensure that the configuration vars for the C compiler are
4109 +# suitably defined. Those variables are subsequently used by
4110 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4111 +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
4112 +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
4113 +[lt_save_CC="$CC"
4114 +AC_LANG_PUSH(C)
4116 +# Source file extension for C test sources.
4117 +ac_ext=c
4119 +# Object file extension for compiled C test sources.
4120 +objext=o
4121 +_LT_AC_TAGVAR(objext, $1)=$objext
4123 +# Code to be used in simple compile tests
4124 +lt_simple_compile_test_code="int some_variable = 0;\n"
4126 +# Code to be used in simple link tests
4127 +lt_simple_link_test_code='int main(){return(0);}\n'
4129 +_LT_AC_SYS_COMPILER
4131 +# save warnings/boilerplate of simple test code
4132 +_LT_COMPILER_BOILERPLATE
4133 +_LT_LINKER_BOILERPLATE
4135 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4136 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
4137 +AC_LIBTOOL_PROG_CC_C_O($1)
4138 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4139 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
4140 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4141 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4142 +AC_LIBTOOL_SYS_LIB_STRIP
4143 +AC_LIBTOOL_DLOPEN_SELF
4145 +# Report which library types will actually be built
4146 +AC_MSG_CHECKING([if libtool supports shared libraries])
4147 +AC_MSG_RESULT([$can_build_shared])
4149 +AC_MSG_CHECKING([whether to build shared libraries])
4150 +test "$can_build_shared" = "no" && enable_shared=no
4152 +# On AIX, shared libraries and static libraries use the same namespace, and
4153 +# are all built from PIC.
4154 +case $host_os in
4155 +aix3*)
4156 + test "$enable_shared" = yes && enable_static=no
4157 + if test -n "$RANLIB"; then
4158 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
4159 + postinstall_cmds='$RANLIB $lib'
4160 + fi
4161 + ;;
4163 +aix4* | aix5*)
4164 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4165 + test "$enable_shared" = yes && enable_static=no
4166 + fi
4167 + ;;
4168 +esac
4169 +AC_MSG_RESULT([$enable_shared])
4171 +AC_MSG_CHECKING([whether to build static libraries])
4172 +# Make sure either enable_shared or enable_static is yes.
4173 +test "$enable_shared" = yes || enable_static=yes
4174 +AC_MSG_RESULT([$enable_static])
4176 +AC_LIBTOOL_CONFIG($1)
4178 +AC_LANG_POP
4179 +CC="$lt_save_CC"
4180 +])# AC_LIBTOOL_LANG_C_CONFIG
4183 +# AC_LIBTOOL_LANG_CXX_CONFIG
4184 +# --------------------------
4185 +# Ensure that the configuration vars for the C compiler are
4186 +# suitably defined. Those variables are subsequently used by
4187 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4188 +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
4189 +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
4190 +[AC_LANG_PUSH(C++)
4191 +AC_REQUIRE([AC_PROG_CXX])
4192 +AC_REQUIRE([_LT_AC_PROG_CXXCPP])
4194 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4195 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
4196 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
4197 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
4198 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
4199 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
4200 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
4201 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
4202 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4203 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
4204 +_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4205 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
4206 +_LT_AC_TAGVAR(module_cmds, $1)=
4207 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
4208 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
4209 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4210 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
4211 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4212 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4214 +# Dependencies to place before and after the object being linked:
4215 +_LT_AC_TAGVAR(predep_objects, $1)=
4216 +_LT_AC_TAGVAR(postdep_objects, $1)=
4217 +_LT_AC_TAGVAR(predeps, $1)=
4218 +_LT_AC_TAGVAR(postdeps, $1)=
4219 +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
4221 +# Source file extension for C++ test sources.
4222 +ac_ext=cpp
4224 +# Object file extension for compiled C++ test sources.
4225 +objext=o
4226 +_LT_AC_TAGVAR(objext, $1)=$objext
4228 +# Code to be used in simple compile tests
4229 +lt_simple_compile_test_code="int some_variable = 0;\n"
4231 +# Code to be used in simple link tests
4232 +lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
4234 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
4235 +_LT_AC_SYS_COMPILER
4237 +# save warnings/boilerplate of simple test code
4238 +_LT_COMPILER_BOILERPLATE
4239 +_LT_LINKER_BOILERPLATE
4241 +# Allow CC to be a program name with arguments.
4242 +lt_save_CC=$CC
4243 +lt_save_LD=$LD
4244 +lt_save_GCC=$GCC
4245 +GCC=$GXX
4246 +lt_save_with_gnu_ld=$with_gnu_ld
4247 +lt_save_path_LD=$lt_cv_path_LD
4248 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
4249 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
4250 +else
4251 + $as_unset lt_cv_prog_gnu_ld
4253 +if test -n "${lt_cv_path_LDCXX+set}"; then
4254 + lt_cv_path_LD=$lt_cv_path_LDCXX
4255 +else
4256 + $as_unset lt_cv_path_LD
4258 +test -z "${LDCXX+set}" || LD=$LDCXX
4259 +CC=${CXX-"c++"}
4260 +compiler=$CC
4261 +_LT_AC_TAGVAR(compiler, $1)=$CC
4262 +_LT_CC_BASENAME([$compiler])
4264 +# We don't want -fno-exception wen compiling C++ code, so set the
4265 +# no_builtin_flag separately
4266 +if test "$GXX" = yes; then
4267 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4268 +else
4269 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4272 +if test "$GXX" = yes; then
4273 + # Set up default GNU C++ configuration
4275 + AC_PROG_LD
4277 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
4278 + # archiving commands below assume that GNU ld is being used.
4279 + if test "$with_gnu_ld" = yes; then
4280 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4281 + _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'
4283 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4284 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4286 + # If archive_cmds runs LD, not CC, wlarc should be empty
4287 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
4288 + # investigate it a little bit more. (MM)
4289 + wlarc='${wl}'
4291 + # ancient GNU ld didn't support --whole-archive et. al.
4292 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
4293 + grep 'no-whole-archive' > /dev/null; then
4294 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4295 + else
4296 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
4297 + fi
4298 + else
4299 + with_gnu_ld=no
4300 + wlarc=
4302 + # A generic and very simple default shared library creation
4303 + # command for GNU C++ for the case where it uses the native
4304 + # linker, instead of GNU ld. If possible, this setting should
4305 + # overridden to take advantage of the native linker features on
4306 + # the platform it is being used on.
4307 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4308 + fi
4310 + # Commands to make compiler produce verbose output that lists
4311 + # what "hidden" libraries, object files and flags are used when
4312 + # linking a shared library.
4313 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4315 +else
4316 + GXX=no
4317 + with_gnu_ld=no
4318 + wlarc=
4321 +# PORTME: fill in a description of your system's C++ link characteristics
4322 +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4323 +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
4324 +case $host_os in
4325 + aix3*)
4326 + # FIXME: insert proper C++ library support
4327 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4328 + ;;
4329 + aix4* | aix5*)
4330 + if test "$host_cpu" = ia64; then
4331 + # On IA64, the linker does run time linking by default, so we don't
4332 + # have to do anything special.
4333 + aix_use_runtimelinking=no
4334 + exp_sym_flag='-Bexport'
4335 + no_entry_flag=""
4336 + else
4337 + aix_use_runtimelinking=no
4339 + # Test if we are trying to use run time linking or normal
4340 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
4341 + # need to do runtime linking.
4342 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
4343 + for ld_flag in $LDFLAGS; do
4344 + case $ld_flag in
4345 + *-brtl*)
4346 + aix_use_runtimelinking=yes
4347 + break
4348 + ;;
4349 + esac
4350 + done
4351 + ;;
4352 + esac
4354 + exp_sym_flag='-bexport'
4355 + no_entry_flag='-bnoentry'
4356 + fi
4358 + # When large executables or shared objects are built, AIX ld can
4359 + # have problems creating the table of contents. If linking a library
4360 + # or program results in "error TOC overflow" add -mminimal-toc to
4361 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4362 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4364 + _LT_AC_TAGVAR(archive_cmds, $1)=''
4365 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4366 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
4367 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4369 + if test "$GXX" = yes; then
4370 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
4371 + # We only want to do this on AIX 4.2 and lower, the check
4372 + # below for broken collect2 doesn't work under 4.3+
4373 + collect2name=`${CC} -print-prog-name=collect2`
4374 + if test -f "$collect2name" && \
4375 + strings "$collect2name" | grep resolve_lib_name >/dev/null
4376 + then
4377 + # We have reworked collect2
4378 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4379 + else
4380 + # We have old collect2
4381 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
4382 + # It fails to find uninstalled libraries when the uninstalled
4383 + # path is not listed in the libpath. Setting hardcode_minus_L
4384 + # to unsupported forces relinking
4385 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
4386 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4387 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
4388 + fi
4389 + ;;
4390 + esac
4391 + shared_flag='-shared'
4392 + if test "$aix_use_runtimelinking" = yes; then
4393 + shared_flag="$shared_flag "'${wl}-G'
4394 + fi
4395 + else
4396 + # not using gcc
4397 + if test "$host_cpu" = ia64; then
4398 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
4399 + # chokes on -Wl,-G. The following line is correct:
4400 + shared_flag='-G'
4401 + else
4402 + if test "$aix_use_runtimelinking" = yes; then
4403 + shared_flag='${wl}-G'
4404 + else
4405 + shared_flag='${wl}-bM:SRE'
4406 + fi
4407 + fi
4408 + fi
4410 + # It seems that -bexpall does not export symbols beginning with
4411 + # underscore (_), so it is better to generate a list of symbols to export.
4412 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
4413 + if test "$aix_use_runtimelinking" = yes; then
4414 + # Warning - without using the other runtime loading flags (-brtl),
4415 + # -berok will link without error, but may produce a broken library.
4416 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
4417 + # Determine the default libpath from the value encoded in an empty executable.
4418 + _LT_AC_SYS_LIBPATH_AIX
4419 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4421 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
4422 + else
4423 + if test "$host_cpu" = ia64; then
4424 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
4425 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
4426 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
4427 + else
4428 + # Determine the default libpath from the value encoded in an empty executable.
4429 + _LT_AC_SYS_LIBPATH_AIX
4430 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
4431 + # Warning - without using the other run time loading flags,
4432 + # -berok will link without error, but may produce a broken library.
4433 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
4434 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
4435 + # Exported symbols can be pulled into shared objects from archives
4436 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
4437 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
4438 + # This is similar to how AIX traditionally builds its shared libraries.
4439 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
4440 + fi
4441 + fi
4442 + ;;
4444 + beos*)
4445 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
4446 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4447 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4448 + # support --undefined. This deserves some investigation. FIXME
4449 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4450 + else
4451 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4452 + fi
4453 + ;;
4455 + chorus*)
4456 + case $cc_basename in
4457 + *)
4458 + # FIXME: insert proper C++ library support
4459 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4460 + ;;
4461 + esac
4462 + ;;
4464 + cygwin* | mingw* | pw32*)
4465 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
4466 + # as there is no search path for DLLs.
4467 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
4468 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
4469 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
4470 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
4472 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
4473 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4474 + # If the export-symbols file already is a .def file (1st line
4475 + # is EXPORTS), use it as is; otherwise, prepend...
4476 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
4477 + cp $export_symbols $output_objdir/$soname.def;
4478 + else
4479 + echo EXPORTS > $output_objdir/$soname.def;
4480 + cat $export_symbols >> $output_objdir/$soname.def;
4481 + fi~
4482 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
4483 + else
4484 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4485 + fi
4486 + ;;
4487 + darwin* | rhapsody*)
4488 + case $host_os in
4489 + rhapsody* | darwin1.[[012]])
4490 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
4491 + ;;
4492 + *) # Darwin 1.3 on
4493 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
4494 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4495 + else
4496 + case ${MACOSX_DEPLOYMENT_TARGET} in
4497 + 10.[[012]])
4498 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4499 + ;;
4500 + 10.*)
4501 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
4502 + ;;
4503 + esac
4504 + fi
4505 + ;;
4506 + esac
4507 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4508 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4509 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
4510 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4511 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
4512 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4514 + if test "$GXX" = yes ; then
4515 + lt_int_apple_cc_single_mod=no
4516 + output_verbose_link_cmd='echo'
4517 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
4518 + lt_int_apple_cc_single_mod=yes
4519 + fi
4520 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4521 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4522 + else
4523 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
4524 + fi
4525 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4526 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4527 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
4528 + _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}'
4529 + else
4530 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4531 + fi
4532 + _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}'
4533 + else
4534 + case $cc_basename in
4535 + xlc*)
4536 + output_verbose_link_cmd='echo'
4537 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
4538 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
4539 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
4540 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
4541 + _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}'
4542 + ;;
4543 + *)
4544 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4545 + ;;
4546 + esac
4547 + fi
4548 + ;;
4550 + dgux*)
4551 + case $cc_basename in
4552 + ec++*)
4553 + # FIXME: insert proper C++ library support
4554 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4555 + ;;
4556 + ghcx*)
4557 + # Green Hills C++ Compiler
4558 + # FIXME: insert proper C++ library support
4559 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4560 + ;;
4561 + *)
4562 + # FIXME: insert proper C++ library support
4563 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4564 + ;;
4565 + esac
4566 + ;;
4567 + freebsd[[12]]*)
4568 + # C++ shared libraries reported to be fairly broken before switch to ELF
4569 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4570 + ;;
4571 + freebsd-elf*)
4572 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4573 + ;;
4574 + freebsd* | kfreebsd*-gnu | dragonfly*)
4575 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4576 + # conventions
4577 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
4578 + ;;
4579 + gnu*)
4580 + ;;
4581 + hpux9*)
4582 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4583 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4584 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4585 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4586 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4587 + # but as the default
4588 + # location of the library.
4590 + case $cc_basename in
4591 + CC*)
4592 + # FIXME: insert proper C++ library support
4593 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4594 + ;;
4595 + aCC*)
4596 + _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'
4597 + # Commands to make compiler produce verbose output that lists
4598 + # what "hidden" libraries, object files and flags are used when
4599 + # linking a shared library.
4601 + # There doesn't appear to be a way to prevent this compiler from
4602 + # explicitly linking system object files so we need to strip them
4603 + # from the output so that they don't get included in the library
4604 + # dependencies.
4605 + 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'
4606 + ;;
4607 + *)
4608 + if test "$GXX" = yes; then
4609 + _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'
4610 + else
4611 + # FIXME: insert proper C++ library support
4612 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4613 + fi
4614 + ;;
4615 + esac
4616 + ;;
4617 + hpux10*|hpux11*)
4618 + if test $with_gnu_ld = no; then
4619 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
4620 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4622 + case $host_cpu in
4623 + hppa*64*|ia64*)
4624 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4625 + ;;
4626 + *)
4627 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4628 + ;;
4629 + esac
4630 + fi
4631 + case $host_cpu in
4632 + hppa*64*|ia64*)
4633 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4634 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4635 + ;;
4636 + *)
4637 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4638 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
4639 + # but as the default
4640 + # location of the library.
4641 + ;;
4642 + esac
4644 + case $cc_basename in
4645 + CC*)
4646 + # FIXME: insert proper C++ library support
4647 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4648 + ;;
4649 + aCC*)
4650 + case $host_cpu in
4651 + hppa*64*)
4652 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4653 + ;;
4654 + ia64*)
4655 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4656 + ;;
4657 + *)
4658 + _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'
4659 + ;;
4660 + esac
4661 + # Commands to make compiler produce verbose output that lists
4662 + # what "hidden" libraries, object files and flags are used when
4663 + # linking a shared library.
4665 + # There doesn't appear to be a way to prevent this compiler from
4666 + # explicitly linking system object files so we need to strip them
4667 + # from the output so that they don't get included in the library
4668 + # dependencies.
4669 + 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'
4670 + ;;
4671 + *)
4672 + if test "$GXX" = yes; then
4673 + if test $with_gnu_ld = no; then
4674 + case $host_cpu in
4675 + hppa*64*)
4676 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4677 + ;;
4678 + ia64*)
4679 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
4680 + ;;
4681 + *)
4682 + _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'
4683 + ;;
4684 + esac
4685 + fi
4686 + else
4687 + # FIXME: insert proper C++ library support
4688 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4689 + fi
4690 + ;;
4691 + esac
4692 + ;;
4693 + interix3*)
4694 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4695 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4696 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4697 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4698 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
4699 + # Instead, shared libraries are loaded at an image base (0x10000000 by
4700 + # default) and relocated if they conflict, which is a slow very memory
4701 + # consuming and fragmenting process. To avoid this, we pick a random,
4702 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
4703 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
4704 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4705 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
4706 + ;;
4707 + irix5* | irix6*)
4708 + case $cc_basename in
4709 + CC*)
4710 + # SGI C++
4711 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4713 + # Archives containing C++ object files must be created using
4714 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
4715 + # necessary to make sure instantiated templates are included
4716 + # in the archive.
4717 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
4718 + ;;
4719 + *)
4720 + if test "$GXX" = yes; then
4721 + if test "$with_gnu_ld" = no; then
4722 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4723 + else
4724 + _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'
4725 + fi
4726 + fi
4727 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4728 + ;;
4729 + esac
4730 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4731 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4732 + ;;
4733 + linux*)
4734 + case $cc_basename in
4735 + KCC*)
4736 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4738 + # KCC will only create a shared library if the output file
4739 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4740 + # to its proper name (with version) after linking.
4741 + _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'
4742 + _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'
4743 + # Commands to make compiler produce verbose output that lists
4744 + # what "hidden" libraries, object files and flags are used when
4745 + # linking a shared library.
4747 + # There doesn't appear to be a way to prevent this compiler from
4748 + # explicitly linking system object files so we need to strip them
4749 + # from the output so that they don't get included in the library
4750 + # dependencies.
4751 + 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'
4753 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
4754 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4756 + # Archives containing C++ object files must be created using
4757 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4758 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4759 + ;;
4760 + icpc*)
4761 + # Intel C++
4762 + with_gnu_ld=yes
4763 + # version 8.0 and above of icpc choke on multiply defined symbols
4764 + # if we add $predep_objects and $postdep_objects, however 7.1 and
4765 + # earlier do not add the objects themselves.
4766 + case `$CC -V 2>&1` in
4767 + *"Version 7."*)
4768 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4769 + _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'
4770 + ;;
4771 + *) # Version 8.0 or newer
4772 + tmp_idyn=
4773 + case $host_cpu in
4774 + ia64*) tmp_idyn=' -i_dynamic';;
4775 + esac
4776 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4777 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4778 + ;;
4779 + esac
4780 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4781 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4782 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4783 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
4784 + ;;
4785 + pgCC*)
4786 + # Portland Group C++ compiler
4787 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
4788 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
4790 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
4791 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
4792 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
4793 + ;;
4794 + cxx*)
4795 + # Compaq C++
4796 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
4797 + _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'
4799 + runpath_var=LD_RUN_PATH
4800 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4801 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4803 + # Commands to make compiler produce verbose output that lists
4804 + # what "hidden" libraries, object files and flags are used when
4805 + # linking a shared library.
4807 + # There doesn't appear to be a way to prevent this compiler from
4808 + # explicitly linking system object files so we need to strip them
4809 + # from the output so that they don't get included in the library
4810 + # dependencies.
4811 + 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'
4812 + ;;
4813 + esac
4814 + ;;
4815 + lynxos*)
4816 + # FIXME: insert proper C++ library support
4817 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4818 + ;;
4819 + m88k*)
4820 + # FIXME: insert proper C++ library support
4821 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4822 + ;;
4823 + mvs*)
4824 + case $cc_basename in
4825 + cxx*)
4826 + # FIXME: insert proper C++ library support
4827 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4828 + ;;
4829 + *)
4830 + # FIXME: insert proper C++ library support
4831 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4832 + ;;
4833 + esac
4834 + ;;
4835 + netbsd*)
4836 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4837 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
4838 + wlarc=
4839 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
4840 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4841 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4842 + fi
4843 + # Workaround some broken pre-1.5 toolchains
4844 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
4845 + ;;
4846 + openbsd2*)
4847 + # C++ shared libraries are fairly broken
4848 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4849 + ;;
4850 + openbsd*)
4851 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
4852 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
4853 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
4854 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4855 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4856 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
4857 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4858 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4859 + fi
4860 + output_verbose_link_cmd='echo'
4861 + ;;
4862 + osf3*)
4863 + case $cc_basename in
4864 + KCC*)
4865 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4867 + # KCC will only create a shared library if the output file
4868 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4869 + # to its proper name (with version) after linking.
4870 + _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'
4872 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4873 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4875 + # Archives containing C++ object files must be created using
4876 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
4877 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
4879 + ;;
4880 + RCC*)
4881 + # Rational C++ 2.4.1
4882 + # FIXME: insert proper C++ library support
4883 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4884 + ;;
4885 + cxx*)
4886 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4887 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4889 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4890 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4892 + # Commands to make compiler produce verbose output that lists
4893 + # what "hidden" libraries, object files and flags are used when
4894 + # linking a shared library.
4896 + # There doesn't appear to be a way to prevent this compiler from
4897 + # explicitly linking system object files so we need to strip them
4898 + # from the output so that they don't get included in the library
4899 + # dependencies.
4900 + 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'
4901 + ;;
4902 + *)
4903 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4904 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4905 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4907 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4908 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4910 + # Commands to make compiler produce verbose output that lists
4911 + # what "hidden" libraries, object files and flags are used when
4912 + # linking a shared library.
4913 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4915 + else
4916 + # FIXME: insert proper C++ library support
4917 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4918 + fi
4919 + ;;
4920 + esac
4921 + ;;
4922 + osf4* | osf5*)
4923 + case $cc_basename in
4924 + KCC*)
4925 + # Kuck and Associates, Inc. (KAI) C++ Compiler
4927 + # KCC will only create a shared library if the output file
4928 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
4929 + # to its proper name (with version) after linking.
4930 + _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'
4932 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
4933 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4935 + # Archives containing C++ object files must be created using
4936 + # the KAI C++ compiler.
4937 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
4938 + ;;
4939 + RCC*)
4940 + # Rational C++ 2.4.1
4941 + # FIXME: insert proper C++ library support
4942 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4943 + ;;
4944 + cxx*)
4945 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
4946 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4947 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
4948 + echo "-hidden">> $lib.exp~
4949 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
4950 + $rm $lib.exp'
4952 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
4953 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4955 + # Commands to make compiler produce verbose output that lists
4956 + # what "hidden" libraries, object files and flags are used when
4957 + # linking a shared library.
4959 + # There doesn't appear to be a way to prevent this compiler from
4960 + # explicitly linking system object files so we need to strip them
4961 + # from the output so that they don't get included in the library
4962 + # dependencies.
4963 + 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'
4964 + ;;
4965 + *)
4966 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
4967 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
4968 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4970 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4971 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4973 + # Commands to make compiler produce verbose output that lists
4974 + # what "hidden" libraries, object files and flags are used when
4975 + # linking a shared library.
4976 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
4978 + else
4979 + # FIXME: insert proper C++ library support
4980 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4981 + fi
4982 + ;;
4983 + esac
4984 + ;;
4985 + psos*)
4986 + # FIXME: insert proper C++ library support
4987 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4988 + ;;
4989 + sunos4*)
4990 + case $cc_basename in
4991 + CC*)
4992 + # Sun C++ 4.x
4993 + # FIXME: insert proper C++ library support
4994 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4995 + ;;
4996 + lcc*)
4997 + # Lucid
4998 + # FIXME: insert proper C++ library support
4999 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5000 + ;;
5001 + *)
5002 + # FIXME: insert proper C++ library support
5003 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5004 + ;;
5005 + esac
5006 + ;;
5007 + solaris*)
5008 + case $cc_basename in
5009 + CC*)
5010 + # Sun C++ 4.2, 5.x and Centerline C++
5011 + _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
5012 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
5013 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
5014 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5015 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5017 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5018 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5019 + case $host_os in
5020 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5021 + *)
5022 + # The C++ compiler is used as linker so we must use $wl
5023 + # flag to pass the commands to the underlying system
5024 + # linker. We must also pass each convience library through
5025 + # to the system linker between allextract/defaultextract.
5026 + # The C++ compiler will combine linker options so we
5027 + # cannot just pass the convience library names through
5028 + # without $wl.
5029 + # Supported since Solaris 2.6 (maybe 2.5.1?)
5030 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
5031 + ;;
5032 + esac
5033 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5035 + output_verbose_link_cmd='echo'
5037 + # Archives containing C++ object files must be created using
5038 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
5039 + # necessary to make sure instantiated templates are included
5040 + # in the archive.
5041 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
5042 + ;;
5043 + gcx*)
5044 + # Green Hills C++ Compiler
5045 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5047 + # The C++ compiler must be used to create the archive.
5048 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
5049 + ;;
5050 + *)
5051 + # GNU C++ compiler with Solaris linker
5052 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
5053 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
5054 + if $CC --version | grep -v '^2\.7' > /dev/null; then
5055 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5056 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5057 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5059 + # Commands to make compiler produce verbose output that lists
5060 + # what "hidden" libraries, object files and flags are used when
5061 + # linking a shared library.
5062 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5063 + else
5064 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
5065 + # platform.
5066 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
5067 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5068 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
5070 + # Commands to make compiler produce verbose output that lists
5071 + # what "hidden" libraries, object files and flags are used when
5072 + # linking a shared library.
5073 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
5074 + fi
5076 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
5077 + fi
5078 + ;;
5079 + esac
5080 + ;;
5081 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
5082 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5083 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5084 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5085 + runpath_var='LD_RUN_PATH'
5087 + case $cc_basename in
5088 + CC*)
5089 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5090 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5091 + ;;
5092 + *)
5093 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5094 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
5095 + ;;
5096 + esac
5097 + ;;
5098 + sysv5* | sco3.2v5* | sco5v6*)
5099 + # Note: We can NOT use -z defs as we might desire, because we do not
5100 + # link with -lc, and that would cause any symbols used from libc to
5101 + # always be unresolved, which means just about no library would
5102 + # ever link correctly. If we're not using GNU ld we use -z text
5103 + # though, which does catch some bad symbols but isn't as heavy-handed
5104 + # as -z defs.
5105 + # For security reasons, it is highly recommended that you always
5106 + # use absolute paths for naming shared libraries, and exclude the
5107 + # DT_RUNPATH tag from executables and libraries. But doing so
5108 + # requires that you compile everything twice, which is a pain.
5109 + # So that behaviour is only enabled if SCOABSPATH is set to a
5110 + # non-empty value in the environment. Most likely only useful for
5111 + # creating official distributions of packages.
5112 + # This is a hack until libtool officially supports absolute path
5113 + # names for shared libraries.
5114 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
5115 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
5116 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5117 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5118 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
5119 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5120 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5121 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
5122 + runpath_var='LD_RUN_PATH'
5124 + case $cc_basename in
5125 + CC*)
5126 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5127 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5128 + ;;
5129 + *)
5130 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5131 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
5132 + ;;
5133 + esac
5134 + ;;
5135 + tandem*)
5136 + case $cc_basename in
5137 + NCC*)
5138 + # NonStop-UX NCC 3.20
5139 + # FIXME: insert proper C++ library support
5140 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5141 + ;;
5142 + *)
5143 + # FIXME: insert proper C++ library support
5144 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5145 + ;;
5146 + esac
5147 + ;;
5148 + vxworks*)
5149 + # FIXME: insert proper C++ library support
5150 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5151 + ;;
5152 + *)
5153 + # FIXME: insert proper C++ library support
5154 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5155 + ;;
5156 +esac
5157 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
5158 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
5160 +_LT_AC_TAGVAR(GCC, $1)="$GXX"
5161 +_LT_AC_TAGVAR(LD, $1)="$LD"
5163 +AC_LIBTOOL_POSTDEP_PREDEP($1)
5164 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5165 +AC_LIBTOOL_PROG_CC_C_O($1)
5166 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5167 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5168 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5169 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5171 +AC_LIBTOOL_CONFIG($1)
5173 +AC_LANG_POP
5174 +CC=$lt_save_CC
5175 +LDCXX=$LD
5176 +LD=$lt_save_LD
5177 +GCC=$lt_save_GCC
5178 +with_gnu_ldcxx=$with_gnu_ld
5179 +with_gnu_ld=$lt_save_with_gnu_ld
5180 +lt_cv_path_LDCXX=$lt_cv_path_LD
5181 +lt_cv_path_LD=$lt_save_path_LD
5182 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
5183 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
5184 +])# AC_LIBTOOL_LANG_CXX_CONFIG
5186 +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
5187 +# ------------------------------------
5188 +# Figure out "hidden" library dependencies from verbose
5189 +# compiler output when linking a shared library.
5190 +# Parse the compiler output and extract the necessary
5191 +# objects, libraries and library flags.
5192 +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
5193 +dnl we can't use the lt_simple_compile_test_code here,
5194 +dnl because it contains code intended for an executable,
5195 +dnl not a library. It's possible we should let each
5196 +dnl tag define a new lt_????_link_test_code variable,
5197 +dnl but it's only used here...
5198 +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
5199 +int a;
5200 +void foo (void) { a = 0; }
5201 +EOF
5202 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5203 +class Foo
5205 +public:
5206 + Foo (void) { a = 0; }
5207 +private:
5208 + int a;
5210 +EOF
5211 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5212 + subroutine foo
5213 + implicit none
5214 + integer*4 a
5215 + a=0
5216 + return
5217 + end
5218 +EOF
5219 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5220 +public class foo {
5221 + private int a;
5222 + public void bar (void) {
5223 + a = 0;
5226 +EOF
5228 +dnl Parse the compiler output and extract the necessary
5229 +dnl objects, libraries and library flags.
5230 +if AC_TRY_EVAL(ac_compile); then
5231 + # Parse the compiler output and extract the necessary
5232 + # objects, libraries and library flags.
5234 + # Sentinel used to keep track of whether or not we are before
5235 + # the conftest object file.
5236 + pre_test_object_deps_done=no
5238 + # The `*' in the case matches for architectures that use `case' in
5239 + # $output_verbose_cmd can trigger glob expansion during the loop
5240 + # eval without this substitution.
5241 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
5243 + for p in `eval $output_verbose_link_cmd`; do
5244 + case $p in
5246 + -L* | -R* | -l*)
5247 + # Some compilers place space between "-{L,R}" and the path.
5248 + # Remove the space.
5249 + if test $p = "-L" \
5250 + || test $p = "-R"; then
5251 + prev=$p
5252 + continue
5253 + else
5254 + prev=
5255 + fi
5257 + if test "$pre_test_object_deps_done" = no; then
5258 + case $p in
5259 + -L* | -R*)
5260 + # Internal compiler library paths should come after those
5261 + # provided the user. The postdeps already come after the
5262 + # user supplied libs so there is no need to process them.
5263 + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
5264 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
5265 + else
5266 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5267 + fi
5268 + ;;
5269 + # The "-l" case would never come before the object being
5270 + # linked, so don't bother handling this case.
5271 + esac
5272 + else
5273 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5274 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5275 + else
5276 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
5277 + fi
5278 + fi
5279 + ;;
5281 + *.$objext)
5282 + # This assumes that the test object file only shows up
5283 + # once in the compiler output.
5284 + if test "$p" = "conftest.$objext"; then
5285 + pre_test_object_deps_done=yes
5286 + continue
5287 + fi
5289 + if test "$pre_test_object_deps_done" = no; then
5290 + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
5291 + _LT_AC_TAGVAR(predep_objects, $1)="$p"
5292 + else
5293 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5294 + fi
5295 + else
5296 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5297 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5298 + else
5299 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5300 + fi
5301 + fi
5302 + ;;
5304 + *) ;; # Ignore the rest.
5306 + esac
5307 + done
5309 + # Clean up.
5310 + rm -f a.out a.exe
5311 +else
5312 + echo "libtool.m4: error: problem compiling $1 test program"
5315 +$rm -f confest.$objext
5317 +# PORTME: override above test on systems where it is broken
5318 +ifelse([$1],[CXX],
5319 +[case $host_os in
5320 +interix3*)
5321 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
5322 + # hack all around it, let's just trust "g++" to DTRT.
5323 + _LT_AC_TAGVAR(predep_objects,$1)=
5324 + _LT_AC_TAGVAR(postdep_objects,$1)=
5325 + _LT_AC_TAGVAR(postdeps,$1)=
5326 + ;;
5328 +solaris*)
5329 + case $cc_basename in
5330 + CC*)
5331 + # Adding this requires a known-good setup of shared libraries for
5332 + # Sun compiler versions before 5.6, else PIC objects from an old
5333 + # archive will be linked into the output, leading to subtle bugs.
5334 + _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
5335 + ;;
5336 + esac
5337 + ;;
5338 +esac
5341 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5342 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
5343 +esac
5344 +])# AC_LIBTOOL_POSTDEP_PREDEP
5346 +# AC_LIBTOOL_LANG_F77_CONFIG
5347 +# --------------------------
5348 +# Ensure that the configuration vars for the C compiler are
5349 +# suitably defined. Those variables are subsequently used by
5350 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5351 +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
5352 +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
5353 +[AC_REQUIRE([AC_PROG_F77])
5354 +AC_LANG_PUSH(Fortran 77)
5356 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5357 +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
5358 +_LT_AC_TAGVAR(always_export_symbols, $1)=no
5359 +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5360 +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5361 +_LT_AC_TAGVAR(hardcode_direct, $1)=no
5362 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5363 +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5364 +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5365 +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5366 +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
5367 +_LT_AC_TAGVAR(module_cmds, $1)=
5368 +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
5369 +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5370 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5371 +_LT_AC_TAGVAR(no_undefined_flag, $1)=
5372 +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5373 +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5375 +# Source file extension for f77 test sources.
5376 +ac_ext=f
5378 +# Object file extension for compiled f77 test sources.
5379 +objext=o
5380 +_LT_AC_TAGVAR(objext, $1)=$objext
5382 +# Code to be used in simple compile tests
5383 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
5385 +# Code to be used in simple link tests
5386 +lt_simple_link_test_code=" program t\n end\n"
5388 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5389 +_LT_AC_SYS_COMPILER
5391 +# save warnings/boilerplate of simple test code
5392 +_LT_COMPILER_BOILERPLATE
5393 +_LT_LINKER_BOILERPLATE
5395 +# Allow CC to be a program name with arguments.
5396 +lt_save_CC="$CC"
5397 +CC=${F77-"f77"}
5398 +compiler=$CC
5399 +_LT_AC_TAGVAR(compiler, $1)=$CC
5400 +_LT_CC_BASENAME([$compiler])
5402 +AC_MSG_CHECKING([if libtool supports shared libraries])
5403 +AC_MSG_RESULT([$can_build_shared])
5405 +AC_MSG_CHECKING([whether to build shared libraries])
5406 +test "$can_build_shared" = "no" && enable_shared=no
5408 +# On AIX, shared libraries and static libraries use the same namespace, and
5409 +# are all built from PIC.
5410 +case $host_os in
5411 +aix3*)
5412 + test "$enable_shared" = yes && enable_static=no
5413 + if test -n "$RANLIB"; then
5414 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
5415 + postinstall_cmds='$RANLIB $lib'
5416 + fi
5417 + ;;
5418 +aix4* | aix5*)
5419 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5420 + test "$enable_shared" = yes && enable_static=no
5421 + fi
5422 + ;;
5423 +esac
5424 +AC_MSG_RESULT([$enable_shared])
5426 +AC_MSG_CHECKING([whether to build static libraries])
5427 +# Make sure either enable_shared or enable_static is yes.
5428 +test "$enable_shared" = yes || enable_static=yes
5429 +AC_MSG_RESULT([$enable_static])
5431 +_LT_AC_TAGVAR(GCC, $1)="$G77"
5432 +_LT_AC_TAGVAR(LD, $1)="$LD"
5434 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5435 +AC_LIBTOOL_PROG_CC_C_O($1)
5436 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5437 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5438 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5439 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5441 +AC_LIBTOOL_CONFIG($1)
5443 +AC_LANG_POP
5444 +CC="$lt_save_CC"
5445 +])# AC_LIBTOOL_LANG_F77_CONFIG
5448 +# AC_LIBTOOL_LANG_GCJ_CONFIG
5449 +# --------------------------
5450 +# Ensure that the configuration vars for the C compiler are
5451 +# suitably defined. Those variables are subsequently used by
5452 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5453 +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
5454 +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
5455 +[AC_LANG_SAVE
5457 +# Source file extension for Java test sources.
5458 +ac_ext=java
5460 +# Object file extension for compiled Java test sources.
5461 +objext=o
5462 +_LT_AC_TAGVAR(objext, $1)=$objext
5464 +# Code to be used in simple compile tests
5465 +lt_simple_compile_test_code="class foo {}\n"
5467 +# Code to be used in simple link tests
5468 +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
5470 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5471 +_LT_AC_SYS_COMPILER
5473 +# save warnings/boilerplate of simple test code
5474 +_LT_COMPILER_BOILERPLATE
5475 +_LT_LINKER_BOILERPLATE
5477 +# Allow CC to be a program name with arguments.
5478 +lt_save_CC="$CC"
5479 +CC=${GCJ-"gcj"}
5480 +compiler=$CC
5481 +_LT_AC_TAGVAR(compiler, $1)=$CC
5482 +_LT_CC_BASENAME([$compiler])
5484 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
5485 +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5487 +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
5489 +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
5490 +AC_LIBTOOL_PROG_COMPILER_PIC($1)
5491 +AC_LIBTOOL_PROG_CC_C_O($1)
5492 +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
5493 +AC_LIBTOOL_PROG_LD_SHLIBS($1)
5494 +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
5495 +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
5497 +AC_LIBTOOL_CONFIG($1)
5499 +AC_LANG_RESTORE
5500 +CC="$lt_save_CC"
5501 +])# AC_LIBTOOL_LANG_GCJ_CONFIG
5504 +# AC_LIBTOOL_LANG_RC_CONFIG
5505 +# -------------------------
5506 +# Ensure that the configuration vars for the Windows resource compiler are
5507 +# suitably defined. Those variables are subsequently used by
5508 +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
5509 +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
5510 +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
5511 +[AC_LANG_SAVE
5513 +# Source file extension for RC test sources.
5514 +ac_ext=rc
5516 +# Object file extension for compiled RC test sources.
5517 +objext=o
5518 +_LT_AC_TAGVAR(objext, $1)=$objext
5520 +# Code to be used in simple compile tests
5521 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
5523 +# Code to be used in simple link tests
5524 +lt_simple_link_test_code="$lt_simple_compile_test_code"
5526 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
5527 +_LT_AC_SYS_COMPILER
5529 +# save warnings/boilerplate of simple test code
5530 +_LT_COMPILER_BOILERPLATE
5531 +_LT_LINKER_BOILERPLATE
5533 +# Allow CC to be a program name with arguments.
5534 +lt_save_CC="$CC"
5535 +CC=${RC-"windres"}
5536 +compiler=$CC
5537 +_LT_AC_TAGVAR(compiler, $1)=$CC
5538 +_LT_CC_BASENAME([$compiler])
5539 +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
5541 +AC_LIBTOOL_CONFIG($1)
5543 +AC_LANG_RESTORE
5544 +CC="$lt_save_CC"
5545 +])# AC_LIBTOOL_LANG_RC_CONFIG
5548 +# AC_LIBTOOL_CONFIG([TAGNAME])
5549 +# ----------------------------
5550 +# If TAGNAME is not passed, then create an initial libtool script
5551 +# with a default configuration from the untagged config vars. Otherwise
5552 +# add code to config.status for appending the configuration named by
5553 +# TAGNAME from the matching tagged config vars.
5554 +AC_DEFUN([AC_LIBTOOL_CONFIG],
5555 +[# The else clause should only fire when bootstrapping the
5556 +# libtool distribution, otherwise you forgot to ship ltmain.sh
5557 +# with your package, and you will get complaints that there are
5558 +# no rules to generate ltmain.sh.
5559 +if test -f "$ltmain"; then
5560 + # See if we are running on zsh, and set the options which allow our commands through
5561 + # without removal of \ escapes.
5562 + if test -n "${ZSH_VERSION+set}" ; then
5563 + setopt NO_GLOB_SUBST
5564 + fi
5565 + # Now quote all the things that may contain metacharacters while being
5566 + # careful not to overquote the AC_SUBSTed values. We take copies of the
5567 + # variables and quote the copies for generation of the libtool script.
5568 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
5569 + SED SHELL STRIP \
5570 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
5571 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
5572 + deplibs_check_method reload_flag reload_cmds need_locks \
5573 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
5574 + lt_cv_sys_global_symbol_to_c_name_address \
5575 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
5576 + old_postinstall_cmds old_postuninstall_cmds \
5577 + _LT_AC_TAGVAR(compiler, $1) \
5578 + _LT_AC_TAGVAR(CC, $1) \
5579 + _LT_AC_TAGVAR(LD, $1) \
5580 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
5581 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
5582 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
5583 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
5584 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
5585 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
5586 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
5587 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
5588 + _LT_AC_TAGVAR(old_archive_cmds, $1) \
5589 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
5590 + _LT_AC_TAGVAR(predep_objects, $1) \
5591 + _LT_AC_TAGVAR(postdep_objects, $1) \
5592 + _LT_AC_TAGVAR(predeps, $1) \
5593 + _LT_AC_TAGVAR(postdeps, $1) \
5594 + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
5595 + _LT_AC_TAGVAR(archive_cmds, $1) \
5596 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
5597 + _LT_AC_TAGVAR(postinstall_cmds, $1) \
5598 + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
5599 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
5600 + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
5601 + _LT_AC_TAGVAR(no_undefined_flag, $1) \
5602 + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
5603 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
5604 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
5605 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
5606 + _LT_AC_TAGVAR(hardcode_automatic, $1) \
5607 + _LT_AC_TAGVAR(module_cmds, $1) \
5608 + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
5609 + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
5610 + _LT_AC_TAGVAR(exclude_expsyms, $1) \
5611 + _LT_AC_TAGVAR(include_expsyms, $1); do
5613 + case $var in
5614 + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
5615 + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
5616 + _LT_AC_TAGVAR(archive_cmds, $1) | \
5617 + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
5618 + _LT_AC_TAGVAR(module_cmds, $1) | \
5619 + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
5620 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
5621 + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
5622 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
5623 + postinstall_cmds | postuninstall_cmds | \
5624 + old_postinstall_cmds | old_postuninstall_cmds | \
5625 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
5626 + # Double-quote double-evaled strings.
5627 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
5628 + ;;
5629 + *)
5630 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5631 + ;;
5632 + esac
5633 + done
5635 + case $lt_echo in
5636 + *'\[$]0 --fallback-echo"')
5637 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5638 + ;;
5639 + esac
5641 +ifelse([$1], [],
5642 + [cfgfile="${ofile}T"
5643 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5644 + $rm -f "$cfgfile"
5645 + AC_MSG_NOTICE([creating $ofile])],
5646 + [cfgfile="$ofile"])
5648 + cat <<__EOF__ >> "$cfgfile"
5649 +ifelse([$1], [],
5650 +[#! $SHELL
5652 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
5653 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
5654 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
5656 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
5657 +# Free Software Foundation, Inc.
5659 +# This file is part of GNU Libtool:
5660 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
5662 +# This program is free software; you can redistribute it and/or modify
5663 +# it under the terms of the GNU General Public License as published by
5664 +# the Free Software Foundation; either version 2 of the License, or
5665 +# (at your option) any later version.
5667 +# This program is distributed in the hope that it will be useful, but
5668 +# WITHOUT ANY WARRANTY; without even the implied warranty of
5669 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
5670 +# General Public License for more details.
5672 +# You should have received a copy of the GNU General Public License
5673 +# along with this program; if not, write to the Free Software
5674 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
5676 +# As a special exception to the GNU General Public License, if you
5677 +# distribute this file as part of a program that contains a
5678 +# configuration script generated by Autoconf, you may include it under
5679 +# the same distribution terms that you use for the rest of that program.
5681 +# A sed program that does not truncate output.
5682 +SED=$lt_SED
5684 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
5685 +Xsed="$SED -e 1s/^X//"
5687 +# The HP-UX ksh and POSIX shell print the target directory to stdout
5688 +# if CDPATH is set.
5689 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5691 +# The names of the tagged configurations supported by this script.
5692 +available_tags=
5694 +# ### BEGIN LIBTOOL CONFIG],
5695 +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
5697 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5699 +# Shell to use when invoking shell scripts.
5700 +SHELL=$lt_SHELL
5702 +# Whether or not to build shared libraries.
5703 +build_libtool_libs=$enable_shared
5705 +# Whether or not to build static libraries.
5706 +build_old_libs=$enable_static
5708 +# Whether or not to add -lc for building shared libraries.
5709 +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
5711 +# Whether or not to disallow shared libs when runtime libs are static
5712 +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
5714 +# Whether or not to optimize for fast installation.
5715 +fast_install=$enable_fast_install
5717 +# The host system.
5718 +host_alias=$host_alias
5719 +host=$host
5720 +host_os=$host_os
5722 +# The build system.
5723 +build_alias=$build_alias
5724 +build=$build
5725 +build_os=$build_os
5727 +# An echo program that does not interpret backslashes.
5728 +echo=$lt_echo
5730 +# The archiver.
5731 +AR=$lt_AR
5732 +AR_FLAGS=$lt_AR_FLAGS
5734 +# A C compiler.
5735 +LTCC=$lt_LTCC
5737 +# LTCC compiler flags.
5738 +LTCFLAGS=$lt_LTCFLAGS
5740 +# A language-specific compiler.
5741 +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
5743 +# Is the compiler the GNU C compiler?
5744 +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
5746 +# An ERE matcher.
5747 +EGREP=$lt_EGREP
5749 +# The linker used to build libraries.
5750 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5752 +# Whether we need hard or soft links.
5753 +LN_S=$lt_LN_S
5755 +# A BSD-compatible nm program.
5756 +NM=$lt_NM
5758 +# A symbol stripping program
5759 +STRIP=$lt_STRIP
5761 +# Used to examine libraries when file_magic_cmd begins "file"
5762 +MAGIC_CMD=$MAGIC_CMD
5764 +# Used on cygwin: DLL creation program.
5765 +DLLTOOL="$DLLTOOL"
5767 +# Used on cygwin: object dumper.
5768 +OBJDUMP="$OBJDUMP"
5770 +# Used on cygwin: assembler.
5771 +AS="$AS"
5773 +# The name of the directory that contains temporary libtool files.
5774 +objdir=$objdir
5776 +# How to create reloadable object files.
5777 +reload_flag=$lt_reload_flag
5778 +reload_cmds=$lt_reload_cmds
5780 +# How to pass a linker flag through the compiler.
5781 +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
5783 +# Object file suffix (normally "o").
5784 +objext="$ac_objext"
5786 +# Old archive suffix (normally "a").
5787 +libext="$libext"
5789 +# Shared library suffix (normally ".so").
5790 +shrext_cmds='$shrext_cmds'
5792 +# Executable file suffix (normally "").
5793 +exeext="$exeext"
5795 +# Additional compiler flags for building library objects.
5796 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
5797 +pic_mode=$pic_mode
5799 +# What is the maximum length of a command?
5800 +max_cmd_len=$lt_cv_sys_max_cmd_len
5802 +# Does compiler simultaneously support -c and -o options?
5803 +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
5805 +# Must we lock files when doing compilation?
5806 +need_locks=$lt_need_locks
5808 +# Do we need the lib prefix for modules?
5809 +need_lib_prefix=$need_lib_prefix
5811 +# Do we need a version for libraries?
5812 +need_version=$need_version
5814 +# Whether dlopen is supported.
5815 +dlopen_support=$enable_dlopen
5817 +# Whether dlopen of programs is supported.
5818 +dlopen_self=$enable_dlopen_self
5820 +# Whether dlopen of statically linked programs is supported.
5821 +dlopen_self_static=$enable_dlopen_self_static
5823 +# Compiler flag to prevent dynamic linking.
5824 +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
5826 +# Compiler flag to turn off builtin functions.
5827 +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
5829 +# Compiler flag to allow reflexive dlopens.
5830 +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
5832 +# Compiler flag to generate shared objects directly from archives.
5833 +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
5835 +# Compiler flag to generate thread-safe objects.
5836 +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
5838 +# Library versioning type.
5839 +version_type=$version_type
5841 +# Format of library name prefix.
5842 +libname_spec=$lt_libname_spec
5844 +# List of archive names. First name is the real one, the rest are links.
5845 +# The last name is the one that the linker finds with -lNAME.
5846 +library_names_spec=$lt_library_names_spec
5848 +# The coded name of the library, if different from the real name.
5849 +soname_spec=$lt_soname_spec
5851 +# Commands used to build and install an old-style archive.
5852 +RANLIB=$lt_RANLIB
5853 +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
5854 +old_postinstall_cmds=$lt_old_postinstall_cmds
5855 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
5857 +# Create an old-style archive from a shared archive.
5858 +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
5860 +# Create a temporary old-style archive to link instead of a shared archive.
5861 +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
5863 +# Commands used to build and install a shared archive.
5864 +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
5865 +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
5866 +postinstall_cmds=$lt_postinstall_cmds
5867 +postuninstall_cmds=$lt_postuninstall_cmds
5869 +# Commands used to build a loadable module (assumed same as above if empty)
5870 +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
5871 +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
5873 +# Commands to strip libraries.
5874 +old_striplib=$lt_old_striplib
5875 +striplib=$lt_striplib
5877 +# Dependencies to place before the objects being linked to create a
5878 +# shared library.
5879 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5881 +# Dependencies to place after the objects being linked to create a
5882 +# shared library.
5883 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5885 +# Dependencies to place before the objects being linked to create a
5886 +# shared library.
5887 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5889 +# Dependencies to place after the objects being linked to create a
5890 +# shared library.
5891 +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
5893 +# The library search path used internally by the compiler when linking
5894 +# a shared library.
5895 +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
5897 +# Method to check whether dependent libraries are shared objects.
5898 +deplibs_check_method=$lt_deplibs_check_method
5900 +# Command to use when deplibs_check_method == file_magic.
5901 +file_magic_cmd=$lt_file_magic_cmd
5903 +# Flag that allows shared libraries with undefined symbols to be built.
5904 +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
5906 +# Flag that forces no undefined symbols.
5907 +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
5909 +# Commands used to finish a libtool library installation in a directory.
5910 +finish_cmds=$lt_finish_cmds
5912 +# Same as above, but a single script fragment to be evaled but not shown.
5913 +finish_eval=$lt_finish_eval
5915 +# Take the output of nm and produce a listing of raw symbols and C names.
5916 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
5918 +# Transform the output of nm in a proper C declaration
5919 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
5921 +# Transform the output of nm in a C name address pair
5922 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
5924 +# This is the shared library runtime path variable.
5925 +runpath_var=$runpath_var
5927 +# This is the shared library path variable.
5928 +shlibpath_var=$shlibpath_var
5930 +# Is shlibpath searched before the hard-coded library search path?
5931 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
5933 +# How to hardcode a shared library path into an executable.
5934 +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
5936 +# Whether we should hardcode library paths into libraries.
5937 +hardcode_into_libs=$hardcode_into_libs
5939 +# Flag to hardcode \$libdir into a binary during linking.
5940 +# This must work even if \$libdir does not exist.
5941 +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
5943 +# If ld is used when linking, flag to hardcode \$libdir into
5944 +# a binary during linking. This must work even if \$libdir does
5945 +# not exist.
5946 +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
5948 +# Whether we need a single -rpath flag with a separated argument.
5949 +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
5951 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
5952 +# resulting binary.
5953 +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
5955 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
5956 +# resulting binary.
5957 +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
5959 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
5960 +# the resulting binary.
5961 +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
5963 +# Set to yes if building a shared library automatically hardcodes DIR into the library
5964 +# and all subsequent libraries and executables linked against it.
5965 +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
5967 +# Variables whose values should be saved in libtool wrapper scripts and
5968 +# restored at relink time.
5969 +variables_saved_for_relink="$variables_saved_for_relink"
5971 +# Whether libtool must link a program against all its dependency libraries.
5972 +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
5974 +# Compile-time system search path for libraries
5975 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
5977 +# Run-time system search path for libraries
5978 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
5980 +# Fix the shell variable \$srcfile for the compiler.
5981 +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
5983 +# Set to yes if exported symbols are required.
5984 +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
5986 +# The commands to list exported symbols.
5987 +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
5989 +# The commands to extract the exported symbol list from a shared archive.
5990 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
5992 +# Symbols that should not be listed in the preloaded symbols.
5993 +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
5995 +# Symbols that must always be exported.
5996 +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
5998 +ifelse([$1],[],
5999 +[# ### END LIBTOOL CONFIG],
6000 +[# ### END LIBTOOL TAG CONFIG: $tagname])
6002 +__EOF__
6004 +ifelse([$1],[], [
6005 + case $host_os in
6006 + aix3*)
6007 + cat <<\EOF >> "$cfgfile"
6009 +# AIX sometimes has problems with the GCC collect2 program. For some
6010 +# reason, if we set the COLLECT_NAMES environment variable, the problems
6011 +# vanish in a puff of smoke.
6012 +if test "X${COLLECT_NAMES+set}" != Xset; then
6013 + COLLECT_NAMES=
6014 + export COLLECT_NAMES
6016 +EOF
6017 + ;;
6018 + esac
6020 + # We use sed instead of cat because bash on DJGPP gets confused if
6021 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
6022 + # text mode, it properly converts lines to CR/LF. This bash problem
6023 + # is reportedly fixed, but why not run on old versions too?
6024 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
6026 + mv -f "$cfgfile" "$ofile" || \
6027 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
6028 + chmod +x "$ofile"
6030 +else
6031 + # If there is no Makefile yet, we rely on a make rule to execute
6032 + # `config.status --recheck' to rerun these tests and create the
6033 + # libtool script then.
6034 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
6035 + if test -f "$ltmain_in"; then
6036 + test -f Makefile && make "$ltmain"
6037 + fi
6039 +])# AC_LIBTOOL_CONFIG
6042 +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
6043 +# -------------------------------------------
6044 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
6045 +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
6047 +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6049 +if test "$GCC" = yes; then
6050 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6052 + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
6053 + lt_cv_prog_compiler_rtti_exceptions,
6054 + [-fno-rtti -fno-exceptions], [],
6055 + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
6057 +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
6060 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6061 +# ---------------------------------
6062 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
6063 +[AC_REQUIRE([AC_CANONICAL_HOST])
6064 +AC_REQUIRE([AC_PROG_NM])
6065 +AC_REQUIRE([AC_OBJEXT])
6066 +# Check for command to grab the raw symbol name followed by C symbol from nm.
6067 +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
6068 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
6070 +# These are sane defaults that work on at least a few old systems.
6071 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6073 +# Character class describing NM global symbol codes.
6074 +symcode='[[BCDEGRST]]'
6076 +# Regexp to match symbols that can be accessed directly from C.
6077 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
6079 +# Transform an extracted symbol line into a proper C declaration
6080 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6082 +# Transform an extracted symbol line into symbol name and symbol address
6083 +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'"
6085 +# Define system-specific variables.
6086 +case $host_os in
6087 +aix*)
6088 + symcode='[[BCDT]]'
6089 + ;;
6090 +cygwin* | mingw* | pw32*)
6091 + symcode='[[ABCDGISTW]]'
6092 + ;;
6093 +hpux*) # Its linker distinguishes data from code symbols
6094 + if test "$host_cpu" = ia64; then
6095 + symcode='[[ABCDEGRST]]'
6096 + fi
6097 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6098 + 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'"
6099 + ;;
6100 +linux*)
6101 + if test "$host_cpu" = ia64; then
6102 + symcode='[[ABCDGIRSTW]]'
6103 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6104 + 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'"
6105 + fi
6106 + ;;
6107 +irix* | nonstopux*)
6108 + symcode='[[BCDEGRST]]'
6109 + ;;
6110 +osf*)
6111 + symcode='[[BCDEGQRST]]'
6112 + ;;
6113 +solaris*)
6114 + symcode='[[BDRT]]'
6115 + ;;
6116 +sco3.2v5*)
6117 + symcode='[[DT]]'
6118 + ;;
6119 +sysv4.2uw2*)
6120 + symcode='[[DT]]'
6121 + ;;
6122 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
6123 + symcode='[[ABDT]]'
6124 + ;;
6125 +sysv4)
6126 + symcode='[[DFNSTU]]'
6127 + ;;
6128 +esac
6130 +# Handle CRLF in mingw tool chain
6131 +opt_cr=
6132 +case $build_os in
6133 +mingw*)
6134 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6135 + ;;
6136 +esac
6138 +# If we're using GNU nm, then use its standard symbol codes.
6139 +case `$NM -V 2>&1` in
6140 +*GNU* | *'with BFD'*)
6141 + symcode='[[ABCDGIRSTW]]' ;;
6142 +esac
6144 +# Try without a prefix undercore, then with it.
6145 +for ac_symprfx in "" "_"; do
6147 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6148 + symxfrm="\\1 $ac_symprfx\\2 \\2"
6150 + # Write the raw and C identifiers.
6151 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6153 + # Check to see that the pipe works correctly.
6154 + pipe_works=no
6156 + rm -f conftest*
6157 + cat > conftest.$ac_ext <<EOF
6158 +#ifdef __cplusplus
6159 +extern "C" {
6160 +#endif
6161 +char nm_test_var;
6162 +void nm_test_func(){}
6163 +#ifdef __cplusplus
6165 +#endif
6166 +int main(){nm_test_var='a';nm_test_func();return(0);}
6167 +EOF
6169 + if AC_TRY_EVAL(ac_compile); then
6170 + # Now try to grab the symbols.
6171 + nlist=conftest.nm
6172 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
6173 + # Try sorting and uniquifying the output.
6174 + if sort "$nlist" | uniq > "$nlist"T; then
6175 + mv -f "$nlist"T "$nlist"
6176 + else
6177 + rm -f "$nlist"T
6178 + fi
6180 + # Make sure that we snagged all the symbols we need.
6181 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
6182 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
6183 + cat <<EOF > conftest.$ac_ext
6184 +#ifdef __cplusplus
6185 +extern "C" {
6186 +#endif
6188 +EOF
6189 + # Now generate the symbol file.
6190 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6192 + cat <<EOF >> conftest.$ac_ext
6193 +#if defined (__STDC__) && __STDC__
6194 +# define lt_ptr_t void *
6195 +#else
6196 +# define lt_ptr_t char *
6197 +# define const
6198 +#endif
6200 +/* The mapping between symbol names and symbols. */
6201 +const struct {
6202 + const char *name;
6203 + lt_ptr_t address;
6205 +lt_preloaded_symbols[[]] =
6207 +EOF
6208 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6209 + cat <<\EOF >> conftest.$ac_ext
6210 + {0, (lt_ptr_t) 0}
6213 +#ifdef __cplusplus
6215 +#endif
6216 +EOF
6217 + # Now try linking the two files.
6218 + mv conftest.$ac_objext conftstm.$ac_objext
6219 + lt_save_LIBS="$LIBS"
6220 + lt_save_CFLAGS="$CFLAGS"
6221 + LIBS="conftstm.$ac_objext"
6222 + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
6223 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
6224 + pipe_works=yes
6225 + fi
6226 + LIBS="$lt_save_LIBS"
6227 + CFLAGS="$lt_save_CFLAGS"
6228 + else
6229 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6230 + fi
6231 + else
6232 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6233 + fi
6234 + else
6235 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6236 + fi
6237 + else
6238 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6239 + cat conftest.$ac_ext >&5
6240 + fi
6241 + rm -f conftest* conftst*
6243 + # Do not use the global_symbol_pipe unless it works.
6244 + if test "$pipe_works" = yes; then
6245 + break
6246 + else
6247 + lt_cv_sys_global_symbol_pipe=
6248 + fi
6249 +done
6251 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
6252 + lt_cv_sys_global_symbol_to_cdecl=
6254 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6255 + AC_MSG_RESULT(failed)
6256 +else
6257 + AC_MSG_RESULT(ok)
6259 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
6262 +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
6263 +# ---------------------------------------
6264 +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
6265 +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
6266 +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6267 +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
6269 +AC_MSG_CHECKING([for $compiler option to produce PIC])
6270 + ifelse([$1],[CXX],[
6271 + # C++ specific cases for pic, static, wl, etc.
6272 + if test "$GXX" = yes; then
6273 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6274 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6276 + case $host_os in
6277 + aix*)
6278 + # All AIX code is PIC.
6279 + if test "$host_cpu" = ia64; then
6280 + # AIX 5 now supports IA64 processor
6281 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6282 + fi
6283 + ;;
6284 + amigaos*)
6285 + # FIXME: we need at least 68020 code to build shared libraries, but
6286 + # adding the `-m68020' flag to GCC prevents building anything better,
6287 + # like `-m68040'.
6288 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6289 + ;;
6290 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6291 + # PIC is the default for these OSes.
6292 + ;;
6293 + mingw* | os2* | pw32*)
6294 + # This hack is so that the source file can tell whether it is being
6295 + # built for inclusion in a dll (and should export symbols for example).
6296 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6297 + ;;
6298 + darwin* | rhapsody*)
6299 + # PIC is the default on this platform
6300 + # Common symbols not allowed in MH_DYLIB files
6301 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6302 + ;;
6303 + *djgpp*)
6304 + # DJGPP does not support shared libraries at all
6305 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6306 + ;;
6307 + interix3*)
6308 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6309 + # Instead, we relocate shared libraries at runtime.
6310 + ;;
6311 + sysv4*MP*)
6312 + if test -d /usr/nec; then
6313 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6314 + fi
6315 + ;;
6316 + hpux*)
6317 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6318 + # not for PA HP-UX.
6319 + case $host_cpu in
6320 + hppa*64*|ia64*)
6321 + ;;
6322 + *)
6323 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6324 + ;;
6325 + esac
6326 + ;;
6327 + *)
6328 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6329 + ;;
6330 + esac
6331 + else
6332 + case $host_os in
6333 + aix4* | aix5*)
6334 + # All AIX code is PIC.
6335 + if test "$host_cpu" = ia64; then
6336 + # AIX 5 now supports IA64 processor
6337 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6338 + else
6339 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6340 + fi
6341 + ;;
6342 + chorus*)
6343 + case $cc_basename in
6344 + cxch68*)
6345 + # Green Hills C++ Compiler
6346 + # _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"
6347 + ;;
6348 + esac
6349 + ;;
6350 + darwin*)
6351 + # PIC is the default on this platform
6352 + # Common symbols not allowed in MH_DYLIB files
6353 + case $cc_basename in
6354 + xlc*)
6355 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6356 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6357 + ;;
6358 + esac
6359 + ;;
6360 + dgux*)
6361 + case $cc_basename in
6362 + ec++*)
6363 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6364 + ;;
6365 + ghcx*)
6366 + # Green Hills C++ Compiler
6367 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6368 + ;;
6369 + *)
6370 + ;;
6371 + esac
6372 + ;;
6373 + freebsd* | kfreebsd*-gnu | dragonfly*)
6374 + # FreeBSD uses GNU C++
6375 + ;;
6376 + hpux9* | hpux10* | hpux11*)
6377 + case $cc_basename in
6378 + CC*)
6379 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6380 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6381 + if test "$host_cpu" != ia64; then
6382 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6383 + fi
6384 + ;;
6385 + aCC*)
6386 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6387 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6388 + case $host_cpu in
6389 + hppa*64*|ia64*)
6390 + # +Z the default
6391 + ;;
6392 + *)
6393 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6394 + ;;
6395 + esac
6396 + ;;
6397 + *)
6398 + ;;
6399 + esac
6400 + ;;
6401 + interix*)
6402 + # This is c89, which is MS Visual C++ (no shared libs)
6403 + # Anyone wants to do a port?
6404 + ;;
6405 + irix5* | irix6* | nonstopux*)
6406 + case $cc_basename in
6407 + CC*)
6408 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6409 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6410 + # CC pic flag -KPIC is the default.
6411 + ;;
6412 + *)
6413 + ;;
6414 + esac
6415 + ;;
6416 + linux*)
6417 + case $cc_basename in
6418 + KCC*)
6419 + # KAI C++ Compiler
6420 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6421 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6422 + ;;
6423 + icpc* | ecpc*)
6424 + # Intel C++
6425 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6426 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6427 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6428 + ;;
6429 + pgCC*)
6430 + # Portland Group C++ compiler.
6431 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6432 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6433 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6434 + ;;
6435 + cxx*)
6436 + # Compaq C++
6437 + # Make sure the PIC flag is empty. It appears that all Alpha
6438 + # Linux and Compaq Tru64 Unix objects are PIC.
6439 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6440 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6441 + ;;
6442 + *)
6443 + ;;
6444 + esac
6445 + ;;
6446 + lynxos*)
6447 + ;;
6448 + m88k*)
6449 + ;;
6450 + mvs*)
6451 + case $cc_basename in
6452 + cxx*)
6453 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6454 + ;;
6455 + *)
6456 + ;;
6457 + esac
6458 + ;;
6459 + netbsd*)
6460 + ;;
6461 + osf3* | osf4* | osf5*)
6462 + case $cc_basename in
6463 + KCC*)
6464 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6465 + ;;
6466 + RCC*)
6467 + # Rational C++ 2.4.1
6468 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6469 + ;;
6470 + cxx*)
6471 + # Digital/Compaq C++
6472 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6473 + # Make sure the PIC flag is empty. It appears that all Alpha
6474 + # Linux and Compaq Tru64 Unix objects are PIC.
6475 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6476 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6477 + ;;
6478 + *)
6479 + ;;
6480 + esac
6481 + ;;
6482 + psos*)
6483 + ;;
6484 + solaris*)
6485 + case $cc_basename in
6486 + CC*)
6487 + # Sun C++ 4.2, 5.x and Centerline C++
6488 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6489 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6490 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6491 + ;;
6492 + gcx*)
6493 + # Green Hills C++ Compiler
6494 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6495 + ;;
6496 + *)
6497 + ;;
6498 + esac
6499 + ;;
6500 + sunos4*)
6501 + case $cc_basename in
6502 + CC*)
6503 + # Sun C++ 4.x
6504 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6505 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6506 + ;;
6507 + lcc*)
6508 + # Lucid
6509 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6510 + ;;
6511 + *)
6512 + ;;
6513 + esac
6514 + ;;
6515 + tandem*)
6516 + case $cc_basename in
6517 + NCC*)
6518 + # NonStop-UX NCC 3.20
6519 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6520 + ;;
6521 + *)
6522 + ;;
6523 + esac
6524 + ;;
6525 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6526 + case $cc_basename in
6527 + CC*)
6528 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6529 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6530 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6531 + ;;
6532 + esac
6533 + ;;
6534 + vxworks*)
6535 + ;;
6536 + *)
6537 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6538 + ;;
6539 + esac
6540 + fi
6543 + if test "$GCC" = yes; then
6544 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6545 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6547 + case $host_os in
6548 + aix*)
6549 + # All AIX code is PIC.
6550 + if test "$host_cpu" = ia64; then
6551 + # AIX 5 now supports IA64 processor
6552 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6553 + fi
6554 + ;;
6556 + amigaos*)
6557 + # FIXME: we need at least 68020 code to build shared libraries, but
6558 + # adding the `-m68020' flag to GCC prevents building anything better,
6559 + # like `-m68040'.
6560 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6561 + ;;
6563 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6564 + # PIC is the default for these OSes.
6565 + ;;
6567 + mingw* | pw32* | os2*)
6568 + # This hack is so that the source file can tell whether it is being
6569 + # built for inclusion in a dll (and should export symbols for example).
6570 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6571 + ;;
6573 + darwin* | rhapsody*)
6574 + # PIC is the default on this platform
6575 + # Common symbols not allowed in MH_DYLIB files
6576 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
6577 + ;;
6579 + interix3*)
6580 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6581 + # Instead, we relocate shared libraries at runtime.
6582 + ;;
6584 + msdosdjgpp*)
6585 + # Just because we use GCC doesn't mean we suddenly get shared libraries
6586 + # on systems that don't support them.
6587 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6588 + enable_shared=no
6589 + ;;
6591 + sysv4*MP*)
6592 + if test -d /usr/nec; then
6593 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6594 + fi
6595 + ;;
6597 + hpux*)
6598 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6599 + # not for PA HP-UX.
6600 + case $host_cpu in
6601 + hppa*64*|ia64*)
6602 + # +Z the default
6603 + ;;
6604 + *)
6605 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6606 + ;;
6607 + esac
6608 + ;;
6610 + *)
6611 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6612 + ;;
6613 + esac
6614 + else
6615 + # PORTME Check for flag to pass linker flags through the system compiler.
6616 + case $host_os in
6617 + aix*)
6618 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6619 + if test "$host_cpu" = ia64; then
6620 + # AIX 5 now supports IA64 processor
6621 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6622 + else
6623 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6624 + fi
6625 + ;;
6626 + darwin*)
6627 + # PIC is the default on this platform
6628 + # Common symbols not allowed in MH_DYLIB files
6629 + case $cc_basename in
6630 + xlc*)
6631 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6632 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6633 + ;;
6634 + esac
6635 + ;;
6637 + mingw* | pw32* | os2*)
6638 + # This hack is so that the source file can tell whether it is being
6639 + # built for inclusion in a dll (and should export symbols for example).
6640 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
6641 + ;;
6643 + hpux9* | hpux10* | hpux11*)
6644 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6645 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6646 + # not for PA HP-UX.
6647 + case $host_cpu in
6648 + hppa*64*|ia64*)
6649 + # +Z the default
6650 + ;;
6651 + *)
6652 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6653 + ;;
6654 + esac
6655 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
6656 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6657 + ;;
6659 + irix5* | irix6* | nonstopux*)
6660 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6661 + # PIC (with -KPIC) is the default.
6662 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6663 + ;;
6665 + newsos6)
6666 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6667 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6668 + ;;
6670 + linux*)
6671 + case $cc_basename in
6672 + icc* | ecc*)
6673 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6674 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6675 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
6676 + ;;
6677 + pgcc* | pgf77* | pgf90* | pgf95*)
6678 + # Portland Group compilers (*not* the Pentium gcc compiler,
6679 + # which looks to be a dead project)
6680 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6681 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
6682 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6683 + ;;
6684 + ccc*)
6685 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6686 + # All Alpha code is PIC.
6687 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6688 + ;;
6689 + esac
6690 + ;;
6692 + osf3* | osf4* | osf5*)
6693 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6694 + # All OSF/1 code is PIC.
6695 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
6696 + ;;
6698 + solaris*)
6699 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6700 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6701 + case $cc_basename in
6702 + f77* | f90* | f95*)
6703 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
6704 + *)
6705 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
6706 + esac
6707 + ;;
6709 + sunos4*)
6710 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
6711 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6712 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6713 + ;;
6715 + sysv4 | sysv4.2uw2* | sysv4.3*)
6716 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6717 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6718 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6719 + ;;
6721 + sysv4*MP*)
6722 + if test -d /usr/nec ;then
6723 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
6724 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6725 + fi
6726 + ;;
6728 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6729 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6730 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6731 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6732 + ;;
6734 + unicos*)
6735 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6736 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6737 + ;;
6739 + uts4*)
6740 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6741 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6742 + ;;
6744 + *)
6745 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6746 + ;;
6747 + esac
6748 + fi
6750 +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
6753 +# Check to make sure the PIC flag actually works.
6755 +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
6756 + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
6757 + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
6758 + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
6759 + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
6760 + "" | " "*) ;;
6761 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6762 + esac],
6763 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6764 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6766 +case $host_os in
6767 + # For platforms which do not support PIC, -DPIC is meaningless:
6768 + *djgpp*)
6769 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6770 + ;;
6771 + *)
6772 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
6773 + ;;
6774 +esac
6777 +# Check to make sure the static flag actually works.
6779 +wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
6780 +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
6781 + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
6782 + $lt_tmp_static_flag,
6783 + [],
6784 + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
6788 +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
6789 +# ------------------------------------
6790 +# See if the linker supports building shared libraries.
6791 +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
6792 +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6793 +ifelse([$1],[CXX],[
6794 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6795 + case $host_os in
6796 + aix4* | aix5*)
6797 + # If we're using GNU nm, then we don't want the "-C" option.
6798 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
6799 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6800 + _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'
6801 + else
6802 + _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'
6803 + fi
6804 + ;;
6805 + pw32*)
6806 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
6807 + ;;
6808 + cygwin* | mingw*)
6809 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6810 + ;;
6811 + *)
6812 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6813 + ;;
6814 + esac
6815 +],[
6816 + runpath_var=
6817 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6818 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6819 + _LT_AC_TAGVAR(archive_cmds, $1)=
6820 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
6821 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
6822 + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
6823 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
6824 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6825 + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
6826 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
6827 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
6828 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
6829 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
6830 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
6831 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6832 + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
6833 + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
6834 + _LT_AC_TAGVAR(module_cmds, $1)=
6835 + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
6836 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
6837 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6838 + # include_expsyms should be a list of space-separated symbols to be *always*
6839 + # included in the symbol list
6840 + _LT_AC_TAGVAR(include_expsyms, $1)=
6841 + # exclude_expsyms can be an extended regexp of symbols to exclude
6842 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
6843 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6844 + # as well as any symbol that contains `d'.
6845 + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
6846 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6847 + # platforms (ab)use it in PIC code, but their linkers get confused if
6848 + # the symbol is explicitly referenced. Since portable code cannot
6849 + # rely on this symbol name, it's probably fine to never include it in
6850 + # preloaded symbol tables.
6851 + extract_expsyms_cmds=
6852 + # Just being paranoid about ensuring that cc_basename is set.
6853 + _LT_CC_BASENAME([$compiler])
6854 + case $host_os in
6855 + cygwin* | mingw* | pw32*)
6856 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
6857 + # When not using gcc, we currently assume that we are using
6858 + # Microsoft Visual C++.
6859 + if test "$GCC" != yes; then
6860 + with_gnu_ld=no
6861 + fi
6862 + ;;
6863 + interix*)
6864 + # we just hope/assume this is gcc and not c89 (= MSVC++)
6865 + with_gnu_ld=yes
6866 + ;;
6867 + openbsd*)
6868 + with_gnu_ld=no
6869 + ;;
6870 + esac
6872 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6873 + if test "$with_gnu_ld" = yes; then
6874 + # If archive_cmds runs LD, not CC, wlarc should be empty
6875 + wlarc='${wl}'
6877 + # Set some defaults for GNU ld with shared library support. These
6878 + # are reset later if shared libraries are not supported. Putting them
6879 + # here allows them to be overridden if necessary.
6880 + runpath_var=LD_RUN_PATH
6881 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
6882 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
6883 + # ancient GNU ld didn't support --whole-archive et. al.
6884 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6885 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6886 + else
6887 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
6888 + fi
6889 + supports_anon_versioning=no
6890 + case `$LD -v 2>/dev/null` in
6891 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
6892 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6893 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6894 + *\ 2.11.*) ;; # other 2.11 versions
6895 + *) supports_anon_versioning=yes ;;
6896 + esac
6898 + # See if GNU ld supports shared libraries.
6899 + case $host_os in
6900 + aix3* | aix4* | aix5*)
6901 + # On AIX/PPC, the GNU linker is very broken
6902 + if test "$host_cpu" != ia64; then
6903 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6904 + cat <<EOF 1>&2
6906 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
6907 +*** to be unable to reliably create shared libraries on AIX.
6908 +*** Therefore, libtool is disabling shared libraries support. If you
6909 +*** really care for shared libraries, you may want to modify your PATH
6910 +*** so that a non-GNU linker is found, and then restart.
6912 +EOF
6913 + fi
6914 + ;;
6916 + amigaos*)
6917 + _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)'
6918 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6919 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6921 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6922 + # that the semantics of dynamic libraries on AmigaOS, at least up
6923 + # to version 4, is to share data among multiple programs linked
6924 + # with the same dynamic library. Since this doesn't match the
6925 + # behavior of shared libraries on other platforms, we can't use
6926 + # them.
6927 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6928 + ;;
6930 + beos*)
6931 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6932 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6933 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6934 + # support --undefined. This deserves some investigation. FIXME
6935 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6936 + else
6937 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6938 + fi
6939 + ;;
6941 + cygwin* | mingw* | pw32*)
6942 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6943 + # as there is no search path for DLLs.
6944 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6945 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6946 + _LT_AC_TAGVAR(always_export_symbols, $1)=no
6947 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6948 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
6950 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6951 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6952 + # If the export-symbols file already is a .def file (1st line
6953 + # is EXPORTS), use it as is; otherwise, prepend...
6954 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6955 + cp $export_symbols $output_objdir/$soname.def;
6956 + else
6957 + echo EXPORTS > $output_objdir/$soname.def;
6958 + cat $export_symbols >> $output_objdir/$soname.def;
6959 + fi~
6960 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6961 + else
6962 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
6963 + fi
6964 + ;;
6966 + interix3*)
6967 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
6968 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6969 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6970 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6971 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6972 + # Instead, shared libraries are loaded at an image base (0x10000000 by
6973 + # default) and relocated if they conflict, which is a slow very memory
6974 + # consuming and fragmenting process. To avoid this, we pick a random,
6975 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6976 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6977 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6978 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6979 + ;;
6981 + linux*)
6982 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6983 + tmp_addflag=
6984 + case $cc_basename,$host_cpu in
6985 + pgcc*) # Portland Group C compiler
6986 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6987 + tmp_addflag=' $pic_flag'
6988 + ;;
6989 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6990 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6991 + tmp_addflag=' $pic_flag -Mnomain' ;;
6992 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6993 + tmp_addflag=' -i_dynamic' ;;
6994 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6995 + tmp_addflag=' -i_dynamic -nofor_main' ;;
6996 + ifc* | ifort*) # Intel Fortran compiler
6997 + tmp_addflag=' -nofor_main' ;;
6998 + esac
6999 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7001 + if test $supports_anon_versioning = yes; then
7002 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
7003 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7004 + $echo "local: *; };" >> $output_objdir/$libname.ver~
7005 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7006 + fi
7007 + else
7008 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7009 + fi
7010 + ;;
7012 + netbsd*)
7013 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7014 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7015 + wlarc=
7016 + else
7017 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7018 + _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'
7019 + fi
7020 + ;;
7022 + solaris*)
7023 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7024 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7025 + cat <<EOF 1>&2
7027 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7028 +*** create shared libraries on Solaris systems. Therefore, libtool
7029 +*** is disabling shared libraries support. We urge you to upgrade GNU
7030 +*** binutils to release 2.9.1 or newer. Another option is to modify
7031 +*** your PATH or compiler configuration so that the native linker is
7032 +*** used, and then restart.
7034 +EOF
7035 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7036 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7037 + _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'
7038 + else
7039 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7040 + fi
7041 + ;;
7043 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7044 + case `$LD -v 2>&1` in
7045 + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
7046 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7047 + cat <<_LT_EOF 1>&2
7049 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7050 +*** reliably create shared libraries on SCO systems. Therefore, libtool
7051 +*** is disabling shared libraries support. We urge you to upgrade GNU
7052 +*** binutils to release 2.16.91.0.3 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 +_LT_EOF
7057 + ;;
7058 + *)
7059 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7060 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7061 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7062 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7063 + else
7064 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7065 + fi
7066 + ;;
7067 + esac
7068 + ;;
7070 + sunos4*)
7071 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7072 + wlarc=
7073 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7074 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7075 + ;;
7077 + *)
7078 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7079 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7080 + _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'
7081 + else
7082 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7083 + fi
7084 + ;;
7085 + esac
7087 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
7088 + runpath_var=
7089 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
7090 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
7091 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
7092 + fi
7093 + else
7094 + # PORTME fill in a description of your system's linker (not GNU ld)
7095 + case $host_os in
7096 + aix3*)
7097 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7098 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7099 + _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'
7100 + # Note: this linker hardcodes the directories in LIBPATH if there
7101 + # are no directories specified by -L.
7102 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7103 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7104 + # Neither direct hardcoding nor static linking is supported with a
7105 + # broken collect2.
7106 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7107 + fi
7108 + ;;
7110 + aix4* | aix5*)
7111 + if test "$host_cpu" = ia64; then
7112 + # On IA64, the linker does run time linking by default, so we don't
7113 + # have to do anything special.
7114 + aix_use_runtimelinking=no
7115 + exp_sym_flag='-Bexport'
7116 + no_entry_flag=""
7117 + else
7118 + # If we're using GNU nm, then we don't want the "-C" option.
7119 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
7120 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7121 + _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'
7122 + else
7123 + _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'
7124 + fi
7125 + aix_use_runtimelinking=no
7127 + # Test if we are trying to use run time linking or normal
7128 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7129 + # need to do runtime linking.
7130 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
7131 + for ld_flag in $LDFLAGS; do
7132 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7133 + aix_use_runtimelinking=yes
7134 + break
7135 + fi
7136 + done
7137 + ;;
7138 + esac
7140 + exp_sym_flag='-bexport'
7141 + no_entry_flag='-bnoentry'
7142 + fi
7144 + # When large executables or shared objects are built, AIX ld can
7145 + # have problems creating the table of contents. If linking a library
7146 + # or program results in "error TOC overflow" add -mminimal-toc to
7147 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7148 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7150 + _LT_AC_TAGVAR(archive_cmds, $1)=''
7151 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7152 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7153 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7155 + if test "$GCC" = yes; then
7156 + case $host_os in aix4.[[012]]|aix4.[[012]].*)
7157 + # We only want to do this on AIX 4.2 and lower, the check
7158 + # below for broken collect2 doesn't work under 4.3+
7159 + collect2name=`${CC} -print-prog-name=collect2`
7160 + if test -f "$collect2name" && \
7161 + strings "$collect2name" | grep resolve_lib_name >/dev/null
7162 + then
7163 + # We have reworked collect2
7164 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7165 + else
7166 + # We have old collect2
7167 + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
7168 + # It fails to find uninstalled libraries when the uninstalled
7169 + # path is not listed in the libpath. Setting hardcode_minus_L
7170 + # to unsupported forces relinking
7171 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7172 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7173 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
7174 + fi
7175 + ;;
7176 + esac
7177 + shared_flag='-shared'
7178 + if test "$aix_use_runtimelinking" = yes; then
7179 + shared_flag="$shared_flag "'${wl}-G'
7180 + fi
7181 + else
7182 + # not using gcc
7183 + if test "$host_cpu" = ia64; then
7184 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7185 + # chokes on -Wl,-G. The following line is correct:
7186 + shared_flag='-G'
7187 + else
7188 + if test "$aix_use_runtimelinking" = yes; then
7189 + shared_flag='${wl}-G'
7190 + else
7191 + shared_flag='${wl}-bM:SRE'
7192 + fi
7193 + fi
7194 + fi
7196 + # It seems that -bexpall does not export symbols beginning with
7197 + # underscore (_), so it is better to generate a list of symbols to export.
7198 + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
7199 + if test "$aix_use_runtimelinking" = yes; then
7200 + # Warning - without using the other runtime loading flags (-brtl),
7201 + # -berok will link without error, but may produce a broken library.
7202 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
7203 + # Determine the default libpath from the value encoded in an empty executable.
7204 + _LT_AC_SYS_LIBPATH_AIX
7205 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7206 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7207 + else
7208 + if test "$host_cpu" = ia64; then
7209 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
7210 + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
7211 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7212 + else
7213 + # Determine the default libpath from the value encoded in an empty executable.
7214 + _LT_AC_SYS_LIBPATH_AIX
7215 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
7216 + # Warning - without using the other run time loading flags,
7217 + # -berok will link without error, but may produce a broken library.
7218 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
7219 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
7220 + # Exported symbols can be pulled into shared objects from archives
7221 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
7222 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7223 + # This is similar to how AIX traditionally builds its shared libraries.
7224 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7225 + fi
7226 + fi
7227 + ;;
7229 + amigaos*)
7230 + _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)'
7231 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7232 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7233 + # see comment about different semantics on the GNU ld section
7234 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7235 + ;;
7237 + bsdi[[45]]*)
7238 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
7239 + ;;
7241 + cygwin* | mingw* | pw32*)
7242 + # When not using gcc, we currently assume that we are using
7243 + # Microsoft Visual C++.
7244 + # hardcode_libdir_flag_spec is actually meaningless, as there is
7245 + # no search path for DLLs.
7246 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
7247 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7248 + # Tell ltmain to make .lib files, not .a files.
7249 + libext=lib
7250 + # Tell ltmain to make .dll files, not .so files.
7251 + shrext_cmds=".dll"
7252 + # FIXME: Setting linknames here is a bad hack.
7253 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7254 + # The linker will automatically build a .lib file if we build a DLL.
7255 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
7256 + # FIXME: Should let the user specify the lib program.
7257 + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
7258 + _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
7259 + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
7260 + ;;
7262 + darwin* | rhapsody*)
7263 + case $host_os in
7264 + rhapsody* | darwin1.[[012]])
7265 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
7266 + ;;
7267 + *) # Darwin 1.3 on
7268 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7269 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7270 + else
7271 + case ${MACOSX_DEPLOYMENT_TARGET} in
7272 + 10.[[012]])
7273 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7274 + ;;
7275 + 10.*)
7276 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
7277 + ;;
7278 + esac
7279 + fi
7280 + ;;
7281 + esac
7282 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7283 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7284 + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
7285 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
7286 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
7287 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7288 + if test "$GCC" = yes ; then
7289 + output_verbose_link_cmd='echo'
7290 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7291 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7292 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7293 + _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}'
7294 + _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}'
7295 + else
7296 + case $cc_basename in
7297 + xlc*)
7298 + output_verbose_link_cmd='echo'
7299 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7300 + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7301 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7302 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7303 + _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}'
7304 + ;;
7305 + *)
7306 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7307 + ;;
7308 + esac
7309 + fi
7310 + ;;
7312 + dgux*)
7313 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7314 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7315 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7316 + ;;
7318 + freebsd1*)
7319 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7320 + ;;
7322 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7323 + # support. Future versions do this automatically, but an explicit c++rt0.o
7324 + # does not break anything, and helps significantly (at the cost of a little
7325 + # extra space).
7326 + freebsd2.2*)
7327 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7328 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7329 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7330 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7331 + ;;
7333 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7334 + freebsd2*)
7335 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7336 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7337 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7338 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7339 + ;;
7341 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7342 + freebsd* | kfreebsd*-gnu | dragonfly*)
7343 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7344 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7345 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7346 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7347 + ;;
7349 + hpux9*)
7350 + if test "$GCC" = yes; then
7351 + _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'
7352 + else
7353 + _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'
7354 + fi
7355 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7356 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7357 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7359 + # hardcode_minus_L: Not really in the search PATH,
7360 + # but as the default location of the library.
7361 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7362 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7363 + ;;
7365 + hpux10*)
7366 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7367 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7368 + else
7369 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7370 + fi
7371 + if test "$with_gnu_ld" = no; then
7372 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7373 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7375 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7376 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7378 + # hardcode_minus_L: Not really in the search PATH,
7379 + # but as the default location of the library.
7380 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7381 + fi
7382 + ;;
7384 + hpux11*)
7385 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7386 + case $host_cpu in
7387 + hppa*64*)
7388 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7389 + ;;
7390 + ia64*)
7391 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7392 + ;;
7393 + *)
7394 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7395 + ;;
7396 + esac
7397 + else
7398 + case $host_cpu in
7399 + hppa*64*)
7400 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7401 + ;;
7402 + ia64*)
7403 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7404 + ;;
7405 + *)
7406 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7407 + ;;
7408 + esac
7409 + fi
7410 + if test "$with_gnu_ld" = no; then
7411 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
7412 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7414 + case $host_cpu in
7415 + hppa*64*|ia64*)
7416 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
7417 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7418 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7419 + ;;
7420 + *)
7421 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7422 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7424 + # hardcode_minus_L: Not really in the search PATH,
7425 + # but as the default location of the library.
7426 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7427 + ;;
7428 + esac
7429 + fi
7430 + ;;
7432 + irix5* | irix6* | nonstopux*)
7433 + if test "$GCC" = yes; then
7434 + _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'
7435 + else
7436 + _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'
7437 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
7438 + fi
7439 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7440 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7441 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7442 + ;;
7444 + netbsd*)
7445 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7446 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7447 + else
7448 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7449 + fi
7450 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7451 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7452 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7453 + ;;
7455 + newsos6)
7456 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7457 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7458 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7459 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7460 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7461 + ;;
7463 + openbsd*)
7464 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7465 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7466 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7467 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7468 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7469 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7470 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
7471 + else
7472 + case $host_os in
7473 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
7474 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7475 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7476 + ;;
7477 + *)
7478 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7479 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
7480 + ;;
7481 + esac
7482 + fi
7483 + ;;
7485 + os2*)
7486 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7487 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7488 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
7489 + _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'
7490 + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7491 + ;;
7493 + osf3*)
7494 + if test "$GCC" = yes; then
7495 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7496 + _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'
7497 + else
7498 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7499 + _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'
7500 + fi
7501 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7502 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7503 + ;;
7505 + osf4* | osf5*) # as osf3* with the addition of -msym flag
7506 + if test "$GCC" = yes; then
7507 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
7508 + _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'
7509 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7510 + else
7511 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7512 + _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'
7513 + _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~
7514 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7516 + # Both c and cxx compiler support -rpath directly
7517 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7518 + fi
7519 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7520 + ;;
7522 + solaris*)
7523 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7524 + if test "$GCC" = yes; then
7525 + wlarc='${wl}'
7526 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7527 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7528 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7529 + else
7530 + wlarc=''
7531 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7532 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7533 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7534 + fi
7535 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7536 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7537 + case $host_os in
7538 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7539 + *)
7540 + # The compiler driver will combine linker options so we
7541 + # cannot just pass the convience library names through
7542 + # without $wl, iff we do not link with $LD.
7543 + # Luckily, gcc supports the same syntax we need for Sun Studio.
7544 + # Supported since Solaris 2.6 (maybe 2.5.1?)
7545 + case $wlarc in
7546 + '')
7547 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
7548 + *)
7549 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7550 + esac ;;
7551 + esac
7552 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7553 + ;;
7555 + sunos4*)
7556 + if test "x$host_vendor" = xsequent; then
7557 + # Use $CC to link under sequent, because it throws in some extra .o
7558 + # files that make .init and .fini sections work.
7559 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7560 + else
7561 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7562 + fi
7563 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7564 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7565 + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
7566 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7567 + ;;
7569 + sysv4)
7570 + case $host_vendor in
7571 + sni)
7572 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7573 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
7574 + ;;
7575 + siemens)
7576 + ## LD is ld it makes a PLAMLIB
7577 + ## CC just makes a GrossModule.
7578 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7579 + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
7580 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
7581 + ;;
7582 + motorola)
7583 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7584 + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
7585 + ;;
7586 + esac
7587 + runpath_var='LD_RUN_PATH'
7588 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7589 + ;;
7591 + sysv4.3*)
7592 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7593 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7594 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
7595 + ;;
7597 + sysv4*MP*)
7598 + if test -d /usr/nec; then
7599 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7600 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7601 + runpath_var=LD_RUN_PATH
7602 + hardcode_runpath_var=yes
7603 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
7604 + fi
7605 + ;;
7607 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
7608 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7609 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7610 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7611 + runpath_var='LD_RUN_PATH'
7613 + if test "$GCC" = yes; then
7614 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7615 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7616 + else
7617 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7618 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7619 + fi
7620 + ;;
7622 + sysv5* | sco3.2v5* | sco5v6*)
7623 + # Note: We can NOT use -z defs as we might desire, because we do not
7624 + # link with -lc, and that would cause any symbols used from libc to
7625 + # always be unresolved, which means just about no library would
7626 + # ever link correctly. If we're not using GNU ld we use -z text
7627 + # though, which does catch some bad symbols but isn't as heavy-handed
7628 + # as -z defs.
7629 + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
7630 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
7631 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7632 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7633 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7634 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
7635 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
7636 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
7637 + runpath_var='LD_RUN_PATH'
7639 + if test "$GCC" = yes; then
7640 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7641 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7642 + else
7643 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7644 + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7645 + fi
7646 + ;;
7648 + uts4*)
7649 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7650 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
7651 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7652 + ;;
7654 + *)
7655 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7656 + ;;
7657 + esac
7658 + fi
7660 +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
7661 +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
7664 +# Do we need to explicitly link libc?
7666 +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
7667 +x|xyes)
7668 + # Assume -lc should be added
7669 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7671 + if test "$enable_shared" = yes && test "$GCC" = yes; then
7672 + case $_LT_AC_TAGVAR(archive_cmds, $1) in
7673 + *'~'*)
7674 + # FIXME: we may have to deal with multi-command sequences.
7675 + ;;
7676 + '$CC '*)
7677 + # Test whether the compiler implicitly links with -lc since on some
7678 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
7679 + # to ld, don't add -lc before -lgcc.
7680 + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
7681 + $rm conftest*
7682 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7684 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7685 + soname=conftest
7686 + lib=conftest
7687 + libobjs=conftest.$ac_objext
7688 + deplibs=
7689 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7690 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
7691 + compiler_flags=-v
7692 + linker_flags=-v
7693 + verstring=
7694 + output_objdir=.
7695 + libname=conftest
7696 + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
7697 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
7698 + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
7699 + then
7700 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7701 + else
7702 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7703 + fi
7704 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7705 + else
7706 + cat conftest.err 1>&5
7707 + fi
7708 + $rm conftest*
7709 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
7710 + ;;
7711 + esac
7712 + fi
7713 + ;;
7714 +esac
7715 +])# AC_LIBTOOL_PROG_LD_SHLIBS
7718 +# _LT_AC_FILE_LTDLL_C
7719 +# -------------------
7720 +# Be careful that the start marker always follows a newline.
7721 +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
7722 +# /* ltdll.c starts here */
7723 +# #define WIN32_LEAN_AND_MEAN
7724 +# #include <windows.h>
7725 +# #undef WIN32_LEAN_AND_MEAN
7726 +# #include <stdio.h>
7728 +# #ifndef __CYGWIN__
7729 +# # ifdef __CYGWIN32__
7730 +# # define __CYGWIN__ __CYGWIN32__
7731 +# # endif
7732 +# #endif
7734 +# #ifdef __cplusplus
7735 +# extern "C" {
7736 +# #endif
7737 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7738 +# #ifdef __cplusplus
7739 +# }
7740 +# #endif
7742 +# #ifdef __CYGWIN__
7743 +# #include <cygwin/cygwin_dll.h>
7744 +# DECLARE_CYGWIN_DLL( DllMain );
7745 +# #endif
7746 +# HINSTANCE __hDllInstance_base;
7748 +# BOOL APIENTRY
7749 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7750 +# {
7751 +# __hDllInstance_base = hInst;
7752 +# return TRUE;
7753 +# }
7754 +# /* ltdll.c ends here */
7755 +])# _LT_AC_FILE_LTDLL_C
7758 +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
7759 +# ---------------------------------
7760 +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
7763 +# old names
7764 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
7765 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
7766 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
7767 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
7768 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
7769 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
7770 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
7772 +# This is just to silence aclocal about the macro not being used
7773 +ifelse([AC_DISABLE_FAST_INSTALL])
7775 +AC_DEFUN([LT_AC_PROG_GCJ],
7776 +[AC_CHECK_TOOL(GCJ, gcj, no)
7777 + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
7778 + AC_SUBST(GCJFLAGS)
7781 +AC_DEFUN([LT_AC_PROG_RC],
7782 +[AC_CHECK_TOOL(RC, windres, no)
7785 +# NOTE: This macro has been submitted for inclusion into #
7786 +# GNU Autoconf as AC_PROG_SED. When it is available in #
7787 +# a released version of Autoconf we should remove this #
7788 +# macro and use it instead. #
7789 +# LT_AC_PROG_SED
7790 +# --------------
7791 +# Check for a fully-functional sed program, that truncates
7792 +# as few characters as possible. Prefer GNU sed if found.
7793 +AC_DEFUN([LT_AC_PROG_SED],
7794 +[AC_MSG_CHECKING([for a sed that does not truncate output])
7795 +AC_CACHE_VAL(lt_cv_path_SED,
7796 +[# Loop through the user's path and test for sed and gsed.
7797 +# Then use that list of sed's as ones to test for truncation.
7798 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 +for as_dir in $PATH
7801 + IFS=$as_save_IFS
7802 + test -z "$as_dir" && as_dir=.
7803 + for lt_ac_prog in sed gsed; do
7804 + for ac_exec_ext in '' $ac_executable_extensions; do
7805 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7806 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7807 + fi
7808 + done
7809 + done
7810 +done
7811 +lt_ac_max=0
7812 +lt_ac_count=0
7813 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7814 +# along with /bin/sed that truncates output.
7815 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7816 + test ! -f $lt_ac_sed && continue
7817 + cat /dev/null > conftest.in
7818 + lt_ac_count=0
7819 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7820 + # Check for GNU sed and select it if it is found.
7821 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7822 + lt_cv_path_SED=$lt_ac_sed
7823 + break
7824 + fi
7825 + while true; do
7826 + cat conftest.in conftest.in >conftest.tmp
7827 + mv conftest.tmp conftest.in
7828 + cp conftest.in conftest.nl
7829 + echo >>conftest.nl
7830 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7831 + cmp -s conftest.out conftest.nl || break
7832 + # 10000 chars as input seems more than enough
7833 + test $lt_ac_count -gt 10 && break
7834 + lt_ac_count=`expr $lt_ac_count + 1`
7835 + if test $lt_ac_count -gt $lt_ac_max; then
7836 + lt_ac_max=$lt_ac_count
7837 + lt_cv_path_SED=$lt_ac_sed
7838 + fi
7839 + done
7840 +done
7842 +SED=$lt_cv_path_SED
7843 +AC_MSG_RESULT([$SED])
7846 +# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
7848 +# This file is free software; the Free Software Foundation
7849 +# gives unlimited permission to copy and/or distribute it,
7850 +# with or without modifications, as long as this notice is preserved.
7852 +# AM_AUTOMAKE_VERSION(VERSION)
7853 +# ----------------------------
7854 +# Automake X.Y traces this macro to ensure aclocal.m4 has been
7855 +# generated from the m4 files accompanying Automake X.Y.
7856 +AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
7858 +# AM_SET_CURRENT_AUTOMAKE_VERSION
7859 +# -------------------------------
7860 +# Call AM_AUTOMAKE_VERSION so it can be traced.
7861 +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
7862 +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
7863 + [AM_AUTOMAKE_VERSION([1.9.6])])
7865 +# AM_AUX_DIR_EXPAND -*- Autoconf -*-
7867 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7869 +# This file is free software; the Free Software Foundation
7870 +# gives unlimited permission to copy and/or distribute it,
7871 +# with or without modifications, as long as this notice is preserved.
7873 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
7874 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
7875 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
7877 +# Of course, Automake must honor this variable whenever it calls a
7878 +# tool from the auxiliary directory. The problem is that $srcdir (and
7879 +# therefore $ac_aux_dir as well) can be either absolute or relative,
7880 +# depending on how configure is run. This is pretty annoying, since
7881 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top
7882 +# source directory, any form will work fine, but in subdirectories a
7883 +# relative path needs to be adjusted first.
7885 +# $ac_aux_dir/missing
7886 +# fails when called from a subdirectory if $ac_aux_dir is relative
7887 +# $top_srcdir/$ac_aux_dir/missing
7888 +# fails if $ac_aux_dir is absolute,
7889 +# fails when called from a subdirectory in a VPATH build with
7890 +# a relative $ac_aux_dir
7892 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
7893 +# are both prefixed by $srcdir. In an in-source build this is usually
7894 +# harmless because $srcdir is `.', but things will broke when you
7895 +# start a VPATH build or use an absolute $srcdir.
7897 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
7898 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be:
7899 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
7900 +# and then we would define $MISSING as
7901 +# MISSING="\${SHELL} $am_aux_dir/missing"
7902 +# This will work as long as MISSING is not called from configure, because
7903 +# unfortunately $(top_srcdir) has no meaning in configure.
7904 +# However there are other variables, like CC, which are often used in
7905 +# configure, and could therefore not use this "fixed" $ac_aux_dir.
7907 +# Another solution, used here, is to always expand $ac_aux_dir to an
7908 +# absolute PATH. The drawback is that using absolute paths prevent a
7909 +# configured tree to be moved without reconfiguration.
7911 +AC_DEFUN([AM_AUX_DIR_EXPAND],
7912 +[dnl Rely on autoconf to set up CDPATH properly.
7913 +AC_PREREQ([2.50])dnl
7914 +# expand $ac_aux_dir to an absolute path
7915 +am_aux_dir=`cd $ac_aux_dir && pwd`
7918 +# AM_CONDITIONAL -*- Autoconf -*-
7920 +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
7921 +# Free Software Foundation, Inc.
7923 +# This file is free software; the Free Software Foundation
7924 +# gives unlimited permission to copy and/or distribute it,
7925 +# with or without modifications, as long as this notice is preserved.
7927 +# serial 7
7929 +# AM_CONDITIONAL(NAME, SHELL-CONDITION)
7930 +# -------------------------------------
7931 +# Define a conditional.
7932 +AC_DEFUN([AM_CONDITIONAL],
7933 +[AC_PREREQ(2.52)dnl
7934 + ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
7935 + [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
7936 +AC_SUBST([$1_TRUE])
7937 +AC_SUBST([$1_FALSE])
7938 +if $2; then
7939 + $1_TRUE=
7940 + $1_FALSE='#'
7941 +else
7942 + $1_TRUE='#'
7943 + $1_FALSE=
7945 +AC_CONFIG_COMMANDS_PRE(
7946 +[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
7947 + AC_MSG_ERROR([[conditional "$1" was never defined.
7948 +Usually this means the macro was only invoked conditionally.]])
7949 +fi])])
7952 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
7953 +# Free Software Foundation, Inc.
7955 +# This file is free software; the Free Software Foundation
7956 +# gives unlimited permission to copy and/or distribute it,
7957 +# with or without modifications, as long as this notice is preserved.
7959 +# serial 8
7961 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
7962 +# written in clear, in which case automake, when reading aclocal.m4,
7963 +# will think it sees a *use*, and therefore will trigger all it's
7964 +# C support machinery. Also note that it means that autoscan, seeing
7965 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
7968 +# _AM_DEPENDENCIES(NAME)
7969 +# ----------------------
7970 +# See how the compiler implements dependency checking.
7971 +# NAME is "CC", "CXX", "GCJ", or "OBJC".
7972 +# We try a few techniques and use that to set a single cache variable.
7974 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
7975 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
7976 +# dependency, and given that the user is not expected to run this macro,
7977 +# just rely on AC_PROG_CC.
7978 +AC_DEFUN([_AM_DEPENDENCIES],
7979 +[AC_REQUIRE([AM_SET_DEPDIR])dnl
7980 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
7981 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl
7982 +AC_REQUIRE([AM_DEP_TRACK])dnl
7984 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
7985 + [$1], CXX, [depcc="$CXX" am_compiler_list=],
7986 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
7987 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
7988 + [depcc="$$1" am_compiler_list=])
7990 +AC_CACHE_CHECK([dependency style of $depcc],
7991 + [am_cv_$1_dependencies_compiler_type],
7992 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7993 + # We make a subdir and do the tests there. Otherwise we can end up
7994 + # making bogus files that we don't know about and never remove. For
7995 + # instance it was reported that on HP-UX the gcc test will end up
7996 + # making a dummy file named `D' -- because `-MD' means `put the output
7997 + # in D'.
7998 + mkdir conftest.dir
7999 + # Copy depcomp to subdir because otherwise we won't find it if we're
8000 + # using a relative directory.
8001 + cp "$am_depcomp" conftest.dir
8002 + cd conftest.dir
8003 + # We will build objects and dependencies in a subdirectory because
8004 + # it helps to detect inapplicable dependency modes. For instance
8005 + # both Tru64's cc and ICC support -MD to output dependencies as a
8006 + # side effect of compilation, but ICC will put the dependencies in
8007 + # the current directory while Tru64 will put them in the object
8008 + # directory.
8009 + mkdir sub
8011 + am_cv_$1_dependencies_compiler_type=none
8012 + if test "$am_compiler_list" = ""; then
8013 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
8014 + fi
8015 + for depmode in $am_compiler_list; do
8016 + # Setup a source with many dependencies, because some compilers
8017 + # like to wrap large dependency lists on column 80 (with \), and
8018 + # we should not choose a depcomp mode which is confused by this.
8020 + # We need to recreate these files for each test, as the compiler may
8021 + # overwrite some of them when testing with obscure command lines.
8022 + # This happens at least with the AIX C compiler.
8023 + : > sub/conftest.c
8024 + for i in 1 2 3 4 5 6; do
8025 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
8026 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8027 + # Solaris 8's {/usr,}/bin/sh.
8028 + touch sub/conftst$i.h
8029 + done
8030 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8032 + case $depmode in
8033 + nosideeffect)
8034 + # after this tag, mechanisms are not by side-effect, so they'll
8035 + # only be used when explicitly requested
8036 + if test "x$enable_dependency_tracking" = xyes; then
8037 + continue
8038 + else
8039 + break
8040 + fi
8041 + ;;
8042 + none) break ;;
8043 + esac
8044 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
8045 + # mode. It turns out that the SunPro C++ compiler does not properly
8046 + # handle `-M -o', and we need to detect this.
8047 + if depmode=$depmode \
8048 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8049 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8050 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8051 + >/dev/null 2>conftest.err &&
8052 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8053 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8054 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8055 + # icc doesn't choke on unknown options, it will just issue warnings
8056 + # or remarks (even with -Werror). So we grep stderr for any message
8057 + # that says an option was ignored or not supported.
8058 + # When given -MP, icc 7.0 and 7.1 complain thusly:
8059 + # icc: Command line warning: ignoring option '-M'; no argument required
8060 + # The diagnosis changed in icc 8.0:
8061 + # icc: Command line remark: option '-MP' not supported
8062 + if (grep 'ignoring option' conftest.err ||
8063 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8064 + am_cv_$1_dependencies_compiler_type=$depmode
8065 + break
8066 + fi
8067 + fi
8068 + done
8070 + cd ..
8071 + rm -rf conftest.dir
8072 +else
8073 + am_cv_$1_dependencies_compiler_type=none
8076 +AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
8077 +AM_CONDITIONAL([am__fastdep$1], [
8078 + test "x$enable_dependency_tracking" != xno \
8079 + && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
8083 +# AM_SET_DEPDIR
8084 +# -------------
8085 +# Choose a directory name for dependency files.
8086 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES
8087 +AC_DEFUN([AM_SET_DEPDIR],
8088 +[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8089 +AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
8093 +# AM_DEP_TRACK
8094 +# ------------
8095 +AC_DEFUN([AM_DEP_TRACK],
8096 +[AC_ARG_ENABLE(dependency-tracking,
8097 +[ --disable-dependency-tracking speeds up one-time build
8098 + --enable-dependency-tracking do not reject slow dependency extractors])
8099 +if test "x$enable_dependency_tracking" != xno; then
8100 + am_depcomp="$ac_aux_dir/depcomp"
8101 + AMDEPBACKSLASH='\'
8103 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
8104 +AC_SUBST([AMDEPBACKSLASH])
8107 +# Generate code to set up dependency tracking. -*- Autoconf -*-
8109 +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
8110 +# Free Software Foundation, Inc.
8112 +# This file is free software; the Free Software Foundation
8113 +# gives unlimited permission to copy and/or distribute it,
8114 +# with or without modifications, as long as this notice is preserved.
8116 +#serial 3
8118 +# _AM_OUTPUT_DEPENDENCY_COMMANDS
8119 +# ------------------------------
8120 +AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
8121 +[for mf in $CONFIG_FILES; do
8122 + # Strip MF so we end up with the name of the file.
8123 + mf=`echo "$mf" | sed -e 's/:.*$//'`
8124 + # Check whether this is an Automake generated Makefile or not.
8125 + # We used to match only the files named `Makefile.in', but
8126 + # some people rename them; so instead we look at the file content.
8127 + # Grep'ing the first line is not enough: some people post-process
8128 + # each Makefile.in and add a new line on top of each file to say so.
8129 + # So let's grep whole file.
8130 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
8131 + dirpart=`AS_DIRNAME("$mf")`
8132 + else
8133 + continue
8134 + fi
8135 + # Extract the definition of DEPDIR, am__include, and am__quote
8136 + # from the Makefile without running `make'.
8137 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8138 + test -z "$DEPDIR" && continue
8139 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
8140 + test -z "am__include" && continue
8141 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8142 + # When using ansi2knr, U may be empty or an underscore; expand it
8143 + U=`sed -n 's/^U = //p' < "$mf"`
8144 + # Find all dependency output files, they are included files with
8145 + # $(DEPDIR) in their names. We invoke sed twice because it is the
8146 + # simplest approach to changing $(DEPDIR) to its actual value in the
8147 + # expansion.
8148 + for file in `sed -n "
8149 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8150 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
8151 + # Make sure the directory exists.
8152 + test -f "$dirpart/$file" && continue
8153 + fdir=`AS_DIRNAME(["$file"])`
8154 + AS_MKDIR_P([$dirpart/$fdir])
8155 + # echo "creating $dirpart/$file"
8156 + echo '# dummy' > "$dirpart/$file"
8157 + done
8158 +done
8159 +])# _AM_OUTPUT_DEPENDENCY_COMMANDS
8162 +# AM_OUTPUT_DEPENDENCY_COMMANDS
8163 +# -----------------------------
8164 +# This macro should only be invoked once -- use via AC_REQUIRE.
8166 +# This code is only required when automatic dependency tracking
8167 +# is enabled. FIXME. This creates each `.P' file that we will
8168 +# need in order to bootstrap the dependency handling code.
8169 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
8170 +[AC_CONFIG_COMMANDS([depfiles],
8171 + [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
8172 + [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
8175 +# Do all the work for Automake. -*- Autoconf -*-
8177 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
8178 +# Free Software Foundation, Inc.
8180 +# This file is free software; the Free Software Foundation
8181 +# gives unlimited permission to copy and/or distribute it,
8182 +# with or without modifications, as long as this notice is preserved.
8184 +# serial 12
8186 +# This macro actually does too much. Some checks are only needed if
8187 +# your package does certain things. But this isn't really a big deal.
8189 +# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
8190 +# AM_INIT_AUTOMAKE([OPTIONS])
8191 +# -----------------------------------------------
8192 +# The call with PACKAGE and VERSION arguments is the old style
8193 +# call (pre autoconf-2.50), which is being phased out. PACKAGE
8194 +# and VERSION should now be passed to AC_INIT and removed from
8195 +# the call to AM_INIT_AUTOMAKE.
8196 +# We support both call styles for the transition. After
8197 +# the next Automake release, Autoconf can make the AC_INIT
8198 +# arguments mandatory, and then we can depend on a new Autoconf
8199 +# release and drop the old call support.
8200 +AC_DEFUN([AM_INIT_AUTOMAKE],
8201 +[AC_PREREQ([2.58])dnl
8202 +dnl Autoconf wants to disallow AM_ names. We explicitly allow
8203 +dnl the ones we care about.
8204 +m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
8205 +AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
8206 +AC_REQUIRE([AC_PROG_INSTALL])dnl
8207 +# test to see if srcdir already configured
8208 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
8209 + test -f $srcdir/config.status; then
8210 + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
8213 +# test whether we have cygpath
8214 +if test -z "$CYGPATH_W"; then
8215 + if (cygpath --version) >/dev/null 2>/dev/null; then
8216 + CYGPATH_W='cygpath -w'
8217 + else
8218 + CYGPATH_W=echo
8219 + fi
8221 +AC_SUBST([CYGPATH_W])
8223 +# Define the identity of the package.
8224 +dnl Distinguish between old-style and new-style calls.
8225 +m4_ifval([$2],
8226 +[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
8227 + AC_SUBST([PACKAGE], [$1])dnl
8228 + AC_SUBST([VERSION], [$2])],
8229 +[_AM_SET_OPTIONS([$1])dnl
8230 + AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
8231 + AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
8233 +_AM_IF_OPTION([no-define],,
8234 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
8235 + AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
8237 +# Some tools Automake needs.
8238 +AC_REQUIRE([AM_SANITY_CHECK])dnl
8239 +AC_REQUIRE([AC_ARG_PROGRAM])dnl
8240 +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
8241 +AM_MISSING_PROG(AUTOCONF, autoconf)
8242 +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
8243 +AM_MISSING_PROG(AUTOHEADER, autoheader)
8244 +AM_MISSING_PROG(MAKEINFO, makeinfo)
8245 +AM_PROG_INSTALL_SH
8246 +AM_PROG_INSTALL_STRIP
8247 +AC_REQUIRE([AM_PROG_MKDIR_P])dnl
8248 +# We need awk for the "check" target. The system "awk" is bad on
8249 +# some platforms.
8250 +AC_REQUIRE([AC_PROG_AWK])dnl
8251 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl
8252 +AC_REQUIRE([AM_SET_LEADING_DOT])dnl
8253 +_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
8254 + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
8255 + [_AM_PROG_TAR([v7])])])
8256 +_AM_IF_OPTION([no-dependencies],,
8257 +[AC_PROVIDE_IFELSE([AC_PROG_CC],
8258 + [_AM_DEPENDENCIES(CC)],
8259 + [define([AC_PROG_CC],
8260 + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
8261 +AC_PROVIDE_IFELSE([AC_PROG_CXX],
8262 + [_AM_DEPENDENCIES(CXX)],
8263 + [define([AC_PROG_CXX],
8264 + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
8269 +# When config.status generates a header, we must update the stamp-h file.
8270 +# This file resides in the same directory as the config header
8271 +# that is generated. The stamp files are numbered to have different names.
8273 +# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
8274 +# loop where config.status creates the headers, so we can generate
8275 +# our stamp files there.
8276 +AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
8277 +[# Compute $1's index in $config_headers.
8278 +_am_stamp_count=1
8279 +for _am_header in $config_headers :; do
8280 + case $_am_header in
8281 + $1 | $1:* )
8282 + break ;;
8283 + * )
8284 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8285 + esac
8286 +done
8287 +echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
8289 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8291 +# This file is free software; the Free Software Foundation
8292 +# gives unlimited permission to copy and/or distribute it,
8293 +# with or without modifications, as long as this notice is preserved.
8295 +# AM_PROG_INSTALL_SH
8296 +# ------------------
8297 +# Define $install_sh.
8298 +AC_DEFUN([AM_PROG_INSTALL_SH],
8299 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8300 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
8301 +AC_SUBST(install_sh)])
8303 +# Copyright (C) 2003, 2005 Free Software Foundation, Inc.
8305 +# This file is free software; the Free Software Foundation
8306 +# gives unlimited permission to copy and/or distribute it,
8307 +# with or without modifications, as long as this notice is preserved.
8309 +# serial 2
8311 +# Check whether the underlying file-system supports filenames
8312 +# with a leading dot. For instance MS-DOS doesn't.
8313 +AC_DEFUN([AM_SET_LEADING_DOT],
8314 +[rm -rf .tst 2>/dev/null
8315 +mkdir .tst 2>/dev/null
8316 +if test -d .tst; then
8317 + am__leading_dot=.
8318 +else
8319 + am__leading_dot=_
8321 +rmdir .tst 2>/dev/null
8322 +AC_SUBST([am__leading_dot])])
8324 +# Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
8325 +# From Jim Meyering
8327 +# Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005
8328 +# Free Software Foundation, Inc.
8330 +# This file is free software; the Free Software Foundation
8331 +# gives unlimited permission to copy and/or distribute it,
8332 +# with or without modifications, as long as this notice is preserved.
8334 +# serial 4
8336 +AC_DEFUN([AM_MAINTAINER_MODE],
8337 +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
8338 + dnl maintainer-mode is disabled by default
8339 + AC_ARG_ENABLE(maintainer-mode,
8340 +[ --enable-maintainer-mode enable make rules and dependencies not useful
8341 + (and sometimes confusing) to the casual installer],
8342 + USE_MAINTAINER_MODE=$enableval,
8343 + USE_MAINTAINER_MODE=no)
8344 + AC_MSG_RESULT([$USE_MAINTAINER_MODE])
8345 + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes])
8346 + MAINT=$MAINTAINER_MODE_TRUE
8347 + AC_SUBST(MAINT)dnl
8351 +AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE])
8353 +# Check to see how 'make' treats includes. -*- Autoconf -*-
8355 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8357 +# This file is free software; the Free Software Foundation
8358 +# gives unlimited permission to copy and/or distribute it,
8359 +# with or without modifications, as long as this notice is preserved.
8361 +# serial 3
8363 +# AM_MAKE_INCLUDE()
8364 +# -----------------
8365 +# Check to see how make treats includes.
8366 +AC_DEFUN([AM_MAKE_INCLUDE],
8367 +[am_make=${MAKE-make}
8368 +cat > confinc << 'END'
8369 +am__doit:
8370 + @echo done
8371 +.PHONY: am__doit
8372 +END
8373 +# If we don't find an include directive, just comment out the code.
8374 +AC_MSG_CHECKING([for style of include used by $am_make])
8375 +am__include="#"
8376 +am__quote=
8377 +_am_result=none
8378 +# First try GNU make style include.
8379 +echo "include confinc" > confmf
8380 +# We grep out `Entering directory' and `Leaving directory'
8381 +# messages which can occur if `w' ends up in MAKEFLAGS.
8382 +# In particular we don't look at `^make:' because GNU make might
8383 +# be invoked under some other name (usually "gmake"), in which
8384 +# case it prints its new name instead of `make'.
8385 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
8386 + am__include=include
8387 + am__quote=
8388 + _am_result=GNU
8390 +# Now try BSD make style include.
8391 +if test "$am__include" = "#"; then
8392 + echo '.include "confinc"' > confmf
8393 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
8394 + am__include=.include
8395 + am__quote="\""
8396 + _am_result=BSD
8397 + fi
8399 +AC_SUBST([am__include])
8400 +AC_SUBST([am__quote])
8401 +AC_MSG_RESULT([$_am_result])
8402 +rm -f confinc confmf
8405 +# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
8407 +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
8408 +# Free Software Foundation, Inc.
8410 +# This file is free software; the Free Software Foundation
8411 +# gives unlimited permission to copy and/or distribute it,
8412 +# with or without modifications, as long as this notice is preserved.
8414 +# serial 4
8416 +# AM_MISSING_PROG(NAME, PROGRAM)
8417 +# ------------------------------
8418 +AC_DEFUN([AM_MISSING_PROG],
8419 +[AC_REQUIRE([AM_MISSING_HAS_RUN])
8420 +$1=${$1-"${am_missing_run}$2"}
8421 +AC_SUBST($1)])
8424 +# AM_MISSING_HAS_RUN
8425 +# ------------------
8426 +# Define MISSING if not defined so far and test if it supports --run.
8427 +# If it does, set am_missing_run to use it, otherwise, to nothing.
8428 +AC_DEFUN([AM_MISSING_HAS_RUN],
8429 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
8430 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
8431 +# Use eval to expand $SHELL
8432 +if eval "$MISSING --run true"; then
8433 + am_missing_run="$MISSING --run "
8434 +else
8435 + am_missing_run=
8436 + AC_MSG_WARN([`missing' script is too old or missing])
8440 +# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
8442 +# This file is free software; the Free Software Foundation
8443 +# gives unlimited permission to copy and/or distribute it,
8444 +# with or without modifications, as long as this notice is preserved.
8446 +# AM_PROG_MKDIR_P
8447 +# ---------------
8448 +# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
8450 +# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
8451 +# created by `make install' are always world readable, even if the
8452 +# installer happens to have an overly restrictive umask (e.g. 077).
8453 +# This was a mistake. There are at least two reasons why we must not
8454 +# use `-m 0755':
8455 +# - it causes special bits like SGID to be ignored,
8456 +# - it may be too restrictive (some setups expect 775 directories).
8458 +# Do not use -m 0755 and let people choose whatever they expect by
8459 +# setting umask.
8461 +# We cannot accept any implementation of `mkdir' that recognizes `-p'.
8462 +# Some implementations (such as Solaris 8's) are not thread-safe: if a
8463 +# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
8464 +# concurrently, both version can detect that a/ is missing, but only
8465 +# one can create it and the other will error out. Consequently we
8466 +# restrict ourselves to GNU make (using the --version option ensures
8467 +# this.)
8468 +AC_DEFUN([AM_PROG_MKDIR_P],
8469 +[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
8470 + # We used to keeping the `.' as first argument, in order to
8471 + # allow $(mkdir_p) to be used without argument. As in
8472 + # $(mkdir_p) $(somedir)
8473 + # where $(somedir) is conditionally defined. However this is wrong
8474 + # for two reasons:
8475 + # 1. if the package is installed by a user who cannot write `.'
8476 + # make install will fail,
8477 + # 2. the above comment should most certainly read
8478 + # $(mkdir_p) $(DESTDIR)$(somedir)
8479 + # so it does not work when $(somedir) is undefined and
8480 + # $(DESTDIR) is not.
8481 + # To support the latter case, we have to write
8482 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
8483 + # so the `.' trick is pointless.
8484 + mkdir_p='mkdir -p --'
8485 +else
8486 + # On NextStep and OpenStep, the `mkdir' command does not
8487 + # recognize any option. It will interpret all options as
8488 + # directories to create, and then abort because `.' already
8489 + # exists.
8490 + for d in ./-p ./--version;
8491 + do
8492 + test -d $d && rmdir $d
8493 + done
8494 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8495 + if test -f "$ac_aux_dir/mkinstalldirs"; then
8496 + mkdir_p='$(mkinstalldirs)'
8497 + else
8498 + mkdir_p='$(install_sh) -d'
8499 + fi
8501 +AC_SUBST([mkdir_p])])
8503 +# Helper functions for option handling. -*- Autoconf -*-
8505 +# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
8507 +# This file is free software; the Free Software Foundation
8508 +# gives unlimited permission to copy and/or distribute it,
8509 +# with or without modifications, as long as this notice is preserved.
8511 +# serial 3
8513 +# _AM_MANGLE_OPTION(NAME)
8514 +# -----------------------
8515 +AC_DEFUN([_AM_MANGLE_OPTION],
8516 +[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
8518 +# _AM_SET_OPTION(NAME)
8519 +# ------------------------------
8520 +# Set option NAME. Presently that only means defining a flag for this option.
8521 +AC_DEFUN([_AM_SET_OPTION],
8522 +[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
8524 +# _AM_SET_OPTIONS(OPTIONS)
8525 +# ----------------------------------
8526 +# OPTIONS is a space-separated list of Automake options.
8527 +AC_DEFUN([_AM_SET_OPTIONS],
8528 +[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
8530 +# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
8531 +# -------------------------------------------
8532 +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
8533 +AC_DEFUN([_AM_IF_OPTION],
8534 +[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
8536 +# Check to make sure that the build environment is sane. -*- Autoconf -*-
8538 +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
8539 +# Free Software Foundation, Inc.
8541 +# This file is free software; the Free Software Foundation
8542 +# gives unlimited permission to copy and/or distribute it,
8543 +# with or without modifications, as long as this notice is preserved.
8545 +# serial 4
8547 +# AM_SANITY_CHECK
8548 +# ---------------
8549 +AC_DEFUN([AM_SANITY_CHECK],
8550 +[AC_MSG_CHECKING([whether build environment is sane])
8551 +# Just in case
8552 +sleep 1
8553 +echo timestamp > conftest.file
8554 +# Do `set' in a subshell so we don't clobber the current shell's
8555 +# arguments. Must try -L first in case configure is actually a
8556 +# symlink; some systems play weird games with the mod time of symlinks
8557 +# (eg FreeBSD returns the mod time of the symlink's containing
8558 +# directory).
8559 +if (
8560 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8561 + if test "$[*]" = "X"; then
8562 + # -L didn't work.
8563 + set X `ls -t $srcdir/configure conftest.file`
8564 + fi
8565 + rm -f conftest.file
8566 + if test "$[*]" != "X $srcdir/configure conftest.file" \
8567 + && test "$[*]" != "X conftest.file $srcdir/configure"; then
8569 + # If neither matched, then we have a broken ls. This can happen
8570 + # if, for instance, CONFIG_SHELL is bash and it inherits a
8571 + # broken ls alias from the environment. This has actually
8572 + # happened. Such a system could not be considered "sane".
8573 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
8574 +alias in your environment])
8575 + fi
8577 + test "$[2]" = conftest.file
8579 +then
8580 + # Ok.
8582 +else
8583 + AC_MSG_ERROR([newly created file is older than distributed files!
8584 +Check your system clock])
8586 +AC_MSG_RESULT(yes)])
8588 +# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
8590 +# This file is free software; the Free Software Foundation
8591 +# gives unlimited permission to copy and/or distribute it,
8592 +# with or without modifications, as long as this notice is preserved.
8594 +# AM_PROG_INSTALL_STRIP
8595 +# ---------------------
8596 +# One issue with vendor `install' (even GNU) is that you can't
8597 +# specify the program used to strip binaries. This is especially
8598 +# annoying in cross-compiling environments, where the build's strip
8599 +# is unlikely to handle the host's binaries.
8600 +# Fortunately install-sh will honor a STRIPPROG variable, so we
8601 +# always use install-sh in `make install-strip', and initialize
8602 +# STRIPPROG with the value of the STRIP variable (set by the user).
8603 +AC_DEFUN([AM_PROG_INSTALL_STRIP],
8604 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
8605 +# Installed binaries are usually stripped using `strip' when the user
8606 +# run `make install-strip'. However `strip' might not be the right
8607 +# tool to use in cross-compilation environments, therefore Automake
8608 +# will honor the `STRIP' environment variable to overrule this program.
8609 +dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
8610 +if test "$cross_compiling" != no; then
8611 + AC_CHECK_TOOL([STRIP], [strip], :)
8613 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
8614 +AC_SUBST([INSTALL_STRIP_PROGRAM])])
8616 +# Check how to create a tarball. -*- Autoconf -*-
8618 +# Copyright (C) 2004, 2005 Free Software Foundation, Inc.
8620 +# This file is free software; the Free Software Foundation
8621 +# gives unlimited permission to copy and/or distribute it,
8622 +# with or without modifications, as long as this notice is preserved.
8624 +# serial 2
8626 +# _AM_PROG_TAR(FORMAT)
8627 +# --------------------
8628 +# Check how to create a tarball in format FORMAT.
8629 +# FORMAT should be one of `v7', `ustar', or `pax'.
8631 +# Substitute a variable $(am__tar) that is a command
8632 +# writing to stdout a FORMAT-tarball containing the directory
8633 +# $tardir.
8634 +# tardir=directory && $(am__tar) > result.tar
8636 +# Substitute a variable $(am__untar) that extract such
8637 +# a tarball read from stdin.
8638 +# $(am__untar) < result.tar
8639 +AC_DEFUN([_AM_PROG_TAR],
8640 +[# Always define AMTAR for backward compatibility.
8641 +AM_MISSING_PROG([AMTAR], [tar])
8642 +m4_if([$1], [v7],
8643 + [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
8644 + [m4_case([$1], [ustar],, [pax],,
8645 + [m4_fatal([Unknown tar format])])
8646 +AC_MSG_CHECKING([how to create a $1 tar archive])
8647 +# Loop over all known methods to create a tar archive until one works.
8648 +_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
8649 +_am_tools=${am_cv_prog_tar_$1-$_am_tools}
8650 +# Do not fold the above two line into one, because Tru64 sh and
8651 +# Solaris sh will not grok spaces in the rhs of `-'.
8652 +for _am_tool in $_am_tools
8654 + case $_am_tool in
8655 + gnutar)
8656 + for _am_tar in tar gnutar gtar;
8657 + do
8658 + AM_RUN_LOG([$_am_tar --version]) && break
8659 + done
8660 + am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
8661 + am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
8662 + am__untar="$_am_tar -xf -"
8663 + ;;
8664 + plaintar)
8665 + # Must skip GNU tar: if it does not support --format= it doesn't create
8666 + # ustar tarball either.
8667 + (tar --version) >/dev/null 2>&1 && continue
8668 + am__tar='tar chf - "$$tardir"'
8669 + am__tar_='tar chf - "$tardir"'
8670 + am__untar='tar xf -'
8671 + ;;
8672 + pax)
8673 + am__tar='pax -L -x $1 -w "$$tardir"'
8674 + am__tar_='pax -L -x $1 -w "$tardir"'
8675 + am__untar='pax -r'
8676 + ;;
8677 + cpio)
8678 + am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
8679 + am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
8680 + am__untar='cpio -i -H $1 -d'
8681 + ;;
8682 + none)
8683 + am__tar=false
8684 + am__tar_=false
8685 + am__untar=false
8686 + ;;
8687 + esac
8689 + # If the value was cached, stop now. We just wanted to have am__tar
8690 + # and am__untar set.
8691 + test -n "${am_cv_prog_tar_$1}" && break
8693 + # tar/untar a dummy directory, and stop if the command works
8694 + rm -rf conftest.dir
8695 + mkdir conftest.dir
8696 + echo GrepMe > conftest.dir/file
8697 + AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
8698 + rm -rf conftest.dir
8699 + if test -s conftest.tar; then
8700 + AM_RUN_LOG([$am__untar <conftest.tar])
8701 + grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
8702 + fi
8703 +done
8704 +rm -rf conftest.dir
8706 +AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
8707 +AC_MSG_RESULT([$am_cv_prog_tar_$1])])
8708 +AC_SUBST([am__tar])
8709 +AC_SUBST([am__untar])
8710 +]) # _AM_PROG_TAR
8712 diff --git a/autogen.sh b/autogen.sh
8713 new file mode 100755
8714 index 0000000..56f0596
8715 --- /dev/null
8716 +++ b/autogen.sh
8717 @@ -0,0 +1,9 @@
8718 +#!/bin/sh
8719 +set -x
8720 +rm aclocal.m4
8721 +libtoolize --force --copy
8722 +aclocal -I ./m4
8723 +autoheader
8724 +automake --foreign --add-missing --force-missing --copy
8725 +autoconf
8727 diff --git a/config.guess b/config.guess
8728 deleted file mode 100755
8729 index 413ed41..0000000
8730 --- a/config.guess
8731 +++ /dev/null
8732 @@ -1,883 +0,0 @@
8733 -#! /bin/sh
8734 -# Attempt to guess a canonical system name.
8735 -# Copyright (C) 1992, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
8737 -# This file is free software; you can redistribute it and/or modify it
8738 -# under the terms of the GNU General Public License as published by
8739 -# the Free Software Foundation; either version 2 of the License, or
8740 -# (at your option) any later version.
8742 -# This program is distributed in the hope that it will be useful, but
8743 -# WITHOUT ANY WARRANTY; without even the implied warranty of
8744 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8745 -# General Public License for more details.
8747 -# You should have received a copy of the GNU General Public License
8748 -# along with this program; if not, write to the Free Software
8749 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8751 -# As a special exception to the GNU General Public License, if you
8752 -# distribute this file as part of a program that contains a
8753 -# configuration script generated by Autoconf, you may include it under
8754 -# the same distribution terms that you use for the rest of that program.
8756 -# Written by Per Bothner <bothner@cygnus.com>.
8757 -# The master version of this file is at the FSF in /home/gd/gnu/lib.
8759 -# This script attempts to guess a canonical system name similar to
8760 -# config.sub. If it succeeds, it prints the system name on stdout, and
8761 -# exits with 0. Otherwise, it exits with 1.
8763 -# The plan is that this can be called by configure scripts if you
8764 -# don't specify an explicit system type (host/target name).
8766 -# Only a few systems have been added to this list; please add others
8767 -# (but try to keep the structure clean).
8770 -# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
8771 -# (ghazi@noc.rutgers.edu 8/24/94.)
8772 -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
8773 - PATH=$PATH:/.attbin ; export PATH
8776 -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
8777 -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
8778 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
8779 -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
8781 -trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
8783 -# Note: order is significant - the case branches are not exclusive.
8785 -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
8786 - alpha:OSF1:*:*)
8787 - if test $UNAME_RELEASE = "V4.0"; then
8788 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
8789 - fi
8790 - # A Vn.n version is a released version.
8791 - # A Tn.n version is a released field test version.
8792 - # A Xn.n version is an unreleased experimental baselevel.
8793 - # 1.2 uses "1.2" for uname -r.
8794 - cat <<EOF >dummy.s
8795 - .globl main
8796 - .ent main
8797 -main:
8798 - .frame \$30,0,\$26,0
8799 - .prologue 0
8800 - .long 0x47e03d80 # implver $0
8801 - lda \$2,259
8802 - .long 0x47e20c21 # amask $2,$1
8803 - srl \$1,8,\$2
8804 - sll \$2,2,\$2
8805 - sll \$0,3,\$0
8806 - addl \$1,\$0,\$0
8807 - addl \$2,\$0,\$0
8808 - ret \$31,(\$26),1
8809 - .end main
8810 -EOF
8811 - ${CC-cc} dummy.s -o dummy 2>/dev/null
8812 - if test "$?" = 0 ; then
8813 - ./dummy
8814 - case "$?" in
8815 - 7)
8816 - UNAME_MACHINE="alpha"
8817 - ;;
8818 - 15)
8819 - UNAME_MACHINE="alphaev5"
8820 - ;;
8821 - 14)
8822 - UNAME_MACHINE="alphaev56"
8823 - ;;
8824 - 10)
8825 - UNAME_MACHINE="alphapca56"
8826 - ;;
8827 - 16)
8828 - UNAME_MACHINE="alphaev6"
8829 - ;;
8830 - esac
8831 - fi
8832 - rm -f dummy.s dummy
8833 - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
8834 - exit 0 ;;
8835 - 21064:Windows_NT:50:3)
8836 - echo alpha-dec-winnt3.5
8837 - exit 0 ;;
8838 - Amiga*:UNIX_System_V:4.0:*)
8839 - echo m68k-cbm-sysv4
8840 - exit 0;;
8841 - amiga:NetBSD:*:*)
8842 - echo m68k-cbm-netbsd${UNAME_RELEASE}
8843 - exit 0 ;;
8844 - amiga:OpenBSD:*:*)
8845 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8846 - exit 0 ;;
8847 - arc64:OpenBSD:*:*)
8848 - echo mips64el-unknown-openbsd${UNAME_RELEASE}
8849 - exit 0 ;;
8850 - arc:OpenBSD:*:*)
8851 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8852 - exit 0 ;;
8853 - hkmips:OpenBSD:*:*)
8854 - echo mips-unknown-openbsd${UNAME_RELEASE}
8855 - exit 0 ;;
8856 - pmax:OpenBSD:*:*)
8857 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8858 - exit 0 ;;
8859 - sgi:OpenBSD:*:*)
8860 - echo mips-unknown-openbsd${UNAME_RELEASE}
8861 - exit 0 ;;
8862 - wgrisc:OpenBSD:*:*)
8863 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8864 - exit 0 ;;
8865 - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
8866 - echo arm-acorn-riscix${UNAME_RELEASE}
8867 - exit 0;;
8868 - arm32:NetBSD:*:*)
8869 - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
8870 - exit 0 ;;
8871 - SR2?01:HI-UX/MPP:*:*)
8872 - echo hppa1.1-hitachi-hiuxmpp
8873 - exit 0;;
8874 - Pyramid*:OSx*:*:*|MIS*:OSx*:*:*)
8875 - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
8876 - if test "`(/bin/universe) 2>/dev/null`" = att ; then
8877 - echo pyramid-pyramid-sysv3
8878 - else
8879 - echo pyramid-pyramid-bsd
8880 - fi
8881 - exit 0 ;;
8882 - NILE:*:*:dcosx)
8883 - echo pyramid-pyramid-svr4
8884 - exit 0 ;;
8885 - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
8886 - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8887 - exit 0 ;;
8888 - i86pc:SunOS:5.*:*)
8889 - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8890 - exit 0 ;;
8891 - sun4*:SunOS:6*:*)
8892 - # According to config.sub, this is the proper way to canonicalize
8893 - # SunOS6. Hard to guess exactly what SunOS6 will be like, but
8894 - # it's likely to be more like Solaris than SunOS4.
8895 - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8896 - exit 0 ;;
8897 - sun4*:SunOS:*:*)
8898 - case "`/usr/bin/arch -k`" in
8899 - Series*|S4*)
8900 - UNAME_RELEASE=`uname -v`
8901 - ;;
8902 - esac
8903 - # Japanese Language versions have a version number like `4.1.3-JL'.
8904 - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
8905 - exit 0 ;;
8906 - sun3*:SunOS:*:*)
8907 - echo m68k-sun-sunos${UNAME_RELEASE}
8908 - exit 0 ;;
8909 - sun*:*:4.2BSD:*)
8910 - UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
8911 - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
8912 - case "`/bin/arch`" in
8913 - sun3)
8914 - echo m68k-sun-sunos${UNAME_RELEASE}
8915 - ;;
8916 - sun4)
8917 - echo sparc-sun-sunos${UNAME_RELEASE}
8918 - ;;
8919 - esac
8920 - exit 0 ;;
8921 - aushp:SunOS:*:*)
8922 - echo sparc-auspex-sunos${UNAME_RELEASE}
8923 - exit 0 ;;
8924 - atari*:NetBSD:*:*)
8925 - echo m68k-atari-netbsd${UNAME_RELEASE}
8926 - exit 0 ;;
8927 - atari*:OpenBSD:*:*)
8928 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8929 - exit 0 ;;
8930 - sun3*:NetBSD:*:*)
8931 - echo m68k-sun-netbsd${UNAME_RELEASE}
8932 - exit 0 ;;
8933 - sun3*:OpenBSD:*:*)
8934 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8935 - exit 0 ;;
8936 - mac68k:NetBSD:*:*)
8937 - echo m68k-apple-netbsd${UNAME_RELEASE}
8938 - exit 0 ;;
8939 - mac68k:OpenBSD:*:*)
8940 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8941 - exit 0 ;;
8942 - mvme68k:OpenBSD:*:*)
8943 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8944 - exit 0 ;;
8945 - mvme88k:OpenBSD:*:*)
8946 - echo m88k-unknown-openbsd${UNAME_RELEASE}
8947 - exit 0 ;;
8948 - powerpc:machten:*:*)
8949 - echo powerpc-apple-machten${UNAME_RELEASE}
8950 - exit 0 ;;
8951 - RISC*:Mach:*:*)
8952 - echo mips-dec-mach_bsd4.3
8953 - exit 0 ;;
8954 - RISC*:ULTRIX:*:*)
8955 - echo mips-dec-ultrix${UNAME_RELEASE}
8956 - exit 0 ;;
8957 - VAX*:ULTRIX*:*:*)
8958 - echo vax-dec-ultrix${UNAME_RELEASE}
8959 - exit 0 ;;
8960 - 2020:CLIX:*:*)
8961 - echo clipper-intergraph-clix${UNAME_RELEASE}
8962 - exit 0 ;;
8963 - mips:*:*:UMIPS | mips:*:*:RISCos)
8964 - sed 's/^ //' << EOF >dummy.c
8965 - int main (argc, argv) int argc; char **argv; {
8966 - #if defined (host_mips) && defined (MIPSEB)
8967 - #if defined (SYSTYPE_SYSV)
8968 - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
8969 - #endif
8970 - #if defined (SYSTYPE_SVR4)
8971 - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
8972 - #endif
8973 - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
8974 - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
8975 - #endif
8976 - #endif
8977 - exit (-1);
8979 -EOF
8980 - ${CC-cc} dummy.c -o dummy \
8981 - && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
8982 - && rm dummy.c dummy && exit 0
8983 - rm -f dummy.c dummy
8984 - echo mips-mips-riscos${UNAME_RELEASE}
8985 - exit 0 ;;
8986 - Night_Hawk:Power_UNIX:*:*)
8987 - echo powerpc-harris-powerunix
8988 - exit 0 ;;
8989 - m88k:CX/UX:7*:*)
8990 - echo m88k-harris-cxux7
8991 - exit 0 ;;
8992 - m88k:*:4*:R4*)
8993 - echo m88k-motorola-sysv4
8994 - exit 0 ;;
8995 - m88k:*:3*:R3*)
8996 - echo m88k-motorola-sysv3
8997 - exit 0 ;;
8998 - AViiON:dgux:*:*)
8999 - # DG/UX returns AViiON for all architectures
9000 - UNAME_PROCESSOR=`/usr/bin/uname -p`
9001 - if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
9002 - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
9003 - -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
9004 - echo m88k-dg-dgux${UNAME_RELEASE}
9005 - else
9006 - echo m88k-dg-dguxbcs${UNAME_RELEASE}
9007 - fi
9008 - else echo i586-dg-dgux${UNAME_RELEASE}
9009 - fi
9010 - exit 0 ;;
9011 - M88*:DolphinOS:*:*) # DolphinOS (SVR3)
9012 - echo m88k-dolphin-sysv3
9013 - exit 0 ;;
9014 - M88*:*:R3*:*)
9015 - # Delta 88k system running SVR3
9016 - echo m88k-motorola-sysv3
9017 - exit 0 ;;
9018 - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
9019 - echo m88k-tektronix-sysv3
9020 - exit 0 ;;
9021 - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
9022 - echo m68k-tektronix-bsd
9023 - exit 0 ;;
9024 - *:IRIX*:*:*)
9025 - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
9026 - exit 0 ;;
9027 - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
9028 - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
9029 - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
9030 - i?86:AIX:*:*)
9031 - echo i386-ibm-aix
9032 - exit 0 ;;
9033 - *:AIX:2:3)
9034 - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
9035 - sed 's/^ //' << EOF >dummy.c
9036 - #include <sys/systemcfg.h>
9038 - main()
9040 - if (!__power_pc())
9041 - exit(1);
9042 - puts("powerpc-ibm-aix3.2.5");
9043 - exit(0);
9045 -EOF
9046 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
9047 - rm -f dummy.c dummy
9048 - echo rs6000-ibm-aix3.2.5
9049 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
9050 - echo rs6000-ibm-aix3.2.4
9051 - else
9052 - echo rs6000-ibm-aix3.2
9053 - fi
9054 - exit 0 ;;
9055 - *:AIX:*:4)
9056 - if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
9057 - IBM_ARCH=rs6000
9058 - else
9059 - IBM_ARCH=powerpc
9060 - fi
9061 - if [ -x /usr/bin/oslevel ] ; then
9062 - IBM_REV=`/usr/bin/oslevel`
9063 - else
9064 - IBM_REV=4.${UNAME_RELEASE}
9065 - fi
9066 - echo ${IBM_ARCH}-ibm-aix${IBM_REV}
9067 - exit 0 ;;
9068 - *:AIX:*:*)
9069 - echo rs6000-ibm-aix
9070 - exit 0 ;;
9071 - ibmrt:4.4BSD:*|romp-ibm:BSD:*)
9072 - echo romp-ibm-bsd4.4
9073 - exit 0 ;;
9074 - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC NetBSD and
9075 - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
9076 - exit 0 ;; # report: romp-ibm BSD 4.3
9077 - *:BOSX:*:*)
9078 - echo rs6000-bull-bosx
9079 - exit 0 ;;
9080 - DPX/2?00:B.O.S.:*:*)
9081 - echo m68k-bull-sysv3
9082 - exit 0 ;;
9083 - 9000/[34]??:4.3bsd:1.*:*)
9084 - echo m68k-hp-bsd
9085 - exit 0 ;;
9086 - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
9087 - echo m68k-hp-bsd4.4
9088 - exit 0 ;;
9089 - 9000/[3478]??:HP-UX:*:*)
9090 - case "${UNAME_MACHINE}" in
9091 - 9000/31? ) HP_ARCH=m68000 ;;
9092 - 9000/[34]?? ) HP_ARCH=m68k ;;
9093 - 9000/7?? | 9000/8?[1679] ) HP_ARCH=hppa1.1 ;;
9094 - 9000/8?? ) HP_ARCH=hppa1.0 ;;
9095 - esac
9096 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
9097 - echo ${HP_ARCH}-hp-hpux${HPUX_REV}
9098 - exit 0 ;;
9099 - 3050*:HI-UX:*:*)
9100 - sed 's/^ //' << EOF >dummy.c
9101 - #include <unistd.h>
9102 - int
9103 - main ()
9105 - long cpu = sysconf (_SC_CPU_VERSION);
9106 - /* The order matters, because CPU_IS_HP_MC68K erroneously returns
9107 - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
9108 - results, however. */
9109 - if (CPU_IS_PA_RISC (cpu))
9111 - switch (cpu)
9113 - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
9114 - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
9115 - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
9116 - default: puts ("hppa-hitachi-hiuxwe2"); break;
9119 - else if (CPU_IS_HP_MC68K (cpu))
9120 - puts ("m68k-hitachi-hiuxwe2");
9121 - else puts ("unknown-hitachi-hiuxwe2");
9122 - exit (0);
9124 -EOF
9125 - ${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
9126 - rm -f dummy.c dummy
9127 - echo unknown-hitachi-hiuxwe2
9128 - exit 0 ;;
9129 - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
9130 - echo hppa1.1-hp-bsd
9131 - exit 0 ;;
9132 - 9000/8??:4.3bsd:*:*)
9133 - echo hppa1.0-hp-bsd
9134 - exit 0 ;;
9135 - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
9136 - echo hppa1.1-hp-osf
9137 - exit 0 ;;
9138 - hp8??:OSF1:*:*)
9139 - echo hppa1.0-hp-osf
9140 - exit 0 ;;
9141 - i?86:OSF1:*:*)
9142 - if [ -x /usr/sbin/sysversion ] ; then
9143 - echo ${UNAME_MACHINE}-unknown-osf1mk
9144 - else
9145 - echo ${UNAME_MACHINE}-unknown-osf1
9146 - fi
9147 - exit 0 ;;
9148 - parisc*:Lites*:*:*)
9149 - echo hppa1.1-hp-lites
9150 - exit 0 ;;
9151 - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
9152 - echo c1-convex-bsd
9153 - exit 0 ;;
9154 - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
9155 - if getsysinfo -f scalar_acc
9156 - then echo c32-convex-bsd
9157 - else echo c2-convex-bsd
9158 - fi
9159 - exit 0 ;;
9160 - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
9161 - echo c34-convex-bsd
9162 - exit 0 ;;
9163 - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
9164 - echo c38-convex-bsd
9165 - exit 0 ;;
9166 - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
9167 - echo c4-convex-bsd
9168 - exit 0 ;;
9169 - CRAY*X-MP:*:*:*)
9170 - echo xmp-cray-unicos
9171 - exit 0 ;;
9172 - CRAY*Y-MP:*:*:*)
9173 - echo ymp-cray-unicos${UNAME_RELEASE}
9174 - exit 0 ;;
9175 - CRAY*[A-Z]90:*:*:*)
9176 - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
9177 - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
9178 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
9179 - exit 0 ;;
9180 - CRAY*TS:*:*:*)
9181 - echo t90-cray-unicos${UNAME_RELEASE}
9182 - exit 0 ;;
9183 - CRAY-2:*:*:*)
9184 - echo cray2-cray-unicos
9185 - exit 0 ;;
9186 - F300:UNIX_System_V:*:*)
9187 - FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
9188 - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
9189 - echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
9190 - exit 0 ;;
9191 - F301:UNIX_System_V:*:*)
9192 - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
9193 - exit 0 ;;
9194 - hp3[0-9][05]:NetBSD:*:*)
9195 - echo m68k-hp-netbsd${UNAME_RELEASE}
9196 - exit 0 ;;
9197 - hp300:OpenBSD:*:*)
9198 - echo m68k-unknown-openbsd${UNAME_RELEASE}
9199 - exit 0 ;;
9200 - i?86:BSD/386:*:* | *:BSD/OS:*:*)
9201 - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
9202 - exit 0 ;;
9203 - *:FreeBSD:*:*)
9204 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
9205 - exit 0 ;;
9206 - *:NetBSD:*:*)
9207 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9208 - exit 0 ;;
9209 - *:OpenBSD:*:*)
9210 - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9211 - exit 0 ;;
9212 - i*:CYGWIN*:*)
9213 - echo i386-pc-cygwin32
9214 - exit 0 ;;
9215 - i*:MINGW*:*)
9216 - echo i386-pc-mingw32
9217 - exit 0 ;;
9218 - p*:CYGWIN*:*)
9219 - echo powerpcle-unknown-cygwin32
9220 - exit 0 ;;
9221 - prep*:SunOS:5.*:*)
9222 - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
9223 - exit 0 ;;
9224 - *:GNU:*:*)
9225 - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
9226 - exit 0 ;;
9227 - *:Linux:*:*)
9228 - # The BFD linker knows what the default object file format is, so
9229 - # first see if it will tell us.
9230 - ld_help_string=`ld --help 2>&1`
9231 - ld_supported_emulations=`echo $ld_help_string \
9232 - | sed -ne '/supported emulations:/!d
9233 - s/[ ][ ]*/ /g
9234 - s/.*supported emulations: *//
9235 - s/ .*//
9236 - p'`
9237 - case "$ld_supported_emulations" in
9238 - i?86linux) echo "${UNAME_MACHINE}-pc-linux-gnuaout" ; exit 0 ;;
9239 - i?86coff) echo "${UNAME_MACHINE}-pc-linux-gnucoff" ; exit 0 ;;
9240 - sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
9241 - m68klinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
9242 - elf32ppc) echo "powerpc-unknown-linux-gnu" ; exit 0 ;;
9243 - esac
9245 - if test "${UNAME_MACHINE}" = "alpha" ; then
9246 - sed 's/^ //' <<EOF >dummy.s
9247 - .globl main
9248 - .ent main
9249 - main:
9250 - .frame \$30,0,\$26,0
9251 - .prologue 0
9252 - .long 0x47e03d80 # implver $0
9253 - lda \$2,259
9254 - .long 0x47e20c21 # amask $2,$1
9255 - srl \$1,8,\$2
9256 - sll \$2,2,\$2
9257 - sll \$0,3,\$0
9258 - addl \$1,\$0,\$0
9259 - addl \$2,\$0,\$0
9260 - ret \$31,(\$26),1
9261 - .end main
9262 -EOF
9263 - LIBC=""
9264 - ${CC-cc} dummy.s -o dummy 2>/dev/null
9265 - if test "$?" = 0 ; then
9266 - ./dummy
9267 - case "$?" in
9268 - 7)
9269 - UNAME_MACHINE="alpha"
9270 - ;;
9271 - 15)
9272 - UNAME_MACHINE="alphaev5"
9273 - ;;
9274 - 14)
9275 - UNAME_MACHINE="alphaev56"
9276 - ;;
9277 - 10)
9278 - UNAME_MACHINE="alphapca56"
9279 - ;;
9280 - 16)
9281 - UNAME_MACHINE="alphaev6"
9282 - ;;
9283 - esac
9285 - objdump --private-headers dummy | \
9286 - grep ld.so.1 > /dev/null
9287 - if test "$?" = 0 ; then
9288 - LIBC="libc1"
9289 - fi
9290 - fi
9291 - rm -f dummy.s dummy
9292 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
9293 - elif test "${UNAME_MACHINE}" = "mips" ; then
9294 - cat >dummy.c <<EOF
9295 -main(argc, argv)
9296 - int argc;
9297 - char *argv[];
9299 -#ifdef __MIPSEB__
9300 - printf ("%s-unknown-linux-gnu\n", argv[1]);
9301 -#endif
9302 -#ifdef __MIPSEL__
9303 - printf ("%sel-unknown-linux-gnu\n", argv[1]);
9304 -#endif
9305 - return 0;
9307 -EOF
9308 - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
9309 - rm -f dummy.c dummy
9310 - else
9311 - # Either a pre-BFD a.out linker (linux-gnuoldld)
9312 - # or one that does not give us useful --help.
9313 - # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
9314 - # If ld does not provide *any* "supported emulations:"
9315 - # that means it is gnuoldld.
9316 - echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
9317 - test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
9319 - case "${UNAME_MACHINE}" in
9320 - i?86)
9321 - VENDOR=pc;
9322 - ;;
9323 - *)
9324 - VENDOR=unknown;
9325 - ;;
9326 - esac
9327 - # Determine whether the default compiler is a.out or elf
9328 - cat >dummy.c <<EOF
9329 -#include <features.h>
9330 -main(argc, argv)
9331 - int argc;
9332 - char *argv[];
9334 -#ifdef __ELF__
9335 -# ifdef __GLIBC__
9336 -# if __GLIBC__ >= 2
9337 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
9338 -# else
9339 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
9340 -# endif
9341 -# else
9342 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
9343 -# endif
9344 -#else
9345 - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
9346 -#endif
9347 - return 0;
9349 -EOF
9350 - ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
9351 - rm -f dummy.c dummy
9352 - fi ;;
9353 -# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. earlier versions
9354 -# are messed up and put the nodename in both sysname and nodename.
9355 - i?86:DYNIX/ptx:4*:*)
9356 - echo i386-sequent-sysv4
9357 - exit 0 ;;
9358 - i?86:UNIX_SV:4.2MP:2.*)
9359 - # Unixware is an offshoot of SVR4, but it has its own version
9360 - # number series starting with 2...
9361 - # I am not positive that other SVR4 systems won't match this,
9362 - # I just have to hope. -- rms.
9363 - # Use sysv4.2uw... so that sysv4* matches it.
9364 - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
9365 - exit 0 ;;
9366 - i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
9367 - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
9368 - echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
9369 - else
9370 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
9371 - fi
9372 - exit 0 ;;
9373 - i?86:*:3.2:*)
9374 - if test -f /usr/options/cb.name; then
9375 - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
9376 - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
9377 - elif /bin/uname -X 2>/dev/null >/dev/null ; then
9378 - UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
9379 - (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
9380 - (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
9381 - && UNAME_MACHINE=i586
9382 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
9383 - else
9384 - echo ${UNAME_MACHINE}-pc-sysv32
9385 - fi
9386 - exit 0 ;;
9387 - pc:*:*:*)
9388 - # uname -m prints for DJGPP always 'pc', but it prints nothing about
9389 - # the processor, so we play safe by assuming i386.
9390 - echo i386-pc-msdosdjgpp
9391 - exit 0 ;;
9392 - Intel:Mach:3*:*)
9393 - echo i386-pc-mach3
9394 - exit 0 ;;
9395 - paragon:*:*:*)
9396 - echo i860-intel-osf1
9397 - exit 0 ;;
9398 - i860:*:4.*:*) # i860-SVR4
9399 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
9400 - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
9401 - else # Add other i860-SVR4 vendors below as they are discovered.
9402 - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
9403 - fi
9404 - exit 0 ;;
9405 - mini*:CTIX:SYS*5:*)
9406 - # "miniframe"
9407 - echo m68010-convergent-sysv
9408 - exit 0 ;;
9409 - M68*:*:R3V[567]*:*)
9410 - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
9411 - 3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
9412 - OS_REL=''
9413 - test -r /etc/.relid \
9414 - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
9415 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
9416 - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
9417 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
9418 - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
9419 - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
9420 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
9421 - && echo i486-ncr-sysv4 && exit 0 ;;
9422 - m68*:LynxOS:2.*:*)
9423 - echo m68k-unknown-lynxos${UNAME_RELEASE}
9424 - exit 0 ;;
9425 - mc68030:UNIX_System_V:4.*:*)
9426 - echo m68k-atari-sysv4
9427 - exit 0 ;;
9428 - i?86:LynxOS:2.*:*)
9429 - echo i386-unknown-lynxos${UNAME_RELEASE}
9430 - exit 0 ;;
9431 - TSUNAMI:LynxOS:2.*:*)
9432 - echo sparc-unknown-lynxos${UNAME_RELEASE}
9433 - exit 0 ;;
9434 - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
9435 - echo rs6000-unknown-lynxos${UNAME_RELEASE}
9436 - exit 0 ;;
9437 - SM[BE]S:UNIX_SV:*:*)
9438 - echo mips-dde-sysv${UNAME_RELEASE}
9439 - exit 0 ;;
9440 - RM*:SINIX-*:*:*)
9441 - echo mips-sni-sysv4
9442 - exit 0 ;;
9443 - *:SINIX-*:*:*)
9444 - if uname -p 2>/dev/null >/dev/null ; then
9445 - UNAME_MACHINE=`(uname -p) 2>/dev/null`
9446 - echo ${UNAME_MACHINE}-sni-sysv4
9447 - else
9448 - echo ns32k-sni-sysv
9449 - fi
9450 - exit 0 ;;
9451 - PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
9452 - # says <Richard.M.Bartel@ccMail.Census.GOV>
9453 - echo i586-unisys-sysv4
9454 - exit 0 ;;
9455 - *:UNIX_System_V:4*:FTX*)
9456 - # From Gerald Hewes <hewes@openmarket.com>.
9457 - # How about differentiating between stratus architectures? -djm
9458 - echo hppa1.1-stratus-sysv4
9459 - exit 0 ;;
9460 - *:*:*:FTX*)
9461 - # From seanf@swdc.stratus.com.
9462 - echo i860-stratus-sysv4
9463 - exit 0 ;;
9464 - mc68*:A/UX:*:*)
9465 - echo m68k-apple-aux${UNAME_RELEASE}
9466 - exit 0 ;;
9467 - news*:NEWS-OS:*:6*)
9468 - echo mips-sony-newsos6
9469 - exit 0 ;;
9470 - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
9471 - if [ -d /usr/nec ]; then
9472 - echo mips-nec-sysv${UNAME_RELEASE}
9473 - else
9474 - echo mips-unknown-sysv${UNAME_RELEASE}
9475 - fi
9476 - exit 0 ;;
9477 -esac
9479 -#echo '(No uname command or uname output not recognized.)' 1>&2
9480 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
9482 -cat >dummy.c <<EOF
9483 -#ifdef _SEQUENT_
9484 -# include <sys/types.h>
9485 -# include <sys/utsname.h>
9486 -#endif
9487 -main ()
9489 -#if defined (sony)
9490 -#if defined (MIPSEB)
9491 - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
9492 - I don't know.... */
9493 - printf ("mips-sony-bsd\n"); exit (0);
9494 -#else
9495 -#include <sys/param.h>
9496 - printf ("m68k-sony-newsos%s\n",
9497 -#ifdef NEWSOS4
9498 - "4"
9499 -#else
9500 - ""
9501 -#endif
9502 - ); exit (0);
9503 -#endif
9504 -#endif
9506 -#if defined (__arm) && defined (__acorn) && defined (__unix)
9507 - printf ("arm-acorn-riscix"); exit (0);
9508 -#endif
9510 -#if defined (hp300) && !defined (hpux)
9511 - printf ("m68k-hp-bsd\n"); exit (0);
9512 -#endif
9514 -#if defined (NeXT)
9515 -#if !defined (__ARCHITECTURE__)
9516 -#define __ARCHITECTURE__ "m68k"
9517 -#endif
9518 - int version;
9519 - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
9520 - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
9521 - exit (0);
9522 -#endif
9524 -#if defined (MULTIMAX) || defined (n16)
9525 -#if defined (UMAXV)
9526 - printf ("ns32k-encore-sysv\n"); exit (0);
9527 -#else
9528 -#if defined (CMU)
9529 - printf ("ns32k-encore-mach\n"); exit (0);
9530 -#else
9531 - printf ("ns32k-encore-bsd\n"); exit (0);
9532 -#endif
9533 -#endif
9534 -#endif
9536 -#if defined (__386BSD__)
9537 - printf ("i386-pc-bsd\n"); exit (0);
9538 -#endif
9540 -#if defined (sequent)
9541 -#if defined (i386)
9542 - printf ("i386-sequent-dynix\n"); exit (0);
9543 -#endif
9544 -#if defined (ns32000)
9545 - printf ("ns32k-sequent-dynix\n"); exit (0);
9546 -#endif
9547 -#endif
9549 -#if defined (_SEQUENT_)
9550 - struct utsname un;
9552 - uname(&un);
9554 - if (strncmp(un.version, "V2", 2) == 0) {
9555 - printf ("i386-sequent-ptx2\n"); exit (0);
9557 - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
9558 - printf ("i386-sequent-ptx1\n"); exit (0);
9560 - printf ("i386-sequent-ptx\n"); exit (0);
9562 -#endif
9564 -#if defined (vax)
9565 -#if !defined (ultrix)
9566 - printf ("vax-dec-bsd\n"); exit (0);
9567 -#else
9568 - printf ("vax-dec-ultrix\n"); exit (0);
9569 -#endif
9570 -#endif
9572 -#if defined (alliant) && defined (i860)
9573 - printf ("i860-alliant-bsd\n"); exit (0);
9574 -#endif
9576 - exit (1);
9578 -EOF
9580 -${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
9581 -rm -f dummy.c dummy
9583 -# Apollos put the system type in the environment.
9585 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
9587 -# Convex versions that predate uname can use getsysinfo(1)
9589 -if [ -x /usr/convex/getsysinfo ]
9590 -then
9591 - case `getsysinfo -f cpu_type` in
9592 - c1*)
9593 - echo c1-convex-bsd
9594 - exit 0 ;;
9595 - c2*)
9596 - if getsysinfo -f scalar_acc
9597 - then echo c32-convex-bsd
9598 - else echo c2-convex-bsd
9599 - fi
9600 - exit 0 ;;
9601 - c34*)
9602 - echo c34-convex-bsd
9603 - exit 0 ;;
9604 - c38*)
9605 - echo c38-convex-bsd
9606 - exit 0 ;;
9607 - c4*)
9608 - echo c4-convex-bsd
9609 - exit 0 ;;
9610 - esac
9613 -#echo '(Unable to guess system type)' 1>&2
9615 -exit 1
9616 diff --git a/config.sub b/config.sub
9617 deleted file mode 100755
9618 index 213a6d4..0000000
9619 --- a/config.sub
9620 +++ /dev/null
9621 @@ -1,954 +0,0 @@
9622 -#! /bin/sh
9623 -# Configuration validation subroutine script, version 1.1.
9624 -# Copyright (C) 1991, 92, 93, 94, 95, 96, 1997 Free Software Foundation, Inc.
9625 -# This file is (in principle) common to ALL GNU software.
9626 -# The presence of a machine in this file suggests that SOME GNU software
9627 -# can handle that machine. It does not imply ALL GNU software can.
9629 -# This file is free software; you can redistribute it and/or modify
9630 -# it under the terms of the GNU General Public License as published by
9631 -# the Free Software Foundation; either version 2 of the License, or
9632 -# (at your option) any later version.
9634 -# This program is distributed in the hope that it will be useful,
9635 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
9636 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9637 -# GNU General Public License for more details.
9639 -# You should have received a copy of the GNU General Public License
9640 -# along with this program; if not, write to the Free Software
9641 -# Foundation, Inc., 59 Temple Place - Suite 330,
9642 -# Boston, MA 02111-1307, USA.
9644 -# As a special exception to the GNU General Public License, if you
9645 -# distribute this file as part of a program that contains a
9646 -# configuration script generated by Autoconf, you may include it under
9647 -# the same distribution terms that you use for the rest of that program.
9649 -# Configuration subroutine to validate and canonicalize a configuration type.
9650 -# Supply the specified configuration type as an argument.
9651 -# If it is invalid, we print an error message on stderr and exit with code 1.
9652 -# Otherwise, we print the canonical config type on stdout and succeed.
9654 -# This file is supposed to be the same for all GNU packages
9655 -# and recognize all the CPU types, system types and aliases
9656 -# that are meaningful with *any* GNU software.
9657 -# Each package is responsible for reporting which valid configurations
9658 -# it does not support. The user should be able to distinguish
9659 -# a failure to support a valid configuration from a meaningless
9660 -# configuration.
9662 -# The goal of this file is to map all the various variations of a given
9663 -# machine specification into a single specification in the form:
9664 -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
9665 -# or in some cases, the newer four-part form:
9666 -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
9667 -# It is wrong to echo any other type of specification.
9669 -if [ x$1 = x ]
9670 -then
9671 - echo Configuration name missing. 1>&2
9672 - echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
9673 - echo "or $0 ALIAS" 1>&2
9674 - echo where ALIAS is a recognized configuration type. 1>&2
9675 - exit 1
9678 -# First pass through any local machine types.
9679 -case $1 in
9680 - *local*)
9681 - echo $1
9682 - exit 0
9683 - ;;
9684 - *)
9685 - ;;
9686 -esac
9688 -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
9689 -# Here we must recognize all the valid KERNEL-OS combinations.
9690 -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
9691 -case $maybe_os in
9692 - linux-gnu*)
9693 - os=-$maybe_os
9694 - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
9695 - ;;
9696 - *)
9697 - basic_machine=`echo $1 | sed 's/-[^-]*$//'`
9698 - if [ $basic_machine != $1 ]
9699 - then os=`echo $1 | sed 's/.*-/-/'`
9700 - else os=; fi
9701 - ;;
9702 -esac
9704 -### Let's recognize common machines as not being operating systems so
9705 -### that things like config.sub decstation-3100 work. We also
9706 -### recognize some manufacturers as not being operating systems, so we
9707 -### can provide default operating systems below.
9708 -case $os in
9709 - -sun*os*)
9710 - # Prevent following clause from handling this invalid input.
9711 - ;;
9712 - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
9713 - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
9714 - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
9715 - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
9716 - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
9717 - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
9718 - -apple)
9719 - os=
9720 - basic_machine=$1
9721 - ;;
9722 - -hiux*)
9723 - os=-hiuxwe2
9724 - ;;
9725 - -sco5)
9726 - os=sco3.2v5
9727 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9728 - ;;
9729 - -sco4)
9730 - os=-sco3.2v4
9731 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9732 - ;;
9733 - -sco3.2.[4-9]*)
9734 - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
9735 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9736 - ;;
9737 - -sco3.2v[4-9]*)
9738 - # Don't forget version if it is 3.2v4 or newer.
9739 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9740 - ;;
9741 - -sco*)
9742 - os=-sco3.2v2
9743 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9744 - ;;
9745 - -isc)
9746 - os=-isc2.2
9747 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9748 - ;;
9749 - -clix*)
9750 - basic_machine=clipper-intergraph
9751 - ;;
9752 - -isc*)
9753 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9754 - ;;
9755 - -lynx*)
9756 - os=-lynxos
9757 - ;;
9758 - -ptx*)
9759 - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
9760 - ;;
9761 - -windowsnt*)
9762 - os=`echo $os | sed -e 's/windowsnt/winnt/'`
9763 - ;;
9764 - -psos*)
9765 - os=-psos
9766 - ;;
9767 -esac
9769 -# Decode aliases for certain CPU-COMPANY combinations.
9770 -case $basic_machine in
9771 - # Recognize the basic CPU types without company name.
9772 - # Some are omitted here because they have special meanings below.
9773 - tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
9774 - | arme[lb] | pyramid | mn10200 | mn10300 \
9775 - | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
9776 - | alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
9777 - | i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
9778 - | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
9779 - | mipstx39 | mipstx39el \
9780 - | sparc | sparclet | sparclite | sparc64 | v850)
9781 - basic_machine=$basic_machine-unknown
9782 - ;;
9783 - # We use `pc' rather than `unknown'
9784 - # because (1) that's what they normally are, and
9785 - # (2) the word "unknown" tends to confuse beginning users.
9786 - i[3456]86)
9787 - basic_machine=$basic_machine-pc
9788 - ;;
9789 - # Object if more than one company name word.
9790 - *-*-*)
9791 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
9792 - exit 1
9793 - ;;
9794 - # Recognize the basic CPU types with company name.
9795 - vax-* | tahoe-* | i[3456]86-* | i860-* | m32r-* | m68k-* | m68000-* \
9796 - | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
9797 - | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
9798 - | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
9799 - | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* \
9800 - | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
9801 - | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
9802 - | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
9803 - | sparc64-* | mips64-* | mipsel-* \
9804 - | mips64el-* | mips64orion-* | mips64orionel-* \
9805 - | mipstx39-* | mipstx39el-* \
9806 - | f301-*)
9807 - ;;
9808 - # Recognize the various machine names and aliases which stand
9809 - # for a CPU type and a company and sometimes even an OS.
9810 - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
9811 - basic_machine=m68000-att
9812 - ;;
9813 - 3b*)
9814 - basic_machine=we32k-att
9815 - ;;
9816 - alliant | fx80)
9817 - basic_machine=fx80-alliant
9818 - ;;
9819 - altos | altos3068)
9820 - basic_machine=m68k-altos
9821 - ;;
9822 - am29k)
9823 - basic_machine=a29k-none
9824 - os=-bsd
9825 - ;;
9826 - amdahl)
9827 - basic_machine=580-amdahl
9828 - os=-sysv
9829 - ;;
9830 - amiga | amiga-*)
9831 - basic_machine=m68k-cbm
9832 - ;;
9833 - amigaos | amigados)
9834 - basic_machine=m68k-cbm
9835 - os=-amigaos
9836 - ;;
9837 - amigaunix | amix)
9838 - basic_machine=m68k-cbm
9839 - os=-sysv4
9840 - ;;
9841 - apollo68)
9842 - basic_machine=m68k-apollo
9843 - os=-sysv
9844 - ;;
9845 - aux)
9846 - basic_machine=m68k-apple
9847 - os=-aux
9848 - ;;
9849 - balance)
9850 - basic_machine=ns32k-sequent
9851 - os=-dynix
9852 - ;;
9853 - convex-c1)
9854 - basic_machine=c1-convex
9855 - os=-bsd
9856 - ;;
9857 - convex-c2)
9858 - basic_machine=c2-convex
9859 - os=-bsd
9860 - ;;
9861 - convex-c32)
9862 - basic_machine=c32-convex
9863 - os=-bsd
9864 - ;;
9865 - convex-c34)
9866 - basic_machine=c34-convex
9867 - os=-bsd
9868 - ;;
9869 - convex-c38)
9870 - basic_machine=c38-convex
9871 - os=-bsd
9872 - ;;
9873 - cray | ymp)
9874 - basic_machine=ymp-cray
9875 - os=-unicos
9876 - ;;
9877 - cray2)
9878 - basic_machine=cray2-cray
9879 - os=-unicos
9880 - ;;
9881 - [ctj]90-cray)
9882 - basic_machine=c90-cray
9883 - os=-unicos
9884 - ;;
9885 - crds | unos)
9886 - basic_machine=m68k-crds
9887 - ;;
9888 - da30 | da30-*)
9889 - basic_machine=m68k-da30
9890 - ;;
9891 - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
9892 - basic_machine=mips-dec
9893 - ;;
9894 - delta | 3300 | motorola-3300 | motorola-delta \
9895 - | 3300-motorola | delta-motorola)
9896 - basic_machine=m68k-motorola
9897 - ;;
9898 - delta88)
9899 - basic_machine=m88k-motorola
9900 - os=-sysv3
9901 - ;;
9902 - dpx20 | dpx20-*)
9903 - basic_machine=rs6000-bull
9904 - os=-bosx
9905 - ;;
9906 - dpx2* | dpx2*-bull)
9907 - basic_machine=m68k-bull
9908 - os=-sysv3
9909 - ;;
9910 - ebmon29k)
9911 - basic_machine=a29k-amd
9912 - os=-ebmon
9913 - ;;
9914 - elxsi)
9915 - basic_machine=elxsi-elxsi
9916 - os=-bsd
9917 - ;;
9918 - encore | umax | mmax)
9919 - basic_machine=ns32k-encore
9920 - ;;
9921 - fx2800)
9922 - basic_machine=i860-alliant
9923 - ;;
9924 - genix)
9925 - basic_machine=ns32k-ns
9926 - ;;
9927 - gmicro)
9928 - basic_machine=tron-gmicro
9929 - os=-sysv
9930 - ;;
9931 - h3050r* | hiux*)
9932 - basic_machine=hppa1.1-hitachi
9933 - os=-hiuxwe2
9934 - ;;
9935 - h8300hms)
9936 - basic_machine=h8300-hitachi
9937 - os=-hms
9938 - ;;
9939 - harris)
9940 - basic_machine=m88k-harris
9941 - os=-sysv3
9942 - ;;
9943 - hp300-*)
9944 - basic_machine=m68k-hp
9945 - ;;
9946 - hp300bsd)
9947 - basic_machine=m68k-hp
9948 - os=-bsd
9949 - ;;
9950 - hp300hpux)
9951 - basic_machine=m68k-hp
9952 - os=-hpux
9953 - ;;
9954 - hp9k2[0-9][0-9] | hp9k31[0-9])
9955 - basic_machine=m68000-hp
9956 - ;;
9957 - hp9k3[2-9][0-9])
9958 - basic_machine=m68k-hp
9959 - ;;
9960 - hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
9961 - basic_machine=hppa1.1-hp
9962 - ;;
9963 - hp9k8[0-9][0-9] | hp8[0-9][0-9])
9964 - basic_machine=hppa1.0-hp
9965 - ;;
9966 - hppa-next)
9967 - os=-nextstep3
9968 - ;;
9969 - i370-ibm* | ibm*)
9970 - basic_machine=i370-ibm
9971 - os=-mvs
9972 - ;;
9973 -# I'm not sure what "Sysv32" means. Should this be sysv3.2?
9974 - i[3456]86v32)
9975 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9976 - os=-sysv32
9977 - ;;
9978 - i[3456]86v4*)
9979 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9980 - os=-sysv4
9981 - ;;
9982 - i[3456]86v)
9983 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9984 - os=-sysv
9985 - ;;
9986 - i[3456]86sol2)
9987 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9988 - os=-solaris2
9989 - ;;
9990 - iris | iris4d)
9991 - basic_machine=mips-sgi
9992 - case $os in
9993 - -irix*)
9994 - ;;
9995 - *)
9996 - os=-irix4
9997 - ;;
9998 - esac
9999 - ;;
10000 - isi68 | isi)
10001 - basic_machine=m68k-isi
10002 - os=-sysv
10003 - ;;
10004 - m88k-omron*)
10005 - basic_machine=m88k-omron
10006 - ;;
10007 - magnum | m3230)
10008 - basic_machine=mips-mips
10009 - os=-sysv
10010 - ;;
10011 - merlin)
10012 - basic_machine=ns32k-utek
10013 - os=-sysv
10014 - ;;
10015 - miniframe)
10016 - basic_machine=m68000-convergent
10017 - ;;
10018 - mipsel*-linux*)
10019 - basic_machine=mipsel-unknown
10020 - os=-linux-gnu
10021 - ;;
10022 - mips*-linux*)
10023 - basic_machine=mips-unknown
10024 - os=-linux-gnu
10025 - ;;
10026 - mips3*-*)
10027 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
10028 - ;;
10029 - mips3*)
10030 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
10031 - ;;
10032 - ncr3000)
10033 - basic_machine=i486-ncr
10034 - os=-sysv4
10035 - ;;
10036 - news | news700 | news800 | news900)
10037 - basic_machine=m68k-sony
10038 - os=-newsos
10039 - ;;
10040 - news1000)
10041 - basic_machine=m68030-sony
10042 - os=-newsos
10043 - ;;
10044 - news-3600 | risc-news)
10045 - basic_machine=mips-sony
10046 - os=-newsos
10047 - ;;
10048 - next | m*-next )
10049 - basic_machine=m68k-next
10050 - case $os in
10051 - -nextstep* )
10052 - ;;
10053 - -ns2*)
10054 - os=-nextstep2
10055 - ;;
10056 - *)
10057 - os=-nextstep3
10058 - ;;
10059 - esac
10060 - ;;
10061 - nh3000)
10062 - basic_machine=m68k-harris
10063 - os=-cxux
10064 - ;;
10065 - nh[45]000)
10066 - basic_machine=m88k-harris
10067 - os=-cxux
10068 - ;;
10069 - nindy960)
10070 - basic_machine=i960-intel
10071 - os=-nindy
10072 - ;;
10073 - np1)
10074 - basic_machine=np1-gould
10075 - ;;
10076 - pa-hitachi)
10077 - basic_machine=hppa1.1-hitachi
10078 - os=-hiuxwe2
10079 - ;;
10080 - paragon)
10081 - basic_machine=i860-intel
10082 - os=-osf
10083 - ;;
10084 - pbd)
10085 - basic_machine=sparc-tti
10086 - ;;
10087 - pbb)
10088 - basic_machine=m68k-tti
10089 - ;;
10090 - pc532 | pc532-*)
10091 - basic_machine=ns32k-pc532
10092 - ;;
10093 - pentium | p5)
10094 - basic_machine=i586-intel
10095 - ;;
10096 - pentiumpro | p6)
10097 - basic_machine=i686-intel
10098 - ;;
10099 - pentium-* | p5-*)
10100 - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
10101 - ;;
10102 - pentiumpro-* | p6-*)
10103 - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
10104 - ;;
10105 - k5)
10106 - # We don't have specific support for AMD's K5 yet, so just call it a Pentium
10107 - basic_machine=i586-amd
10108 - ;;
10109 - nexen)
10110 - # We don't have specific support for Nexgen yet, so just call it a Pentium
10111 - basic_machine=i586-nexgen
10112 - ;;
10113 - pn)
10114 - basic_machine=pn-gould
10115 - ;;
10116 - power) basic_machine=rs6000-ibm
10117 - ;;
10118 - ppc) basic_machine=powerpc-unknown
10119 - ;;
10120 - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
10121 - ;;
10122 - ppcle | powerpclittle | ppc-le | powerpc-little)
10123 - basic_machine=powerpcle-unknown
10124 - ;;
10125 - ppcle-* | powerpclittle-*)
10126 - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
10127 - ;;
10128 - ps2)
10129 - basic_machine=i386-ibm
10130 - ;;
10131 - rm[46]00)
10132 - basic_machine=mips-siemens
10133 - ;;
10134 - rtpc | rtpc-*)
10135 - basic_machine=romp-ibm
10136 - ;;
10137 - sequent)
10138 - basic_machine=i386-sequent
10139 - ;;
10140 - sh)
10141 - basic_machine=sh-hitachi
10142 - os=-hms
10143 - ;;
10144 - sps7)
10145 - basic_machine=m68k-bull
10146 - os=-sysv2
10147 - ;;
10148 - spur)
10149 - basic_machine=spur-unknown
10150 - ;;
10151 - sun2)
10152 - basic_machine=m68000-sun
10153 - ;;
10154 - sun2os3)
10155 - basic_machine=m68000-sun
10156 - os=-sunos3
10157 - ;;
10158 - sun2os4)
10159 - basic_machine=m68000-sun
10160 - os=-sunos4
10161 - ;;
10162 - sun3os3)
10163 - basic_machine=m68k-sun
10164 - os=-sunos3
10165 - ;;
10166 - sun3os4)
10167 - basic_machine=m68k-sun
10168 - os=-sunos4
10169 - ;;
10170 - sun4os3)
10171 - basic_machine=sparc-sun
10172 - os=-sunos3
10173 - ;;
10174 - sun4os4)
10175 - basic_machine=sparc-sun
10176 - os=-sunos4
10177 - ;;
10178 - sun4sol2)
10179 - basic_machine=sparc-sun
10180 - os=-solaris2
10181 - ;;
10182 - sun3 | sun3-*)
10183 - basic_machine=m68k-sun
10184 - ;;
10185 - sun4)
10186 - basic_machine=sparc-sun
10187 - ;;
10188 - sun386 | sun386i | roadrunner)
10189 - basic_machine=i386-sun
10190 - ;;
10191 - symmetry)
10192 - basic_machine=i386-sequent
10193 - os=-dynix
10194 - ;;
10195 - tx39)
10196 - basic_machine=mipstx39-unknown
10197 - ;;
10198 - tx39el)
10199 - basic_machine=mipstx39el-unknown
10200 - ;;
10201 - tower | tower-32)
10202 - basic_machine=m68k-ncr
10203 - ;;
10204 - udi29k)
10205 - basic_machine=a29k-amd
10206 - os=-udi
10207 - ;;
10208 - ultra3)
10209 - basic_machine=a29k-nyu
10210 - os=-sym1
10211 - ;;
10212 - vaxv)
10213 - basic_machine=vax-dec
10214 - os=-sysv
10215 - ;;
10216 - vms)
10217 - basic_machine=vax-dec
10218 - os=-vms
10219 - ;;
10220 - vpp*|vx|vx-*)
10221 - basic_machine=f301-fujitsu
10222 - ;;
10223 - vxworks960)
10224 - basic_machine=i960-wrs
10225 - os=-vxworks
10226 - ;;
10227 - vxworks68)
10228 - basic_machine=m68k-wrs
10229 - os=-vxworks
10230 - ;;
10231 - vxworks29k)
10232 - basic_machine=a29k-wrs
10233 - os=-vxworks
10234 - ;;
10235 - xmp)
10236 - basic_machine=xmp-cray
10237 - os=-unicos
10238 - ;;
10239 - xps | xps100)
10240 - basic_machine=xps100-honeywell
10241 - ;;
10242 - none)
10243 - basic_machine=none-none
10244 - os=-none
10245 - ;;
10247 -# Here we handle the default manufacturer of certain CPU types. It is in
10248 -# some cases the only manufacturer, in others, it is the most popular.
10249 - mips)
10250 - if [ x$os = x-linux-gnu ]; then
10251 - basic_machine=mips-unknown
10252 - else
10253 - basic_machine=mips-mips
10254 - fi
10255 - ;;
10256 - romp)
10257 - basic_machine=romp-ibm
10258 - ;;
10259 - rs6000)
10260 - basic_machine=rs6000-ibm
10261 - ;;
10262 - vax)
10263 - basic_machine=vax-dec
10264 - ;;
10265 - pdp11)
10266 - basic_machine=pdp11-dec
10267 - ;;
10268 - we32k)
10269 - basic_machine=we32k-att
10270 - ;;
10271 - sparc)
10272 - basic_machine=sparc-sun
10273 - ;;
10274 - cydra)
10275 - basic_machine=cydra-cydrome
10276 - ;;
10277 - orion)
10278 - basic_machine=orion-highlevel
10279 - ;;
10280 - orion105)
10281 - basic_machine=clipper-highlevel
10282 - ;;
10283 - *)
10284 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
10285 - exit 1
10286 - ;;
10287 -esac
10289 -# Here we canonicalize certain aliases for manufacturers.
10290 -case $basic_machine in
10291 - *-digital*)
10292 - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
10293 - ;;
10294 - *-commodore*)
10295 - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
10296 - ;;
10297 - *)
10298 - ;;
10299 -esac
10301 -# Decode manufacturer-specific aliases for certain operating systems.
10303 -if [ x"$os" != x"" ]
10304 -then
10305 -case $os in
10306 - # First match some system type aliases
10307 - # that might get confused with valid system types.
10308 - # -solaris* is a basic system type, with this one exception.
10309 - -solaris1 | -solaris1.*)
10310 - os=`echo $os | sed -e 's|solaris1|sunos4|'`
10311 - ;;
10312 - -solaris)
10313 - os=-solaris2
10314 - ;;
10315 - -svr4*)
10316 - os=-sysv4
10317 - ;;
10318 - -unixware*)
10319 - os=-sysv4.2uw
10320 - ;;
10321 - -gnu/linux*)
10322 - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
10323 - ;;
10324 - # First accept the basic system types.
10325 - # The portable systems comes first.
10326 - # Each alternative MUST END IN A *, to match a version number.
10327 - # -sysv* is not here because it comes later, after sysvr4.
10328 - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
10329 - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
10330 - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
10331 - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
10332 - | -aos* \
10333 - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
10334 - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
10335 - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
10336 - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
10337 - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
10338 - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
10339 - | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
10340 - | -mingw32* | -linux-gnu* | -uxpv*)
10341 - # Remember, each alternative MUST END IN *, to match a version number.
10342 - ;;
10343 - -linux*)
10344 - os=`echo $os | sed -e 's|linux|linux-gnu|'`
10345 - ;;
10346 - -sunos5*)
10347 - os=`echo $os | sed -e 's|sunos5|solaris2|'`
10348 - ;;
10349 - -sunos6*)
10350 - os=`echo $os | sed -e 's|sunos6|solaris3|'`
10351 - ;;
10352 - -osfrose*)
10353 - os=-osfrose
10354 - ;;
10355 - -osf*)
10356 - os=-osf
10357 - ;;
10358 - -utek*)
10359 - os=-bsd
10360 - ;;
10361 - -dynix*)
10362 - os=-bsd
10363 - ;;
10364 - -acis*)
10365 - os=-aos
10366 - ;;
10367 - -ctix* | -uts*)
10368 - os=-sysv
10369 - ;;
10370 - -ns2 )
10371 - os=-nextstep2
10372 - ;;
10373 - # Preserve the version number of sinix5.
10374 - -sinix5.*)
10375 - os=`echo $os | sed -e 's|sinix|sysv|'`
10376 - ;;
10377 - -sinix*)
10378 - os=-sysv4
10379 - ;;
10380 - -triton*)
10381 - os=-sysv3
10382 - ;;
10383 - -oss*)
10384 - os=-sysv3
10385 - ;;
10386 - -svr4)
10387 - os=-sysv4
10388 - ;;
10389 - -svr3)
10390 - os=-sysv3
10391 - ;;
10392 - -sysvr4)
10393 - os=-sysv4
10394 - ;;
10395 - # This must come after -sysvr4.
10396 - -sysv*)
10397 - ;;
10398 - -xenix)
10399 - os=-xenix
10400 - ;;
10401 - -none)
10402 - ;;
10403 - *)
10404 - # Get rid of the `-' at the beginning of $os.
10405 - os=`echo $os | sed 's/[^-]*-//'`
10406 - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
10407 - exit 1
10408 - ;;
10409 -esac
10410 -else
10412 -# Here we handle the default operating systems that come with various machines.
10413 -# The value should be what the vendor currently ships out the door with their
10414 -# machine or put another way, the most popular os provided with the machine.
10416 -# Note that if you're going to try to match "-MANUFACTURER" here (say,
10417 -# "-sun"), then you have to tell the case statement up towards the top
10418 -# that MANUFACTURER isn't an operating system. Otherwise, code above
10419 -# will signal an error saying that MANUFACTURER isn't an operating
10420 -# system, and we'll never get to this point.
10422 -case $basic_machine in
10423 - *-acorn)
10424 - os=-riscix1.2
10425 - ;;
10426 - arm*-semi)
10427 - os=-aout
10428 - ;;
10429 - pdp11-*)
10430 - os=-none
10431 - ;;
10432 - *-dec | vax-*)
10433 - os=-ultrix4.2
10434 - ;;
10435 - m68*-apollo)
10436 - os=-domain
10437 - ;;
10438 - i386-sun)
10439 - os=-sunos4.0.2
10440 - ;;
10441 - m68000-sun)
10442 - os=-sunos3
10443 - # This also exists in the configure program, but was not the
10444 - # default.
10445 - # os=-sunos4
10446 - ;;
10447 - *-tti) # must be before sparc entry or we get the wrong os.
10448 - os=-sysv3
10449 - ;;
10450 - sparc-* | *-sun)
10451 - os=-sunos4.1.1
10452 - ;;
10453 - *-ibm)
10454 - os=-aix
10455 - ;;
10456 - *-hp)
10457 - os=-hpux
10458 - ;;
10459 - *-hitachi)
10460 - os=-hiux
10461 - ;;
10462 - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
10463 - os=-sysv
10464 - ;;
10465 - *-cbm)
10466 - os=-amigaos
10467 - ;;
10468 - *-dg)
10469 - os=-dgux
10470 - ;;
10471 - *-dolphin)
10472 - os=-sysv3
10473 - ;;
10474 - m68k-ccur)
10475 - os=-rtu
10476 - ;;
10477 - m88k-omron*)
10478 - os=-luna
10479 - ;;
10480 - *-next )
10481 - os=-nextstep
10482 - ;;
10483 - *-sequent)
10484 - os=-ptx
10485 - ;;
10486 - *-crds)
10487 - os=-unos
10488 - ;;
10489 - *-ns)
10490 - os=-genix
10491 - ;;
10492 - i370-*)
10493 - os=-mvs
10494 - ;;
10495 - *-next)
10496 - os=-nextstep3
10497 - ;;
10498 - *-gould)
10499 - os=-sysv
10500 - ;;
10501 - *-highlevel)
10502 - os=-bsd
10503 - ;;
10504 - *-encore)
10505 - os=-bsd
10506 - ;;
10507 - *-sgi)
10508 - os=-irix
10509 - ;;
10510 - *-siemens)
10511 - os=-sysv4
10512 - ;;
10513 - *-masscomp)
10514 - os=-rtu
10515 - ;;
10516 - f301-fujitsu)
10517 - os=-uxpv
10518 - ;;
10519 - *)
10520 - os=-none
10521 - ;;
10522 -esac
10525 -# Here we handle the case where we know the os, and the CPU type, but not the
10526 -# manufacturer. We pick the logical manufacturer.
10527 -vendor=unknown
10528 -case $basic_machine in
10529 - *-unknown)
10530 - case $os in
10531 - -riscix*)
10532 - vendor=acorn
10533 - ;;
10534 - -sunos*)
10535 - vendor=sun
10536 - ;;
10537 - -aix*)
10538 - vendor=ibm
10539 - ;;
10540 - -hpux*)
10541 - vendor=hp
10542 - ;;
10543 - -hiux*)
10544 - vendor=hitachi
10545 - ;;
10546 - -unos*)
10547 - vendor=crds
10548 - ;;
10549 - -dgux*)
10550 - vendor=dg
10551 - ;;
10552 - -luna*)
10553 - vendor=omron
10554 - ;;
10555 - -genix*)
10556 - vendor=ns
10557 - ;;
10558 - -mvs*)
10559 - vendor=ibm
10560 - ;;
10561 - -ptx*)
10562 - vendor=sequent
10563 - ;;
10564 - -vxsim* | -vxworks*)
10565 - vendor=wrs
10566 - ;;
10567 - -aux*)
10568 - vendor=apple
10569 - ;;
10570 - esac
10571 - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
10572 - ;;
10573 -esac
10575 -echo $basic_machine$os
10576 diff --git a/config/config.guess b/config/config.guess
10577 new file mode 100755
10578 index 0000000..917bbc5
10579 --- /dev/null
10580 +++ b/config/config.guess
10581 @@ -0,0 +1,1463 @@
10582 +#! /bin/sh
10583 +# Attempt to guess a canonical system name.
10584 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
10585 +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
10587 +timestamp='2005-07-08'
10589 +# This file is free software; you can redistribute it and/or modify it
10590 +# under the terms of the GNU General Public License as published by
10591 +# the Free Software Foundation; either version 2 of the License, or
10592 +# (at your option) any later version.
10594 +# This program is distributed in the hope that it will be useful, but
10595 +# WITHOUT ANY WARRANTY; without even the implied warranty of
10596 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10597 +# General Public License for more details.
10599 +# You should have received a copy of the GNU General Public License
10600 +# along with this program; if not, write to the Free Software
10601 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
10602 +# 02110-1301, USA.
10604 +# As a special exception to the GNU General Public License, if you
10605 +# distribute this file as part of a program that contains a
10606 +# configuration script generated by Autoconf, you may include it under
10607 +# the same distribution terms that you use for the rest of that program.
10610 +# Originally written by Per Bothner <per@bothner.com>.
10611 +# Please send patches to <config-patches@gnu.org>. Submit a context
10612 +# diff and a properly formatted ChangeLog entry.
10614 +# This script attempts to guess a canonical system name similar to
10615 +# config.sub. If it succeeds, it prints the system name on stdout, and
10616 +# exits with 0. Otherwise, it exits with 1.
10618 +# The plan is that this can be called by configure scripts if you
10619 +# don't specify an explicit build system type.
10621 +me=`echo "$0" | sed -e 's,.*/,,'`
10623 +usage="\
10624 +Usage: $0 [OPTION]
10626 +Output the configuration name of the system \`$me' is run on.
10628 +Operation modes:
10629 + -h, --help print this help, then exit
10630 + -t, --time-stamp print date of last modification, then exit
10631 + -v, --version print version number, then exit
10633 +Report bugs and patches to <config-patches@gnu.org>."
10635 +version="\
10636 +GNU config.guess ($timestamp)
10638 +Originally written by Per Bothner.
10639 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
10640 +Free Software Foundation, Inc.
10642 +This is free software; see the source for copying conditions. There is NO
10643 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
10645 +help="
10646 +Try \`$me --help' for more information."
10648 +# Parse command line
10649 +while test $# -gt 0 ; do
10650 + case $1 in
10651 + --time-stamp | --time* | -t )
10652 + echo "$timestamp" ; exit ;;
10653 + --version | -v )
10654 + echo "$version" ; exit ;;
10655 + --help | --h* | -h )
10656 + echo "$usage"; exit ;;
10657 + -- ) # Stop option processing
10658 + shift; break ;;
10659 + - ) # Use stdin as input.
10660 + break ;;
10661 + -* )
10662 + echo "$me: invalid option $1$help" >&2
10663 + exit 1 ;;
10664 + * )
10665 + break ;;
10666 + esac
10667 +done
10669 +if test $# != 0; then
10670 + echo "$me: too many arguments$help" >&2
10671 + exit 1
10674 +trap 'exit 1' 1 2 15
10676 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
10677 +# compiler to aid in system detection is discouraged as it requires
10678 +# temporary files to be created and, as you can see below, it is a
10679 +# headache to deal with in a portable fashion.
10681 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
10682 +# use `HOST_CC' if defined, but it is deprecated.
10684 +# Portable tmp directory creation inspired by the Autoconf team.
10686 +set_cc_for_build='
10687 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
10688 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
10689 +: ${TMPDIR=/tmp} ;
10690 + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
10691 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
10692 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
10693 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
10694 +dummy=$tmp/dummy ;
10695 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
10696 +case $CC_FOR_BUILD,$HOST_CC,$CC in
10697 + ,,) echo "int x;" > $dummy.c ;
10698 + for c in cc gcc c89 c99 ; do
10699 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
10700 + CC_FOR_BUILD="$c"; break ;
10701 + fi ;
10702 + done ;
10703 + if test x"$CC_FOR_BUILD" = x ; then
10704 + CC_FOR_BUILD=no_compiler_found ;
10705 + fi
10706 + ;;
10707 + ,,*) CC_FOR_BUILD=$CC ;;
10708 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
10709 +esac ; set_cc_for_build= ;'
10711 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
10712 +# (ghazi@noc.rutgers.edu 1994-08-24)
10713 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
10714 + PATH=$PATH:/.attbin ; export PATH
10717 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
10718 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
10719 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
10720 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
10722 +# Note: order is significant - the case branches are not exclusive.
10724 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
10725 + *:NetBSD:*:*)
10726 + # NetBSD (nbsd) targets should (where applicable) match one or
10727 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
10728 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
10729 + # switched to ELF, *-*-netbsd* would select the old
10730 + # object file format. This provides both forward
10731 + # compatibility and a consistent mechanism for selecting the
10732 + # object file format.
10734 + # Note: NetBSD doesn't particularly care about the vendor
10735 + # portion of the name. We always set it to "unknown".
10736 + sysctl="sysctl -n hw.machine_arch"
10737 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
10738 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
10739 + case "${UNAME_MACHINE_ARCH}" in
10740 + armeb) machine=armeb-unknown ;;
10741 + arm*) machine=arm-unknown ;;
10742 + sh3el) machine=shl-unknown ;;
10743 + sh3eb) machine=sh-unknown ;;
10744 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
10745 + esac
10746 + # The Operating System including object format, if it has switched
10747 + # to ELF recently, or will in the future.
10748 + case "${UNAME_MACHINE_ARCH}" in
10749 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
10750 + eval $set_cc_for_build
10751 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
10752 + | grep __ELF__ >/dev/null
10753 + then
10754 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
10755 + # Return netbsd for either. FIX?
10756 + os=netbsd
10757 + else
10758 + os=netbsdelf
10759 + fi
10760 + ;;
10761 + *)
10762 + os=netbsd
10763 + ;;
10764 + esac
10765 + # The OS release
10766 + # Debian GNU/NetBSD machines have a different userland, and
10767 + # thus, need a distinct triplet. However, they do not need
10768 + # kernel version information, so it can be replaced with a
10769 + # suitable tag, in the style of linux-gnu.
10770 + case "${UNAME_VERSION}" in
10771 + Debian*)
10772 + release='-gnu'
10773 + ;;
10774 + *)
10775 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
10776 + ;;
10777 + esac
10778 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
10779 + # contains redundant information, the shorter form:
10780 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
10781 + echo "${machine}-${os}${release}"
10782 + exit ;;
10783 + *:OpenBSD:*:*)
10784 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
10785 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
10786 + exit ;;
10787 + *:ekkoBSD:*:*)
10788 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
10789 + exit ;;
10790 + macppc:MirBSD:*:*)
10791 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
10792 + exit ;;
10793 + *:MirBSD:*:*)
10794 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
10795 + exit ;;
10796 + alpha:OSF1:*:*)
10797 + case $UNAME_RELEASE in
10798 + *4.0)
10799 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
10800 + ;;
10801 + *5.*)
10802 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
10803 + ;;
10804 + esac
10805 + # According to Compaq, /usr/sbin/psrinfo has been available on
10806 + # OSF/1 and Tru64 systems produced since 1995. I hope that
10807 + # covers most systems running today. This code pipes the CPU
10808 + # types through head -n 1, so we only detect the type of CPU 0.
10809 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
10810 + case "$ALPHA_CPU_TYPE" in
10811 + "EV4 (21064)")
10812 + UNAME_MACHINE="alpha" ;;
10813 + "EV4.5 (21064)")
10814 + UNAME_MACHINE="alpha" ;;
10815 + "LCA4 (21066/21068)")
10816 + UNAME_MACHINE="alpha" ;;
10817 + "EV5 (21164)")
10818 + UNAME_MACHINE="alphaev5" ;;
10819 + "EV5.6 (21164A)")
10820 + UNAME_MACHINE="alphaev56" ;;
10821 + "EV5.6 (21164PC)")
10822 + UNAME_MACHINE="alphapca56" ;;
10823 + "EV5.7 (21164PC)")
10824 + UNAME_MACHINE="alphapca57" ;;
10825 + "EV6 (21264)")
10826 + UNAME_MACHINE="alphaev6" ;;
10827 + "EV6.7 (21264A)")
10828 + UNAME_MACHINE="alphaev67" ;;
10829 + "EV6.8CB (21264C)")
10830 + UNAME_MACHINE="alphaev68" ;;
10831 + "EV6.8AL (21264B)")
10832 + UNAME_MACHINE="alphaev68" ;;
10833 + "EV6.8CX (21264D)")
10834 + UNAME_MACHINE="alphaev68" ;;
10835 + "EV6.9A (21264/EV69A)")
10836 + UNAME_MACHINE="alphaev69" ;;
10837 + "EV7 (21364)")
10838 + UNAME_MACHINE="alphaev7" ;;
10839 + "EV7.9 (21364A)")
10840 + UNAME_MACHINE="alphaev79" ;;
10841 + esac
10842 + # A Pn.n version is a patched version.
10843 + # A Vn.n version is a released version.
10844 + # A Tn.n version is a released field test version.
10845 + # A Xn.n version is an unreleased experimental baselevel.
10846 + # 1.2 uses "1.2" for uname -r.
10847 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
10848 + exit ;;
10849 + Alpha\ *:Windows_NT*:*)
10850 + # How do we know it's Interix rather than the generic POSIX subsystem?
10851 + # Should we change UNAME_MACHINE based on the output of uname instead
10852 + # of the specific Alpha model?
10853 + echo alpha-pc-interix
10854 + exit ;;
10855 + 21064:Windows_NT:50:3)
10856 + echo alpha-dec-winnt3.5
10857 + exit ;;
10858 + Amiga*:UNIX_System_V:4.0:*)
10859 + echo m68k-unknown-sysv4
10860 + exit ;;
10861 + *:[Aa]miga[Oo][Ss]:*:*)
10862 + echo ${UNAME_MACHINE}-unknown-amigaos
10863 + exit ;;
10864 + *:[Mm]orph[Oo][Ss]:*:*)
10865 + echo ${UNAME_MACHINE}-unknown-morphos
10866 + exit ;;
10867 + *:OS/390:*:*)
10868 + echo i370-ibm-openedition
10869 + exit ;;
10870 + *:z/VM:*:*)
10871 + echo s390-ibm-zvmoe
10872 + exit ;;
10873 + *:OS400:*:*)
10874 + echo powerpc-ibm-os400
10875 + exit ;;
10876 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
10877 + echo arm-acorn-riscix${UNAME_RELEASE}
10878 + exit ;;
10879 + arm:riscos:*:*|arm:RISCOS:*:*)
10880 + echo arm-unknown-riscos
10881 + exit ;;
10882 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
10883 + echo hppa1.1-hitachi-hiuxmpp
10884 + exit ;;
10885 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
10886 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
10887 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
10888 + echo pyramid-pyramid-sysv3
10889 + else
10890 + echo pyramid-pyramid-bsd
10891 + fi
10892 + exit ;;
10893 + NILE*:*:*:dcosx)
10894 + echo pyramid-pyramid-svr4
10895 + exit ;;
10896 + DRS?6000:unix:4.0:6*)
10897 + echo sparc-icl-nx6
10898 + exit ;;
10899 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
10900 + case `/usr/bin/uname -p` in
10901 + sparc) echo sparc-icl-nx7; exit ;;
10902 + esac ;;
10903 + sun4H:SunOS:5.*:*)
10904 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
10905 + exit ;;
10906 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
10907 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
10908 + exit ;;
10909 + i86pc:SunOS:5.*:*)
10910 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
10911 + exit ;;
10912 + sun4*:SunOS:6*:*)
10913 + # According to config.sub, this is the proper way to canonicalize
10914 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
10915 + # it's likely to be more like Solaris than SunOS4.
10916 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
10917 + exit ;;
10918 + sun4*:SunOS:*:*)
10919 + case "`/usr/bin/arch -k`" in
10920 + Series*|S4*)
10921 + UNAME_RELEASE=`uname -v`
10922 + ;;
10923 + esac
10924 + # Japanese Language versions have a version number like `4.1.3-JL'.
10925 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
10926 + exit ;;
10927 + sun3*:SunOS:*:*)
10928 + echo m68k-sun-sunos${UNAME_RELEASE}
10929 + exit ;;
10930 + sun*:*:4.2BSD:*)
10931 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
10932 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
10933 + case "`/bin/arch`" in
10934 + sun3)
10935 + echo m68k-sun-sunos${UNAME_RELEASE}
10936 + ;;
10937 + sun4)
10938 + echo sparc-sun-sunos${UNAME_RELEASE}
10939 + ;;
10940 + esac
10941 + exit ;;
10942 + aushp:SunOS:*:*)
10943 + echo sparc-auspex-sunos${UNAME_RELEASE}
10944 + exit ;;
10945 + # The situation for MiNT is a little confusing. The machine name
10946 + # can be virtually everything (everything which is not
10947 + # "atarist" or "atariste" at least should have a processor
10948 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
10949 + # to the lowercase version "mint" (or "freemint"). Finally
10950 + # the system name "TOS" denotes a system which is actually not
10951 + # MiNT. But MiNT is downward compatible to TOS, so this should
10952 + # be no problem.
10953 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
10954 + echo m68k-atari-mint${UNAME_RELEASE}
10955 + exit ;;
10956 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
10957 + echo m68k-atari-mint${UNAME_RELEASE}
10958 + exit ;;
10959 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
10960 + echo m68k-atari-mint${UNAME_RELEASE}
10961 + exit ;;
10962 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
10963 + echo m68k-milan-mint${UNAME_RELEASE}
10964 + exit ;;
10965 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
10966 + echo m68k-hades-mint${UNAME_RELEASE}
10967 + exit ;;
10968 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
10969 + echo m68k-unknown-mint${UNAME_RELEASE}
10970 + exit ;;
10971 + m68k:machten:*:*)
10972 + echo m68k-apple-machten${UNAME_RELEASE}
10973 + exit ;;
10974 + powerpc:machten:*:*)
10975 + echo powerpc-apple-machten${UNAME_RELEASE}
10976 + exit ;;
10977 + RISC*:Mach:*:*)
10978 + echo mips-dec-mach_bsd4.3
10979 + exit ;;
10980 + RISC*:ULTRIX:*:*)
10981 + echo mips-dec-ultrix${UNAME_RELEASE}
10982 + exit ;;
10983 + VAX*:ULTRIX*:*:*)
10984 + echo vax-dec-ultrix${UNAME_RELEASE}
10985 + exit ;;
10986 + 2020:CLIX:*:* | 2430:CLIX:*:*)
10987 + echo clipper-intergraph-clix${UNAME_RELEASE}
10988 + exit ;;
10989 + mips:*:*:UMIPS | mips:*:*:RISCos)
10990 + eval $set_cc_for_build
10991 + sed 's/^ //' << EOF >$dummy.c
10992 +#ifdef __cplusplus
10993 +#include <stdio.h> /* for printf() prototype */
10994 + int main (int argc, char *argv[]) {
10995 +#else
10996 + int main (argc, argv) int argc; char *argv[]; {
10997 +#endif
10998 + #if defined (host_mips) && defined (MIPSEB)
10999 + #if defined (SYSTYPE_SYSV)
11000 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
11001 + #endif
11002 + #if defined (SYSTYPE_SVR4)
11003 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
11004 + #endif
11005 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
11006 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
11007 + #endif
11008 + #endif
11009 + exit (-1);
11011 +EOF
11012 + $CC_FOR_BUILD -o $dummy $dummy.c &&
11013 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
11014 + SYSTEM_NAME=`$dummy $dummyarg` &&
11015 + { echo "$SYSTEM_NAME"; exit; }
11016 + echo mips-mips-riscos${UNAME_RELEASE}
11017 + exit ;;
11018 + Motorola:PowerMAX_OS:*:*)
11019 + echo powerpc-motorola-powermax
11020 + exit ;;
11021 + Motorola:*:4.3:PL8-*)
11022 + echo powerpc-harris-powermax
11023 + exit ;;
11024 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
11025 + echo powerpc-harris-powermax
11026 + exit ;;
11027 + Night_Hawk:Power_UNIX:*:*)
11028 + echo powerpc-harris-powerunix
11029 + exit ;;
11030 + m88k:CX/UX:7*:*)
11031 + echo m88k-harris-cxux7
11032 + exit ;;
11033 + m88k:*:4*:R4*)
11034 + echo m88k-motorola-sysv4
11035 + exit ;;
11036 + m88k:*:3*:R3*)
11037 + echo m88k-motorola-sysv3
11038 + exit ;;
11039 + AViiON:dgux:*:*)
11040 + # DG/UX returns AViiON for all architectures
11041 + UNAME_PROCESSOR=`/usr/bin/uname -p`
11042 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
11043 + then
11044 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
11045 + [ ${TARGET_BINARY_INTERFACE}x = x ]
11046 + then
11047 + echo m88k-dg-dgux${UNAME_RELEASE}
11048 + else
11049 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
11050 + fi
11051 + else
11052 + echo i586-dg-dgux${UNAME_RELEASE}
11053 + fi
11054 + exit ;;
11055 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
11056 + echo m88k-dolphin-sysv3
11057 + exit ;;
11058 + M88*:*:R3*:*)
11059 + # Delta 88k system running SVR3
11060 + echo m88k-motorola-sysv3
11061 + exit ;;
11062 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
11063 + echo m88k-tektronix-sysv3
11064 + exit ;;
11065 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
11066 + echo m68k-tektronix-bsd
11067 + exit ;;
11068 + *:IRIX*:*:*)
11069 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
11070 + exit ;;
11071 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
11072 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
11073 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
11074 + i*86:AIX:*:*)
11075 + echo i386-ibm-aix
11076 + exit ;;
11077 + ia64:AIX:*:*)
11078 + if [ -x /usr/bin/oslevel ] ; then
11079 + IBM_REV=`/usr/bin/oslevel`
11080 + else
11081 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
11082 + fi
11083 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
11084 + exit ;;
11085 + *:AIX:2:3)
11086 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
11087 + eval $set_cc_for_build
11088 + sed 's/^ //' << EOF >$dummy.c
11089 + #include <sys/systemcfg.h>
11091 + main()
11093 + if (!__power_pc())
11094 + exit(1);
11095 + puts("powerpc-ibm-aix3.2.5");
11096 + exit(0);
11098 +EOF
11099 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
11100 + then
11101 + echo "$SYSTEM_NAME"
11102 + else
11103 + echo rs6000-ibm-aix3.2.5
11104 + fi
11105 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
11106 + echo rs6000-ibm-aix3.2.4
11107 + else
11108 + echo rs6000-ibm-aix3.2
11109 + fi
11110 + exit ;;
11111 + *:AIX:*:[45])
11112 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
11113 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
11114 + IBM_ARCH=rs6000
11115 + else
11116 + IBM_ARCH=powerpc
11117 + fi
11118 + if [ -x /usr/bin/oslevel ] ; then
11119 + IBM_REV=`/usr/bin/oslevel`
11120 + else
11121 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
11122 + fi
11123 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
11124 + exit ;;
11125 + *:AIX:*:*)
11126 + echo rs6000-ibm-aix
11127 + exit ;;
11128 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
11129 + echo romp-ibm-bsd4.4
11130 + exit ;;
11131 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
11132 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
11133 + exit ;; # report: romp-ibm BSD 4.3
11134 + *:BOSX:*:*)
11135 + echo rs6000-bull-bosx
11136 + exit ;;
11137 + DPX/2?00:B.O.S.:*:*)
11138 + echo m68k-bull-sysv3
11139 + exit ;;
11140 + 9000/[34]??:4.3bsd:1.*:*)
11141 + echo m68k-hp-bsd
11142 + exit ;;
11143 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
11144 + echo m68k-hp-bsd4.4
11145 + exit ;;
11146 + 9000/[34678]??:HP-UX:*:*)
11147 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
11148 + case "${UNAME_MACHINE}" in
11149 + 9000/31? ) HP_ARCH=m68000 ;;
11150 + 9000/[34]?? ) HP_ARCH=m68k ;;
11151 + 9000/[678][0-9][0-9])
11152 + if [ -x /usr/bin/getconf ]; then
11153 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
11154 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
11155 + case "${sc_cpu_version}" in
11156 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
11157 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
11158 + 532) # CPU_PA_RISC2_0
11159 + case "${sc_kernel_bits}" in
11160 + 32) HP_ARCH="hppa2.0n" ;;
11161 + 64) HP_ARCH="hppa2.0w" ;;
11162 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
11163 + esac ;;
11164 + esac
11165 + fi
11166 + if [ "${HP_ARCH}" = "" ]; then
11167 + eval $set_cc_for_build
11168 + sed 's/^ //' << EOF >$dummy.c
11170 + #define _HPUX_SOURCE
11171 + #include <stdlib.h>
11172 + #include <unistd.h>
11174 + int main ()
11176 + #if defined(_SC_KERNEL_BITS)
11177 + long bits = sysconf(_SC_KERNEL_BITS);
11178 + #endif
11179 + long cpu = sysconf (_SC_CPU_VERSION);
11181 + switch (cpu)
11183 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
11184 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
11185 + case CPU_PA_RISC2_0:
11186 + #if defined(_SC_KERNEL_BITS)
11187 + switch (bits)
11189 + case 64: puts ("hppa2.0w"); break;
11190 + case 32: puts ("hppa2.0n"); break;
11191 + default: puts ("hppa2.0"); break;
11192 + } break;
11193 + #else /* !defined(_SC_KERNEL_BITS) */
11194 + puts ("hppa2.0"); break;
11195 + #endif
11196 + default: puts ("hppa1.0"); break;
11198 + exit (0);
11200 +EOF
11201 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
11202 + test -z "$HP_ARCH" && HP_ARCH=hppa
11203 + fi ;;
11204 + esac
11205 + if [ ${HP_ARCH} = "hppa2.0w" ]
11206 + then
11207 + eval $set_cc_for_build
11209 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
11210 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
11211 + # generating 64-bit code. GNU and HP use different nomenclature:
11213 + # $ CC_FOR_BUILD=cc ./config.guess
11214 + # => hppa2.0w-hp-hpux11.23
11215 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
11216 + # => hppa64-hp-hpux11.23
11218 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
11219 + grep __LP64__ >/dev/null
11220 + then
11221 + HP_ARCH="hppa2.0w"
11222 + else
11223 + HP_ARCH="hppa64"
11224 + fi
11225 + fi
11226 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
11227 + exit ;;
11228 + ia64:HP-UX:*:*)
11229 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
11230 + echo ia64-hp-hpux${HPUX_REV}
11231 + exit ;;
11232 + 3050*:HI-UX:*:*)
11233 + eval $set_cc_for_build
11234 + sed 's/^ //' << EOF >$dummy.c
11235 + #include <unistd.h>
11236 + int
11237 + main ()
11239 + long cpu = sysconf (_SC_CPU_VERSION);
11240 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
11241 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
11242 + results, however. */
11243 + if (CPU_IS_PA_RISC (cpu))
11245 + switch (cpu)
11247 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
11248 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
11249 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
11250 + default: puts ("hppa-hitachi-hiuxwe2"); break;
11253 + else if (CPU_IS_HP_MC68K (cpu))
11254 + puts ("m68k-hitachi-hiuxwe2");
11255 + else puts ("unknown-hitachi-hiuxwe2");
11256 + exit (0);
11258 +EOF
11259 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
11260 + { echo "$SYSTEM_NAME"; exit; }
11261 + echo unknown-hitachi-hiuxwe2
11262 + exit ;;
11263 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
11264 + echo hppa1.1-hp-bsd
11265 + exit ;;
11266 + 9000/8??:4.3bsd:*:*)
11267 + echo hppa1.0-hp-bsd
11268 + exit ;;
11269 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
11270 + echo hppa1.0-hp-mpeix
11271 + exit ;;
11272 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
11273 + echo hppa1.1-hp-osf
11274 + exit ;;
11275 + hp8??:OSF1:*:*)
11276 + echo hppa1.0-hp-osf
11277 + exit ;;
11278 + i*86:OSF1:*:*)
11279 + if [ -x /usr/sbin/sysversion ] ; then
11280 + echo ${UNAME_MACHINE}-unknown-osf1mk
11281 + else
11282 + echo ${UNAME_MACHINE}-unknown-osf1
11283 + fi
11284 + exit ;;
11285 + parisc*:Lites*:*:*)
11286 + echo hppa1.1-hp-lites
11287 + exit ;;
11288 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
11289 + echo c1-convex-bsd
11290 + exit ;;
11291 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
11292 + if getsysinfo -f scalar_acc
11293 + then echo c32-convex-bsd
11294 + else echo c2-convex-bsd
11295 + fi
11296 + exit ;;
11297 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
11298 + echo c34-convex-bsd
11299 + exit ;;
11300 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
11301 + echo c38-convex-bsd
11302 + exit ;;
11303 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
11304 + echo c4-convex-bsd
11305 + exit ;;
11306 + CRAY*Y-MP:*:*:*)
11307 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11308 + exit ;;
11309 + CRAY*[A-Z]90:*:*:*)
11310 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
11311 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
11312 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
11313 + -e 's/\.[^.]*$/.X/'
11314 + exit ;;
11315 + CRAY*TS:*:*:*)
11316 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11317 + exit ;;
11318 + CRAY*T3E:*:*:*)
11319 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11320 + exit ;;
11321 + CRAY*SV1:*:*:*)
11322 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11323 + exit ;;
11324 + *:UNICOS/mp:*:*)
11325 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11326 + exit ;;
11327 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
11328 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
11329 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
11330 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
11331 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
11332 + exit ;;
11333 + 5000:UNIX_System_V:4.*:*)
11334 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
11335 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
11336 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
11337 + exit ;;
11338 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
11339 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
11340 + exit ;;
11341 + sparc*:BSD/OS:*:*)
11342 + echo sparc-unknown-bsdi${UNAME_RELEASE}
11343 + exit ;;
11344 + *:BSD/OS:*:*)
11345 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
11346 + exit ;;
11347 + *:FreeBSD:*:*)
11348 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
11349 + exit ;;
11350 + i*:CYGWIN*:*)
11351 + echo ${UNAME_MACHINE}-pc-cygwin
11352 + exit ;;
11353 + i*:MINGW*:*)
11354 + echo ${UNAME_MACHINE}-pc-mingw32
11355 + exit ;;
11356 + i*:windows32*:*)
11357 + # uname -m includes "-pc" on this system.
11358 + echo ${UNAME_MACHINE}-mingw32
11359 + exit ;;
11360 + i*:PW*:*)
11361 + echo ${UNAME_MACHINE}-pc-pw32
11362 + exit ;;
11363 + x86:Interix*:[34]*)
11364 + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
11365 + exit ;;
11366 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
11367 + echo i${UNAME_MACHINE}-pc-mks
11368 + exit ;;
11369 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
11370 + # How do we know it's Interix rather than the generic POSIX subsystem?
11371 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
11372 + # UNAME_MACHINE based on the output of uname instead of i386?
11373 + echo i586-pc-interix
11374 + exit ;;
11375 + i*:UWIN*:*)
11376 + echo ${UNAME_MACHINE}-pc-uwin
11377 + exit ;;
11378 + amd64:CYGWIN*:*:*)
11379 + echo x86_64-unknown-cygwin
11380 + exit ;;
11381 + p*:CYGWIN*:*)
11382 + echo powerpcle-unknown-cygwin
11383 + exit ;;
11384 + prep*:SunOS:5.*:*)
11385 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
11386 + exit ;;
11387 + *:GNU:*:*)
11388 + # the GNU system
11389 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
11390 + exit ;;
11391 + *:GNU/*:*:*)
11392 + # other systems with GNU libc and userland
11393 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
11394 + exit ;;
11395 + i*86:Minix:*:*)
11396 + echo ${UNAME_MACHINE}-pc-minix
11397 + exit ;;
11398 + arm*:Linux:*:*)
11399 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11400 + exit ;;
11401 + cris:Linux:*:*)
11402 + echo cris-axis-linux-gnu
11403 + exit ;;
11404 + crisv32:Linux:*:*)
11405 + echo crisv32-axis-linux-gnu
11406 + exit ;;
11407 + frv:Linux:*:*)
11408 + echo frv-unknown-linux-gnu
11409 + exit ;;
11410 + ia64:Linux:*:*)
11411 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11412 + exit ;;
11413 + m32r*:Linux:*:*)
11414 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11415 + exit ;;
11416 + m68*:Linux:*:*)
11417 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11418 + exit ;;
11419 + mips:Linux:*:*)
11420 + eval $set_cc_for_build
11421 + sed 's/^ //' << EOF >$dummy.c
11422 + #undef CPU
11423 + #undef mips
11424 + #undef mipsel
11425 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
11426 + CPU=mipsel
11427 + #else
11428 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
11429 + CPU=mips
11430 + #else
11431 + CPU=
11432 + #endif
11433 + #endif
11434 +EOF
11435 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
11436 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
11437 + ;;
11438 + mips64:Linux:*:*)
11439 + eval $set_cc_for_build
11440 + sed 's/^ //' << EOF >$dummy.c
11441 + #undef CPU
11442 + #undef mips64
11443 + #undef mips64el
11444 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
11445 + CPU=mips64el
11446 + #else
11447 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
11448 + CPU=mips64
11449 + #else
11450 + CPU=
11451 + #endif
11452 + #endif
11453 +EOF
11454 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
11455 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
11456 + ;;
11457 + ppc:Linux:*:*)
11458 + echo powerpc-unknown-linux-gnu
11459 + exit ;;
11460 + ppc64:Linux:*:*)
11461 + echo powerpc64-unknown-linux-gnu
11462 + exit ;;
11463 + alpha:Linux:*:*)
11464 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
11465 + EV5) UNAME_MACHINE=alphaev5 ;;
11466 + EV56) UNAME_MACHINE=alphaev56 ;;
11467 + PCA56) UNAME_MACHINE=alphapca56 ;;
11468 + PCA57) UNAME_MACHINE=alphapca56 ;;
11469 + EV6) UNAME_MACHINE=alphaev6 ;;
11470 + EV67) UNAME_MACHINE=alphaev67 ;;
11471 + EV68*) UNAME_MACHINE=alphaev68 ;;
11472 + esac
11473 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
11474 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
11475 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
11476 + exit ;;
11477 + parisc:Linux:*:* | hppa:Linux:*:*)
11478 + # Look for CPU level
11479 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
11480 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
11481 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
11482 + *) echo hppa-unknown-linux-gnu ;;
11483 + esac
11484 + exit ;;
11485 + parisc64:Linux:*:* | hppa64:Linux:*:*)
11486 + echo hppa64-unknown-linux-gnu
11487 + exit ;;
11488 + s390:Linux:*:* | s390x:Linux:*:*)
11489 + echo ${UNAME_MACHINE}-ibm-linux
11490 + exit ;;
11491 + sh64*:Linux:*:*)
11492 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11493 + exit ;;
11494 + sh*:Linux:*:*)
11495 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11496 + exit ;;
11497 + sparc:Linux:*:* | sparc64:Linux:*:*)
11498 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11499 + exit ;;
11500 + x86_64:Linux:*:*)
11501 + echo x86_64-unknown-linux-gnu
11502 + exit ;;
11503 + i*86:Linux:*:*)
11504 + # The BFD linker knows what the default object file format is, so
11505 + # first see if it will tell us. cd to the root directory to prevent
11506 + # problems with other programs or directories called `ld' in the path.
11507 + # Set LC_ALL=C to ensure ld outputs messages in English.
11508 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
11509 + | sed -ne '/supported targets:/!d
11510 + s/[ ][ ]*/ /g
11511 + s/.*supported targets: *//
11512 + s/ .*//
11513 + p'`
11514 + case "$ld_supported_targets" in
11515 + elf32-i386)
11516 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
11517 + ;;
11518 + a.out-i386-linux)
11519 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
11520 + exit ;;
11521 + coff-i386)
11522 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
11523 + exit ;;
11524 + "")
11525 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
11526 + # one that does not give us useful --help.
11527 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
11528 + exit ;;
11529 + esac
11530 + # Determine whether the default compiler is a.out or elf
11531 + eval $set_cc_for_build
11532 + sed 's/^ //' << EOF >$dummy.c
11533 + #include <features.h>
11534 + #ifdef __ELF__
11535 + # ifdef __GLIBC__
11536 + # if __GLIBC__ >= 2
11537 + LIBC=gnu
11538 + # else
11539 + LIBC=gnulibc1
11540 + # endif
11541 + # else
11542 + LIBC=gnulibc1
11543 + # endif
11544 + #else
11545 + #ifdef __INTEL_COMPILER
11546 + LIBC=gnu
11547 + #else
11548 + LIBC=gnuaout
11549 + #endif
11550 + #endif
11551 + #ifdef __dietlibc__
11552 + LIBC=dietlibc
11553 + #endif
11554 +EOF
11555 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
11556 + test x"${LIBC}" != x && {
11557 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
11558 + exit
11560 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
11561 + ;;
11562 + i*86:DYNIX/ptx:4*:*)
11563 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
11564 + # earlier versions are messed up and put the nodename in both
11565 + # sysname and nodename.
11566 + echo i386-sequent-sysv4
11567 + exit ;;
11568 + i*86:UNIX_SV:4.2MP:2.*)
11569 + # Unixware is an offshoot of SVR4, but it has its own version
11570 + # number series starting with 2...
11571 + # I am not positive that other SVR4 systems won't match this,
11572 + # I just have to hope. -- rms.
11573 + # Use sysv4.2uw... so that sysv4* matches it.
11574 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
11575 + exit ;;
11576 + i*86:OS/2:*:*)
11577 + # If we were able to find `uname', then EMX Unix compatibility
11578 + # is probably installed.
11579 + echo ${UNAME_MACHINE}-pc-os2-emx
11580 + exit ;;
11581 + i*86:XTS-300:*:STOP)
11582 + echo ${UNAME_MACHINE}-unknown-stop
11583 + exit ;;
11584 + i*86:atheos:*:*)
11585 + echo ${UNAME_MACHINE}-unknown-atheos
11586 + exit ;;
11587 + i*86:syllable:*:*)
11588 + echo ${UNAME_MACHINE}-pc-syllable
11589 + exit ;;
11590 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
11591 + echo i386-unknown-lynxos${UNAME_RELEASE}
11592 + exit ;;
11593 + i*86:*DOS:*:*)
11594 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
11595 + exit ;;
11596 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
11597 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
11598 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
11599 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
11600 + else
11601 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
11602 + fi
11603 + exit ;;
11604 + i*86:*:5:[678]*)
11605 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
11606 + case `/bin/uname -X | grep "^Machine"` in
11607 + *486*) UNAME_MACHINE=i486 ;;
11608 + *Pentium) UNAME_MACHINE=i586 ;;
11609 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
11610 + esac
11611 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
11612 + exit ;;
11613 + i*86:*:3.2:*)
11614 + if test -f /usr/options/cb.name; then
11615 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
11616 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
11617 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
11618 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
11619 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
11620 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
11621 + && UNAME_MACHINE=i586
11622 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
11623 + && UNAME_MACHINE=i686
11624 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
11625 + && UNAME_MACHINE=i686
11626 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
11627 + else
11628 + echo ${UNAME_MACHINE}-pc-sysv32
11629 + fi
11630 + exit ;;
11631 + pc:*:*:*)
11632 + # Left here for compatibility:
11633 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
11634 + # the processor, so we play safe by assuming i386.
11635 + echo i386-pc-msdosdjgpp
11636 + exit ;;
11637 + Intel:Mach:3*:*)
11638 + echo i386-pc-mach3
11639 + exit ;;
11640 + paragon:*:*:*)
11641 + echo i860-intel-osf1
11642 + exit ;;
11643 + i860:*:4.*:*) # i860-SVR4
11644 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
11645 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
11646 + else # Add other i860-SVR4 vendors below as they are discovered.
11647 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
11648 + fi
11649 + exit ;;
11650 + mini*:CTIX:SYS*5:*)
11651 + # "miniframe"
11652 + echo m68010-convergent-sysv
11653 + exit ;;
11654 + mc68k:UNIX:SYSTEM5:3.51m)
11655 + echo m68k-convergent-sysv
11656 + exit ;;
11657 + M680?0:D-NIX:5.3:*)
11658 + echo m68k-diab-dnix
11659 + exit ;;
11660 + M68*:*:R3V[5678]*:*)
11661 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11662 + 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)
11663 + OS_REL=''
11664 + test -r /etc/.relid \
11665 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11666 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11667 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
11668 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
11669 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11670 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11671 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11672 + && { echo i486-ncr-sysv4; exit; } ;;
11673 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
11674 + echo m68k-unknown-lynxos${UNAME_RELEASE}
11675 + exit ;;
11676 + mc68030:UNIX_System_V:4.*:*)
11677 + echo m68k-atari-sysv4
11678 + exit ;;
11679 + TSUNAMI:LynxOS:2.*:*)
11680 + echo sparc-unknown-lynxos${UNAME_RELEASE}
11681 + exit ;;
11682 + rs6000:LynxOS:2.*:*)
11683 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
11684 + exit ;;
11685 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
11686 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
11687 + exit ;;
11688 + SM[BE]S:UNIX_SV:*:*)
11689 + echo mips-dde-sysv${UNAME_RELEASE}
11690 + exit ;;
11691 + RM*:ReliantUNIX-*:*:*)
11692 + echo mips-sni-sysv4
11693 + exit ;;
11694 + RM*:SINIX-*:*:*)
11695 + echo mips-sni-sysv4
11696 + exit ;;
11697 + *:SINIX-*:*:*)
11698 + if uname -p 2>/dev/null >/dev/null ; then
11699 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
11700 + echo ${UNAME_MACHINE}-sni-sysv4
11701 + else
11702 + echo ns32k-sni-sysv
11703 + fi
11704 + exit ;;
11705 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
11706 + # says <Richard.M.Bartel@ccMail.Census.GOV>
11707 + echo i586-unisys-sysv4
11708 + exit ;;
11709 + *:UNIX_System_V:4*:FTX*)
11710 + # From Gerald Hewes <hewes@openmarket.com>.
11711 + # How about differentiating between stratus architectures? -djm
11712 + echo hppa1.1-stratus-sysv4
11713 + exit ;;
11714 + *:*:*:FTX*)
11715 + # From seanf@swdc.stratus.com.
11716 + echo i860-stratus-sysv4
11717 + exit ;;
11718 + i*86:VOS:*:*)
11719 + # From Paul.Green@stratus.com.
11720 + echo ${UNAME_MACHINE}-stratus-vos
11721 + exit ;;
11722 + *:VOS:*:*)
11723 + # From Paul.Green@stratus.com.
11724 + echo hppa1.1-stratus-vos
11725 + exit ;;
11726 + mc68*:A/UX:*:*)
11727 + echo m68k-apple-aux${UNAME_RELEASE}
11728 + exit ;;
11729 + news*:NEWS-OS:6*:*)
11730 + echo mips-sony-newsos6
11731 + exit ;;
11732 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11733 + if [ -d /usr/nec ]; then
11734 + echo mips-nec-sysv${UNAME_RELEASE}
11735 + else
11736 + echo mips-unknown-sysv${UNAME_RELEASE}
11737 + fi
11738 + exit ;;
11739 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11740 + echo powerpc-be-beos
11741 + exit ;;
11742 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
11743 + echo powerpc-apple-beos
11744 + exit ;;
11745 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
11746 + echo i586-pc-beos
11747 + exit ;;
11748 + SX-4:SUPER-UX:*:*)
11749 + echo sx4-nec-superux${UNAME_RELEASE}
11750 + exit ;;
11751 + SX-5:SUPER-UX:*:*)
11752 + echo sx5-nec-superux${UNAME_RELEASE}
11753 + exit ;;
11754 + SX-6:SUPER-UX:*:*)
11755 + echo sx6-nec-superux${UNAME_RELEASE}
11756 + exit ;;
11757 + Power*:Rhapsody:*:*)
11758 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
11759 + exit ;;
11760 + *:Rhapsody:*:*)
11761 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
11762 + exit ;;
11763 + *:Darwin:*:*)
11764 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
11765 + case $UNAME_PROCESSOR in
11766 + *86) UNAME_PROCESSOR=i686 ;;
11767 + unknown) UNAME_PROCESSOR=powerpc ;;
11768 + esac
11769 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
11770 + exit ;;
11771 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
11772 + UNAME_PROCESSOR=`uname -p`
11773 + if test "$UNAME_PROCESSOR" = "x86"; then
11774 + UNAME_PROCESSOR=i386
11775 + UNAME_MACHINE=pc
11776 + fi
11777 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
11778 + exit ;;
11779 + *:QNX:*:4*)
11780 + echo i386-pc-qnx
11781 + exit ;;
11782 + NSE-?:NONSTOP_KERNEL:*:*)
11783 + echo nse-tandem-nsk${UNAME_RELEASE}
11784 + exit ;;
11785 + NSR-?:NONSTOP_KERNEL:*:*)
11786 + echo nsr-tandem-nsk${UNAME_RELEASE}
11787 + exit ;;
11788 + *:NonStop-UX:*:*)
11789 + echo mips-compaq-nonstopux
11790 + exit ;;
11791 + BS2000:POSIX*:*:*)
11792 + echo bs2000-siemens-sysv
11793 + exit ;;
11794 + DS/*:UNIX_System_V:*:*)
11795 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
11796 + exit ;;
11797 + *:Plan9:*:*)
11798 + # "uname -m" is not consistent, so use $cputype instead. 386
11799 + # is converted to i386 for consistency with other x86
11800 + # operating systems.
11801 + if test "$cputype" = "386"; then
11802 + UNAME_MACHINE=i386
11803 + else
11804 + UNAME_MACHINE="$cputype"
11805 + fi
11806 + echo ${UNAME_MACHINE}-unknown-plan9
11807 + exit ;;
11808 + *:TOPS-10:*:*)
11809 + echo pdp10-unknown-tops10
11810 + exit ;;
11811 + *:TENEX:*:*)
11812 + echo pdp10-unknown-tenex
11813 + exit ;;
11814 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
11815 + echo pdp10-dec-tops20
11816 + exit ;;
11817 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
11818 + echo pdp10-xkl-tops20
11819 + exit ;;
11820 + *:TOPS-20:*:*)
11821 + echo pdp10-unknown-tops20
11822 + exit ;;
11823 + *:ITS:*:*)
11824 + echo pdp10-unknown-its
11825 + exit ;;
11826 + SEI:*:*:SEIUX)
11827 + echo mips-sei-seiux${UNAME_RELEASE}
11828 + exit ;;
11829 + *:DragonFly:*:*)
11830 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
11831 + exit ;;
11832 + *:*VMS:*:*)
11833 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
11834 + case "${UNAME_MACHINE}" in
11835 + A*) echo alpha-dec-vms ; exit ;;
11836 + I*) echo ia64-dec-vms ; exit ;;
11837 + V*) echo vax-dec-vms ; exit ;;
11838 + esac ;;
11839 + *:XENIX:*:SysV)
11840 + echo i386-pc-xenix
11841 + exit ;;
11842 + i*86:skyos:*:*)
11843 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
11844 + exit ;;
11845 +esac
11847 +#echo '(No uname command or uname output not recognized.)' 1>&2
11848 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
11850 +eval $set_cc_for_build
11851 +cat >$dummy.c <<EOF
11852 +#ifdef _SEQUENT_
11853 +# include <sys/types.h>
11854 +# include <sys/utsname.h>
11855 +#endif
11856 +main ()
11858 +#if defined (sony)
11859 +#if defined (MIPSEB)
11860 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
11861 + I don't know.... */
11862 + printf ("mips-sony-bsd\n"); exit (0);
11863 +#else
11864 +#include <sys/param.h>
11865 + printf ("m68k-sony-newsos%s\n",
11866 +#ifdef NEWSOS4
11867 + "4"
11868 +#else
11869 + ""
11870 +#endif
11871 + ); exit (0);
11872 +#endif
11873 +#endif
11875 +#if defined (__arm) && defined (__acorn) && defined (__unix)
11876 + printf ("arm-acorn-riscix\n"); exit (0);
11877 +#endif
11879 +#if defined (hp300) && !defined (hpux)
11880 + printf ("m68k-hp-bsd\n"); exit (0);
11881 +#endif
11883 +#if defined (NeXT)
11884 +#if !defined (__ARCHITECTURE__)
11885 +#define __ARCHITECTURE__ "m68k"
11886 +#endif
11887 + int version;
11888 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
11889 + if (version < 4)
11890 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
11891 + else
11892 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
11893 + exit (0);
11894 +#endif
11896 +#if defined (MULTIMAX) || defined (n16)
11897 +#if defined (UMAXV)
11898 + printf ("ns32k-encore-sysv\n"); exit (0);
11899 +#else
11900 +#if defined (CMU)
11901 + printf ("ns32k-encore-mach\n"); exit (0);
11902 +#else
11903 + printf ("ns32k-encore-bsd\n"); exit (0);
11904 +#endif
11905 +#endif
11906 +#endif
11908 +#if defined (__386BSD__)
11909 + printf ("i386-pc-bsd\n"); exit (0);
11910 +#endif
11912 +#if defined (sequent)
11913 +#if defined (i386)
11914 + printf ("i386-sequent-dynix\n"); exit (0);
11915 +#endif
11916 +#if defined (ns32000)
11917 + printf ("ns32k-sequent-dynix\n"); exit (0);
11918 +#endif
11919 +#endif
11921 +#if defined (_SEQUENT_)
11922 + struct utsname un;
11924 + uname(&un);
11926 + if (strncmp(un.version, "V2", 2) == 0) {
11927 + printf ("i386-sequent-ptx2\n"); exit (0);
11929 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
11930 + printf ("i386-sequent-ptx1\n"); exit (0);
11932 + printf ("i386-sequent-ptx\n"); exit (0);
11934 +#endif
11936 +#if defined (vax)
11937 +# if !defined (ultrix)
11938 +# include <sys/param.h>
11939 +# if defined (BSD)
11940 +# if BSD == 43
11941 + printf ("vax-dec-bsd4.3\n"); exit (0);
11942 +# else
11943 +# if BSD == 199006
11944 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
11945 +# else
11946 + printf ("vax-dec-bsd\n"); exit (0);
11947 +# endif
11948 +# endif
11949 +# else
11950 + printf ("vax-dec-bsd\n"); exit (0);
11951 +# endif
11952 +# else
11953 + printf ("vax-dec-ultrix\n"); exit (0);
11954 +# endif
11955 +#endif
11957 +#if defined (alliant) && defined (i860)
11958 + printf ("i860-alliant-bsd\n"); exit (0);
11959 +#endif
11961 + exit (1);
11963 +EOF
11965 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
11966 + { echo "$SYSTEM_NAME"; exit; }
11968 +# Apollos put the system type in the environment.
11970 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
11972 +# Convex versions that predate uname can use getsysinfo(1)
11974 +if [ -x /usr/convex/getsysinfo ]
11975 +then
11976 + case `getsysinfo -f cpu_type` in
11977 + c1*)
11978 + echo c1-convex-bsd
11979 + exit ;;
11980 + c2*)
11981 + if getsysinfo -f scalar_acc
11982 + then echo c32-convex-bsd
11983 + else echo c2-convex-bsd
11984 + fi
11985 + exit ;;
11986 + c34*)
11987 + echo c34-convex-bsd
11988 + exit ;;
11989 + c38*)
11990 + echo c38-convex-bsd
11991 + exit ;;
11992 + c4*)
11993 + echo c4-convex-bsd
11994 + exit ;;
11995 + esac
11998 +cat >&2 <<EOF
11999 +$0: unable to guess system type
12001 +This script, last modified $timestamp, has failed to recognize
12002 +the operating system you are using. It is advised that you
12003 +download the most up to date version of the config scripts from
12005 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
12006 +and
12007 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
12009 +If the version you run ($0) is already up to date, please
12010 +send the following data and any information you think might be
12011 +pertinent to <config-patches@gnu.org> in order to provide the needed
12012 +information to handle your system.
12014 +config.guess timestamp = $timestamp
12016 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
12017 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
12018 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
12019 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
12021 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
12022 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
12024 +hostinfo = `(hostinfo) 2>/dev/null`
12025 +/bin/universe = `(/bin/universe) 2>/dev/null`
12026 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
12027 +/bin/arch = `(/bin/arch) 2>/dev/null`
12028 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
12029 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
12031 +UNAME_MACHINE = ${UNAME_MACHINE}
12032 +UNAME_RELEASE = ${UNAME_RELEASE}
12033 +UNAME_SYSTEM = ${UNAME_SYSTEM}
12034 +UNAME_VERSION = ${UNAME_VERSION}
12035 +EOF
12037 +exit 1
12039 +# Local variables:
12040 +# eval: (add-hook 'write-file-hooks 'time-stamp)
12041 +# time-stamp-start: "timestamp='"
12042 +# time-stamp-format: "%:y-%02m-%02d"
12043 +# time-stamp-end: "'"
12044 +# End:
12045 diff --git a/config/config.sub b/config/config.sub
12046 new file mode 100755
12047 index 0000000..1c366df
12048 --- /dev/null
12049 +++ b/config/config.sub
12050 @@ -0,0 +1,1579 @@
12051 +#! /bin/sh
12052 +# Configuration validation subroutine script.
12053 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
12054 +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
12056 +timestamp='2005-07-08'
12058 +# This file is (in principle) common to ALL GNU software.
12059 +# The presence of a machine in this file suggests that SOME GNU software
12060 +# can handle that machine. It does not imply ALL GNU software can.
12062 +# This file is free software; you can redistribute it and/or modify
12063 +# it under the terms of the GNU General Public License as published by
12064 +# the Free Software Foundation; either version 2 of the License, or
12065 +# (at your option) any later version.
12067 +# This program is distributed in the hope that it will be useful,
12068 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
12069 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12070 +# GNU General Public License for more details.
12072 +# You should have received a copy of the GNU General Public License
12073 +# along with this program; if not, write to the Free Software
12074 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
12075 +# 02110-1301, USA.
12077 +# As a special exception to the GNU General Public License, if you
12078 +# distribute this file as part of a program that contains a
12079 +# configuration script generated by Autoconf, you may include it under
12080 +# the same distribution terms that you use for the rest of that program.
12083 +# Please send patches to <config-patches@gnu.org>. Submit a context
12084 +# diff and a properly formatted ChangeLog entry.
12086 +# Configuration subroutine to validate and canonicalize a configuration type.
12087 +# Supply the specified configuration type as an argument.
12088 +# If it is invalid, we print an error message on stderr and exit with code 1.
12089 +# Otherwise, we print the canonical config type on stdout and succeed.
12091 +# This file is supposed to be the same for all GNU packages
12092 +# and recognize all the CPU types, system types and aliases
12093 +# that are meaningful with *any* GNU software.
12094 +# Each package is responsible for reporting which valid configurations
12095 +# it does not support. The user should be able to distinguish
12096 +# a failure to support a valid configuration from a meaningless
12097 +# configuration.
12099 +# The goal of this file is to map all the various variations of a given
12100 +# machine specification into a single specification in the form:
12101 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
12102 +# or in some cases, the newer four-part form:
12103 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
12104 +# It is wrong to echo any other type of specification.
12106 +me=`echo "$0" | sed -e 's,.*/,,'`
12108 +usage="\
12109 +Usage: $0 [OPTION] CPU-MFR-OPSYS
12110 + $0 [OPTION] ALIAS
12112 +Canonicalize a configuration name.
12114 +Operation modes:
12115 + -h, --help print this help, then exit
12116 + -t, --time-stamp print date of last modification, then exit
12117 + -v, --version print version number, then exit
12119 +Report bugs and patches to <config-patches@gnu.org>."
12121 +version="\
12122 +GNU config.sub ($timestamp)
12124 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
12125 +Free Software Foundation, Inc.
12127 +This is free software; see the source for copying conditions. There is NO
12128 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
12130 +help="
12131 +Try \`$me --help' for more information."
12133 +# Parse command line
12134 +while test $# -gt 0 ; do
12135 + case $1 in
12136 + --time-stamp | --time* | -t )
12137 + echo "$timestamp" ; exit ;;
12138 + --version | -v )
12139 + echo "$version" ; exit ;;
12140 + --help | --h* | -h )
12141 + echo "$usage"; exit ;;
12142 + -- ) # Stop option processing
12143 + shift; break ;;
12144 + - ) # Use stdin as input.
12145 + break ;;
12146 + -* )
12147 + echo "$me: invalid option $1$help"
12148 + exit 1 ;;
12150 + *local*)
12151 + # First pass through any local machine types.
12152 + echo $1
12153 + exit ;;
12155 + * )
12156 + break ;;
12157 + esac
12158 +done
12160 +case $# in
12161 + 0) echo "$me: missing argument$help" >&2
12162 + exit 1;;
12163 + 1) ;;
12164 + *) echo "$me: too many arguments$help" >&2
12165 + exit 1;;
12166 +esac
12168 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
12169 +# Here we must recognize all the valid KERNEL-OS combinations.
12170 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
12171 +case $maybe_os in
12172 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
12173 + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
12174 + os=-$maybe_os
12175 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
12176 + ;;
12177 + *)
12178 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
12179 + if [ $basic_machine != $1 ]
12180 + then os=`echo $1 | sed 's/.*-/-/'`
12181 + else os=; fi
12182 + ;;
12183 +esac
12185 +### Let's recognize common machines as not being operating systems so
12186 +### that things like config.sub decstation-3100 work. We also
12187 +### recognize some manufacturers as not being operating systems, so we
12188 +### can provide default operating systems below.
12189 +case $os in
12190 + -sun*os*)
12191 + # Prevent following clause from handling this invalid input.
12192 + ;;
12193 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
12194 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
12195 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
12196 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
12197 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
12198 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
12199 + -apple | -axis | -knuth | -cray)
12200 + os=
12201 + basic_machine=$1
12202 + ;;
12203 + -sim | -cisco | -oki | -wec | -winbond)
12204 + os=
12205 + basic_machine=$1
12206 + ;;
12207 + -scout)
12208 + ;;
12209 + -wrs)
12210 + os=-vxworks
12211 + basic_machine=$1
12212 + ;;
12213 + -chorusos*)
12214 + os=-chorusos
12215 + basic_machine=$1
12216 + ;;
12217 + -chorusrdb)
12218 + os=-chorusrdb
12219 + basic_machine=$1
12220 + ;;
12221 + -hiux*)
12222 + os=-hiuxwe2
12223 + ;;
12224 + -sco5)
12225 + os=-sco3.2v5
12226 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12227 + ;;
12228 + -sco4)
12229 + os=-sco3.2v4
12230 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12231 + ;;
12232 + -sco3.2.[4-9]*)
12233 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
12234 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12235 + ;;
12236 + -sco3.2v[4-9]*)
12237 + # Don't forget version if it is 3.2v4 or newer.
12238 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12239 + ;;
12240 + -sco*)
12241 + os=-sco3.2v2
12242 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12243 + ;;
12244 + -udk*)
12245 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12246 + ;;
12247 + -isc)
12248 + os=-isc2.2
12249 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12250 + ;;
12251 + -clix*)
12252 + basic_machine=clipper-intergraph
12253 + ;;
12254 + -isc*)
12255 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12256 + ;;
12257 + -lynx*)
12258 + os=-lynxos
12259 + ;;
12260 + -ptx*)
12261 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
12262 + ;;
12263 + -windowsnt*)
12264 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
12265 + ;;
12266 + -psos*)
12267 + os=-psos
12268 + ;;
12269 + -mint | -mint[0-9]*)
12270 + basic_machine=m68k-atari
12271 + os=-mint
12272 + ;;
12273 +esac
12275 +# Decode aliases for certain CPU-COMPANY combinations.
12276 +case $basic_machine in
12277 + # Recognize the basic CPU types without company name.
12278 + # Some are omitted here because they have special meanings below.
12279 + 1750a | 580 \
12280 + | a29k \
12281 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
12282 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
12283 + | am33_2.0 \
12284 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
12285 + | bfin \
12286 + | c4x | clipper \
12287 + | d10v | d30v | dlx | dsp16xx \
12288 + | fr30 | frv \
12289 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
12290 + | i370 | i860 | i960 | ia64 \
12291 + | ip2k | iq2000 \
12292 + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
12293 + | mips | mipsbe | mipseb | mipsel | mipsle \
12294 + | mips16 \
12295 + | mips64 | mips64el \
12296 + | mips64vr | mips64vrel \
12297 + | mips64orion | mips64orionel \
12298 + | mips64vr4100 | mips64vr4100el \
12299 + | mips64vr4300 | mips64vr4300el \
12300 + | mips64vr5000 | mips64vr5000el \
12301 + | mips64vr5900 | mips64vr5900el \
12302 + | mipsisa32 | mipsisa32el \
12303 + | mipsisa32r2 | mipsisa32r2el \
12304 + | mipsisa64 | mipsisa64el \
12305 + | mipsisa64r2 | mipsisa64r2el \
12306 + | mipsisa64sb1 | mipsisa64sb1el \
12307 + | mipsisa64sr71k | mipsisa64sr71kel \
12308 + | mipstx39 | mipstx39el \
12309 + | mn10200 | mn10300 \
12310 + | ms1 \
12311 + | msp430 \
12312 + | ns16k | ns32k \
12313 + | or32 \
12314 + | pdp10 | pdp11 | pj | pjl \
12315 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
12316 + | pyramid \
12317 + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
12318 + | sh64 | sh64le \
12319 + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
12320 + | sparcv8 | sparcv9 | sparcv9b \
12321 + | strongarm \
12322 + | tahoe | thumb | tic4x | tic80 | tron \
12323 + | v850 | v850e \
12324 + | we32k \
12325 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
12326 + | z8k)
12327 + basic_machine=$basic_machine-unknown
12328 + ;;
12329 + m32c)
12330 + basic_machine=$basic_machine-unknown
12331 + ;;
12332 + m6811 | m68hc11 | m6812 | m68hc12)
12333 + # Motorola 68HC11/12.
12334 + basic_machine=$basic_machine-unknown
12335 + os=-none
12336 + ;;
12337 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
12338 + ;;
12340 + # We use `pc' rather than `unknown'
12341 + # because (1) that's what they normally are, and
12342 + # (2) the word "unknown" tends to confuse beginning users.
12343 + i*86 | x86_64)
12344 + basic_machine=$basic_machine-pc
12345 + ;;
12346 + # Object if more than one company name word.
12347 + *-*-*)
12348 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
12349 + exit 1
12350 + ;;
12351 + # Recognize the basic CPU types with company name.
12352 + 580-* \
12353 + | a29k-* \
12354 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
12355 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
12356 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
12357 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
12358 + | avr-* \
12359 + | bfin-* | bs2000-* \
12360 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
12361 + | clipper-* | craynv-* | cydra-* \
12362 + | d10v-* | d30v-* | dlx-* \
12363 + | elxsi-* \
12364 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
12365 + | h8300-* | h8500-* \
12366 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
12367 + | i*86-* | i860-* | i960-* | ia64-* \
12368 + | ip2k-* | iq2000-* \
12369 + | m32r-* | m32rle-* \
12370 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
12371 + | m88110-* | m88k-* | maxq-* | mcore-* \
12372 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
12373 + | mips16-* \
12374 + | mips64-* | mips64el-* \
12375 + | mips64vr-* | mips64vrel-* \
12376 + | mips64orion-* | mips64orionel-* \
12377 + | mips64vr4100-* | mips64vr4100el-* \
12378 + | mips64vr4300-* | mips64vr4300el-* \
12379 + | mips64vr5000-* | mips64vr5000el-* \
12380 + | mips64vr5900-* | mips64vr5900el-* \
12381 + | mipsisa32-* | mipsisa32el-* \
12382 + | mipsisa32r2-* | mipsisa32r2el-* \
12383 + | mipsisa64-* | mipsisa64el-* \
12384 + | mipsisa64r2-* | mipsisa64r2el-* \
12385 + | mipsisa64sb1-* | mipsisa64sb1el-* \
12386 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
12387 + | mipstx39-* | mipstx39el-* \
12388 + | mmix-* \
12389 + | ms1-* \
12390 + | msp430-* \
12391 + | none-* | np1-* | ns16k-* | ns32k-* \
12392 + | orion-* \
12393 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
12394 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
12395 + | pyramid-* \
12396 + | romp-* | rs6000-* \
12397 + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
12398 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
12399 + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
12400 + | sparclite-* \
12401 + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
12402 + | tahoe-* | thumb-* \
12403 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
12404 + | tron-* \
12405 + | v850-* | v850e-* | vax-* \
12406 + | we32k-* \
12407 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
12408 + | xstormy16-* | xtensa-* \
12409 + | ymp-* \
12410 + | z8k-*)
12411 + ;;
12412 + m32c-*)
12413 + ;;
12414 + # Recognize the various machine names and aliases which stand
12415 + # for a CPU type and a company and sometimes even an OS.
12416 + 386bsd)
12417 + basic_machine=i386-unknown
12418 + os=-bsd
12419 + ;;
12420 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
12421 + basic_machine=m68000-att
12422 + ;;
12423 + 3b*)
12424 + basic_machine=we32k-att
12425 + ;;
12426 + a29khif)
12427 + basic_machine=a29k-amd
12428 + os=-udi
12429 + ;;
12430 + abacus)
12431 + basic_machine=abacus-unknown
12432 + ;;
12433 + adobe68k)
12434 + basic_machine=m68010-adobe
12435 + os=-scout
12436 + ;;
12437 + alliant | fx80)
12438 + basic_machine=fx80-alliant
12439 + ;;
12440 + altos | altos3068)
12441 + basic_machine=m68k-altos
12442 + ;;
12443 + am29k)
12444 + basic_machine=a29k-none
12445 + os=-bsd
12446 + ;;
12447 + amd64)
12448 + basic_machine=x86_64-pc
12449 + ;;
12450 + amd64-*)
12451 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
12452 + ;;
12453 + amdahl)
12454 + basic_machine=580-amdahl
12455 + os=-sysv
12456 + ;;
12457 + amiga | amiga-*)
12458 + basic_machine=m68k-unknown
12459 + ;;
12460 + amigaos | amigados)
12461 + basic_machine=m68k-unknown
12462 + os=-amigaos
12463 + ;;
12464 + amigaunix | amix)
12465 + basic_machine=m68k-unknown
12466 + os=-sysv4
12467 + ;;
12468 + apollo68)
12469 + basic_machine=m68k-apollo
12470 + os=-sysv
12471 + ;;
12472 + apollo68bsd)
12473 + basic_machine=m68k-apollo
12474 + os=-bsd
12475 + ;;
12476 + aux)
12477 + basic_machine=m68k-apple
12478 + os=-aux
12479 + ;;
12480 + balance)
12481 + basic_machine=ns32k-sequent
12482 + os=-dynix
12483 + ;;
12484 + c90)
12485 + basic_machine=c90-cray
12486 + os=-unicos
12487 + ;;
12488 + convex-c1)
12489 + basic_machine=c1-convex
12490 + os=-bsd
12491 + ;;
12492 + convex-c2)
12493 + basic_machine=c2-convex
12494 + os=-bsd
12495 + ;;
12496 + convex-c32)
12497 + basic_machine=c32-convex
12498 + os=-bsd
12499 + ;;
12500 + convex-c34)
12501 + basic_machine=c34-convex
12502 + os=-bsd
12503 + ;;
12504 + convex-c38)
12505 + basic_machine=c38-convex
12506 + os=-bsd
12507 + ;;
12508 + cray | j90)
12509 + basic_machine=j90-cray
12510 + os=-unicos
12511 + ;;
12512 + craynv)
12513 + basic_machine=craynv-cray
12514 + os=-unicosmp
12515 + ;;
12516 + cr16c)
12517 + basic_machine=cr16c-unknown
12518 + os=-elf
12519 + ;;
12520 + crds | unos)
12521 + basic_machine=m68k-crds
12522 + ;;
12523 + crisv32 | crisv32-* | etraxfs*)
12524 + basic_machine=crisv32-axis
12525 + ;;
12526 + cris | cris-* | etrax*)
12527 + basic_machine=cris-axis
12528 + ;;
12529 + crx)
12530 + basic_machine=crx-unknown
12531 + os=-elf
12532 + ;;
12533 + da30 | da30-*)
12534 + basic_machine=m68k-da30
12535 + ;;
12536 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
12537 + basic_machine=mips-dec
12538 + ;;
12539 + decsystem10* | dec10*)
12540 + basic_machine=pdp10-dec
12541 + os=-tops10
12542 + ;;
12543 + decsystem20* | dec20*)
12544 + basic_machine=pdp10-dec
12545 + os=-tops20
12546 + ;;
12547 + delta | 3300 | motorola-3300 | motorola-delta \
12548 + | 3300-motorola | delta-motorola)
12549 + basic_machine=m68k-motorola
12550 + ;;
12551 + delta88)
12552 + basic_machine=m88k-motorola
12553 + os=-sysv3
12554 + ;;
12555 + djgpp)
12556 + basic_machine=i586-pc
12557 + os=-msdosdjgpp
12558 + ;;
12559 + dpx20 | dpx20-*)
12560 + basic_machine=rs6000-bull
12561 + os=-bosx
12562 + ;;
12563 + dpx2* | dpx2*-bull)
12564 + basic_machine=m68k-bull
12565 + os=-sysv3
12566 + ;;
12567 + ebmon29k)
12568 + basic_machine=a29k-amd
12569 + os=-ebmon
12570 + ;;
12571 + elxsi)
12572 + basic_machine=elxsi-elxsi
12573 + os=-bsd
12574 + ;;
12575 + encore | umax | mmax)
12576 + basic_machine=ns32k-encore
12577 + ;;
12578 + es1800 | OSE68k | ose68k | ose | OSE)
12579 + basic_machine=m68k-ericsson
12580 + os=-ose
12581 + ;;
12582 + fx2800)
12583 + basic_machine=i860-alliant
12584 + ;;
12585 + genix)
12586 + basic_machine=ns32k-ns
12587 + ;;
12588 + gmicro)
12589 + basic_machine=tron-gmicro
12590 + os=-sysv
12591 + ;;
12592 + go32)
12593 + basic_machine=i386-pc
12594 + os=-go32
12595 + ;;
12596 + h3050r* | hiux*)
12597 + basic_machine=hppa1.1-hitachi
12598 + os=-hiuxwe2
12599 + ;;
12600 + h8300hms)
12601 + basic_machine=h8300-hitachi
12602 + os=-hms
12603 + ;;
12604 + h8300xray)
12605 + basic_machine=h8300-hitachi
12606 + os=-xray
12607 + ;;
12608 + h8500hms)
12609 + basic_machine=h8500-hitachi
12610 + os=-hms
12611 + ;;
12612 + harris)
12613 + basic_machine=m88k-harris
12614 + os=-sysv3
12615 + ;;
12616 + hp300-*)
12617 + basic_machine=m68k-hp
12618 + ;;
12619 + hp300bsd)
12620 + basic_machine=m68k-hp
12621 + os=-bsd
12622 + ;;
12623 + hp300hpux)
12624 + basic_machine=m68k-hp
12625 + os=-hpux
12626 + ;;
12627 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
12628 + basic_machine=hppa1.0-hp
12629 + ;;
12630 + hp9k2[0-9][0-9] | hp9k31[0-9])
12631 + basic_machine=m68000-hp
12632 + ;;
12633 + hp9k3[2-9][0-9])
12634 + basic_machine=m68k-hp
12635 + ;;
12636 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
12637 + basic_machine=hppa1.0-hp
12638 + ;;
12639 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
12640 + basic_machine=hppa1.1-hp
12641 + ;;
12642 + hp9k78[0-9] | hp78[0-9])
12643 + # FIXME: really hppa2.0-hp
12644 + basic_machine=hppa1.1-hp
12645 + ;;
12646 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
12647 + # FIXME: really hppa2.0-hp
12648 + basic_machine=hppa1.1-hp
12649 + ;;
12650 + hp9k8[0-9][13679] | hp8[0-9][13679])
12651 + basic_machine=hppa1.1-hp
12652 + ;;
12653 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
12654 + basic_machine=hppa1.0-hp
12655 + ;;
12656 + hppa-next)
12657 + os=-nextstep3
12658 + ;;
12659 + hppaosf)
12660 + basic_machine=hppa1.1-hp
12661 + os=-osf
12662 + ;;
12663 + hppro)
12664 + basic_machine=hppa1.1-hp
12665 + os=-proelf
12666 + ;;
12667 + i370-ibm* | ibm*)
12668 + basic_machine=i370-ibm
12669 + ;;
12670 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
12671 + i*86v32)
12672 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12673 + os=-sysv32
12674 + ;;
12675 + i*86v4*)
12676 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12677 + os=-sysv4
12678 + ;;
12679 + i*86v)
12680 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12681 + os=-sysv
12682 + ;;
12683 + i*86sol2)
12684 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12685 + os=-solaris2
12686 + ;;
12687 + i386mach)
12688 + basic_machine=i386-mach
12689 + os=-mach
12690 + ;;
12691 + i386-vsta | vsta)
12692 + basic_machine=i386-unknown
12693 + os=-vsta
12694 + ;;
12695 + iris | iris4d)
12696 + basic_machine=mips-sgi
12697 + case $os in
12698 + -irix*)
12699 + ;;
12700 + *)
12701 + os=-irix4
12702 + ;;
12703 + esac
12704 + ;;
12705 + isi68 | isi)
12706 + basic_machine=m68k-isi
12707 + os=-sysv
12708 + ;;
12709 + m88k-omron*)
12710 + basic_machine=m88k-omron
12711 + ;;
12712 + magnum | m3230)
12713 + basic_machine=mips-mips
12714 + os=-sysv
12715 + ;;
12716 + merlin)
12717 + basic_machine=ns32k-utek
12718 + os=-sysv
12719 + ;;
12720 + mingw32)
12721 + basic_machine=i386-pc
12722 + os=-mingw32
12723 + ;;
12724 + miniframe)
12725 + basic_machine=m68000-convergent
12726 + ;;
12727 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
12728 + basic_machine=m68k-atari
12729 + os=-mint
12730 + ;;
12731 + mips3*-*)
12732 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
12733 + ;;
12734 + mips3*)
12735 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
12736 + ;;
12737 + monitor)
12738 + basic_machine=m68k-rom68k
12739 + os=-coff
12740 + ;;
12741 + morphos)
12742 + basic_machine=powerpc-unknown
12743 + os=-morphos
12744 + ;;
12745 + msdos)
12746 + basic_machine=i386-pc
12747 + os=-msdos
12748 + ;;
12749 + mvs)
12750 + basic_machine=i370-ibm
12751 + os=-mvs
12752 + ;;
12753 + ncr3000)
12754 + basic_machine=i486-ncr
12755 + os=-sysv4
12756 + ;;
12757 + netbsd386)
12758 + basic_machine=i386-unknown
12759 + os=-netbsd
12760 + ;;
12761 + netwinder)
12762 + basic_machine=armv4l-rebel
12763 + os=-linux
12764 + ;;
12765 + news | news700 | news800 | news900)
12766 + basic_machine=m68k-sony
12767 + os=-newsos
12768 + ;;
12769 + news1000)
12770 + basic_machine=m68030-sony
12771 + os=-newsos
12772 + ;;
12773 + news-3600 | risc-news)
12774 + basic_machine=mips-sony
12775 + os=-newsos
12776 + ;;
12777 + necv70)
12778 + basic_machine=v70-nec
12779 + os=-sysv
12780 + ;;
12781 + next | m*-next )
12782 + basic_machine=m68k-next
12783 + case $os in
12784 + -nextstep* )
12785 + ;;
12786 + -ns2*)
12787 + os=-nextstep2
12788 + ;;
12789 + *)
12790 + os=-nextstep3
12791 + ;;
12792 + esac
12793 + ;;
12794 + nh3000)
12795 + basic_machine=m68k-harris
12796 + os=-cxux
12797 + ;;
12798 + nh[45]000)
12799 + basic_machine=m88k-harris
12800 + os=-cxux
12801 + ;;
12802 + nindy960)
12803 + basic_machine=i960-intel
12804 + os=-nindy
12805 + ;;
12806 + mon960)
12807 + basic_machine=i960-intel
12808 + os=-mon960
12809 + ;;
12810 + nonstopux)
12811 + basic_machine=mips-compaq
12812 + os=-nonstopux
12813 + ;;
12814 + np1)
12815 + basic_machine=np1-gould
12816 + ;;
12817 + nsr-tandem)
12818 + basic_machine=nsr-tandem
12819 + ;;
12820 + op50n-* | op60c-*)
12821 + basic_machine=hppa1.1-oki
12822 + os=-proelf
12823 + ;;
12824 + openrisc | openrisc-*)
12825 + basic_machine=or32-unknown
12826 + ;;
12827 + os400)
12828 + basic_machine=powerpc-ibm
12829 + os=-os400
12830 + ;;
12831 + OSE68000 | ose68000)
12832 + basic_machine=m68000-ericsson
12833 + os=-ose
12834 + ;;
12835 + os68k)
12836 + basic_machine=m68k-none
12837 + os=-os68k
12838 + ;;
12839 + pa-hitachi)
12840 + basic_machine=hppa1.1-hitachi
12841 + os=-hiuxwe2
12842 + ;;
12843 + paragon)
12844 + basic_machine=i860-intel
12845 + os=-osf
12846 + ;;
12847 + pbd)
12848 + basic_machine=sparc-tti
12849 + ;;
12850 + pbb)
12851 + basic_machine=m68k-tti
12852 + ;;
12853 + pc532 | pc532-*)
12854 + basic_machine=ns32k-pc532
12855 + ;;
12856 + pentium | p5 | k5 | k6 | nexgen | viac3)
12857 + basic_machine=i586-pc
12858 + ;;
12859 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
12860 + basic_machine=i686-pc
12861 + ;;
12862 + pentiumii | pentium2 | pentiumiii | pentium3)
12863 + basic_machine=i686-pc
12864 + ;;
12865 + pentium4)
12866 + basic_machine=i786-pc
12867 + ;;
12868 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
12869 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
12870 + ;;
12871 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
12872 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
12873 + ;;
12874 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
12875 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
12876 + ;;
12877 + pentium4-*)
12878 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
12879 + ;;
12880 + pn)
12881 + basic_machine=pn-gould
12882 + ;;
12883 + power) basic_machine=power-ibm
12884 + ;;
12885 + ppc) basic_machine=powerpc-unknown
12886 + ;;
12887 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
12888 + ;;
12889 + ppcle | powerpclittle | ppc-le | powerpc-little)
12890 + basic_machine=powerpcle-unknown
12891 + ;;
12892 + ppcle-* | powerpclittle-*)
12893 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
12894 + ;;
12895 + ppc64) basic_machine=powerpc64-unknown
12896 + ;;
12897 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
12898 + ;;
12899 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
12900 + basic_machine=powerpc64le-unknown
12901 + ;;
12902 + ppc64le-* | powerpc64little-*)
12903 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
12904 + ;;
12905 + ps2)
12906 + basic_machine=i386-ibm
12907 + ;;
12908 + pw32)
12909 + basic_machine=i586-unknown
12910 + os=-pw32
12911 + ;;
12912 + rom68k)
12913 + basic_machine=m68k-rom68k
12914 + os=-coff
12915 + ;;
12916 + rm[46]00)
12917 + basic_machine=mips-siemens
12918 + ;;
12919 + rtpc | rtpc-*)
12920 + basic_machine=romp-ibm
12921 + ;;
12922 + s390 | s390-*)
12923 + basic_machine=s390-ibm
12924 + ;;
12925 + s390x | s390x-*)
12926 + basic_machine=s390x-ibm
12927 + ;;
12928 + sa29200)
12929 + basic_machine=a29k-amd
12930 + os=-udi
12931 + ;;
12932 + sb1)
12933 + basic_machine=mipsisa64sb1-unknown
12934 + ;;
12935 + sb1el)
12936 + basic_machine=mipsisa64sb1el-unknown
12937 + ;;
12938 + sei)
12939 + basic_machine=mips-sei
12940 + os=-seiux
12941 + ;;
12942 + sequent)
12943 + basic_machine=i386-sequent
12944 + ;;
12945 + sh)
12946 + basic_machine=sh-hitachi
12947 + os=-hms
12948 + ;;
12949 + sh64)
12950 + basic_machine=sh64-unknown
12951 + ;;
12952 + sparclite-wrs | simso-wrs)
12953 + basic_machine=sparclite-wrs
12954 + os=-vxworks
12955 + ;;
12956 + sps7)
12957 + basic_machine=m68k-bull
12958 + os=-sysv2
12959 + ;;
12960 + spur)
12961 + basic_machine=spur-unknown
12962 + ;;
12963 + st2000)
12964 + basic_machine=m68k-tandem
12965 + ;;
12966 + stratus)
12967 + basic_machine=i860-stratus
12968 + os=-sysv4
12969 + ;;
12970 + sun2)
12971 + basic_machine=m68000-sun
12972 + ;;
12973 + sun2os3)
12974 + basic_machine=m68000-sun
12975 + os=-sunos3
12976 + ;;
12977 + sun2os4)
12978 + basic_machine=m68000-sun
12979 + os=-sunos4
12980 + ;;
12981 + sun3os3)
12982 + basic_machine=m68k-sun
12983 + os=-sunos3
12984 + ;;
12985 + sun3os4)
12986 + basic_machine=m68k-sun
12987 + os=-sunos4
12988 + ;;
12989 + sun4os3)
12990 + basic_machine=sparc-sun
12991 + os=-sunos3
12992 + ;;
12993 + sun4os4)
12994 + basic_machine=sparc-sun
12995 + os=-sunos4
12996 + ;;
12997 + sun4sol2)
12998 + basic_machine=sparc-sun
12999 + os=-solaris2
13000 + ;;
13001 + sun3 | sun3-*)
13002 + basic_machine=m68k-sun
13003 + ;;
13004 + sun4)
13005 + basic_machine=sparc-sun
13006 + ;;
13007 + sun386 | sun386i | roadrunner)
13008 + basic_machine=i386-sun
13009 + ;;
13010 + sv1)
13011 + basic_machine=sv1-cray
13012 + os=-unicos
13013 + ;;
13014 + symmetry)
13015 + basic_machine=i386-sequent
13016 + os=-dynix
13017 + ;;
13018 + t3e)
13019 + basic_machine=alphaev5-cray
13020 + os=-unicos
13021 + ;;
13022 + t90)
13023 + basic_machine=t90-cray
13024 + os=-unicos
13025 + ;;
13026 + tic54x | c54x*)
13027 + basic_machine=tic54x-unknown
13028 + os=-coff
13029 + ;;
13030 + tic55x | c55x*)
13031 + basic_machine=tic55x-unknown
13032 + os=-coff
13033 + ;;
13034 + tic6x | c6x*)
13035 + basic_machine=tic6x-unknown
13036 + os=-coff
13037 + ;;
13038 + tx39)
13039 + basic_machine=mipstx39-unknown
13040 + ;;
13041 + tx39el)
13042 + basic_machine=mipstx39el-unknown
13043 + ;;
13044 + toad1)
13045 + basic_machine=pdp10-xkl
13046 + os=-tops20
13047 + ;;
13048 + tower | tower-32)
13049 + basic_machine=m68k-ncr
13050 + ;;
13051 + tpf)
13052 + basic_machine=s390x-ibm
13053 + os=-tpf
13054 + ;;
13055 + udi29k)
13056 + basic_machine=a29k-amd
13057 + os=-udi
13058 + ;;
13059 + ultra3)
13060 + basic_machine=a29k-nyu
13061 + os=-sym1
13062 + ;;
13063 + v810 | necv810)
13064 + basic_machine=v810-nec
13065 + os=-none
13066 + ;;
13067 + vaxv)
13068 + basic_machine=vax-dec
13069 + os=-sysv
13070 + ;;
13071 + vms)
13072 + basic_machine=vax-dec
13073 + os=-vms
13074 + ;;
13075 + vpp*|vx|vx-*)
13076 + basic_machine=f301-fujitsu
13077 + ;;
13078 + vxworks960)
13079 + basic_machine=i960-wrs
13080 + os=-vxworks
13081 + ;;
13082 + vxworks68)
13083 + basic_machine=m68k-wrs
13084 + os=-vxworks
13085 + ;;
13086 + vxworks29k)
13087 + basic_machine=a29k-wrs
13088 + os=-vxworks
13089 + ;;
13090 + w65*)
13091 + basic_machine=w65-wdc
13092 + os=-none
13093 + ;;
13094 + w89k-*)
13095 + basic_machine=hppa1.1-winbond
13096 + os=-proelf
13097 + ;;
13098 + xbox)
13099 + basic_machine=i686-pc
13100 + os=-mingw32
13101 + ;;
13102 + xps | xps100)
13103 + basic_machine=xps100-honeywell
13104 + ;;
13105 + ymp)
13106 + basic_machine=ymp-cray
13107 + os=-unicos
13108 + ;;
13109 + z8k-*-coff)
13110 + basic_machine=z8k-unknown
13111 + os=-sim
13112 + ;;
13113 + none)
13114 + basic_machine=none-none
13115 + os=-none
13116 + ;;
13118 +# Here we handle the default manufacturer of certain CPU types. It is in
13119 +# some cases the only manufacturer, in others, it is the most popular.
13120 + w89k)
13121 + basic_machine=hppa1.1-winbond
13122 + ;;
13123 + op50n)
13124 + basic_machine=hppa1.1-oki
13125 + ;;
13126 + op60c)
13127 + basic_machine=hppa1.1-oki
13128 + ;;
13129 + romp)
13130 + basic_machine=romp-ibm
13131 + ;;
13132 + mmix)
13133 + basic_machine=mmix-knuth
13134 + ;;
13135 + rs6000)
13136 + basic_machine=rs6000-ibm
13137 + ;;
13138 + vax)
13139 + basic_machine=vax-dec
13140 + ;;
13141 + pdp10)
13142 + # there are many clones, so DEC is not a safe bet
13143 + basic_machine=pdp10-unknown
13144 + ;;
13145 + pdp11)
13146 + basic_machine=pdp11-dec
13147 + ;;
13148 + we32k)
13149 + basic_machine=we32k-att
13150 + ;;
13151 + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
13152 + basic_machine=sh-unknown
13153 + ;;
13154 + sparc | sparcv8 | sparcv9 | sparcv9b)
13155 + basic_machine=sparc-sun
13156 + ;;
13157 + cydra)
13158 + basic_machine=cydra-cydrome
13159 + ;;
13160 + orion)
13161 + basic_machine=orion-highlevel
13162 + ;;
13163 + orion105)
13164 + basic_machine=clipper-highlevel
13165 + ;;
13166 + mac | mpw | mac-mpw)
13167 + basic_machine=m68k-apple
13168 + ;;
13169 + pmac | pmac-mpw)
13170 + basic_machine=powerpc-apple
13171 + ;;
13172 + *-unknown)
13173 + # Make sure to match an already-canonicalized machine name.
13174 + ;;
13175 + *)
13176 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
13177 + exit 1
13178 + ;;
13179 +esac
13181 +# Here we canonicalize certain aliases for manufacturers.
13182 +case $basic_machine in
13183 + *-digital*)
13184 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
13185 + ;;
13186 + *-commodore*)
13187 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
13188 + ;;
13189 + *)
13190 + ;;
13191 +esac
13193 +# Decode manufacturer-specific aliases for certain operating systems.
13195 +if [ x"$os" != x"" ]
13196 +then
13197 +case $os in
13198 + # First match some system type aliases
13199 + # that might get confused with valid system types.
13200 + # -solaris* is a basic system type, with this one exception.
13201 + -solaris1 | -solaris1.*)
13202 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
13203 + ;;
13204 + -solaris)
13205 + os=-solaris2
13206 + ;;
13207 + -svr4*)
13208 + os=-sysv4
13209 + ;;
13210 + -unixware*)
13211 + os=-sysv4.2uw
13212 + ;;
13213 + -gnu/linux*)
13214 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
13215 + ;;
13216 + # First accept the basic system types.
13217 + # The portable systems comes first.
13218 + # Each alternative MUST END IN A *, to match a version number.
13219 + # -sysv* is not here because it comes later, after sysvr4.
13220 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
13221 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
13222 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
13223 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
13224 + | -aos* \
13225 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
13226 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
13227 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
13228 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
13229 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
13230 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
13231 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
13232 + | -chorusos* | -chorusrdb* \
13233 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
13234 + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
13235 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
13236 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
13237 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
13238 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
13239 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
13240 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
13241 + | -skyos* | -haiku*)
13242 + # Remember, each alternative MUST END IN *, to match a version number.
13243 + ;;
13244 + -qnx*)
13245 + case $basic_machine in
13246 + x86-* | i*86-*)
13247 + ;;
13248 + *)
13249 + os=-nto$os
13250 + ;;
13251 + esac
13252 + ;;
13253 + -nto-qnx*)
13254 + ;;
13255 + -nto*)
13256 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
13257 + ;;
13258 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
13259 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
13260 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
13261 + ;;
13262 + -mac*)
13263 + os=`echo $os | sed -e 's|mac|macos|'`
13264 + ;;
13265 + -linux-dietlibc)
13266 + os=-linux-dietlibc
13267 + ;;
13268 + -linux*)
13269 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
13270 + ;;
13271 + -sunos5*)
13272 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
13273 + ;;
13274 + -sunos6*)
13275 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
13276 + ;;
13277 + -opened*)
13278 + os=-openedition
13279 + ;;
13280 + -os400*)
13281 + os=-os400
13282 + ;;
13283 + -wince*)
13284 + os=-wince
13285 + ;;
13286 + -osfrose*)
13287 + os=-osfrose
13288 + ;;
13289 + -osf*)
13290 + os=-osf
13291 + ;;
13292 + -utek*)
13293 + os=-bsd
13294 + ;;
13295 + -dynix*)
13296 + os=-bsd
13297 + ;;
13298 + -acis*)
13299 + os=-aos
13300 + ;;
13301 + -atheos*)
13302 + os=-atheos
13303 + ;;
13304 + -syllable*)
13305 + os=-syllable
13306 + ;;
13307 + -386bsd)
13308 + os=-bsd
13309 + ;;
13310 + -ctix* | -uts*)
13311 + os=-sysv
13312 + ;;
13313 + -nova*)
13314 + os=-rtmk-nova
13315 + ;;
13316 + -ns2 )
13317 + os=-nextstep2
13318 + ;;
13319 + -nsk*)
13320 + os=-nsk
13321 + ;;
13322 + # Preserve the version number of sinix5.
13323 + -sinix5.*)
13324 + os=`echo $os | sed -e 's|sinix|sysv|'`
13325 + ;;
13326 + -sinix*)
13327 + os=-sysv4
13328 + ;;
13329 + -tpf*)
13330 + os=-tpf
13331 + ;;
13332 + -triton*)
13333 + os=-sysv3
13334 + ;;
13335 + -oss*)
13336 + os=-sysv3
13337 + ;;
13338 + -svr4)
13339 + os=-sysv4
13340 + ;;
13341 + -svr3)
13342 + os=-sysv3
13343 + ;;
13344 + -sysvr4)
13345 + os=-sysv4
13346 + ;;
13347 + # This must come after -sysvr4.
13348 + -sysv*)
13349 + ;;
13350 + -ose*)
13351 + os=-ose
13352 + ;;
13353 + -es1800*)
13354 + os=-ose
13355 + ;;
13356 + -xenix)
13357 + os=-xenix
13358 + ;;
13359 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
13360 + os=-mint
13361 + ;;
13362 + -aros*)
13363 + os=-aros
13364 + ;;
13365 + -kaos*)
13366 + os=-kaos
13367 + ;;
13368 + -zvmoe)
13369 + os=-zvmoe
13370 + ;;
13371 + -none)
13372 + ;;
13373 + *)
13374 + # Get rid of the `-' at the beginning of $os.
13375 + os=`echo $os | sed 's/[^-]*-//'`
13376 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
13377 + exit 1
13378 + ;;
13379 +esac
13380 +else
13382 +# Here we handle the default operating systems that come with various machines.
13383 +# The value should be what the vendor currently ships out the door with their
13384 +# machine or put another way, the most popular os provided with the machine.
13386 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
13387 +# "-sun"), then you have to tell the case statement up towards the top
13388 +# that MANUFACTURER isn't an operating system. Otherwise, code above
13389 +# will signal an error saying that MANUFACTURER isn't an operating
13390 +# system, and we'll never get to this point.
13392 +case $basic_machine in
13393 + *-acorn)
13394 + os=-riscix1.2
13395 + ;;
13396 + arm*-rebel)
13397 + os=-linux
13398 + ;;
13399 + arm*-semi)
13400 + os=-aout
13401 + ;;
13402 + c4x-* | tic4x-*)
13403 + os=-coff
13404 + ;;
13405 + # This must come before the *-dec entry.
13406 + pdp10-*)
13407 + os=-tops20
13408 + ;;
13409 + pdp11-*)
13410 + os=-none
13411 + ;;
13412 + *-dec | vax-*)
13413 + os=-ultrix4.2
13414 + ;;
13415 + m68*-apollo)
13416 + os=-domain
13417 + ;;
13418 + i386-sun)
13419 + os=-sunos4.0.2
13420 + ;;
13421 + m68000-sun)
13422 + os=-sunos3
13423 + # This also exists in the configure program, but was not the
13424 + # default.
13425 + # os=-sunos4
13426 + ;;
13427 + m68*-cisco)
13428 + os=-aout
13429 + ;;
13430 + mips*-cisco)
13431 + os=-elf
13432 + ;;
13433 + mips*-*)
13434 + os=-elf
13435 + ;;
13436 + or32-*)
13437 + os=-coff
13438 + ;;
13439 + *-tti) # must be before sparc entry or we get the wrong os.
13440 + os=-sysv3
13441 + ;;
13442 + sparc-* | *-sun)
13443 + os=-sunos4.1.1
13444 + ;;
13445 + *-be)
13446 + os=-beos
13447 + ;;
13448 + *-haiku)
13449 + os=-haiku
13450 + ;;
13451 + *-ibm)
13452 + os=-aix
13453 + ;;
13454 + *-knuth)
13455 + os=-mmixware
13456 + ;;
13457 + *-wec)
13458 + os=-proelf
13459 + ;;
13460 + *-winbond)
13461 + os=-proelf
13462 + ;;
13463 + *-oki)
13464 + os=-proelf
13465 + ;;
13466 + *-hp)
13467 + os=-hpux
13468 + ;;
13469 + *-hitachi)
13470 + os=-hiux
13471 + ;;
13472 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
13473 + os=-sysv
13474 + ;;
13475 + *-cbm)
13476 + os=-amigaos
13477 + ;;
13478 + *-dg)
13479 + os=-dgux
13480 + ;;
13481 + *-dolphin)
13482 + os=-sysv3
13483 + ;;
13484 + m68k-ccur)
13485 + os=-rtu
13486 + ;;
13487 + m88k-omron*)
13488 + os=-luna
13489 + ;;
13490 + *-next )
13491 + os=-nextstep
13492 + ;;
13493 + *-sequent)
13494 + os=-ptx
13495 + ;;
13496 + *-crds)
13497 + os=-unos
13498 + ;;
13499 + *-ns)
13500 + os=-genix
13501 + ;;
13502 + i370-*)
13503 + os=-mvs
13504 + ;;
13505 + *-next)
13506 + os=-nextstep3
13507 + ;;
13508 + *-gould)
13509 + os=-sysv
13510 + ;;
13511 + *-highlevel)
13512 + os=-bsd
13513 + ;;
13514 + *-encore)
13515 + os=-bsd
13516 + ;;
13517 + *-sgi)
13518 + os=-irix
13519 + ;;
13520 + *-siemens)
13521 + os=-sysv4
13522 + ;;
13523 + *-masscomp)
13524 + os=-rtu
13525 + ;;
13526 + f30[01]-fujitsu | f700-fujitsu)
13527 + os=-uxpv
13528 + ;;
13529 + *-rom68k)
13530 + os=-coff
13531 + ;;
13532 + *-*bug)
13533 + os=-coff
13534 + ;;
13535 + *-apple)
13536 + os=-macos
13537 + ;;
13538 + *-atari*)
13539 + os=-mint
13540 + ;;
13541 + *)
13542 + os=-none
13543 + ;;
13544 +esac
13547 +# Here we handle the case where we know the os, and the CPU type, but not the
13548 +# manufacturer. We pick the logical manufacturer.
13549 +vendor=unknown
13550 +case $basic_machine in
13551 + *-unknown)
13552 + case $os in
13553 + -riscix*)
13554 + vendor=acorn
13555 + ;;
13556 + -sunos*)
13557 + vendor=sun
13558 + ;;
13559 + -aix*)
13560 + vendor=ibm
13561 + ;;
13562 + -beos*)
13563 + vendor=be
13564 + ;;
13565 + -hpux*)
13566 + vendor=hp
13567 + ;;
13568 + -mpeix*)
13569 + vendor=hp
13570 + ;;
13571 + -hiux*)
13572 + vendor=hitachi
13573 + ;;
13574 + -unos*)
13575 + vendor=crds
13576 + ;;
13577 + -dgux*)
13578 + vendor=dg
13579 + ;;
13580 + -luna*)
13581 + vendor=omron
13582 + ;;
13583 + -genix*)
13584 + vendor=ns
13585 + ;;
13586 + -mvs* | -opened*)
13587 + vendor=ibm
13588 + ;;
13589 + -os400*)
13590 + vendor=ibm
13591 + ;;
13592 + -ptx*)
13593 + vendor=sequent
13594 + ;;
13595 + -tpf*)
13596 + vendor=ibm
13597 + ;;
13598 + -vxsim* | -vxworks* | -windiss*)
13599 + vendor=wrs
13600 + ;;
13601 + -aux*)
13602 + vendor=apple
13603 + ;;
13604 + -hms*)
13605 + vendor=hitachi
13606 + ;;
13607 + -mpw* | -macos*)
13608 + vendor=apple
13609 + ;;
13610 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
13611 + vendor=atari
13612 + ;;
13613 + -vos*)
13614 + vendor=stratus
13615 + ;;
13616 + esac
13617 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
13618 + ;;
13619 +esac
13621 +echo $basic_machine$os
13622 +exit
13624 +# Local variables:
13625 +# eval: (add-hook 'write-file-hooks 'time-stamp)
13626 +# time-stamp-start: "timestamp='"
13627 +# time-stamp-format: "%:y-%02m-%02d"
13628 +# time-stamp-end: "'"
13629 +# End:
13630 diff --git a/config/depcomp b/config/depcomp
13631 new file mode 100755
13632 index 0000000..04701da
13633 --- /dev/null
13634 +++ b/config/depcomp
13635 @@ -0,0 +1,530 @@
13636 +#! /bin/sh
13637 +# depcomp - compile a program generating dependencies as side-effects
13639 +scriptversion=2005-07-09.11
13641 +# Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
13643 +# This program is free software; you can redistribute it and/or modify
13644 +# it under the terms of the GNU General Public License as published by
13645 +# the Free Software Foundation; either version 2, or (at your option)
13646 +# any later version.
13648 +# This program is distributed in the hope that it will be useful,
13649 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
13650 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13651 +# GNU General Public License for more details.
13653 +# You should have received a copy of the GNU General Public License
13654 +# along with this program; if not, write to the Free Software
13655 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
13656 +# 02110-1301, USA.
13658 +# As a special exception to the GNU General Public License, if you
13659 +# distribute this file as part of a program that contains a
13660 +# configuration script generated by Autoconf, you may include it under
13661 +# the same distribution terms that you use for the rest of that program.
13663 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
13665 +case $1 in
13666 + '')
13667 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
13668 + exit 1;
13669 + ;;
13670 + -h | --h*)
13671 + cat <<\EOF
13672 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
13674 +Run PROGRAMS ARGS to compile a file, generating dependencies
13675 +as side-effects.
13677 +Environment variables:
13678 + depmode Dependency tracking mode.
13679 + source Source file read by `PROGRAMS ARGS'.
13680 + object Object file output by `PROGRAMS ARGS'.
13681 + DEPDIR directory where to store dependencies.
13682 + depfile Dependency file to output.
13683 + tmpdepfile Temporary file to use when outputing dependencies.
13684 + libtool Whether libtool is used (yes/no).
13686 +Report bugs to <bug-automake@gnu.org>.
13687 +EOF
13688 + exit $?
13689 + ;;
13690 + -v | --v*)
13691 + echo "depcomp $scriptversion"
13692 + exit $?
13693 + ;;
13694 +esac
13696 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
13697 + echo "depcomp: Variables source, object and depmode must be set" 1>&2
13698 + exit 1
13701 +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
13702 +depfile=${depfile-`echo "$object" |
13703 + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
13704 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
13706 +rm -f "$tmpdepfile"
13708 +# Some modes work just like other modes, but use different flags. We
13709 +# parameterize here, but still list the modes in the big case below,
13710 +# to make depend.m4 easier to write. Note that we *cannot* use a case
13711 +# here, because this file can only contain one case statement.
13712 +if test "$depmode" = hp; then
13713 + # HP compiler uses -M and no extra arg.
13714 + gccflag=-M
13715 + depmode=gcc
13718 +if test "$depmode" = dashXmstdout; then
13719 + # This is just like dashmstdout with a different argument.
13720 + dashmflag=-xM
13721 + depmode=dashmstdout
13724 +case "$depmode" in
13725 +gcc3)
13726 +## gcc 3 implements dependency tracking that does exactly what
13727 +## we want. Yay! Note: for some reason libtool 1.4 doesn't like
13728 +## it if -MD -MP comes after the -MF stuff. Hmm.
13729 + "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
13730 + stat=$?
13731 + if test $stat -eq 0; then :
13732 + else
13733 + rm -f "$tmpdepfile"
13734 + exit $stat
13735 + fi
13736 + mv "$tmpdepfile" "$depfile"
13737 + ;;
13739 +gcc)
13740 +## There are various ways to get dependency output from gcc. Here's
13741 +## why we pick this rather obscure method:
13742 +## - Don't want to use -MD because we'd like the dependencies to end
13743 +## up in a subdir. Having to rename by hand is ugly.
13744 +## (We might end up doing this anyway to support other compilers.)
13745 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
13746 +## -MM, not -M (despite what the docs say).
13747 +## - Using -M directly means running the compiler twice (even worse
13748 +## than renaming).
13749 + if test -z "$gccflag"; then
13750 + gccflag=-MD,
13751 + fi
13752 + "$@" -Wp,"$gccflag$tmpdepfile"
13753 + stat=$?
13754 + if test $stat -eq 0; then :
13755 + else
13756 + rm -f "$tmpdepfile"
13757 + exit $stat
13758 + fi
13759 + rm -f "$depfile"
13760 + echo "$object : \\" > "$depfile"
13761 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
13762 +## The second -e expression handles DOS-style file names with drive letters.
13763 + sed -e 's/^[^:]*: / /' \
13764 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
13765 +## This next piece of magic avoids the `deleted header file' problem.
13766 +## The problem is that when a header file which appears in a .P file
13767 +## is deleted, the dependency causes make to die (because there is
13768 +## typically no way to rebuild the header). We avoid this by adding
13769 +## dummy dependencies for each header file. Too bad gcc doesn't do
13770 +## this for us directly.
13771 + tr ' ' '
13772 +' < "$tmpdepfile" |
13773 +## Some versions of gcc put a space before the `:'. On the theory
13774 +## that the space means something, we add a space to the output as
13775 +## well.
13776 +## Some versions of the HPUX 10.20 sed can't process this invocation
13777 +## correctly. Breaking it into two sed invocations is a workaround.
13778 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
13779 + rm -f "$tmpdepfile"
13780 + ;;
13782 +hp)
13783 + # This case exists only to let depend.m4 do its work. It works by
13784 + # looking at the text of this script. This case will never be run,
13785 + # since it is checked for above.
13786 + exit 1
13787 + ;;
13789 +sgi)
13790 + if test "$libtool" = yes; then
13791 + "$@" "-Wp,-MDupdate,$tmpdepfile"
13792 + else
13793 + "$@" -MDupdate "$tmpdepfile"
13794 + fi
13795 + stat=$?
13796 + if test $stat -eq 0; then :
13797 + else
13798 + rm -f "$tmpdepfile"
13799 + exit $stat
13800 + fi
13801 + rm -f "$depfile"
13803 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
13804 + echo "$object : \\" > "$depfile"
13806 + # Clip off the initial element (the dependent). Don't try to be
13807 + # clever and replace this with sed code, as IRIX sed won't handle
13808 + # lines with more than a fixed number of characters (4096 in
13809 + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
13810 + # the IRIX cc adds comments like `#:fec' to the end of the
13811 + # dependency line.
13812 + tr ' ' '
13813 +' < "$tmpdepfile" \
13814 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
13815 + tr '
13816 +' ' ' >> $depfile
13817 + echo >> $depfile
13819 + # The second pass generates a dummy entry for each header file.
13820 + tr ' ' '
13821 +' < "$tmpdepfile" \
13822 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
13823 + >> $depfile
13824 + else
13825 + # The sourcefile does not contain any dependencies, so just
13826 + # store a dummy comment line, to avoid errors with the Makefile
13827 + # "include basename.Plo" scheme.
13828 + echo "#dummy" > "$depfile"
13829 + fi
13830 + rm -f "$tmpdepfile"
13831 + ;;
13833 +aix)
13834 + # The C for AIX Compiler uses -M and outputs the dependencies
13835 + # in a .u file. In older versions, this file always lives in the
13836 + # current directory. Also, the AIX compiler puts `$object:' at the
13837 + # start of each line; $object doesn't have directory information.
13838 + # Version 6 uses the directory in both cases.
13839 + stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
13840 + tmpdepfile="$stripped.u"
13841 + if test "$libtool" = yes; then
13842 + "$@" -Wc,-M
13843 + else
13844 + "$@" -M
13845 + fi
13846 + stat=$?
13848 + if test -f "$tmpdepfile"; then :
13849 + else
13850 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
13851 + tmpdepfile="$stripped.u"
13852 + fi
13854 + if test $stat -eq 0; then :
13855 + else
13856 + rm -f "$tmpdepfile"
13857 + exit $stat
13858 + fi
13860 + if test -f "$tmpdepfile"; then
13861 + outname="$stripped.o"
13862 + # Each line is of the form `foo.o: dependent.h'.
13863 + # Do two passes, one to just change these to
13864 + # `$object: dependent.h' and one to simply `dependent.h:'.
13865 + sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
13866 + sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
13867 + else
13868 + # The sourcefile does not contain any dependencies, so just
13869 + # store a dummy comment line, to avoid errors with the Makefile
13870 + # "include basename.Plo" scheme.
13871 + echo "#dummy" > "$depfile"
13872 + fi
13873 + rm -f "$tmpdepfile"
13874 + ;;
13876 +icc)
13877 + # Intel's C compiler understands `-MD -MF file'. However on
13878 + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
13879 + # ICC 7.0 will fill foo.d with something like
13880 + # foo.o: sub/foo.c
13881 + # foo.o: sub/foo.h
13882 + # which is wrong. We want:
13883 + # sub/foo.o: sub/foo.c
13884 + # sub/foo.o: sub/foo.h
13885 + # sub/foo.c:
13886 + # sub/foo.h:
13887 + # ICC 7.1 will output
13888 + # foo.o: sub/foo.c sub/foo.h
13889 + # and will wrap long lines using \ :
13890 + # foo.o: sub/foo.c ... \
13891 + # sub/foo.h ... \
13892 + # ...
13894 + "$@" -MD -MF "$tmpdepfile"
13895 + stat=$?
13896 + if test $stat -eq 0; then :
13897 + else
13898 + rm -f "$tmpdepfile"
13899 + exit $stat
13900 + fi
13901 + rm -f "$depfile"
13902 + # Each line is of the form `foo.o: dependent.h',
13903 + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
13904 + # Do two passes, one to just change these to
13905 + # `$object: dependent.h' and one to simply `dependent.h:'.
13906 + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
13907 + # Some versions of the HPUX 10.20 sed can't process this invocation
13908 + # correctly. Breaking it into two sed invocations is a workaround.
13909 + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
13910 + sed -e 's/$/ :/' >> "$depfile"
13911 + rm -f "$tmpdepfile"
13912 + ;;
13914 +tru64)
13915 + # The Tru64 compiler uses -MD to generate dependencies as a side
13916 + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
13917 + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
13918 + # dependencies in `foo.d' instead, so we check for that too.
13919 + # Subdirectories are respected.
13920 + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
13921 + test "x$dir" = "x$object" && dir=
13922 + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
13924 + if test "$libtool" = yes; then
13925 + # With Tru64 cc, shared objects can also be used to make a
13926 + # static library. This mecanism is used in libtool 1.4 series to
13927 + # handle both shared and static libraries in a single compilation.
13928 + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
13930 + # With libtool 1.5 this exception was removed, and libtool now
13931 + # generates 2 separate objects for the 2 libraries. These two
13932 + # compilations output dependencies in in $dir.libs/$base.o.d and
13933 + # in $dir$base.o.d. We have to check for both files, because
13934 + # one of the two compilations can be disabled. We should prefer
13935 + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
13936 + # automatically cleaned when .libs/ is deleted, while ignoring
13937 + # the former would cause a distcleancheck panic.
13938 + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
13939 + tmpdepfile2=$dir$base.o.d # libtool 1.5
13940 + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
13941 + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
13942 + "$@" -Wc,-MD
13943 + else
13944 + tmpdepfile1=$dir$base.o.d
13945 + tmpdepfile2=$dir$base.d
13946 + tmpdepfile3=$dir$base.d
13947 + tmpdepfile4=$dir$base.d
13948 + "$@" -MD
13949 + fi
13951 + stat=$?
13952 + if test $stat -eq 0; then :
13953 + else
13954 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
13955 + exit $stat
13956 + fi
13958 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
13959 + do
13960 + test -f "$tmpdepfile" && break
13961 + done
13962 + if test -f "$tmpdepfile"; then
13963 + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
13964 + # That's a tab and a space in the [].
13965 + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
13966 + else
13967 + echo "#dummy" > "$depfile"
13968 + fi
13969 + rm -f "$tmpdepfile"
13970 + ;;
13972 +#nosideeffect)
13973 + # This comment above is used by automake to tell side-effect
13974 + # dependency tracking mechanisms from slower ones.
13976 +dashmstdout)
13977 + # Important note: in order to support this mode, a compiler *must*
13978 + # always write the preprocessed file to stdout, regardless of -o.
13979 + "$@" || exit $?
13981 + # Remove the call to Libtool.
13982 + if test "$libtool" = yes; then
13983 + while test $1 != '--mode=compile'; do
13984 + shift
13985 + done
13986 + shift
13987 + fi
13989 + # Remove `-o $object'.
13990 + IFS=" "
13991 + for arg
13992 + do
13993 + case $arg in
13994 + -o)
13995 + shift
13996 + ;;
13997 + $object)
13998 + shift
13999 + ;;
14000 + *)
14001 + set fnord "$@" "$arg"
14002 + shift # fnord
14003 + shift # $arg
14004 + ;;
14005 + esac
14006 + done
14008 + test -z "$dashmflag" && dashmflag=-M
14009 + # Require at least two characters before searching for `:'
14010 + # in the target name. This is to cope with DOS-style filenames:
14011 + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
14012 + "$@" $dashmflag |
14013 + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
14014 + rm -f "$depfile"
14015 + cat < "$tmpdepfile" > "$depfile"
14016 + tr ' ' '
14017 +' < "$tmpdepfile" | \
14018 +## Some versions of the HPUX 10.20 sed can't process this invocation
14019 +## correctly. Breaking it into two sed invocations is a workaround.
14020 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
14021 + rm -f "$tmpdepfile"
14022 + ;;
14024 +dashXmstdout)
14025 + # This case only exists to satisfy depend.m4. It is never actually
14026 + # run, as this mode is specially recognized in the preamble.
14027 + exit 1
14028 + ;;
14030 +makedepend)
14031 + "$@" || exit $?
14032 + # Remove any Libtool call
14033 + if test "$libtool" = yes; then
14034 + while test $1 != '--mode=compile'; do
14035 + shift
14036 + done
14037 + shift
14038 + fi
14039 + # X makedepend
14040 + shift
14041 + cleared=no
14042 + for arg in "$@"; do
14043 + case $cleared in
14044 + no)
14045 + set ""; shift
14046 + cleared=yes ;;
14047 + esac
14048 + case "$arg" in
14049 + -D*|-I*)
14050 + set fnord "$@" "$arg"; shift ;;
14051 + # Strip any option that makedepend may not understand. Remove
14052 + # the object too, otherwise makedepend will parse it as a source file.
14053 + -*|$object)
14054 + ;;
14055 + *)
14056 + set fnord "$@" "$arg"; shift ;;
14057 + esac
14058 + done
14059 + obj_suffix="`echo $object | sed 's/^.*\././'`"
14060 + touch "$tmpdepfile"
14061 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
14062 + rm -f "$depfile"
14063 + cat < "$tmpdepfile" > "$depfile"
14064 + sed '1,2d' "$tmpdepfile" | tr ' ' '
14065 +' | \
14066 +## Some versions of the HPUX 10.20 sed can't process this invocation
14067 +## correctly. Breaking it into two sed invocations is a workaround.
14068 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
14069 + rm -f "$tmpdepfile" "$tmpdepfile".bak
14070 + ;;
14072 +cpp)
14073 + # Important note: in order to support this mode, a compiler *must*
14074 + # always write the preprocessed file to stdout.
14075 + "$@" || exit $?
14077 + # Remove the call to Libtool.
14078 + if test "$libtool" = yes; then
14079 + while test $1 != '--mode=compile'; do
14080 + shift
14081 + done
14082 + shift
14083 + fi
14085 + # Remove `-o $object'.
14086 + IFS=" "
14087 + for arg
14088 + do
14089 + case $arg in
14090 + -o)
14091 + shift
14092 + ;;
14093 + $object)
14094 + shift
14095 + ;;
14096 + *)
14097 + set fnord "$@" "$arg"
14098 + shift # fnord
14099 + shift # $arg
14100 + ;;
14101 + esac
14102 + done
14104 + "$@" -E |
14105 + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
14106 + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
14107 + sed '$ s: \\$::' > "$tmpdepfile"
14108 + rm -f "$depfile"
14109 + echo "$object : \\" > "$depfile"
14110 + cat < "$tmpdepfile" >> "$depfile"
14111 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
14112 + rm -f "$tmpdepfile"
14113 + ;;
14115 +msvisualcpp)
14116 + # Important note: in order to support this mode, a compiler *must*
14117 + # always write the preprocessed file to stdout, regardless of -o,
14118 + # because we must use -o when running libtool.
14119 + "$@" || exit $?
14120 + IFS=" "
14121 + for arg
14122 + do
14123 + case "$arg" in
14124 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
14125 + set fnord "$@"
14126 + shift
14127 + shift
14128 + ;;
14129 + *)
14130 + set fnord "$@" "$arg"
14131 + shift
14132 + shift
14133 + ;;
14134 + esac
14135 + done
14136 + "$@" -E |
14137 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
14138 + rm -f "$depfile"
14139 + echo "$object : \\" > "$depfile"
14140 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
14141 + echo " " >> "$depfile"
14142 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
14143 + rm -f "$tmpdepfile"
14144 + ;;
14146 +none)
14147 + exec "$@"
14148 + ;;
14151 + echo "Unknown depmode $depmode" 1>&2
14152 + exit 1
14153 + ;;
14154 +esac
14156 +exit 0
14158 +# Local Variables:
14159 +# mode: shell-script
14160 +# sh-indentation: 2
14161 +# eval: (add-hook 'write-file-hooks 'time-stamp)
14162 +# time-stamp-start: "scriptversion="
14163 +# time-stamp-format: "%:y-%02m-%02d.%02H"
14164 +# time-stamp-end: "$"
14165 +# End:
14166 diff --git a/config/install-sh b/config/install-sh
14167 new file mode 100755
14168 index 0000000..4d4a951
14169 --- /dev/null
14170 +++ b/config/install-sh
14171 @@ -0,0 +1,323 @@
14172 +#!/bin/sh
14173 +# install - install a program, script, or datafile
14175 +scriptversion=2005-05-14.22
14177 +# This originates from X11R5 (mit/util/scripts/install.sh), which was
14178 +# later released in X11R6 (xc/config/util/install.sh) with the
14179 +# following copyright and license.
14181 +# Copyright (C) 1994 X Consortium
14183 +# Permission is hereby granted, free of charge, to any person obtaining a copy
14184 +# of this software and associated documentation files (the "Software"), to
14185 +# deal in the Software without restriction, including without limitation the
14186 +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
14187 +# sell copies of the Software, and to permit persons to whom the Software is
14188 +# furnished to do so, subject to the following conditions:
14190 +# The above copyright notice and this permission notice shall be included in
14191 +# all copies or substantial portions of the Software.
14193 +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14194 +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14195 +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14196 +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
14197 +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
14198 +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14200 +# Except as contained in this notice, the name of the X Consortium shall not
14201 +# be used in advertising or otherwise to promote the sale, use or other deal-
14202 +# ings in this Software without prior written authorization from the X Consor-
14203 +# tium.
14206 +# FSF changes to this file are in the public domain.
14208 +# Calling this script install-sh is preferred over install.sh, to prevent
14209 +# `make' implicit rules from creating a file called install from it
14210 +# when there is no Makefile.
14212 +# This script is compatible with the BSD install script, but was written
14213 +# from scratch. It can only install one file at a time, a restriction
14214 +# shared with many OS's install programs.
14216 +# set DOITPROG to echo to test this script
14218 +# Don't use :- since 4.3BSD and earlier shells don't like it.
14219 +doit="${DOITPROG-}"
14221 +# put in absolute paths if you don't have them in your path; or use env. vars.
14223 +mvprog="${MVPROG-mv}"
14224 +cpprog="${CPPROG-cp}"
14225 +chmodprog="${CHMODPROG-chmod}"
14226 +chownprog="${CHOWNPROG-chown}"
14227 +chgrpprog="${CHGRPPROG-chgrp}"
14228 +stripprog="${STRIPPROG-strip}"
14229 +rmprog="${RMPROG-rm}"
14230 +mkdirprog="${MKDIRPROG-mkdir}"
14232 +chmodcmd="$chmodprog 0755"
14233 +chowncmd=
14234 +chgrpcmd=
14235 +stripcmd=
14236 +rmcmd="$rmprog -f"
14237 +mvcmd="$mvprog"
14238 +src=
14239 +dst=
14240 +dir_arg=
14241 +dstarg=
14242 +no_target_directory=
14244 +usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
14245 + or: $0 [OPTION]... SRCFILES... DIRECTORY
14246 + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
14247 + or: $0 [OPTION]... -d DIRECTORIES...
14249 +In the 1st form, copy SRCFILE to DSTFILE.
14250 +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
14251 +In the 4th, create DIRECTORIES.
14253 +Options:
14254 +-c (ignored)
14255 +-d create directories instead of installing files.
14256 +-g GROUP $chgrpprog installed files to GROUP.
14257 +-m MODE $chmodprog installed files to MODE.
14258 +-o USER $chownprog installed files to USER.
14259 +-s $stripprog installed files.
14260 +-t DIRECTORY install into DIRECTORY.
14261 +-T report an error if DSTFILE is a directory.
14262 +--help display this help and exit.
14263 +--version display version info and exit.
14265 +Environment variables override the default commands:
14266 + CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
14269 +while test -n "$1"; do
14270 + case $1 in
14271 + -c) shift
14272 + continue;;
14274 + -d) dir_arg=true
14275 + shift
14276 + continue;;
14278 + -g) chgrpcmd="$chgrpprog $2"
14279 + shift
14280 + shift
14281 + continue;;
14283 + --help) echo "$usage"; exit $?;;
14285 + -m) chmodcmd="$chmodprog $2"
14286 + shift
14287 + shift
14288 + continue;;
14290 + -o) chowncmd="$chownprog $2"
14291 + shift
14292 + shift
14293 + continue;;
14295 + -s) stripcmd=$stripprog
14296 + shift
14297 + continue;;
14299 + -t) dstarg=$2
14300 + shift
14301 + shift
14302 + continue;;
14304 + -T) no_target_directory=true
14305 + shift
14306 + continue;;
14308 + --version) echo "$0 $scriptversion"; exit $?;;
14310 + *) # When -d is used, all remaining arguments are directories to create.
14311 + # When -t is used, the destination is already specified.
14312 + test -n "$dir_arg$dstarg" && break
14313 + # Otherwise, the last argument is the destination. Remove it from $@.
14314 + for arg
14315 + do
14316 + if test -n "$dstarg"; then
14317 + # $@ is not empty: it contains at least $arg.
14318 + set fnord "$@" "$dstarg"
14319 + shift # fnord
14320 + fi
14321 + shift # arg
14322 + dstarg=$arg
14323 + done
14324 + break;;
14325 + esac
14326 +done
14328 +if test -z "$1"; then
14329 + if test -z "$dir_arg"; then
14330 + echo "$0: no input file specified." >&2
14331 + exit 1
14332 + fi
14333 + # It's OK to call `install-sh -d' without argument.
14334 + # This can happen when creating conditional directories.
14335 + exit 0
14338 +for src
14340 + # Protect names starting with `-'.
14341 + case $src in
14342 + -*) src=./$src ;;
14343 + esac
14345 + if test -n "$dir_arg"; then
14346 + dst=$src
14347 + src=
14349 + if test -d "$dst"; then
14350 + mkdircmd=:
14351 + chmodcmd=
14352 + else
14353 + mkdircmd=$mkdirprog
14354 + fi
14355 + else
14356 + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
14357 + # might cause directories to be created, which would be especially bad
14358 + # if $src (and thus $dsttmp) contains '*'.
14359 + if test ! -f "$src" && test ! -d "$src"; then
14360 + echo "$0: $src does not exist." >&2
14361 + exit 1
14362 + fi
14364 + if test -z "$dstarg"; then
14365 + echo "$0: no destination specified." >&2
14366 + exit 1
14367 + fi
14369 + dst=$dstarg
14370 + # Protect names starting with `-'.
14371 + case $dst in
14372 + -*) dst=./$dst ;;
14373 + esac
14375 + # If destination is a directory, append the input filename; won't work
14376 + # if double slashes aren't ignored.
14377 + if test -d "$dst"; then
14378 + if test -n "$no_target_directory"; then
14379 + echo "$0: $dstarg: Is a directory" >&2
14380 + exit 1
14381 + fi
14382 + dst=$dst/`basename "$src"`
14383 + fi
14384 + fi
14386 + # This sed command emulates the dirname command.
14387 + dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
14389 + # Make sure that the destination directory exists.
14391 + # Skip lots of stat calls in the usual case.
14392 + if test ! -d "$dstdir"; then
14393 + defaultIFS='
14395 + IFS="${IFS-$defaultIFS}"
14397 + oIFS=$IFS
14398 + # Some sh's can't handle IFS=/ for some reason.
14399 + IFS='%'
14400 + set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
14401 + shift
14402 + IFS=$oIFS
14404 + pathcomp=
14406 + while test $# -ne 0 ; do
14407 + pathcomp=$pathcomp$1
14408 + shift
14409 + if test ! -d "$pathcomp"; then
14410 + $mkdirprog "$pathcomp"
14411 + # mkdir can fail with a `File exist' error in case several
14412 + # install-sh are creating the directory concurrently. This
14413 + # is OK.
14414 + test -d "$pathcomp" || exit
14415 + fi
14416 + pathcomp=$pathcomp/
14417 + done
14418 + fi
14420 + if test -n "$dir_arg"; then
14421 + $doit $mkdircmd "$dst" \
14422 + && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
14423 + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
14424 + && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
14425 + && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
14427 + else
14428 + dstfile=`basename "$dst"`
14430 + # Make a couple of temp file names in the proper directory.
14431 + dsttmp=$dstdir/_inst.$$_
14432 + rmtmp=$dstdir/_rm.$$_
14434 + # Trap to clean up those temp files at exit.
14435 + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
14436 + trap '(exit $?); exit' 1 2 13 15
14438 + # Copy the file name to the temp name.
14439 + $doit $cpprog "$src" "$dsttmp" &&
14441 + # and set any options; do chmod last to preserve setuid bits.
14443 + # If any of these fail, we abort the whole thing. If we want to
14444 + # ignore errors from any of these, just make sure not to ignore
14445 + # errors from the above "$doit $cpprog $src $dsttmp" command.
14447 + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
14448 + && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
14449 + && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
14450 + && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
14452 + # Now rename the file to the real destination.
14453 + { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
14454 + || {
14455 + # The rename failed, perhaps because mv can't rename something else
14456 + # to itself, or perhaps because mv is so ancient that it does not
14457 + # support -f.
14459 + # Now remove or move aside any old file at destination location.
14460 + # We try this two ways since rm can't unlink itself on some
14461 + # systems and the destination file might be busy for other
14462 + # reasons. In this case, the final cleanup might fail but the new
14463 + # file should still install successfully.
14465 + if test -f "$dstdir/$dstfile"; then
14466 + $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
14467 + || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
14468 + || {
14469 + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
14470 + (exit 1); exit 1
14472 + else
14474 + fi
14475 + } &&
14477 + # Now rename the file to the real destination.
14478 + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
14481 + fi || { (exit 1); exit 1; }
14482 +done
14484 +# The final little trick to "correctly" pass the exit status to the exit trap.
14486 + (exit 0); exit 0
14489 +# Local variables:
14490 +# eval: (add-hook 'write-file-hooks 'time-stamp)
14491 +# time-stamp-start: "scriptversion="
14492 +# time-stamp-format: "%:y-%02m-%02d.%02H"
14493 +# time-stamp-end: "$"
14494 +# End:
14495 diff --git a/config/ltmain.sh b/config/ltmain.sh
14496 new file mode 100755
14497 index 0000000..06823e0
14498 --- /dev/null
14499 +++ b/config/ltmain.sh
14500 @@ -0,0 +1,6863 @@
14501 +# ltmain.sh - Provide generalized library-building support services.
14502 +# NOTE: Changing this file will not affect anything until you rerun configure.
14504 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
14505 +# Free Software Foundation, Inc.
14506 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14508 +# This program is free software; you can redistribute it and/or modify
14509 +# it under the terms of the GNU General Public License as published by
14510 +# the Free Software Foundation; either version 2 of the License, or
14511 +# (at your option) any later version.
14513 +# This program is distributed in the hope that it will be useful, but
14514 +# WITHOUT ANY WARRANTY; without even the implied warranty of
14515 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14516 +# General Public License for more details.
14518 +# You should have received a copy of the GNU General Public License
14519 +# along with this program; if not, write to the Free Software
14520 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14522 +# As a special exception to the GNU General Public License, if you
14523 +# distribute this file as part of a program that contains a
14524 +# configuration script generated by Autoconf, you may include it under
14525 +# the same distribution terms that you use for the rest of that program.
14527 +basename="s,^.*/,,g"
14529 +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
14530 +# is ksh but when the shell is invoked as "sh" and the current value of
14531 +# the _XPG environment variable is not equal to 1 (one), the special
14532 +# positional parameter $0, within a function call, is the name of the
14533 +# function.
14534 +progpath="$0"
14536 +# The name of this program:
14537 +progname=`echo "$progpath" | $SED $basename`
14538 +modename="$progname"
14540 +# Global variables:
14541 +EXIT_SUCCESS=0
14542 +EXIT_FAILURE=1
14544 +PROGRAM=ltmain.sh
14545 +PACKAGE=libtool
14546 +VERSION=1.5.22
14547 +TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
14549 +# See if we are running on zsh, and set the options which allow our
14550 +# commands through without removal of \ escapes.
14551 +if test -n "${ZSH_VERSION+set}" ; then
14552 + setopt NO_GLOB_SUBST
14555 +# Check that we have a working $echo.
14556 +if test "X$1" = X--no-reexec; then
14557 + # Discard the --no-reexec flag, and continue.
14558 + shift
14559 +elif test "X$1" = X--fallback-echo; then
14560 + # Avoid inline document here, it may be left over
14562 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
14563 + # Yippee, $echo works!
14565 +else
14566 + # Restart under the correct shell, and then maybe $echo will work.
14567 + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
14570 +if test "X$1" = X--fallback-echo; then
14571 + # used as fallback echo
14572 + shift
14573 + cat <<EOF
14575 +EOF
14576 + exit $EXIT_SUCCESS
14579 +default_mode=
14580 +help="Try \`$progname --help' for more information."
14581 +magic="%%%MAGIC variable%%%"
14582 +mkdir="mkdir"
14583 +mv="mv -f"
14584 +rm="rm -f"
14586 +# Sed substitution that helps us do robust quoting. It backslashifies
14587 +# metacharacters that are still active within double-quoted strings.
14588 +Xsed="${SED}"' -e 1s/^X//'
14589 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
14590 +# test EBCDIC or ASCII
14591 +case `echo X|tr X '\101'` in
14592 + A) # ASCII based system
14593 + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
14594 + SP2NL='tr \040 \012'
14595 + NL2SP='tr \015\012 \040\040'
14596 + ;;
14597 + *) # EBCDIC based system
14598 + SP2NL='tr \100 \n'
14599 + NL2SP='tr \r\n \100\100'
14600 + ;;
14601 +esac
14603 +# NLS nuisances.
14604 +# Only set LANG and LC_ALL to C if already set.
14605 +# These must not be set unconditionally because not all systems understand
14606 +# e.g. LANG=C (notably SCO).
14607 +# We save the old values to restore during execute mode.
14608 +if test "${LC_ALL+set}" = set; then
14609 + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
14611 +if test "${LANG+set}" = set; then
14612 + save_LANG="$LANG"; LANG=C; export LANG
14615 +# Make sure IFS has a sensible default
14616 +lt_nl='
14618 +IFS=" $lt_nl"
14620 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
14621 + $echo "$modename: not configured to build any kind of library" 1>&2
14622 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
14623 + exit $EXIT_FAILURE
14626 +# Global variables.
14627 +mode=$default_mode
14628 +nonopt=
14629 +prev=
14630 +prevopt=
14631 +run=
14632 +show="$echo"
14633 +show_help=
14634 +execute_dlfiles=
14635 +duplicate_deps=no
14636 +preserve_args=
14637 +lo2o="s/\\.lo\$/.${objext}/"
14638 +o2lo="s/\\.${objext}\$/.lo/"
14640 +#####################################
14641 +# Shell function definitions:
14642 +# This seems to be the best place for them
14644 +# func_mktempdir [string]
14645 +# Make a temporary directory that won't clash with other running
14646 +# libtool processes, and avoids race conditions if possible. If
14647 +# given, STRING is the basename for that directory.
14648 +func_mktempdir ()
14650 + my_template="${TMPDIR-/tmp}/${1-$progname}"
14652 + if test "$run" = ":"; then
14653 + # Return a directory name, but don't create it in dry-run mode
14654 + my_tmpdir="${my_template}-$$"
14655 + else
14657 + # If mktemp works, use that first and foremost
14658 + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
14660 + if test ! -d "$my_tmpdir"; then
14661 + # Failing that, at least try and use $RANDOM to avoid a race
14662 + my_tmpdir="${my_template}-${RANDOM-0}$$"
14664 + save_mktempdir_umask=`umask`
14665 + umask 0077
14666 + $mkdir "$my_tmpdir"
14667 + umask $save_mktempdir_umask
14668 + fi
14670 + # If we're not in dry-run mode, bomb out on failure
14671 + test -d "$my_tmpdir" || {
14672 + $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
14673 + exit $EXIT_FAILURE
14675 + fi
14677 + $echo "X$my_tmpdir" | $Xsed
14681 +# func_win32_libid arg
14682 +# return the library type of file 'arg'
14684 +# Need a lot of goo to handle *both* DLLs and import libs
14685 +# Has to be a shell function in order to 'eat' the argument
14686 +# that is supplied when $file_magic_command is called.
14687 +func_win32_libid ()
14689 + win32_libid_type="unknown"
14690 + win32_fileres=`file -L $1 2>/dev/null`
14691 + case $win32_fileres in
14692 + *ar\ archive\ import\ library*) # definitely import
14693 + win32_libid_type="x86 archive import"
14694 + ;;
14695 + *ar\ archive*) # could be an import, or static
14696 + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
14697 + $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
14698 + win32_nmres=`eval $NM -f posix -A $1 | \
14699 + $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
14700 + case $win32_nmres in
14701 + import*) win32_libid_type="x86 archive import";;
14702 + *) win32_libid_type="x86 archive static";;
14703 + esac
14704 + fi
14705 + ;;
14706 + *DLL*)
14707 + win32_libid_type="x86 DLL"
14708 + ;;
14709 + *executable*) # but shell scripts are "executable" too...
14710 + case $win32_fileres in
14711 + *MS\ Windows\ PE\ Intel*)
14712 + win32_libid_type="x86 DLL"
14713 + ;;
14714 + esac
14715 + ;;
14716 + esac
14717 + $echo $win32_libid_type
14721 +# func_infer_tag arg
14722 +# Infer tagged configuration to use if any are available and
14723 +# if one wasn't chosen via the "--tag" command line option.
14724 +# Only attempt this if the compiler in the base compile
14725 +# command doesn't match the default compiler.
14726 +# arg is usually of the form 'gcc ...'
14727 +func_infer_tag ()
14729 + if test -n "$available_tags" && test -z "$tagname"; then
14730 + CC_quoted=
14731 + for arg in $CC; do
14732 + case $arg in
14733 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14734 + arg="\"$arg\""
14735 + ;;
14736 + esac
14737 + CC_quoted="$CC_quoted $arg"
14738 + done
14739 + case $@ in
14740 + # Blanks in the command may have been stripped by the calling shell,
14741 + # but not from the CC environment variable when configure was run.
14742 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
14743 + # Blanks at the start of $base_compile will cause this to fail
14744 + # if we don't check for them as well.
14745 + *)
14746 + for z in $available_tags; do
14747 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
14748 + # Evaluate the configuration.
14749 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
14750 + CC_quoted=
14751 + for arg in $CC; do
14752 + # Double-quote args containing other shell metacharacters.
14753 + case $arg in
14754 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14755 + arg="\"$arg\""
14756 + ;;
14757 + esac
14758 + CC_quoted="$CC_quoted $arg"
14759 + done
14760 + case "$@ " in
14761 + " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
14762 + # The compiler in the base compile command matches
14763 + # the one in the tagged configuration.
14764 + # Assume this is the tagged configuration we want.
14765 + tagname=$z
14766 + break
14767 + ;;
14768 + esac
14769 + fi
14770 + done
14771 + # If $tagname still isn't set, then no tagged configuration
14772 + # was found and let the user know that the "--tag" command
14773 + # line option must be used.
14774 + if test -z "$tagname"; then
14775 + $echo "$modename: unable to infer tagged configuration"
14776 + $echo "$modename: specify a tag with \`--tag'" 1>&2
14777 + exit $EXIT_FAILURE
14778 +# else
14779 +# $echo "$modename: using $tagname tagged configuration"
14780 + fi
14781 + ;;
14782 + esac
14783 + fi
14787 +# func_extract_an_archive dir oldlib
14788 +func_extract_an_archive ()
14790 + f_ex_an_ar_dir="$1"; shift
14791 + f_ex_an_ar_oldlib="$1"
14793 + $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
14794 + $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
14795 + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
14797 + else
14798 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
14799 + exit $EXIT_FAILURE
14800 + fi
14803 +# func_extract_archives gentop oldlib ...
14804 +func_extract_archives ()
14806 + my_gentop="$1"; shift
14807 + my_oldlibs=${1+"$@"}
14808 + my_oldobjs=""
14809 + my_xlib=""
14810 + my_xabs=""
14811 + my_xdir=""
14812 + my_status=""
14814 + $show "${rm}r $my_gentop"
14815 + $run ${rm}r "$my_gentop"
14816 + $show "$mkdir $my_gentop"
14817 + $run $mkdir "$my_gentop"
14818 + my_status=$?
14819 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
14820 + exit $my_status
14821 + fi
14823 + for my_xlib in $my_oldlibs; do
14824 + # Extract the objects.
14825 + case $my_xlib in
14826 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
14827 + *) my_xabs=`pwd`"/$my_xlib" ;;
14828 + esac
14829 + my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
14830 + my_xdir="$my_gentop/$my_xlib"
14832 + $show "${rm}r $my_xdir"
14833 + $run ${rm}r "$my_xdir"
14834 + $show "$mkdir $my_xdir"
14835 + $run $mkdir "$my_xdir"
14836 + exit_status=$?
14837 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
14838 + exit $exit_status
14839 + fi
14840 + case $host in
14841 + *-darwin*)
14842 + $show "Extracting $my_xabs"
14843 + # Do not bother doing anything if just a dry run
14844 + if test -z "$run"; then
14845 + darwin_orig_dir=`pwd`
14846 + cd $my_xdir || exit $?
14847 + darwin_archive=$my_xabs
14848 + darwin_curdir=`pwd`
14849 + darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
14850 + darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
14851 + if test -n "$darwin_arches"; then
14852 + darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
14853 + darwin_arch=
14854 + $show "$darwin_base_archive has multiple architectures $darwin_arches"
14855 + for darwin_arch in $darwin_arches ; do
14856 + mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
14857 + lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
14858 + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
14859 + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
14860 + cd "$darwin_curdir"
14861 + $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
14862 + done # $darwin_arches
14863 + ## Okay now we have a bunch of thin objects, gotta fatten them up :)
14864 + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
14865 + darwin_file=
14866 + darwin_files=
14867 + for darwin_file in $darwin_filelist; do
14868 + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
14869 + lipo -create -output "$darwin_file" $darwin_files
14870 + done # $darwin_filelist
14871 + ${rm}r unfat-$$
14872 + cd "$darwin_orig_dir"
14873 + else
14874 + cd "$darwin_orig_dir"
14875 + func_extract_an_archive "$my_xdir" "$my_xabs"
14876 + fi # $darwin_arches
14877 + fi # $run
14878 + ;;
14879 + *)
14880 + func_extract_an_archive "$my_xdir" "$my_xabs"
14881 + ;;
14882 + esac
14883 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
14884 + done
14885 + func_extract_archives_result="$my_oldobjs"
14887 +# End of Shell function definitions
14888 +#####################################
14890 +# Darwin sucks
14891 +eval std_shrext=\"$shrext_cmds\"
14893 +disable_libs=no
14895 +# Parse our command line options once, thoroughly.
14896 +while test "$#" -gt 0
14898 + arg="$1"
14899 + shift
14901 + case $arg in
14902 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
14903 + *) optarg= ;;
14904 + esac
14906 + # If the previous option needs an argument, assign it.
14907 + if test -n "$prev"; then
14908 + case $prev in
14909 + execute_dlfiles)
14910 + execute_dlfiles="$execute_dlfiles $arg"
14911 + ;;
14912 + tag)
14913 + tagname="$arg"
14914 + preserve_args="${preserve_args}=$arg"
14916 + # Check whether tagname contains only valid characters
14917 + case $tagname in
14918 + *[!-_A-Za-z0-9,/]*)
14919 + $echo "$progname: invalid tag name: $tagname" 1>&2
14920 + exit $EXIT_FAILURE
14921 + ;;
14922 + esac
14924 + case $tagname in
14925 + CC)
14926 + # Don't test for the "default" C tag, as we know, it's there, but
14927 + # not specially marked.
14928 + ;;
14929 + *)
14930 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
14931 + taglist="$taglist $tagname"
14932 + # Evaluate the configuration.
14933 + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
14934 + else
14935 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
14936 + fi
14937 + ;;
14938 + esac
14939 + ;;
14940 + *)
14941 + eval "$prev=\$arg"
14942 + ;;
14943 + esac
14945 + prev=
14946 + prevopt=
14947 + continue
14948 + fi
14950 + # Have we seen a non-optional argument yet?
14951 + case $arg in
14952 + --help)
14953 + show_help=yes
14954 + ;;
14956 + --version)
14957 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
14958 + $echo
14959 + $echo "Copyright (C) 2005 Free Software Foundation, Inc."
14960 + $echo "This is free software; see the source for copying conditions. There is NO"
14961 + $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
14962 + exit $?
14963 + ;;
14965 + --config)
14966 + ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
14967 + # Now print the configurations for the tags.
14968 + for tagname in $taglist; do
14969 + ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
14970 + done
14971 + exit $?
14972 + ;;
14974 + --debug)
14975 + $echo "$progname: enabling shell trace mode"
14976 + set -x
14977 + preserve_args="$preserve_args $arg"
14978 + ;;
14980 + --dry-run | -n)
14981 + run=:
14982 + ;;
14984 + --features)
14985 + $echo "host: $host"
14986 + if test "$build_libtool_libs" = yes; then
14987 + $echo "enable shared libraries"
14988 + else
14989 + $echo "disable shared libraries"
14990 + fi
14991 + if test "$build_old_libs" = yes; then
14992 + $echo "enable static libraries"
14993 + else
14994 + $echo "disable static libraries"
14995 + fi
14996 + exit $?
14997 + ;;
14999 + --finish) mode="finish" ;;
15001 + --mode) prevopt="--mode" prev=mode ;;
15002 + --mode=*) mode="$optarg" ;;
15004 + --preserve-dup-deps) duplicate_deps="yes" ;;
15006 + --quiet | --silent)
15007 + show=:
15008 + preserve_args="$preserve_args $arg"
15009 + ;;
15011 + --tag)
15012 + prevopt="--tag"
15013 + prev=tag
15014 + preserve_args="$preserve_args --tag"
15015 + ;;
15016 + --tag=*)
15017 + set tag "$optarg" ${1+"$@"}
15018 + shift
15019 + prev=tag
15020 + preserve_args="$preserve_args --tag"
15021 + ;;
15023 + -dlopen)
15024 + prevopt="-dlopen"
15025 + prev=execute_dlfiles
15026 + ;;
15028 + -*)
15029 + $echo "$modename: unrecognized option \`$arg'" 1>&2
15030 + $echo "$help" 1>&2
15031 + exit $EXIT_FAILURE
15032 + ;;
15034 + *)
15035 + nonopt="$arg"
15036 + break
15037 + ;;
15038 + esac
15039 +done
15041 +if test -n "$prevopt"; then
15042 + $echo "$modename: option \`$prevopt' requires an argument" 1>&2
15043 + $echo "$help" 1>&2
15044 + exit $EXIT_FAILURE
15047 +case $disable_libs in
15048 +no)
15049 + ;;
15050 +shared)
15051 + build_libtool_libs=no
15052 + build_old_libs=yes
15053 + ;;
15054 +static)
15055 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
15056 + ;;
15057 +esac
15059 +# If this variable is set in any of the actions, the command in it
15060 +# will be execed at the end. This prevents here-documents from being
15061 +# left over by shells.
15062 +exec_cmd=
15064 +if test -z "$show_help"; then
15066 + # Infer the operation mode.
15067 + if test -z "$mode"; then
15068 + $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
15069 + $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
15070 + case $nonopt in
15071 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
15072 + mode=link
15073 + for arg
15074 + do
15075 + case $arg in
15076 + -c)
15077 + mode=compile
15078 + break
15079 + ;;
15080 + esac
15081 + done
15082 + ;;
15083 + *db | *dbx | *strace | *truss)
15084 + mode=execute
15085 + ;;
15086 + *install*|cp|mv)
15087 + mode=install
15088 + ;;
15089 + *rm)
15090 + mode=uninstall
15091 + ;;
15092 + *)
15093 + # If we have no mode, but dlfiles were specified, then do execute mode.
15094 + test -n "$execute_dlfiles" && mode=execute
15096 + # Just use the default operation mode.
15097 + if test -z "$mode"; then
15098 + if test -n "$nonopt"; then
15099 + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
15100 + else
15101 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
15102 + fi
15103 + fi
15104 + ;;
15105 + esac
15106 + fi
15108 + # Only execute mode is allowed to have -dlopen flags.
15109 + if test -n "$execute_dlfiles" && test "$mode" != execute; then
15110 + $echo "$modename: unrecognized option \`-dlopen'" 1>&2
15111 + $echo "$help" 1>&2
15112 + exit $EXIT_FAILURE
15113 + fi
15115 + # Change the help message to a mode-specific one.
15116 + generic_help="$help"
15117 + help="Try \`$modename --help --mode=$mode' for more information."
15119 + # These modes are in order of execution frequency so that they run quickly.
15120 + case $mode in
15121 + # libtool compile mode
15122 + compile)
15123 + modename="$modename: compile"
15124 + # Get the compilation command and the source file.
15125 + base_compile=
15126 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
15127 + suppress_opt=yes
15128 + suppress_output=
15129 + arg_mode=normal
15130 + libobj=
15131 + later=
15133 + for arg
15134 + do
15135 + case $arg_mode in
15136 + arg )
15137 + # do not "continue". Instead, add this to base_compile
15138 + lastarg="$arg"
15139 + arg_mode=normal
15140 + ;;
15142 + target )
15143 + libobj="$arg"
15144 + arg_mode=normal
15145 + continue
15146 + ;;
15148 + normal )
15149 + # Accept any command-line options.
15150 + case $arg in
15151 + -o)
15152 + if test -n "$libobj" ; then
15153 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
15154 + exit $EXIT_FAILURE
15155 + fi
15156 + arg_mode=target
15157 + continue
15158 + ;;
15160 + -static | -prefer-pic | -prefer-non-pic)
15161 + later="$later $arg"
15162 + continue
15163 + ;;
15165 + -no-suppress)
15166 + suppress_opt=no
15167 + continue
15168 + ;;
15170 + -Xcompiler)
15171 + arg_mode=arg # the next one goes into the "base_compile" arg list
15172 + continue # The current "srcfile" will either be retained or
15173 + ;; # replaced later. I would guess that would be a bug.
15175 + -Wc,*)
15176 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
15177 + lastarg=
15178 + save_ifs="$IFS"; IFS=','
15179 + for arg in $args; do
15180 + IFS="$save_ifs"
15182 + # Double-quote args containing other shell metacharacters.
15183 + # Many Bourne shells cannot handle close brackets correctly
15184 + # in scan sets, so we specify it separately.
15185 + case $arg in
15186 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15187 + arg="\"$arg\""
15188 + ;;
15189 + esac
15190 + lastarg="$lastarg $arg"
15191 + done
15192 + IFS="$save_ifs"
15193 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
15195 + # Add the arguments to base_compile.
15196 + base_compile="$base_compile $lastarg"
15197 + continue
15198 + ;;
15200 + * )
15201 + # Accept the current argument as the source file.
15202 + # The previous "srcfile" becomes the current argument.
15204 + lastarg="$srcfile"
15205 + srcfile="$arg"
15206 + ;;
15207 + esac # case $arg
15208 + ;;
15209 + esac # case $arg_mode
15211 + # Aesthetically quote the previous argument.
15212 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
15214 + case $lastarg in
15215 + # Double-quote args containing other shell metacharacters.
15216 + # Many Bourne shells cannot handle close brackets correctly
15217 + # in scan sets, and some SunOS ksh mistreat backslash-escaping
15218 + # in scan sets (worked around with variable expansion),
15219 + # and furthermore cannot handle '|' '&' '(' ')' in scan sets
15220 + # at all, so we specify them separately.
15221 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15222 + lastarg="\"$lastarg\""
15223 + ;;
15224 + esac
15226 + base_compile="$base_compile $lastarg"
15227 + done # for arg
15229 + case $arg_mode in
15230 + arg)
15231 + $echo "$modename: you must specify an argument for -Xcompile"
15232 + exit $EXIT_FAILURE
15233 + ;;
15234 + target)
15235 + $echo "$modename: you must specify a target with \`-o'" 1>&2
15236 + exit $EXIT_FAILURE
15237 + ;;
15238 + *)
15239 + # Get the name of the library object.
15240 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
15241 + ;;
15242 + esac
15244 + # Recognize several different file suffixes.
15245 + # If the user specifies -o file.o, it is replaced with file.lo
15246 + xform='[cCFSifmso]'
15247 + case $libobj in
15248 + *.ada) xform=ada ;;
15249 + *.adb) xform=adb ;;
15250 + *.ads) xform=ads ;;
15251 + *.asm) xform=asm ;;
15252 + *.c++) xform=c++ ;;
15253 + *.cc) xform=cc ;;
15254 + *.ii) xform=ii ;;
15255 + *.class) xform=class ;;
15256 + *.cpp) xform=cpp ;;
15257 + *.cxx) xform=cxx ;;
15258 + *.f90) xform=f90 ;;
15259 + *.for) xform=for ;;
15260 + *.java) xform=java ;;
15261 + esac
15263 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
15265 + case $libobj in
15266 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
15267 + *)
15268 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
15269 + exit $EXIT_FAILURE
15270 + ;;
15271 + esac
15273 + func_infer_tag $base_compile
15275 + for arg in $later; do
15276 + case $arg in
15277 + -static)
15278 + build_old_libs=yes
15279 + continue
15280 + ;;
15282 + -prefer-pic)
15283 + pic_mode=yes
15284 + continue
15285 + ;;
15287 + -prefer-non-pic)
15288 + pic_mode=no
15289 + continue
15290 + ;;
15291 + esac
15292 + done
15294 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
15295 + case $qlibobj in
15296 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15297 + qlibobj="\"$qlibobj\"" ;;
15298 + esac
15299 + test "X$libobj" != "X$qlibobj" \
15300 + && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
15301 + && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
15302 + objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
15303 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
15304 + if test "X$xdir" = "X$obj"; then
15305 + xdir=
15306 + else
15307 + xdir=$xdir/
15308 + fi
15309 + lobj=${xdir}$objdir/$objname
15311 + if test -z "$base_compile"; then
15312 + $echo "$modename: you must specify a compilation command" 1>&2
15313 + $echo "$help" 1>&2
15314 + exit $EXIT_FAILURE
15315 + fi
15317 + # Delete any leftover library objects.
15318 + if test "$build_old_libs" = yes; then
15319 + removelist="$obj $lobj $libobj ${libobj}T"
15320 + else
15321 + removelist="$lobj $libobj ${libobj}T"
15322 + fi
15324 + $run $rm $removelist
15325 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
15327 + # On Cygwin there's no "real" PIC flag so we must build both object types
15328 + case $host_os in
15329 + cygwin* | mingw* | pw32* | os2*)
15330 + pic_mode=default
15331 + ;;
15332 + esac
15333 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
15334 + # non-PIC code in shared libraries is not supported
15335 + pic_mode=default
15336 + fi
15338 + # Calculate the filename of the output object if compiler does
15339 + # not support -o with -c
15340 + if test "$compiler_c_o" = no; then
15341 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
15342 + lockfile="$output_obj.lock"
15343 + removelist="$removelist $output_obj $lockfile"
15344 + trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
15345 + else
15346 + output_obj=
15347 + need_locks=no
15348 + lockfile=
15349 + fi
15351 + # Lock this critical section if it is needed
15352 + # We use this script file to make the link, it avoids creating a new file
15353 + if test "$need_locks" = yes; then
15354 + until $run ln "$progpath" "$lockfile" 2>/dev/null; do
15355 + $show "Waiting for $lockfile to be removed"
15356 + sleep 2
15357 + done
15358 + elif test "$need_locks" = warn; then
15359 + if test -f "$lockfile"; then
15360 + $echo "\
15361 +*** ERROR, $lockfile exists and contains:
15362 +`cat $lockfile 2>/dev/null`
15364 +This indicates that another process is trying to use the same
15365 +temporary object file, and libtool could not work around it because
15366 +your compiler does not support \`-c' and \`-o' together. If you
15367 +repeat this compilation, it may succeed, by chance, but you had better
15368 +avoid parallel builds (make -j) in this platform, or get a better
15369 +compiler."
15371 + $run $rm $removelist
15372 + exit $EXIT_FAILURE
15373 + fi
15374 + $echo "$srcfile" > "$lockfile"
15375 + fi
15377 + if test -n "$fix_srcfile_path"; then
15378 + eval srcfile=\"$fix_srcfile_path\"
15379 + fi
15380 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
15381 + case $qsrcfile in
15382 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15383 + qsrcfile="\"$qsrcfile\"" ;;
15384 + esac
15386 + $run $rm "$libobj" "${libobj}T"
15388 + # Create a libtool object file (analogous to a ".la" file),
15389 + # but don't create it if we're doing a dry run.
15390 + test -z "$run" && cat > ${libobj}T <<EOF
15391 +# $libobj - a libtool object file
15392 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
15394 +# Please DO NOT delete this file!
15395 +# It is necessary for linking the library.
15397 +# Name of the PIC object.
15398 +EOF
15400 + # Only build a PIC object if we are building libtool libraries.
15401 + if test "$build_libtool_libs" = yes; then
15402 + # Without this assignment, base_compile gets emptied.
15403 + fbsd_hideous_sh_bug=$base_compile
15405 + if test "$pic_mode" != no; then
15406 + command="$base_compile $qsrcfile $pic_flag"
15407 + else
15408 + # Don't build PIC code
15409 + command="$base_compile $qsrcfile"
15410 + fi
15412 + if test ! -d "${xdir}$objdir"; then
15413 + $show "$mkdir ${xdir}$objdir"
15414 + $run $mkdir ${xdir}$objdir
15415 + exit_status=$?
15416 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
15417 + exit $exit_status
15418 + fi
15419 + fi
15421 + if test -z "$output_obj"; then
15422 + # Place PIC objects in $objdir
15423 + command="$command -o $lobj"
15424 + fi
15426 + $run $rm "$lobj" "$output_obj"
15428 + $show "$command"
15429 + if $run eval "$command"; then :
15430 + else
15431 + test -n "$output_obj" && $run $rm $removelist
15432 + exit $EXIT_FAILURE
15433 + fi
15435 + if test "$need_locks" = warn &&
15436 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
15437 + $echo "\
15438 +*** ERROR, $lockfile contains:
15439 +`cat $lockfile 2>/dev/null`
15441 +but it should contain:
15442 +$srcfile
15444 +This indicates that another process is trying to use the same
15445 +temporary object file, and libtool could not work around it because
15446 +your compiler does not support \`-c' and \`-o' together. If you
15447 +repeat this compilation, it may succeed, by chance, but you had better
15448 +avoid parallel builds (make -j) in this platform, or get a better
15449 +compiler."
15451 + $run $rm $removelist
15452 + exit $EXIT_FAILURE
15453 + fi
15455 + # Just move the object if needed, then go on to compile the next one
15456 + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
15457 + $show "$mv $output_obj $lobj"
15458 + if $run $mv $output_obj $lobj; then :
15459 + else
15460 + error=$?
15461 + $run $rm $removelist
15462 + exit $error
15463 + fi
15464 + fi
15466 + # Append the name of the PIC object to the libtool object file.
15467 + test -z "$run" && cat >> ${libobj}T <<EOF
15468 +pic_object='$objdir/$objname'
15470 +EOF
15472 + # Allow error messages only from the first compilation.
15473 + if test "$suppress_opt" = yes; then
15474 + suppress_output=' >/dev/null 2>&1'
15475 + fi
15476 + else
15477 + # No PIC object so indicate it doesn't exist in the libtool
15478 + # object file.
15479 + test -z "$run" && cat >> ${libobj}T <<EOF
15480 +pic_object=none
15482 +EOF
15483 + fi
15485 + # Only build a position-dependent object if we build old libraries.
15486 + if test "$build_old_libs" = yes; then
15487 + if test "$pic_mode" != yes; then
15488 + # Don't build PIC code
15489 + command="$base_compile $qsrcfile"
15490 + else
15491 + command="$base_compile $qsrcfile $pic_flag"
15492 + fi
15493 + if test "$compiler_c_o" = yes; then
15494 + command="$command -o $obj"
15495 + fi
15497 + # Suppress compiler output if we already did a PIC compilation.
15498 + command="$command$suppress_output"
15499 + $run $rm "$obj" "$output_obj"
15500 + $show "$command"
15501 + if $run eval "$command"; then :
15502 + else
15503 + $run $rm $removelist
15504 + exit $EXIT_FAILURE
15505 + fi
15507 + if test "$need_locks" = warn &&
15508 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
15509 + $echo "\
15510 +*** ERROR, $lockfile contains:
15511 +`cat $lockfile 2>/dev/null`
15513 +but it should contain:
15514 +$srcfile
15516 +This indicates that another process is trying to use the same
15517 +temporary object file, and libtool could not work around it because
15518 +your compiler does not support \`-c' and \`-o' together. If you
15519 +repeat this compilation, it may succeed, by chance, but you had better
15520 +avoid parallel builds (make -j) in this platform, or get a better
15521 +compiler."
15523 + $run $rm $removelist
15524 + exit $EXIT_FAILURE
15525 + fi
15527 + # Just move the object if needed
15528 + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
15529 + $show "$mv $output_obj $obj"
15530 + if $run $mv $output_obj $obj; then :
15531 + else
15532 + error=$?
15533 + $run $rm $removelist
15534 + exit $error
15535 + fi
15536 + fi
15538 + # Append the name of the non-PIC object the libtool object file.
15539 + # Only append if the libtool object file exists.
15540 + test -z "$run" && cat >> ${libobj}T <<EOF
15541 +# Name of the non-PIC object.
15542 +non_pic_object='$objname'
15544 +EOF
15545 + else
15546 + # Append the name of the non-PIC object the libtool object file.
15547 + # Only append if the libtool object file exists.
15548 + test -z "$run" && cat >> ${libobj}T <<EOF
15549 +# Name of the non-PIC object.
15550 +non_pic_object=none
15552 +EOF
15553 + fi
15555 + $run $mv "${libobj}T" "${libobj}"
15557 + # Unlock the critical section if it was locked
15558 + if test "$need_locks" != no; then
15559 + $run $rm "$lockfile"
15560 + fi
15562 + exit $EXIT_SUCCESS
15563 + ;;
15565 + # libtool link mode
15566 + link | relink)
15567 + modename="$modename: link"
15568 + case $host in
15569 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
15570 + # It is impossible to link a dll without this setting, and
15571 + # we shouldn't force the makefile maintainer to figure out
15572 + # which system we are compiling for in order to pass an extra
15573 + # flag for every libtool invocation.
15574 + # allow_undefined=no
15576 + # FIXME: Unfortunately, there are problems with the above when trying
15577 + # to make a dll which has undefined symbols, in which case not
15578 + # even a static library is built. For now, we need to specify
15579 + # -no-undefined on the libtool link line when we can be certain
15580 + # that all symbols are satisfied, otherwise we get a static library.
15581 + allow_undefined=yes
15582 + ;;
15583 + *)
15584 + allow_undefined=yes
15585 + ;;
15586 + esac
15587 + libtool_args="$nonopt"
15588 + base_compile="$nonopt $@"
15589 + compile_command="$nonopt"
15590 + finalize_command="$nonopt"
15592 + compile_rpath=
15593 + finalize_rpath=
15594 + compile_shlibpath=
15595 + finalize_shlibpath=
15596 + convenience=
15597 + old_convenience=
15598 + deplibs=
15599 + old_deplibs=
15600 + compiler_flags=
15601 + linker_flags=
15602 + dllsearchpath=
15603 + lib_search_path=`pwd`
15604 + inst_prefix_dir=
15606 + avoid_version=no
15607 + dlfiles=
15608 + dlprefiles=
15609 + dlself=no
15610 + export_dynamic=no
15611 + export_symbols=
15612 + export_symbols_regex=
15613 + generated=
15614 + libobjs=
15615 + ltlibs=
15616 + module=no
15617 + no_install=no
15618 + objs=
15619 + non_pic_objects=
15620 + notinst_path= # paths that contain not-installed libtool libraries
15621 + precious_files_regex=
15622 + prefer_static_libs=no
15623 + preload=no
15624 + prev=
15625 + prevarg=
15626 + release=
15627 + rpath=
15628 + xrpath=
15629 + perm_rpath=
15630 + temp_rpath=
15631 + thread_safe=no
15632 + vinfo=
15633 + vinfo_number=no
15635 + func_infer_tag $base_compile
15637 + # We need to know -static, to get the right output filenames.
15638 + for arg
15639 + do
15640 + case $arg in
15641 + -all-static | -static)
15642 + if test "X$arg" = "X-all-static"; then
15643 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
15644 + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
15645 + fi
15646 + if test -n "$link_static_flag"; then
15647 + dlopen_self=$dlopen_self_static
15648 + fi
15649 + prefer_static_libs=yes
15650 + else
15651 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
15652 + dlopen_self=$dlopen_self_static
15653 + fi
15654 + prefer_static_libs=built
15655 + fi
15656 + build_libtool_libs=no
15657 + build_old_libs=yes
15658 + break
15659 + ;;
15660 + esac
15661 + done
15663 + # See if our shared archives depend on static archives.
15664 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
15666 + # Go through the arguments, transforming them on the way.
15667 + while test "$#" -gt 0; do
15668 + arg="$1"
15669 + shift
15670 + case $arg in
15671 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15672 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
15673 + ;;
15674 + *) qarg=$arg ;;
15675 + esac
15676 + libtool_args="$libtool_args $qarg"
15678 + # If the previous option needs an argument, assign it.
15679 + if test -n "$prev"; then
15680 + case $prev in
15681 + output)
15682 + compile_command="$compile_command @OUTPUT@"
15683 + finalize_command="$finalize_command @OUTPUT@"
15684 + ;;
15685 + esac
15687 + case $prev in
15688 + dlfiles|dlprefiles)
15689 + if test "$preload" = no; then
15690 + # Add the symbol object into the linking commands.
15691 + compile_command="$compile_command @SYMFILE@"
15692 + finalize_command="$finalize_command @SYMFILE@"
15693 + preload=yes
15694 + fi
15695 + case $arg in
15696 + *.la | *.lo) ;; # We handle these cases below.
15697 + force)
15698 + if test "$dlself" = no; then
15699 + dlself=needless
15700 + export_dynamic=yes
15701 + fi
15702 + prev=
15703 + continue
15704 + ;;
15705 + self)
15706 + if test "$prev" = dlprefiles; then
15707 + dlself=yes
15708 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
15709 + dlself=yes
15710 + else
15711 + dlself=needless
15712 + export_dynamic=yes
15713 + fi
15714 + prev=
15715 + continue
15716 + ;;
15717 + *)
15718 + if test "$prev" = dlfiles; then
15719 + dlfiles="$dlfiles $arg"
15720 + else
15721 + dlprefiles="$dlprefiles $arg"
15722 + fi
15723 + prev=
15724 + continue
15725 + ;;
15726 + esac
15727 + ;;
15728 + expsyms)
15729 + export_symbols="$arg"
15730 + if test ! -f "$arg"; then
15731 + $echo "$modename: symbol file \`$arg' does not exist"
15732 + exit $EXIT_FAILURE
15733 + fi
15734 + prev=
15735 + continue
15736 + ;;
15737 + expsyms_regex)
15738 + export_symbols_regex="$arg"
15739 + prev=
15740 + continue
15741 + ;;
15742 + inst_prefix)
15743 + inst_prefix_dir="$arg"
15744 + prev=
15745 + continue
15746 + ;;
15747 + precious_regex)
15748 + precious_files_regex="$arg"
15749 + prev=
15750 + continue
15751 + ;;
15752 + release)
15753 + release="-$arg"
15754 + prev=
15755 + continue
15756 + ;;
15757 + objectlist)
15758 + if test -f "$arg"; then
15759 + save_arg=$arg
15760 + moreargs=
15761 + for fil in `cat $save_arg`
15762 + do
15763 +# moreargs="$moreargs $fil"
15764 + arg=$fil
15765 + # A libtool-controlled object.
15767 + # Check to see that this really is a libtool object.
15768 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
15769 + pic_object=
15770 + non_pic_object=
15772 + # Read the .lo file
15773 + # If there is no directory component, then add one.
15774 + case $arg in
15775 + */* | *\\*) . $arg ;;
15776 + *) . ./$arg ;;
15777 + esac
15779 + if test -z "$pic_object" || \
15780 + test -z "$non_pic_object" ||
15781 + test "$pic_object" = none && \
15782 + test "$non_pic_object" = none; then
15783 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
15784 + exit $EXIT_FAILURE
15785 + fi
15787 + # Extract subdirectory from the argument.
15788 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
15789 + if test "X$xdir" = "X$arg"; then
15790 + xdir=
15791 + else
15792 + xdir="$xdir/"
15793 + fi
15795 + if test "$pic_object" != none; then
15796 + # Prepend the subdirectory the object is found in.
15797 + pic_object="$xdir$pic_object"
15799 + if test "$prev" = dlfiles; then
15800 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
15801 + dlfiles="$dlfiles $pic_object"
15802 + prev=
15803 + continue
15804 + else
15805 + # If libtool objects are unsupported, then we need to preload.
15806 + prev=dlprefiles
15807 + fi
15808 + fi
15810 + # CHECK ME: I think I busted this. -Ossama
15811 + if test "$prev" = dlprefiles; then
15812 + # Preload the old-style object.
15813 + dlprefiles="$dlprefiles $pic_object"
15814 + prev=
15815 + fi
15817 + # A PIC object.
15818 + libobjs="$libobjs $pic_object"
15819 + arg="$pic_object"
15820 + fi
15822 + # Non-PIC object.
15823 + if test "$non_pic_object" != none; then
15824 + # Prepend the subdirectory the object is found in.
15825 + non_pic_object="$xdir$non_pic_object"
15827 + # A standard non-PIC object
15828 + non_pic_objects="$non_pic_objects $non_pic_object"
15829 + if test -z "$pic_object" || test "$pic_object" = none ; then
15830 + arg="$non_pic_object"
15831 + fi
15832 + else
15833 + # If the PIC object exists, use it instead.
15834 + # $xdir was prepended to $pic_object above.
15835 + non_pic_object="$pic_object"
15836 + non_pic_objects="$non_pic_objects $non_pic_object"
15837 + fi
15838 + else
15839 + # Only an error if not doing a dry-run.
15840 + if test -z "$run"; then
15841 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
15842 + exit $EXIT_FAILURE
15843 + else
15844 + # Dry-run case.
15846 + # Extract subdirectory from the argument.
15847 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
15848 + if test "X$xdir" = "X$arg"; then
15849 + xdir=
15850 + else
15851 + xdir="$xdir/"
15852 + fi
15854 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
15855 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
15856 + libobjs="$libobjs $pic_object"
15857 + non_pic_objects="$non_pic_objects $non_pic_object"
15858 + fi
15859 + fi
15860 + done
15861 + else
15862 + $echo "$modename: link input file \`$save_arg' does not exist"
15863 + exit $EXIT_FAILURE
15864 + fi
15865 + arg=$save_arg
15866 + prev=
15867 + continue
15868 + ;;
15869 + rpath | xrpath)
15870 + # We need an absolute path.
15871 + case $arg in
15872 + [\\/]* | [A-Za-z]:[\\/]*) ;;
15873 + *)
15874 + $echo "$modename: only absolute run-paths are allowed" 1>&2
15875 + exit $EXIT_FAILURE
15876 + ;;
15877 + esac
15878 + if test "$prev" = rpath; then
15879 + case "$rpath " in
15880 + *" $arg "*) ;;
15881 + *) rpath="$rpath $arg" ;;
15882 + esac
15883 + else
15884 + case "$xrpath " in
15885 + *" $arg "*) ;;
15886 + *) xrpath="$xrpath $arg" ;;
15887 + esac
15888 + fi
15889 + prev=
15890 + continue
15891 + ;;
15892 + xcompiler)
15893 + compiler_flags="$compiler_flags $qarg"
15894 + prev=
15895 + compile_command="$compile_command $qarg"
15896 + finalize_command="$finalize_command $qarg"
15897 + continue
15898 + ;;
15899 + xlinker)
15900 + linker_flags="$linker_flags $qarg"
15901 + compiler_flags="$compiler_flags $wl$qarg"
15902 + prev=
15903 + compile_command="$compile_command $wl$qarg"
15904 + finalize_command="$finalize_command $wl$qarg"
15905 + continue
15906 + ;;
15907 + xcclinker)
15908 + linker_flags="$linker_flags $qarg"
15909 + compiler_flags="$compiler_flags $qarg"
15910 + prev=
15911 + compile_command="$compile_command $qarg"
15912 + finalize_command="$finalize_command $qarg"
15913 + continue
15914 + ;;
15915 + shrext)
15916 + shrext_cmds="$arg"
15917 + prev=
15918 + continue
15919 + ;;
15920 + darwin_framework|darwin_framework_skip)
15921 + test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
15922 + compile_command="$compile_command $arg"
15923 + finalize_command="$finalize_command $arg"
15924 + prev=
15925 + continue
15926 + ;;
15927 + *)
15928 + eval "$prev=\"\$arg\""
15929 + prev=
15930 + continue
15931 + ;;
15932 + esac
15933 + fi # test -n "$prev"
15935 + prevarg="$arg"
15937 + case $arg in
15938 + -all-static)
15939 + if test -n "$link_static_flag"; then
15940 + compile_command="$compile_command $link_static_flag"
15941 + finalize_command="$finalize_command $link_static_flag"
15942 + fi
15943 + continue
15944 + ;;
15946 + -allow-undefined)
15947 + # FIXME: remove this flag sometime in the future.
15948 + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
15949 + continue
15950 + ;;
15952 + -avoid-version)
15953 + avoid_version=yes
15954 + continue
15955 + ;;
15957 + -dlopen)
15958 + prev=dlfiles
15959 + continue
15960 + ;;
15962 + -dlpreopen)
15963 + prev=dlprefiles
15964 + continue
15965 + ;;
15967 + -export-dynamic)
15968 + export_dynamic=yes
15969 + continue
15970 + ;;
15972 + -export-symbols | -export-symbols-regex)
15973 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
15974 + $echo "$modename: more than one -exported-symbols argument is not allowed"
15975 + exit $EXIT_FAILURE
15976 + fi
15977 + if test "X$arg" = "X-export-symbols"; then
15978 + prev=expsyms
15979 + else
15980 + prev=expsyms_regex
15981 + fi
15982 + continue
15983 + ;;
15985 + -framework|-arch|-isysroot)
15986 + case " $CC " in
15987 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
15988 + prev=darwin_framework_skip ;;
15989 + *) compiler_flags="$compiler_flags $arg"
15990 + prev=darwin_framework ;;
15991 + esac
15992 + compile_command="$compile_command $arg"
15993 + finalize_command="$finalize_command $arg"
15994 + continue
15995 + ;;
15997 + -inst-prefix-dir)
15998 + prev=inst_prefix
15999 + continue
16000 + ;;
16002 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
16003 + # so, if we see these flags be careful not to treat them like -L
16004 + -L[A-Z][A-Z]*:*)
16005 + case $with_gcc/$host in
16006 + no/*-*-irix* | /*-*-irix*)
16007 + compile_command="$compile_command $arg"
16008 + finalize_command="$finalize_command $arg"
16009 + ;;
16010 + esac
16011 + continue
16012 + ;;
16014 + -L*)
16015 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
16016 + # We need an absolute path.
16017 + case $dir in
16018 + [\\/]* | [A-Za-z]:[\\/]*) ;;
16019 + *)
16020 + absdir=`cd "$dir" && pwd`
16021 + if test -z "$absdir"; then
16022 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
16023 + absdir="$dir"
16024 + notinst_path="$notinst_path $dir"
16025 + fi
16026 + dir="$absdir"
16027 + ;;
16028 + esac
16029 + case "$deplibs " in
16030 + *" -L$dir "*) ;;
16031 + *)
16032 + deplibs="$deplibs -L$dir"
16033 + lib_search_path="$lib_search_path $dir"
16034 + ;;
16035 + esac
16036 + case $host in
16037 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
16038 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
16039 + case :$dllsearchpath: in
16040 + *":$dir:"*) ;;
16041 + *) dllsearchpath="$dllsearchpath:$dir";;
16042 + esac
16043 + case :$dllsearchpath: in
16044 + *":$testbindir:"*) ;;
16045 + *) dllsearchpath="$dllsearchpath:$testbindir";;
16046 + esac
16047 + ;;
16048 + esac
16049 + continue
16050 + ;;
16052 + -l*)
16053 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
16054 + case $host in
16055 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
16056 + # These systems don't actually have a C or math library (as such)
16057 + continue
16058 + ;;
16059 + *-*-os2*)
16060 + # These systems don't actually have a C library (as such)
16061 + test "X$arg" = "X-lc" && continue
16062 + ;;
16063 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
16064 + # Do not include libc due to us having libc/libc_r.
16065 + test "X$arg" = "X-lc" && continue
16066 + ;;
16067 + *-*-rhapsody* | *-*-darwin1.[012])
16068 + # Rhapsody C and math libraries are in the System framework
16069 + deplibs="$deplibs -framework System"
16070 + continue
16071 + ;;
16072 + *-*-sco3.2v5* | *-*-sco5v6*)
16073 + # Causes problems with __ctype
16074 + test "X$arg" = "X-lc" && continue
16075 + ;;
16076 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
16077 + # Compiler inserts libc in the correct place for threads to work
16078 + test "X$arg" = "X-lc" && continue
16079 + ;;
16080 + esac
16081 + elif test "X$arg" = "X-lc_r"; then
16082 + case $host in
16083 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
16084 + # Do not include libc_r directly, use -pthread flag.
16085 + continue
16086 + ;;
16087 + esac
16088 + fi
16089 + deplibs="$deplibs $arg"
16090 + continue
16091 + ;;
16093 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
16094 + # classes, name mangling, and exception handling.
16095 + -model)
16096 + compile_command="$compile_command $arg"
16097 + compiler_flags="$compiler_flags $arg"
16098 + finalize_command="$finalize_command $arg"
16099 + prev=xcompiler
16100 + continue
16101 + ;;
16103 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
16104 + compiler_flags="$compiler_flags $arg"
16105 + compile_command="$compile_command $arg"
16106 + finalize_command="$finalize_command $arg"
16107 + continue
16108 + ;;
16110 + -module)
16111 + module=yes
16112 + continue
16113 + ;;
16115 + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
16116 + # -r[0-9][0-9]* specifies the processor on the SGI compiler
16117 + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
16118 + # +DA*, +DD* enable 64-bit mode on the HP compiler
16119 + # -q* pass through compiler args for the IBM compiler
16120 + # -m* pass through architecture-specific compiler args for GCC
16121 + # -m*, -t[45]*, -txscale* pass through architecture-specific
16122 + # compiler args for GCC
16123 + # -pg pass through profiling flag for GCC
16124 + # @file GCC response files
16125 + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
16126 + -t[45]*|-txscale*|@*)
16128 + # Unknown arguments in both finalize_command and compile_command need
16129 + # to be aesthetically quoted because they are evaled later.
16130 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
16131 + case $arg in
16132 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16133 + arg="\"$arg\""
16134 + ;;
16135 + esac
16136 + compile_command="$compile_command $arg"
16137 + finalize_command="$finalize_command $arg"
16138 + compiler_flags="$compiler_flags $arg"
16139 + continue
16140 + ;;
16142 + -shrext)
16143 + prev=shrext
16144 + continue
16145 + ;;
16147 + -no-fast-install)
16148 + fast_install=no
16149 + continue
16150 + ;;
16152 + -no-install)
16153 + case $host in
16154 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
16155 + # The PATH hackery in wrapper scripts is required on Windows
16156 + # in order for the loader to find any dlls it needs.
16157 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
16158 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
16159 + fast_install=no
16160 + ;;
16161 + *) no_install=yes ;;
16162 + esac
16163 + continue
16164 + ;;
16166 + -no-undefined)
16167 + allow_undefined=no
16168 + continue
16169 + ;;
16171 + -objectlist)
16172 + prev=objectlist
16173 + continue
16174 + ;;
16176 + -o) prev=output ;;
16178 + -precious-files-regex)
16179 + prev=precious_regex
16180 + continue
16181 + ;;
16183 + -release)
16184 + prev=release
16185 + continue
16186 + ;;
16188 + -rpath)
16189 + prev=rpath
16190 + continue
16191 + ;;
16193 + -R)
16194 + prev=xrpath
16195 + continue
16196 + ;;
16198 + -R*)
16199 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
16200 + # We need an absolute path.
16201 + case $dir in
16202 + [\\/]* | [A-Za-z]:[\\/]*) ;;
16203 + *)
16204 + $echo "$modename: only absolute run-paths are allowed" 1>&2
16205 + exit $EXIT_FAILURE
16206 + ;;
16207 + esac
16208 + case "$xrpath " in
16209 + *" $dir "*) ;;
16210 + *) xrpath="$xrpath $dir" ;;
16211 + esac
16212 + continue
16213 + ;;
16215 + -static)
16216 + # The effects of -static are defined in a previous loop.
16217 + # We used to do the same as -all-static on platforms that
16218 + # didn't have a PIC flag, but the assumption that the effects
16219 + # would be equivalent was wrong. It would break on at least
16220 + # Digital Unix and AIX.
16221 + continue
16222 + ;;
16224 + -thread-safe)
16225 + thread_safe=yes
16226 + continue
16227 + ;;
16229 + -version-info)
16230 + prev=vinfo
16231 + continue
16232 + ;;
16233 + -version-number)
16234 + prev=vinfo
16235 + vinfo_number=yes
16236 + continue
16237 + ;;
16239 + -Wc,*)
16240 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
16241 + arg=
16242 + save_ifs="$IFS"; IFS=','
16243 + for flag in $args; do
16244 + IFS="$save_ifs"
16245 + case $flag in
16246 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16247 + flag="\"$flag\""
16248 + ;;
16249 + esac
16250 + arg="$arg $wl$flag"
16251 + compiler_flags="$compiler_flags $flag"
16252 + done
16253 + IFS="$save_ifs"
16254 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
16255 + ;;
16257 + -Wl,*)
16258 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
16259 + arg=
16260 + save_ifs="$IFS"; IFS=','
16261 + for flag in $args; do
16262 + IFS="$save_ifs"
16263 + case $flag in
16264 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16265 + flag="\"$flag\""
16266 + ;;
16267 + esac
16268 + arg="$arg $wl$flag"
16269 + compiler_flags="$compiler_flags $wl$flag"
16270 + linker_flags="$linker_flags $flag"
16271 + done
16272 + IFS="$save_ifs"
16273 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
16274 + ;;
16276 + -Xcompiler)
16277 + prev=xcompiler
16278 + continue
16279 + ;;
16281 + -Xlinker)
16282 + prev=xlinker
16283 + continue
16284 + ;;
16286 + -XCClinker)
16287 + prev=xcclinker
16288 + continue
16289 + ;;
16291 + # Some other compiler flag.
16292 + -* | +*)
16293 + # Unknown arguments in both finalize_command and compile_command need
16294 + # to be aesthetically quoted because they are evaled later.
16295 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
16296 + case $arg in
16297 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16298 + arg="\"$arg\""
16299 + ;;
16300 + esac
16301 + ;;
16303 + *.$objext)
16304 + # A standard object.
16305 + objs="$objs $arg"
16306 + ;;
16308 + *.lo)
16309 + # A libtool-controlled object.
16311 + # Check to see that this really is a libtool object.
16312 + if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
16313 + pic_object=
16314 + non_pic_object=
16316 + # Read the .lo file
16317 + # If there is no directory component, then add one.
16318 + case $arg in
16319 + */* | *\\*) . $arg ;;
16320 + *) . ./$arg ;;
16321 + esac
16323 + if test -z "$pic_object" || \
16324 + test -z "$non_pic_object" ||
16325 + test "$pic_object" = none && \
16326 + test "$non_pic_object" = none; then
16327 + $echo "$modename: cannot find name of object for \`$arg'" 1>&2
16328 + exit $EXIT_FAILURE
16329 + fi
16331 + # Extract subdirectory from the argument.
16332 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
16333 + if test "X$xdir" = "X$arg"; then
16334 + xdir=
16335 + else
16336 + xdir="$xdir/"
16337 + fi
16339 + if test "$pic_object" != none; then
16340 + # Prepend the subdirectory the object is found in.
16341 + pic_object="$xdir$pic_object"
16343 + if test "$prev" = dlfiles; then
16344 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
16345 + dlfiles="$dlfiles $pic_object"
16346 + prev=
16347 + continue
16348 + else
16349 + # If libtool objects are unsupported, then we need to preload.
16350 + prev=dlprefiles
16351 + fi
16352 + fi
16354 + # CHECK ME: I think I busted this. -Ossama
16355 + if test "$prev" = dlprefiles; then
16356 + # Preload the old-style object.
16357 + dlprefiles="$dlprefiles $pic_object"
16358 + prev=
16359 + fi
16361 + # A PIC object.
16362 + libobjs="$libobjs $pic_object"
16363 + arg="$pic_object"
16364 + fi
16366 + # Non-PIC object.
16367 + if test "$non_pic_object" != none; then
16368 + # Prepend the subdirectory the object is found in.
16369 + non_pic_object="$xdir$non_pic_object"
16371 + # A standard non-PIC object
16372 + non_pic_objects="$non_pic_objects $non_pic_object"
16373 + if test -z "$pic_object" || test "$pic_object" = none ; then
16374 + arg="$non_pic_object"
16375 + fi
16376 + else
16377 + # If the PIC object exists, use it instead.
16378 + # $xdir was prepended to $pic_object above.
16379 + non_pic_object="$pic_object"
16380 + non_pic_objects="$non_pic_objects $non_pic_object"
16381 + fi
16382 + else
16383 + # Only an error if not doing a dry-run.
16384 + if test -z "$run"; then
16385 + $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
16386 + exit $EXIT_FAILURE
16387 + else
16388 + # Dry-run case.
16390 + # Extract subdirectory from the argument.
16391 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
16392 + if test "X$xdir" = "X$arg"; then
16393 + xdir=
16394 + else
16395 + xdir="$xdir/"
16396 + fi
16398 + pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
16399 + non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
16400 + libobjs="$libobjs $pic_object"
16401 + non_pic_objects="$non_pic_objects $non_pic_object"
16402 + fi
16403 + fi
16404 + ;;
16406 + *.$libext)
16407 + # An archive.
16408 + deplibs="$deplibs $arg"
16409 + old_deplibs="$old_deplibs $arg"
16410 + continue
16411 + ;;
16413 + *.la)
16414 + # A libtool-controlled library.
16416 + if test "$prev" = dlfiles; then
16417 + # This library was specified with -dlopen.
16418 + dlfiles="$dlfiles $arg"
16419 + prev=
16420 + elif test "$prev" = dlprefiles; then
16421 + # The library was specified with -dlpreopen.
16422 + dlprefiles="$dlprefiles $arg"
16423 + prev=
16424 + else
16425 + deplibs="$deplibs $arg"
16426 + fi
16427 + continue
16428 + ;;
16430 + # Some other compiler argument.
16431 + *)
16432 + # Unknown arguments in both finalize_command and compile_command need
16433 + # to be aesthetically quoted because they are evaled later.
16434 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
16435 + case $arg in
16436 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16437 + arg="\"$arg\""
16438 + ;;
16439 + esac
16440 + ;;
16441 + esac # arg
16443 + # Now actually substitute the argument into the commands.
16444 + if test -n "$arg"; then
16445 + compile_command="$compile_command $arg"
16446 + finalize_command="$finalize_command $arg"
16447 + fi
16448 + done # argument parsing loop
16450 + if test -n "$prev"; then
16451 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
16452 + $echo "$help" 1>&2
16453 + exit $EXIT_FAILURE
16454 + fi
16456 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
16457 + eval arg=\"$export_dynamic_flag_spec\"
16458 + compile_command="$compile_command $arg"
16459 + finalize_command="$finalize_command $arg"
16460 + fi
16462 + oldlibs=
16463 + # calculate the name of the file, without its directory
16464 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
16465 + libobjs_save="$libobjs"
16467 + if test -n "$shlibpath_var"; then
16468 + # get the directories listed in $shlibpath_var
16469 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
16470 + else
16471 + shlib_search_path=
16472 + fi
16473 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
16474 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
16476 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
16477 + if test "X$output_objdir" = "X$output"; then
16478 + output_objdir="$objdir"
16479 + else
16480 + output_objdir="$output_objdir/$objdir"
16481 + fi
16482 + # Create the object directory.
16483 + if test ! -d "$output_objdir"; then
16484 + $show "$mkdir $output_objdir"
16485 + $run $mkdir $output_objdir
16486 + exit_status=$?
16487 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
16488 + exit $exit_status
16489 + fi
16490 + fi
16492 + # Determine the type of output
16493 + case $output in
16494 + "")
16495 + $echo "$modename: you must specify an output file" 1>&2
16496 + $echo "$help" 1>&2
16497 + exit $EXIT_FAILURE
16498 + ;;
16499 + *.$libext) linkmode=oldlib ;;
16500 + *.lo | *.$objext) linkmode=obj ;;
16501 + *.la) linkmode=lib ;;
16502 + *) linkmode=prog ;; # Anything else should be a program.
16503 + esac
16505 + case $host in
16506 + *cygwin* | *mingw* | *pw32*)
16507 + # don't eliminate duplications in $postdeps and $predeps
16508 + duplicate_compiler_generated_deps=yes
16509 + ;;
16510 + *)
16511 + duplicate_compiler_generated_deps=$duplicate_deps
16512 + ;;
16513 + esac
16514 + specialdeplibs=
16516 + libs=
16517 + # Find all interdependent deplibs by searching for libraries
16518 + # that are linked more than once (e.g. -la -lb -la)
16519 + for deplib in $deplibs; do
16520 + if test "X$duplicate_deps" = "Xyes" ; then
16521 + case "$libs " in
16522 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
16523 + esac
16524 + fi
16525 + libs="$libs $deplib"
16526 + done
16528 + if test "$linkmode" = lib; then
16529 + libs="$predeps $libs $compiler_lib_search_path $postdeps"
16531 + # Compute libraries that are listed more than once in $predeps
16532 + # $postdeps and mark them as special (i.e., whose duplicates are
16533 + # not to be eliminated).
16534 + pre_post_deps=
16535 + if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
16536 + for pre_post_dep in $predeps $postdeps; do
16537 + case "$pre_post_deps " in
16538 + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
16539 + esac
16540 + pre_post_deps="$pre_post_deps $pre_post_dep"
16541 + done
16542 + fi
16543 + pre_post_deps=
16544 + fi
16546 + deplibs=
16547 + newdependency_libs=
16548 + newlib_search_path=
16549 + need_relink=no # whether we're linking any uninstalled libtool libraries
16550 + notinst_deplibs= # not-installed libtool libraries
16551 + case $linkmode in
16552 + lib)
16553 + passes="conv link"
16554 + for file in $dlfiles $dlprefiles; do
16555 + case $file in
16556 + *.la) ;;
16557 + *)
16558 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
16559 + exit $EXIT_FAILURE
16560 + ;;
16561 + esac
16562 + done
16563 + ;;
16564 + prog)
16565 + compile_deplibs=
16566 + finalize_deplibs=
16567 + alldeplibs=no
16568 + newdlfiles=
16569 + newdlprefiles=
16570 + passes="conv scan dlopen dlpreopen link"
16571 + ;;
16572 + *) passes="conv"
16573 + ;;
16574 + esac
16575 + for pass in $passes; do
16576 + if test "$linkmode,$pass" = "lib,link" ||
16577 + test "$linkmode,$pass" = "prog,scan"; then
16578 + libs="$deplibs"
16579 + deplibs=
16580 + fi
16581 + if test "$linkmode" = prog; then
16582 + case $pass in
16583 + dlopen) libs="$dlfiles" ;;
16584 + dlpreopen) libs="$dlprefiles" ;;
16585 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
16586 + esac
16587 + fi
16588 + if test "$pass" = dlopen; then
16589 + # Collect dlpreopened libraries
16590 + save_deplibs="$deplibs"
16591 + deplibs=
16592 + fi
16593 + for deplib in $libs; do
16594 + lib=
16595 + found=no
16596 + case $deplib in
16597 + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
16598 + if test "$linkmode,$pass" = "prog,link"; then
16599 + compile_deplibs="$deplib $compile_deplibs"
16600 + finalize_deplibs="$deplib $finalize_deplibs"
16601 + else
16602 + compiler_flags="$compiler_flags $deplib"
16603 + fi
16604 + continue
16605 + ;;
16606 + -l*)
16607 + if test "$linkmode" != lib && test "$linkmode" != prog; then
16608 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
16609 + continue
16610 + fi
16611 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
16612 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
16613 + for search_ext in .la $std_shrext .so .a; do
16614 + # Search the libtool library
16615 + lib="$searchdir/lib${name}${search_ext}"
16616 + if test -f "$lib"; then
16617 + if test "$search_ext" = ".la"; then
16618 + found=yes
16619 + else
16620 + found=no
16621 + fi
16622 + break 2
16623 + fi
16624 + done
16625 + done
16626 + if test "$found" != yes; then
16627 + # deplib doesn't seem to be a libtool library
16628 + if test "$linkmode,$pass" = "prog,link"; then
16629 + compile_deplibs="$deplib $compile_deplibs"
16630 + finalize_deplibs="$deplib $finalize_deplibs"
16631 + else
16632 + deplibs="$deplib $deplibs"
16633 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
16634 + fi
16635 + continue
16636 + else # deplib is a libtool library
16637 + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
16638 + # We need to do some special things here, and not later.
16639 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
16640 + case " $predeps $postdeps " in
16641 + *" $deplib "*)
16642 + if (${SED} -e '2q' $lib |
16643 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
16644 + library_names=
16645 + old_library=
16646 + case $lib in
16647 + */* | *\\*) . $lib ;;
16648 + *) . ./$lib ;;
16649 + esac
16650 + for l in $old_library $library_names; do
16651 + ll="$l"
16652 + done
16653 + if test "X$ll" = "X$old_library" ; then # only static version available
16654 + found=no
16655 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
16656 + test "X$ladir" = "X$lib" && ladir="."
16657 + lib=$ladir/$old_library
16658 + if test "$linkmode,$pass" = "prog,link"; then
16659 + compile_deplibs="$deplib $compile_deplibs"
16660 + finalize_deplibs="$deplib $finalize_deplibs"
16661 + else
16662 + deplibs="$deplib $deplibs"
16663 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
16664 + fi
16665 + continue
16666 + fi
16667 + fi
16668 + ;;
16669 + *) ;;
16670 + esac
16671 + fi
16672 + fi
16673 + ;; # -l
16674 + -L*)
16675 + case $linkmode in
16676 + lib)
16677 + deplibs="$deplib $deplibs"
16678 + test "$pass" = conv && continue
16679 + newdependency_libs="$deplib $newdependency_libs"
16680 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
16681 + ;;
16682 + prog)
16683 + if test "$pass" = conv; then
16684 + deplibs="$deplib $deplibs"
16685 + continue
16686 + fi
16687 + if test "$pass" = scan; then
16688 + deplibs="$deplib $deplibs"
16689 + else
16690 + compile_deplibs="$deplib $compile_deplibs"
16691 + finalize_deplibs="$deplib $finalize_deplibs"
16692 + fi
16693 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
16694 + ;;
16695 + *)
16696 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
16697 + ;;
16698 + esac # linkmode
16699 + continue
16700 + ;; # -L
16701 + -R*)
16702 + if test "$pass" = link; then
16703 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
16704 + # Make sure the xrpath contains only unique directories.
16705 + case "$xrpath " in
16706 + *" $dir "*) ;;
16707 + *) xrpath="$xrpath $dir" ;;
16708 + esac
16709 + fi
16710 + deplibs="$deplib $deplibs"
16711 + continue
16712 + ;;
16713 + *.la) lib="$deplib" ;;
16714 + *.$libext)
16715 + if test "$pass" = conv; then
16716 + deplibs="$deplib $deplibs"
16717 + continue
16718 + fi
16719 + case $linkmode in
16720 + lib)
16721 + valid_a_lib=no
16722 + case $deplibs_check_method in
16723 + match_pattern*)
16724 + set dummy $deplibs_check_method
16725 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
16726 + if eval $echo \"$deplib\" 2>/dev/null \
16727 + | $SED 10q \
16728 + | $EGREP "$match_pattern_regex" > /dev/null; then
16729 + valid_a_lib=yes
16730 + fi
16731 + ;;
16732 + pass_all)
16733 + valid_a_lib=yes
16734 + ;;
16735 + esac
16736 + if test "$valid_a_lib" != yes; then
16737 + $echo
16738 + $echo "*** Warning: Trying to link with static lib archive $deplib."
16739 + $echo "*** I have the capability to make that library automatically link in when"
16740 + $echo "*** you link to this library. But I can only do this if you have a"
16741 + $echo "*** shared version of the library, which you do not appear to have"
16742 + $echo "*** because the file extensions .$libext of this argument makes me believe"
16743 + $echo "*** that it is just a static archive that I should not used here."
16744 + else
16745 + $echo
16746 + $echo "*** Warning: Linking the shared library $output against the"
16747 + $echo "*** static library $deplib is not portable!"
16748 + deplibs="$deplib $deplibs"
16749 + fi
16750 + continue
16751 + ;;
16752 + prog)
16753 + if test "$pass" != link; then
16754 + deplibs="$deplib $deplibs"
16755 + else
16756 + compile_deplibs="$deplib $compile_deplibs"
16757 + finalize_deplibs="$deplib $finalize_deplibs"
16758 + fi
16759 + continue
16760 + ;;
16761 + esac # linkmode
16762 + ;; # *.$libext
16763 + *.lo | *.$objext)
16764 + if test "$pass" = conv; then
16765 + deplibs="$deplib $deplibs"
16766 + elif test "$linkmode" = prog; then
16767 + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
16768 + # If there is no dlopen support or we're linking statically,
16769 + # we need to preload.
16770 + newdlprefiles="$newdlprefiles $deplib"
16771 + compile_deplibs="$deplib $compile_deplibs"
16772 + finalize_deplibs="$deplib $finalize_deplibs"
16773 + else
16774 + newdlfiles="$newdlfiles $deplib"
16775 + fi
16776 + fi
16777 + continue
16778 + ;;
16779 + %DEPLIBS%)
16780 + alldeplibs=yes
16781 + continue
16782 + ;;
16783 + esac # case $deplib
16784 + if test "$found" = yes || test -f "$lib"; then :
16785 + else
16786 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
16787 + exit $EXIT_FAILURE
16788 + fi
16790 + # Check to see that this really is a libtool archive.
16791 + if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
16792 + else
16793 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
16794 + exit $EXIT_FAILURE
16795 + fi
16797 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
16798 + test "X$ladir" = "X$lib" && ladir="."
16800 + dlname=
16801 + dlopen=
16802 + dlpreopen=
16803 + libdir=
16804 + library_names=
16805 + old_library=
16806 + # If the library was installed with an old release of libtool,
16807 + # it will not redefine variables installed, or shouldnotlink
16808 + installed=yes
16809 + shouldnotlink=no
16810 + avoidtemprpath=
16813 + # Read the .la file
16814 + case $lib in
16815 + */* | *\\*) . $lib ;;
16816 + *) . ./$lib ;;
16817 + esac
16819 + if test "$linkmode,$pass" = "lib,link" ||
16820 + test "$linkmode,$pass" = "prog,scan" ||
16821 + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
16822 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
16823 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
16824 + fi
16826 + if test "$pass" = conv; then
16827 + # Only check for convenience libraries
16828 + deplibs="$lib $deplibs"
16829 + if test -z "$libdir"; then
16830 + if test -z "$old_library"; then
16831 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
16832 + exit $EXIT_FAILURE
16833 + fi
16834 + # It is a libtool convenience library, so add in its objects.
16835 + convenience="$convenience $ladir/$objdir/$old_library"
16836 + old_convenience="$old_convenience $ladir/$objdir/$old_library"
16837 + tmp_libs=
16838 + for deplib in $dependency_libs; do
16839 + deplibs="$deplib $deplibs"
16840 + if test "X$duplicate_deps" = "Xyes" ; then
16841 + case "$tmp_libs " in
16842 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
16843 + esac
16844 + fi
16845 + tmp_libs="$tmp_libs $deplib"
16846 + done
16847 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
16848 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
16849 + exit $EXIT_FAILURE
16850 + fi
16851 + continue
16852 + fi # $pass = conv
16855 + # Get the name of the library we link against.
16856 + linklib=
16857 + for l in $old_library $library_names; do
16858 + linklib="$l"
16859 + done
16860 + if test -z "$linklib"; then
16861 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
16862 + exit $EXIT_FAILURE
16863 + fi
16865 + # This library was specified with -dlopen.
16866 + if test "$pass" = dlopen; then
16867 + if test -z "$libdir"; then
16868 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
16869 + exit $EXIT_FAILURE
16870 + fi
16871 + if test -z "$dlname" ||
16872 + test "$dlopen_support" != yes ||
16873 + test "$build_libtool_libs" = no; then
16874 + # If there is no dlname, no dlopen support or we're linking
16875 + # statically, we need to preload. We also need to preload any
16876 + # dependent libraries so libltdl's deplib preloader doesn't
16877 + # bomb out in the load deplibs phase.
16878 + dlprefiles="$dlprefiles $lib $dependency_libs"
16879 + else
16880 + newdlfiles="$newdlfiles $lib"
16881 + fi
16882 + continue
16883 + fi # $pass = dlopen
16885 + # We need an absolute path.
16886 + case $ladir in
16887 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
16888 + *)
16889 + abs_ladir=`cd "$ladir" && pwd`
16890 + if test -z "$abs_ladir"; then
16891 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
16892 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
16893 + abs_ladir="$ladir"
16894 + fi
16895 + ;;
16896 + esac
16897 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
16899 + # Find the relevant object directory and library name.
16900 + if test "X$installed" = Xyes; then
16901 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
16902 + $echo "$modename: warning: library \`$lib' was moved." 1>&2
16903 + dir="$ladir"
16904 + absdir="$abs_ladir"
16905 + libdir="$abs_ladir"
16906 + else
16907 + dir="$libdir"
16908 + absdir="$libdir"
16909 + fi
16910 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
16911 + else
16912 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
16913 + dir="$ladir"
16914 + absdir="$abs_ladir"
16915 + # Remove this search path later
16916 + notinst_path="$notinst_path $abs_ladir"
16917 + else
16918 + dir="$ladir/$objdir"
16919 + absdir="$abs_ladir/$objdir"
16920 + # Remove this search path later
16921 + notinst_path="$notinst_path $abs_ladir"
16922 + fi
16923 + fi # $installed = yes
16924 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
16926 + # This library was specified with -dlpreopen.
16927 + if test "$pass" = dlpreopen; then
16928 + if test -z "$libdir"; then
16929 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
16930 + exit $EXIT_FAILURE
16931 + fi
16932 + # Prefer using a static library (so that no silly _DYNAMIC symbols
16933 + # are required to link).
16934 + if test -n "$old_library"; then
16935 + newdlprefiles="$newdlprefiles $dir/$old_library"
16936 + # Otherwise, use the dlname, so that lt_dlopen finds it.
16937 + elif test -n "$dlname"; then
16938 + newdlprefiles="$newdlprefiles $dir/$dlname"
16939 + else
16940 + newdlprefiles="$newdlprefiles $dir/$linklib"
16941 + fi
16942 + fi # $pass = dlpreopen
16944 + if test -z "$libdir"; then
16945 + # Link the convenience library
16946 + if test "$linkmode" = lib; then
16947 + deplibs="$dir/$old_library $deplibs"
16948 + elif test "$linkmode,$pass" = "prog,link"; then
16949 + compile_deplibs="$dir/$old_library $compile_deplibs"
16950 + finalize_deplibs="$dir/$old_library $finalize_deplibs"
16951 + else
16952 + deplibs="$lib $deplibs" # used for prog,scan pass
16953 + fi
16954 + continue
16955 + fi
16958 + if test "$linkmode" = prog && test "$pass" != link; then
16959 + newlib_search_path="$newlib_search_path $ladir"
16960 + deplibs="$lib $deplibs"
16962 + linkalldeplibs=no
16963 + if test "$link_all_deplibs" != no || test -z "$library_names" ||
16964 + test "$build_libtool_libs" = no; then
16965 + linkalldeplibs=yes
16966 + fi
16968 + tmp_libs=
16969 + for deplib in $dependency_libs; do
16970 + case $deplib in
16971 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
16972 + esac
16973 + # Need to link against all dependency_libs?
16974 + if test "$linkalldeplibs" = yes; then
16975 + deplibs="$deplib $deplibs"
16976 + else
16977 + # Need to hardcode shared library paths
16978 + # or/and link against static libraries
16979 + newdependency_libs="$deplib $newdependency_libs"
16980 + fi
16981 + if test "X$duplicate_deps" = "Xyes" ; then
16982 + case "$tmp_libs " in
16983 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
16984 + esac
16985 + fi
16986 + tmp_libs="$tmp_libs $deplib"
16987 + done # for deplib
16988 + continue
16989 + fi # $linkmode = prog...
16991 + if test "$linkmode,$pass" = "prog,link"; then
16992 + if test -n "$library_names" &&
16993 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
16994 + # We need to hardcode the library path
16995 + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
16996 + # Make sure the rpath contains only unique directories.
16997 + case "$temp_rpath " in
16998 + *" $dir "*) ;;
16999 + *" $absdir "*) ;;
17000 + *) temp_rpath="$temp_rpath $absdir" ;;
17001 + esac
17002 + fi
17004 + # Hardcode the library path.
17005 + # Skip directories that are in the system default run-time
17006 + # search path.
17007 + case " $sys_lib_dlsearch_path " in
17008 + *" $absdir "*) ;;
17009 + *)
17010 + case "$compile_rpath " in
17011 + *" $absdir "*) ;;
17012 + *) compile_rpath="$compile_rpath $absdir"
17013 + esac
17014 + ;;
17015 + esac
17016 + case " $sys_lib_dlsearch_path " in
17017 + *" $libdir "*) ;;
17018 + *)
17019 + case "$finalize_rpath " in
17020 + *" $libdir "*) ;;
17021 + *) finalize_rpath="$finalize_rpath $libdir"
17022 + esac
17023 + ;;
17024 + esac
17025 + fi # $linkmode,$pass = prog,link...
17027 + if test "$alldeplibs" = yes &&
17028 + { test "$deplibs_check_method" = pass_all ||
17029 + { test "$build_libtool_libs" = yes &&
17030 + test -n "$library_names"; }; }; then
17031 + # We only need to search for static libraries
17032 + continue
17033 + fi
17034 + fi
17036 + link_static=no # Whether the deplib will be linked statically
17037 + use_static_libs=$prefer_static_libs
17038 + if test "$use_static_libs" = built && test "$installed" = yes ; then
17039 + use_static_libs=no
17040 + fi
17041 + if test -n "$library_names" &&
17042 + { test "$use_static_libs" = no || test -z "$old_library"; }; then
17043 + if test "$installed" = no; then
17044 + notinst_deplibs="$notinst_deplibs $lib"
17045 + need_relink=yes
17046 + fi
17047 + # This is a shared library
17049 + # Warn about portability, can't link against -module's on
17050 + # some systems (darwin)
17051 + if test "$shouldnotlink" = yes && test "$pass" = link ; then
17052 + $echo
17053 + if test "$linkmode" = prog; then
17054 + $echo "*** Warning: Linking the executable $output against the loadable module"
17055 + else
17056 + $echo "*** Warning: Linking the shared library $output against the loadable module"
17057 + fi
17058 + $echo "*** $linklib is not portable!"
17059 + fi
17060 + if test "$linkmode" = lib &&
17061 + test "$hardcode_into_libs" = yes; then
17062 + # Hardcode the library path.
17063 + # Skip directories that are in the system default run-time
17064 + # search path.
17065 + case " $sys_lib_dlsearch_path " in
17066 + *" $absdir "*) ;;
17067 + *)
17068 + case "$compile_rpath " in
17069 + *" $absdir "*) ;;
17070 + *) compile_rpath="$compile_rpath $absdir"
17071 + esac
17072 + ;;
17073 + esac
17074 + case " $sys_lib_dlsearch_path " in
17075 + *" $libdir "*) ;;
17076 + *)
17077 + case "$finalize_rpath " in
17078 + *" $libdir "*) ;;
17079 + *) finalize_rpath="$finalize_rpath $libdir"
17080 + esac
17081 + ;;
17082 + esac
17083 + fi
17085 + if test -n "$old_archive_from_expsyms_cmds"; then
17086 + # figure out the soname
17087 + set dummy $library_names
17088 + realname="$2"
17089 + shift; shift
17090 + libname=`eval \\$echo \"$libname_spec\"`
17091 + # use dlname if we got it. it's perfectly good, no?
17092 + if test -n "$dlname"; then
17093 + soname="$dlname"
17094 + elif test -n "$soname_spec"; then
17095 + # bleh windows
17096 + case $host in
17097 + *cygwin* | mingw*)
17098 + major=`expr $current - $age`
17099 + versuffix="-$major"
17100 + ;;
17101 + esac
17102 + eval soname=\"$soname_spec\"
17103 + else
17104 + soname="$realname"
17105 + fi
17107 + # Make a new name for the extract_expsyms_cmds to use
17108 + soroot="$soname"
17109 + soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
17110 + newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
17112 + # If the library has no export list, then create one now
17113 + if test -f "$output_objdir/$soname-def"; then :
17114 + else
17115 + $show "extracting exported symbol list from \`$soname'"
17116 + save_ifs="$IFS"; IFS='~'
17117 + cmds=$extract_expsyms_cmds
17118 + for cmd in $cmds; do
17119 + IFS="$save_ifs"
17120 + eval cmd=\"$cmd\"
17121 + $show "$cmd"
17122 + $run eval "$cmd" || exit $?
17123 + done
17124 + IFS="$save_ifs"
17125 + fi
17127 + # Create $newlib
17128 + if test -f "$output_objdir/$newlib"; then :; else
17129 + $show "generating import library for \`$soname'"
17130 + save_ifs="$IFS"; IFS='~'
17131 + cmds=$old_archive_from_expsyms_cmds
17132 + for cmd in $cmds; do
17133 + IFS="$save_ifs"
17134 + eval cmd=\"$cmd\"
17135 + $show "$cmd"
17136 + $run eval "$cmd" || exit $?
17137 + done
17138 + IFS="$save_ifs"
17139 + fi
17140 + # make sure the library variables are pointing to the new library
17141 + dir=$output_objdir
17142 + linklib=$newlib
17143 + fi # test -n "$old_archive_from_expsyms_cmds"
17145 + if test "$linkmode" = prog || test "$mode" != relink; then
17146 + add_shlibpath=
17147 + add_dir=
17148 + add=
17149 + lib_linked=yes
17150 + case $hardcode_action in
17151 + immediate | unsupported)
17152 + if test "$hardcode_direct" = no; then
17153 + add="$dir/$linklib"
17154 + case $host in
17155 + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
17156 + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
17157 + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
17158 + *-*-unixware7*) add_dir="-L$dir" ;;
17159 + *-*-darwin* )
17160 + # if the lib is a module then we can not link against
17161 + # it, someone is ignoring the new warnings I added
17162 + if /usr/bin/file -L $add 2> /dev/null |
17163 + $EGREP ": [^:]* bundle" >/dev/null ; then
17164 + $echo "** Warning, lib $linklib is a module, not a shared library"
17165 + if test -z "$old_library" ; then
17166 + $echo
17167 + $echo "** And there doesn't seem to be a static archive available"
17168 + $echo "** The link will probably fail, sorry"
17169 + else
17170 + add="$dir/$old_library"
17171 + fi
17172 + fi
17173 + esac
17174 + elif test "$hardcode_minus_L" = no; then
17175 + case $host in
17176 + *-*-sunos*) add_shlibpath="$dir" ;;
17177 + esac
17178 + add_dir="-L$dir"
17179 + add="-l$name"
17180 + elif test "$hardcode_shlibpath_var" = no; then
17181 + add_shlibpath="$dir"
17182 + add="-l$name"
17183 + else
17184 + lib_linked=no
17185 + fi
17186 + ;;
17187 + relink)
17188 + if test "$hardcode_direct" = yes; then
17189 + add="$dir/$linklib"
17190 + elif test "$hardcode_minus_L" = yes; then
17191 + add_dir="-L$dir"
17192 + # Try looking first in the location we're being installed to.
17193 + if test -n "$inst_prefix_dir"; then
17194 + case $libdir in
17195 + [\\/]*)
17196 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
17197 + ;;
17198 + esac
17199 + fi
17200 + add="-l$name"
17201 + elif test "$hardcode_shlibpath_var" = yes; then
17202 + add_shlibpath="$dir"
17203 + add="-l$name"
17204 + else
17205 + lib_linked=no
17206 + fi
17207 + ;;
17208 + *) lib_linked=no ;;
17209 + esac
17211 + if test "$lib_linked" != yes; then
17212 + $echo "$modename: configuration error: unsupported hardcode properties"
17213 + exit $EXIT_FAILURE
17214 + fi
17216 + if test -n "$add_shlibpath"; then
17217 + case :$compile_shlibpath: in
17218 + *":$add_shlibpath:"*) ;;
17219 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
17220 + esac
17221 + fi
17222 + if test "$linkmode" = prog; then
17223 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
17224 + test -n "$add" && compile_deplibs="$add $compile_deplibs"
17225 + else
17226 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
17227 + test -n "$add" && deplibs="$add $deplibs"
17228 + if test "$hardcode_direct" != yes && \
17229 + test "$hardcode_minus_L" != yes && \
17230 + test "$hardcode_shlibpath_var" = yes; then
17231 + case :$finalize_shlibpath: in
17232 + *":$libdir:"*) ;;
17233 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
17234 + esac
17235 + fi
17236 + fi
17237 + fi
17239 + if test "$linkmode" = prog || test "$mode" = relink; then
17240 + add_shlibpath=
17241 + add_dir=
17242 + add=
17243 + # Finalize command for both is simple: just hardcode it.
17244 + if test "$hardcode_direct" = yes; then
17245 + add="$libdir/$linklib"
17246 + elif test "$hardcode_minus_L" = yes; then
17247 + add_dir="-L$libdir"
17248 + add="-l$name"
17249 + elif test "$hardcode_shlibpath_var" = yes; then
17250 + case :$finalize_shlibpath: in
17251 + *":$libdir:"*) ;;
17252 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
17253 + esac
17254 + add="-l$name"
17255 + elif test "$hardcode_automatic" = yes; then
17256 + if test -n "$inst_prefix_dir" &&
17257 + test -f "$inst_prefix_dir$libdir/$linklib" ; then
17258 + add="$inst_prefix_dir$libdir/$linklib"
17259 + else
17260 + add="$libdir/$linklib"
17261 + fi
17262 + else
17263 + # We cannot seem to hardcode it, guess we'll fake it.
17264 + add_dir="-L$libdir"
17265 + # Try looking first in the location we're being installed to.
17266 + if test -n "$inst_prefix_dir"; then
17267 + case $libdir in
17268 + [\\/]*)
17269 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
17270 + ;;
17271 + esac
17272 + fi
17273 + add="-l$name"
17274 + fi
17276 + if test "$linkmode" = prog; then
17277 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
17278 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
17279 + else
17280 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
17281 + test -n "$add" && deplibs="$add $deplibs"
17282 + fi
17283 + fi
17284 + elif test "$linkmode" = prog; then
17285 + # Here we assume that one of hardcode_direct or hardcode_minus_L
17286 + # is not unsupported. This is valid on all known static and
17287 + # shared platforms.
17288 + if test "$hardcode_direct" != unsupported; then
17289 + test -n "$old_library" && linklib="$old_library"
17290 + compile_deplibs="$dir/$linklib $compile_deplibs"
17291 + finalize_deplibs="$dir/$linklib $finalize_deplibs"
17292 + else
17293 + compile_deplibs="-l$name -L$dir $compile_deplibs"
17294 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
17295 + fi
17296 + elif test "$build_libtool_libs" = yes; then
17297 + # Not a shared library
17298 + if test "$deplibs_check_method" != pass_all; then
17299 + # We're trying link a shared library against a static one
17300 + # but the system doesn't support it.
17302 + # Just print a warning and add the library to dependency_libs so
17303 + # that the program can be linked against the static library.
17304 + $echo
17305 + $echo "*** Warning: This system can not link to static lib archive $lib."
17306 + $echo "*** I have the capability to make that library automatically link in when"
17307 + $echo "*** you link to this library. But I can only do this if you have a"
17308 + $echo "*** shared version of the library, which you do not appear to have."
17309 + if test "$module" = yes; then
17310 + $echo "*** But as you try to build a module library, libtool will still create "
17311 + $echo "*** a static module, that should work as long as the dlopening application"
17312 + $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
17313 + if test -z "$global_symbol_pipe"; then
17314 + $echo
17315 + $echo "*** However, this would only work if libtool was able to extract symbol"
17316 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
17317 + $echo "*** not find such a program. So, this module is probably useless."
17318 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
17319 + fi
17320 + if test "$build_old_libs" = no; then
17321 + build_libtool_libs=module
17322 + build_old_libs=yes
17323 + else
17324 + build_libtool_libs=no
17325 + fi
17326 + fi
17327 + else
17328 + deplibs="$dir/$old_library $deplibs"
17329 + link_static=yes
17330 + fi
17331 + fi # link shared/static library?
17333 + if test "$linkmode" = lib; then
17334 + if test -n "$dependency_libs" &&
17335 + { test "$hardcode_into_libs" != yes ||
17336 + test "$build_old_libs" = yes ||
17337 + test "$link_static" = yes; }; then
17338 + # Extract -R from dependency_libs
17339 + temp_deplibs=
17340 + for libdir in $dependency_libs; do
17341 + case $libdir in
17342 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
17343 + case " $xrpath " in
17344 + *" $temp_xrpath "*) ;;
17345 + *) xrpath="$xrpath $temp_xrpath";;
17346 + esac;;
17347 + *) temp_deplibs="$temp_deplibs $libdir";;
17348 + esac
17349 + done
17350 + dependency_libs="$temp_deplibs"
17351 + fi
17353 + newlib_search_path="$newlib_search_path $absdir"
17354 + # Link against this library
17355 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
17356 + # ... and its dependency_libs
17357 + tmp_libs=
17358 + for deplib in $dependency_libs; do
17359 + newdependency_libs="$deplib $newdependency_libs"
17360 + if test "X$duplicate_deps" = "Xyes" ; then
17361 + case "$tmp_libs " in
17362 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
17363 + esac
17364 + fi
17365 + tmp_libs="$tmp_libs $deplib"
17366 + done
17368 + if test "$link_all_deplibs" != no; then
17369 + # Add the search paths of all dependency libraries
17370 + for deplib in $dependency_libs; do
17371 + case $deplib in
17372 + -L*) path="$deplib" ;;
17373 + *.la)
17374 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
17375 + test "X$dir" = "X$deplib" && dir="."
17376 + # We need an absolute path.
17377 + case $dir in
17378 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
17379 + *)
17380 + absdir=`cd "$dir" && pwd`
17381 + if test -z "$absdir"; then
17382 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
17383 + absdir="$dir"
17384 + fi
17385 + ;;
17386 + esac
17387 + if grep "^installed=no" $deplib > /dev/null; then
17388 + path="$absdir/$objdir"
17389 + else
17390 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
17391 + if test -z "$libdir"; then
17392 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
17393 + exit $EXIT_FAILURE
17394 + fi
17395 + if test "$absdir" != "$libdir"; then
17396 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
17397 + fi
17398 + path="$absdir"
17399 + fi
17400 + depdepl=
17401 + case $host in
17402 + *-*-darwin*)
17403 + # we do not want to link against static libs,
17404 + # but need to link against shared
17405 + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
17406 + if test -n "$deplibrary_names" ; then
17407 + for tmp in $deplibrary_names ; do
17408 + depdepl=$tmp
17409 + done
17410 + if test -f "$path/$depdepl" ; then
17411 + depdepl="$path/$depdepl"
17412 + fi
17413 + # do not add paths which are already there
17414 + case " $newlib_search_path " in
17415 + *" $path "*) ;;
17416 + *) newlib_search_path="$newlib_search_path $path";;
17417 + esac
17418 + fi
17419 + path=""
17420 + ;;
17421 + *)
17422 + path="-L$path"
17423 + ;;
17424 + esac
17425 + ;;
17426 + -l*)
17427 + case $host in
17428 + *-*-darwin*)
17429 + # Again, we only want to link against shared libraries
17430 + eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
17431 + for tmp in $newlib_search_path ; do
17432 + if test -f "$tmp/lib$tmp_libs.dylib" ; then
17433 + eval depdepl="$tmp/lib$tmp_libs.dylib"
17434 + break
17435 + fi
17436 + done
17437 + path=""
17438 + ;;
17439 + *) continue ;;
17440 + esac
17441 + ;;
17442 + *) continue ;;
17443 + esac
17444 + case " $deplibs " in
17445 + *" $path "*) ;;
17446 + *) deplibs="$path $deplibs" ;;
17447 + esac
17448 + case " $deplibs " in
17449 + *" $depdepl "*) ;;
17450 + *) deplibs="$depdepl $deplibs" ;;
17451 + esac
17452 + done
17453 + fi # link_all_deplibs != no
17454 + fi # linkmode = lib
17455 + done # for deplib in $libs
17456 + dependency_libs="$newdependency_libs"
17457 + if test "$pass" = dlpreopen; then
17458 + # Link the dlpreopened libraries before other libraries
17459 + for deplib in $save_deplibs; do
17460 + deplibs="$deplib $deplibs"
17461 + done
17462 + fi
17463 + if test "$pass" != dlopen; then
17464 + if test "$pass" != conv; then
17465 + # Make sure lib_search_path contains only unique directories.
17466 + lib_search_path=
17467 + for dir in $newlib_search_path; do
17468 + case "$lib_search_path " in
17469 + *" $dir "*) ;;
17470 + *) lib_search_path="$lib_search_path $dir" ;;
17471 + esac
17472 + done
17473 + newlib_search_path=
17474 + fi
17476 + if test "$linkmode,$pass" != "prog,link"; then
17477 + vars="deplibs"
17478 + else
17479 + vars="compile_deplibs finalize_deplibs"
17480 + fi
17481 + for var in $vars dependency_libs; do
17482 + # Add libraries to $var in reverse order
17483 + eval tmp_libs=\"\$$var\"
17484 + new_libs=
17485 + for deplib in $tmp_libs; do
17486 + # FIXME: Pedantically, this is the right thing to do, so
17487 + # that some nasty dependency loop isn't accidentally
17488 + # broken:
17489 + #new_libs="$deplib $new_libs"
17490 + # Pragmatically, this seems to cause very few problems in
17491 + # practice:
17492 + case $deplib in
17493 + -L*) new_libs="$deplib $new_libs" ;;
17494 + -R*) ;;
17495 + *)
17496 + # And here is the reason: when a library appears more
17497 + # than once as an explicit dependence of a library, or
17498 + # is implicitly linked in more than once by the
17499 + # compiler, it is considered special, and multiple
17500 + # occurrences thereof are not removed. Compare this
17501 + # with having the same library being listed as a
17502 + # dependency of multiple other libraries: in this case,
17503 + # we know (pedantically, we assume) the library does not
17504 + # need to be listed more than once, so we keep only the
17505 + # last copy. This is not always right, but it is rare
17506 + # enough that we require users that really mean to play
17507 + # such unportable linking tricks to link the library
17508 + # using -Wl,-lname, so that libtool does not consider it
17509 + # for duplicate removal.
17510 + case " $specialdeplibs " in
17511 + *" $deplib "*) new_libs="$deplib $new_libs" ;;
17512 + *)
17513 + case " $new_libs " in
17514 + *" $deplib "*) ;;
17515 + *) new_libs="$deplib $new_libs" ;;
17516 + esac
17517 + ;;
17518 + esac
17519 + ;;
17520 + esac
17521 + done
17522 + tmp_libs=
17523 + for deplib in $new_libs; do
17524 + case $deplib in
17525 + -L*)
17526 + case " $tmp_libs " in
17527 + *" $deplib "*) ;;
17528 + *) tmp_libs="$tmp_libs $deplib" ;;
17529 + esac
17530 + ;;
17531 + *) tmp_libs="$tmp_libs $deplib" ;;
17532 + esac
17533 + done
17534 + eval $var=\"$tmp_libs\"
17535 + done # for var
17536 + fi
17537 + # Last step: remove runtime libs from dependency_libs
17538 + # (they stay in deplibs)
17539 + tmp_libs=
17540 + for i in $dependency_libs ; do
17541 + case " $predeps $postdeps $compiler_lib_search_path " in
17542 + *" $i "*)
17543 + i=""
17544 + ;;
17545 + esac
17546 + if test -n "$i" ; then
17547 + tmp_libs="$tmp_libs $i"
17548 + fi
17549 + done
17550 + dependency_libs=$tmp_libs
17551 + done # for pass
17552 + if test "$linkmode" = prog; then
17553 + dlfiles="$newdlfiles"
17554 + dlprefiles="$newdlprefiles"
17555 + fi
17557 + case $linkmode in
17558 + oldlib)
17559 + if test -n "$deplibs"; then
17560 + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
17561 + fi
17563 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
17564 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
17565 + fi
17567 + if test -n "$rpath"; then
17568 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
17569 + fi
17571 + if test -n "$xrpath"; then
17572 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
17573 + fi
17575 + if test -n "$vinfo"; then
17576 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
17577 + fi
17579 + if test -n "$release"; then
17580 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
17581 + fi
17583 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
17584 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
17585 + fi
17587 + # Now set the variables for building old libraries.
17588 + build_libtool_libs=no
17589 + oldlibs="$output"
17590 + objs="$objs$old_deplibs"
17591 + ;;
17593 + lib)
17594 + # Make sure we only generate libraries of the form `libNAME.la'.
17595 + case $outputname in
17596 + lib*)
17597 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
17598 + eval shared_ext=\"$shrext_cmds\"
17599 + eval libname=\"$libname_spec\"
17600 + ;;
17601 + *)
17602 + if test "$module" = no; then
17603 + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
17604 + $echo "$help" 1>&2
17605 + exit $EXIT_FAILURE
17606 + fi
17607 + if test "$need_lib_prefix" != no; then
17608 + # Add the "lib" prefix for modules if required
17609 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
17610 + eval shared_ext=\"$shrext_cmds\"
17611 + eval libname=\"$libname_spec\"
17612 + else
17613 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
17614 + fi
17615 + ;;
17616 + esac
17618 + if test -n "$objs"; then
17619 + if test "$deplibs_check_method" != pass_all; then
17620 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
17621 + exit $EXIT_FAILURE
17622 + else
17623 + $echo
17624 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
17625 + $echo "*** objects $objs is not portable!"
17626 + libobjs="$libobjs $objs"
17627 + fi
17628 + fi
17630 + if test "$dlself" != no; then
17631 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
17632 + fi
17634 + set dummy $rpath
17635 + if test "$#" -gt 2; then
17636 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
17637 + fi
17638 + install_libdir="$2"
17640 + oldlibs=
17641 + if test -z "$rpath"; then
17642 + if test "$build_libtool_libs" = yes; then
17643 + # Building a libtool convenience library.
17644 + # Some compilers have problems with a `.al' extension so
17645 + # convenience libraries should have the same extension an
17646 + # archive normally would.
17647 + oldlibs="$output_objdir/$libname.$libext $oldlibs"
17648 + build_libtool_libs=convenience
17649 + build_old_libs=yes
17650 + fi
17652 + if test -n "$vinfo"; then
17653 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
17654 + fi
17656 + if test -n "$release"; then
17657 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
17658 + fi
17659 + else
17661 + # Parse the version information argument.
17662 + save_ifs="$IFS"; IFS=':'
17663 + set dummy $vinfo 0 0 0
17664 + IFS="$save_ifs"
17666 + if test -n "$8"; then
17667 + $echo "$modename: too many parameters to \`-version-info'" 1>&2
17668 + $echo "$help" 1>&2
17669 + exit $EXIT_FAILURE
17670 + fi
17672 + # convert absolute version numbers to libtool ages
17673 + # this retains compatibility with .la files and attempts
17674 + # to make the code below a bit more comprehensible
17676 + case $vinfo_number in
17677 + yes)
17678 + number_major="$2"
17679 + number_minor="$3"
17680 + number_revision="$4"
17682 + # There are really only two kinds -- those that
17683 + # use the current revision as the major version
17684 + # and those that subtract age and use age as
17685 + # a minor version. But, then there is irix
17686 + # which has an extra 1 added just for fun
17688 + case $version_type in
17689 + darwin|linux|osf|windows)
17690 + current=`expr $number_major + $number_minor`
17691 + age="$number_minor"
17692 + revision="$number_revision"
17693 + ;;
17694 + freebsd-aout|freebsd-elf|sunos)
17695 + current="$number_major"
17696 + revision="$number_minor"
17697 + age="0"
17698 + ;;
17699 + irix|nonstopux)
17700 + current=`expr $number_major + $number_minor - 1`
17701 + age="$number_minor"
17702 + revision="$number_minor"
17703 + ;;
17704 + esac
17705 + ;;
17706 + no)
17707 + current="$2"
17708 + revision="$3"
17709 + age="$4"
17710 + ;;
17711 + esac
17713 + # Check that each of the things are valid numbers.
17714 + case $current in
17715 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
17716 + *)
17717 + $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
17718 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
17719 + exit $EXIT_FAILURE
17720 + ;;
17721 + esac
17723 + case $revision in
17724 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
17725 + *)
17726 + $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
17727 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
17728 + exit $EXIT_FAILURE
17729 + ;;
17730 + esac
17732 + case $age in
17733 + 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
17734 + *)
17735 + $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
17736 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
17737 + exit $EXIT_FAILURE
17738 + ;;
17739 + esac
17741 + if test "$age" -gt "$current"; then
17742 + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
17743 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2
17744 + exit $EXIT_FAILURE
17745 + fi
17747 + # Calculate the version variables.
17748 + major=
17749 + versuffix=
17750 + verstring=
17751 + case $version_type in
17752 + none) ;;
17754 + darwin)
17755 + # Like Linux, but with the current version available in
17756 + # verstring for coding it into the library header
17757 + major=.`expr $current - $age`
17758 + versuffix="$major.$age.$revision"
17759 + # Darwin ld doesn't like 0 for these options...
17760 + minor_current=`expr $current + 1`
17761 + verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
17762 + ;;
17764 + freebsd-aout)
17765 + major=".$current"
17766 + versuffix=".$current.$revision";
17767 + ;;
17769 + freebsd-elf)
17770 + major=".$current"
17771 + versuffix=".$current";
17772 + ;;
17774 + irix | nonstopux)
17775 + major=`expr $current - $age + 1`
17777 + case $version_type in
17778 + nonstopux) verstring_prefix=nonstopux ;;
17779 + *) verstring_prefix=sgi ;;
17780 + esac
17781 + verstring="$verstring_prefix$major.$revision"
17783 + # Add in all the interfaces that we are compatible with.
17784 + loop=$revision
17785 + while test "$loop" -ne 0; do
17786 + iface=`expr $revision - $loop`
17787 + loop=`expr $loop - 1`
17788 + verstring="$verstring_prefix$major.$iface:$verstring"
17789 + done
17791 + # Before this point, $major must not contain `.'.
17792 + major=.$major
17793 + versuffix="$major.$revision"
17794 + ;;
17796 + linux)
17797 + major=.`expr $current - $age`
17798 + versuffix="$major.$age.$revision"
17799 + ;;
17801 + osf)
17802 + major=.`expr $current - $age`
17803 + versuffix=".$current.$age.$revision"
17804 + verstring="$current.$age.$revision"
17806 + # Add in all the interfaces that we are compatible with.
17807 + loop=$age
17808 + while test "$loop" -ne 0; do
17809 + iface=`expr $current - $loop`
17810 + loop=`expr $loop - 1`
17811 + verstring="$verstring:${iface}.0"
17812 + done
17814 + # Make executables depend on our current version.
17815 + verstring="$verstring:${current}.0"
17816 + ;;
17818 + sunos)
17819 + major=".$current"
17820 + versuffix=".$current.$revision"
17821 + ;;
17823 + windows)
17824 + # Use '-' rather than '.', since we only want one
17825 + # extension on DOS 8.3 filesystems.
17826 + major=`expr $current - $age`
17827 + versuffix="-$major"
17828 + ;;
17830 + *)
17831 + $echo "$modename: unknown library version type \`$version_type'" 1>&2
17832 + $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
17833 + exit $EXIT_FAILURE
17834 + ;;
17835 + esac
17837 + # Clear the version info if we defaulted, and they specified a release.
17838 + if test -z "$vinfo" && test -n "$release"; then
17839 + major=
17840 + case $version_type in
17841 + darwin)
17842 + # we can't check for "0.0" in archive_cmds due to quoting
17843 + # problems, so we reset it completely
17844 + verstring=
17845 + ;;
17846 + *)
17847 + verstring="0.0"
17848 + ;;
17849 + esac
17850 + if test "$need_version" = no; then
17851 + versuffix=
17852 + else
17853 + versuffix=".0.0"
17854 + fi
17855 + fi
17857 + # Remove version info from name if versioning should be avoided
17858 + if test "$avoid_version" = yes && test "$need_version" = no; then
17859 + major=
17860 + versuffix=
17861 + verstring=""
17862 + fi
17864 + # Check to see if the archive will have undefined symbols.
17865 + if test "$allow_undefined" = yes; then
17866 + if test "$allow_undefined_flag" = unsupported; then
17867 + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
17868 + build_libtool_libs=no
17869 + build_old_libs=yes
17870 + fi
17871 + else
17872 + # Don't allow undefined symbols.
17873 + allow_undefined_flag="$no_undefined_flag"
17874 + fi
17875 + fi
17877 + if test "$mode" != relink; then
17878 + # Remove our outputs, but don't remove object files since they
17879 + # may have been created when compiling PIC objects.
17880 + removelist=
17881 + tempremovelist=`$echo "$output_objdir/*"`
17882 + for p in $tempremovelist; do
17883 + case $p in
17884 + *.$objext)
17885 + ;;
17886 + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
17887 + if test "X$precious_files_regex" != "X"; then
17888 + if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
17889 + then
17890 + continue
17891 + fi
17892 + fi
17893 + removelist="$removelist $p"
17894 + ;;
17895 + *) ;;
17896 + esac
17897 + done
17898 + if test -n "$removelist"; then
17899 + $show "${rm}r $removelist"
17900 + $run ${rm}r $removelist
17901 + fi
17902 + fi
17904 + # Now set the variables for building old libraries.
17905 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
17906 + oldlibs="$oldlibs $output_objdir/$libname.$libext"
17908 + # Transform .lo files to .o files.
17909 + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
17910 + fi
17912 + # Eliminate all temporary directories.
17913 + for path in $notinst_path; do
17914 + lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
17915 + deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
17916 + dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
17917 + done
17919 + if test -n "$xrpath"; then
17920 + # If the user specified any rpath flags, then add them.
17921 + temp_xrpath=
17922 + for libdir in $xrpath; do
17923 + temp_xrpath="$temp_xrpath -R$libdir"
17924 + case "$finalize_rpath " in
17925 + *" $libdir "*) ;;
17926 + *) finalize_rpath="$finalize_rpath $libdir" ;;
17927 + esac
17928 + done
17929 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
17930 + dependency_libs="$temp_xrpath $dependency_libs"
17931 + fi
17932 + fi
17934 + # Make sure dlfiles contains only unique files that won't be dlpreopened
17935 + old_dlfiles="$dlfiles"
17936 + dlfiles=
17937 + for lib in $old_dlfiles; do
17938 + case " $dlprefiles $dlfiles " in
17939 + *" $lib "*) ;;
17940 + *) dlfiles="$dlfiles $lib" ;;
17941 + esac
17942 + done
17944 + # Make sure dlprefiles contains only unique files
17945 + old_dlprefiles="$dlprefiles"
17946 + dlprefiles=
17947 + for lib in $old_dlprefiles; do
17948 + case "$dlprefiles " in
17949 + *" $lib "*) ;;
17950 + *) dlprefiles="$dlprefiles $lib" ;;
17951 + esac
17952 + done
17954 + if test "$build_libtool_libs" = yes; then
17955 + if test -n "$rpath"; then
17956 + case $host in
17957 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
17958 + # these systems don't actually have a c library (as such)!
17959 + ;;
17960 + *-*-rhapsody* | *-*-darwin1.[012])
17961 + # Rhapsody C library is in the System framework
17962 + deplibs="$deplibs -framework System"
17963 + ;;
17964 + *-*-netbsd*)
17965 + # Don't link with libc until the a.out ld.so is fixed.
17966 + ;;
17967 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
17968 + # Do not include libc due to us having libc/libc_r.
17969 + ;;
17970 + *-*-sco3.2v5* | *-*-sco5v6*)
17971 + # Causes problems with __ctype
17972 + ;;
17973 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
17974 + # Compiler inserts libc in the correct place for threads to work
17975 + ;;
17976 + *)
17977 + # Add libc to deplibs on all other systems if necessary.
17978 + if test "$build_libtool_need_lc" = "yes"; then
17979 + deplibs="$deplibs -lc"
17980 + fi
17981 + ;;
17982 + esac
17983 + fi
17985 + # Transform deplibs into only deplibs that can be linked in shared.
17986 + name_save=$name
17987 + libname_save=$libname
17988 + release_save=$release
17989 + versuffix_save=$versuffix
17990 + major_save=$major
17991 + # I'm not sure if I'm treating the release correctly. I think
17992 + # release should show up in the -l (ie -lgmp5) so we don't want to
17993 + # add it in twice. Is that correct?
17994 + release=""
17995 + versuffix=""
17996 + major=""
17997 + newdeplibs=
17998 + droppeddeps=no
17999 + case $deplibs_check_method in
18000 + pass_all)
18001 + # Don't check for shared/static. Everything works.
18002 + # This might be a little naive. We might want to check
18003 + # whether the library exists or not. But this is on
18004 + # osf3 & osf4 and I'm not really sure... Just
18005 + # implementing what was already the behavior.
18006 + newdeplibs=$deplibs
18007 + ;;
18008 + test_compile)
18009 + # This code stresses the "libraries are programs" paradigm to its
18010 + # limits. Maybe even breaks it. We compile a program, linking it
18011 + # against the deplibs as a proxy for the library. Then we can check
18012 + # whether they linked in statically or dynamically with ldd.
18013 + $rm conftest.c
18014 + cat > conftest.c <<EOF
18015 + int main() { return 0; }
18016 +EOF
18017 + $rm conftest
18018 + $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
18019 + if test "$?" -eq 0 ; then
18020 + ldd_output=`ldd conftest`
18021 + for i in $deplibs; do
18022 + name=`expr $i : '-l\(.*\)'`
18023 + # If $name is empty we are operating on a -L argument.
18024 + if test "$name" != "" && test "$name" -ne "0"; then
18025 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18026 + case " $predeps $postdeps " in
18027 + *" $i "*)
18028 + newdeplibs="$newdeplibs $i"
18029 + i=""
18030 + ;;
18031 + esac
18032 + fi
18033 + if test -n "$i" ; then
18034 + libname=`eval \\$echo \"$libname_spec\"`
18035 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
18036 + set dummy $deplib_matches
18037 + deplib_match=$2
18038 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
18039 + newdeplibs="$newdeplibs $i"
18040 + else
18041 + droppeddeps=yes
18042 + $echo
18043 + $echo "*** Warning: dynamic linker does not accept needed library $i."
18044 + $echo "*** I have the capability to make that library automatically link in when"
18045 + $echo "*** you link to this library. But I can only do this if you have a"
18046 + $echo "*** shared version of the library, which I believe you do not have"
18047 + $echo "*** because a test_compile did reveal that the linker did not use it for"
18048 + $echo "*** its dynamic dependency list that programs get resolved with at runtime."
18049 + fi
18050 + fi
18051 + else
18052 + newdeplibs="$newdeplibs $i"
18053 + fi
18054 + done
18055 + else
18056 + # Error occurred in the first compile. Let's try to salvage
18057 + # the situation: Compile a separate program for each library.
18058 + for i in $deplibs; do
18059 + name=`expr $i : '-l\(.*\)'`
18060 + # If $name is empty we are operating on a -L argument.
18061 + if test "$name" != "" && test "$name" != "0"; then
18062 + $rm conftest
18063 + $LTCC $LTCFLAGS -o conftest conftest.c $i
18064 + # Did it work?
18065 + if test "$?" -eq 0 ; then
18066 + ldd_output=`ldd conftest`
18067 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18068 + case " $predeps $postdeps " in
18069 + *" $i "*)
18070 + newdeplibs="$newdeplibs $i"
18071 + i=""
18072 + ;;
18073 + esac
18074 + fi
18075 + if test -n "$i" ; then
18076 + libname=`eval \\$echo \"$libname_spec\"`
18077 + deplib_matches=`eval \\$echo \"$library_names_spec\"`
18078 + set dummy $deplib_matches
18079 + deplib_match=$2
18080 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
18081 + newdeplibs="$newdeplibs $i"
18082 + else
18083 + droppeddeps=yes
18084 + $echo
18085 + $echo "*** Warning: dynamic linker does not accept needed library $i."
18086 + $echo "*** I have the capability to make that library automatically link in when"
18087 + $echo "*** you link to this library. But I can only do this if you have a"
18088 + $echo "*** shared version of the library, which you do not appear to have"
18089 + $echo "*** because a test_compile did reveal that the linker did not use this one"
18090 + $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
18091 + fi
18092 + fi
18093 + else
18094 + droppeddeps=yes
18095 + $echo
18096 + $echo "*** Warning! Library $i is needed by this library but I was not able to"
18097 + $echo "*** make it link in! You will probably need to install it or some"
18098 + $echo "*** library that it depends on before this library will be fully"
18099 + $echo "*** functional. Installing it before continuing would be even better."
18100 + fi
18101 + else
18102 + newdeplibs="$newdeplibs $i"
18103 + fi
18104 + done
18105 + fi
18106 + ;;
18107 + file_magic*)
18108 + set dummy $deplibs_check_method
18109 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
18110 + for a_deplib in $deplibs; do
18111 + name=`expr $a_deplib : '-l\(.*\)'`
18112 + # If $name is empty we are operating on a -L argument.
18113 + if test "$name" != "" && test "$name" != "0"; then
18114 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18115 + case " $predeps $postdeps " in
18116 + *" $a_deplib "*)
18117 + newdeplibs="$newdeplibs $a_deplib"
18118 + a_deplib=""
18119 + ;;
18120 + esac
18121 + fi
18122 + if test -n "$a_deplib" ; then
18123 + libname=`eval \\$echo \"$libname_spec\"`
18124 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
18125 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
18126 + for potent_lib in $potential_libs; do
18127 + # Follow soft links.
18128 + if ls -lLd "$potent_lib" 2>/dev/null \
18129 + | grep " -> " >/dev/null; then
18130 + continue
18131 + fi
18132 + # The statement above tries to avoid entering an
18133 + # endless loop below, in case of cyclic links.
18134 + # We might still enter an endless loop, since a link
18135 + # loop can be closed while we follow links,
18136 + # but so what?
18137 + potlib="$potent_lib"
18138 + while test -h "$potlib" 2>/dev/null; do
18139 + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
18140 + case $potliblink in
18141 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
18142 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
18143 + esac
18144 + done
18145 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
18146 + | ${SED} 10q \
18147 + | $EGREP "$file_magic_regex" > /dev/null; then
18148 + newdeplibs="$newdeplibs $a_deplib"
18149 + a_deplib=""
18150 + break 2
18151 + fi
18152 + done
18153 + done
18154 + fi
18155 + if test -n "$a_deplib" ; then
18156 + droppeddeps=yes
18157 + $echo
18158 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
18159 + $echo "*** I have the capability to make that library automatically link in when"
18160 + $echo "*** you link to this library. But I can only do this if you have a"
18161 + $echo "*** shared version of the library, which you do not appear to have"
18162 + $echo "*** because I did check the linker path looking for a file starting"
18163 + if test -z "$potlib" ; then
18164 + $echo "*** with $libname but no candidates were found. (...for file magic test)"
18165 + else
18166 + $echo "*** with $libname and none of the candidates passed a file format test"
18167 + $echo "*** using a file magic. Last file checked: $potlib"
18168 + fi
18169 + fi
18170 + else
18171 + # Add a -L argument.
18172 + newdeplibs="$newdeplibs $a_deplib"
18173 + fi
18174 + done # Gone through all deplibs.
18175 + ;;
18176 + match_pattern*)
18177 + set dummy $deplibs_check_method
18178 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
18179 + for a_deplib in $deplibs; do
18180 + name=`expr $a_deplib : '-l\(.*\)'`
18181 + # If $name is empty we are operating on a -L argument.
18182 + if test -n "$name" && test "$name" != "0"; then
18183 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18184 + case " $predeps $postdeps " in
18185 + *" $a_deplib "*)
18186 + newdeplibs="$newdeplibs $a_deplib"
18187 + a_deplib=""
18188 + ;;
18189 + esac
18190 + fi
18191 + if test -n "$a_deplib" ; then
18192 + libname=`eval \\$echo \"$libname_spec\"`
18193 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
18194 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
18195 + for potent_lib in $potential_libs; do
18196 + potlib="$potent_lib" # see symlink-check above in file_magic test
18197 + if eval $echo \"$potent_lib\" 2>/dev/null \
18198 + | ${SED} 10q \
18199 + | $EGREP "$match_pattern_regex" > /dev/null; then
18200 + newdeplibs="$newdeplibs $a_deplib"
18201 + a_deplib=""
18202 + break 2
18203 + fi
18204 + done
18205 + done
18206 + fi
18207 + if test -n "$a_deplib" ; then
18208 + droppeddeps=yes
18209 + $echo
18210 + $echo "*** Warning: linker path does not have real file for library $a_deplib."
18211 + $echo "*** I have the capability to make that library automatically link in when"
18212 + $echo "*** you link to this library. But I can only do this if you have a"
18213 + $echo "*** shared version of the library, which you do not appear to have"
18214 + $echo "*** because I did check the linker path looking for a file starting"
18215 + if test -z "$potlib" ; then
18216 + $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
18217 + else
18218 + $echo "*** with $libname and none of the candidates passed a file format test"
18219 + $echo "*** using a regex pattern. Last file checked: $potlib"
18220 + fi
18221 + fi
18222 + else
18223 + # Add a -L argument.
18224 + newdeplibs="$newdeplibs $a_deplib"
18225 + fi
18226 + done # Gone through all deplibs.
18227 + ;;
18228 + none | unknown | *)
18229 + newdeplibs=""
18230 + tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
18231 + -e 's/ -[LR][^ ]*//g'`
18232 + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
18233 + for i in $predeps $postdeps ; do
18234 + # can't use Xsed below, because $i might contain '/'
18235 + tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
18236 + done
18237 + fi
18238 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
18239 + | grep . >/dev/null; then
18240 + $echo
18241 + if test "X$deplibs_check_method" = "Xnone"; then
18242 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
18243 + else
18244 + $echo "*** Warning: inter-library dependencies are not known to be supported."
18245 + fi
18246 + $echo "*** All declared inter-library dependencies are being dropped."
18247 + droppeddeps=yes
18248 + fi
18249 + ;;
18250 + esac
18251 + versuffix=$versuffix_save
18252 + major=$major_save
18253 + release=$release_save
18254 + libname=$libname_save
18255 + name=$name_save
18257 + case $host in
18258 + *-*-rhapsody* | *-*-darwin1.[012])
18259 + # On Rhapsody replace the C library is the System framework
18260 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
18261 + ;;
18262 + esac
18264 + if test "$droppeddeps" = yes; then
18265 + if test "$module" = yes; then
18266 + $echo
18267 + $echo "*** Warning: libtool could not satisfy all declared inter-library"
18268 + $echo "*** dependencies of module $libname. Therefore, libtool will create"
18269 + $echo "*** a static module, that should work as long as the dlopening"
18270 + $echo "*** application is linked with the -dlopen flag."
18271 + if test -z "$global_symbol_pipe"; then
18272 + $echo
18273 + $echo "*** However, this would only work if libtool was able to extract symbol"
18274 + $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
18275 + $echo "*** not find such a program. So, this module is probably useless."
18276 + $echo "*** \`nm' from GNU binutils and a full rebuild may help."
18277 + fi
18278 + if test "$build_old_libs" = no; then
18279 + oldlibs="$output_objdir/$libname.$libext"
18280 + build_libtool_libs=module
18281 + build_old_libs=yes
18282 + else
18283 + build_libtool_libs=no
18284 + fi
18285 + else
18286 + $echo "*** The inter-library dependencies that have been dropped here will be"
18287 + $echo "*** automatically added whenever a program is linked with this library"
18288 + $echo "*** or is declared to -dlopen it."
18290 + if test "$allow_undefined" = no; then
18291 + $echo
18292 + $echo "*** Since this library must not contain undefined symbols,"
18293 + $echo "*** because either the platform does not support them or"
18294 + $echo "*** it was explicitly requested with -no-undefined,"
18295 + $echo "*** libtool will only create a static version of it."
18296 + if test "$build_old_libs" = no; then
18297 + oldlibs="$output_objdir/$libname.$libext"
18298 + build_libtool_libs=module
18299 + build_old_libs=yes
18300 + else
18301 + build_libtool_libs=no
18302 + fi
18303 + fi
18304 + fi
18305 + fi
18306 + # Done checking deplibs!
18307 + deplibs=$newdeplibs
18308 + fi
18311 + # move library search paths that coincide with paths to not yet
18312 + # installed libraries to the beginning of the library search list
18313 + new_libs=
18314 + for path in $notinst_path; do
18315 + case " $new_libs " in
18316 + *" -L$path/$objdir "*) ;;
18317 + *)
18318 + case " $deplibs " in
18319 + *" -L$path/$objdir "*)
18320 + new_libs="$new_libs -L$path/$objdir" ;;
18321 + esac
18322 + ;;
18323 + esac
18324 + done
18325 + for deplib in $deplibs; do
18326 + case $deplib in
18327 + -L*)
18328 + case " $new_libs " in
18329 + *" $deplib "*) ;;
18330 + *) new_libs="$new_libs $deplib" ;;
18331 + esac
18332 + ;;
18333 + *) new_libs="$new_libs $deplib" ;;
18334 + esac
18335 + done
18336 + deplibs="$new_libs"
18339 + # All the library-specific variables (install_libdir is set above).
18340 + library_names=
18341 + old_library=
18342 + dlname=
18344 + # Test again, we may have decided not to build it any more
18345 + if test "$build_libtool_libs" = yes; then
18346 + if test "$hardcode_into_libs" = yes; then
18347 + # Hardcode the library paths
18348 + hardcode_libdirs=
18349 + dep_rpath=
18350 + rpath="$finalize_rpath"
18351 + test "$mode" != relink && rpath="$compile_rpath$rpath"
18352 + for libdir in $rpath; do
18353 + if test -n "$hardcode_libdir_flag_spec"; then
18354 + if test -n "$hardcode_libdir_separator"; then
18355 + if test -z "$hardcode_libdirs"; then
18356 + hardcode_libdirs="$libdir"
18357 + else
18358 + # Just accumulate the unique libdirs.
18359 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
18360 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
18361 + ;;
18362 + *)
18363 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18364 + ;;
18365 + esac
18366 + fi
18367 + else
18368 + eval flag=\"$hardcode_libdir_flag_spec\"
18369 + dep_rpath="$dep_rpath $flag"
18370 + fi
18371 + elif test -n "$runpath_var"; then
18372 + case "$perm_rpath " in
18373 + *" $libdir "*) ;;
18374 + *) perm_rpath="$perm_rpath $libdir" ;;
18375 + esac
18376 + fi
18377 + done
18378 + # Substitute the hardcoded libdirs into the rpath.
18379 + if test -n "$hardcode_libdir_separator" &&
18380 + test -n "$hardcode_libdirs"; then
18381 + libdir="$hardcode_libdirs"
18382 + if test -n "$hardcode_libdir_flag_spec_ld"; then
18383 + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
18384 + else
18385 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
18386 + fi
18387 + fi
18388 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
18389 + # We should set the runpath_var.
18390 + rpath=
18391 + for dir in $perm_rpath; do
18392 + rpath="$rpath$dir:"
18393 + done
18394 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
18395 + fi
18396 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
18397 + fi
18399 + shlibpath="$finalize_shlibpath"
18400 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
18401 + if test -n "$shlibpath"; then
18402 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
18403 + fi
18405 + # Get the real and link names of the library.
18406 + eval shared_ext=\"$shrext_cmds\"
18407 + eval library_names=\"$library_names_spec\"
18408 + set dummy $library_names
18409 + realname="$2"
18410 + shift; shift
18412 + if test -n "$soname_spec"; then
18413 + eval soname=\"$soname_spec\"
18414 + else
18415 + soname="$realname"
18416 + fi
18417 + if test -z "$dlname"; then
18418 + dlname=$soname
18419 + fi
18421 + lib="$output_objdir/$realname"
18422 + linknames=
18423 + for link
18424 + do
18425 + linknames="$linknames $link"
18426 + done
18428 + # Use standard objects if they are pic
18429 + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
18431 + # Prepare the list of exported symbols
18432 + if test -z "$export_symbols"; then
18433 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
18434 + $show "generating symbol list for \`$libname.la'"
18435 + export_symbols="$output_objdir/$libname.exp"
18436 + $run $rm $export_symbols
18437 + cmds=$export_symbols_cmds
18438 + save_ifs="$IFS"; IFS='~'
18439 + for cmd in $cmds; do
18440 + IFS="$save_ifs"
18441 + eval cmd=\"$cmd\"
18442 + if len=`expr "X$cmd" : ".*"` &&
18443 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
18444 + $show "$cmd"
18445 + $run eval "$cmd" || exit $?
18446 + skipped_export=false
18447 + else
18448 + # The command line is too long to execute in one step.
18449 + $show "using reloadable object file for export list..."
18450 + skipped_export=:
18451 + # Break out early, otherwise skipped_export may be
18452 + # set to false by a later but shorter cmd.
18453 + break
18454 + fi
18455 + done
18456 + IFS="$save_ifs"
18457 + if test -n "$export_symbols_regex"; then
18458 + $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
18459 + $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
18460 + $show "$mv \"${export_symbols}T\" \"$export_symbols\""
18461 + $run eval '$mv "${export_symbols}T" "$export_symbols"'
18462 + fi
18463 + fi
18464 + fi
18466 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
18467 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
18468 + fi
18470 + tmp_deplibs=
18471 + for test_deplib in $deplibs; do
18472 + case " $convenience " in
18473 + *" $test_deplib "*) ;;
18474 + *)
18475 + tmp_deplibs="$tmp_deplibs $test_deplib"
18476 + ;;
18477 + esac
18478 + done
18479 + deplibs="$tmp_deplibs"
18481 + if test -n "$convenience"; then
18482 + if test -n "$whole_archive_flag_spec"; then
18483 + save_libobjs=$libobjs
18484 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
18485 + else
18486 + gentop="$output_objdir/${outputname}x"
18487 + generated="$generated $gentop"
18489 + func_extract_archives $gentop $convenience
18490 + libobjs="$libobjs $func_extract_archives_result"
18491 + fi
18492 + fi
18494 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
18495 + eval flag=\"$thread_safe_flag_spec\"
18496 + linker_flags="$linker_flags $flag"
18497 + fi
18499 + # Make a backup of the uninstalled library when relinking
18500 + if test "$mode" = relink; then
18501 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
18502 + fi
18504 + # Do each of the archive commands.
18505 + if test "$module" = yes && test -n "$module_cmds" ; then
18506 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
18507 + eval test_cmds=\"$module_expsym_cmds\"
18508 + cmds=$module_expsym_cmds
18509 + else
18510 + eval test_cmds=\"$module_cmds\"
18511 + cmds=$module_cmds
18512 + fi
18513 + else
18514 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
18515 + eval test_cmds=\"$archive_expsym_cmds\"
18516 + cmds=$archive_expsym_cmds
18517 + else
18518 + eval test_cmds=\"$archive_cmds\"
18519 + cmds=$archive_cmds
18520 + fi
18521 + fi
18523 + if test "X$skipped_export" != "X:" &&
18524 + len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
18525 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
18527 + else
18528 + # The command line is too long to link in one step, link piecewise.
18529 + $echo "creating reloadable object files..."
18531 + # Save the value of $output and $libobjs because we want to
18532 + # use them later. If we have whole_archive_flag_spec, we
18533 + # want to use save_libobjs as it was before
18534 + # whole_archive_flag_spec was expanded, because we can't
18535 + # assume the linker understands whole_archive_flag_spec.
18536 + # This may have to be revisited, in case too many
18537 + # convenience libraries get linked in and end up exceeding
18538 + # the spec.
18539 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
18540 + save_libobjs=$libobjs
18541 + fi
18542 + save_output=$output
18543 + output_la=`$echo "X$output" | $Xsed -e "$basename"`
18545 + # Clear the reloadable object creation command queue and
18546 + # initialize k to one.
18547 + test_cmds=
18548 + concat_cmds=
18549 + objlist=
18550 + delfiles=
18551 + last_robj=
18552 + k=1
18553 + output=$output_objdir/$output_la-${k}.$objext
18554 + # Loop over the list of objects to be linked.
18555 + for obj in $save_libobjs
18556 + do
18557 + eval test_cmds=\"$reload_cmds $objlist $last_robj\"
18558 + if test "X$objlist" = X ||
18559 + { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
18560 + test "$len" -le "$max_cmd_len"; }; then
18561 + objlist="$objlist $obj"
18562 + else
18563 + # The command $test_cmds is almost too long, add a
18564 + # command to the queue.
18565 + if test "$k" -eq 1 ; then
18566 + # The first file doesn't have a previous command to add.
18567 + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
18568 + else
18569 + # All subsequent reloadable object files will link in
18570 + # the last one created.
18571 + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
18572 + fi
18573 + last_robj=$output_objdir/$output_la-${k}.$objext
18574 + k=`expr $k + 1`
18575 + output=$output_objdir/$output_la-${k}.$objext
18576 + objlist=$obj
18577 + len=1
18578 + fi
18579 + done
18580 + # Handle the remaining objects by creating one last
18581 + # reloadable object file. All subsequent reloadable object
18582 + # files will link in the last one created.
18583 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
18584 + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
18586 + if ${skipped_export-false}; then
18587 + $show "generating symbol list for \`$libname.la'"
18588 + export_symbols="$output_objdir/$libname.exp"
18589 + $run $rm $export_symbols
18590 + libobjs=$output
18591 + # Append the command to create the export file.
18592 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
18593 + fi
18595 + # Set up a command to remove the reloadable object files
18596 + # after they are used.
18597 + i=0
18598 + while test "$i" -lt "$k"
18599 + do
18600 + i=`expr $i + 1`
18601 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
18602 + done
18604 + $echo "creating a temporary reloadable object file: $output"
18606 + # Loop through the commands generated above and execute them.
18607 + save_ifs="$IFS"; IFS='~'
18608 + for cmd in $concat_cmds; do
18609 + IFS="$save_ifs"
18610 + $show "$cmd"
18611 + $run eval "$cmd" || exit $?
18612 + done
18613 + IFS="$save_ifs"
18615 + libobjs=$output
18616 + # Restore the value of output.
18617 + output=$save_output
18619 + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
18620 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
18621 + fi
18622 + # Expand the library linking commands again to reset the
18623 + # value of $libobjs for piecewise linking.
18625 + # Do each of the archive commands.
18626 + if test "$module" = yes && test -n "$module_cmds" ; then
18627 + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
18628 + cmds=$module_expsym_cmds
18629 + else
18630 + cmds=$module_cmds
18631 + fi
18632 + else
18633 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
18634 + cmds=$archive_expsym_cmds
18635 + else
18636 + cmds=$archive_cmds
18637 + fi
18638 + fi
18640 + # Append the command to remove the reloadable object files
18641 + # to the just-reset $cmds.
18642 + eval cmds=\"\$cmds~\$rm $delfiles\"
18643 + fi
18644 + save_ifs="$IFS"; IFS='~'
18645 + for cmd in $cmds; do
18646 + IFS="$save_ifs"
18647 + eval cmd=\"$cmd\"
18648 + $show "$cmd"
18649 + $run eval "$cmd" || {
18650 + lt_exit=$?
18652 + # Restore the uninstalled library and exit
18653 + if test "$mode" = relink; then
18654 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
18655 + fi
18657 + exit $lt_exit
18659 + done
18660 + IFS="$save_ifs"
18662 + # Restore the uninstalled library and exit
18663 + if test "$mode" = relink; then
18664 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
18666 + if test -n "$convenience"; then
18667 + if test -z "$whole_archive_flag_spec"; then
18668 + $show "${rm}r $gentop"
18669 + $run ${rm}r "$gentop"
18670 + fi
18671 + fi
18673 + exit $EXIT_SUCCESS
18674 + fi
18676 + # Create links to the real library.
18677 + for linkname in $linknames; do
18678 + if test "$realname" != "$linkname"; then
18679 + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
18680 + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
18681 + fi
18682 + done
18684 + # If -module or -export-dynamic was specified, set the dlname.
18685 + if test "$module" = yes || test "$export_dynamic" = yes; then
18686 + # On all known operating systems, these are identical.
18687 + dlname="$soname"
18688 + fi
18689 + fi
18690 + ;;
18692 + obj)
18693 + if test -n "$deplibs"; then
18694 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
18695 + fi
18697 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
18698 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
18699 + fi
18701 + if test -n "$rpath"; then
18702 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
18703 + fi
18705 + if test -n "$xrpath"; then
18706 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
18707 + fi
18709 + if test -n "$vinfo"; then
18710 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
18711 + fi
18713 + if test -n "$release"; then
18714 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
18715 + fi
18717 + case $output in
18718 + *.lo)
18719 + if test -n "$objs$old_deplibs"; then
18720 + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
18721 + exit $EXIT_FAILURE
18722 + fi
18723 + libobj="$output"
18724 + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
18725 + ;;
18726 + *)
18727 + libobj=
18728 + obj="$output"
18729 + ;;
18730 + esac
18732 + # Delete the old objects.
18733 + $run $rm $obj $libobj
18735 + # Objects from convenience libraries. This assumes
18736 + # single-version convenience libraries. Whenever we create
18737 + # different ones for PIC/non-PIC, this we'll have to duplicate
18738 + # the extraction.
18739 + reload_conv_objs=
18740 + gentop=
18741 + # reload_cmds runs $LD directly, so let us get rid of
18742 + # -Wl from whole_archive_flag_spec
18743 + wl=
18745 + if test -n "$convenience"; then
18746 + if test -n "$whole_archive_flag_spec"; then
18747 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
18748 + else
18749 + gentop="$output_objdir/${obj}x"
18750 + generated="$generated $gentop"
18752 + func_extract_archives $gentop $convenience
18753 + reload_conv_objs="$reload_objs $func_extract_archives_result"
18754 + fi
18755 + fi
18757 + # Create the old-style object.
18758 + 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
18760 + output="$obj"
18761 + cmds=$reload_cmds
18762 + save_ifs="$IFS"; IFS='~'
18763 + for cmd in $cmds; do
18764 + IFS="$save_ifs"
18765 + eval cmd=\"$cmd\"
18766 + $show "$cmd"
18767 + $run eval "$cmd" || exit $?
18768 + done
18769 + IFS="$save_ifs"
18771 + # Exit if we aren't doing a library object file.
18772 + if test -z "$libobj"; then
18773 + if test -n "$gentop"; then
18774 + $show "${rm}r $gentop"
18775 + $run ${rm}r $gentop
18776 + fi
18778 + exit $EXIT_SUCCESS
18779 + fi
18781 + if test "$build_libtool_libs" != yes; then
18782 + if test -n "$gentop"; then
18783 + $show "${rm}r $gentop"
18784 + $run ${rm}r $gentop
18785 + fi
18787 + # Create an invalid libtool object if no PIC, so that we don't
18788 + # accidentally link it into a program.
18789 + # $show "echo timestamp > $libobj"
18790 + # $run eval "echo timestamp > $libobj" || exit $?
18791 + exit $EXIT_SUCCESS
18792 + fi
18794 + if test -n "$pic_flag" || test "$pic_mode" != default; then
18795 + # Only do commands if we really have different PIC objects.
18796 + reload_objs="$libobjs $reload_conv_objs"
18797 + output="$libobj"
18798 + cmds=$reload_cmds
18799 + save_ifs="$IFS"; IFS='~'
18800 + for cmd in $cmds; do
18801 + IFS="$save_ifs"
18802 + eval cmd=\"$cmd\"
18803 + $show "$cmd"
18804 + $run eval "$cmd" || exit $?
18805 + done
18806 + IFS="$save_ifs"
18807 + fi
18809 + if test -n "$gentop"; then
18810 + $show "${rm}r $gentop"
18811 + $run ${rm}r $gentop
18812 + fi
18814 + exit $EXIT_SUCCESS
18815 + ;;
18817 + prog)
18818 + case $host in
18819 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
18820 + esac
18821 + if test -n "$vinfo"; then
18822 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
18823 + fi
18825 + if test -n "$release"; then
18826 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
18827 + fi
18829 + if test "$preload" = yes; then
18830 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
18831 + test "$dlopen_self_static" = unknown; then
18832 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
18833 + fi
18834 + fi
18836 + case $host in
18837 + *-*-rhapsody* | *-*-darwin1.[012])
18838 + # On Rhapsody replace the C library is the System framework
18839 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
18840 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
18841 + ;;
18842 + esac
18844 + case $host in
18845 + *darwin*)
18846 + # Don't allow lazy linking, it breaks C++ global constructors
18847 + if test "$tagname" = CXX ; then
18848 + compile_command="$compile_command ${wl}-bind_at_load"
18849 + finalize_command="$finalize_command ${wl}-bind_at_load"
18850 + fi
18851 + ;;
18852 + esac
18855 + # move library search paths that coincide with paths to not yet
18856 + # installed libraries to the beginning of the library search list
18857 + new_libs=
18858 + for path in $notinst_path; do
18859 + case " $new_libs " in
18860 + *" -L$path/$objdir "*) ;;
18861 + *)
18862 + case " $compile_deplibs " in
18863 + *" -L$path/$objdir "*)
18864 + new_libs="$new_libs -L$path/$objdir" ;;
18865 + esac
18866 + ;;
18867 + esac
18868 + done
18869 + for deplib in $compile_deplibs; do
18870 + case $deplib in
18871 + -L*)
18872 + case " $new_libs " in
18873 + *" $deplib "*) ;;
18874 + *) new_libs="$new_libs $deplib" ;;
18875 + esac
18876 + ;;
18877 + *) new_libs="$new_libs $deplib" ;;
18878 + esac
18879 + done
18880 + compile_deplibs="$new_libs"
18883 + compile_command="$compile_command $compile_deplibs"
18884 + finalize_command="$finalize_command $finalize_deplibs"
18886 + if test -n "$rpath$xrpath"; then
18887 + # If the user specified any rpath flags, then add them.
18888 + for libdir in $rpath $xrpath; do
18889 + # This is the magic to use -rpath.
18890 + case "$finalize_rpath " in
18891 + *" $libdir "*) ;;
18892 + *) finalize_rpath="$finalize_rpath $libdir" ;;
18893 + esac
18894 + done
18895 + fi
18897 + # Now hardcode the library paths
18898 + rpath=
18899 + hardcode_libdirs=
18900 + for libdir in $compile_rpath $finalize_rpath; do
18901 + if test -n "$hardcode_libdir_flag_spec"; then
18902 + if test -n "$hardcode_libdir_separator"; then
18903 + if test -z "$hardcode_libdirs"; then
18904 + hardcode_libdirs="$libdir"
18905 + else
18906 + # Just accumulate the unique libdirs.
18907 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
18908 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
18909 + ;;
18910 + *)
18911 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18912 + ;;
18913 + esac
18914 + fi
18915 + else
18916 + eval flag=\"$hardcode_libdir_flag_spec\"
18917 + rpath="$rpath $flag"
18918 + fi
18919 + elif test -n "$runpath_var"; then
18920 + case "$perm_rpath " in
18921 + *" $libdir "*) ;;
18922 + *) perm_rpath="$perm_rpath $libdir" ;;
18923 + esac
18924 + fi
18925 + case $host in
18926 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
18927 + testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
18928 + case :$dllsearchpath: in
18929 + *":$libdir:"*) ;;
18930 + *) dllsearchpath="$dllsearchpath:$libdir";;
18931 + esac
18932 + case :$dllsearchpath: in
18933 + *":$testbindir:"*) ;;
18934 + *) dllsearchpath="$dllsearchpath:$testbindir";;
18935 + esac
18936 + ;;
18937 + esac
18938 + done
18939 + # Substitute the hardcoded libdirs into the rpath.
18940 + if test -n "$hardcode_libdir_separator" &&
18941 + test -n "$hardcode_libdirs"; then
18942 + libdir="$hardcode_libdirs"
18943 + eval rpath=\" $hardcode_libdir_flag_spec\"
18944 + fi
18945 + compile_rpath="$rpath"
18947 + rpath=
18948 + hardcode_libdirs=
18949 + for libdir in $finalize_rpath; do
18950 + if test -n "$hardcode_libdir_flag_spec"; then
18951 + if test -n "$hardcode_libdir_separator"; then
18952 + if test -z "$hardcode_libdirs"; then
18953 + hardcode_libdirs="$libdir"
18954 + else
18955 + # Just accumulate the unique libdirs.
18956 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
18957 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
18958 + ;;
18959 + *)
18960 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18961 + ;;
18962 + esac
18963 + fi
18964 + else
18965 + eval flag=\"$hardcode_libdir_flag_spec\"
18966 + rpath="$rpath $flag"
18967 + fi
18968 + elif test -n "$runpath_var"; then
18969 + case "$finalize_perm_rpath " in
18970 + *" $libdir "*) ;;
18971 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
18972 + esac
18973 + fi
18974 + done
18975 + # Substitute the hardcoded libdirs into the rpath.
18976 + if test -n "$hardcode_libdir_separator" &&
18977 + test -n "$hardcode_libdirs"; then
18978 + libdir="$hardcode_libdirs"
18979 + eval rpath=\" $hardcode_libdir_flag_spec\"
18980 + fi
18981 + finalize_rpath="$rpath"
18983 + if test -n "$libobjs" && test "$build_old_libs" = yes; then
18984 + # Transform all the library objects into standard objects.
18985 + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
18986 + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
18987 + fi
18989 + dlsyms=
18990 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
18991 + if test -n "$NM" && test -n "$global_symbol_pipe"; then
18992 + dlsyms="${outputname}S.c"
18993 + else
18994 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
18995 + fi
18996 + fi
18998 + if test -n "$dlsyms"; then
18999 + case $dlsyms in
19000 + "") ;;
19001 + *.c)
19002 + # Discover the nlist of each of the dlfiles.
19003 + nlist="$output_objdir/${outputname}.nm"
19005 + $show "$rm $nlist ${nlist}S ${nlist}T"
19006 + $run $rm "$nlist" "${nlist}S" "${nlist}T"
19008 + # Parse the name list into a source file.
19009 + $show "creating $output_objdir/$dlsyms"
19011 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
19012 +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
19013 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
19015 +#ifdef __cplusplus
19016 +extern \"C\" {
19017 +#endif
19019 +/* Prevent the only kind of declaration conflicts we can make. */
19020 +#define lt_preloaded_symbols some_other_symbol
19022 +/* External symbol declarations for the compiler. */\
19025 + if test "$dlself" = yes; then
19026 + $show "generating symbol list for \`$output'"
19028 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
19030 + # Add our own program objects to the symbol list.
19031 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
19032 + for arg in $progfiles; do
19033 + $show "extracting global C symbols from \`$arg'"
19034 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
19035 + done
19037 + if test -n "$exclude_expsyms"; then
19038 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
19039 + $run eval '$mv "$nlist"T "$nlist"'
19040 + fi
19042 + if test -n "$export_symbols_regex"; then
19043 + $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
19044 + $run eval '$mv "$nlist"T "$nlist"'
19045 + fi
19047 + # Prepare the list of exported symbols
19048 + if test -z "$export_symbols"; then
19049 + export_symbols="$output_objdir/$outputname.exp"
19050 + $run $rm $export_symbols
19051 + $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
19052 + case $host in
19053 + *cygwin* | *mingw* )
19054 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
19055 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
19056 + ;;
19057 + esac
19058 + else
19059 + $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
19060 + $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
19061 + $run eval 'mv "$nlist"T "$nlist"'
19062 + case $host in
19063 + *cygwin* | *mingw* )
19064 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
19065 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
19066 + ;;
19067 + esac
19068 + fi
19069 + fi
19071 + for arg in $dlprefiles; do
19072 + $show "extracting global C symbols from \`$arg'"
19073 + name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
19074 + $run eval '$echo ": $name " >> "$nlist"'
19075 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
19076 + done
19078 + if test -z "$run"; then
19079 + # Make sure we have at least an empty file.
19080 + test -f "$nlist" || : > "$nlist"
19082 + if test -n "$exclude_expsyms"; then
19083 + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
19084 + $mv "$nlist"T "$nlist"
19085 + fi
19087 + # Try sorting and uniquifying the output.
19088 + if grep -v "^: " < "$nlist" |
19089 + if sort -k 3 </dev/null >/dev/null 2>&1; then
19090 + sort -k 3
19091 + else
19092 + sort +2
19093 + fi |
19094 + uniq > "$nlist"S; then
19096 + else
19097 + grep -v "^: " < "$nlist" > "$nlist"S
19098 + fi
19100 + if test -f "$nlist"S; then
19101 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
19102 + else
19103 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
19104 + fi
19106 + $echo >> "$output_objdir/$dlsyms" "\
19108 +#undef lt_preloaded_symbols
19110 +#if defined (__STDC__) && __STDC__
19111 +# define lt_ptr void *
19112 +#else
19113 +# define lt_ptr char *
19114 +# define const
19115 +#endif
19117 +/* The mapping between symbol names and symbols. */
19120 + case $host in
19121 + *cygwin* | *mingw* )
19122 + $echo >> "$output_objdir/$dlsyms" "\
19123 +/* DATA imports from DLLs on WIN32 can't be const, because
19124 + runtime relocations are performed -- see ld's documentation
19125 + on pseudo-relocs */
19126 +struct {
19128 + ;;
19129 + * )
19130 + $echo >> "$output_objdir/$dlsyms" "\
19131 +const struct {
19133 + ;;
19134 + esac
19137 + $echo >> "$output_objdir/$dlsyms" "\
19138 + const char *name;
19139 + lt_ptr address;
19141 +lt_preloaded_symbols[] =
19145 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
19147 + $echo >> "$output_objdir/$dlsyms" "\
19148 + {0, (lt_ptr) 0}
19151 +/* This works around a problem in FreeBSD linker */
19152 +#ifdef FREEBSD_WORKAROUND
19153 +static const void *lt_preloaded_setup() {
19154 + return lt_preloaded_symbols;
19156 +#endif
19158 +#ifdef __cplusplus
19160 +#endif\
19162 + fi
19164 + pic_flag_for_symtable=
19165 + case $host in
19166 + # compiling the symbol table file with pic_flag works around
19167 + # a FreeBSD bug that causes programs to crash when -lm is
19168 + # linked before any other PIC object. But we must not use
19169 + # pic_flag when linking with -static. The problem exists in
19170 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
19171 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
19172 + case "$compile_command " in
19173 + *" -static "*) ;;
19174 + *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
19175 + esac;;
19176 + *-*-hpux*)
19177 + case "$compile_command " in
19178 + *" -static "*) ;;
19179 + *) pic_flag_for_symtable=" $pic_flag";;
19180 + esac
19181 + esac
19183 + # Now compile the dynamic symbol file.
19184 + $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
19185 + $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
19187 + # Clean up the generated files.
19188 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
19189 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
19191 + # Transform the symbol file into the correct name.
19192 + case $host in
19193 + *cygwin* | *mingw* )
19194 + if test -f "$output_objdir/${outputname}.def" ; then
19195 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
19196 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
19197 + else
19198 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
19199 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
19200 + fi
19201 + ;;
19202 + * )
19203 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
19204 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
19205 + ;;
19206 + esac
19207 + ;;
19208 + *)
19209 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
19210 + exit $EXIT_FAILURE
19211 + ;;
19212 + esac
19213 + else
19214 + # We keep going just in case the user didn't refer to
19215 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
19216 + # really was required.
19218 + # Nullify the symbol file.
19219 + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
19220 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
19221 + fi
19223 + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
19224 + # Replace the output file specification.
19225 + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
19226 + link_command="$compile_command$compile_rpath"
19228 + # We have no uninstalled library dependencies, so finalize right now.
19229 + $show "$link_command"
19230 + $run eval "$link_command"
19231 + exit_status=$?
19233 + # Delete the generated files.
19234 + if test -n "$dlsyms"; then
19235 + $show "$rm $output_objdir/${outputname}S.${objext}"
19236 + $run $rm "$output_objdir/${outputname}S.${objext}"
19237 + fi
19239 + exit $exit_status
19240 + fi
19242 + if test -n "$shlibpath_var"; then
19243 + # We should set the shlibpath_var
19244 + rpath=
19245 + for dir in $temp_rpath; do
19246 + case $dir in
19247 + [\\/]* | [A-Za-z]:[\\/]*)
19248 + # Absolute path.
19249 + rpath="$rpath$dir:"
19250 + ;;
19251 + *)
19252 + # Relative path: add a thisdir entry.
19253 + rpath="$rpath\$thisdir/$dir:"
19254 + ;;
19255 + esac
19256 + done
19257 + temp_rpath="$rpath"
19258 + fi
19260 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
19261 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
19262 + fi
19263 + if test -n "$finalize_shlibpath"; then
19264 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
19265 + fi
19267 + compile_var=
19268 + finalize_var=
19269 + if test -n "$runpath_var"; then
19270 + if test -n "$perm_rpath"; then
19271 + # We should set the runpath_var.
19272 + rpath=
19273 + for dir in $perm_rpath; do
19274 + rpath="$rpath$dir:"
19275 + done
19276 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
19277 + fi
19278 + if test -n "$finalize_perm_rpath"; then
19279 + # We should set the runpath_var.
19280 + rpath=
19281 + for dir in $finalize_perm_rpath; do
19282 + rpath="$rpath$dir:"
19283 + done
19284 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
19285 + fi
19286 + fi
19288 + if test "$no_install" = yes; then
19289 + # We don't need to create a wrapper script.
19290 + link_command="$compile_var$compile_command$compile_rpath"
19291 + # Replace the output file specification.
19292 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
19293 + # Delete the old output file.
19294 + $run $rm $output
19295 + # Link the executable and exit
19296 + $show "$link_command"
19297 + $run eval "$link_command" || exit $?
19298 + exit $EXIT_SUCCESS
19299 + fi
19301 + if test "$hardcode_action" = relink; then
19302 + # Fast installation is not supported
19303 + link_command="$compile_var$compile_command$compile_rpath"
19304 + relink_command="$finalize_var$finalize_command$finalize_rpath"
19306 + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
19307 + $echo "$modename: \`$output' will be relinked during installation" 1>&2
19308 + else
19309 + if test "$fast_install" != no; then
19310 + link_command="$finalize_var$compile_command$finalize_rpath"
19311 + if test "$fast_install" = yes; then
19312 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
19313 + else
19314 + # fast_install is set to needless
19315 + relink_command=
19316 + fi
19317 + else
19318 + link_command="$compile_var$compile_command$compile_rpath"
19319 + relink_command="$finalize_var$finalize_command$finalize_rpath"
19320 + fi
19321 + fi
19323 + # Replace the output file specification.
19324 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
19326 + # Delete the old output files.
19327 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
19329 + $show "$link_command"
19330 + $run eval "$link_command" || exit $?
19332 + # Now create the wrapper script.
19333 + $show "creating $output"
19335 + # Quote the relink command for shipping.
19336 + if test -n "$relink_command"; then
19337 + # Preserve any variables that may affect compiler behavior
19338 + for var in $variables_saved_for_relink; do
19339 + if eval test -z \"\${$var+set}\"; then
19340 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
19341 + elif eval var_value=\$$var; test -z "$var_value"; then
19342 + relink_command="$var=; export $var; $relink_command"
19343 + else
19344 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
19345 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
19346 + fi
19347 + done
19348 + relink_command="(cd `pwd`; $relink_command)"
19349 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
19350 + fi
19352 + # Quote $echo for shipping.
19353 + if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
19354 + case $progpath in
19355 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
19356 + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
19357 + esac
19358 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
19359 + else
19360 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
19361 + fi
19363 + # Only actually do things if our run command is non-null.
19364 + if test -z "$run"; then
19365 + # win32 will think the script is a binary if it has
19366 + # a .exe suffix, so we strip it off here.
19367 + case $output in
19368 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
19369 + esac
19370 + # test for cygwin because mv fails w/o .exe extensions
19371 + case $host in
19372 + *cygwin*)
19373 + exeext=.exe
19374 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
19375 + *) exeext= ;;
19376 + esac
19377 + case $host in
19378 + *cygwin* | *mingw* )
19379 + output_name=`basename $output`
19380 + output_path=`dirname $output`
19381 + cwrappersource="$output_path/$objdir/lt-$output_name.c"
19382 + cwrapper="$output_path/$output_name.exe"
19383 + $rm $cwrappersource $cwrapper
19384 + trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
19386 + cat > $cwrappersource <<EOF
19388 +/* $cwrappersource - temporary wrapper executable for $objdir/$outputname
19389 + Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
19391 + The $output program cannot be directly executed until all the libtool
19392 + libraries that it depends on are installed.
19394 + This wrapper executable should never be moved out of the build directory.
19395 + If it is, it will not operate correctly.
19397 + Currently, it simply execs the wrapper *script* "/bin/sh $output",
19398 + but could eventually absorb all of the scripts functionality and
19399 + exec $objdir/$outputname directly.
19401 +EOF
19402 + cat >> $cwrappersource<<"EOF"
19403 +#include <stdio.h>
19404 +#include <stdlib.h>
19405 +#include <unistd.h>
19406 +#include <malloc.h>
19407 +#include <stdarg.h>
19408 +#include <assert.h>
19409 +#include <string.h>
19410 +#include <ctype.h>
19411 +#include <sys/stat.h>
19413 +#if defined(PATH_MAX)
19414 +# define LT_PATHMAX PATH_MAX
19415 +#elif defined(MAXPATHLEN)
19416 +# define LT_PATHMAX MAXPATHLEN
19417 +#else
19418 +# define LT_PATHMAX 1024
19419 +#endif
19421 +#ifndef DIR_SEPARATOR
19422 +# define DIR_SEPARATOR '/'
19423 +# define PATH_SEPARATOR ':'
19424 +#endif
19426 +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
19427 + defined (__OS2__)
19428 +# define HAVE_DOS_BASED_FILE_SYSTEM
19429 +# ifndef DIR_SEPARATOR_2
19430 +# define DIR_SEPARATOR_2 '\\'
19431 +# endif
19432 +# ifndef PATH_SEPARATOR_2
19433 +# define PATH_SEPARATOR_2 ';'
19434 +# endif
19435 +#endif
19437 +#ifndef DIR_SEPARATOR_2
19438 +# define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
19439 +#else /* DIR_SEPARATOR_2 */
19440 +# define IS_DIR_SEPARATOR(ch) \
19441 + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
19442 +#endif /* DIR_SEPARATOR_2 */
19444 +#ifndef PATH_SEPARATOR_2
19445 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
19446 +#else /* PATH_SEPARATOR_2 */
19447 +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
19448 +#endif /* PATH_SEPARATOR_2 */
19450 +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
19451 +#define XFREE(stale) do { \
19452 + if (stale) { free ((void *) stale); stale = 0; } \
19453 +} while (0)
19455 +/* -DDEBUG is fairly common in CFLAGS. */
19456 +#undef DEBUG
19457 +#if defined DEBUGWRAPPER
19458 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
19459 +#else
19460 +# define DEBUG(format, ...)
19461 +#endif
19463 +const char *program_name = NULL;
19465 +void * xmalloc (size_t num);
19466 +char * xstrdup (const char *string);
19467 +const char * base_name (const char *name);
19468 +char * find_executable(const char *wrapper);
19469 +int check_executable(const char *path);
19470 +char * strendzap(char *str, const char *pat);
19471 +void lt_fatal (const char *message, ...);
19473 +int
19474 +main (int argc, char *argv[])
19476 + char **newargz;
19477 + int i;
19479 + program_name = (char *) xstrdup (base_name (argv[0]));
19480 + DEBUG("(main) argv[0] : %s\n",argv[0]);
19481 + DEBUG("(main) program_name : %s\n",program_name);
19482 + newargz = XMALLOC(char *, argc+2);
19483 +EOF
19485 + cat >> $cwrappersource <<EOF
19486 + newargz[0] = (char *) xstrdup("$SHELL");
19487 +EOF
19489 + cat >> $cwrappersource <<"EOF"
19490 + newargz[1] = find_executable(argv[0]);
19491 + if (newargz[1] == NULL)
19492 + lt_fatal("Couldn't find %s", argv[0]);
19493 + DEBUG("(main) found exe at : %s\n",newargz[1]);
19494 + /* we know the script has the same name, without the .exe */
19495 + /* so make sure newargz[1] doesn't end in .exe */
19496 + strendzap(newargz[1],".exe");
19497 + for (i = 1; i < argc; i++)
19498 + newargz[i+1] = xstrdup(argv[i]);
19499 + newargz[argc+1] = NULL;
19501 + for (i=0; i<argc+1; i++)
19503 + DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
19507 +EOF
19509 + case $host_os in
19510 + mingw*)
19511 + cat >> $cwrappersource <<EOF
19512 + execv("$SHELL",(char const **)newargz);
19513 +EOF
19514 + ;;
19515 + *)
19516 + cat >> $cwrappersource <<EOF
19517 + execv("$SHELL",newargz);
19518 +EOF
19519 + ;;
19520 + esac
19522 + cat >> $cwrappersource <<"EOF"
19523 + return 127;
19526 +void *
19527 +xmalloc (size_t num)
19529 + void * p = (void *) malloc (num);
19530 + if (!p)
19531 + lt_fatal ("Memory exhausted");
19533 + return p;
19536 +char *
19537 +xstrdup (const char *string)
19539 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
19543 +const char *
19544 +base_name (const char *name)
19546 + const char *base;
19548 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
19549 + /* Skip over the disk name in MSDOS pathnames. */
19550 + if (isalpha ((unsigned char)name[0]) && name[1] == ':')
19551 + name += 2;
19552 +#endif
19554 + for (base = name; *name; name++)
19555 + if (IS_DIR_SEPARATOR (*name))
19556 + base = name + 1;
19557 + return base;
19560 +int
19561 +check_executable(const char * path)
19563 + struct stat st;
19565 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
19566 + if ((!path) || (!*path))
19567 + return 0;
19569 + if ((stat (path, &st) >= 0) &&
19571 + /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
19572 +#if defined (S_IXOTH)
19573 + ((st.st_mode & S_IXOTH) == S_IXOTH) ||
19574 +#endif
19575 +#if defined (S_IXGRP)
19576 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
19577 +#endif
19578 + ((st.st_mode & S_IXUSR) == S_IXUSR))
19580 + return 1;
19581 + else
19582 + return 0;
19585 +/* Searches for the full path of the wrapper. Returns
19586 + newly allocated full path name if found, NULL otherwise */
19587 +char *
19588 +find_executable (const char* wrapper)
19590 + int has_slash = 0;
19591 + const char* p;
19592 + const char* p_next;
19593 + /* static buffer for getcwd */
19594 + char tmp[LT_PATHMAX + 1];
19595 + int tmp_len;
19596 + char* concat_name;
19598 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
19600 + if ((wrapper == NULL) || (*wrapper == '\0'))
19601 + return NULL;
19603 + /* Absolute path? */
19604 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
19605 + if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
19607 + concat_name = xstrdup (wrapper);
19608 + if (check_executable(concat_name))
19609 + return concat_name;
19610 + XFREE(concat_name);
19612 + else
19614 +#endif
19615 + if (IS_DIR_SEPARATOR (wrapper[0]))
19617 + concat_name = xstrdup (wrapper);
19618 + if (check_executable(concat_name))
19619 + return concat_name;
19620 + XFREE(concat_name);
19622 +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
19624 +#endif
19626 + for (p = wrapper; *p; p++)
19627 + if (*p == '/')
19629 + has_slash = 1;
19630 + break;
19632 + if (!has_slash)
19634 + /* no slashes; search PATH */
19635 + const char* path = getenv ("PATH");
19636 + if (path != NULL)
19638 + for (p = path; *p; p = p_next)
19640 + const char* q;
19641 + size_t p_len;
19642 + for (q = p; *q; q++)
19643 + if (IS_PATH_SEPARATOR(*q))
19644 + break;
19645 + p_len = q - p;
19646 + p_next = (*q == '\0' ? q : q + 1);
19647 + if (p_len == 0)
19649 + /* empty path: current directory */
19650 + if (getcwd (tmp, LT_PATHMAX) == NULL)
19651 + lt_fatal ("getcwd failed");
19652 + tmp_len = strlen(tmp);
19653 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
19654 + memcpy (concat_name, tmp, tmp_len);
19655 + concat_name[tmp_len] = '/';
19656 + strcpy (concat_name + tmp_len + 1, wrapper);
19658 + else
19660 + concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
19661 + memcpy (concat_name, p, p_len);
19662 + concat_name[p_len] = '/';
19663 + strcpy (concat_name + p_len + 1, wrapper);
19665 + if (check_executable(concat_name))
19666 + return concat_name;
19667 + XFREE(concat_name);
19670 + /* not found in PATH; assume curdir */
19672 + /* Relative path | not found in path: prepend cwd */
19673 + if (getcwd (tmp, LT_PATHMAX) == NULL)
19674 + lt_fatal ("getcwd failed");
19675 + tmp_len = strlen(tmp);
19676 + concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
19677 + memcpy (concat_name, tmp, tmp_len);
19678 + concat_name[tmp_len] = '/';
19679 + strcpy (concat_name + tmp_len + 1, wrapper);
19681 + if (check_executable(concat_name))
19682 + return concat_name;
19683 + XFREE(concat_name);
19684 + return NULL;
19687 +char *
19688 +strendzap(char *str, const char *pat)
19690 + size_t len, patlen;
19692 + assert(str != NULL);
19693 + assert(pat != NULL);
19695 + len = strlen(str);
19696 + patlen = strlen(pat);
19698 + if (patlen <= len)
19700 + str += len - patlen;
19701 + if (strcmp(str, pat) == 0)
19702 + *str = '\0';
19704 + return str;
19707 +static void
19708 +lt_error_core (int exit_status, const char * mode,
19709 + const char * message, va_list ap)
19711 + fprintf (stderr, "%s: %s: ", program_name, mode);
19712 + vfprintf (stderr, message, ap);
19713 + fprintf (stderr, ".\n");
19715 + if (exit_status >= 0)
19716 + exit (exit_status);
19719 +void
19720 +lt_fatal (const char *message, ...)
19722 + va_list ap;
19723 + va_start (ap, message);
19724 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
19725 + va_end (ap);
19727 +EOF
19728 + # we should really use a build-platform specific compiler
19729 + # here, but OTOH, the wrappers (shell script and this C one)
19730 + # are only useful if you want to execute the "real" binary.
19731 + # Since the "real" binary is built for $host, then this
19732 + # wrapper might as well be built for $host, too.
19733 + $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
19734 + ;;
19735 + esac
19736 + $rm $output
19737 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
19739 + $echo > $output "\
19740 +#! $SHELL
19742 +# $output - temporary wrapper script for $objdir/$outputname
19743 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
19745 +# The $output program cannot be directly executed until all the libtool
19746 +# libraries that it depends on are installed.
19748 +# This wrapper script should never be moved out of the build directory.
19749 +# If it is, it will not operate correctly.
19751 +# Sed substitution that helps us do robust quoting. It backslashifies
19752 +# metacharacters that are still active within double-quoted strings.
19753 +Xsed='${SED} -e 1s/^X//'
19754 +sed_quote_subst='$sed_quote_subst'
19756 +# The HP-UX ksh and POSIX shell print the target directory to stdout
19757 +# if CDPATH is set.
19758 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19760 +relink_command=\"$relink_command\"
19762 +# This environment variable determines our operation mode.
19763 +if test \"\$libtool_install_magic\" = \"$magic\"; then
19764 + # install mode needs the following variable:
19765 + notinst_deplibs='$notinst_deplibs'
19766 +else
19767 + # When we are sourced in execute mode, \$file and \$echo are already set.
19768 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
19769 + echo=\"$qecho\"
19770 + file=\"\$0\"
19771 + # Make sure echo works.
19772 + if test \"X\$1\" = X--no-reexec; then
19773 + # Discard the --no-reexec flag, and continue.
19774 + shift
19775 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
19776 + # Yippee, \$echo works!
19778 + else
19779 + # Restart under the correct shell, and then maybe \$echo will work.
19780 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
19781 + fi
19782 + fi\
19784 + $echo >> $output "\
19786 + # Find the directory that this script lives in.
19787 + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
19788 + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
19790 + # Follow symbolic links until we get to the real thisdir.
19791 + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
19792 + while test -n \"\$file\"; do
19793 + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
19795 + # If there was a directory component, then change thisdir.
19796 + if test \"x\$destdir\" != \"x\$file\"; then
19797 + case \"\$destdir\" in
19798 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
19799 + *) thisdir=\"\$thisdir/\$destdir\" ;;
19800 + esac
19801 + fi
19803 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
19804 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
19805 + done
19807 + # Try to get the absolute directory name.
19808 + absdir=\`cd \"\$thisdir\" && pwd\`
19809 + test -n \"\$absdir\" && thisdir=\"\$absdir\"
19812 + if test "$fast_install" = yes; then
19813 + $echo >> $output "\
19814 + program=lt-'$outputname'$exeext
19815 + progdir=\"\$thisdir/$objdir\"
19817 + if test ! -f \"\$progdir/\$program\" || \\
19818 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
19819 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
19821 + file=\"\$\$-\$program\"
19823 + if test ! -d \"\$progdir\"; then
19824 + $mkdir \"\$progdir\"
19825 + else
19826 + $rm \"\$progdir/\$file\"
19827 + fi"
19829 + $echo >> $output "\
19831 + # relink executable if necessary
19832 + if test -n \"\$relink_command\"; then
19833 + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
19834 + else
19835 + $echo \"\$relink_command_output\" >&2
19836 + $rm \"\$progdir/\$file\"
19837 + exit $EXIT_FAILURE
19838 + fi
19839 + fi
19841 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
19842 + { $rm \"\$progdir/\$program\";
19843 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
19844 + $rm \"\$progdir/\$file\"
19845 + fi"
19846 + else
19847 + $echo >> $output "\
19848 + program='$outputname'
19849 + progdir=\"\$thisdir/$objdir\"
19851 + fi
19853 + $echo >> $output "\
19855 + if test -f \"\$progdir/\$program\"; then"
19857 + # Export our shlibpath_var if we have one.
19858 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
19859 + $echo >> $output "\
19860 + # Add our own library path to $shlibpath_var
19861 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
19863 + # Some systems cannot cope with colon-terminated $shlibpath_var
19864 + # The second colon is a workaround for a bug in BeOS R4 sed
19865 + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
19867 + export $shlibpath_var
19869 + fi
19871 + # fixup the dll searchpath if we need to.
19872 + if test -n "$dllsearchpath"; then
19873 + $echo >> $output "\
19874 + # Add the dll search path components to the executable PATH
19875 + PATH=$dllsearchpath:\$PATH
19877 + fi
19879 + $echo >> $output "\
19880 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
19881 + # Run the actual program with our arguments.
19883 + case $host in
19884 + # Backslashes separate directories on plain windows
19885 + *-*-mingw | *-*-os2*)
19886 + $echo >> $output "\
19887 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
19889 + ;;
19891 + *)
19892 + $echo >> $output "\
19893 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
19895 + ;;
19896 + esac
19897 + $echo >> $output "\
19898 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
19899 + exit $EXIT_FAILURE
19900 + fi
19901 + else
19902 + # The program doesn't exist.
19903 + \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
19904 + \$echo \"This script is just a wrapper for \$program.\" 1>&2
19905 + $echo \"See the $PACKAGE documentation for more information.\" 1>&2
19906 + exit $EXIT_FAILURE
19907 + fi
19908 +fi\
19910 + chmod +x $output
19911 + fi
19912 + exit $EXIT_SUCCESS
19913 + ;;
19914 + esac
19916 + # See if we need to build an old-fashioned archive.
19917 + for oldlib in $oldlibs; do
19919 + if test "$build_libtool_libs" = convenience; then
19920 + oldobjs="$libobjs_save"
19921 + addlibs="$convenience"
19922 + build_libtool_libs=no
19923 + else
19924 + if test "$build_libtool_libs" = module; then
19925 + oldobjs="$libobjs_save"
19926 + build_libtool_libs=no
19927 + else
19928 + oldobjs="$old_deplibs $non_pic_objects"
19929 + fi
19930 + addlibs="$old_convenience"
19931 + fi
19933 + if test -n "$addlibs"; then
19934 + gentop="$output_objdir/${outputname}x"
19935 + generated="$generated $gentop"
19937 + func_extract_archives $gentop $addlibs
19938 + oldobjs="$oldobjs $func_extract_archives_result"
19939 + fi
19941 + # Do each command in the archive commands.
19942 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
19943 + cmds=$old_archive_from_new_cmds
19944 + else
19945 + # POSIX demands no paths to be encoded in archives. We have
19946 + # to avoid creating archives with duplicate basenames if we
19947 + # might have to extract them afterwards, e.g., when creating a
19948 + # static archive out of a convenience library, or when linking
19949 + # the entirety of a libtool archive into another (currently
19950 + # not supported by libtool).
19951 + if (for obj in $oldobjs
19952 + do
19953 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
19954 + done | sort | sort -uc >/dev/null 2>&1); then
19956 + else
19957 + $echo "copying selected object files to avoid basename conflicts..."
19959 + if test -z "$gentop"; then
19960 + gentop="$output_objdir/${outputname}x"
19961 + generated="$generated $gentop"
19963 + $show "${rm}r $gentop"
19964 + $run ${rm}r "$gentop"
19965 + $show "$mkdir $gentop"
19966 + $run $mkdir "$gentop"
19967 + exit_status=$?
19968 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
19969 + exit $exit_status
19970 + fi
19971 + fi
19973 + save_oldobjs=$oldobjs
19974 + oldobjs=
19975 + counter=1
19976 + for obj in $save_oldobjs
19977 + do
19978 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
19979 + case " $oldobjs " in
19980 + " ") oldobjs=$obj ;;
19981 + *[\ /]"$objbase "*)
19982 + while :; do
19983 + # Make sure we don't pick an alternate name that also
19984 + # overlaps.
19985 + newobj=lt$counter-$objbase
19986 + counter=`expr $counter + 1`
19987 + case " $oldobjs " in
19988 + *[\ /]"$newobj "*) ;;
19989 + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
19990 + esac
19991 + done
19992 + $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
19993 + $run ln "$obj" "$gentop/$newobj" ||
19994 + $run cp "$obj" "$gentop/$newobj"
19995 + oldobjs="$oldobjs $gentop/$newobj"
19996 + ;;
19997 + *) oldobjs="$oldobjs $obj" ;;
19998 + esac
19999 + done
20000 + fi
20002 + eval cmds=\"$old_archive_cmds\"
20004 + if len=`expr "X$cmds" : ".*"` &&
20005 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
20006 + cmds=$old_archive_cmds
20007 + else
20008 + # the command line is too long to link in one step, link in parts
20009 + $echo "using piecewise archive linking..."
20010 + save_RANLIB=$RANLIB
20011 + RANLIB=:
20012 + objlist=
20013 + concat_cmds=
20014 + save_oldobjs=$oldobjs
20016 + # Is there a better way of finding the last object in the list?
20017 + for obj in $save_oldobjs
20018 + do
20019 + last_oldobj=$obj
20020 + done
20021 + for obj in $save_oldobjs
20022 + do
20023 + oldobjs="$objlist $obj"
20024 + objlist="$objlist $obj"
20025 + eval test_cmds=\"$old_archive_cmds\"
20026 + if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
20027 + test "$len" -le "$max_cmd_len"; then
20029 + else
20030 + # the above command should be used before it gets too long
20031 + oldobjs=$objlist
20032 + if test "$obj" = "$last_oldobj" ; then
20033 + RANLIB=$save_RANLIB
20034 + fi
20035 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
20036 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
20037 + objlist=
20038 + fi
20039 + done
20040 + RANLIB=$save_RANLIB
20041 + oldobjs=$objlist
20042 + if test "X$oldobjs" = "X" ; then
20043 + eval cmds=\"\$concat_cmds\"
20044 + else
20045 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
20046 + fi
20047 + fi
20048 + fi
20049 + save_ifs="$IFS"; IFS='~'
20050 + for cmd in $cmds; do
20051 + eval cmd=\"$cmd\"
20052 + IFS="$save_ifs"
20053 + $show "$cmd"
20054 + $run eval "$cmd" || exit $?
20055 + done
20056 + IFS="$save_ifs"
20057 + done
20059 + if test -n "$generated"; then
20060 + $show "${rm}r$generated"
20061 + $run ${rm}r$generated
20062 + fi
20064 + # Now create the libtool archive.
20065 + case $output in
20066 + *.la)
20067 + old_library=
20068 + test "$build_old_libs" = yes && old_library="$libname.$libext"
20069 + $show "creating $output"
20071 + # Preserve any variables that may affect compiler behavior
20072 + for var in $variables_saved_for_relink; do
20073 + if eval test -z \"\${$var+set}\"; then
20074 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
20075 + elif eval var_value=\$$var; test -z "$var_value"; then
20076 + relink_command="$var=; export $var; $relink_command"
20077 + else
20078 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
20079 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
20080 + fi
20081 + done
20082 + # Quote the link command for shipping.
20083 + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
20084 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
20085 + if test "$hardcode_automatic" = yes ; then
20086 + relink_command=
20087 + fi
20090 + # Only create the output if not a dry run.
20091 + if test -z "$run"; then
20092 + for installed in no yes; do
20093 + if test "$installed" = yes; then
20094 + if test -z "$install_libdir"; then
20095 + break
20096 + fi
20097 + output="$output_objdir/$outputname"i
20098 + # Replace all uninstalled libtool libraries with the installed ones
20099 + newdependency_libs=
20100 + for deplib in $dependency_libs; do
20101 + case $deplib in
20102 + *.la)
20103 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
20104 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
20105 + if test -z "$libdir"; then
20106 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
20107 + exit $EXIT_FAILURE
20108 + fi
20109 + newdependency_libs="$newdependency_libs $libdir/$name"
20110 + ;;
20111 + *) newdependency_libs="$newdependency_libs $deplib" ;;
20112 + esac
20113 + done
20114 + dependency_libs="$newdependency_libs"
20115 + newdlfiles=
20116 + for lib in $dlfiles; do
20117 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
20118 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
20119 + if test -z "$libdir"; then
20120 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
20121 + exit $EXIT_FAILURE
20122 + fi
20123 + newdlfiles="$newdlfiles $libdir/$name"
20124 + done
20125 + dlfiles="$newdlfiles"
20126 + newdlprefiles=
20127 + for lib in $dlprefiles; do
20128 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
20129 + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
20130 + if test -z "$libdir"; then
20131 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
20132 + exit $EXIT_FAILURE
20133 + fi
20134 + newdlprefiles="$newdlprefiles $libdir/$name"
20135 + done
20136 + dlprefiles="$newdlprefiles"
20137 + else
20138 + newdlfiles=
20139 + for lib in $dlfiles; do
20140 + case $lib in
20141 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
20142 + *) abs=`pwd`"/$lib" ;;
20143 + esac
20144 + newdlfiles="$newdlfiles $abs"
20145 + done
20146 + dlfiles="$newdlfiles"
20147 + newdlprefiles=
20148 + for lib in $dlprefiles; do
20149 + case $lib in
20150 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
20151 + *) abs=`pwd`"/$lib" ;;
20152 + esac
20153 + newdlprefiles="$newdlprefiles $abs"
20154 + done
20155 + dlprefiles="$newdlprefiles"
20156 + fi
20157 + $rm $output
20158 + # place dlname in correct position for cygwin
20159 + tdlname=$dlname
20160 + case $host,$output,$installed,$module,$dlname in
20161 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
20162 + esac
20163 + $echo > $output "\
20164 +# $outputname - a libtool library file
20165 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
20167 +# Please DO NOT delete this file!
20168 +# It is necessary for linking the library.
20170 +# The name that we can dlopen(3).
20171 +dlname='$tdlname'
20173 +# Names of this library.
20174 +library_names='$library_names'
20176 +# The name of the static archive.
20177 +old_library='$old_library'
20179 +# Libraries that this one depends upon.
20180 +dependency_libs='$dependency_libs'
20182 +# Version information for $libname.
20183 +current=$current
20184 +age=$age
20185 +revision=$revision
20187 +# Is this an already installed library?
20188 +installed=$installed
20190 +# Should we warn about portability when linking against -modules?
20191 +shouldnotlink=$module
20193 +# Files to dlopen/dlpreopen
20194 +dlopen='$dlfiles'
20195 +dlpreopen='$dlprefiles'
20197 +# Directory that this library needs to be installed in:
20198 +libdir='$install_libdir'"
20199 + if test "$installed" = no && test "$need_relink" = yes; then
20200 + $echo >> $output "\
20201 +relink_command=\"$relink_command\""
20202 + fi
20203 + done
20204 + fi
20206 + # Do a symbolic link so that the libtool archive can be found in
20207 + # LD_LIBRARY_PATH before the program is installed.
20208 + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
20209 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
20210 + ;;
20211 + esac
20212 + exit $EXIT_SUCCESS
20213 + ;;
20215 + # libtool install mode
20216 + install)
20217 + modename="$modename: install"
20219 + # There may be an optional sh(1) argument at the beginning of
20220 + # install_prog (especially on Windows NT).
20221 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
20222 + # Allow the use of GNU shtool's install command.
20223 + $echo "X$nonopt" | grep shtool > /dev/null; then
20224 + # Aesthetically quote it.
20225 + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
20226 + case $arg in
20227 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
20228 + arg="\"$arg\""
20229 + ;;
20230 + esac
20231 + install_prog="$arg "
20232 + arg="$1"
20233 + shift
20234 + else
20235 + install_prog=
20236 + arg=$nonopt
20237 + fi
20239 + # The real first argument should be the name of the installation program.
20240 + # Aesthetically quote it.
20241 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
20242 + case $arg in
20243 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
20244 + arg="\"$arg\""
20245 + ;;
20246 + esac
20247 + install_prog="$install_prog$arg"
20249 + # We need to accept at least all the BSD install flags.
20250 + dest=
20251 + files=
20252 + opts=
20253 + prev=
20254 + install_type=
20255 + isdir=no
20256 + stripme=
20257 + for arg
20258 + do
20259 + if test -n "$dest"; then
20260 + files="$files $dest"
20261 + dest=$arg
20262 + continue
20263 + fi
20265 + case $arg in
20266 + -d) isdir=yes ;;
20267 + -f)
20268 + case " $install_prog " in
20269 + *[\\\ /]cp\ *) ;;
20270 + *) prev=$arg ;;
20271 + esac
20272 + ;;
20273 + -g | -m | -o) prev=$arg ;;
20274 + -s)
20275 + stripme=" -s"
20276 + continue
20277 + ;;
20278 + -*)
20279 + ;;
20280 + *)
20281 + # If the previous option needed an argument, then skip it.
20282 + if test -n "$prev"; then
20283 + prev=
20284 + else
20285 + dest=$arg
20286 + continue
20287 + fi
20288 + ;;
20289 + esac
20291 + # Aesthetically quote the argument.
20292 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
20293 + case $arg in
20294 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
20295 + arg="\"$arg\""
20296 + ;;
20297 + esac
20298 + install_prog="$install_prog $arg"
20299 + done
20301 + if test -z "$install_prog"; then
20302 + $echo "$modename: you must specify an install program" 1>&2
20303 + $echo "$help" 1>&2
20304 + exit $EXIT_FAILURE
20305 + fi
20307 + if test -n "$prev"; then
20308 + $echo "$modename: the \`$prev' option requires an argument" 1>&2
20309 + $echo "$help" 1>&2
20310 + exit $EXIT_FAILURE
20311 + fi
20313 + if test -z "$files"; then
20314 + if test -z "$dest"; then
20315 + $echo "$modename: no file or destination specified" 1>&2
20316 + else
20317 + $echo "$modename: you must specify a destination" 1>&2
20318 + fi
20319 + $echo "$help" 1>&2
20320 + exit $EXIT_FAILURE
20321 + fi
20323 + # Strip any trailing slash from the destination.
20324 + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
20326 + # Check to see that the destination is a directory.
20327 + test -d "$dest" && isdir=yes
20328 + if test "$isdir" = yes; then
20329 + destdir="$dest"
20330 + destname=
20331 + else
20332 + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
20333 + test "X$destdir" = "X$dest" && destdir=.
20334 + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
20336 + # Not a directory, so check to see that there is only one file specified.
20337 + set dummy $files
20338 + if test "$#" -gt 2; then
20339 + $echo "$modename: \`$dest' is not a directory" 1>&2
20340 + $echo "$help" 1>&2
20341 + exit $EXIT_FAILURE
20342 + fi
20343 + fi
20344 + case $destdir in
20345 + [\\/]* | [A-Za-z]:[\\/]*) ;;
20346 + *)
20347 + for file in $files; do
20348 + case $file in
20349 + *.lo) ;;
20350 + *)
20351 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
20352 + $echo "$help" 1>&2
20353 + exit $EXIT_FAILURE
20354 + ;;
20355 + esac
20356 + done
20357 + ;;
20358 + esac
20360 + # This variable tells wrapper scripts just to set variables rather
20361 + # than running their programs.
20362 + libtool_install_magic="$magic"
20364 + staticlibs=
20365 + future_libdirs=
20366 + current_libdirs=
20367 + for file in $files; do
20369 + # Do each installation.
20370 + case $file in
20371 + *.$libext)
20372 + # Do the static libraries later.
20373 + staticlibs="$staticlibs $file"
20374 + ;;
20376 + *.la)
20377 + # Check to see that this really is a libtool archive.
20378 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
20379 + else
20380 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
20381 + $echo "$help" 1>&2
20382 + exit $EXIT_FAILURE
20383 + fi
20385 + library_names=
20386 + old_library=
20387 + relink_command=
20388 + # If there is no directory component, then add one.
20389 + case $file in
20390 + */* | *\\*) . $file ;;
20391 + *) . ./$file ;;
20392 + esac
20394 + # Add the libdir to current_libdirs if it is the destination.
20395 + if test "X$destdir" = "X$libdir"; then
20396 + case "$current_libdirs " in
20397 + *" $libdir "*) ;;
20398 + *) current_libdirs="$current_libdirs $libdir" ;;
20399 + esac
20400 + else
20401 + # Note the libdir as a future libdir.
20402 + case "$future_libdirs " in
20403 + *" $libdir "*) ;;
20404 + *) future_libdirs="$future_libdirs $libdir" ;;
20405 + esac
20406 + fi
20408 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
20409 + test "X$dir" = "X$file/" && dir=
20410 + dir="$dir$objdir"
20412 + if test -n "$relink_command"; then
20413 + # Determine the prefix the user has applied to our future dir.
20414 + inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
20416 + # Don't allow the user to place us outside of our expected
20417 + # location b/c this prevents finding dependent libraries that
20418 + # are installed to the same prefix.
20419 + # At present, this check doesn't affect windows .dll's that
20420 + # are installed into $libdir/../bin (currently, that works fine)
20421 + # but it's something to keep an eye on.
20422 + if test "$inst_prefix_dir" = "$destdir"; then
20423 + $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
20424 + exit $EXIT_FAILURE
20425 + fi
20427 + if test -n "$inst_prefix_dir"; then
20428 + # Stick the inst_prefix_dir data into the link command.
20429 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
20430 + else
20431 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
20432 + fi
20434 + $echo "$modename: warning: relinking \`$file'" 1>&2
20435 + $show "$relink_command"
20436 + if $run eval "$relink_command"; then :
20437 + else
20438 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
20439 + exit $EXIT_FAILURE
20440 + fi
20441 + fi
20443 + # See the names of the shared library.
20444 + set dummy $library_names
20445 + if test -n "$2"; then
20446 + realname="$2"
20447 + shift
20448 + shift
20450 + srcname="$realname"
20451 + test -n "$relink_command" && srcname="$realname"T
20453 + # Install the shared library and build the symlinks.
20454 + $show "$install_prog $dir/$srcname $destdir/$realname"
20455 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
20456 + if test -n "$stripme" && test -n "$striplib"; then
20457 + $show "$striplib $destdir/$realname"
20458 + $run eval "$striplib $destdir/$realname" || exit $?
20459 + fi
20461 + if test "$#" -gt 0; then
20462 + # Delete the old symlinks, and create new ones.
20463 + # Try `ln -sf' first, because the `ln' binary might depend on
20464 + # the symlink we replace! Solaris /bin/ln does not understand -f,
20465 + # so we also need to try rm && ln -s.
20466 + for linkname
20467 + do
20468 + if test "$linkname" != "$realname"; then
20469 + $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
20470 + $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
20471 + fi
20472 + done
20473 + fi
20475 + # Do each command in the postinstall commands.
20476 + lib="$destdir/$realname"
20477 + cmds=$postinstall_cmds
20478 + save_ifs="$IFS"; IFS='~'
20479 + for cmd in $cmds; do
20480 + IFS="$save_ifs"
20481 + eval cmd=\"$cmd\"
20482 + $show "$cmd"
20483 + $run eval "$cmd" || {
20484 + lt_exit=$?
20486 + # Restore the uninstalled library and exit
20487 + if test "$mode" = relink; then
20488 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
20489 + fi
20491 + exit $lt_exit
20493 + done
20494 + IFS="$save_ifs"
20495 + fi
20497 + # Install the pseudo-library for information purposes.
20498 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
20499 + instname="$dir/$name"i
20500 + $show "$install_prog $instname $destdir/$name"
20501 + $run eval "$install_prog $instname $destdir/$name" || exit $?
20503 + # Maybe install the static library, too.
20504 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
20505 + ;;
20507 + *.lo)
20508 + # Install (i.e. copy) a libtool object.
20510 + # Figure out destination file name, if it wasn't already specified.
20511 + if test -n "$destname"; then
20512 + destfile="$destdir/$destname"
20513 + else
20514 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
20515 + destfile="$destdir/$destfile"
20516 + fi
20518 + # Deduce the name of the destination old-style object file.
20519 + case $destfile in
20520 + *.lo)
20521 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
20522 + ;;
20523 + *.$objext)
20524 + staticdest="$destfile"
20525 + destfile=
20526 + ;;
20527 + *)
20528 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
20529 + $echo "$help" 1>&2
20530 + exit $EXIT_FAILURE
20531 + ;;
20532 + esac
20534 + # Install the libtool object if requested.
20535 + if test -n "$destfile"; then
20536 + $show "$install_prog $file $destfile"
20537 + $run eval "$install_prog $file $destfile" || exit $?
20538 + fi
20540 + # Install the old object if enabled.
20541 + if test "$build_old_libs" = yes; then
20542 + # Deduce the name of the old-style object file.
20543 + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
20545 + $show "$install_prog $staticobj $staticdest"
20546 + $run eval "$install_prog \$staticobj \$staticdest" || exit $?
20547 + fi
20548 + exit $EXIT_SUCCESS
20549 + ;;
20551 + *)
20552 + # Figure out destination file name, if it wasn't already specified.
20553 + if test -n "$destname"; then
20554 + destfile="$destdir/$destname"
20555 + else
20556 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
20557 + destfile="$destdir/$destfile"
20558 + fi
20560 + # If the file is missing, and there is a .exe on the end, strip it
20561 + # because it is most likely a libtool script we actually want to
20562 + # install
20563 + stripped_ext=""
20564 + case $file in
20565 + *.exe)
20566 + if test ! -f "$file"; then
20567 + file=`$echo $file|${SED} 's,.exe$,,'`
20568 + stripped_ext=".exe"
20569 + fi
20570 + ;;
20571 + esac
20573 + # Do a test to see if this is really a libtool program.
20574 + case $host in
20575 + *cygwin*|*mingw*)
20576 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
20577 + ;;
20578 + *)
20579 + wrapper=$file
20580 + ;;
20581 + esac
20582 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
20583 + notinst_deplibs=
20584 + relink_command=
20586 + # Note that it is not necessary on cygwin/mingw to append a dot to
20587 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
20588 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
20589 + # `FILE.' does not work on cygwin managed mounts.
20591 + # If there is no directory component, then add one.
20592 + case $wrapper in
20593 + */* | *\\*) . ${wrapper} ;;
20594 + *) . ./${wrapper} ;;
20595 + esac
20597 + # Check the variables that should have been set.
20598 + if test -z "$notinst_deplibs"; then
20599 + $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
20600 + exit $EXIT_FAILURE
20601 + fi
20603 + finalize=yes
20604 + for lib in $notinst_deplibs; do
20605 + # Check to see that each library is installed.
20606 + libdir=
20607 + if test -f "$lib"; then
20608 + # If there is no directory component, then add one.
20609 + case $lib in
20610 + */* | *\\*) . $lib ;;
20611 + *) . ./$lib ;;
20612 + esac
20613 + fi
20614 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
20615 + if test -n "$libdir" && test ! -f "$libfile"; then
20616 + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
20617 + finalize=no
20618 + fi
20619 + done
20621 + relink_command=
20622 + # Note that it is not necessary on cygwin/mingw to append a dot to
20623 + # foo even if both foo and FILE.exe exist: automatic-append-.exe
20624 + # behavior happens only for exec(3), not for open(2)! Also, sourcing
20625 + # `FILE.' does not work on cygwin managed mounts.
20627 + # If there is no directory component, then add one.
20628 + case $wrapper in
20629 + */* | *\\*) . ${wrapper} ;;
20630 + *) . ./${wrapper} ;;
20631 + esac
20633 + outputname=
20634 + if test "$fast_install" = no && test -n "$relink_command"; then
20635 + if test "$finalize" = yes && test -z "$run"; then
20636 + tmpdir=`func_mktempdir`
20637 + file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
20638 + outputname="$tmpdir/$file"
20639 + # Replace the output file specification.
20640 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
20642 + $show "$relink_command"
20643 + if $run eval "$relink_command"; then :
20644 + else
20645 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
20646 + ${rm}r "$tmpdir"
20647 + continue
20648 + fi
20649 + file="$outputname"
20650 + else
20651 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
20652 + fi
20653 + else
20654 + # Install the binary that we compiled earlier.
20655 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
20656 + fi
20657 + fi
20659 + # remove .exe since cygwin /usr/bin/install will append another
20660 + # one anyway
20661 + case $install_prog,$host in
20662 + */usr/bin/install*,*cygwin*)
20663 + case $file:$destfile in
20664 + *.exe:*.exe)
20665 + # this is ok
20666 + ;;
20667 + *.exe:*)
20668 + destfile=$destfile.exe
20669 + ;;
20670 + *:*.exe)
20671 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
20672 + ;;
20673 + esac
20674 + ;;
20675 + esac
20676 + $show "$install_prog$stripme $file $destfile"
20677 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
20678 + test -n "$outputname" && ${rm}r "$tmpdir"
20679 + ;;
20680 + esac
20681 + done
20683 + for file in $staticlibs; do
20684 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
20686 + # Set up the ranlib parameters.
20687 + oldlib="$destdir/$name"
20689 + $show "$install_prog $file $oldlib"
20690 + $run eval "$install_prog \$file \$oldlib" || exit $?
20692 + if test -n "$stripme" && test -n "$old_striplib"; then
20693 + $show "$old_striplib $oldlib"
20694 + $run eval "$old_striplib $oldlib" || exit $?
20695 + fi
20697 + # Do each command in the postinstall commands.
20698 + cmds=$old_postinstall_cmds
20699 + save_ifs="$IFS"; IFS='~'
20700 + for cmd in $cmds; do
20701 + IFS="$save_ifs"
20702 + eval cmd=\"$cmd\"
20703 + $show "$cmd"
20704 + $run eval "$cmd" || exit $?
20705 + done
20706 + IFS="$save_ifs"
20707 + done
20709 + if test -n "$future_libdirs"; then
20710 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
20711 + fi
20713 + if test -n "$current_libdirs"; then
20714 + # Maybe just do a dry run.
20715 + test -n "$run" && current_libdirs=" -n$current_libdirs"
20716 + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
20717 + else
20718 + exit $EXIT_SUCCESS
20719 + fi
20720 + ;;
20722 + # libtool finish mode
20723 + finish)
20724 + modename="$modename: finish"
20725 + libdirs="$nonopt"
20726 + admincmds=
20728 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
20729 + for dir
20730 + do
20731 + libdirs="$libdirs $dir"
20732 + done
20734 + for libdir in $libdirs; do
20735 + if test -n "$finish_cmds"; then
20736 + # Do each command in the finish commands.
20737 + cmds=$finish_cmds
20738 + save_ifs="$IFS"; IFS='~'
20739 + for cmd in $cmds; do
20740 + IFS="$save_ifs"
20741 + eval cmd=\"$cmd\"
20742 + $show "$cmd"
20743 + $run eval "$cmd" || admincmds="$admincmds
20744 + $cmd"
20745 + done
20746 + IFS="$save_ifs"
20747 + fi
20748 + if test -n "$finish_eval"; then
20749 + # Do the single finish_eval.
20750 + eval cmds=\"$finish_eval\"
20751 + $run eval "$cmds" || admincmds="$admincmds
20752 + $cmds"
20753 + fi
20754 + done
20755 + fi
20757 + # Exit here if they wanted silent mode.
20758 + test "$show" = : && exit $EXIT_SUCCESS
20760 + $echo "X----------------------------------------------------------------------" | $Xsed
20761 + $echo "Libraries have been installed in:"
20762 + for libdir in $libdirs; do
20763 + $echo " $libdir"
20764 + done
20765 + $echo
20766 + $echo "If you ever happen to want to link against installed libraries"
20767 + $echo "in a given directory, LIBDIR, you must either use libtool, and"
20768 + $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
20769 + $echo "flag during linking and do at least one of the following:"
20770 + if test -n "$shlibpath_var"; then
20771 + $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
20772 + $echo " during execution"
20773 + fi
20774 + if test -n "$runpath_var"; then
20775 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
20776 + $echo " during linking"
20777 + fi
20778 + if test -n "$hardcode_libdir_flag_spec"; then
20779 + libdir=LIBDIR
20780 + eval flag=\"$hardcode_libdir_flag_spec\"
20782 + $echo " - use the \`$flag' linker flag"
20783 + fi
20784 + if test -n "$admincmds"; then
20785 + $echo " - have your system administrator run these commands:$admincmds"
20786 + fi
20787 + if test -f /etc/ld.so.conf; then
20788 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
20789 + fi
20790 + $echo
20791 + $echo "See any operating system documentation about shared libraries for"
20792 + $echo "more information, such as the ld(1) and ld.so(8) manual pages."
20793 + $echo "X----------------------------------------------------------------------" | $Xsed
20794 + exit $EXIT_SUCCESS
20795 + ;;
20797 + # libtool execute mode
20798 + execute)
20799 + modename="$modename: execute"
20801 + # The first argument is the command name.
20802 + cmd="$nonopt"
20803 + if test -z "$cmd"; then
20804 + $echo "$modename: you must specify a COMMAND" 1>&2
20805 + $echo "$help"
20806 + exit $EXIT_FAILURE
20807 + fi
20809 + # Handle -dlopen flags immediately.
20810 + for file in $execute_dlfiles; do
20811 + if test ! -f "$file"; then
20812 + $echo "$modename: \`$file' is not a file" 1>&2
20813 + $echo "$help" 1>&2
20814 + exit $EXIT_FAILURE
20815 + fi
20817 + dir=
20818 + case $file in
20819 + *.la)
20820 + # Check to see that this really is a libtool archive.
20821 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
20822 + else
20823 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
20824 + $echo "$help" 1>&2
20825 + exit $EXIT_FAILURE
20826 + fi
20828 + # Read the libtool library.
20829 + dlname=
20830 + library_names=
20832 + # If there is no directory component, then add one.
20833 + case $file in
20834 + */* | *\\*) . $file ;;
20835 + *) . ./$file ;;
20836 + esac
20838 + # Skip this library if it cannot be dlopened.
20839 + if test -z "$dlname"; then
20840 + # Warn if it was a shared library.
20841 + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
20842 + continue
20843 + fi
20845 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
20846 + test "X$dir" = "X$file" && dir=.
20848 + if test -f "$dir/$objdir/$dlname"; then
20849 + dir="$dir/$objdir"
20850 + else
20851 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
20852 + exit $EXIT_FAILURE
20853 + fi
20854 + ;;
20856 + *.lo)
20857 + # Just add the directory containing the .lo file.
20858 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
20859 + test "X$dir" = "X$file" && dir=.
20860 + ;;
20862 + *)
20863 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
20864 + continue
20865 + ;;
20866 + esac
20868 + # Get the absolute pathname.
20869 + absdir=`cd "$dir" && pwd`
20870 + test -n "$absdir" && dir="$absdir"
20872 + # Now add the directory to shlibpath_var.
20873 + if eval "test -z \"\$$shlibpath_var\""; then
20874 + eval "$shlibpath_var=\"\$dir\""
20875 + else
20876 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
20877 + fi
20878 + done
20880 + # This variable tells wrapper scripts just to set shlibpath_var
20881 + # rather than running their programs.
20882 + libtool_execute_magic="$magic"
20884 + # Check if any of the arguments is a wrapper script.
20885 + args=
20886 + for file
20887 + do
20888 + case $file in
20889 + -*) ;;
20890 + *)
20891 + # Do a test to see if this is really a libtool program.
20892 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
20893 + # If there is no directory component, then add one.
20894 + case $file in
20895 + */* | *\\*) . $file ;;
20896 + *) . ./$file ;;
20897 + esac
20899 + # Transform arg to wrapped name.
20900 + file="$progdir/$program"
20901 + fi
20902 + ;;
20903 + esac
20904 + # Quote arguments (to preserve shell metacharacters).
20905 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
20906 + args="$args \"$file\""
20907 + done
20909 + if test -z "$run"; then
20910 + if test -n "$shlibpath_var"; then
20911 + # Export the shlibpath_var.
20912 + eval "export $shlibpath_var"
20913 + fi
20915 + # Restore saved environment variables
20916 + if test "${save_LC_ALL+set}" = set; then
20917 + LC_ALL="$save_LC_ALL"; export LC_ALL
20918 + fi
20919 + if test "${save_LANG+set}" = set; then
20920 + LANG="$save_LANG"; export LANG
20921 + fi
20923 + # Now prepare to actually exec the command.
20924 + exec_cmd="\$cmd$args"
20925 + else
20926 + # Display what would be done.
20927 + if test -n "$shlibpath_var"; then
20928 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
20929 + $echo "export $shlibpath_var"
20930 + fi
20931 + $echo "$cmd$args"
20932 + exit $EXIT_SUCCESS
20933 + fi
20934 + ;;
20936 + # libtool clean and uninstall mode
20937 + clean | uninstall)
20938 + modename="$modename: $mode"
20939 + rm="$nonopt"
20940 + files=
20941 + rmforce=
20942 + exit_status=0
20944 + # This variable tells wrapper scripts just to set variables rather
20945 + # than running their programs.
20946 + libtool_install_magic="$magic"
20948 + for arg
20949 + do
20950 + case $arg in
20951 + -f) rm="$rm $arg"; rmforce=yes ;;
20952 + -*) rm="$rm $arg" ;;
20953 + *) files="$files $arg" ;;
20954 + esac
20955 + done
20957 + if test -z "$rm"; then
20958 + $echo "$modename: you must specify an RM program" 1>&2
20959 + $echo "$help" 1>&2
20960 + exit $EXIT_FAILURE
20961 + fi
20963 + rmdirs=
20965 + origobjdir="$objdir"
20966 + for file in $files; do
20967 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
20968 + if test "X$dir" = "X$file"; then
20969 + dir=.
20970 + objdir="$origobjdir"
20971 + else
20972 + objdir="$dir/$origobjdir"
20973 + fi
20974 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
20975 + test "$mode" = uninstall && objdir="$dir"
20977 + # Remember objdir for removal later, being careful to avoid duplicates
20978 + if test "$mode" = clean; then
20979 + case " $rmdirs " in
20980 + *" $objdir "*) ;;
20981 + *) rmdirs="$rmdirs $objdir" ;;
20982 + esac
20983 + fi
20985 + # Don't error if the file doesn't exist and rm -f was used.
20986 + if (test -L "$file") >/dev/null 2>&1 \
20987 + || (test -h "$file") >/dev/null 2>&1 \
20988 + || test -f "$file"; then
20990 + elif test -d "$file"; then
20991 + exit_status=1
20992 + continue
20993 + elif test "$rmforce" = yes; then
20994 + continue
20995 + fi
20997 + rmfiles="$file"
20999 + case $name in
21000 + *.la)
21001 + # Possibly a libtool archive, so verify it.
21002 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
21003 + . $dir/$name
21005 + # Delete the libtool libraries and symlinks.
21006 + for n in $library_names; do
21007 + rmfiles="$rmfiles $objdir/$n"
21008 + done
21009 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
21011 + case "$mode" in
21012 + clean)
21013 + case " $library_names " in
21014 + # " " in the beginning catches empty $dlname
21015 + *" $dlname "*) ;;
21016 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
21017 + esac
21018 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
21019 + ;;
21020 + uninstall)
21021 + if test -n "$library_names"; then
21022 + # Do each command in the postuninstall commands.
21023 + cmds=$postuninstall_cmds
21024 + save_ifs="$IFS"; IFS='~'
21025 + for cmd in $cmds; do
21026 + IFS="$save_ifs"
21027 + eval cmd=\"$cmd\"
21028 + $show "$cmd"
21029 + $run eval "$cmd"
21030 + if test "$?" -ne 0 && test "$rmforce" != yes; then
21031 + exit_status=1
21032 + fi
21033 + done
21034 + IFS="$save_ifs"
21035 + fi
21037 + if test -n "$old_library"; then
21038 + # Do each command in the old_postuninstall commands.
21039 + cmds=$old_postuninstall_cmds
21040 + save_ifs="$IFS"; IFS='~'
21041 + for cmd in $cmds; do
21042 + IFS="$save_ifs"
21043 + eval cmd=\"$cmd\"
21044 + $show "$cmd"
21045 + $run eval "$cmd"
21046 + if test "$?" -ne 0 && test "$rmforce" != yes; then
21047 + exit_status=1
21048 + fi
21049 + done
21050 + IFS="$save_ifs"
21051 + fi
21052 + # FIXME: should reinstall the best remaining shared library.
21053 + ;;
21054 + esac
21055 + fi
21056 + ;;
21058 + *.lo)
21059 + # Possibly a libtool object, so verify it.
21060 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
21062 + # Read the .lo file
21063 + . $dir/$name
21065 + # Add PIC object to the list of files to remove.
21066 + if test -n "$pic_object" \
21067 + && test "$pic_object" != none; then
21068 + rmfiles="$rmfiles $dir/$pic_object"
21069 + fi
21071 + # Add non-PIC object to the list of files to remove.
21072 + if test -n "$non_pic_object" \
21073 + && test "$non_pic_object" != none; then
21074 + rmfiles="$rmfiles $dir/$non_pic_object"
21075 + fi
21076 + fi
21077 + ;;
21079 + *)
21080 + if test "$mode" = clean ; then
21081 + noexename=$name
21082 + case $file in
21083 + *.exe)
21084 + file=`$echo $file|${SED} 's,.exe$,,'`
21085 + noexename=`$echo $name|${SED} 's,.exe$,,'`
21086 + # $file with .exe has already been added to rmfiles,
21087 + # add $file without .exe
21088 + rmfiles="$rmfiles $file"
21089 + ;;
21090 + esac
21091 + # Do a test to see if this is a libtool program.
21092 + if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
21093 + relink_command=
21094 + . $dir/$noexename
21096 + # note $name still contains .exe if it was in $file originally
21097 + # as does the version of $file that was added into $rmfiles
21098 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
21099 + if test "$fast_install" = yes && test -n "$relink_command"; then
21100 + rmfiles="$rmfiles $objdir/lt-$name"
21101 + fi
21102 + if test "X$noexename" != "X$name" ; then
21103 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
21104 + fi
21105 + fi
21106 + fi
21107 + ;;
21108 + esac
21109 + $show "$rm $rmfiles"
21110 + $run $rm $rmfiles || exit_status=1
21111 + done
21112 + objdir="$origobjdir"
21114 + # Try to remove the ${objdir}s in the directories where we deleted files
21115 + for dir in $rmdirs; do
21116 + if test -d "$dir"; then
21117 + $show "rmdir $dir"
21118 + $run rmdir $dir >/dev/null 2>&1
21119 + fi
21120 + done
21122 + exit $exit_status
21123 + ;;
21125 + "")
21126 + $echo "$modename: you must specify a MODE" 1>&2
21127 + $echo "$generic_help" 1>&2
21128 + exit $EXIT_FAILURE
21129 + ;;
21130 + esac
21132 + if test -z "$exec_cmd"; then
21133 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
21134 + $echo "$generic_help" 1>&2
21135 + exit $EXIT_FAILURE
21136 + fi
21137 +fi # test -z "$show_help"
21139 +if test -n "$exec_cmd"; then
21140 + eval exec $exec_cmd
21141 + exit $EXIT_FAILURE
21144 +# We need to display help for each of the modes.
21145 +case $mode in
21146 +"") $echo \
21147 +"Usage: $modename [OPTION]... [MODE-ARG]...
21149 +Provide generalized library-building support services.
21151 + --config show all configuration variables
21152 + --debug enable verbose shell tracing
21153 +-n, --dry-run display commands without modifying any files
21154 + --features display basic configuration information and exit
21155 + --finish same as \`--mode=finish'
21156 + --help display this help message and exit
21157 + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
21158 + --quiet same as \`--silent'
21159 + --silent don't print informational messages
21160 + --tag=TAG use configuration variables from tag TAG
21161 + --version print version information
21163 +MODE must be one of the following:
21165 + clean remove files from the build directory
21166 + compile compile a source file into a libtool object
21167 + execute automatically set library path, then run a program
21168 + finish complete the installation of libtool libraries
21169 + install install libraries or executables
21170 + link create a library or an executable
21171 + uninstall remove libraries from an installed directory
21173 +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
21174 +a more detailed description of MODE.
21176 +Report bugs to <bug-libtool@gnu.org>."
21177 + exit $EXIT_SUCCESS
21178 + ;;
21180 +clean)
21181 + $echo \
21182 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
21184 +Remove files from the build directory.
21186 +RM is the name of the program to use to delete files associated with each FILE
21187 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
21188 +to RM.
21190 +If FILE is a libtool library, object or program, all the files associated
21191 +with it are deleted. Otherwise, only FILE itself is deleted using RM."
21192 + ;;
21194 +compile)
21195 + $echo \
21196 +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
21198 +Compile a source file into a libtool library object.
21200 +This mode accepts the following additional options:
21202 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
21203 + -prefer-pic try to building PIC objects only
21204 + -prefer-non-pic try to building non-PIC objects only
21205 + -static always build a \`.o' file suitable for static linking
21207 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
21208 +from the given SOURCEFILE.
21210 +The output file name is determined by removing the directory component from
21211 +SOURCEFILE, then substituting the C source code suffix \`.c' with the
21212 +library object suffix, \`.lo'."
21213 + ;;
21215 +execute)
21216 + $echo \
21217 +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
21219 +Automatically set library path, then run a program.
21221 +This mode accepts the following additional options:
21223 + -dlopen FILE add the directory containing FILE to the library path
21225 +This mode sets the library path environment variable according to \`-dlopen'
21226 +flags.
21228 +If any of the ARGS are libtool executable wrappers, then they are translated
21229 +into their corresponding uninstalled binary, and any of their required library
21230 +directories are added to the library path.
21232 +Then, COMMAND is executed, with ARGS as arguments."
21233 + ;;
21235 +finish)
21236 + $echo \
21237 +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
21239 +Complete the installation of libtool libraries.
21241 +Each LIBDIR is a directory that contains libtool libraries.
21243 +The commands that this mode executes may require superuser privileges. Use
21244 +the \`--dry-run' option if you just want to see what would be executed."
21245 + ;;
21247 +install)
21248 + $echo \
21249 +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
21251 +Install executables or libraries.
21253 +INSTALL-COMMAND is the installation command. The first component should be
21254 +either the \`install' or \`cp' program.
21256 +The rest of the components are interpreted as arguments to that command (only
21257 +BSD-compatible install options are recognized)."
21258 + ;;
21260 +link)
21261 + $echo \
21262 +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
21264 +Link object files or libraries together to form another library, or to
21265 +create an executable program.
21267 +LINK-COMMAND is a command using the C compiler that you would use to create
21268 +a program from several object files.
21270 +The following components of LINK-COMMAND are treated specially:
21272 + -all-static do not do any dynamic linking at all
21273 + -avoid-version do not add a version suffix if possible
21274 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
21275 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
21276 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
21277 + -export-symbols SYMFILE
21278 + try to export only the symbols listed in SYMFILE
21279 + -export-symbols-regex REGEX
21280 + try to export only the symbols matching REGEX
21281 + -LLIBDIR search LIBDIR for required installed libraries
21282 + -lNAME OUTPUT-FILE requires the installed library libNAME
21283 + -module build a library that can dlopened
21284 + -no-fast-install disable the fast-install mode
21285 + -no-install link a not-installable executable
21286 + -no-undefined declare that a library does not refer to external symbols
21287 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
21288 + -objectlist FILE Use a list of object files found in FILE to specify objects
21289 + -precious-files-regex REGEX
21290 + don't remove output files matching REGEX
21291 + -release RELEASE specify package release information
21292 + -rpath LIBDIR the created library will eventually be installed in LIBDIR
21293 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
21294 + -static do not do any dynamic linking of libtool libraries
21295 + -version-info CURRENT[:REVISION[:AGE]]
21296 + specify library version info [each variable defaults to 0]
21298 +All other options (arguments beginning with \`-') are ignored.
21300 +Every other argument is treated as a filename. Files ending in \`.la' are
21301 +treated as uninstalled libtool libraries, other files are standard or library
21302 +object files.
21304 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
21305 +only library objects (\`.lo' files) may be specified, and \`-rpath' is
21306 +required, except when creating a convenience library.
21308 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
21309 +using \`ar' and \`ranlib', or on Windows using \`lib'.
21311 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
21312 +is created, otherwise an executable program is created."
21313 + ;;
21315 +uninstall)
21316 + $echo \
21317 +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
21319 +Remove libraries from an installation directory.
21321 +RM is the name of the program to use to delete files associated with each FILE
21322 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
21323 +to RM.
21325 +If FILE is a libtool library, all the files associated with it are deleted.
21326 +Otherwise, only FILE itself is deleted using RM."
21327 + ;;
21330 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
21331 + $echo "$help" 1>&2
21332 + exit $EXIT_FAILURE
21333 + ;;
21334 +esac
21336 +$echo
21337 +$echo "Try \`$modename --help' for more information about other modes."
21339 +exit $?
21341 +# The TAGs below are defined such that we never get into a situation
21342 +# in which we disable both kinds of libraries. Given conflicting
21343 +# choices, we go for a static library, that is the most portable,
21344 +# since we can't tell whether shared libraries were disabled because
21345 +# the user asked for that or because the platform doesn't support
21346 +# them. This is particularly important on AIX, because we don't
21347 +# support having both static and shared libraries enabled at the same
21348 +# time on that platform, so we default to a shared-only configuration.
21349 +# If a disable-shared tag is given, we'll fallback to a static-only
21350 +# configuration. But we'll never go from static-only to shared-only.
21352 +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared
21353 +disable_libs=shared
21354 +# ### END LIBTOOL TAG CONFIG: disable-shared
21356 +# ### BEGIN LIBTOOL TAG CONFIG: disable-static
21357 +disable_libs=static
21358 +# ### END LIBTOOL TAG CONFIG: disable-static
21360 +# Local Variables:
21361 +# mode:shell-script
21362 +# sh-indentation:2
21363 +# End:
21364 diff --git a/config/missing b/config/missing
21365 new file mode 100755
21366 index 0000000..894e786
21367 --- /dev/null
21368 +++ b/config/missing
21369 @@ -0,0 +1,360 @@
21370 +#! /bin/sh
21371 +# Common stub for a few missing GNU programs while installing.
21373 +scriptversion=2005-06-08.21
21375 +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
21376 +# Free Software Foundation, Inc.
21377 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
21379 +# This program is free software; you can redistribute it and/or modify
21380 +# it under the terms of the GNU General Public License as published by
21381 +# the Free Software Foundation; either version 2, or (at your option)
21382 +# any later version.
21384 +# This program is distributed in the hope that it will be useful,
21385 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
21386 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21387 +# GNU General Public License for more details.
21389 +# You should have received a copy of the GNU General Public License
21390 +# along with this program; if not, write to the Free Software
21391 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
21392 +# 02110-1301, USA.
21394 +# As a special exception to the GNU General Public License, if you
21395 +# distribute this file as part of a program that contains a
21396 +# configuration script generated by Autoconf, you may include it under
21397 +# the same distribution terms that you use for the rest of that program.
21399 +if test $# -eq 0; then
21400 + echo 1>&2 "Try \`$0 --help' for more information"
21401 + exit 1
21404 +run=:
21406 +# In the cases where this matters, `missing' is being run in the
21407 +# srcdir already.
21408 +if test -f configure.ac; then
21409 + configure_ac=configure.ac
21410 +else
21411 + configure_ac=configure.in
21414 +msg="missing on your system"
21416 +case "$1" in
21417 +--run)
21418 + # Try to run requested program, and just exit if it succeeds.
21419 + run=
21420 + shift
21421 + "$@" && exit 0
21422 + # Exit code 63 means version mismatch. This often happens
21423 + # when the user try to use an ancient version of a tool on
21424 + # a file that requires a minimum version. In this case we
21425 + # we should proceed has if the program had been absent, or
21426 + # if --run hadn't been passed.
21427 + if test $? = 63; then
21428 + run=:
21429 + msg="probably too old"
21430 + fi
21431 + ;;
21433 + -h|--h|--he|--hel|--help)
21434 + echo "\
21435 +$0 [OPTION]... PROGRAM [ARGUMENT]...
21437 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
21438 +error status if there is no known handling for PROGRAM.
21440 +Options:
21441 + -h, --help display this help and exit
21442 + -v, --version output version information and exit
21443 + --run try to run the given command, and emulate it if it fails
21445 +Supported PROGRAM values:
21446 + aclocal touch file \`aclocal.m4'
21447 + autoconf touch file \`configure'
21448 + autoheader touch file \`config.h.in'
21449 + automake touch all \`Makefile.in' files
21450 + bison create \`y.tab.[ch]', if possible, from existing .[ch]
21451 + flex create \`lex.yy.c', if possible, from existing .c
21452 + help2man touch the output file
21453 + lex create \`lex.yy.c', if possible, from existing .c
21454 + makeinfo touch the output file
21455 + tar try tar, gnutar, gtar, then tar without non-portable flags
21456 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
21458 +Send bug reports to <bug-automake@gnu.org>."
21459 + exit $?
21460 + ;;
21462 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
21463 + echo "missing $scriptversion (GNU Automake)"
21464 + exit $?
21465 + ;;
21467 + -*)
21468 + echo 1>&2 "$0: Unknown \`$1' option"
21469 + echo 1>&2 "Try \`$0 --help' for more information"
21470 + exit 1
21471 + ;;
21473 +esac
21475 +# Now exit if we have it, but it failed. Also exit now if we
21476 +# don't have it and --version was passed (most likely to detect
21477 +# the program).
21478 +case "$1" in
21479 + lex|yacc)
21480 + # Not GNU programs, they don't have --version.
21481 + ;;
21483 + tar)
21484 + if test -n "$run"; then
21485 + echo 1>&2 "ERROR: \`tar' requires --run"
21486 + exit 1
21487 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
21488 + exit 1
21489 + fi
21490 + ;;
21492 + *)
21493 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
21494 + # We have it, but it failed.
21495 + exit 1
21496 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
21497 + # Could not run --version or --help. This is probably someone
21498 + # running `$TOOL --version' or `$TOOL --help' to check whether
21499 + # $TOOL exists and not knowing $TOOL uses missing.
21500 + exit 1
21501 + fi
21502 + ;;
21503 +esac
21505 +# If it does not exist, or fails to run (possibly an outdated version),
21506 +# try to emulate it.
21507 +case "$1" in
21508 + aclocal*)
21509 + echo 1>&2 "\
21510 +WARNING: \`$1' is $msg. You should only need it if
21511 + you modified \`acinclude.m4' or \`${configure_ac}'. You might want
21512 + to install the \`Automake' and \`Perl' packages. Grab them from
21513 + any GNU archive site."
21514 + touch aclocal.m4
21515 + ;;
21517 + autoconf)
21518 + echo 1>&2 "\
21519 +WARNING: \`$1' is $msg. You should only need it if
21520 + you modified \`${configure_ac}'. You might want to install the
21521 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
21522 + archive site."
21523 + touch configure
21524 + ;;
21526 + autoheader)
21527 + echo 1>&2 "\
21528 +WARNING: \`$1' is $msg. You should only need it if
21529 + you modified \`acconfig.h' or \`${configure_ac}'. You might want
21530 + to install the \`Autoconf' and \`GNU m4' packages. Grab them
21531 + from any GNU archive site."
21532 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
21533 + test -z "$files" && files="config.h"
21534 + touch_files=
21535 + for f in $files; do
21536 + case "$f" in
21537 + *:*) touch_files="$touch_files "`echo "$f" |
21538 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
21539 + *) touch_files="$touch_files $f.in";;
21540 + esac
21541 + done
21542 + touch $touch_files
21543 + ;;
21545 + automake*)
21546 + echo 1>&2 "\
21547 +WARNING: \`$1' is $msg. You should only need it if
21548 + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
21549 + You might want to install the \`Automake' and \`Perl' packages.
21550 + Grab them from any GNU archive site."
21551 + find . -type f -name Makefile.am -print |
21552 + sed 's/\.am$/.in/' |
21553 + while read f; do touch "$f"; done
21554 + ;;
21556 + autom4te)
21557 + echo 1>&2 "\
21558 +WARNING: \`$1' is needed, but is $msg.
21559 + You might have modified some files without having the
21560 + proper tools for further handling them.
21561 + You can get \`$1' as part of \`Autoconf' from any GNU
21562 + archive site."
21564 + file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
21565 + test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
21566 + if test -f "$file"; then
21567 + touch $file
21568 + else
21569 + test -z "$file" || exec >$file
21570 + echo "#! /bin/sh"
21571 + echo "# Created by GNU Automake missing as a replacement of"
21572 + echo "# $ $@"
21573 + echo "exit 0"
21574 + chmod +x $file
21575 + exit 1
21576 + fi
21577 + ;;
21579 + bison|yacc)
21580 + echo 1>&2 "\
21581 +WARNING: \`$1' $msg. You should only need it if
21582 + you modified a \`.y' file. You may need the \`Bison' package
21583 + in order for those modifications to take effect. You can get
21584 + \`Bison' from any GNU archive site."
21585 + rm -f y.tab.c y.tab.h
21586 + if [ $# -ne 1 ]; then
21587 + eval LASTARG="\${$#}"
21588 + case "$LASTARG" in
21589 + *.y)
21590 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
21591 + if [ -f "$SRCFILE" ]; then
21592 + cp "$SRCFILE" y.tab.c
21593 + fi
21594 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
21595 + if [ -f "$SRCFILE" ]; then
21596 + cp "$SRCFILE" y.tab.h
21597 + fi
21598 + ;;
21599 + esac
21600 + fi
21601 + if [ ! -f y.tab.h ]; then
21602 + echo >y.tab.h
21603 + fi
21604 + if [ ! -f y.tab.c ]; then
21605 + echo 'main() { return 0; }' >y.tab.c
21606 + fi
21607 + ;;
21609 + lex|flex)
21610 + echo 1>&2 "\
21611 +WARNING: \`$1' is $msg. You should only need it if
21612 + you modified a \`.l' file. You may need the \`Flex' package
21613 + in order for those modifications to take effect. You can get
21614 + \`Flex' from any GNU archive site."
21615 + rm -f lex.yy.c
21616 + if [ $# -ne 1 ]; then
21617 + eval LASTARG="\${$#}"
21618 + case "$LASTARG" in
21619 + *.l)
21620 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
21621 + if [ -f "$SRCFILE" ]; then
21622 + cp "$SRCFILE" lex.yy.c
21623 + fi
21624 + ;;
21625 + esac
21626 + fi
21627 + if [ ! -f lex.yy.c ]; then
21628 + echo 'main() { return 0; }' >lex.yy.c
21629 + fi
21630 + ;;
21632 + help2man)
21633 + echo 1>&2 "\
21634 +WARNING: \`$1' is $msg. You should only need it if
21635 + you modified a dependency of a manual page. You may need the
21636 + \`Help2man' package in order for those modifications to take
21637 + effect. You can get \`Help2man' from any GNU archive site."
21639 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
21640 + if test -z "$file"; then
21641 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
21642 + fi
21643 + if [ -f "$file" ]; then
21644 + touch $file
21645 + else
21646 + test -z "$file" || exec >$file
21647 + echo ".ab help2man is required to generate this page"
21648 + exit 1
21649 + fi
21650 + ;;
21652 + makeinfo)
21653 + echo 1>&2 "\
21654 +WARNING: \`$1' is $msg. You should only need it if
21655 + you modified a \`.texi' or \`.texinfo' file, or any other file
21656 + indirectly affecting the aspect of the manual. The spurious
21657 + call might also be the consequence of using a buggy \`make' (AIX,
21658 + DU, IRIX). You might want to install the \`Texinfo' package or
21659 + the \`GNU make' package. Grab either from any GNU archive site."
21660 + # The file to touch is that specified with -o ...
21661 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
21662 + if test -z "$file"; then
21663 + # ... or it is the one specified with @setfilename ...
21664 + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
21665 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
21666 + # ... or it is derived from the source name (dir/f.texi becomes f.info)
21667 + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
21668 + fi
21669 + # If the file does not exist, the user really needs makeinfo;
21670 + # let's fail without touching anything.
21671 + test -f $file || exit 1
21672 + touch $file
21673 + ;;
21675 + tar)
21676 + shift
21678 + # We have already tried tar in the generic part.
21679 + # Look for gnutar/gtar before invocation to avoid ugly error
21680 + # messages.
21681 + if (gnutar --version > /dev/null 2>&1); then
21682 + gnutar "$@" && exit 0
21683 + fi
21684 + if (gtar --version > /dev/null 2>&1); then
21685 + gtar "$@" && exit 0
21686 + fi
21687 + firstarg="$1"
21688 + if shift; then
21689 + case "$firstarg" in
21690 + *o*)
21691 + firstarg=`echo "$firstarg" | sed s/o//`
21692 + tar "$firstarg" "$@" && exit 0
21693 + ;;
21694 + esac
21695 + case "$firstarg" in
21696 + *h*)
21697 + firstarg=`echo "$firstarg" | sed s/h//`
21698 + tar "$firstarg" "$@" && exit 0
21699 + ;;
21700 + esac
21701 + fi
21703 + echo 1>&2 "\
21704 +WARNING: I can't seem to be able to run \`tar' with the given arguments.
21705 + You may want to install GNU tar or Free paxutils, or check the
21706 + command line arguments."
21707 + exit 1
21708 + ;;
21710 + *)
21711 + echo 1>&2 "\
21712 +WARNING: \`$1' is needed, and is $msg.
21713 + You might have modified some files without having the
21714 + proper tools for further handling them. Check the \`README' file,
21715 + it often tells you about the needed prerequisites for installing
21716 + this package. You may also peek at any GNU archive site, in case
21717 + some other package would contain this missing \`$1' program."
21718 + exit 1
21719 + ;;
21720 +esac
21722 +exit 0
21724 +# Local variables:
21725 +# eval: (add-hook 'write-file-hooks 'time-stamp)
21726 +# time-stamp-start: "scriptversion="
21727 +# time-stamp-format: "%:y-%02m-%02d.%02H"
21728 +# time-stamp-end: "$"
21729 +# End:
21730 diff --git a/configure b/configure
21731 index 35c9db5..30f498e 100755
21732 --- a/configure
21733 +++ b/configure
21734 @@ -1,34 +1,479 @@
21735 #! /bin/sh
21737 # Guess values for system-dependent variables and create Makefiles.
21738 -# Generated automatically using autoconf version 2.12
21739 -# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
21740 +# Generated by GNU Autoconf 2.59.
21742 +# Copyright (C) 2003 Free Software Foundation, Inc.
21743 # This configure script is free software; the Free Software Foundation
21744 # gives unlimited permission to copy, distribute and modify it.
21745 +## --------------------- ##
21746 +## M4sh Initialization. ##
21747 +## --------------------- ##
21749 +# Be Bourne compatible
21750 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21751 + emulate sh
21752 + NULLCMD=:
21753 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21754 + # is contrary to our usage. Disable this feature.
21755 + alias -g '${1+"$@"}'='"$@"'
21756 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21757 + set -o posix
21759 +DUALCASE=1; export DUALCASE # for MKS sh
21761 +# Support unset when possible.
21762 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21763 + as_unset=unset
21764 +else
21765 + as_unset=false
21769 +# Work around bugs in pre-3.0 UWIN ksh.
21770 +$as_unset ENV MAIL MAILPATH
21771 +PS1='$ '
21772 +PS2='> '
21773 +PS4='+ '
21775 +# NLS nuisances.
21776 +for as_var in \
21777 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21778 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21779 + LC_TELEPHONE LC_TIME
21781 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21782 + eval $as_var=C; export $as_var
21783 + else
21784 + $as_unset $as_var
21785 + fi
21786 +done
21788 +# Required to use basename.
21789 +if expr a : '\(a\)' >/dev/null 2>&1; then
21790 + as_expr=expr
21791 +else
21792 + as_expr=false
21795 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21796 + as_basename=basename
21797 +else
21798 + as_basename=false
21802 +# Name of the executable.
21803 +as_me=`$as_basename "$0" ||
21804 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21805 + X"$0" : 'X\(//\)$' \| \
21806 + X"$0" : 'X\(/\)$' \| \
21807 + . : '\(.\)' 2>/dev/null ||
21808 +echo X/"$0" |
21809 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21810 + /^X\/\(\/\/\)$/{ s//\1/; q; }
21811 + /^X\/\(\/\).*/{ s//\1/; q; }
21812 + s/.*/./; q'`
21815 +# PATH needs CR, and LINENO needs CR and PATH.
21816 +# Avoid depending upon Character Ranges.
21817 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21818 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21819 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21820 +as_cr_digits='0123456789'
21821 +as_cr_alnum=$as_cr_Letters$as_cr_digits
21823 +# The user is always right.
21824 +if test "${PATH_SEPARATOR+set}" != set; then
21825 + echo "#! /bin/sh" >conf$$.sh
21826 + echo "exit 0" >>conf$$.sh
21827 + chmod +x conf$$.sh
21828 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21829 + PATH_SEPARATOR=';'
21830 + else
21831 + PATH_SEPARATOR=:
21832 + fi
21833 + rm -f conf$$.sh
21837 + as_lineno_1=$LINENO
21838 + as_lineno_2=$LINENO
21839 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21840 + test "x$as_lineno_1" != "x$as_lineno_2" &&
21841 + test "x$as_lineno_3" = "x$as_lineno_2" || {
21842 + # Find who we are. Look in the path if we contain no path at all
21843 + # relative or not.
21844 + case $0 in
21845 + *[\\/]* ) as_myself=$0 ;;
21846 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21847 +for as_dir in $PATH
21849 + IFS=$as_save_IFS
21850 + test -z "$as_dir" && as_dir=.
21851 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21852 +done
21854 + ;;
21855 + esac
21856 + # We did not find ourselves, most probably we were run as `sh COMMAND'
21857 + # in which case we are not to be found in the path.
21858 + if test "x$as_myself" = x; then
21859 + as_myself=$0
21860 + fi
21861 + if test ! -f "$as_myself"; then
21862 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
21863 + { (exit 1); exit 1; }; }
21864 + fi
21865 + case $CONFIG_SHELL in
21866 + '')
21867 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21868 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21870 + IFS=$as_save_IFS
21871 + test -z "$as_dir" && as_dir=.
21872 + for as_base in sh bash ksh sh5; do
21873 + case $as_dir in
21874 + /*)
21875 + if ("$as_dir/$as_base" -c '
21876 + as_lineno_1=$LINENO
21877 + as_lineno_2=$LINENO
21878 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
21879 + test "x$as_lineno_1" != "x$as_lineno_2" &&
21880 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
21881 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
21882 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
21883 + CONFIG_SHELL=$as_dir/$as_base
21884 + export CONFIG_SHELL
21885 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
21886 + fi;;
21887 + esac
21888 + done
21889 +done
21891 + esac
21893 -# Defaults:
21894 -ac_help=
21895 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21896 + # uniformly replaced by the line number. The first 'sed' inserts a
21897 + # line-number line before each line; the second 'sed' does the real
21898 + # work. The second script uses 'N' to pair each line-number line
21899 + # with the numbered line, and appends trailing '-' during
21900 + # substitution so that $LINENO is not a special case at line end.
21901 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21902 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
21903 + sed '=' <$as_myself |
21904 + sed '
21906 + s,$,-,
21907 + : loop
21908 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
21909 + t loop
21910 + s,-$,,
21911 + s,^['$as_cr_digits']*\n,,
21912 + ' >$as_me.lineno &&
21913 + chmod +x $as_me.lineno ||
21914 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21915 + { (exit 1); exit 1; }; }
21917 + # Don't try to exec as it changes $[0], causing all sort of problems
21918 + # (the dirname of $[0] is not the place where we might find the
21919 + # original and so on. Autoconf is especially sensible to this).
21920 + . ./$as_me.lineno
21921 + # Exit status is that of the last command.
21922 + exit
21926 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21927 + *c*,-n*) ECHO_N= ECHO_C='
21928 +' ECHO_T=' ' ;;
21929 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21930 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21931 +esac
21933 +if expr a : '\(a\)' >/dev/null 2>&1; then
21934 + as_expr=expr
21935 +else
21936 + as_expr=false
21939 +rm -f conf$$ conf$$.exe conf$$.file
21940 +echo >conf$$.file
21941 +if ln -s conf$$.file conf$$ 2>/dev/null; then
21942 + # We could just check for DJGPP; but this test a) works b) is more generic
21943 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
21944 + if test -f conf$$.exe; then
21945 + # Don't use ln at all; we don't have any links
21946 + as_ln_s='cp -p'
21947 + else
21948 + as_ln_s='ln -s'
21949 + fi
21950 +elif ln conf$$.file conf$$ 2>/dev/null; then
21951 + as_ln_s=ln
21952 +else
21953 + as_ln_s='cp -p'
21955 +rm -f conf$$ conf$$.exe conf$$.file
21957 +if mkdir -p . 2>/dev/null; then
21958 + as_mkdir_p=:
21959 +else
21960 + test -d ./-p && rmdir ./-p
21961 + as_mkdir_p=false
21964 +as_executable_p="test -f"
21966 +# Sed expression to map a string onto a valid CPP name.
21967 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21969 +# Sed expression to map a string onto a valid variable name.
21970 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21973 +# IFS
21974 +# We need space, tab and new line, in precisely that order.
21975 +as_nl='
21977 +IFS=" $as_nl"
21979 +# CDPATH.
21980 +$as_unset CDPATH
21984 +# Check that we are running under the correct shell.
21985 +SHELL=${CONFIG_SHELL-/bin/sh}
21987 +case X$ECHO in
21988 +X*--fallback-echo)
21989 + # Remove one level of quotation (which was required for Make).
21990 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
21991 + ;;
21992 +esac
21994 +echo=${ECHO-echo}
21995 +if test "X$1" = X--no-reexec; then
21996 + # Discard the --no-reexec flag, and continue.
21997 + shift
21998 +elif test "X$1" = X--fallback-echo; then
21999 + # Avoid inline document here, it may be left over
22001 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
22002 + # Yippee, $echo works!
22004 +else
22005 + # Restart under the correct shell.
22006 + exec $SHELL "$0" --no-reexec ${1+"$@"}
22009 +if test "X$1" = X--fallback-echo; then
22010 + # used as fallback echo
22011 + shift
22012 + cat <<EOF
22014 +EOF
22015 + exit 0
22018 +# The HP-UX ksh and POSIX shell print the target directory to stdout
22019 +# if CDPATH is set.
22020 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22022 +if test -z "$ECHO"; then
22023 +if test "X${echo_test_string+set}" != Xset; then
22024 +# find a string as large as possible, as long as the shell can cope with it
22025 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
22026 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
22027 + if (echo_test_string=`eval $cmd`) 2>/dev/null &&
22028 + echo_test_string=`eval $cmd` &&
22029 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
22030 + then
22031 + break
22032 + fi
22033 + done
22036 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
22037 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
22038 + test "X$echo_testing_string" = "X$echo_test_string"; then
22040 +else
22041 + # The Solaris, AIX, and Digital Unix default echo programs unquote
22042 + # backslashes. This makes it impossible to quote backslashes using
22043 + # echo "$something" | sed 's/\\/\\\\/g'
22045 + # So, first we look for a working echo in the user's PATH.
22047 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
22048 + for dir in $PATH /usr/ucb; do
22049 + IFS="$lt_save_ifs"
22050 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
22051 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
22052 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
22053 + test "X$echo_testing_string" = "X$echo_test_string"; then
22054 + echo="$dir/echo"
22055 + break
22056 + fi
22057 + done
22058 + IFS="$lt_save_ifs"
22060 + if test "X$echo" = Xecho; then
22061 + # We didn't find a better echo, so look for alternatives.
22062 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
22063 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
22064 + test "X$echo_testing_string" = "X$echo_test_string"; then
22065 + # This shell has a builtin print -r that does the trick.
22066 + echo='print -r'
22067 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
22068 + test "X$CONFIG_SHELL" != X/bin/ksh; then
22069 + # If we have ksh, try running configure again with it.
22070 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22071 + export ORIGINAL_CONFIG_SHELL
22072 + CONFIG_SHELL=/bin/ksh
22073 + export CONFIG_SHELL
22074 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
22075 + else
22076 + # Try using printf.
22077 + echo='printf %s\n'
22078 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
22079 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
22080 + test "X$echo_testing_string" = "X$echo_test_string"; then
22081 + # Cool, printf works
22083 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
22084 + test "X$echo_testing_string" = 'X\t' &&
22085 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
22086 + test "X$echo_testing_string" = "X$echo_test_string"; then
22087 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
22088 + export CONFIG_SHELL
22089 + SHELL="$CONFIG_SHELL"
22090 + export SHELL
22091 + echo="$CONFIG_SHELL $0 --fallback-echo"
22092 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
22093 + test "X$echo_testing_string" = 'X\t' &&
22094 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
22095 + test "X$echo_testing_string" = "X$echo_test_string"; then
22096 + echo="$CONFIG_SHELL $0 --fallback-echo"
22097 + else
22098 + # maybe with a smaller string...
22099 + prev=:
22101 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
22102 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
22103 + then
22104 + break
22105 + fi
22106 + prev="$cmd"
22107 + done
22109 + if test "$prev" != 'sed 50q "$0"'; then
22110 + echo_test_string=`eval $prev`
22111 + export echo_test_string
22112 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
22113 + else
22114 + # Oops. We lost completely, so just stick with echo.
22115 + echo=echo
22116 + fi
22117 + fi
22118 + fi
22119 + fi
22123 +# Copy echo and quote the copy suitably for passing to libtool from
22124 +# the Makefile, instead of quoting the original, which is used later.
22125 +ECHO=$echo
22126 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
22127 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
22133 +tagnames=${tagnames+${tagnames},}CXX
22135 +tagnames=${tagnames+${tagnames},}F77
22137 +# Name of the host.
22138 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
22139 +# so uname gets run too.
22140 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
22142 +exec 6>&1
22145 +# Initializations.
22147 ac_default_prefix=/usr/local
22148 -# Any additions from configure.in:
22149 -ac_help="$ac_help
22150 - --enable-shared build shared library using GNU libtool"
22151 -ac_help="$ac_help
22152 - --enable-static build static library using GNU libtool"
22153 -ac_help="$ac_help
22154 - --enable-maxmem[=N] enable use of temp files, set max mem usage to N MB"
22155 -ac_help="$ac_help
22157 +ac_config_libobj_dir=.
22158 +cross_compiling=no
22159 +subdirs=
22160 +MFLAGS=
22161 +MAKEFLAGS=
22162 +SHELL=${CONFIG_SHELL-/bin/sh}
22164 +# Maximum number of lines to put in a shell here document.
22165 +# This variable seems obsolete. It should probably be removed, and
22166 +# only ac_max_sed_lines should be used.
22167 +: ${ac_max_here_lines=38}
22169 +# Identity of this package.
22170 +PACKAGE_NAME=
22171 +PACKAGE_TARNAME=
22172 +PACKAGE_VERSION=
22173 +PACKAGE_STRING=
22174 +PACKAGE_BUGREPORT=
22176 +ac_unique_file="jcmaster.c"
22177 +# Factoring default headers for most tests.
22178 +ac_includes_default="\
22179 +#include <stdio.h>
22180 +#if HAVE_SYS_TYPES_H
22181 +# include <sys/types.h>
22182 +#endif
22183 +#if HAVE_SYS_STAT_H
22184 +# include <sys/stat.h>
22185 +#endif
22186 +#if STDC_HEADERS
22187 +# include <stdlib.h>
22188 +# include <stddef.h>
22189 +#else
22190 +# if HAVE_STDLIB_H
22191 +# include <stdlib.h>
22192 +# endif
22193 +#endif
22194 +#if HAVE_STRING_H
22195 +# if !STDC_HEADERS && HAVE_MEMORY_H
22196 +# include <memory.h>
22197 +# endif
22198 +# include <string.h>
22199 +#endif
22200 +#if HAVE_STRINGS_H
22201 +# include <strings.h>
22202 +#endif
22203 +#if HAVE_INTTYPES_H
22204 +# include <inttypes.h>
22205 +#else
22206 +# if HAVE_STDINT_H
22207 +# include <stdint.h>
22208 +# endif
22209 +#endif
22210 +#if HAVE_UNISTD_H
22211 +# include <unistd.h>
22212 +#endif"
22214 +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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT 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 CPP LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL MEMORYMGR PNGLIBS JPEG_LIB_VERSION LIBOBJS LTLIBOBJS'
22215 +ac_subst_files=''
22217 # Initialize some variables set by options.
22218 +ac_init_help=
22219 +ac_init_version=false
22220 # The variables have the same names as the options, with
22221 # dashes changed to underlines.
22222 -build=NONE
22223 -cache_file=./config.cache
22224 +cache_file=/dev/null
22225 exec_prefix=NONE
22226 -host=NONE
22227 no_create=
22228 -nonopt=NONE
22229 no_recursion=
22230 prefix=NONE
22231 program_prefix=NONE
22232 @@ -37,10 +482,15 @@ program_transform_name=s,x,x,
22233 silent=
22234 site=
22235 srcdir=
22236 -target=NONE
22237 verbose=
22238 x_includes=NONE
22239 x_libraries=NONE
22241 +# Installation directory options.
22242 +# These are left unexpanded so users can "make install exec_prefix=/foo"
22243 +# and all the variables that are supposed to be based on exec_prefix
22244 +# by default will actually change.
22245 +# Use braces instead of parens because sh, perl, etc. also accept them.
22246 bindir='${exec_prefix}/bin'
22247 sbindir='${exec_prefix}/sbin'
22248 libexecdir='${exec_prefix}/libexec'
22249 @@ -54,16 +504,9 @@ oldincludedir='/usr/include'
22250 infodir='${prefix}/info'
22251 mandir='${prefix}/man'
22253 -# Initialize some other variables.
22254 -subdirs=
22255 -MFLAGS= MAKEFLAGS=
22256 -# Maximum number of lines to put in a shell here document.
22257 -ac_max_here_lines=12
22259 ac_prev=
22260 for ac_option
22263 # If the previous option needs an argument, assign it.
22264 if test -n "$ac_prev"; then
22265 eval "$ac_prev=\$ac_option"
22266 @@ -71,59 +514,59 @@ do
22267 continue
22270 - case "$ac_option" in
22271 - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
22272 - *) ac_optarg= ;;
22273 - esac
22274 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
22276 # Accept the important Cygnus configure options, so we can diagnose typos.
22278 - case "$ac_option" in
22279 + case $ac_option in
22281 -bindir | --bindir | --bindi | --bind | --bin | --bi)
22282 ac_prev=bindir ;;
22283 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
22284 - bindir="$ac_optarg" ;;
22285 + bindir=$ac_optarg ;;
22287 -build | --build | --buil | --bui | --bu)
22288 - ac_prev=build ;;
22289 + ac_prev=build_alias ;;
22290 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
22291 - build="$ac_optarg" ;;
22292 + build_alias=$ac_optarg ;;
22294 -cache-file | --cache-file | --cache-fil | --cache-fi \
22295 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22296 ac_prev=cache_file ;;
22297 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22298 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
22299 - cache_file="$ac_optarg" ;;
22300 + cache_file=$ac_optarg ;;
22302 + --config-cache | -C)
22303 + cache_file=config.cache ;;
22305 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
22306 ac_prev=datadir ;;
22307 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
22308 | --da=*)
22309 - datadir="$ac_optarg" ;;
22310 + datadir=$ac_optarg ;;
22312 -disable-* | --disable-*)
22313 - ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
22314 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
22315 # Reject names that are not valid shell variable names.
22316 - if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
22317 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
22318 - fi
22319 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
22320 - eval "enable_${ac_feature}=no" ;;
22321 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
22322 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
22323 + { (exit 1); exit 1; }; }
22324 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
22325 + eval "enable_$ac_feature=no" ;;
22327 -enable-* | --enable-*)
22328 - ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
22329 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
22330 # Reject names that are not valid shell variable names.
22331 - if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
22332 - { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
22333 - fi
22334 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
22335 - case "$ac_option" in
22336 - *=*) ;;
22337 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
22338 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2
22339 + { (exit 1); exit 1; }; }
22340 + ac_feature=`echo $ac_feature | sed 's/-/_/g'`
22341 + case $ac_option in
22342 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
22343 *) ac_optarg=yes ;;
22344 esac
22345 - eval "enable_${ac_feature}='$ac_optarg'" ;;
22346 + eval "enable_$ac_feature='$ac_optarg'" ;;
22348 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
22349 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
22350 @@ -132,95 +575,47 @@ do
22351 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
22352 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
22353 | --exec=* | --exe=* | --ex=*)
22354 - exec_prefix="$ac_optarg" ;;
22355 + exec_prefix=$ac_optarg ;;
22357 -gas | --gas | --ga | --g)
22358 # Obsolete; use --with-gas.
22359 with_gas=yes ;;
22361 - -help | --help | --hel | --he)
22362 - # Omit some internal or obsolete options to make the list less imposing.
22363 - # This message is too long to be a string in the A/UX 3.1 sh.
22364 - cat << EOF
22365 -Usage: configure [options] [host]
22366 -Options: [defaults in brackets after descriptions]
22367 -Configuration:
22368 - --cache-file=FILE cache test results in FILE
22369 - --help print this message
22370 - --no-create do not create output files
22371 - --quiet, --silent do not print \`checking...' messages
22372 - --version print the version of autoconf that created configure
22373 -Directory and file names:
22374 - --prefix=PREFIX install architecture-independent files in PREFIX
22375 - [$ac_default_prefix]
22376 - --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
22377 - [same as prefix]
22378 - --bindir=DIR user executables in DIR [EPREFIX/bin]
22379 - --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
22380 - --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
22381 - --datadir=DIR read-only architecture-independent data in DIR
22382 - [PREFIX/share]
22383 - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
22384 - --sharedstatedir=DIR modifiable architecture-independent data in DIR
22385 - [PREFIX/com]
22386 - --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
22387 - --libdir=DIR object code libraries in DIR [EPREFIX/lib]
22388 - --includedir=DIR C header files in DIR [PREFIX/include]
22389 - --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
22390 - --infodir=DIR info documentation in DIR [PREFIX/info]
22391 - --mandir=DIR man documentation in DIR [PREFIX/man]
22392 - --srcdir=DIR find the sources in DIR [configure dir or ..]
22393 - --program-prefix=PREFIX prepend PREFIX to installed program names
22394 - --program-suffix=SUFFIX append SUFFIX to installed program names
22395 - --program-transform-name=PROGRAM
22396 - run sed PROGRAM on installed program names
22397 -EOF
22398 - cat << EOF
22399 -Host type:
22400 - --build=BUILD configure for building on BUILD [BUILD=HOST]
22401 - --host=HOST configure for HOST [guessed]
22402 - --target=TARGET configure for TARGET [TARGET=HOST]
22403 -Features and packages:
22404 - --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
22405 - --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22406 - --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
22407 - --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
22408 - --x-includes=DIR X include files are in DIR
22409 - --x-libraries=DIR X library files are in DIR
22410 -EOF
22411 - if test -n "$ac_help"; then
22412 - echo "--enable and --with options recognized:$ac_help"
22413 - fi
22414 - exit 0 ;;
22415 + -help | --help | --hel | --he | -h)
22416 + ac_init_help=long ;;
22417 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
22418 + ac_init_help=recursive ;;
22419 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
22420 + ac_init_help=short ;;
22422 -host | --host | --hos | --ho)
22423 - ac_prev=host ;;
22424 + ac_prev=host_alias ;;
22425 -host=* | --host=* | --hos=* | --ho=*)
22426 - host="$ac_optarg" ;;
22427 + host_alias=$ac_optarg ;;
22429 -includedir | --includedir | --includedi | --included | --include \
22430 | --includ | --inclu | --incl | --inc)
22431 ac_prev=includedir ;;
22432 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
22433 | --includ=* | --inclu=* | --incl=* | --inc=*)
22434 - includedir="$ac_optarg" ;;
22435 + includedir=$ac_optarg ;;
22437 -infodir | --infodir | --infodi | --infod | --info | --inf)
22438 ac_prev=infodir ;;
22439 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
22440 - infodir="$ac_optarg" ;;
22441 + infodir=$ac_optarg ;;
22443 -libdir | --libdir | --libdi | --libd)
22444 ac_prev=libdir ;;
22445 -libdir=* | --libdir=* | --libdi=* | --libd=*)
22446 - libdir="$ac_optarg" ;;
22447 + libdir=$ac_optarg ;;
22449 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
22450 | --libexe | --libex | --libe)
22451 ac_prev=libexecdir ;;
22452 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
22453 | --libexe=* | --libex=* | --libe=*)
22454 - libexecdir="$ac_optarg" ;;
22455 + libexecdir=$ac_optarg ;;
22457 -localstatedir | --localstatedir | --localstatedi | --localstated \
22458 | --localstate | --localstat | --localsta | --localst \
22459 @@ -229,19 +624,19 @@ EOF
22460 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
22461 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
22462 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
22463 - localstatedir="$ac_optarg" ;;
22464 + localstatedir=$ac_optarg ;;
22466 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
22467 ac_prev=mandir ;;
22468 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
22469 - mandir="$ac_optarg" ;;
22470 + mandir=$ac_optarg ;;
22472 -nfp | --nfp | --nf)
22473 # Obsolete; use --without-fp.
22474 with_fp=no ;;
22476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
22477 - | --no-cr | --no-c)
22478 + | --no-cr | --no-c | -n)
22479 no_create=yes ;;
22481 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
22482 @@ -255,26 +650,26 @@ EOF
22483 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
22484 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
22485 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
22486 - oldincludedir="$ac_optarg" ;;
22487 + oldincludedir=$ac_optarg ;;
22489 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22490 ac_prev=prefix ;;
22491 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22492 - prefix="$ac_optarg" ;;
22493 + prefix=$ac_optarg ;;
22495 -program-prefix | --program-prefix | --program-prefi | --program-pref \
22496 | --program-pre | --program-pr | --program-p)
22497 ac_prev=program_prefix ;;
22498 -program-prefix=* | --program-prefix=* | --program-prefi=* \
22499 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
22500 - program_prefix="$ac_optarg" ;;
22501 + program_prefix=$ac_optarg ;;
22503 -program-suffix | --program-suffix | --program-suffi | --program-suff \
22504 | --program-suf | --program-su | --program-s)
22505 ac_prev=program_suffix ;;
22506 -program-suffix=* | --program-suffix=* | --program-suffi=* \
22507 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
22508 - program_suffix="$ac_optarg" ;;
22509 + program_suffix=$ac_optarg ;;
22511 -program-transform-name | --program-transform-name \
22512 | --program-transform-nam | --program-transform-na \
22513 @@ -291,7 +686,7 @@ EOF
22514 | --program-transfo=* | --program-transf=* \
22515 | --program-trans=* | --program-tran=* \
22516 | --progr-tra=* | --program-tr=* | --program-t=*)
22517 - program_transform_name="$ac_optarg" ;;
22518 + program_transform_name=$ac_optarg ;;
22520 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22521 | -silent | --silent | --silen | --sile | --sil)
22522 @@ -301,7 +696,7 @@ EOF
22523 ac_prev=sbindir ;;
22524 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
22525 | --sbi=* | --sb=*)
22526 - sbindir="$ac_optarg" ;;
22527 + sbindir=$ac_optarg ;;
22529 -sharedstatedir | --sharedstatedir | --sharedstatedi \
22530 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
22531 @@ -312,58 +707,57 @@ EOF
22532 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
22533 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
22534 | --sha=* | --sh=*)
22535 - sharedstatedir="$ac_optarg" ;;
22536 + sharedstatedir=$ac_optarg ;;
22538 -site | --site | --sit)
22539 ac_prev=site ;;
22540 -site=* | --site=* | --sit=*)
22541 - site="$ac_optarg" ;;
22542 + site=$ac_optarg ;;
22544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22545 ac_prev=srcdir ;;
22546 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22547 - srcdir="$ac_optarg" ;;
22548 + srcdir=$ac_optarg ;;
22550 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
22551 | --syscon | --sysco | --sysc | --sys | --sy)
22552 ac_prev=sysconfdir ;;
22553 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
22554 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
22555 - sysconfdir="$ac_optarg" ;;
22556 + sysconfdir=$ac_optarg ;;
22558 -target | --target | --targe | --targ | --tar | --ta | --t)
22559 - ac_prev=target ;;
22560 + ac_prev=target_alias ;;
22561 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
22562 - target="$ac_optarg" ;;
22563 + target_alias=$ac_optarg ;;
22565 -v | -verbose | --verbose | --verbos | --verbo | --verb)
22566 verbose=yes ;;
22568 - -version | --version | --versio | --versi | --vers)
22569 - echo "configure generated by autoconf version 2.12"
22570 - exit 0 ;;
22571 + -version | --version | --versio | --versi | --vers | -V)
22572 + ac_init_version=: ;;
22574 -with-* | --with-*)
22575 - ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
22576 + ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
22577 # Reject names that are not valid shell variable names.
22578 - if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
22579 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
22580 - fi
22581 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
22582 + { echo "$as_me: error: invalid package name: $ac_package" >&2
22583 + { (exit 1); exit 1; }; }
22584 ac_package=`echo $ac_package| sed 's/-/_/g'`
22585 - case "$ac_option" in
22586 - *=*) ;;
22587 + case $ac_option in
22588 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
22589 *) ac_optarg=yes ;;
22590 esac
22591 - eval "with_${ac_package}='$ac_optarg'" ;;
22592 + eval "with_$ac_package='$ac_optarg'" ;;
22594 -without-* | --without-*)
22595 - ac_package=`echo $ac_option|sed -e 's/-*without-//'`
22596 + ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
22597 # Reject names that are not valid shell variable names.
22598 - if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
22599 - { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
22600 - fi
22601 - ac_package=`echo $ac_package| sed 's/-/_/g'`
22602 - eval "with_${ac_package}=no" ;;
22603 + expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
22604 + { echo "$as_me: error: invalid package name: $ac_package" >&2
22605 + { (exit 1); exit 1; }; }
22606 + ac_package=`echo $ac_package | sed 's/-/_/g'`
22607 + eval "with_$ac_package=no" ;;
22609 --x)
22610 # Obsolete; use --with-x.
22611 @@ -374,110 +768,110 @@ EOF
22612 ac_prev=x_includes ;;
22613 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
22614 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
22615 - x_includes="$ac_optarg" ;;
22616 + x_includes=$ac_optarg ;;
22618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
22619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
22620 ac_prev=x_libraries ;;
22621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
22622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
22623 - x_libraries="$ac_optarg" ;;
22624 + x_libraries=$ac_optarg ;;
22626 - -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
22627 + -*) { echo "$as_me: error: unrecognized option: $ac_option
22628 +Try \`$0 --help' for more information." >&2
22629 + { (exit 1); exit 1; }; }
22632 *=*)
22633 - varname=`echo "$ac_option"|sed -e 's/=.*//'`
22634 - # Reject names that aren't valid shell variable names.
22635 - if test -n "`echo $varname| sed 's/[a-zA-Z0-9_]//g'`"; then
22636 - { echo "configure: error: $varname: invalid shell variable name" 1>&2; exit 1; }
22637 - fi
22638 - val="`echo "$ac_option"|sed 's/[^=]*=//'`"
22639 - test -n "$verbose" && echo " setting shell variable $varname to $val"
22640 - eval "$varname='$val'"
22641 - eval "export $varname" ;;
22642 + ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
22643 + # Reject names that are not valid shell variable names.
22644 + expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
22645 + { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
22646 + { (exit 1); exit 1; }; }
22647 + ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
22648 + eval "$ac_envvar='$ac_optarg'"
22649 + export $ac_envvar ;;
22652 - if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
22653 - echo "configure: warning: $ac_option: invalid host type" 1>&2
22654 - fi
22655 - if test "x$nonopt" != xNONE; then
22656 - { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
22657 - fi
22658 - nonopt="$ac_option"
22659 + # FIXME: should be removed in autoconf 3.0.
22660 + echo "$as_me: WARNING: you should use --build, --host, --target" >&2
22661 + expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
22662 + echo "$as_me: WARNING: invalid host type: $ac_option" >&2
22663 + : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
22666 esac
22667 done
22669 if test -n "$ac_prev"; then
22670 - { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
22671 + ac_option=--`echo $ac_prev | sed 's/_/-/g'`
22672 + { echo "$as_me: error: missing argument to $ac_option" >&2
22673 + { (exit 1); exit 1; }; }
22676 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
22678 -# File descriptor usage:
22679 -# 0 standard input
22680 -# 1 file creation
22681 -# 2 errors and warnings
22682 -# 3 some systems may open it to /dev/tty
22683 -# 4 used on the Kubota Titan
22684 -# 6 checking for... messages and results
22685 -# 5 compiler messages saved in config.log
22686 -if test "$silent" = yes; then
22687 - exec 6>/dev/null
22688 -else
22689 - exec 6>&1
22691 -exec 5>./config.log
22693 -echo "\
22694 -This file contains any messages produced by compilers while
22695 -running configure, to aid debugging if configure makes a mistake.
22696 -" 1>&5
22697 +# Be sure to have absolute paths.
22698 +for ac_var in exec_prefix prefix
22700 + eval ac_val=$`echo $ac_var`
22701 + case $ac_val in
22702 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
22703 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
22704 + { (exit 1); exit 1; }; };;
22705 + esac
22706 +done
22708 -# Strip out --no-create and --no-recursion so they do not pile up.
22709 -# Also quote any args containing shell metacharacters.
22710 -ac_configure_args=
22711 -for ac_arg
22712 +# Be sure to have absolute paths.
22713 +for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
22714 + localstatedir libdir includedir oldincludedir infodir mandir
22716 - case "$ac_arg" in
22717 - -no-create | --no-create | --no-creat | --no-crea | --no-cre \
22718 - | --no-cr | --no-c) ;;
22719 - -no-recursion | --no-recursion | --no-recursio | --no-recursi \
22720 - | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
22721 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
22722 - ac_configure_args="$ac_configure_args '$ac_arg'" ;;
22723 - *) ac_configure_args="$ac_configure_args $ac_arg" ;;
22724 + eval ac_val=$`echo $ac_var`
22725 + case $ac_val in
22726 + [\\/$]* | ?:[\\/]* ) ;;
22727 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
22728 + { (exit 1); exit 1; }; };;
22729 esac
22730 done
22732 -# NLS nuisances.
22733 -# Only set these to C if already set. These must not be set unconditionally
22734 -# because not all systems understand e.g. LANG=C (notably SCO).
22735 -# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
22736 -# Non-C LC_CTYPE values break the ctype check.
22737 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
22738 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
22739 -if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
22740 -if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
22741 +# There might be people who depend on the old broken behavior: `$host'
22742 +# used to hold the argument of --host etc.
22743 +# FIXME: To remove some day.
22744 +build=$build_alias
22745 +host=$host_alias
22746 +target=$target_alias
22748 -# confdefs.h avoids OS command line length limits that DEFS can exceed.
22749 -rm -rf conftest* confdefs.h
22750 -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
22751 -echo > confdefs.h
22752 +# FIXME: To remove some day.
22753 +if test "x$host_alias" != x; then
22754 + if test "x$build_alias" = x; then
22755 + cross_compiling=maybe
22756 + echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
22757 + If a cross compiler is detected then cross compile mode will be used." >&2
22758 + elif test "x$build_alias" != "x$host_alias"; then
22759 + cross_compiling=yes
22760 + fi
22763 +ac_tool_prefix=
22764 +test -n "$host_alias" && ac_tool_prefix=$host_alias-
22766 +test "$silent" = yes && exec 6>/dev/null
22768 -# A filename unique to this package, relative to the directory that
22769 -# configure is in, which we can look for to find out if srcdir is correct.
22770 -ac_unique_file=jcmaster.c
22772 # Find the source files, if location was not specified.
22773 if test -z "$srcdir"; then
22774 ac_srcdir_defaulted=yes
22775 # Try the directory containing this script, then its parent.
22776 - ac_prog=$0
22777 - ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
22778 - test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
22779 + ac_confdir=`(dirname "$0") 2>/dev/null ||
22780 +$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22781 + X"$0" : 'X\(//\)[^/]' \| \
22782 + X"$0" : 'X\(//\)$' \| \
22783 + X"$0" : 'X\(/\)' \| \
22784 + . : '\(.\)' 2>/dev/null ||
22785 +echo X"$0" |
22786 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22787 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22788 + /^X\(\/\/\)$/{ s//\1/; q; }
22789 + /^X\(\/\).*/{ s//\1/; q; }
22790 + s/.*/./; q'`
22791 srcdir=$ac_confdir
22792 if test ! -r $srcdir/$ac_unique_file; then
22793 srcdir=..
22794 @@ -487,13 +881,515 @@ else
22796 if test ! -r $srcdir/$ac_unique_file; then
22797 if test "$ac_srcdir_defaulted" = yes; then
22798 - { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
22799 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
22800 + { (exit 1); exit 1; }; }
22801 else
22802 - { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
22803 + { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
22804 + { (exit 1); exit 1; }; }
22807 -srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
22808 +(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
22809 + { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
22810 + { (exit 1); exit 1; }; }
22811 +srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
22812 +ac_env_build_alias_set=${build_alias+set}
22813 +ac_env_build_alias_value=$build_alias
22814 +ac_cv_env_build_alias_set=${build_alias+set}
22815 +ac_cv_env_build_alias_value=$build_alias
22816 +ac_env_host_alias_set=${host_alias+set}
22817 +ac_env_host_alias_value=$host_alias
22818 +ac_cv_env_host_alias_set=${host_alias+set}
22819 +ac_cv_env_host_alias_value=$host_alias
22820 +ac_env_target_alias_set=${target_alias+set}
22821 +ac_env_target_alias_value=$target_alias
22822 +ac_cv_env_target_alias_set=${target_alias+set}
22823 +ac_cv_env_target_alias_value=$target_alias
22824 +ac_env_CC_set=${CC+set}
22825 +ac_env_CC_value=$CC
22826 +ac_cv_env_CC_set=${CC+set}
22827 +ac_cv_env_CC_value=$CC
22828 +ac_env_CFLAGS_set=${CFLAGS+set}
22829 +ac_env_CFLAGS_value=$CFLAGS
22830 +ac_cv_env_CFLAGS_set=${CFLAGS+set}
22831 +ac_cv_env_CFLAGS_value=$CFLAGS
22832 +ac_env_LDFLAGS_set=${LDFLAGS+set}
22833 +ac_env_LDFLAGS_value=$LDFLAGS
22834 +ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
22835 +ac_cv_env_LDFLAGS_value=$LDFLAGS
22836 +ac_env_CPPFLAGS_set=${CPPFLAGS+set}
22837 +ac_env_CPPFLAGS_value=$CPPFLAGS
22838 +ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
22839 +ac_cv_env_CPPFLAGS_value=$CPPFLAGS
22840 +ac_env_CPP_set=${CPP+set}
22841 +ac_env_CPP_value=$CPP
22842 +ac_cv_env_CPP_set=${CPP+set}
22843 +ac_cv_env_CPP_value=$CPP
22844 +ac_env_CXX_set=${CXX+set}
22845 +ac_env_CXX_value=$CXX
22846 +ac_cv_env_CXX_set=${CXX+set}
22847 +ac_cv_env_CXX_value=$CXX
22848 +ac_env_CXXFLAGS_set=${CXXFLAGS+set}
22849 +ac_env_CXXFLAGS_value=$CXXFLAGS
22850 +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
22851 +ac_cv_env_CXXFLAGS_value=$CXXFLAGS
22852 +ac_env_CXXCPP_set=${CXXCPP+set}
22853 +ac_env_CXXCPP_value=$CXXCPP
22854 +ac_cv_env_CXXCPP_set=${CXXCPP+set}
22855 +ac_cv_env_CXXCPP_value=$CXXCPP
22856 +ac_env_F77_set=${F77+set}
22857 +ac_env_F77_value=$F77
22858 +ac_cv_env_F77_set=${F77+set}
22859 +ac_cv_env_F77_value=$F77
22860 +ac_env_FFLAGS_set=${FFLAGS+set}
22861 +ac_env_FFLAGS_value=$FFLAGS
22862 +ac_cv_env_FFLAGS_set=${FFLAGS+set}
22863 +ac_cv_env_FFLAGS_value=$FFLAGS
22866 +# Report the --help message.
22868 +if test "$ac_init_help" = "long"; then
22869 + # Omit some internal or obsolete options to make the list less imposing.
22870 + # This message is too long to be a string in the A/UX 3.1 sh.
22871 + cat <<_ACEOF
22872 +\`configure' configures this package to adapt to many kinds of systems.
22874 +Usage: $0 [OPTION]... [VAR=VALUE]...
22876 +To assign environment variables (e.g., CC, CFLAGS...), specify them as
22877 +VAR=VALUE. See below for descriptions of some of the useful variables.
22879 +Defaults for the options are specified in brackets.
22881 +Configuration:
22882 + -h, --help display this help and exit
22883 + --help=short display options specific to this package
22884 + --help=recursive display the short help of all the included packages
22885 + -V, --version display version information and exit
22886 + -q, --quiet, --silent do not print \`checking...' messages
22887 + --cache-file=FILE cache test results in FILE [disabled]
22888 + -C, --config-cache alias for \`--cache-file=config.cache'
22889 + -n, --no-create do not create output files
22890 + --srcdir=DIR find the sources in DIR [configure dir or \`..']
22892 +_ACEOF
22894 + cat <<_ACEOF
22895 +Installation directories:
22896 + --prefix=PREFIX install architecture-independent files in PREFIX
22897 + [$ac_default_prefix]
22898 + --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
22899 + [PREFIX]
22901 +By default, \`make install' will install all the files in
22902 +\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
22903 +an installation prefix other than \`$ac_default_prefix' using \`--prefix',
22904 +for instance \`--prefix=\$HOME'.
22906 +For better control, use the options below.
22908 +Fine tuning of the installation directories:
22909 + --bindir=DIR user executables [EPREFIX/bin]
22910 + --sbindir=DIR system admin executables [EPREFIX/sbin]
22911 + --libexecdir=DIR program executables [EPREFIX/libexec]
22912 + --datadir=DIR read-only architecture-independent data [PREFIX/share]
22913 + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
22914 + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
22915 + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
22916 + --libdir=DIR object code libraries [EPREFIX/lib]
22917 + --includedir=DIR C header files [PREFIX/include]
22918 + --oldincludedir=DIR C header files for non-gcc [/usr/include]
22919 + --infodir=DIR info documentation [PREFIX/info]
22920 + --mandir=DIR man documentation [PREFIX/man]
22921 +_ACEOF
22923 + cat <<\_ACEOF
22925 +Program names:
22926 + --program-prefix=PREFIX prepend PREFIX to installed program names
22927 + --program-suffix=SUFFIX append SUFFIX to installed program names
22928 + --program-transform-name=PROGRAM run sed PROGRAM on installed program names
22930 +System types:
22931 + --build=BUILD configure for building on BUILD [guessed]
22932 + --host=HOST cross-compile to build programs to run on HOST [BUILD]
22933 + --target=TARGET configure for building compilers for TARGET [HOST]
22934 +_ACEOF
22937 +if test -n "$ac_init_help"; then
22939 + cat <<\_ACEOF
22941 +Optional Features:
22942 + --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
22943 + --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
22944 + --enable-maintainer-mode enable make rules and dependencies not useful
22945 + (and sometimes confusing) to the casual installer
22946 + --disable-dependency-tracking speeds up one-time build
22947 + --enable-dependency-tracking do not reject slow dependency extractors
22948 + --enable-shared[=PKGS]
22949 + build shared libraries [default=yes]
22950 + --enable-static[=PKGS]
22951 + build static libraries [default=yes]
22952 + --enable-fast-install[=PKGS]
22953 + optimize for fast installation [default=yes]
22954 + --disable-libtool-lock avoid locking (might break parallel builds)
22955 + --enable-maxmem=N enable use of temp files, set max mem usage to N MB
22957 +Optional Packages:
22958 + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
22959 + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
22960 + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
22961 + --with-pic try to use only PIC/non-PIC objects [default=use
22962 + both]
22963 + --with-tags[=TAGS]
22964 + include additional configurations [automatic]
22965 + --with-png enable PNG support in cjpeg/djpeg
22967 +Some influential environment variables:
22968 + CC C compiler command
22969 + CFLAGS C compiler flags
22970 + LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
22971 + nonstandard directory <lib dir>
22972 + CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
22973 + headers in a nonstandard directory <include dir>
22974 + CPP C preprocessor
22975 + CXX C++ compiler command
22976 + CXXFLAGS C++ compiler flags
22977 + CXXCPP C++ preprocessor
22978 + F77 Fortran 77 compiler command
22979 + FFLAGS Fortran 77 compiler flags
22981 +Use these variables to override the choices made by `configure' or to help
22982 +it to find libraries and programs with nonstandard names/locations.
22984 +_ACEOF
22987 +if test "$ac_init_help" = "recursive"; then
22988 + # If there are subdirs, report their specific --help.
22989 + ac_popdir=`pwd`
22990 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
22991 + test -d $ac_dir || continue
22992 + ac_builddir=.
22994 +if test "$ac_dir" != .; then
22995 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22996 + # A "../" for each directory in $ac_dir_suffix.
22997 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22998 +else
22999 + ac_dir_suffix= ac_top_builddir=
23002 +case $srcdir in
23003 + .) # No --srcdir option. We are building in place.
23004 + ac_srcdir=.
23005 + if test -z "$ac_top_builddir"; then
23006 + ac_top_srcdir=.
23007 + else
23008 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23009 + fi ;;
23010 + [\\/]* | ?:[\\/]* ) # Absolute path.
23011 + ac_srcdir=$srcdir$ac_dir_suffix;
23012 + ac_top_srcdir=$srcdir ;;
23013 + *) # Relative path.
23014 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23015 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
23016 +esac
23018 +# Do not use `cd foo && pwd` to compute absolute paths, because
23019 +# the directories may not exist.
23020 +case `pwd` in
23021 +.) ac_abs_builddir="$ac_dir";;
23023 + case "$ac_dir" in
23024 + .) ac_abs_builddir=`pwd`;;
23025 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23026 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
23027 + esac;;
23028 +esac
23029 +case $ac_abs_builddir in
23030 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
23032 + case ${ac_top_builddir}. in
23033 + .) ac_abs_top_builddir=$ac_abs_builddir;;
23034 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23035 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23036 + esac;;
23037 +esac
23038 +case $ac_abs_builddir in
23039 +.) ac_abs_srcdir=$ac_srcdir;;
23041 + case $ac_srcdir in
23042 + .) ac_abs_srcdir=$ac_abs_builddir;;
23043 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23044 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23045 + esac;;
23046 +esac
23047 +case $ac_abs_builddir in
23048 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
23050 + case $ac_top_srcdir in
23051 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
23052 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23053 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23054 + esac;;
23055 +esac
23057 + cd $ac_dir
23058 + # Check for guested configure; otherwise get Cygnus style configure.
23059 + if test -f $ac_srcdir/configure.gnu; then
23060 + echo
23061 + $SHELL $ac_srcdir/configure.gnu --help=recursive
23062 + elif test -f $ac_srcdir/configure; then
23063 + echo
23064 + $SHELL $ac_srcdir/configure --help=recursive
23065 + elif test -f $ac_srcdir/configure.ac ||
23066 + test -f $ac_srcdir/configure.in; then
23067 + echo
23068 + $ac_configure --help
23069 + else
23070 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
23071 + fi
23072 + cd $ac_popdir
23073 + done
23076 +test -n "$ac_init_help" && exit 0
23077 +if $ac_init_version; then
23078 + cat <<\_ACEOF
23080 +Copyright (C) 2003 Free Software Foundation, Inc.
23081 +This configure script is free software; the Free Software Foundation
23082 +gives unlimited permission to copy, distribute and modify it.
23083 +_ACEOF
23084 + exit 0
23086 +exec 5>config.log
23087 +cat >&5 <<_ACEOF
23088 +This file contains any messages produced by compilers while
23089 +running configure, to aid debugging if configure makes a mistake.
23091 +It was created by $as_me, which was
23092 +generated by GNU Autoconf 2.59. Invocation command line was
23094 + $ $0 $@
23096 +_ACEOF
23098 +cat <<_ASUNAME
23099 +## --------- ##
23100 +## Platform. ##
23101 +## --------- ##
23103 +hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
23104 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
23105 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
23106 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
23107 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
23109 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
23110 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
23112 +/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
23113 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
23114 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
23115 +hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
23116 +/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
23117 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
23118 +/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
23120 +_ASUNAME
23122 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23123 +for as_dir in $PATH
23125 + IFS=$as_save_IFS
23126 + test -z "$as_dir" && as_dir=.
23127 + echo "PATH: $as_dir"
23128 +done
23130 +} >&5
23132 +cat >&5 <<_ACEOF
23135 +## ----------- ##
23136 +## Core tests. ##
23137 +## ----------- ##
23139 +_ACEOF
23142 +# Keep a trace of the command line.
23143 +# Strip out --no-create and --no-recursion so they do not pile up.
23144 +# Strip out --silent because we don't want to record it for future runs.
23145 +# Also quote any args containing shell meta-characters.
23146 +# Make two passes to allow for proper duplicate-argument suppression.
23147 +ac_configure_args=
23148 +ac_configure_args0=
23149 +ac_configure_args1=
23150 +ac_sep=
23151 +ac_must_keep_next=false
23152 +for ac_pass in 1 2
23154 + for ac_arg
23155 + do
23156 + case $ac_arg in
23157 + -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
23158 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23159 + | -silent | --silent | --silen | --sile | --sil)
23160 + continue ;;
23161 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
23162 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23163 + esac
23164 + case $ac_pass in
23165 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
23166 + 2)
23167 + ac_configure_args1="$ac_configure_args1 '$ac_arg'"
23168 + if test $ac_must_keep_next = true; then
23169 + ac_must_keep_next=false # Got value, back to normal.
23170 + else
23171 + case $ac_arg in
23172 + *=* | --config-cache | -C | -disable-* | --disable-* \
23173 + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
23174 + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
23175 + | -with-* | --with-* | -without-* | --without-* | --x)
23176 + case "$ac_configure_args0 " in
23177 + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
23178 + esac
23179 + ;;
23180 + -* ) ac_must_keep_next=true ;;
23181 + esac
23182 + fi
23183 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
23184 + # Get rid of the leading space.
23185 + ac_sep=" "
23186 + ;;
23187 + esac
23188 + done
23189 +done
23190 +$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
23191 +$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
23193 +# When interrupted or exit'd, cleanup temporary files, and complete
23194 +# config.log. We remove comments because anyway the quotes in there
23195 +# would cause problems or look ugly.
23196 +# WARNING: Be sure not to use single quotes in there, as some shells,
23197 +# such as our DU 5.0 friend, will then `close' the trap.
23198 +trap 'exit_status=$?
23199 + # Save into config.log some information that might help in debugging.
23201 + echo
23203 + cat <<\_ASBOX
23204 +## ---------------- ##
23205 +## Cache variables. ##
23206 +## ---------------- ##
23207 +_ASBOX
23208 + echo
23209 + # The following way of writing the cache mishandles newlines in values,
23211 + (set) 2>&1 |
23212 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
23213 + *ac_space=\ *)
23214 + sed -n \
23215 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
23216 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
23217 + ;;
23218 + *)
23219 + sed -n \
23220 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23221 + ;;
23222 + esac;
23224 + echo
23226 + cat <<\_ASBOX
23227 +## ----------------- ##
23228 +## Output variables. ##
23229 +## ----------------- ##
23230 +_ASBOX
23231 + echo
23232 + for ac_var in $ac_subst_vars
23233 + do
23234 + eval ac_val=$`echo $ac_var`
23235 + echo "$ac_var='"'"'$ac_val'"'"'"
23236 + done | sort
23237 + echo
23239 + if test -n "$ac_subst_files"; then
23240 + cat <<\_ASBOX
23241 +## ------------- ##
23242 +## Output files. ##
23243 +## ------------- ##
23244 +_ASBOX
23245 + echo
23246 + for ac_var in $ac_subst_files
23247 + do
23248 + eval ac_val=$`echo $ac_var`
23249 + echo "$ac_var='"'"'$ac_val'"'"'"
23250 + done | sort
23251 + echo
23252 + fi
23254 + if test -s confdefs.h; then
23255 + cat <<\_ASBOX
23256 +## ----------- ##
23257 +## confdefs.h. ##
23258 +## ----------- ##
23259 +_ASBOX
23260 + echo
23261 + sed "/^$/d" confdefs.h | sort
23262 + echo
23263 + fi
23264 + test "$ac_signal" != 0 &&
23265 + echo "$as_me: caught signal $ac_signal"
23266 + echo "$as_me: exit $exit_status"
23267 + } >&5
23268 + rm -f core *.core &&
23269 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
23270 + exit $exit_status
23271 + ' 0
23272 +for ac_signal in 1 2 13 15; do
23273 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
23274 +done
23275 +ac_signal=0
23277 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
23278 +rm -rf conftest* confdefs.h
23279 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
23280 +echo >confdefs.h
23282 +# Predefined preprocessor variables.
23284 +cat >>confdefs.h <<_ACEOF
23285 +#define PACKAGE_NAME "$PACKAGE_NAME"
23286 +_ACEOF
23289 +cat >>confdefs.h <<_ACEOF
23290 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
23291 +_ACEOF
23294 +cat >>confdefs.h <<_ACEOF
23295 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
23296 +_ACEOF
23299 +cat >>confdefs.h <<_ACEOF
23300 +#define PACKAGE_STRING "$PACKAGE_STRING"
23301 +_ACEOF
23304 +cat >>confdefs.h <<_ACEOF
23305 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
23306 +_ACEOF
23309 +# Let the site file select an alternate cache file if it wants to.
23310 # Prefer explicitly selected file to automatically selected ones.
23311 if test -z "$CONFIG_SITE"; then
23312 if test "x$prefix" != xNONE; then
23313 @@ -504,247 +1400,2152 @@ if test -z "$CONFIG_SITE"; then
23315 for ac_site_file in $CONFIG_SITE; do
23316 if test -r "$ac_site_file"; then
23317 - echo "loading site script $ac_site_file"
23318 + { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
23319 +echo "$as_me: loading site script $ac_site_file" >&6;}
23320 + sed 's/^/| /' "$ac_site_file" >&5
23321 . "$ac_site_file"
23323 done
23325 +if test -r "$cache_file"; then
23326 + # Some versions of bash will fail to source /dev/null (special
23327 + # files actually), so we avoid doing that.
23328 + if test -f "$cache_file"; then
23329 + { echo "$as_me:$LINENO: loading cache $cache_file" >&5
23330 +echo "$as_me: loading cache $cache_file" >&6;}
23331 + case $cache_file in
23332 + [\\/]* | ?:[\\/]* ) . $cache_file;;
23333 + *) . ./$cache_file;;
23334 + esac
23335 + fi
23336 +else
23337 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
23338 +echo "$as_me: creating cache $cache_file" >&6;}
23339 + >$cache_file
23342 +# Check that the precious variables saved in the cache have kept the same
23343 +# value.
23344 +ac_cache_corrupted=false
23345 +for ac_var in `(set) 2>&1 |
23346 + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
23347 + eval ac_old_set=\$ac_cv_env_${ac_var}_set
23348 + eval ac_new_set=\$ac_env_${ac_var}_set
23349 + eval ac_old_val="\$ac_cv_env_${ac_var}_value"
23350 + eval ac_new_val="\$ac_env_${ac_var}_value"
23351 + case $ac_old_set,$ac_new_set in
23352 + set,)
23353 + { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
23354 +echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
23355 + ac_cache_corrupted=: ;;
23356 + ,set)
23357 + { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
23358 +echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
23359 + ac_cache_corrupted=: ;;
23360 + ,);;
23361 + *)
23362 + if test "x$ac_old_val" != "x$ac_new_val"; then
23363 + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
23364 +echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
23365 + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
23366 +echo "$as_me: former value: $ac_old_val" >&2;}
23367 + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
23368 +echo "$as_me: current value: $ac_new_val" >&2;}
23369 + ac_cache_corrupted=:
23370 + fi;;
23371 + esac
23372 + # Pass precious variables to config.status.
23373 + if test "$ac_new_set" = set; then
23374 + case $ac_new_val in
23375 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
23376 + ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
23377 + *) ac_arg=$ac_var=$ac_new_val ;;
23378 + esac
23379 + case " $ac_configure_args " in
23380 + *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
23381 + *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
23382 + esac
23383 + fi
23384 +done
23385 +if $ac_cache_corrupted; then
23386 + { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
23387 +echo "$as_me: error: changes in the environment can compromise the build" >&2;}
23388 + { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
23389 +echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
23390 + { (exit 1); exit 1; }; }
23393 ac_ext=c
23394 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
23395 ac_cpp='$CPP $CPPFLAGS'
23396 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
23397 -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23398 -cross_compiling=$ac_cv_prog_cc_cross
23399 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23400 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23401 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
23422 +# Specify directory where m4 macros may be found.
23423 +case m4 in
23424 + [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
23425 + *) ac_macro_dir=$srcdir/m4 ;;
23426 +esac
23427 +if test -d "$ac_macro_dir"; then :
23428 +else
23429 + { { echo "$as_me:$LINENO: error: cannot find macro directory \`m4'" >&5
23430 +echo "$as_me: error: cannot find macro directory \`m4'" >&2;}
23431 + { (exit 1); exit 1; }; }
23435 +# Directory where autotools helper scripts lives.
23436 +ac_aux_dir=
23437 +for ac_dir in config $srcdir/config; do
23438 + if test -f $ac_dir/install-sh; then
23439 + ac_aux_dir=$ac_dir
23440 + ac_install_sh="$ac_aux_dir/install-sh -c"
23441 + break
23442 + elif test -f $ac_dir/install.sh; then
23443 + ac_aux_dir=$ac_dir
23444 + ac_install_sh="$ac_aux_dir/install.sh -c"
23445 + break
23446 + elif test -f $ac_dir/shtool; then
23447 + ac_aux_dir=$ac_dir
23448 + ac_install_sh="$ac_aux_dir/shtool install -c"
23449 + break
23450 + fi
23451 +done
23452 +if test -z "$ac_aux_dir"; then
23453 + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
23454 +echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
23455 + { (exit 1); exit 1; }; }
23457 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
23458 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
23459 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
23462 +# Generate configuration headers.
23463 + ac_config_headers="$ac_config_headers jconfig.h jconfig_api.h"
23466 +# Check system type
23467 +# Make sure we can run config.sub.
23468 +$ac_config_sub sun4 >/dev/null 2>&1 ||
23469 + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
23470 +echo "$as_me: error: cannot run $ac_config_sub" >&2;}
23471 + { (exit 1); exit 1; }; }
23473 +echo "$as_me:$LINENO: checking build system type" >&5
23474 +echo $ECHO_N "checking build system type... $ECHO_C" >&6
23475 +if test "${ac_cv_build+set}" = set; then
23476 + echo $ECHO_N "(cached) $ECHO_C" >&6
23477 +else
23478 + ac_cv_build_alias=$build_alias
23479 +test -z "$ac_cv_build_alias" &&
23480 + ac_cv_build_alias=`$ac_config_guess`
23481 +test -z "$ac_cv_build_alias" &&
23482 + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
23483 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
23484 + { (exit 1); exit 1; }; }
23485 +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
23486 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
23487 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
23488 + { (exit 1); exit 1; }; }
23491 +echo "$as_me:$LINENO: result: $ac_cv_build" >&5
23492 +echo "${ECHO_T}$ac_cv_build" >&6
23493 +build=$ac_cv_build
23494 +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
23495 +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
23496 +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
23499 +echo "$as_me:$LINENO: checking host system type" >&5
23500 +echo $ECHO_N "checking host system type... $ECHO_C" >&6
23501 +if test "${ac_cv_host+set}" = set; then
23502 + echo $ECHO_N "(cached) $ECHO_C" >&6
23503 +else
23504 + ac_cv_host_alias=$host_alias
23505 +test -z "$ac_cv_host_alias" &&
23506 + ac_cv_host_alias=$ac_cv_build_alias
23507 +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
23508 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
23509 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
23510 + { (exit 1); exit 1; }; }
23513 +echo "$as_me:$LINENO: result: $ac_cv_host" >&5
23514 +echo "${ECHO_T}$ac_cv_host" >&6
23515 +host=$ac_cv_host
23516 +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
23517 +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
23518 +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
23521 +echo "$as_me:$LINENO: checking target system type" >&5
23522 +echo $ECHO_N "checking target system type... $ECHO_C" >&6
23523 +if test "${ac_cv_target+set}" = set; then
23524 + echo $ECHO_N "(cached) $ECHO_C" >&6
23525 +else
23526 + ac_cv_target_alias=$target_alias
23527 +test "x$ac_cv_target_alias" = "x" &&
23528 + ac_cv_target_alias=$ac_cv_host_alias
23529 +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
23530 + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
23531 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
23532 + { (exit 1); exit 1; }; }
23535 +echo "$as_me:$LINENO: result: $ac_cv_target" >&5
23536 +echo "${ECHO_T}$ac_cv_target" >&6
23537 +target=$ac_cv_target
23538 +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
23539 +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
23540 +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
23543 +# The aliases save the names the user supplied, while $host etc.
23544 +# will get canonicalized.
23545 +test -n "$target_alias" &&
23546 + test "$program_prefix$program_suffix$program_transform_name" = \
23547 + NONENONEs,x,x, &&
23548 + program_prefix=${target_alias}-
23550 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
23551 - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
23552 - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
23553 - ac_n= ac_c='
23554 -' ac_t=' '
23555 +# Initialize Automake
23556 +am__api_version="1.9"
23557 +# Find a good install program. We prefer a C program (faster),
23558 +# so one script is as good as another. But avoid the broken or
23559 +# incompatible versions:
23560 +# SysV /etc/install, /usr/sbin/install
23561 +# SunOS /usr/etc/install
23562 +# IRIX /sbin/install
23563 +# AIX /bin/install
23564 +# AmigaOS /C/install, which installs bootblocks on floppy discs
23565 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
23566 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
23567 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
23568 +# OS/2's system install, which has a completely different semantic
23569 +# ./install, which can be erroneously created by make from ./install.sh.
23570 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
23571 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
23572 +if test -z "$INSTALL"; then
23573 +if test "${ac_cv_path_install+set}" = set; then
23574 + echo $ECHO_N "(cached) $ECHO_C" >&6
23575 +else
23576 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23577 +for as_dir in $PATH
23579 + IFS=$as_save_IFS
23580 + test -z "$as_dir" && as_dir=.
23581 + # Account for people who put trailing slashes in PATH elements.
23582 +case $as_dir/ in
23583 + ./ | .// | /cC/* | \
23584 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
23585 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
23586 + /usr/ucb/* ) ;;
23587 + *)
23588 + # OSF1 and SCO ODT 3.0 have their own names for install.
23589 + # Don't use installbsd from OSF since it installs stuff as root
23590 + # by default.
23591 + for ac_prog in ginstall scoinst install; do
23592 + for ac_exec_ext in '' $ac_executable_extensions; do
23593 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
23594 + if test $ac_prog = install &&
23595 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23596 + # AIX install. It has an incompatible calling convention.
23598 + elif test $ac_prog = install &&
23599 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
23600 + # program-specific install script used by HP pwplus--don't use.
23602 + else
23603 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
23604 + break 3
23605 + fi
23606 + fi
23607 + done
23608 + done
23609 + ;;
23610 +esac
23611 +done
23615 + if test "${ac_cv_path_install+set}" = set; then
23616 + INSTALL=$ac_cv_path_install
23617 else
23618 - ac_n=-n ac_c= ac_t=
23619 + # As a last resort, use the slow shell script. We don't cache a
23620 + # path for INSTALL within a source directory, because that will
23621 + # break other packages using the cache if that directory is
23622 + # removed, or if the path is relative.
23623 + INSTALL=$ac_install_sh
23626 +echo "$as_me:$LINENO: result: $INSTALL" >&5
23627 +echo "${ECHO_T}$INSTALL" >&6
23629 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
23630 +# It thinks the first close brace ends the variable substitution.
23631 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
23633 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
23635 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
23637 +echo "$as_me:$LINENO: checking whether build environment is sane" >&5
23638 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
23639 +# Just in case
23640 +sleep 1
23641 +echo timestamp > conftest.file
23642 +# Do `set' in a subshell so we don't clobber the current shell's
23643 +# arguments. Must try -L first in case configure is actually a
23644 +# symlink; some systems play weird games with the mod time of symlinks
23645 +# (eg FreeBSD returns the mod time of the symlink's containing
23646 +# directory).
23647 +if (
23648 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
23649 + if test "$*" = "X"; then
23650 + # -L didn't work.
23651 + set X `ls -t $srcdir/configure conftest.file`
23652 + fi
23653 + rm -f conftest.file
23654 + if test "$*" != "X $srcdir/configure conftest.file" \
23655 + && test "$*" != "X conftest.file $srcdir/configure"; then
23657 + # If neither matched, then we have a broken ls. This can happen
23658 + # if, for instance, CONFIG_SHELL is bash and it inherits a
23659 + # broken ls alias from the environment. This has actually
23660 + # happened. Such a system could not be considered "sane".
23661 + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
23662 +alias in your environment" >&5
23663 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
23664 +alias in your environment" >&2;}
23665 + { (exit 1); exit 1; }; }
23666 + fi
23668 + test "$2" = conftest.file
23670 +then
23671 + # Ok.
23673 else
23674 - ac_n= ac_c='\c' ac_t=
23675 + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
23676 +Check your system clock" >&5
23677 +echo "$as_me: error: newly created file is older than distributed files!
23678 +Check your system clock" >&2;}
23679 + { (exit 1); exit 1; }; }
23681 +echo "$as_me:$LINENO: result: yes" >&5
23682 +echo "${ECHO_T}yes" >&6
23683 +test "$program_prefix" != NONE &&
23684 + program_transform_name="s,^,$program_prefix,;$program_transform_name"
23685 +# Use a double $ so make ignores it.
23686 +test "$program_suffix" != NONE &&
23687 + program_transform_name="s,\$,$program_suffix,;$program_transform_name"
23688 +# Double any \ or $. echo might interpret backslashes.
23689 +# By default was `s,x,x', remove it if useless.
23690 +cat <<\_ACEOF >conftest.sed
23691 +s/[\\$]/&&/g;s/;s,x,x,$//
23692 +_ACEOF
23693 +program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
23694 +rm conftest.sed
23696 +# expand $ac_aux_dir to an absolute path
23697 +am_aux_dir=`cd $ac_aux_dir && pwd`
23699 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
23700 +# Use eval to expand $SHELL
23701 +if eval "$MISSING --run true"; then
23702 + am_missing_run="$MISSING --run "
23703 +else
23704 + am_missing_run=
23705 + { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
23706 +echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
23709 +if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
23710 + # We used to keeping the `.' as first argument, in order to
23711 + # allow $(mkdir_p) to be used without argument. As in
23712 + # $(mkdir_p) $(somedir)
23713 + # where $(somedir) is conditionally defined. However this is wrong
23714 + # for two reasons:
23715 + # 1. if the package is installed by a user who cannot write `.'
23716 + # make install will fail,
23717 + # 2. the above comment should most certainly read
23718 + # $(mkdir_p) $(DESTDIR)$(somedir)
23719 + # so it does not work when $(somedir) is undefined and
23720 + # $(DESTDIR) is not.
23721 + # To support the latter case, we have to write
23722 + # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
23723 + # so the `.' trick is pointless.
23724 + mkdir_p='mkdir -p --'
23725 +else
23726 + # On NextStep and OpenStep, the `mkdir' command does not
23727 + # recognize any option. It will interpret all options as
23728 + # directories to create, and then abort because `.' already
23729 + # exists.
23730 + for d in ./-p ./--version;
23731 + do
23732 + test -d $d && rmdir $d
23733 + done
23734 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
23735 + if test -f "$ac_aux_dir/mkinstalldirs"; then
23736 + mkdir_p='$(mkinstalldirs)'
23737 + else
23738 + mkdir_p='$(install_sh) -d'
23739 + fi
23742 -# Extract the first word of "gcc", so it can be a program name with args.
23743 +for ac_prog in gawk mawk nawk awk
23745 + # Extract the first word of "$ac_prog", so it can be a program name with args.
23746 +set dummy $ac_prog; ac_word=$2
23747 +echo "$as_me:$LINENO: checking for $ac_word" >&5
23748 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23749 +if test "${ac_cv_prog_AWK+set}" = set; then
23750 + echo $ECHO_N "(cached) $ECHO_C" >&6
23751 +else
23752 + if test -n "$AWK"; then
23753 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
23754 +else
23755 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23756 +for as_dir in $PATH
23758 + IFS=$as_save_IFS
23759 + test -z "$as_dir" && as_dir=.
23760 + for ac_exec_ext in '' $ac_executable_extensions; do
23761 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23762 + ac_cv_prog_AWK="$ac_prog"
23763 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23764 + break 2
23765 + fi
23766 +done
23767 +done
23771 +AWK=$ac_cv_prog_AWK
23772 +if test -n "$AWK"; then
23773 + echo "$as_me:$LINENO: result: $AWK" >&5
23774 +echo "${ECHO_T}$AWK" >&6
23775 +else
23776 + echo "$as_me:$LINENO: result: no" >&5
23777 +echo "${ECHO_T}no" >&6
23780 + test -n "$AWK" && break
23781 +done
23783 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
23784 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
23785 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
23786 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
23787 + echo $ECHO_N "(cached) $ECHO_C" >&6
23788 +else
23789 + cat >conftest.make <<\_ACEOF
23790 +all:
23791 + @echo 'ac_maketemp="$(MAKE)"'
23792 +_ACEOF
23793 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23794 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
23795 +if test -n "$ac_maketemp"; then
23796 + eval ac_cv_prog_make_${ac_make}_set=yes
23797 +else
23798 + eval ac_cv_prog_make_${ac_make}_set=no
23800 +rm -f conftest.make
23802 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
23803 + echo "$as_me:$LINENO: result: yes" >&5
23804 +echo "${ECHO_T}yes" >&6
23805 + SET_MAKE=
23806 +else
23807 + echo "$as_me:$LINENO: result: no" >&5
23808 +echo "${ECHO_T}no" >&6
23809 + SET_MAKE="MAKE=${MAKE-make}"
23812 +rm -rf .tst 2>/dev/null
23813 +mkdir .tst 2>/dev/null
23814 +if test -d .tst; then
23815 + am__leading_dot=.
23816 +else
23817 + am__leading_dot=_
23819 +rmdir .tst 2>/dev/null
23821 +# test to see if srcdir already configured
23822 +if test "`cd $srcdir && pwd`" != "`pwd`" &&
23823 + test -f $srcdir/config.status; then
23824 + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
23825 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
23826 + { (exit 1); exit 1; }; }
23829 +# test whether we have cygpath
23830 +if test -z "$CYGPATH_W"; then
23831 + if (cygpath --version) >/dev/null 2>/dev/null; then
23832 + CYGPATH_W='cygpath -w'
23833 + else
23834 + CYGPATH_W=echo
23835 + fi
23839 +# Define the identity of the package.
23840 + PACKAGE=libjpeg
23841 + VERSION=6.1.0
23844 +cat >>confdefs.h <<_ACEOF
23845 +#define PACKAGE "$PACKAGE"
23846 +_ACEOF
23849 +cat >>confdefs.h <<_ACEOF
23850 +#define VERSION "$VERSION"
23851 +_ACEOF
23853 +# Some tools Automake needs.
23855 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
23858 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
23861 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
23864 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
23867 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
23869 +install_sh=${install_sh-"$am_aux_dir/install-sh"}
23871 +# Installed binaries are usually stripped using `strip' when the user
23872 +# run `make install-strip'. However `strip' might not be the right
23873 +# tool to use in cross-compilation environments, therefore Automake
23874 +# will honor the `STRIP' environment variable to overrule this program.
23875 +if test "$cross_compiling" != no; then
23876 + if test -n "$ac_tool_prefix"; then
23877 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
23878 +set dummy ${ac_tool_prefix}strip; ac_word=$2
23879 +echo "$as_me:$LINENO: checking for $ac_word" >&5
23880 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23881 +if test "${ac_cv_prog_STRIP+set}" = set; then
23882 + echo $ECHO_N "(cached) $ECHO_C" >&6
23883 +else
23884 + if test -n "$STRIP"; then
23885 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
23886 +else
23887 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23888 +for as_dir in $PATH
23890 + IFS=$as_save_IFS
23891 + test -z "$as_dir" && as_dir=.
23892 + for ac_exec_ext in '' $ac_executable_extensions; do
23893 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23894 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
23895 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23896 + break 2
23897 + fi
23898 +done
23899 +done
23903 +STRIP=$ac_cv_prog_STRIP
23904 +if test -n "$STRIP"; then
23905 + echo "$as_me:$LINENO: result: $STRIP" >&5
23906 +echo "${ECHO_T}$STRIP" >&6
23907 +else
23908 + echo "$as_me:$LINENO: result: no" >&5
23909 +echo "${ECHO_T}no" >&6
23913 +if test -z "$ac_cv_prog_STRIP"; then
23914 + ac_ct_STRIP=$STRIP
23915 + # Extract the first word of "strip", so it can be a program name with args.
23916 +set dummy strip; ac_word=$2
23917 +echo "$as_me:$LINENO: checking for $ac_word" >&5
23918 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23919 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
23920 + echo $ECHO_N "(cached) $ECHO_C" >&6
23921 +else
23922 + if test -n "$ac_ct_STRIP"; then
23923 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
23924 +else
23925 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23926 +for as_dir in $PATH
23928 + IFS=$as_save_IFS
23929 + test -z "$as_dir" && as_dir=.
23930 + for ac_exec_ext in '' $ac_executable_extensions; do
23931 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23932 + ac_cv_prog_ac_ct_STRIP="strip"
23933 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23934 + break 2
23935 + fi
23936 +done
23937 +done
23939 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
23942 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
23943 +if test -n "$ac_ct_STRIP"; then
23944 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
23945 +echo "${ECHO_T}$ac_ct_STRIP" >&6
23946 +else
23947 + echo "$as_me:$LINENO: result: no" >&5
23948 +echo "${ECHO_T}no" >&6
23951 + STRIP=$ac_ct_STRIP
23952 +else
23953 + STRIP="$ac_cv_prog_STRIP"
23957 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
23959 +# We need awk for the "check" target. The system "awk" is bad on
23960 +# some platforms.
23961 +# Always define AMTAR for backward compatibility.
23963 +AMTAR=${AMTAR-"${am_missing_run}tar"}
23965 +am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
23972 +# Add configure option --enable-maintainer-mode which enables dependency
23973 +# checking and generation useful to package maintainers. This is made an
23974 +# option to avoid confusing end users.
23975 +echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23976 +echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23977 + # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23978 +if test "${enable_maintainer_mode+set}" = set; then
23979 + enableval="$enable_maintainer_mode"
23980 + USE_MAINTAINER_MODE=$enableval
23981 +else
23982 + USE_MAINTAINER_MODE=no
23983 +fi;
23984 + echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23985 +echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23988 +if test $USE_MAINTAINER_MODE = yes; then
23989 + MAINTAINER_MODE_TRUE=
23990 + MAINTAINER_MODE_FALSE='#'
23991 +else
23992 + MAINTAINER_MODE_TRUE='#'
23993 + MAINTAINER_MODE_FALSE=
23996 + MAINT=$MAINTAINER_MODE_TRUE
24000 +# Check for programs
24001 +ac_ext=c
24002 +ac_cpp='$CPP $CPPFLAGS'
24003 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24004 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24005 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
24006 +if test -n "$ac_tool_prefix"; then
24007 + # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
24008 +set dummy ${ac_tool_prefix}gcc; ac_word=$2
24009 +echo "$as_me:$LINENO: checking for $ac_word" >&5
24010 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24011 +if test "${ac_cv_prog_CC+set}" = set; then
24012 + echo $ECHO_N "(cached) $ECHO_C" >&6
24013 +else
24014 + if test -n "$CC"; then
24015 + ac_cv_prog_CC="$CC" # Let the user override the test.
24016 +else
24017 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24018 +for as_dir in $PATH
24020 + IFS=$as_save_IFS
24021 + test -z "$as_dir" && as_dir=.
24022 + for ac_exec_ext in '' $ac_executable_extensions; do
24023 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24024 + ac_cv_prog_CC="${ac_tool_prefix}gcc"
24025 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24026 + break 2
24027 + fi
24028 +done
24029 +done
24033 +CC=$ac_cv_prog_CC
24034 +if test -n "$CC"; then
24035 + echo "$as_me:$LINENO: result: $CC" >&5
24036 +echo "${ECHO_T}$CC" >&6
24037 +else
24038 + echo "$as_me:$LINENO: result: no" >&5
24039 +echo "${ECHO_T}no" >&6
24043 +if test -z "$ac_cv_prog_CC"; then
24044 + ac_ct_CC=$CC
24045 + # Extract the first word of "gcc", so it can be a program name with args.
24046 set dummy gcc; ac_word=$2
24047 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24048 -echo "configure:538: checking for $ac_word" >&5
24049 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
24050 - echo $ac_n "(cached) $ac_c" 1>&6
24051 +echo "$as_me:$LINENO: checking for $ac_word" >&5
24052 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24053 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
24054 + echo $ECHO_N "(cached) $ECHO_C" >&6
24055 +else
24056 + if test -n "$ac_ct_CC"; then
24057 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24058 +else
24059 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24060 +for as_dir in $PATH
24062 + IFS=$as_save_IFS
24063 + test -z "$as_dir" && as_dir=.
24064 + for ac_exec_ext in '' $ac_executable_extensions; do
24065 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24066 + ac_cv_prog_ac_ct_CC="gcc"
24067 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24068 + break 2
24069 + fi
24070 +done
24071 +done
24075 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
24076 +if test -n "$ac_ct_CC"; then
24077 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
24078 +echo "${ECHO_T}$ac_ct_CC" >&6
24079 +else
24080 + echo "$as_me:$LINENO: result: no" >&5
24081 +echo "${ECHO_T}no" >&6
24084 + CC=$ac_ct_CC
24085 +else
24086 + CC="$ac_cv_prog_CC"
24089 +if test -z "$CC"; then
24090 + if test -n "$ac_tool_prefix"; then
24091 + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
24092 +set dummy ${ac_tool_prefix}cc; ac_word=$2
24093 +echo "$as_me:$LINENO: checking for $ac_word" >&5
24094 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24095 +if test "${ac_cv_prog_CC+set}" = set; then
24096 + echo $ECHO_N "(cached) $ECHO_C" >&6
24097 else
24098 if test -n "$CC"; then
24099 ac_cv_prog_CC="$CC" # Let the user override the test.
24100 else
24101 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24102 - for ac_dir in $PATH; do
24103 - test -z "$ac_dir" && ac_dir=.
24104 - if test -f $ac_dir/$ac_word; then
24105 - ac_cv_prog_CC="gcc"
24106 - break
24107 - fi
24108 - done
24109 - IFS="$ac_save_ifs"
24110 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24111 +for as_dir in $PATH
24113 + IFS=$as_save_IFS
24114 + test -z "$as_dir" && as_dir=.
24115 + for ac_exec_ext in '' $ac_executable_extensions; do
24116 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24117 + ac_cv_prog_CC="${ac_tool_prefix}cc"
24118 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24119 + break 2
24120 + fi
24121 +done
24122 +done
24126 -CC="$ac_cv_prog_CC"
24127 +CC=$ac_cv_prog_CC
24128 if test -n "$CC"; then
24129 - echo "$ac_t""$CC" 1>&6
24130 + echo "$as_me:$LINENO: result: $CC" >&5
24131 +echo "${ECHO_T}$CC" >&6
24132 +else
24133 + echo "$as_me:$LINENO: result: no" >&5
24134 +echo "${ECHO_T}no" >&6
24138 +if test -z "$ac_cv_prog_CC"; then
24139 + ac_ct_CC=$CC
24140 + # Extract the first word of "cc", so it can be a program name with args.
24141 +set dummy cc; ac_word=$2
24142 +echo "$as_me:$LINENO: checking for $ac_word" >&5
24143 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24144 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
24145 + echo $ECHO_N "(cached) $ECHO_C" >&6
24146 +else
24147 + if test -n "$ac_ct_CC"; then
24148 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24149 +else
24150 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24151 +for as_dir in $PATH
24153 + IFS=$as_save_IFS
24154 + test -z "$as_dir" && as_dir=.
24155 + for ac_exec_ext in '' $ac_executable_extensions; do
24156 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24157 + ac_cv_prog_ac_ct_CC="cc"
24158 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24159 + break 2
24160 + fi
24161 +done
24162 +done
24166 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
24167 +if test -n "$ac_ct_CC"; then
24168 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
24169 +echo "${ECHO_T}$ac_ct_CC" >&6
24170 +else
24171 + echo "$as_me:$LINENO: result: no" >&5
24172 +echo "${ECHO_T}no" >&6
24175 + CC=$ac_ct_CC
24176 else
24177 - echo "$ac_t""no" 1>&6
24178 + CC="$ac_cv_prog_CC"
24182 if test -z "$CC"; then
24183 # Extract the first word of "cc", so it can be a program name with args.
24184 set dummy cc; ac_word=$2
24185 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
24186 -echo "configure:567: checking for $ac_word" >&5
24187 -if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
24188 - echo $ac_n "(cached) $ac_c" 1>&6
24189 +echo "$as_me:$LINENO: checking for $ac_word" >&5
24190 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24191 +if test "${ac_cv_prog_CC+set}" = set; then
24192 + echo $ECHO_N "(cached) $ECHO_C" >&6
24193 else
24194 if test -n "$CC"; then
24195 ac_cv_prog_CC="$CC" # Let the user override the test.
24196 else
24197 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
24198 ac_prog_rejected=no
24199 - for ac_dir in $PATH; do
24200 - test -z "$ac_dir" && ac_dir=.
24201 - if test -f $ac_dir/$ac_word; then
24202 - if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
24203 - ac_prog_rejected=yes
24204 - continue
24205 - fi
24206 - ac_cv_prog_CC="cc"
24207 - break
24208 - fi
24209 - done
24210 - IFS="$ac_save_ifs"
24211 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24212 +for as_dir in $PATH
24214 + IFS=$as_save_IFS
24215 + test -z "$as_dir" && as_dir=.
24216 + for ac_exec_ext in '' $ac_executable_extensions; do
24217 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24218 + if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
24219 + ac_prog_rejected=yes
24220 + continue
24221 + fi
24222 + ac_cv_prog_CC="cc"
24223 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24224 + break 2
24225 + fi
24226 +done
24227 +done
24229 if test $ac_prog_rejected = yes; then
24230 # We found a bogon in the path, so make sure we never use it.
24231 set dummy $ac_cv_prog_CC
24232 shift
24233 - if test $# -gt 0; then
24234 + if test $# != 0; then
24235 # We chose a different compiler from the bogus one.
24236 # However, it has the same basename, so the bogon will be chosen
24237 # first if we set CC to just the basename; use the full file name.
24238 shift
24239 - set dummy "$ac_dir/$ac_word" "$@"
24240 - shift
24241 - ac_cv_prog_CC="$@"
24242 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
24247 -CC="$ac_cv_prog_CC"
24248 +CC=$ac_cv_prog_CC
24249 if test -n "$CC"; then
24250 - echo "$ac_t""$CC" 1>&6
24251 + echo "$as_me:$LINENO: result: $CC" >&5
24252 +echo "${ECHO_T}$CC" >&6
24253 else
24254 - echo "$ac_t""no" 1>&6
24255 + echo "$as_me:$LINENO: result: no" >&5
24256 +echo "${ECHO_T}no" >&6
24259 - test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
24261 +if test -z "$CC"; then
24262 + if test -n "$ac_tool_prefix"; then
24263 + for ac_prog in cl
24264 + do
24265 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24266 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24267 +echo "$as_me:$LINENO: checking for $ac_word" >&5
24268 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24269 +if test "${ac_cv_prog_CC+set}" = set; then
24270 + echo $ECHO_N "(cached) $ECHO_C" >&6
24271 +else
24272 + if test -n "$CC"; then
24273 + ac_cv_prog_CC="$CC" # Let the user override the test.
24274 +else
24275 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24276 +for as_dir in $PATH
24278 + IFS=$as_save_IFS
24279 + test -z "$as_dir" && as_dir=.
24280 + for ac_exec_ext in '' $ac_executable_extensions; do
24281 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24282 + ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
24283 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24284 + break 2
24285 + fi
24286 +done
24287 +done
24289 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
24290 -echo "configure:615: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
24293 +CC=$ac_cv_prog_CC
24294 +if test -n "$CC"; then
24295 + echo "$as_me:$LINENO: result: $CC" >&5
24296 +echo "${ECHO_T}$CC" >&6
24297 +else
24298 + echo "$as_me:$LINENO: result: no" >&5
24299 +echo "${ECHO_T}no" >&6
24302 -ac_ext=c
24303 -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
24304 -ac_cpp='$CPP $CPPFLAGS'
24305 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
24306 -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
24307 -cross_compiling=$ac_cv_prog_cc_cross
24308 + test -n "$CC" && break
24309 + done
24311 +if test -z "$CC"; then
24312 + ac_ct_CC=$CC
24313 + for ac_prog in cl
24315 + # Extract the first word of "$ac_prog", so it can be a program name with args.
24316 +set dummy $ac_prog; ac_word=$2
24317 +echo "$as_me:$LINENO: checking for $ac_word" >&5
24318 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24319 +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
24320 + echo $ECHO_N "(cached) $ECHO_C" >&6
24321 +else
24322 + if test -n "$ac_ct_CC"; then
24323 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24324 +else
24325 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24326 +for as_dir in $PATH
24328 + IFS=$as_save_IFS
24329 + test -z "$as_dir" && as_dir=.
24330 + for ac_exec_ext in '' $ac_executable_extensions; do
24331 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24332 + ac_cv_prog_ac_ct_CC="$ac_prog"
24333 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24334 + break 2
24335 + fi
24336 +done
24337 +done
24339 -cat > conftest.$ac_ext <<EOF
24340 -#line 625 "configure"
24341 -#include "confdefs.h"
24342 -main(){return(0);}
24343 -EOF
24344 -if { (eval echo configure:629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
24345 - ac_cv_prog_cc_works=yes
24346 - # If we can't run a trivial program, we are probably using a cross compiler.
24347 - if (./conftest; exit) 2>/dev/null; then
24348 - ac_cv_prog_cc_cross=no
24351 +ac_ct_CC=$ac_cv_prog_ac_ct_CC
24352 +if test -n "$ac_ct_CC"; then
24353 + echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
24354 +echo "${ECHO_T}$ac_ct_CC" >&6
24355 +else
24356 + echo "$as_me:$LINENO: result: no" >&5
24357 +echo "${ECHO_T}no" >&6
24360 + test -n "$ac_ct_CC" && break
24361 +done
24363 + CC=$ac_ct_CC
24369 +test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
24370 +See \`config.log' for more details." >&5
24371 +echo "$as_me: error: no acceptable C compiler found in \$PATH
24372 +See \`config.log' for more details." >&2;}
24373 + { (exit 1); exit 1; }; }
24375 +# Provide some information about the compiler.
24376 +echo "$as_me:$LINENO:" \
24377 + "checking for C compiler version" >&5
24378 +ac_compiler=`set X $ac_compile; echo $2`
24379 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
24380 + (eval $ac_compiler --version </dev/null >&5) 2>&5
24381 + ac_status=$?
24382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24383 + (exit $ac_status); }
24384 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
24385 + (eval $ac_compiler -v </dev/null >&5) 2>&5
24386 + ac_status=$?
24387 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24388 + (exit $ac_status); }
24389 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
24390 + (eval $ac_compiler -V </dev/null >&5) 2>&5
24391 + ac_status=$?
24392 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 + (exit $ac_status); }
24395 +cat >conftest.$ac_ext <<_ACEOF
24396 +/* confdefs.h. */
24397 +_ACEOF
24398 +cat confdefs.h >>conftest.$ac_ext
24399 +cat >>conftest.$ac_ext <<_ACEOF
24400 +/* end confdefs.h. */
24402 +int
24403 +main ()
24407 + return 0;
24409 +_ACEOF
24410 +ac_clean_files_save=$ac_clean_files
24411 +ac_clean_files="$ac_clean_files a.out a.exe b.out"
24412 +# Try to create an executable without -o first, disregard a.out.
24413 +# It will help us diagnose broken compilers, and finding out an intuition
24414 +# of exeext.
24415 +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
24416 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
24417 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
24418 +if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
24419 + (eval $ac_link_default) 2>&5
24420 + ac_status=$?
24421 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24422 + (exit $ac_status); }; then
24423 + # Find the output, starting from the most likely. This scheme is
24424 +# not robust to junk in `.', hence go to wildcards (a.*) only as a last
24425 +# resort.
24427 +# Be careful to initialize this variable, since it used to be cached.
24428 +# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
24429 +ac_cv_exeext=
24430 +# b.out is created by i960 compilers.
24431 +for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
24433 + test -f "$ac_file" || continue
24434 + case $ac_file in
24435 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
24436 + ;;
24437 + conftest.$ac_ext )
24438 + # This is the source file.
24439 + ;;
24440 + [ab].out )
24441 + # We found the default executable, but exeext='' is most
24442 + # certainly right.
24443 + break;;
24444 + *.* )
24445 + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
24446 + # FIXME: I believe we export ac_cv_exeext for Libtool,
24447 + # but it would be cool to find out if it's true. Does anybody
24448 + # maintain Libtool? --akim.
24449 + export ac_cv_exeext
24450 + break;;
24451 + * )
24452 + break;;
24453 + esac
24454 +done
24455 +else
24456 + echo "$as_me: failed program was:" >&5
24457 +sed 's/^/| /' conftest.$ac_ext >&5
24459 +{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
24460 +See \`config.log' for more details." >&5
24461 +echo "$as_me: error: C compiler cannot create executables
24462 +See \`config.log' for more details." >&2;}
24463 + { (exit 77); exit 77; }; }
24466 +ac_exeext=$ac_cv_exeext
24467 +echo "$as_me:$LINENO: result: $ac_file" >&5
24468 +echo "${ECHO_T}$ac_file" >&6
24470 +# Check the compiler produces executables we can run. If not, either
24471 +# the compiler is broken, or we cross compile.
24472 +echo "$as_me:$LINENO: checking whether the C compiler works" >&5
24473 +echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
24474 +# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
24475 +# If not cross compiling, check that we can run a simple program.
24476 +if test "$cross_compiling" != yes; then
24477 + if { ac_try='./$ac_file'
24478 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 + (eval $ac_try) 2>&5
24480 + ac_status=$?
24481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 + (exit $ac_status); }; }; then
24483 + cross_compiling=no
24484 else
24485 - ac_cv_prog_cc_cross=yes
24486 + if test "$cross_compiling" = maybe; then
24487 + cross_compiling=yes
24488 + else
24489 + { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
24490 +If you meant to cross compile, use \`--host'.
24491 +See \`config.log' for more details." >&5
24492 +echo "$as_me: error: cannot run C compiled programs.
24493 +If you meant to cross compile, use \`--host'.
24494 +See \`config.log' for more details." >&2;}
24495 + { (exit 1); exit 1; }; }
24496 + fi
24499 +echo "$as_me:$LINENO: result: yes" >&5
24500 +echo "${ECHO_T}yes" >&6
24502 +rm -f a.out a.exe conftest$ac_cv_exeext b.out
24503 +ac_clean_files=$ac_clean_files_save
24504 +# Check the compiler produces executables we can run. If not, either
24505 +# the compiler is broken, or we cross compile.
24506 +echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
24507 +echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
24508 +echo "$as_me:$LINENO: result: $cross_compiling" >&5
24509 +echo "${ECHO_T}$cross_compiling" >&6
24511 +echo "$as_me:$LINENO: checking for suffix of executables" >&5
24512 +echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
24513 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24514 + (eval $ac_link) 2>&5
24515 + ac_status=$?
24516 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 + (exit $ac_status); }; then
24518 + # If both `conftest.exe' and `conftest' are `present' (well, observable)
24519 +# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
24520 +# work properly (i.e., refer to `conftest.exe'), while it won't with
24521 +# `rm'.
24522 +for ac_file in conftest.exe conftest conftest.*; do
24523 + test -f "$ac_file" || continue
24524 + case $ac_file in
24525 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
24526 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
24527 + export ac_cv_exeext
24528 + break;;
24529 + * ) break;;
24530 + esac
24531 +done
24532 else
24533 - echo "configure: failed program was:" >&5
24534 - cat conftest.$ac_ext >&5
24535 - ac_cv_prog_cc_works=no
24536 + { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
24537 +See \`config.log' for more details." >&5
24538 +echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
24539 +See \`config.log' for more details." >&2;}
24540 + { (exit 1); exit 1; }; }
24542 -rm -fr conftest*
24544 -echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
24545 -if test $ac_cv_prog_cc_works = no; then
24546 - { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
24547 +rm -f conftest$ac_cv_exeext
24548 +echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
24549 +echo "${ECHO_T}$ac_cv_exeext" >&6
24551 +rm -f conftest.$ac_ext
24552 +EXEEXT=$ac_cv_exeext
24553 +ac_exeext=$EXEEXT
24554 +echo "$as_me:$LINENO: checking for suffix of object files" >&5
24555 +echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
24556 +if test "${ac_cv_objext+set}" = set; then
24557 + echo $ECHO_N "(cached) $ECHO_C" >&6
24558 +else
24559 + cat >conftest.$ac_ext <<_ACEOF
24560 +/* confdefs.h. */
24561 +_ACEOF
24562 +cat confdefs.h >>conftest.$ac_ext
24563 +cat >>conftest.$ac_ext <<_ACEOF
24564 +/* end confdefs.h. */
24566 +int
24567 +main ()
24571 + return 0;
24573 +_ACEOF
24574 +rm -f conftest.o conftest.obj
24575 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24576 + (eval $ac_compile) 2>&5
24577 + ac_status=$?
24578 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 + (exit $ac_status); }; then
24580 + for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
24581 + case $ac_file in
24582 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
24583 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
24584 + break;;
24585 + esac
24586 +done
24587 +else
24588 + echo "$as_me: failed program was:" >&5
24589 +sed 's/^/| /' conftest.$ac_ext >&5
24591 +{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
24592 +See \`config.log' for more details." >&5
24593 +echo "$as_me: error: cannot compute suffix of object files: cannot compile
24594 +See \`config.log' for more details." >&2;}
24595 + { (exit 1); exit 1; }; }
24597 -echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
24598 -echo "configure:649: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
24599 -echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
24600 -cross_compiling=$ac_cv_prog_cc_cross
24602 -echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
24603 -echo "configure:654: checking whether we are using GNU C" >&5
24604 -if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
24605 - echo $ac_n "(cached) $ac_c" 1>&6
24606 +rm -f conftest.$ac_cv_objext conftest.$ac_ext
24608 +echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
24609 +echo "${ECHO_T}$ac_cv_objext" >&6
24610 +OBJEXT=$ac_cv_objext
24611 +ac_objext=$OBJEXT
24612 +echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
24613 +echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
24614 +if test "${ac_cv_c_compiler_gnu+set}" = set; then
24615 + echo $ECHO_N "(cached) $ECHO_C" >&6
24616 else
24617 - cat > conftest.c <<EOF
24618 -#ifdef __GNUC__
24619 - yes;
24620 + cat >conftest.$ac_ext <<_ACEOF
24621 +/* confdefs.h. */
24622 +_ACEOF
24623 +cat confdefs.h >>conftest.$ac_ext
24624 +cat >>conftest.$ac_ext <<_ACEOF
24625 +/* end confdefs.h. */
24627 +int
24628 +main ()
24630 +#ifndef __GNUC__
24631 + choke me
24632 #endif
24633 -EOF
24634 -if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
24635 - ac_cv_prog_gcc=yes
24638 + return 0;
24640 +_ACEOF
24641 +rm -f conftest.$ac_objext
24642 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24643 + (eval $ac_compile) 2>conftest.er1
24644 + ac_status=$?
24645 + grep -v '^ *+' conftest.er1 >conftest.err
24646 + rm -f conftest.er1
24647 + cat conftest.err >&5
24648 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 + (exit $ac_status); } &&
24650 + { ac_try='test -z "$ac_c_werror_flag"
24651 + || test ! -s conftest.err'
24652 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24653 + (eval $ac_try) 2>&5
24654 + ac_status=$?
24655 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24656 + (exit $ac_status); }; } &&
24657 + { ac_try='test -s conftest.$ac_objext'
24658 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24659 + (eval $ac_try) 2>&5
24660 + ac_status=$?
24661 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 + (exit $ac_status); }; }; then
24663 + ac_compiler_gnu=yes
24664 +else
24665 + echo "$as_me: failed program was:" >&5
24666 +sed 's/^/| /' conftest.$ac_ext >&5
24668 +ac_compiler_gnu=no
24670 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24671 +ac_cv_c_compiler_gnu=$ac_compiler_gnu
24674 +echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
24675 +echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
24676 +GCC=`test $ac_compiler_gnu = yes && echo yes`
24677 +ac_test_CFLAGS=${CFLAGS+set}
24678 +ac_save_CFLAGS=$CFLAGS
24679 +CFLAGS="-g"
24680 +echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
24681 +echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
24682 +if test "${ac_cv_prog_cc_g+set}" = set; then
24683 + echo $ECHO_N "(cached) $ECHO_C" >&6
24684 +else
24685 + cat >conftest.$ac_ext <<_ACEOF
24686 +/* confdefs.h. */
24687 +_ACEOF
24688 +cat confdefs.h >>conftest.$ac_ext
24689 +cat >>conftest.$ac_ext <<_ACEOF
24690 +/* end confdefs.h. */
24692 +int
24693 +main ()
24697 + return 0;
24699 +_ACEOF
24700 +rm -f conftest.$ac_objext
24701 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24702 + (eval $ac_compile) 2>conftest.er1
24703 + ac_status=$?
24704 + grep -v '^ *+' conftest.er1 >conftest.err
24705 + rm -f conftest.er1
24706 + cat conftest.err >&5
24707 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24708 + (exit $ac_status); } &&
24709 + { ac_try='test -z "$ac_c_werror_flag"
24710 + || test ! -s conftest.err'
24711 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24712 + (eval $ac_try) 2>&5
24713 + ac_status=$?
24714 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24715 + (exit $ac_status); }; } &&
24716 + { ac_try='test -s conftest.$ac_objext'
24717 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24718 + (eval $ac_try) 2>&5
24719 + ac_status=$?
24720 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 + (exit $ac_status); }; }; then
24722 + ac_cv_prog_cc_g=yes
24723 else
24724 - ac_cv_prog_gcc=no
24725 + echo "$as_me: failed program was:" >&5
24726 +sed 's/^/| /' conftest.$ac_ext >&5
24728 +ac_cv_prog_cc_g=no
24730 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24732 +echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
24733 +echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
24734 +if test "$ac_test_CFLAGS" = set; then
24735 + CFLAGS=$ac_save_CFLAGS
24736 +elif test $ac_cv_prog_cc_g = yes; then
24737 + if test "$GCC" = yes; then
24738 + CFLAGS="-g -O2"
24739 + else
24740 + CFLAGS="-g"
24741 + fi
24742 +else
24743 + if test "$GCC" = yes; then
24744 + CFLAGS="-O2"
24745 + else
24746 + CFLAGS=
24747 + fi
24749 +echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
24750 +echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
24751 +if test "${ac_cv_prog_cc_stdc+set}" = set; then
24752 + echo $ECHO_N "(cached) $ECHO_C" >&6
24753 +else
24754 + ac_cv_prog_cc_stdc=no
24755 +ac_save_CC=$CC
24756 +cat >conftest.$ac_ext <<_ACEOF
24757 +/* confdefs.h. */
24758 +_ACEOF
24759 +cat confdefs.h >>conftest.$ac_ext
24760 +cat >>conftest.$ac_ext <<_ACEOF
24761 +/* end confdefs.h. */
24762 +#include <stdarg.h>
24763 +#include <stdio.h>
24764 +#include <sys/types.h>
24765 +#include <sys/stat.h>
24766 +/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
24767 +struct buf { int x; };
24768 +FILE * (*rcsopen) (struct buf *, struct stat *, int);
24769 +static char *e (p, i)
24770 + char **p;
24771 + int i;
24773 + return p[i];
24775 +static char *f (char * (*g) (char **, int), char **p, ...)
24777 + char *s;
24778 + va_list v;
24779 + va_start (v,p);
24780 + s = g (p, va_arg (v,int));
24781 + va_end (v);
24782 + return s;
24785 -echo "$ac_t""$ac_cv_prog_gcc" 1>&6
24786 +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
24787 + function prototypes and stuff, but not '\xHH' hex character constants.
24788 + These don't provoke an error unfortunately, instead are silently treated
24789 + as 'x'. The following induces an error, until -std1 is added to get
24790 + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
24791 + array size at least. It's necessary to write '\x00'==0 to get something
24792 + that's true only with -std1. */
24793 +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
24795 -if test $ac_cv_prog_gcc = yes; then
24796 - GCC=yes
24797 - test "${CFLAGS+set}" = set || CFLAGS="-O2"
24798 +int test (int i, double x);
24799 +struct s1 {int (*f) (int a);};
24800 +struct s2 {int (*f) (double a);};
24801 +int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
24802 +int argc;
24803 +char **argv;
24804 +int
24805 +main ()
24807 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
24809 + return 0;
24811 +_ACEOF
24812 +# Don't try gcc -ansi; that turns off useful extensions and
24813 +# breaks some systems' header files.
24814 +# AIX -qlanglvl=ansi
24815 +# Ultrix and OSF/1 -std1
24816 +# HP-UX 10.20 and later -Ae
24817 +# HP-UX older versions -Aa -D_HPUX_SOURCE
24818 +# SVR4 -Xc -D__EXTENSIONS__
24819 +for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
24821 + CC="$ac_save_CC $ac_arg"
24822 + rm -f conftest.$ac_objext
24823 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24824 + (eval $ac_compile) 2>conftest.er1
24825 + ac_status=$?
24826 + grep -v '^ *+' conftest.er1 >conftest.err
24827 + rm -f conftest.er1
24828 + cat conftest.err >&5
24829 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 + (exit $ac_status); } &&
24831 + { ac_try='test -z "$ac_c_werror_flag"
24832 + || test ! -s conftest.err'
24833 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24834 + (eval $ac_try) 2>&5
24835 + ac_status=$?
24836 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24837 + (exit $ac_status); }; } &&
24838 + { ac_try='test -s conftest.$ac_objext'
24839 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24840 + (eval $ac_try) 2>&5
24841 + ac_status=$?
24842 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 + (exit $ac_status); }; }; then
24844 + ac_cv_prog_cc_stdc=$ac_arg
24845 +break
24846 else
24847 - GCC=
24848 - test "${CFLAGS+set}" = set || CFLAGS="-O"
24849 + echo "$as_me: failed program was:" >&5
24850 +sed 's/^/| /' conftest.$ac_ext >&5
24853 +rm -f conftest.err conftest.$ac_objext
24854 +done
24855 +rm -f conftest.$ac_ext conftest.$ac_objext
24856 +CC=$ac_save_CC
24860 -echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
24861 -echo "configure:681: checking how to run the C preprocessor" >&5
24862 +case "x$ac_cv_prog_cc_stdc" in
24863 + x|xno)
24864 + echo "$as_me:$LINENO: result: none needed" >&5
24865 +echo "${ECHO_T}none needed" >&6 ;;
24866 + *)
24867 + echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
24868 +echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
24869 + CC="$CC $ac_cv_prog_cc_stdc" ;;
24870 +esac
24872 +# Some people use a C++ compiler to compile C. Since we use `exit',
24873 +# in C++ we need to declare it. In case someone uses the same compiler
24874 +# for both compiling C and C++ we need to have the C++ compiler decide
24875 +# the declaration of exit, since it's the most demanding environment.
24876 +cat >conftest.$ac_ext <<_ACEOF
24877 +#ifndef __cplusplus
24878 + choke me
24879 +#endif
24880 +_ACEOF
24881 +rm -f conftest.$ac_objext
24882 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24883 + (eval $ac_compile) 2>conftest.er1
24884 + ac_status=$?
24885 + grep -v '^ *+' conftest.er1 >conftest.err
24886 + rm -f conftest.er1
24887 + cat conftest.err >&5
24888 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 + (exit $ac_status); } &&
24890 + { ac_try='test -z "$ac_c_werror_flag"
24891 + || test ! -s conftest.err'
24892 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24893 + (eval $ac_try) 2>&5
24894 + ac_status=$?
24895 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24896 + (exit $ac_status); }; } &&
24897 + { ac_try='test -s conftest.$ac_objext'
24898 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24899 + (eval $ac_try) 2>&5
24900 + ac_status=$?
24901 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 + (exit $ac_status); }; }; then
24903 + for ac_declaration in \
24904 + '' \
24905 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
24906 + 'extern "C" void std::exit (int); using std::exit;' \
24907 + 'extern "C" void exit (int) throw ();' \
24908 + 'extern "C" void exit (int);' \
24909 + 'void exit (int);'
24911 + cat >conftest.$ac_ext <<_ACEOF
24912 +/* confdefs.h. */
24913 +_ACEOF
24914 +cat confdefs.h >>conftest.$ac_ext
24915 +cat >>conftest.$ac_ext <<_ACEOF
24916 +/* end confdefs.h. */
24917 +$ac_declaration
24918 +#include <stdlib.h>
24919 +int
24920 +main ()
24922 +exit (42);
24924 + return 0;
24926 +_ACEOF
24927 +rm -f conftest.$ac_objext
24928 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24929 + (eval $ac_compile) 2>conftest.er1
24930 + ac_status=$?
24931 + grep -v '^ *+' conftest.er1 >conftest.err
24932 + rm -f conftest.er1
24933 + cat conftest.err >&5
24934 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24935 + (exit $ac_status); } &&
24936 + { ac_try='test -z "$ac_c_werror_flag"
24937 + || test ! -s conftest.err'
24938 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24939 + (eval $ac_try) 2>&5
24940 + ac_status=$?
24941 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24942 + (exit $ac_status); }; } &&
24943 + { ac_try='test -s conftest.$ac_objext'
24944 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24945 + (eval $ac_try) 2>&5
24946 + ac_status=$?
24947 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 + (exit $ac_status); }; }; then
24950 +else
24951 + echo "$as_me: failed program was:" >&5
24952 +sed 's/^/| /' conftest.$ac_ext >&5
24954 +continue
24956 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24957 + cat >conftest.$ac_ext <<_ACEOF
24958 +/* confdefs.h. */
24959 +_ACEOF
24960 +cat confdefs.h >>conftest.$ac_ext
24961 +cat >>conftest.$ac_ext <<_ACEOF
24962 +/* end confdefs.h. */
24963 +$ac_declaration
24964 +int
24965 +main ()
24967 +exit (42);
24969 + return 0;
24971 +_ACEOF
24972 +rm -f conftest.$ac_objext
24973 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24974 + (eval $ac_compile) 2>conftest.er1
24975 + ac_status=$?
24976 + grep -v '^ *+' conftest.er1 >conftest.err
24977 + rm -f conftest.er1
24978 + cat conftest.err >&5
24979 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24980 + (exit $ac_status); } &&
24981 + { ac_try='test -z "$ac_c_werror_flag"
24982 + || test ! -s conftest.err'
24983 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 + (eval $ac_try) 2>&5
24985 + ac_status=$?
24986 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 + (exit $ac_status); }; } &&
24988 + { ac_try='test -s conftest.$ac_objext'
24989 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 + (eval $ac_try) 2>&5
24991 + ac_status=$?
24992 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 + (exit $ac_status); }; }; then
24994 + break
24995 +else
24996 + echo "$as_me: failed program was:" >&5
24997 +sed 's/^/| /' conftest.$ac_ext >&5
25000 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25001 +done
25002 +rm -f conftest*
25003 +if test -n "$ac_declaration"; then
25004 + echo '#ifdef __cplusplus' >>confdefs.h
25005 + echo $ac_declaration >>confdefs.h
25006 + echo '#endif' >>confdefs.h
25009 +else
25010 + echo "$as_me: failed program was:" >&5
25011 +sed 's/^/| /' conftest.$ac_ext >&5
25014 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25015 +ac_ext=c
25016 +ac_cpp='$CPP $CPPFLAGS'
25017 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25018 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25019 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
25020 +DEPDIR="${am__leading_dot}deps"
25022 + ac_config_commands="$ac_config_commands depfiles"
25025 +am_make=${MAKE-make}
25026 +cat > confinc << 'END'
25027 +am__doit:
25028 + @echo done
25029 +.PHONY: am__doit
25030 +END
25031 +# If we don't find an include directive, just comment out the code.
25032 +echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
25033 +echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
25034 +am__include="#"
25035 +am__quote=
25036 +_am_result=none
25037 +# First try GNU make style include.
25038 +echo "include confinc" > confmf
25039 +# We grep out `Entering directory' and `Leaving directory'
25040 +# messages which can occur if `w' ends up in MAKEFLAGS.
25041 +# In particular we don't look at `^make:' because GNU make might
25042 +# be invoked under some other name (usually "gmake"), in which
25043 +# case it prints its new name instead of `make'.
25044 +if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
25045 + am__include=include
25046 + am__quote=
25047 + _am_result=GNU
25049 +# Now try BSD make style include.
25050 +if test "$am__include" = "#"; then
25051 + echo '.include "confinc"' > confmf
25052 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
25053 + am__include=.include
25054 + am__quote="\""
25055 + _am_result=BSD
25056 + fi
25060 +echo "$as_me:$LINENO: result: $_am_result" >&5
25061 +echo "${ECHO_T}$_am_result" >&6
25062 +rm -f confinc confmf
25064 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
25065 +if test "${enable_dependency_tracking+set}" = set; then
25066 + enableval="$enable_dependency_tracking"
25068 +fi;
25069 +if test "x$enable_dependency_tracking" != xno; then
25070 + am_depcomp="$ac_aux_dir/depcomp"
25071 + AMDEPBACKSLASH='\'
25075 +if test "x$enable_dependency_tracking" != xno; then
25076 + AMDEP_TRUE=
25077 + AMDEP_FALSE='#'
25078 +else
25079 + AMDEP_TRUE='#'
25080 + AMDEP_FALSE=
25086 +depcc="$CC" am_compiler_list=
25088 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
25089 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
25090 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
25091 + echo $ECHO_N "(cached) $ECHO_C" >&6
25092 +else
25093 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25094 + # We make a subdir and do the tests there. Otherwise we can end up
25095 + # making bogus files that we don't know about and never remove. For
25096 + # instance it was reported that on HP-UX the gcc test will end up
25097 + # making a dummy file named `D' -- because `-MD' means `put the output
25098 + # in D'.
25099 + mkdir conftest.dir
25100 + # Copy depcomp to subdir because otherwise we won't find it if we're
25101 + # using a relative directory.
25102 + cp "$am_depcomp" conftest.dir
25103 + cd conftest.dir
25104 + # We will build objects and dependencies in a subdirectory because
25105 + # it helps to detect inapplicable dependency modes. For instance
25106 + # both Tru64's cc and ICC support -MD to output dependencies as a
25107 + # side effect of compilation, but ICC will put the dependencies in
25108 + # the current directory while Tru64 will put them in the object
25109 + # directory.
25110 + mkdir sub
25112 + am_cv_CC_dependencies_compiler_type=none
25113 + if test "$am_compiler_list" = ""; then
25114 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25115 + fi
25116 + for depmode in $am_compiler_list; do
25117 + # Setup a source with many dependencies, because some compilers
25118 + # like to wrap large dependency lists on column 80 (with \), and
25119 + # we should not choose a depcomp mode which is confused by this.
25121 + # We need to recreate these files for each test, as the compiler may
25122 + # overwrite some of them when testing with obscure command lines.
25123 + # This happens at least with the AIX C compiler.
25124 + : > sub/conftest.c
25125 + for i in 1 2 3 4 5 6; do
25126 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
25127 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25128 + # Solaris 8's {/usr,}/bin/sh.
25129 + touch sub/conftst$i.h
25130 + done
25131 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25133 + case $depmode in
25134 + nosideeffect)
25135 + # after this tag, mechanisms are not by side-effect, so they'll
25136 + # only be used when explicitly requested
25137 + if test "x$enable_dependency_tracking" = xyes; then
25138 + continue
25139 + else
25140 + break
25141 + fi
25142 + ;;
25143 + none) break ;;
25144 + esac
25145 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
25146 + # mode. It turns out that the SunPro C++ compiler does not properly
25147 + # handle `-M -o', and we need to detect this.
25148 + if depmode=$depmode \
25149 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
25150 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25151 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
25152 + >/dev/null 2>conftest.err &&
25153 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25154 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
25155 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25156 + # icc doesn't choke on unknown options, it will just issue warnings
25157 + # or remarks (even with -Werror). So we grep stderr for any message
25158 + # that says an option was ignored or not supported.
25159 + # When given -MP, icc 7.0 and 7.1 complain thusly:
25160 + # icc: Command line warning: ignoring option '-M'; no argument required
25161 + # The diagnosis changed in icc 8.0:
25162 + # icc: Command line remark: option '-MP' not supported
25163 + if (grep 'ignoring option' conftest.err ||
25164 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25165 + am_cv_CC_dependencies_compiler_type=$depmode
25166 + break
25167 + fi
25168 + fi
25169 + done
25171 + cd ..
25172 + rm -rf conftest.dir
25173 +else
25174 + am_cv_CC_dependencies_compiler_type=none
25178 +echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
25179 +echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
25180 +CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
25185 + test "x$enable_dependency_tracking" != xno \
25186 + && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
25187 + am__fastdepCC_TRUE=
25188 + am__fastdepCC_FALSE='#'
25189 +else
25190 + am__fastdepCC_TRUE='#'
25191 + am__fastdepCC_FALSE=
25196 +ac_ext=c
25197 +ac_cpp='$CPP $CPPFLAGS'
25198 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25199 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25200 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
25201 +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
25202 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
25203 # On Suns, sometimes $CPP names a directory.
25204 if test -n "$CPP" && test -d "$CPP"; then
25205 CPP=
25207 if test -z "$CPP"; then
25208 -if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
25209 - echo $ac_n "(cached) $ac_c" 1>&6
25210 + if test "${ac_cv_prog_CPP+set}" = set; then
25211 + echo $ECHO_N "(cached) $ECHO_C" >&6
25212 else
25213 - # This must be in double quotes, not single quotes, because CPP may get
25214 - # substituted into the Makefile and "${CC-cc}" will confuse make.
25215 - CPP="${CC-cc} -E"
25216 + # Double quotes because CPP needs to be expanded
25217 + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
25218 + do
25219 + ac_preproc_ok=false
25220 +for ac_c_preproc_warn_flag in '' yes
25222 + # Use a header file that comes with gcc, so configuring glibc
25223 + # with a fresh cross-compiler works.
25224 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25225 + # <limits.h> exists even on freestanding compilers.
25226 # On the NeXT, cc -E runs the code through the compiler's parser,
25227 - # not just through cpp.
25228 - cat > conftest.$ac_ext <<EOF
25229 -#line 696 "configure"
25230 -#include "confdefs.h"
25231 -#include <assert.h>
25232 -Syntax Error
25233 -EOF
25234 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
25235 -{ (eval echo configure:702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
25236 -ac_err=`grep -v '^ *+' conftest.out`
25237 -if test -z "$ac_err"; then
25238 + # not just through cpp. "Syntax error" is here to catch this case.
25239 + cat >conftest.$ac_ext <<_ACEOF
25240 +/* confdefs.h. */
25241 +_ACEOF
25242 +cat confdefs.h >>conftest.$ac_ext
25243 +cat >>conftest.$ac_ext <<_ACEOF
25244 +/* end confdefs.h. */
25245 +#ifdef __STDC__
25246 +# include <limits.h>
25247 +#else
25248 +# include <assert.h>
25249 +#endif
25250 + Syntax error
25251 +_ACEOF
25252 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25253 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25254 + ac_status=$?
25255 + grep -v '^ *+' conftest.er1 >conftest.err
25256 + rm -f conftest.er1
25257 + cat conftest.err >&5
25258 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25259 + (exit $ac_status); } >/dev/null; then
25260 + if test -s conftest.err; then
25261 + ac_cpp_err=$ac_c_preproc_warn_flag
25262 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25263 + else
25264 + ac_cpp_err=
25265 + fi
25266 +else
25267 + ac_cpp_err=yes
25269 +if test -z "$ac_cpp_err"; then
25271 else
25272 - echo "$ac_err" >&5
25273 - echo "configure: failed program was:" >&5
25274 - cat conftest.$ac_ext >&5
25275 - rm -rf conftest*
25276 - CPP="${CC-cc} -E -traditional-cpp"
25277 - cat > conftest.$ac_ext <<EOF
25278 -#line 713 "configure"
25279 -#include "confdefs.h"
25280 -#include <assert.h>
25281 -Syntax Error
25282 -EOF
25283 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
25284 -{ (eval echo configure:719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
25285 -ac_err=`grep -v '^ *+' conftest.out`
25286 -if test -z "$ac_err"; then
25287 + echo "$as_me: failed program was:" >&5
25288 +sed 's/^/| /' conftest.$ac_ext >&5
25290 + # Broken: fails on valid input.
25291 +continue
25293 +rm -f conftest.err conftest.$ac_ext
25295 + # OK, works on sane cases. Now check whether non-existent headers
25296 + # can be detected and how.
25297 + cat >conftest.$ac_ext <<_ACEOF
25298 +/* confdefs.h. */
25299 +_ACEOF
25300 +cat confdefs.h >>conftest.$ac_ext
25301 +cat >>conftest.$ac_ext <<_ACEOF
25302 +/* end confdefs.h. */
25303 +#include <ac_nonexistent.h>
25304 +_ACEOF
25305 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25306 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25307 + ac_status=$?
25308 + grep -v '^ *+' conftest.er1 >conftest.err
25309 + rm -f conftest.er1
25310 + cat conftest.err >&5
25311 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 + (exit $ac_status); } >/dev/null; then
25313 + if test -s conftest.err; then
25314 + ac_cpp_err=$ac_c_preproc_warn_flag
25315 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25316 + else
25317 + ac_cpp_err=
25318 + fi
25319 +else
25320 + ac_cpp_err=yes
25322 +if test -z "$ac_cpp_err"; then
25323 + # Broken: success on invalid input.
25324 +continue
25325 +else
25326 + echo "$as_me: failed program was:" >&5
25327 +sed 's/^/| /' conftest.$ac_ext >&5
25329 + # Passes both tests.
25330 +ac_preproc_ok=:
25331 +break
25333 +rm -f conftest.err conftest.$ac_ext
25335 +done
25336 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25337 +rm -f conftest.err conftest.$ac_ext
25338 +if $ac_preproc_ok; then
25339 + break
25342 + done
25343 + ac_cv_prog_CPP=$CPP
25346 + CPP=$ac_cv_prog_CPP
25347 +else
25348 + ac_cv_prog_CPP=$CPP
25350 +echo "$as_me:$LINENO: result: $CPP" >&5
25351 +echo "${ECHO_T}$CPP" >&6
25352 +ac_preproc_ok=false
25353 +for ac_c_preproc_warn_flag in '' yes
25355 + # Use a header file that comes with gcc, so configuring glibc
25356 + # with a fresh cross-compiler works.
25357 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25358 + # <limits.h> exists even on freestanding compilers.
25359 + # On the NeXT, cc -E runs the code through the compiler's parser,
25360 + # not just through cpp. "Syntax error" is here to catch this case.
25361 + cat >conftest.$ac_ext <<_ACEOF
25362 +/* confdefs.h. */
25363 +_ACEOF
25364 +cat confdefs.h >>conftest.$ac_ext
25365 +cat >>conftest.$ac_ext <<_ACEOF
25366 +/* end confdefs.h. */
25367 +#ifdef __STDC__
25368 +# include <limits.h>
25369 +#else
25370 +# include <assert.h>
25371 +#endif
25372 + Syntax error
25373 +_ACEOF
25374 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25375 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25376 + ac_status=$?
25377 + grep -v '^ *+' conftest.er1 >conftest.err
25378 + rm -f conftest.er1
25379 + cat conftest.err >&5
25380 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25381 + (exit $ac_status); } >/dev/null; then
25382 + if test -s conftest.err; then
25383 + ac_cpp_err=$ac_c_preproc_warn_flag
25384 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25385 + else
25386 + ac_cpp_err=
25387 + fi
25388 +else
25389 + ac_cpp_err=yes
25391 +if test -z "$ac_cpp_err"; then
25393 else
25394 - echo "$ac_err" >&5
25395 - echo "configure: failed program was:" >&5
25396 - cat conftest.$ac_ext >&5
25397 - rm -rf conftest*
25398 - CPP=/lib/cpp
25399 + echo "$as_me: failed program was:" >&5
25400 +sed 's/^/| /' conftest.$ac_ext >&5
25402 + # Broken: fails on valid input.
25403 +continue
25405 -rm -f conftest*
25406 +rm -f conftest.err conftest.$ac_ext
25408 + # OK, works on sane cases. Now check whether non-existent headers
25409 + # can be detected and how.
25410 + cat >conftest.$ac_ext <<_ACEOF
25411 +/* confdefs.h. */
25412 +_ACEOF
25413 +cat confdefs.h >>conftest.$ac_ext
25414 +cat >>conftest.$ac_ext <<_ACEOF
25415 +/* end confdefs.h. */
25416 +#include <ac_nonexistent.h>
25417 +_ACEOF
25418 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25419 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25420 + ac_status=$?
25421 + grep -v '^ *+' conftest.er1 >conftest.err
25422 + rm -f conftest.er1
25423 + cat conftest.err >&5
25424 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 + (exit $ac_status); } >/dev/null; then
25426 + if test -s conftest.err; then
25427 + ac_cpp_err=$ac_c_preproc_warn_flag
25428 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25429 + else
25430 + ac_cpp_err=
25431 + fi
25432 +else
25433 + ac_cpp_err=yes
25435 -rm -f conftest*
25436 - ac_cv_prog_CPP="$CPP"
25437 +if test -z "$ac_cpp_err"; then
25438 + # Broken: success on invalid input.
25439 +continue
25440 +else
25441 + echo "$as_me: failed program was:" >&5
25442 +sed 's/^/| /' conftest.$ac_ext >&5
25444 + # Passes both tests.
25445 +ac_preproc_ok=:
25446 +break
25448 - CPP="$ac_cv_prog_CPP"
25449 +rm -f conftest.err conftest.$ac_ext
25451 +done
25452 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
25453 +rm -f conftest.err conftest.$ac_ext
25454 +if $ac_preproc_ok; then
25456 else
25457 - ac_cv_prog_CPP="$CPP"
25458 + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
25459 +See \`config.log' for more details." >&5
25460 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
25461 +See \`config.log' for more details." >&2;}
25462 + { (exit 1); exit 1; }; }
25464 -echo "$ac_t""$CPP" 1>&6
25466 -echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
25467 -echo "configure:742: checking for function prototypes" >&5
25468 -if eval "test \"`echo '$''{'ijg_cv_have_prototypes'+set}'`\" = set"; then
25469 - echo $ac_n "(cached) $ac_c" 1>&6
25470 +ac_ext=c
25471 +ac_cpp='$CPP $CPPFLAGS'
25472 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25473 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25474 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
25476 +# Find a good install program. We prefer a C program (faster),
25477 +# so one script is as good as another. But avoid the broken or
25478 +# incompatible versions:
25479 +# SysV /etc/install, /usr/sbin/install
25480 +# SunOS /usr/etc/install
25481 +# IRIX /sbin/install
25482 +# AIX /bin/install
25483 +# AmigaOS /C/install, which installs bootblocks on floppy discs
25484 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
25485 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
25486 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
25487 +# OS/2's system install, which has a completely different semantic
25488 +# ./install, which can be erroneously created by make from ./install.sh.
25489 +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
25490 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
25491 +if test -z "$INSTALL"; then
25492 +if test "${ac_cv_path_install+set}" = set; then
25493 + echo $ECHO_N "(cached) $ECHO_C" >&6
25494 else
25495 - cat > conftest.$ac_ext <<EOF
25496 -#line 747 "configure"
25497 -#include "confdefs.h"
25498 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25499 +for as_dir in $PATH
25501 + IFS=$as_save_IFS
25502 + test -z "$as_dir" && as_dir=.
25503 + # Account for people who put trailing slashes in PATH elements.
25504 +case $as_dir/ in
25505 + ./ | .// | /cC/* | \
25506 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25507 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
25508 + /usr/ucb/* ) ;;
25509 + *)
25510 + # OSF1 and SCO ODT 3.0 have their own names for install.
25511 + # Don't use installbsd from OSF since it installs stuff as root
25512 + # by default.
25513 + for ac_prog in ginstall scoinst install; do
25514 + for ac_exec_ext in '' $ac_executable_extensions; do
25515 + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
25516 + if test $ac_prog = install &&
25517 + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25518 + # AIX install. It has an incompatible calling convention.
25520 + elif test $ac_prog = install &&
25521 + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
25522 + # program-specific install script used by HP pwplus--don't use.
25524 + else
25525 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
25526 + break 3
25527 + fi
25528 + fi
25529 + done
25530 + done
25531 + ;;
25532 +esac
25533 +done
25537 + if test "${ac_cv_path_install+set}" = set; then
25538 + INSTALL=$ac_cv_path_install
25539 + else
25540 + # As a last resort, use the slow shell script. We don't cache a
25541 + # path for INSTALL within a source directory, because that will
25542 + # break other packages using the cache if that directory is
25543 + # removed, or if the path is relative.
25544 + INSTALL=$ac_install_sh
25545 + fi
25547 +echo "$as_me:$LINENO: result: $INSTALL" >&5
25548 +echo "${ECHO_T}$INSTALL" >&6
25550 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
25551 +# It thinks the first close brace ends the variable substitution.
25552 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
25554 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
25556 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
25558 +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
25559 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
25560 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
25561 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
25562 + echo $ECHO_N "(cached) $ECHO_C" >&6
25563 +else
25564 + cat >conftest.make <<\_ACEOF
25565 +all:
25566 + @echo 'ac_maketemp="$(MAKE)"'
25567 +_ACEOF
25568 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25569 +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
25570 +if test -n "$ac_maketemp"; then
25571 + eval ac_cv_prog_make_${ac_make}_set=yes
25572 +else
25573 + eval ac_cv_prog_make_${ac_make}_set=no
25575 +rm -f conftest.make
25577 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
25578 + echo "$as_me:$LINENO: result: yes" >&5
25579 +echo "${ECHO_T}yes" >&6
25580 + SET_MAKE=
25581 +else
25582 + echo "$as_me:$LINENO: result: no" >&5
25583 +echo "${ECHO_T}no" >&6
25584 + SET_MAKE="MAKE=${MAKE-make}"
25587 +echo "$as_me:$LINENO: checking whether ln -s works" >&5
25588 +echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
25589 +LN_S=$as_ln_s
25590 +if test "$LN_S" = "ln -s"; then
25591 + echo "$as_me:$LINENO: result: yes" >&5
25592 +echo "${ECHO_T}yes" >&6
25593 +else
25594 + echo "$as_me:$LINENO: result: no, using $LN_S" >&5
25595 +echo "${ECHO_T}no, using $LN_S" >&6
25599 +# Tests for Windows
25603 +echo "$as_me:$LINENO: checking for function prototypes" >&5
25604 +echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
25606 +if test "${ijg_cv_have_prototypes+set}" = set; then
25607 + echo $ECHO_N "(cached) $ECHO_C" >&6
25608 +else
25609 + cat >conftest.$ac_ext <<_ACEOF
25610 +/* confdefs.h. */
25611 +_ACEOF
25612 +cat confdefs.h >>conftest.$ac_ext
25613 +cat >>conftest.$ac_ext <<_ACEOF
25614 +/* end confdefs.h. */
25616 int testfunction (int arg1, int * arg2); /* check prototypes */
25617 struct methods_struct { /* check method-pointer declarations */
25618 @@ -757,27 +3558,53 @@ int testfunction (int arg1, int * arg2) /* check definitions */
25619 int test2function (void) /* check void arg list */
25620 { return 0; }
25622 -int main() {
25624 -; return 0; }
25625 -EOF
25626 -if { (eval echo configure:765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
25627 - rm -rf conftest*
25628 +int
25629 +main ()
25633 + return 0;
25635 +_ACEOF
25636 +rm -f conftest.$ac_objext
25637 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25638 + (eval $ac_compile) 2>conftest.er1
25639 + ac_status=$?
25640 + grep -v '^ *+' conftest.er1 >conftest.err
25641 + rm -f conftest.er1
25642 + cat conftest.err >&5
25643 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25644 + (exit $ac_status); } &&
25645 + { ac_try='test -z "$ac_c_werror_flag"
25646 + || test ! -s conftest.err'
25647 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25648 + (eval $ac_try) 2>&5
25649 + ac_status=$?
25650 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25651 + (exit $ac_status); }; } &&
25652 + { ac_try='test -s conftest.$ac_objext'
25653 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25654 + (eval $ac_try) 2>&5
25655 + ac_status=$?
25656 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 + (exit $ac_status); }; }; then
25658 ijg_cv_have_prototypes=yes
25659 else
25660 - echo "configure: failed program was:" >&5
25661 - cat conftest.$ac_ext >&5
25662 - rm -rf conftest*
25663 - ijg_cv_have_prototypes=no
25664 + echo "$as_me: failed program was:" >&5
25665 +sed 's/^/| /' conftest.$ac_ext >&5
25667 +ijg_cv_have_prototypes=no
25669 -rm -f conftest*
25670 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25673 -echo "$ac_t""$ijg_cv_have_prototypes" 1>&6
25674 +echo "$as_me:$LINENO: result: $ijg_cv_have_prototypes" >&5
25675 +echo "${ECHO_T}$ijg_cv_have_prototypes" >&6
25676 if test $ijg_cv_have_prototypes = yes; then
25677 - cat >> confdefs.h <<\EOF
25678 -#define HAVE_PROTOTYPES
25679 -EOF
25681 +cat >>confdefs.h <<\_ACEOF
25682 +#define HAVE_PROTOTYPES 1
25683 +_ACEOF
25685 else
25686 echo Your compiler does not seem to know about function prototypes.
25687 @@ -786,120 +3613,567 @@ else
25688 echo " ./configure CC='cc -switch'"
25689 echo where -switch is the proper switch.
25691 -ac_safe=`echo "stddef.h" | sed 'y%./+-%__p_%'`
25692 -echo $ac_n "checking for stddef.h""... $ac_c" 1>&6
25693 -echo "configure:792: checking for stddef.h" >&5
25694 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
25695 - echo $ac_n "(cached) $ac_c" 1>&6
25697 +echo "$as_me:$LINENO: checking for egrep" >&5
25698 +echo $ECHO_N "checking for egrep... $ECHO_C" >&6
25699 +if test "${ac_cv_prog_egrep+set}" = set; then
25700 + echo $ECHO_N "(cached) $ECHO_C" >&6
25701 else
25702 - cat > conftest.$ac_ext <<EOF
25703 -#line 797 "configure"
25704 -#include "confdefs.h"
25705 -#include <stddef.h>
25706 -EOF
25707 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
25708 -{ (eval echo configure:802: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
25709 -ac_err=`grep -v '^ *+' conftest.out`
25710 -if test -z "$ac_err"; then
25711 - rm -rf conftest*
25712 - eval "ac_cv_header_$ac_safe=yes"
25713 + if echo a | (grep -E '(a|b)') >/dev/null 2>&1
25714 + then ac_cv_prog_egrep='grep -E'
25715 + else ac_cv_prog_egrep='egrep'
25716 + fi
25718 +echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
25719 +echo "${ECHO_T}$ac_cv_prog_egrep" >&6
25720 + EGREP=$ac_cv_prog_egrep
25723 +echo "$as_me:$LINENO: checking for ANSI C header files" >&5
25724 +echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
25725 +if test "${ac_cv_header_stdc+set}" = set; then
25726 + echo $ECHO_N "(cached) $ECHO_C" >&6
25727 else
25728 - echo "$ac_err" >&5
25729 - echo "configure: failed program was:" >&5
25730 - cat conftest.$ac_ext >&5
25731 - rm -rf conftest*
25732 - eval "ac_cv_header_$ac_safe=no"
25733 + cat >conftest.$ac_ext <<_ACEOF
25734 +/* confdefs.h. */
25735 +_ACEOF
25736 +cat confdefs.h >>conftest.$ac_ext
25737 +cat >>conftest.$ac_ext <<_ACEOF
25738 +/* end confdefs.h. */
25739 +#include <stdlib.h>
25740 +#include <stdarg.h>
25741 +#include <string.h>
25742 +#include <float.h>
25744 +int
25745 +main ()
25749 + return 0;
25751 +_ACEOF
25752 +rm -f conftest.$ac_objext
25753 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754 + (eval $ac_compile) 2>conftest.er1
25755 + ac_status=$?
25756 + grep -v '^ *+' conftest.er1 >conftest.err
25757 + rm -f conftest.er1
25758 + cat conftest.err >&5
25759 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25760 + (exit $ac_status); } &&
25761 + { ac_try='test -z "$ac_c_werror_flag"
25762 + || test ! -s conftest.err'
25763 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25764 + (eval $ac_try) 2>&5
25765 + ac_status=$?
25766 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25767 + (exit $ac_status); }; } &&
25768 + { ac_try='test -s conftest.$ac_objext'
25769 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25770 + (eval $ac_try) 2>&5
25771 + ac_status=$?
25772 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 + (exit $ac_status); }; }; then
25774 + ac_cv_header_stdc=yes
25775 +else
25776 + echo "$as_me: failed program was:" >&5
25777 +sed 's/^/| /' conftest.$ac_ext >&5
25779 +ac_cv_header_stdc=no
25781 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25783 +if test $ac_cv_header_stdc = yes; then
25784 + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25785 + cat >conftest.$ac_ext <<_ACEOF
25786 +/* confdefs.h. */
25787 +_ACEOF
25788 +cat confdefs.h >>conftest.$ac_ext
25789 +cat >>conftest.$ac_ext <<_ACEOF
25790 +/* end confdefs.h. */
25791 +#include <string.h>
25793 +_ACEOF
25794 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795 + $EGREP "memchr" >/dev/null 2>&1; then
25797 +else
25798 + ac_cv_header_stdc=no
25800 rm -f conftest*
25803 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
25804 - echo "$ac_t""yes" 1>&6
25805 - cat >> confdefs.h <<\EOF
25806 -#define HAVE_STDDEF_H
25807 -EOF
25809 +if test $ac_cv_header_stdc = yes; then
25810 + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25811 + cat >conftest.$ac_ext <<_ACEOF
25812 +/* confdefs.h. */
25813 +_ACEOF
25814 +cat confdefs.h >>conftest.$ac_ext
25815 +cat >>conftest.$ac_ext <<_ACEOF
25816 +/* end confdefs.h. */
25817 +#include <stdlib.h>
25819 +_ACEOF
25820 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25821 + $EGREP "free" >/dev/null 2>&1; then
25823 else
25824 - echo "$ac_t""no" 1>&6
25825 + ac_cv_header_stdc=no
25827 +rm -f conftest*
25831 -ac_safe=`echo "stdlib.h" | sed 'y%./+-%__p_%'`
25832 -echo $ac_n "checking for stdlib.h""... $ac_c" 1>&6
25833 -echo "configure:828: checking for stdlib.h" >&5
25834 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
25835 - echo $ac_n "(cached) $ac_c" 1>&6
25836 +if test $ac_cv_header_stdc = yes; then
25837 + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25838 + if test "$cross_compiling" = yes; then
25840 else
25841 - cat > conftest.$ac_ext <<EOF
25842 -#line 833 "configure"
25843 -#include "confdefs.h"
25844 -#include <stdlib.h>
25845 -EOF
25846 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
25847 -{ (eval echo configure:838: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
25848 -ac_err=`grep -v '^ *+' conftest.out`
25849 -if test -z "$ac_err"; then
25850 - rm -rf conftest*
25851 - eval "ac_cv_header_$ac_safe=yes"
25852 + cat >conftest.$ac_ext <<_ACEOF
25853 +/* confdefs.h. */
25854 +_ACEOF
25855 +cat confdefs.h >>conftest.$ac_ext
25856 +cat >>conftest.$ac_ext <<_ACEOF
25857 +/* end confdefs.h. */
25858 +#include <ctype.h>
25859 +#if ((' ' & 0x0FF) == 0x020)
25860 +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25861 +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25862 +#else
25863 +# define ISLOWER(c) \
25864 + (('a' <= (c) && (c) <= 'i') \
25865 + || ('j' <= (c) && (c) <= 'r') \
25866 + || ('s' <= (c) && (c) <= 'z'))
25867 +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25868 +#endif
25870 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25871 +int
25872 +main ()
25874 + int i;
25875 + for (i = 0; i < 256; i++)
25876 + if (XOR (islower (i), ISLOWER (i))
25877 + || toupper (i) != TOUPPER (i))
25878 + exit(2);
25879 + exit (0);
25881 +_ACEOF
25882 +rm -f conftest$ac_exeext
25883 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25884 + (eval $ac_link) 2>&5
25885 + ac_status=$?
25886 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25887 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25888 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25889 + (eval $ac_try) 2>&5
25890 + ac_status=$?
25891 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 + (exit $ac_status); }; }; then
25894 else
25895 - echo "$ac_err" >&5
25896 - echo "configure: failed program was:" >&5
25897 - cat conftest.$ac_ext >&5
25898 - rm -rf conftest*
25899 - eval "ac_cv_header_$ac_safe=no"
25900 + echo "$as_me: program exited with status $ac_status" >&5
25901 +echo "$as_me: failed program was:" >&5
25902 +sed 's/^/| /' conftest.$ac_ext >&5
25904 +( exit $ac_status )
25905 +ac_cv_header_stdc=no
25907 -rm -f conftest*
25908 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25910 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
25911 - echo "$ac_t""yes" 1>&6
25912 - cat >> confdefs.h <<\EOF
25913 -#define HAVE_STDLIB_H
25914 -EOF
25917 +echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
25918 +echo "${ECHO_T}$ac_cv_header_stdc" >&6
25919 +if test $ac_cv_header_stdc = yes; then
25921 +cat >>confdefs.h <<\_ACEOF
25922 +#define STDC_HEADERS 1
25923 +_ACEOF
25927 +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
25937 +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
25938 + inttypes.h stdint.h unistd.h
25940 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25941 +echo "$as_me:$LINENO: checking for $ac_header" >&5
25942 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25943 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
25944 + echo $ECHO_N "(cached) $ECHO_C" >&6
25945 +else
25946 + cat >conftest.$ac_ext <<_ACEOF
25947 +/* confdefs.h. */
25948 +_ACEOF
25949 +cat confdefs.h >>conftest.$ac_ext
25950 +cat >>conftest.$ac_ext <<_ACEOF
25951 +/* end confdefs.h. */
25952 +$ac_includes_default
25954 +#include <$ac_header>
25955 +_ACEOF
25956 +rm -f conftest.$ac_objext
25957 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25958 + (eval $ac_compile) 2>conftest.er1
25959 + ac_status=$?
25960 + grep -v '^ *+' conftest.er1 >conftest.err
25961 + rm -f conftest.er1
25962 + cat conftest.err >&5
25963 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25964 + (exit $ac_status); } &&
25965 + { ac_try='test -z "$ac_c_werror_flag"
25966 + || test ! -s conftest.err'
25967 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25968 + (eval $ac_try) 2>&5
25969 + ac_status=$?
25970 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971 + (exit $ac_status); }; } &&
25972 + { ac_try='test -s conftest.$ac_objext'
25973 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25974 + (eval $ac_try) 2>&5
25975 + ac_status=$?
25976 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 + (exit $ac_status); }; }; then
25978 + eval "$as_ac_Header=yes"
25979 else
25980 - echo "$ac_t""no" 1>&6
25981 + echo "$as_me: failed program was:" >&5
25982 +sed 's/^/| /' conftest.$ac_ext >&5
25984 +eval "$as_ac_Header=no"
25986 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25988 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25989 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25990 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
25991 + cat >>confdefs.h <<_ACEOF
25992 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25993 +_ACEOF
25997 +done
26001 -ac_safe=`echo "string.h" | sed 'y%./+-%__p_%'`
26002 -echo $ac_n "checking for string.h""... $ac_c" 1>&6
26003 -echo "configure:864: checking for string.h" >&5
26004 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
26005 - echo $ac_n "(cached) $ac_c" 1>&6
26007 +for ac_header in stddef.h stdlib.h
26009 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26010 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
26011 + echo "$as_me:$LINENO: checking for $ac_header" >&5
26012 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26013 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
26014 + echo $ECHO_N "(cached) $ECHO_C" >&6
26016 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26017 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26018 else
26019 - cat > conftest.$ac_ext <<EOF
26020 -#line 869 "configure"
26021 -#include "confdefs.h"
26022 + # Is the header compilable?
26023 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
26024 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26025 +cat >conftest.$ac_ext <<_ACEOF
26026 +/* confdefs.h. */
26027 +_ACEOF
26028 +cat confdefs.h >>conftest.$ac_ext
26029 +cat >>conftest.$ac_ext <<_ACEOF
26030 +/* end confdefs.h. */
26031 +$ac_includes_default
26032 +#include <$ac_header>
26033 +_ACEOF
26034 +rm -f conftest.$ac_objext
26035 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26036 + (eval $ac_compile) 2>conftest.er1
26037 + ac_status=$?
26038 + grep -v '^ *+' conftest.er1 >conftest.err
26039 + rm -f conftest.er1
26040 + cat conftest.err >&5
26041 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26042 + (exit $ac_status); } &&
26043 + { ac_try='test -z "$ac_c_werror_flag"
26044 + || test ! -s conftest.err'
26045 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26046 + (eval $ac_try) 2>&5
26047 + ac_status=$?
26048 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 + (exit $ac_status); }; } &&
26050 + { ac_try='test -s conftest.$ac_objext'
26051 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26052 + (eval $ac_try) 2>&5
26053 + ac_status=$?
26054 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 + (exit $ac_status); }; }; then
26056 + ac_header_compiler=yes
26057 +else
26058 + echo "$as_me: failed program was:" >&5
26059 +sed 's/^/| /' conftest.$ac_ext >&5
26061 +ac_header_compiler=no
26063 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26064 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26065 +echo "${ECHO_T}$ac_header_compiler" >&6
26067 +# Is the header present?
26068 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
26069 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26070 +cat >conftest.$ac_ext <<_ACEOF
26071 +/* confdefs.h. */
26072 +_ACEOF
26073 +cat confdefs.h >>conftest.$ac_ext
26074 +cat >>conftest.$ac_ext <<_ACEOF
26075 +/* end confdefs.h. */
26076 +#include <$ac_header>
26077 +_ACEOF
26078 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26079 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26080 + ac_status=$?
26081 + grep -v '^ *+' conftest.er1 >conftest.err
26082 + rm -f conftest.er1
26083 + cat conftest.err >&5
26084 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26085 + (exit $ac_status); } >/dev/null; then
26086 + if test -s conftest.err; then
26087 + ac_cpp_err=$ac_c_preproc_warn_flag
26088 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26089 + else
26090 + ac_cpp_err=
26091 + fi
26092 +else
26093 + ac_cpp_err=yes
26095 +if test -z "$ac_cpp_err"; then
26096 + ac_header_preproc=yes
26097 +else
26098 + echo "$as_me: failed program was:" >&5
26099 +sed 's/^/| /' conftest.$ac_ext >&5
26101 + ac_header_preproc=no
26103 +rm -f conftest.err conftest.$ac_ext
26104 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26105 +echo "${ECHO_T}$ac_header_preproc" >&6
26107 +# So? What about this header?
26108 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26109 + yes:no: )
26110 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26111 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26112 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26113 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26114 + ac_header_preproc=yes
26115 + ;;
26116 + no:yes:* )
26117 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26118 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26119 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26120 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26121 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26122 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26123 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26124 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26125 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26126 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26127 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26128 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26130 + cat <<\_ASBOX
26131 +## ------------------------------------------ ##
26132 +## Report this to the AC_PACKAGE_NAME lists. ##
26133 +## ------------------------------------------ ##
26134 +_ASBOX
26135 + ) |
26136 + sed "s/^/$as_me: WARNING: /" >&2
26137 + ;;
26138 +esac
26139 +echo "$as_me:$LINENO: checking for $ac_header" >&5
26140 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26141 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
26142 + echo $ECHO_N "(cached) $ECHO_C" >&6
26143 +else
26144 + eval "$as_ac_Header=\$ac_header_preproc"
26146 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26147 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26150 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
26151 + cat >>confdefs.h <<_ACEOF
26152 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26153 +_ACEOF
26157 +done
26159 +if test "${ac_cv_header_string_h+set}" = set; then
26160 + echo "$as_me:$LINENO: checking for string.h" >&5
26161 +echo $ECHO_N "checking for string.h... $ECHO_C" >&6
26162 +if test "${ac_cv_header_string_h+set}" = set; then
26163 + echo $ECHO_N "(cached) $ECHO_C" >&6
26165 +echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
26166 +echo "${ECHO_T}$ac_cv_header_string_h" >&6
26167 +else
26168 + # Is the header compilable?
26169 +echo "$as_me:$LINENO: checking string.h usability" >&5
26170 +echo $ECHO_N "checking string.h usability... $ECHO_C" >&6
26171 +cat >conftest.$ac_ext <<_ACEOF
26172 +/* confdefs.h. */
26173 +_ACEOF
26174 +cat confdefs.h >>conftest.$ac_ext
26175 +cat >>conftest.$ac_ext <<_ACEOF
26176 +/* end confdefs.h. */
26177 +$ac_includes_default
26178 #include <string.h>
26179 -EOF
26180 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
26181 -{ (eval echo configure:874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
26182 -ac_err=`grep -v '^ *+' conftest.out`
26183 -if test -z "$ac_err"; then
26184 - rm -rf conftest*
26185 - eval "ac_cv_header_$ac_safe=yes"
26186 +_ACEOF
26187 +rm -f conftest.$ac_objext
26188 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26189 + (eval $ac_compile) 2>conftest.er1
26190 + ac_status=$?
26191 + grep -v '^ *+' conftest.er1 >conftest.err
26192 + rm -f conftest.er1
26193 + cat conftest.err >&5
26194 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26195 + (exit $ac_status); } &&
26196 + { ac_try='test -z "$ac_c_werror_flag"
26197 + || test ! -s conftest.err'
26198 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26199 + (eval $ac_try) 2>&5
26200 + ac_status=$?
26201 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26202 + (exit $ac_status); }; } &&
26203 + { ac_try='test -s conftest.$ac_objext'
26204 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26205 + (eval $ac_try) 2>&5
26206 + ac_status=$?
26207 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 + (exit $ac_status); }; }; then
26209 + ac_header_compiler=yes
26210 else
26211 - echo "$ac_err" >&5
26212 - echo "configure: failed program was:" >&5
26213 - cat conftest.$ac_ext >&5
26214 - rm -rf conftest*
26215 - eval "ac_cv_header_$ac_safe=no"
26216 + echo "$as_me: failed program was:" >&5
26217 +sed 's/^/| /' conftest.$ac_ext >&5
26219 +ac_header_compiler=no
26221 -rm -f conftest*
26222 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26223 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26224 +echo "${ECHO_T}$ac_header_compiler" >&6
26226 +# Is the header present?
26227 +echo "$as_me:$LINENO: checking string.h presence" >&5
26228 +echo $ECHO_N "checking string.h presence... $ECHO_C" >&6
26229 +cat >conftest.$ac_ext <<_ACEOF
26230 +/* confdefs.h. */
26231 +_ACEOF
26232 +cat confdefs.h >>conftest.$ac_ext
26233 +cat >>conftest.$ac_ext <<_ACEOF
26234 +/* end confdefs.h. */
26235 +#include <string.h>
26236 +_ACEOF
26237 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26238 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26239 + ac_status=$?
26240 + grep -v '^ *+' conftest.er1 >conftest.err
26241 + rm -f conftest.er1
26242 + cat conftest.err >&5
26243 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 + (exit $ac_status); } >/dev/null; then
26245 + if test -s conftest.err; then
26246 + ac_cpp_err=$ac_c_preproc_warn_flag
26247 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26248 + else
26249 + ac_cpp_err=
26250 + fi
26251 +else
26252 + ac_cpp_err=yes
26254 +if test -z "$ac_cpp_err"; then
26255 + ac_header_preproc=yes
26256 +else
26257 + echo "$as_me: failed program was:" >&5
26258 +sed 's/^/| /' conftest.$ac_ext >&5
26260 + ac_header_preproc=no
26262 +rm -f conftest.err conftest.$ac_ext
26263 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26264 +echo "${ECHO_T}$ac_header_preproc" >&6
26266 +# So? What about this header?
26267 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26268 + yes:no: )
26269 + { echo "$as_me:$LINENO: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&5
26270 +echo "$as_me: WARNING: string.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26271 + { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the compiler's result" >&5
26272 +echo "$as_me: WARNING: string.h: proceeding with the compiler's result" >&2;}
26273 + ac_header_preproc=yes
26274 + ;;
26275 + no:yes:* )
26276 + { echo "$as_me:$LINENO: WARNING: string.h: present but cannot be compiled" >&5
26277 +echo "$as_me: WARNING: string.h: present but cannot be compiled" >&2;}
26278 + { echo "$as_me:$LINENO: WARNING: string.h: check for missing prerequisite headers?" >&5
26279 +echo "$as_me: WARNING: string.h: check for missing prerequisite headers?" >&2;}
26280 + { echo "$as_me:$LINENO: WARNING: string.h: see the Autoconf documentation" >&5
26281 +echo "$as_me: WARNING: string.h: see the Autoconf documentation" >&2;}
26282 + { echo "$as_me:$LINENO: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&5
26283 +echo "$as_me: WARNING: string.h: section \"Present But Cannot Be Compiled\"" >&2;}
26284 + { echo "$as_me:$LINENO: WARNING: string.h: proceeding with the preprocessor's result" >&5
26285 +echo "$as_me: WARNING: string.h: proceeding with the preprocessor's result" >&2;}
26286 + { echo "$as_me:$LINENO: WARNING: string.h: in the future, the compiler will take precedence" >&5
26287 +echo "$as_me: WARNING: string.h: in the future, the compiler will take precedence" >&2;}
26289 + cat <<\_ASBOX
26290 +## ------------------------------------------ ##
26291 +## Report this to the AC_PACKAGE_NAME lists. ##
26292 +## ------------------------------------------ ##
26293 +_ASBOX
26294 + ) |
26295 + sed "s/^/$as_me: WARNING: /" >&2
26296 + ;;
26297 +esac
26298 +echo "$as_me:$LINENO: checking for string.h" >&5
26299 +echo $ECHO_N "checking for string.h... $ECHO_C" >&6
26300 +if test "${ac_cv_header_string_h+set}" = set; then
26301 + echo $ECHO_N "(cached) $ECHO_C" >&6
26302 +else
26303 + ac_cv_header_string_h=$ac_header_preproc
26305 +echo "$as_me:$LINENO: result: $ac_cv_header_string_h" >&5
26306 +echo "${ECHO_T}$ac_cv_header_string_h" >&6
26309 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
26310 - echo "$ac_t""yes" 1>&6
26311 +if test $ac_cv_header_string_h = yes; then
26313 else
26314 - echo "$ac_t""no" 1>&6
26315 -cat >> confdefs.h <<\EOF
26316 -#define NEED_BSD_STRINGS
26317 -EOF
26319 +cat >>confdefs.h <<\_ACEOF
26320 +#define NEED_BSD_STRINGS 1
26321 +_ACEOF
26325 -echo $ac_n "checking for size_t""... $ac_c" 1>&6
26326 -echo "configure:900: checking for size_t" >&5
26327 -cat > conftest.$ac_ext <<EOF
26328 -#line 902 "configure"
26329 -#include "confdefs.h"
26331 +echo "$as_me:$LINENO: checking for size_t" >&5
26332 +echo $ECHO_N "checking for size_t... $ECHO_C" >&6
26333 +cat >conftest.$ac_ext <<_ACEOF
26334 +/* confdefs.h. */
26335 +_ACEOF
26336 +cat confdefs.h >>conftest.$ac_ext
26337 +cat >>conftest.$ac_ext <<_ACEOF
26338 +/* end confdefs.h. */
26340 #ifdef HAVE_STDDEF_H
26341 #include <stddef.h>
26342 @@ -915,133 +4189,334 @@ cat > conftest.$ac_ext <<EOF
26343 #endif
26344 typedef size_t my_size_t;
26346 -int main() {
26347 - my_size_t foovar;
26348 -; return 0; }
26349 -EOF
26350 -if { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26351 - rm -rf conftest*
26352 +int
26353 +main ()
26355 + my_size_t foovar;
26357 + return 0;
26359 +_ACEOF
26360 +rm -f conftest.$ac_objext
26361 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26362 + (eval $ac_compile) 2>conftest.er1
26363 + ac_status=$?
26364 + grep -v '^ *+' conftest.er1 >conftest.err
26365 + rm -f conftest.er1
26366 + cat conftest.err >&5
26367 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26368 + (exit $ac_status); } &&
26369 + { ac_try='test -z "$ac_c_werror_flag"
26370 + || test ! -s conftest.err'
26371 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26372 + (eval $ac_try) 2>&5
26373 + ac_status=$?
26374 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375 + (exit $ac_status); }; } &&
26376 + { ac_try='test -s conftest.$ac_objext'
26377 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26378 + (eval $ac_try) 2>&5
26379 + ac_status=$?
26380 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 + (exit $ac_status); }; }; then
26382 ijg_size_t_ok=yes
26383 else
26384 - echo "configure: failed program was:" >&5
26385 - cat conftest.$ac_ext >&5
26386 - rm -rf conftest*
26387 - ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
26388 + echo "$as_me: failed program was:" >&5
26389 +sed 's/^/| /' conftest.$ac_ext >&5
26391 +ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"
26393 -rm -f conftest*
26394 -echo "$ac_t""$ijg_size_t_ok" 1>&6
26395 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26396 +echo "$as_me:$LINENO: result: $ijg_size_t_ok" >&5
26397 +echo "${ECHO_T}$ijg_size_t_ok" >&6
26398 if test "$ijg_size_t_ok" != yes; then
26399 -ac_safe=`echo "sys/types.h" | sed 'y%./+-%__p_%'`
26400 -echo $ac_n "checking for sys/types.h""... $ac_c" 1>&6
26401 -echo "configure:937: checking for sys/types.h" >&5
26402 -if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
26403 - echo $ac_n "(cached) $ac_c" 1>&6
26404 +if test "${ac_cv_header_sys_types_h+set}" = set; then
26405 + echo "$as_me:$LINENO: checking for sys/types.h" >&5
26406 +echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
26407 +if test "${ac_cv_header_sys_types_h+set}" = set; then
26408 + echo $ECHO_N "(cached) $ECHO_C" >&6
26410 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
26411 +echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
26412 else
26413 - cat > conftest.$ac_ext <<EOF
26414 -#line 942 "configure"
26415 -#include "confdefs.h"
26416 + # Is the header compilable?
26417 +echo "$as_me:$LINENO: checking sys/types.h usability" >&5
26418 +echo $ECHO_N "checking sys/types.h usability... $ECHO_C" >&6
26419 +cat >conftest.$ac_ext <<_ACEOF
26420 +/* confdefs.h. */
26421 +_ACEOF
26422 +cat confdefs.h >>conftest.$ac_ext
26423 +cat >>conftest.$ac_ext <<_ACEOF
26424 +/* end confdefs.h. */
26425 +$ac_includes_default
26426 #include <sys/types.h>
26427 -EOF
26428 -ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
26429 -{ (eval echo configure:947: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
26430 -ac_err=`grep -v '^ *+' conftest.out`
26431 -if test -z "$ac_err"; then
26432 - rm -rf conftest*
26433 - eval "ac_cv_header_$ac_safe=yes"
26434 +_ACEOF
26435 +rm -f conftest.$ac_objext
26436 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26437 + (eval $ac_compile) 2>conftest.er1
26438 + ac_status=$?
26439 + grep -v '^ *+' conftest.er1 >conftest.err
26440 + rm -f conftest.er1
26441 + cat conftest.err >&5
26442 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 + (exit $ac_status); } &&
26444 + { ac_try='test -z "$ac_c_werror_flag"
26445 + || test ! -s conftest.err'
26446 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 + (eval $ac_try) 2>&5
26448 + ac_status=$?
26449 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 + (exit $ac_status); }; } &&
26451 + { ac_try='test -s conftest.$ac_objext'
26452 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 + (eval $ac_try) 2>&5
26454 + ac_status=$?
26455 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 + (exit $ac_status); }; }; then
26457 + ac_header_compiler=yes
26458 else
26459 - echo "$ac_err" >&5
26460 - echo "configure: failed program was:" >&5
26461 - cat conftest.$ac_ext >&5
26462 - rm -rf conftest*
26463 - eval "ac_cv_header_$ac_safe=no"
26464 + echo "$as_me: failed program was:" >&5
26465 +sed 's/^/| /' conftest.$ac_ext >&5
26467 +ac_header_compiler=no
26469 -rm -f conftest*
26470 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26471 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26472 +echo "${ECHO_T}$ac_header_compiler" >&6
26474 +# Is the header present?
26475 +echo "$as_me:$LINENO: checking sys/types.h presence" >&5
26476 +echo $ECHO_N "checking sys/types.h presence... $ECHO_C" >&6
26477 +cat >conftest.$ac_ext <<_ACEOF
26478 +/* confdefs.h. */
26479 +_ACEOF
26480 +cat confdefs.h >>conftest.$ac_ext
26481 +cat >>conftest.$ac_ext <<_ACEOF
26482 +/* end confdefs.h. */
26483 +#include <sys/types.h>
26484 +_ACEOF
26485 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26486 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26487 + ac_status=$?
26488 + grep -v '^ *+' conftest.er1 >conftest.err
26489 + rm -f conftest.er1
26490 + cat conftest.err >&5
26491 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26492 + (exit $ac_status); } >/dev/null; then
26493 + if test -s conftest.err; then
26494 + ac_cpp_err=$ac_c_preproc_warn_flag
26495 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26496 + else
26497 + ac_cpp_err=
26498 + fi
26499 +else
26500 + ac_cpp_err=yes
26502 -if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
26503 - echo "$ac_t""yes" 1>&6
26504 - cat >> confdefs.h <<\EOF
26505 -#define NEED_SYS_TYPES_H
26506 -EOF
26507 +if test -z "$ac_cpp_err"; then
26508 + ac_header_preproc=yes
26509 +else
26510 + echo "$as_me: failed program was:" >&5
26511 +sed 's/^/| /' conftest.$ac_ext >&5
26513 -cat > conftest.$ac_ext <<EOF
26514 -#line 968 "configure"
26515 -#include "confdefs.h"
26516 + ac_header_preproc=no
26518 +rm -f conftest.err conftest.$ac_ext
26519 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26520 +echo "${ECHO_T}$ac_header_preproc" >&6
26522 +# So? What about this header?
26523 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26524 + yes:no: )
26525 + { echo "$as_me:$LINENO: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&5
26526 +echo "$as_me: WARNING: sys/types.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26527 + { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the compiler's result" >&5
26528 +echo "$as_me: WARNING: sys/types.h: proceeding with the compiler's result" >&2;}
26529 + ac_header_preproc=yes
26530 + ;;
26531 + no:yes:* )
26532 + { echo "$as_me:$LINENO: WARNING: sys/types.h: present but cannot be compiled" >&5
26533 +echo "$as_me: WARNING: sys/types.h: present but cannot be compiled" >&2;}
26534 + { echo "$as_me:$LINENO: WARNING: sys/types.h: check for missing prerequisite headers?" >&5
26535 +echo "$as_me: WARNING: sys/types.h: check for missing prerequisite headers?" >&2;}
26536 + { echo "$as_me:$LINENO: WARNING: sys/types.h: see the Autoconf documentation" >&5
26537 +echo "$as_me: WARNING: sys/types.h: see the Autoconf documentation" >&2;}
26538 + { echo "$as_me:$LINENO: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&5
26539 +echo "$as_me: WARNING: sys/types.h: section \"Present But Cannot Be Compiled\"" >&2;}
26540 + { echo "$as_me:$LINENO: WARNING: sys/types.h: proceeding with the preprocessor's result" >&5
26541 +echo "$as_me: WARNING: sys/types.h: proceeding with the preprocessor's result" >&2;}
26542 + { echo "$as_me:$LINENO: WARNING: sys/types.h: in the future, the compiler will take precedence" >&5
26543 +echo "$as_me: WARNING: sys/types.h: in the future, the compiler will take precedence" >&2;}
26545 + cat <<\_ASBOX
26546 +## ------------------------------------------ ##
26547 +## Report this to the AC_PACKAGE_NAME lists. ##
26548 +## ------------------------------------------ ##
26549 +_ASBOX
26550 + ) |
26551 + sed "s/^/$as_me: WARNING: /" >&2
26552 + ;;
26553 +esac
26554 +echo "$as_me:$LINENO: checking for sys/types.h" >&5
26555 +echo $ECHO_N "checking for sys/types.h... $ECHO_C" >&6
26556 +if test "${ac_cv_header_sys_types_h+set}" = set; then
26557 + echo $ECHO_N "(cached) $ECHO_C" >&6
26558 +else
26559 + ac_cv_header_sys_types_h=$ac_header_preproc
26561 +echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h" >&5
26562 +echo "${ECHO_T}$ac_cv_header_sys_types_h" >&6
26565 +if test $ac_cv_header_sys_types_h = yes; then
26567 +cat >>confdefs.h <<\_ACEOF
26568 +#define NEED_SYS_TYPES_H 1
26569 +_ACEOF
26571 +cat >conftest.$ac_ext <<_ACEOF
26572 +/* confdefs.h. */
26573 +_ACEOF
26574 +cat confdefs.h >>conftest.$ac_ext
26575 +cat >>conftest.$ac_ext <<_ACEOF
26576 +/* end confdefs.h. */
26577 #include <sys/types.h>
26578 -EOF
26579 +_ACEOF
26580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26581 - egrep "size_t" >/dev/null 2>&1; then
26582 - rm -rf conftest*
26583 + $EGREP "size_t" >/dev/null 2>&1; then
26584 ijg_size_t_ok="size_t is in sys/types.h"
26585 else
26586 - rm -rf conftest*
26587 ijg_size_t_ok=no
26589 rm -f conftest*
26591 else
26592 - echo "$ac_t""no" 1>&6
26593 -ijg_size_t_ok=no
26594 + ijg_size_t_ok=no
26597 -echo "$ac_t""$ijg_size_t_ok" 1>&6
26599 +echo "$as_me:$LINENO: result: $ijg_size_t_ok" >&5
26600 +echo "${ECHO_T}$ijg_size_t_ok" >&6
26601 if test "$ijg_size_t_ok" = no; then
26602 echo Type size_t is not defined in any of the usual places.
26603 echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
26606 -echo $ac_n "checking for type unsigned char""... $ac_c" 1>&6
26607 -echo "configure:994: checking for type unsigned char" >&5
26608 -cat > conftest.$ac_ext <<EOF
26609 -#line 996 "configure"
26610 -#include "confdefs.h"
26611 +echo "$as_me:$LINENO: checking for type unsigned char" >&5
26612 +echo $ECHO_N "checking for type unsigned char... $ECHO_C" >&6
26613 +cat >conftest.$ac_ext <<_ACEOF
26614 +/* confdefs.h. */
26615 +_ACEOF
26616 +cat confdefs.h >>conftest.$ac_ext
26617 +cat >>conftest.$ac_ext <<_ACEOF
26618 +/* end confdefs.h. */
26620 -int main() {
26621 - unsigned char un_char;
26622 -; return 0; }
26623 -EOF
26624 -if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26625 - rm -rf conftest*
26626 - echo "$ac_t""yes" 1>&6
26627 -cat >> confdefs.h <<\EOF
26628 -#define HAVE_UNSIGNED_CHAR
26629 -EOF
26630 +int
26631 +main ()
26633 + unsigned char un_char;
26635 + return 0;
26637 +_ACEOF
26638 +rm -f conftest.$ac_objext
26639 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26640 + (eval $ac_compile) 2>conftest.er1
26641 + ac_status=$?
26642 + grep -v '^ *+' conftest.er1 >conftest.err
26643 + rm -f conftest.er1
26644 + cat conftest.err >&5
26645 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26646 + (exit $ac_status); } &&
26647 + { ac_try='test -z "$ac_c_werror_flag"
26648 + || test ! -s conftest.err'
26649 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26650 + (eval $ac_try) 2>&5
26651 + ac_status=$?
26652 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653 + (exit $ac_status); }; } &&
26654 + { ac_try='test -s conftest.$ac_objext'
26655 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 + (eval $ac_try) 2>&5
26657 + ac_status=$?
26658 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 + (exit $ac_status); }; }; then
26660 + echo "$as_me:$LINENO: result: yes" >&5
26661 +echo "${ECHO_T}yes" >&6
26663 +cat >>confdefs.h <<\_ACEOF
26664 +#define HAVE_UNSIGNED_CHAR 1
26665 +_ACEOF
26667 else
26668 - echo "configure: failed program was:" >&5
26669 - cat conftest.$ac_ext >&5
26670 - rm -rf conftest*
26671 - echo "$ac_t""no" 1>&6
26672 + echo "$as_me: failed program was:" >&5
26673 +sed 's/^/| /' conftest.$ac_ext >&5
26675 +echo "$as_me:$LINENO: result: no" >&5
26676 +echo "${ECHO_T}no" >&6
26678 -rm -f conftest*
26679 -echo $ac_n "checking for type unsigned short""... $ac_c" 1>&6
26680 -echo "configure:1018: checking for type unsigned short" >&5
26681 -cat > conftest.$ac_ext <<EOF
26682 -#line 1020 "configure"
26683 -#include "confdefs.h"
26684 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26685 +echo "$as_me:$LINENO: checking for type unsigned short" >&5
26686 +echo $ECHO_N "checking for type unsigned short... $ECHO_C" >&6
26687 +cat >conftest.$ac_ext <<_ACEOF
26688 +/* confdefs.h. */
26689 +_ACEOF
26690 +cat confdefs.h >>conftest.$ac_ext
26691 +cat >>conftest.$ac_ext <<_ACEOF
26692 +/* end confdefs.h. */
26694 -int main() {
26695 - unsigned short un_short;
26696 -; return 0; }
26697 -EOF
26698 -if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26699 - rm -rf conftest*
26700 - echo "$ac_t""yes" 1>&6
26701 -cat >> confdefs.h <<\EOF
26702 -#define HAVE_UNSIGNED_SHORT
26703 -EOF
26704 +int
26705 +main ()
26707 + unsigned short un_short;
26709 + return 0;
26711 +_ACEOF
26712 +rm -f conftest.$ac_objext
26713 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26714 + (eval $ac_compile) 2>conftest.er1
26715 + ac_status=$?
26716 + grep -v '^ *+' conftest.er1 >conftest.err
26717 + rm -f conftest.er1
26718 + cat conftest.err >&5
26719 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26720 + (exit $ac_status); } &&
26721 + { ac_try='test -z "$ac_c_werror_flag"
26722 + || test ! -s conftest.err'
26723 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26724 + (eval $ac_try) 2>&5
26725 + ac_status=$?
26726 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26727 + (exit $ac_status); }; } &&
26728 + { ac_try='test -s conftest.$ac_objext'
26729 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26730 + (eval $ac_try) 2>&5
26731 + ac_status=$?
26732 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 + (exit $ac_status); }; }; then
26734 + echo "$as_me:$LINENO: result: yes" >&5
26735 +echo "${ECHO_T}yes" >&6
26737 +cat >>confdefs.h <<\_ACEOF
26738 +#define HAVE_UNSIGNED_SHORT 1
26739 +_ACEOF
26741 else
26742 - echo "configure: failed program was:" >&5
26743 - cat conftest.$ac_ext >&5
26744 - rm -rf conftest*
26745 - echo "$ac_t""no" 1>&6
26746 + echo "$as_me: failed program was:" >&5
26747 +sed 's/^/| /' conftest.$ac_ext >&5
26749 +echo "$as_me:$LINENO: result: no" >&5
26750 +echo "${ECHO_T}no" >&6
26752 -rm -f conftest*
26753 -echo $ac_n "checking for type void""... $ac_c" 1>&6
26754 -echo "configure:1042: checking for type void" >&5
26755 -cat > conftest.$ac_ext <<EOF
26756 -#line 1044 "configure"
26757 -#include "confdefs.h"
26758 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26759 +echo "$as_me:$LINENO: checking for type void" >&5
26760 +echo $ECHO_N "checking for type void... $ECHO_C" >&6
26761 +cat >conftest.$ac_ext <<_ACEOF
26762 +/* confdefs.h. */
26763 +_ACEOF
26764 +cat confdefs.h >>conftest.$ac_ext
26765 +cat >>conftest.$ac_ext <<_ACEOF
26766 +/* end confdefs.h. */
26768 /* Caution: a C++ compiler will insist on valid prototypes */
26769 typedef void * void_ptr; /* check void * */
26770 @@ -1064,222 +4539,429 @@ void test3function (arg1, arg2)
26771 (*arg2) (1, 2); /* check call of fcn returning void */
26774 -int main() {
26776 -; return 0; }
26777 -EOF
26778 -if { (eval echo configure:1072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26779 - rm -rf conftest*
26780 - echo "$ac_t""yes" 1>&6
26781 +int
26782 +main ()
26786 + return 0;
26788 +_ACEOF
26789 +rm -f conftest.$ac_objext
26790 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26791 + (eval $ac_compile) 2>conftest.er1
26792 + ac_status=$?
26793 + grep -v '^ *+' conftest.er1 >conftest.err
26794 + rm -f conftest.er1
26795 + cat conftest.err >&5
26796 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26797 + (exit $ac_status); } &&
26798 + { ac_try='test -z "$ac_c_werror_flag"
26799 + || test ! -s conftest.err'
26800 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26801 + (eval $ac_try) 2>&5
26802 + ac_status=$?
26803 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 + (exit $ac_status); }; } &&
26805 + { ac_try='test -s conftest.$ac_objext'
26806 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 + (eval $ac_try) 2>&5
26808 + ac_status=$?
26809 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 + (exit $ac_status); }; }; then
26811 + echo "$as_me:$LINENO: result: yes" >&5
26812 +echo "${ECHO_T}yes" >&6
26813 else
26814 - echo "configure: failed program was:" >&5
26815 - cat conftest.$ac_ext >&5
26816 - rm -rf conftest*
26817 - echo "$ac_t""no" 1>&6
26818 -cat >> confdefs.h <<\EOF
26819 + echo "$as_me: failed program was:" >&5
26820 +sed 's/^/| /' conftest.$ac_ext >&5
26822 +echo "$as_me:$LINENO: result: no" >&5
26823 +echo "${ECHO_T}no" >&6
26825 +cat >>confdefs.h <<\_ACEOF
26826 #define void char
26827 -EOF
26828 +_ACEOF
26831 -rm -f conftest*
26832 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26834 -echo $ac_n "checking for working const""... $ac_c" 1>&6
26835 -echo "configure:1088: checking for working const" >&5
26836 -if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
26837 - echo $ac_n "(cached) $ac_c" 1>&6
26838 +echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
26839 +echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
26840 +if test "${ac_cv_c_const+set}" = set; then
26841 + echo $ECHO_N "(cached) $ECHO_C" >&6
26842 else
26843 - cat > conftest.$ac_ext <<EOF
26844 -#line 1093 "configure"
26845 -#include "confdefs.h"
26846 + cat >conftest.$ac_ext <<_ACEOF
26847 +/* confdefs.h. */
26848 +_ACEOF
26849 +cat confdefs.h >>conftest.$ac_ext
26850 +cat >>conftest.$ac_ext <<_ACEOF
26851 +/* end confdefs.h. */
26853 -int main() {
26854 +int
26855 +main ()
26857 +/* FIXME: Include the comments suggested by Paul. */
26858 +#ifndef __cplusplus
26859 + /* Ultrix mips cc rejects this. */
26860 + typedef int charset[2];
26861 + const charset x;
26862 + /* SunOS 4.1.1 cc rejects this. */
26863 + char const *const *ccp;
26864 + char **p;
26865 + /* NEC SVR4.0.2 mips cc rejects this. */
26866 + struct point {int x, y;};
26867 + static struct point const zero = {0,0};
26868 + /* AIX XL C 1.02.0.0 rejects this.
26869 + It does not let you subtract one const X* pointer from another in
26870 + an arm of an if-expression whose if-part is not a constant
26871 + expression */
26872 + const char *g = "string";
26873 + ccp = &g + (g ? g-g : 0);
26874 + /* HPUX 7.0 cc rejects these. */
26875 + ++ccp;
26876 + p = (char**) ccp;
26877 + ccp = (char const *const *) p;
26878 + { /* SCO 3.2v4 cc rejects this. */
26879 + char *t;
26880 + char const *s = 0 ? (char *) 0 : (char const *) 0;
26882 -/* Ultrix mips cc rejects this. */
26883 -typedef int charset[2]; const charset x;
26884 -/* SunOS 4.1.1 cc rejects this. */
26885 -char const *const *ccp;
26886 -char **p;
26887 -/* NEC SVR4.0.2 mips cc rejects this. */
26888 -struct point {int x, y;};
26889 -static struct point const zero = {0,0};
26890 -/* AIX XL C 1.02.0.0 rejects this.
26891 - It does not let you subtract one const X* pointer from another in an arm
26892 - of an if-expression whose if-part is not a constant expression */
26893 -const char *g = "string";
26894 -ccp = &g + (g ? g-g : 0);
26895 -/* HPUX 7.0 cc rejects these. */
26896 -++ccp;
26897 -p = (char**) ccp;
26898 -ccp = (char const *const *) p;
26899 -{ /* SCO 3.2v4 cc rejects this. */
26900 - char *t;
26901 - char const *s = 0 ? (char *) 0 : (char const *) 0;
26903 - *t++ = 0;
26905 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26906 - int x[] = {25, 17};
26907 - const int *foo = &x[0];
26908 - ++foo;
26910 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26911 - typedef const int *iptr;
26912 - iptr p = 0;
26913 - ++p;
26915 -{ /* AIX XL C 1.02.0.0 rejects this saying
26916 - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26917 - struct s { int j; const int *ap[3]; };
26918 - struct s *b; b->j = 5;
26920 -{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26921 - const int foo = 10;
26923 + *t++ = 0;
26925 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26926 + int x[] = {25, 17};
26927 + const int *foo = &x[0];
26928 + ++foo;
26930 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26931 + typedef const int *iptr;
26932 + iptr p = 0;
26933 + ++p;
26935 + { /* AIX XL C 1.02.0.0 rejects this saying
26936 + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26937 + struct s { int j; const int *ap[3]; };
26938 + struct s *b; b->j = 5;
26940 + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26941 + const int foo = 10;
26943 +#endif
26945 -; return 0; }
26946 -EOF
26947 -if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26948 - rm -rf conftest*
26950 + return 0;
26952 +_ACEOF
26953 +rm -f conftest.$ac_objext
26954 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26955 + (eval $ac_compile) 2>conftest.er1
26956 + ac_status=$?
26957 + grep -v '^ *+' conftest.er1 >conftest.err
26958 + rm -f conftest.er1
26959 + cat conftest.err >&5
26960 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26961 + (exit $ac_status); } &&
26962 + { ac_try='test -z "$ac_c_werror_flag"
26963 + || test ! -s conftest.err'
26964 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26965 + (eval $ac_try) 2>&5
26966 + ac_status=$?
26967 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26968 + (exit $ac_status); }; } &&
26969 + { ac_try='test -s conftest.$ac_objext'
26970 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26971 + (eval $ac_try) 2>&5
26972 + ac_status=$?
26973 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 + (exit $ac_status); }; }; then
26975 ac_cv_c_const=yes
26976 else
26977 - echo "configure: failed program was:" >&5
26978 - cat conftest.$ac_ext >&5
26979 - rm -rf conftest*
26980 - ac_cv_c_const=no
26981 + echo "$as_me: failed program was:" >&5
26982 +sed 's/^/| /' conftest.$ac_ext >&5
26984 +ac_cv_c_const=no
26986 -rm -f conftest*
26987 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26990 -echo "$ac_t""$ac_cv_c_const" 1>&6
26991 +echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
26992 +echo "${ECHO_T}$ac_cv_c_const" >&6
26993 if test $ac_cv_c_const = no; then
26994 - cat >> confdefs.h <<\EOF
26995 -#define const
26996 -EOF
26998 +cat >>confdefs.h <<\_ACEOF
26999 +#define const
27000 +_ACEOF
27004 -echo $ac_n "checking for inline""... $ac_c" 1>&6
27005 -echo "configure:1163: checking for inline" >&5
27006 +echo "$as_me:$LINENO: checking for inline" >&5
27007 +echo $ECHO_N "checking for inline... $ECHO_C" >&6
27008 ijg_cv_inline=""
27009 -cat > conftest.$ac_ext <<EOF
27010 -#line 1166 "configure"
27011 -#include "confdefs.h"
27012 +cat >conftest.$ac_ext <<_ACEOF
27013 +/* confdefs.h. */
27014 +_ACEOF
27015 +cat confdefs.h >>conftest.$ac_ext
27016 +cat >>conftest.$ac_ext <<_ACEOF
27017 +/* end confdefs.h. */
27019 -int main() {
27020 +int
27021 +main ()
27023 } __inline__ int foo() { return 0; }
27024 int bar() { return foo();
27025 -; return 0; }
27026 -EOF
27027 -if { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27028 - rm -rf conftest*
27030 + return 0;
27032 +_ACEOF
27033 +rm -f conftest.$ac_objext
27034 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27035 + (eval $ac_compile) 2>conftest.er1
27036 + ac_status=$?
27037 + grep -v '^ *+' conftest.er1 >conftest.err
27038 + rm -f conftest.er1
27039 + cat conftest.err >&5
27040 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27041 + (exit $ac_status); } &&
27042 + { ac_try='test -z "$ac_c_werror_flag"
27043 + || test ! -s conftest.err'
27044 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27045 + (eval $ac_try) 2>&5
27046 + ac_status=$?
27047 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27048 + (exit $ac_status); }; } &&
27049 + { ac_try='test -s conftest.$ac_objext'
27050 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27051 + (eval $ac_try) 2>&5
27052 + ac_status=$?
27053 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 + (exit $ac_status); }; }; then
27055 ijg_cv_inline="__inline__"
27056 else
27057 - echo "configure: failed program was:" >&5
27058 - cat conftest.$ac_ext >&5
27059 - rm -rf conftest*
27060 - cat > conftest.$ac_ext <<EOF
27061 -#line 1182 "configure"
27062 -#include "confdefs.h"
27063 + echo "$as_me: failed program was:" >&5
27064 +sed 's/^/| /' conftest.$ac_ext >&5
27066 -int main() {
27067 +cat >conftest.$ac_ext <<_ACEOF
27068 +/* confdefs.h. */
27069 +_ACEOF
27070 +cat confdefs.h >>conftest.$ac_ext
27071 +cat >>conftest.$ac_ext <<_ACEOF
27072 +/* end confdefs.h. */
27074 +int
27075 +main ()
27077 } __inline int foo() { return 0; }
27078 int bar() { return foo();
27079 -; return 0; }
27080 -EOF
27081 -if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27082 - rm -rf conftest*
27084 + return 0;
27086 +_ACEOF
27087 +rm -f conftest.$ac_objext
27088 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27089 + (eval $ac_compile) 2>conftest.er1
27090 + ac_status=$?
27091 + grep -v '^ *+' conftest.er1 >conftest.err
27092 + rm -f conftest.er1
27093 + cat conftest.err >&5
27094 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27095 + (exit $ac_status); } &&
27096 + { ac_try='test -z "$ac_c_werror_flag"
27097 + || test ! -s conftest.err'
27098 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27099 + (eval $ac_try) 2>&5
27100 + ac_status=$?
27101 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27102 + (exit $ac_status); }; } &&
27103 + { ac_try='test -s conftest.$ac_objext'
27104 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27105 + (eval $ac_try) 2>&5
27106 + ac_status=$?
27107 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 + (exit $ac_status); }; }; then
27109 ijg_cv_inline="__inline"
27110 else
27111 - echo "configure: failed program was:" >&5
27112 - cat conftest.$ac_ext >&5
27113 - rm -rf conftest*
27114 - cat > conftest.$ac_ext <<EOF
27115 -#line 1198 "configure"
27116 -#include "confdefs.h"
27117 + echo "$as_me: failed program was:" >&5
27118 +sed 's/^/| /' conftest.$ac_ext >&5
27120 -int main() {
27121 +cat >conftest.$ac_ext <<_ACEOF
27122 +/* confdefs.h. */
27123 +_ACEOF
27124 +cat confdefs.h >>conftest.$ac_ext
27125 +cat >>conftest.$ac_ext <<_ACEOF
27126 +/* end confdefs.h. */
27128 +int
27129 +main ()
27131 } inline int foo() { return 0; }
27132 int bar() { return foo();
27133 -; return 0; }
27134 -EOF
27135 -if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27136 - rm -rf conftest*
27138 + return 0;
27140 +_ACEOF
27141 +rm -f conftest.$ac_objext
27142 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27143 + (eval $ac_compile) 2>conftest.er1
27144 + ac_status=$?
27145 + grep -v '^ *+' conftest.er1 >conftest.err
27146 + rm -f conftest.er1
27147 + cat conftest.err >&5
27148 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 + (exit $ac_status); } &&
27150 + { ac_try='test -z "$ac_c_werror_flag"
27151 + || test ! -s conftest.err'
27152 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27153 + (eval $ac_try) 2>&5
27154 + ac_status=$?
27155 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27156 + (exit $ac_status); }; } &&
27157 + { ac_try='test -s conftest.$ac_objext'
27158 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27159 + (eval $ac_try) 2>&5
27160 + ac_status=$?
27161 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 + (exit $ac_status); }; }; then
27163 ijg_cv_inline="inline"
27164 else
27165 - echo "configure: failed program was:" >&5
27166 - cat conftest.$ac_ext >&5
27167 + echo "$as_me: failed program was:" >&5
27168 +sed 's/^/| /' conftest.$ac_ext >&5
27171 -rm -f conftest*
27172 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27174 -rm -f conftest*
27175 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27177 -rm -f conftest*
27178 -echo "$ac_t""$ijg_cv_inline" 1>&6
27179 -cat >> confdefs.h <<EOF
27180 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27181 +echo "$as_me:$LINENO: result: $ijg_cv_inline" >&5
27182 +echo "${ECHO_T}$ijg_cv_inline" >&6
27184 +cat >>confdefs.h <<_ACEOF
27185 #define INLINE $ijg_cv_inline
27186 -EOF
27187 +_ACEOF
27189 -echo $ac_n "checking for broken incomplete types""... $ac_c" 1>&6
27190 -echo "configure:1224: checking for broken incomplete types" >&5
27191 -cat > conftest.$ac_ext <<EOF
27192 -#line 1226 "configure"
27193 -#include "confdefs.h"
27194 - typedef struct undefined_structure * undef_struct_ptr;
27195 -int main() {
27196 +echo "$as_me:$LINENO: checking for broken incomplete types" >&5
27197 +echo $ECHO_N "checking for broken incomplete types... $ECHO_C" >&6
27198 +cat >conftest.$ac_ext <<_ACEOF
27199 +/* confdefs.h. */
27200 +_ACEOF
27201 +cat confdefs.h >>conftest.$ac_ext
27202 +cat >>conftest.$ac_ext <<_ACEOF
27203 +/* end confdefs.h. */
27204 + typedef struct undefined_structure * undef_struct_ptr;
27205 +int
27206 +main ()
27209 -; return 0; }
27210 -EOF
27211 -if { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27212 - rm -rf conftest*
27213 - echo "$ac_t""ok" 1>&6
27215 + return 0;
27217 +_ACEOF
27218 +rm -f conftest.$ac_objext
27219 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27220 + (eval $ac_compile) 2>conftest.er1
27221 + ac_status=$?
27222 + grep -v '^ *+' conftest.er1 >conftest.err
27223 + rm -f conftest.er1
27224 + cat conftest.err >&5
27225 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27226 + (exit $ac_status); } &&
27227 + { ac_try='test -z "$ac_c_werror_flag"
27228 + || test ! -s conftest.err'
27229 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27230 + (eval $ac_try) 2>&5
27231 + ac_status=$?
27232 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27233 + (exit $ac_status); }; } &&
27234 + { ac_try='test -s conftest.$ac_objext'
27235 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27236 + (eval $ac_try) 2>&5
27237 + ac_status=$?
27238 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27239 + (exit $ac_status); }; }; then
27240 + echo "$as_me:$LINENO: result: ok" >&5
27241 +echo "${ECHO_T}ok" >&6
27242 else
27243 - echo "configure: failed program was:" >&5
27244 - cat conftest.$ac_ext >&5
27245 - rm -rf conftest*
27246 - echo "$ac_t""broken" 1>&6
27247 -cat >> confdefs.h <<\EOF
27248 -#define INCOMPLETE_TYPES_BROKEN
27249 -EOF
27250 + echo "$as_me: failed program was:" >&5
27251 +sed 's/^/| /' conftest.$ac_ext >&5
27253 +echo "$as_me:$LINENO: result: broken" >&5
27254 +echo "${ECHO_T}broken" >&6
27256 +cat >>confdefs.h <<\_ACEOF
27257 +#define INCOMPLETE_TYPES_BROKEN 1
27258 +_ACEOF
27261 -rm -f conftest*
27262 -echo $ac_n "checking for short external names""... $ac_c" 1>&6
27263 -echo "configure:1248: checking for short external names" >&5
27264 -cat > conftest.$ac_ext <<EOF
27265 -#line 1250 "configure"
27266 -#include "confdefs.h"
27267 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27268 +echo "$as_me:$LINENO: checking for short external names" >&5
27269 +echo $ECHO_N "checking for short external names... $ECHO_C" >&6
27270 +cat >conftest.$ac_ext <<_ACEOF
27271 +/* confdefs.h. */
27272 +_ACEOF
27273 +cat confdefs.h >>conftest.$ac_ext
27274 +cat >>conftest.$ac_ext <<_ACEOF
27275 +/* end confdefs.h. */
27277 int possibly_duplicate_function () { return 0; }
27278 int possibly_dupli_function () { return 1; }
27280 -int main() {
27282 -; return 0; }
27283 -EOF
27284 -if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
27285 - rm -rf conftest*
27286 - echo "$ac_t""ok" 1>&6
27287 +int
27288 +main ()
27292 + return 0;
27294 +_ACEOF
27295 +rm -f conftest.$ac_objext conftest$ac_exeext
27296 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27297 + (eval $ac_link) 2>conftest.er1
27298 + ac_status=$?
27299 + grep -v '^ *+' conftest.er1 >conftest.err
27300 + rm -f conftest.er1
27301 + cat conftest.err >&5
27302 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27303 + (exit $ac_status); } &&
27304 + { ac_try='test -z "$ac_c_werror_flag"
27305 + || test ! -s conftest.err'
27306 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27307 + (eval $ac_try) 2>&5
27308 + ac_status=$?
27309 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27310 + (exit $ac_status); }; } &&
27311 + { ac_try='test -s conftest$ac_exeext'
27312 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27313 + (eval $ac_try) 2>&5
27314 + ac_status=$?
27315 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316 + (exit $ac_status); }; }; then
27317 + echo "$as_me:$LINENO: result: ok" >&5
27318 +echo "${ECHO_T}ok" >&6
27319 else
27320 - echo "configure: failed program was:" >&5
27321 - cat conftest.$ac_ext >&5
27322 - rm -rf conftest*
27323 - echo "$ac_t""short" 1>&6
27324 -cat >> confdefs.h <<\EOF
27325 -#define NEED_SHORT_EXTERNAL_NAMES
27326 -EOF
27327 + echo "$as_me: failed program was:" >&5
27328 +sed 's/^/| /' conftest.$ac_ext >&5
27330 +echo "$as_me:$LINENO: result: short" >&5
27331 +echo "${ECHO_T}short" >&6
27333 +cat >>confdefs.h <<\_ACEOF
27334 +#define NEED_SHORT_EXTERNAL_NAMES 1
27335 +_ACEOF
27338 -rm -f conftest*
27339 -echo $ac_n "checking to see if char is signed""... $ac_c" 1>&6
27340 -echo "configure:1275: checking to see if char is signed" >&5
27341 +rm -f conftest.err conftest.$ac_objext \
27342 + conftest$ac_exeext conftest.$ac_ext
27343 +echo "$as_me:$LINENO: checking to see if char is signed" >&5
27344 +echo $ECHO_N "checking to see if char is signed... $ECHO_C" >&6
27345 if test "$cross_compiling" = yes; then
27346 echo Assuming that char is signed on target machine.
27347 echo If it is unsigned, this will be a little bit inefficient.
27349 else
27350 - cat > conftest.$ac_ext <<EOF
27351 -#line 1282 "configure"
27352 -#include "confdefs.h"
27353 + cat >conftest.$ac_ext <<_ACEOF
27354 +/* confdefs.h. */
27355 +_ACEOF
27356 +cat confdefs.h >>conftest.$ac_ext
27357 +cat >>conftest.$ac_ext <<_ACEOF
27358 +/* end confdefs.h. */
27360 #ifdef HAVE_PROTOTYPES
27361 int is_char_signed (int arg)
27362 @@ -1298,34 +4980,51 @@ int is_char_signed (arg)
27363 return 1; /* assume char is signed otherwise */
27365 char signed_char_check = (char) (-67);
27366 -main() {
27367 +int main() {
27368 exit(is_char_signed((int) signed_char_check));
27370 -EOF
27371 -if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
27372 -then
27373 - echo "$ac_t""no" 1>&6
27374 -cat >> confdefs.h <<\EOF
27375 -#define CHAR_IS_UNSIGNED
27376 -EOF
27377 +_ACEOF
27378 +rm -f conftest$ac_exeext
27379 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27380 + (eval $ac_link) 2>&5
27381 + ac_status=$?
27382 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27383 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27384 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27385 + (eval $ac_try) 2>&5
27386 + ac_status=$?
27387 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27388 + (exit $ac_status); }; }; then
27389 + echo "$as_me:$LINENO: result: no" >&5
27390 +echo "${ECHO_T}no" >&6
27392 +cat >>confdefs.h <<\_ACEOF
27393 +#define CHAR_IS_UNSIGNED 1
27394 +_ACEOF
27396 else
27397 - echo "configure: failed program was:" >&5
27398 - cat conftest.$ac_ext >&5
27399 - rm -fr conftest*
27400 - echo "$ac_t""yes" 1>&6
27401 + echo "$as_me: program exited with status $ac_status" >&5
27402 +echo "$as_me: failed program was:" >&5
27403 +sed 's/^/| /' conftest.$ac_ext >&5
27405 +( exit $ac_status )
27406 +echo "$as_me:$LINENO: result: yes" >&5
27407 +echo "${ECHO_T}yes" >&6
27409 -rm -fr conftest*
27410 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27413 -echo $ac_n "checking to see if right shift is signed""... $ac_c" 1>&6
27414 -echo "configure:1323: checking to see if right shift is signed" >&5
27415 +echo "$as_me:$LINENO: checking to see if right shift is signed" >&5
27416 +echo $ECHO_N "checking to see if right shift is signed... $ECHO_C" >&6
27417 if test "$cross_compiling" = yes; then
27418 - echo "$ac_t""Assuming that right shift is signed on target machine." 1>&6
27419 + echo "$as_me:$LINENO: result: Assuming that right shift is signed on target machine." >&5
27420 +echo "${ECHO_T}Assuming that right shift is signed on target machine." >&6
27421 else
27422 - cat > conftest.$ac_ext <<EOF
27423 -#line 1328 "configure"
27424 -#include "confdefs.h"
27425 + cat >conftest.$ac_ext <<_ACEOF
27426 +/* confdefs.h. */
27427 +_ACEOF
27428 +cat confdefs.h >>conftest.$ac_ext
27429 +cat >>conftest.$ac_ext <<_ACEOF
27430 +/* end confdefs.h. */
27432 #ifdef HAVE_PROTOTYPES
27433 int is_shifting_signed (long arg)
27434 @@ -1350,662 +5049,17323 @@ int is_shifting_signed (arg)
27435 printf("I fear the JPEG software will not work at all.\n\n");
27436 return 0; /* try it with unsigned anyway */
27438 -main() {
27439 +int main() {
27440 exit(is_shifting_signed(-0x7F7E80B1L));
27442 -EOF
27443 -if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
27444 -then
27445 - echo "$ac_t""no" 1>&6
27446 -cat >> confdefs.h <<\EOF
27447 -#define RIGHT_SHIFT_IS_UNSIGNED
27448 -EOF
27449 +_ACEOF
27450 +rm -f conftest$ac_exeext
27451 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452 + (eval $ac_link) 2>&5
27453 + ac_status=$?
27454 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27456 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27457 + (eval $ac_try) 2>&5
27458 + ac_status=$?
27459 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27460 + (exit $ac_status); }; }; then
27461 + echo "$as_me:$LINENO: result: no" >&5
27462 +echo "${ECHO_T}no" >&6
27464 +cat >>confdefs.h <<\_ACEOF
27465 +#define RIGHT_SHIFT_IS_UNSIGNED 1
27466 +_ACEOF
27468 else
27469 - echo "configure: failed program was:" >&5
27470 - cat conftest.$ac_ext >&5
27471 - rm -fr conftest*
27472 - echo "$ac_t""yes" 1>&6
27473 + echo "$as_me: program exited with status $ac_status" >&5
27474 +echo "$as_me: failed program was:" >&5
27475 +sed 's/^/| /' conftest.$ac_ext >&5
27477 +( exit $ac_status )
27478 +echo "$as_me:$LINENO: result: yes" >&5
27479 +echo "${ECHO_T}yes" >&6
27481 -rm -fr conftest*
27482 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27485 -echo $ac_n "checking to see if fopen accepts b spec""... $ac_c" 1>&6
27486 -echo "configure:1375: checking to see if fopen accepts b spec" >&5
27487 +echo "$as_me:$LINENO: checking to see if fopen accepts b spec" >&5
27488 +echo $ECHO_N "checking to see if fopen accepts b spec... $ECHO_C" >&6
27489 if test "$cross_compiling" = yes; then
27490 - echo "$ac_t""Assuming that it does." 1>&6
27491 + echo "$as_me:$LINENO: result: Assuming that it does." >&5
27492 +echo "${ECHO_T}Assuming that it does." >&6
27493 else
27494 - cat > conftest.$ac_ext <<EOF
27495 -#line 1380 "configure"
27496 -#include "confdefs.h"
27497 + cat >conftest.$ac_ext <<_ACEOF
27498 +/* confdefs.h. */
27499 +_ACEOF
27500 +cat confdefs.h >>conftest.$ac_ext
27501 +cat >>conftest.$ac_ext <<_ACEOF
27502 +/* end confdefs.h. */
27504 #include <stdio.h>
27505 -main() {
27506 +int main() {
27507 if (fopen("conftestdata", "wb") != NULL)
27508 exit(0);
27509 exit(1);
27511 -EOF
27512 -if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
27513 -then
27514 - echo "$ac_t""yes" 1>&6
27515 -else
27516 - echo "configure: failed program was:" >&5
27517 - cat conftest.$ac_ext >&5
27518 - rm -fr conftest*
27519 - echo "$ac_t""no" 1>&6
27520 -cat >> confdefs.h <<\EOF
27521 -#define DONT_USE_B_MODE
27522 -EOF
27523 +_ACEOF
27524 +rm -f conftest$ac_exeext
27525 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27526 + (eval $ac_link) 2>&5
27527 + ac_status=$?
27528 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 + (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27530 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27531 + (eval $ac_try) 2>&5
27532 + ac_status=$?
27533 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27534 + (exit $ac_status); }; }; then
27535 + echo "$as_me:$LINENO: result: yes" >&5
27536 +echo "${ECHO_T}yes" >&6
27537 +else
27538 + echo "$as_me: program exited with status $ac_status" >&5
27539 +echo "$as_me: failed program was:" >&5
27540 +sed 's/^/| /' conftest.$ac_ext >&5
27542 +( exit $ac_status )
27543 +echo "$as_me:$LINENO: result: no" >&5
27544 +echo "${ECHO_T}no" >&6
27546 +cat >>confdefs.h <<\_ACEOF
27547 +#define DONT_USE_B_MODE 1
27548 +_ACEOF
27551 -rm -fr conftest*
27552 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27555 -ac_aux_dir=
27556 -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
27557 - if test -f $ac_dir/install-sh; then
27558 - ac_aux_dir=$ac_dir
27559 - ac_install_sh="$ac_aux_dir/install-sh -c"
27560 - break
27561 - elif test -f $ac_dir/install.sh; then
27562 - ac_aux_dir=$ac_dir
27563 - ac_install_sh="$ac_aux_dir/install.sh -c"
27564 +# Configure libtool
27567 +# Check whether --enable-shared or --disable-shared was given.
27568 +if test "${enable_shared+set}" = set; then
27569 + enableval="$enable_shared"
27570 + p=${PACKAGE-default}
27571 + case $enableval in
27572 + yes) enable_shared=yes ;;
27573 + no) enable_shared=no ;;
27574 + *)
27575 + enable_shared=no
27576 + # Look at the argument we got. We use all the common list separators.
27577 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
27578 + for pkg in $enableval; do
27579 + IFS="$lt_save_ifs"
27580 + if test "X$pkg" = "X$p"; then
27581 + enable_shared=yes
27582 + fi
27583 + done
27584 + IFS="$lt_save_ifs"
27585 + ;;
27586 + esac
27587 +else
27588 + enable_shared=yes
27589 +fi;
27591 +# Check whether --enable-static or --disable-static was given.
27592 +if test "${enable_static+set}" = set; then
27593 + enableval="$enable_static"
27594 + p=${PACKAGE-default}
27595 + case $enableval in
27596 + yes) enable_static=yes ;;
27597 + no) enable_static=no ;;
27598 + *)
27599 + enable_static=no
27600 + # Look at the argument we got. We use all the common list separators.
27601 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
27602 + for pkg in $enableval; do
27603 + IFS="$lt_save_ifs"
27604 + if test "X$pkg" = "X$p"; then
27605 + enable_static=yes
27606 + fi
27607 + done
27608 + IFS="$lt_save_ifs"
27609 + ;;
27610 + esac
27611 +else
27612 + enable_static=yes
27613 +fi;
27615 +# Check whether --enable-fast-install or --disable-fast-install was given.
27616 +if test "${enable_fast_install+set}" = set; then
27617 + enableval="$enable_fast_install"
27618 + p=${PACKAGE-default}
27619 + case $enableval in
27620 + yes) enable_fast_install=yes ;;
27621 + no) enable_fast_install=no ;;
27622 + *)
27623 + enable_fast_install=no
27624 + # Look at the argument we got. We use all the common list separators.
27625 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
27626 + for pkg in $enableval; do
27627 + IFS="$lt_save_ifs"
27628 + if test "X$pkg" = "X$p"; then
27629 + enable_fast_install=yes
27630 + fi
27631 + done
27632 + IFS="$lt_save_ifs"
27633 + ;;
27634 + esac
27635 +else
27636 + enable_fast_install=yes
27637 +fi;
27639 +echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
27640 +echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
27641 +if test "${lt_cv_path_SED+set}" = set; then
27642 + echo $ECHO_N "(cached) $ECHO_C" >&6
27643 +else
27644 + # Loop through the user's path and test for sed and gsed.
27645 +# Then use that list of sed's as ones to test for truncation.
27646 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27647 +for as_dir in $PATH
27649 + IFS=$as_save_IFS
27650 + test -z "$as_dir" && as_dir=.
27651 + for lt_ac_prog in sed gsed; do
27652 + for ac_exec_ext in '' $ac_executable_extensions; do
27653 + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
27654 + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
27655 + fi
27656 + done
27657 + done
27658 +done
27659 +lt_ac_max=0
27660 +lt_ac_count=0
27661 +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
27662 +# along with /bin/sed that truncates output.
27663 +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
27664 + test ! -f $lt_ac_sed && continue
27665 + cat /dev/null > conftest.in
27666 + lt_ac_count=0
27667 + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
27668 + # Check for GNU sed and select it if it is found.
27669 + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
27670 + lt_cv_path_SED=$lt_ac_sed
27671 break
27673 + while true; do
27674 + cat conftest.in conftest.in >conftest.tmp
27675 + mv conftest.tmp conftest.in
27676 + cp conftest.in conftest.nl
27677 + echo >>conftest.nl
27678 + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
27679 + cmp -s conftest.out conftest.nl || break
27680 + # 10000 chars as input seems more than enough
27681 + test $lt_ac_count -gt 10 && break
27682 + lt_ac_count=`expr $lt_ac_count + 1`
27683 + if test $lt_ac_count -gt $lt_ac_max; then
27684 + lt_ac_max=$lt_ac_count
27685 + lt_cv_path_SED=$lt_ac_sed
27686 + fi
27687 + done
27688 done
27689 -if test -z "$ac_aux_dir"; then
27690 - { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
27693 -ac_config_guess=$ac_aux_dir/config.guess
27694 -ac_config_sub=$ac_aux_dir/config.sub
27695 -ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
27697 -# Find a good install program. We prefer a C program (faster),
27698 -# so one script is as good as another. But avoid the broken or
27699 -# incompatible versions:
27700 -# SysV /etc/install, /usr/sbin/install
27701 -# SunOS /usr/etc/install
27702 -# IRIX /sbin/install
27703 -# AIX /bin/install
27704 -# AFS /usr/afsws/bin/install, which mishandles nonexistent args
27705 -# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
27706 -# ./install, which can be erroneously created by make from ./install.sh.
27707 -echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
27708 -echo "configure:1436: checking for a BSD compatible install" >&5
27709 -if test -z "$INSTALL"; then
27710 -if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
27711 - echo $ac_n "(cached) $ac_c" 1>&6
27712 +SED=$lt_cv_path_SED
27713 +echo "$as_me:$LINENO: result: $SED" >&5
27714 +echo "${ECHO_T}$SED" >&6
27717 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
27718 +if test "${with_gnu_ld+set}" = set; then
27719 + withval="$with_gnu_ld"
27720 + test "$withval" = no || with_gnu_ld=yes
27721 else
27722 - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
27723 + with_gnu_ld=no
27724 +fi;
27725 +ac_prog=ld
27726 +if test "$GCC" = yes; then
27727 + # Check if gcc -print-prog-name=ld gives a path.
27728 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
27729 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
27730 + case $host in
27731 + *-*-mingw*)
27732 + # gcc leaves a trailing carriage return which upsets mingw
27733 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27734 + *)
27735 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
27736 + esac
27737 + case $ac_prog in
27738 + # Accept absolute paths.
27739 + [\\/]* | ?:[\\/]*)
27740 + re_direlt='/[^/][^/]*/\.\./'
27741 + # Canonicalize the pathname of ld
27742 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
27743 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
27744 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
27745 + done
27746 + test -z "$LD" && LD="$ac_prog"
27747 + ;;
27748 + "")
27749 + # If it fails, then pretend we aren't using GCC.
27750 + ac_prog=ld
27751 + ;;
27752 + *)
27753 + # If it is relative, then search for the first ld in PATH.
27754 + with_gnu_ld=unknown
27755 + ;;
27756 + esac
27757 +elif test "$with_gnu_ld" = yes; then
27758 + echo "$as_me:$LINENO: checking for GNU ld" >&5
27759 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
27760 +else
27761 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
27762 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
27764 +if test "${lt_cv_path_LD+set}" = set; then
27765 + echo $ECHO_N "(cached) $ECHO_C" >&6
27766 +else
27767 + if test -z "$LD"; then
27768 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27769 for ac_dir in $PATH; do
27770 - # Account for people who put trailing slashes in PATH elements.
27771 - case "$ac_dir/" in
27772 - /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
27773 - *)
27774 - # OSF1 and SCO ODT 3.0 have their own names for install.
27775 - for ac_prog in ginstall installbsd scoinst install; do
27776 - if test -f $ac_dir/$ac_prog; then
27777 - if test $ac_prog = install &&
27778 - grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
27779 - # AIX install. It has an incompatible calling convention.
27780 - # OSF/1 installbsd also uses dspmsg, but is usable.
27781 + IFS="$lt_save_ifs"
27782 + test -z "$ac_dir" && ac_dir=.
27783 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
27784 + lt_cv_path_LD="$ac_dir/$ac_prog"
27785 + # Check to see if the program is GNU ld. I'd rather use --version,
27786 + # but apparently some variants of GNU ld only accept -v.
27787 + # Break only if it was the GNU/non-GNU ld that we prefer.
27788 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
27789 + *GNU* | *'with BFD'*)
27790 + test "$with_gnu_ld" != no && break
27791 + ;;
27792 + *)
27793 + test "$with_gnu_ld" != yes && break
27794 + ;;
27795 + esac
27796 + fi
27797 + done
27798 + IFS="$lt_save_ifs"
27799 +else
27800 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
27804 +LD="$lt_cv_path_LD"
27805 +if test -n "$LD"; then
27806 + echo "$as_me:$LINENO: result: $LD" >&5
27807 +echo "${ECHO_T}$LD" >&6
27808 +else
27809 + echo "$as_me:$LINENO: result: no" >&5
27810 +echo "${ECHO_T}no" >&6
27812 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
27813 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
27814 + { (exit 1); exit 1; }; }
27815 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
27816 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
27817 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
27818 + echo $ECHO_N "(cached) $ECHO_C" >&6
27819 +else
27820 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
27821 +case `$LD -v 2>&1 </dev/null` in
27822 +*GNU* | *'with BFD'*)
27823 + lt_cv_prog_gnu_ld=yes
27824 + ;;
27826 + lt_cv_prog_gnu_ld=no
27827 + ;;
27828 +esac
27830 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
27831 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
27832 +with_gnu_ld=$lt_cv_prog_gnu_ld
27835 +echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
27836 +echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
27837 +if test "${lt_cv_ld_reload_flag+set}" = set; then
27838 + echo $ECHO_N "(cached) $ECHO_C" >&6
27839 +else
27840 + lt_cv_ld_reload_flag='-r'
27842 +echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
27843 +echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
27844 +reload_flag=$lt_cv_ld_reload_flag
27845 +case $reload_flag in
27846 +"" | " "*) ;;
27847 +*) reload_flag=" $reload_flag" ;;
27848 +esac
27849 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
27850 +case $host_os in
27851 + darwin*)
27852 + if test "$GCC" = yes; then
27853 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
27854 + else
27855 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
27856 + fi
27857 + ;;
27858 +esac
27860 +echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
27861 +echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
27862 +if test "${lt_cv_path_NM+set}" = set; then
27863 + echo $ECHO_N "(cached) $ECHO_C" >&6
27864 +else
27865 + if test -n "$NM"; then
27866 + # Let the user override the test.
27867 + lt_cv_path_NM="$NM"
27868 +else
27869 + lt_nm_to_check="${ac_tool_prefix}nm"
27870 + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
27871 + lt_nm_to_check="$lt_nm_to_check nm"
27872 + fi
27873 + for lt_tmp_nm in $lt_nm_to_check; do
27874 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
27875 + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
27876 + IFS="$lt_save_ifs"
27877 + test -z "$ac_dir" && ac_dir=.
27878 + tmp_nm="$ac_dir/$lt_tmp_nm"
27879 + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
27880 + # Check to see if the nm accepts a BSD-compat flag.
27881 + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
27882 + # nm: unknown option "B" ignored
27883 + # Tru64's nm complains that /dev/null is an invalid object file
27884 + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
27885 + */dev/null* | *'Invalid file or object type'*)
27886 + lt_cv_path_NM="$tmp_nm -B"
27887 + break
27888 + ;;
27889 + *)
27890 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
27891 + */dev/null*)
27892 + lt_cv_path_NM="$tmp_nm -p"
27893 + break
27894 + ;;
27895 + *)
27896 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
27897 + continue # so that we can try to find one that supports BSD flags
27898 + ;;
27899 + esac
27900 + ;;
27901 + esac
27902 + fi
27903 + done
27904 + IFS="$lt_save_ifs"
27905 + done
27906 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
27909 +echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
27910 +echo "${ECHO_T}$lt_cv_path_NM" >&6
27911 +NM="$lt_cv_path_NM"
27913 +echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
27914 +echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
27915 +if test "${lt_cv_deplibs_check_method+set}" = set; then
27916 + echo $ECHO_N "(cached) $ECHO_C" >&6
27917 +else
27918 + lt_cv_file_magic_cmd='$MAGIC_CMD'
27919 +lt_cv_file_magic_test_file=
27920 +lt_cv_deplibs_check_method='unknown'
27921 +# Need to set the preceding variable on all platforms that support
27922 +# interlibrary dependencies.
27923 +# 'none' -- dependencies not supported.
27924 +# `unknown' -- same as none, but documents that we really don't know.
27925 +# 'pass_all' -- all dependencies passed with no checks.
27926 +# 'test_compile' -- check by making test program.
27927 +# 'file_magic [[regex]]' -- check by looking for files in library path
27928 +# which responds to the $file_magic_cmd with a given extended regex.
27929 +# If you have `file' or equivalent on your system and you're not sure
27930 +# whether `pass_all' will *always* work, you probably want this one.
27932 +case $host_os in
27933 +aix4* | aix5*)
27934 + lt_cv_deplibs_check_method=pass_all
27935 + ;;
27937 +beos*)
27938 + lt_cv_deplibs_check_method=pass_all
27939 + ;;
27941 +bsdi[45]*)
27942 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
27943 + lt_cv_file_magic_cmd='/usr/bin/file -L'
27944 + lt_cv_file_magic_test_file=/shlib/libc.so
27945 + ;;
27947 +cygwin*)
27948 + # func_win32_libid is a shell function defined in ltmain.sh
27949 + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
27950 + lt_cv_file_magic_cmd='func_win32_libid'
27951 + ;;
27953 +mingw* | pw32*)
27954 + # Base MSYS/MinGW do not provide the 'file' command needed by
27955 + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
27956 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
27957 + lt_cv_file_magic_cmd='$OBJDUMP -f'
27958 + ;;
27960 +darwin* | rhapsody*)
27961 + lt_cv_deplibs_check_method=pass_all
27962 + ;;
27964 +freebsd* | kfreebsd*-gnu | dragonfly*)
27965 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
27966 + case $host_cpu in
27967 + i*86 )
27968 + # Not sure whether the presence of OpenBSD here was a mistake.
27969 + # Let's accept both of them until this is cleared up.
27970 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
27971 + lt_cv_file_magic_cmd=/usr/bin/file
27972 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
27973 + ;;
27974 + esac
27975 + else
27976 + lt_cv_deplibs_check_method=pass_all
27977 + fi
27978 + ;;
27980 +gnu*)
27981 + lt_cv_deplibs_check_method=pass_all
27982 + ;;
27984 +hpux10.20* | hpux11*)
27985 + lt_cv_file_magic_cmd=/usr/bin/file
27986 + case $host_cpu in
27987 + ia64*)
27988 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
27989 + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
27990 + ;;
27991 + hppa*64*)
27992 + 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]'
27993 + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
27994 + ;;
27995 + *)
27996 + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
27997 + lt_cv_file_magic_test_file=/usr/lib/libc.sl
27998 + ;;
27999 + esac
28000 + ;;
28002 +interix3*)
28003 + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
28004 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
28005 + ;;
28007 +irix5* | irix6* | nonstopux*)
28008 + case $LD in
28009 + *-32|*"-32 ") libmagic=32-bit;;
28010 + *-n32|*"-n32 ") libmagic=N32;;
28011 + *-64|*"-64 ") libmagic=64-bit;;
28012 + *) libmagic=never-match;;
28013 + esac
28014 + lt_cv_deplibs_check_method=pass_all
28015 + ;;
28017 +# This must be Linux ELF.
28018 +linux*)
28019 + lt_cv_deplibs_check_method=pass_all
28020 + ;;
28022 +netbsd*)
28023 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
28024 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
28025 + else
28026 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
28027 + fi
28028 + ;;
28030 +newos6*)
28031 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
28032 + lt_cv_file_magic_cmd=/usr/bin/file
28033 + lt_cv_file_magic_test_file=/usr/lib/libnls.so
28034 + ;;
28036 +nto-qnx*)
28037 + lt_cv_deplibs_check_method=unknown
28038 + ;;
28040 +openbsd*)
28041 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
28042 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
28043 + else
28044 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
28045 + fi
28046 + ;;
28048 +osf3* | osf4* | osf5*)
28049 + lt_cv_deplibs_check_method=pass_all
28050 + ;;
28052 +solaris*)
28053 + lt_cv_deplibs_check_method=pass_all
28054 + ;;
28056 +sysv4 | sysv4.3*)
28057 + case $host_vendor in
28058 + motorola)
28059 + 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]'
28060 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
28061 + ;;
28062 + ncr)
28063 + lt_cv_deplibs_check_method=pass_all
28064 + ;;
28065 + sequent)
28066 + lt_cv_file_magic_cmd='/bin/file'
28067 + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
28068 + ;;
28069 + sni)
28070 + lt_cv_file_magic_cmd='/bin/file'
28071 + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
28072 + lt_cv_file_magic_test_file=/lib/libc.so
28073 + ;;
28074 + siemens)
28075 + lt_cv_deplibs_check_method=pass_all
28076 + ;;
28077 + pc)
28078 + lt_cv_deplibs_check_method=pass_all
28079 + ;;
28080 + esac
28081 + ;;
28083 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28084 + lt_cv_deplibs_check_method=pass_all
28085 + ;;
28086 +esac
28089 +echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
28090 +echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
28091 +file_magic_cmd=$lt_cv_file_magic_cmd
28092 +deplibs_check_method=$lt_cv_deplibs_check_method
28093 +test -z "$deplibs_check_method" && deplibs_check_method=unknown
28096 +# If no C compiler was specified, use CC.
28097 +LTCC=${LTCC-"$CC"}
28099 +# If no C compiler flags were specified, use CFLAGS.
28100 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
28102 +# Allow CC to be a program name with arguments.
28103 +compiler=$CC
28105 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
28106 +if test "${enable_libtool_lock+set}" = set; then
28107 + enableval="$enable_libtool_lock"
28109 +fi;
28110 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
28112 +# Some flags need to be propagated to the compiler or linker for good
28113 +# libtool support.
28114 +case $host in
28115 +ia64-*-hpux*)
28116 + # Find out which ABI we are using.
28117 + echo 'int i;' > conftest.$ac_ext
28118 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28119 + (eval $ac_compile) 2>&5
28120 + ac_status=$?
28121 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 + (exit $ac_status); }; then
28123 + case `/usr/bin/file conftest.$ac_objext` in
28124 + *ELF-32*)
28125 + HPUX_IA64_MODE="32"
28126 + ;;
28127 + *ELF-64*)
28128 + HPUX_IA64_MODE="64"
28129 + ;;
28130 + esac
28131 + fi
28132 + rm -rf conftest*
28133 + ;;
28134 +*-*-irix6*)
28135 + # Find out which ABI we are using.
28136 + echo '#line 5675 "configure"' > conftest.$ac_ext
28137 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28138 + (eval $ac_compile) 2>&5
28139 + ac_status=$?
28140 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28141 + (exit $ac_status); }; then
28142 + if test "$lt_cv_prog_gnu_ld" = yes; then
28143 + case `/usr/bin/file conftest.$ac_objext` in
28144 + *32-bit*)
28145 + LD="${LD-ld} -melf32bsmip"
28146 + ;;
28147 + *N32*)
28148 + LD="${LD-ld} -melf32bmipn32"
28149 + ;;
28150 + *64-bit*)
28151 + LD="${LD-ld} -melf64bmip"
28152 + ;;
28153 + esac
28154 + else
28155 + case `/usr/bin/file conftest.$ac_objext` in
28156 + *32-bit*)
28157 + LD="${LD-ld} -32"
28158 + ;;
28159 + *N32*)
28160 + LD="${LD-ld} -n32"
28161 + ;;
28162 + *64-bit*)
28163 + LD="${LD-ld} -64"
28164 + ;;
28165 + esac
28166 + fi
28167 + fi
28168 + rm -rf conftest*
28169 + ;;
28171 +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
28172 + # Find out which ABI we are using.
28173 + echo 'int i;' > conftest.$ac_ext
28174 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28175 + (eval $ac_compile) 2>&5
28176 + ac_status=$?
28177 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 + (exit $ac_status); }; then
28179 + case `/usr/bin/file conftest.o` in
28180 + *32-bit*)
28181 + case $host in
28182 + x86_64-*linux*)
28183 + LD="${LD-ld} -m elf_i386"
28184 + ;;
28185 + ppc64-*linux*|powerpc64-*linux*)
28186 + LD="${LD-ld} -m elf32ppclinux"
28187 + ;;
28188 + s390x-*linux*)
28189 + LD="${LD-ld} -m elf_s390"
28190 + ;;
28191 + sparc64-*linux*)
28192 + LD="${LD-ld} -m elf32_sparc"
28193 + ;;
28194 + esac
28195 + ;;
28196 + *64-bit*)
28197 + case $host in
28198 + x86_64-*linux*)
28199 + LD="${LD-ld} -m elf_x86_64"
28200 + ;;
28201 + ppc*-*linux*|powerpc*-*linux*)
28202 + LD="${LD-ld} -m elf64ppc"
28203 + ;;
28204 + s390*-*linux*)
28205 + LD="${LD-ld} -m elf64_s390"
28206 + ;;
28207 + sparc*-*linux*)
28208 + LD="${LD-ld} -m elf64_sparc"
28209 + ;;
28210 + esac
28211 + ;;
28212 + esac
28213 + fi
28214 + rm -rf conftest*
28215 + ;;
28217 +*-*-sco3.2v5*)
28218 + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
28219 + SAVE_CFLAGS="$CFLAGS"
28220 + CFLAGS="$CFLAGS -belf"
28221 + echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
28222 +echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
28223 +if test "${lt_cv_cc_needs_belf+set}" = set; then
28224 + echo $ECHO_N "(cached) $ECHO_C" >&6
28225 +else
28226 + ac_ext=c
28227 +ac_cpp='$CPP $CPPFLAGS'
28228 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28229 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28230 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28232 + cat >conftest.$ac_ext <<_ACEOF
28233 +/* confdefs.h. */
28234 +_ACEOF
28235 +cat confdefs.h >>conftest.$ac_ext
28236 +cat >>conftest.$ac_ext <<_ACEOF
28237 +/* end confdefs.h. */
28239 +int
28240 +main ()
28244 + return 0;
28246 +_ACEOF
28247 +rm -f conftest.$ac_objext conftest$ac_exeext
28248 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28249 + (eval $ac_link) 2>conftest.er1
28250 + ac_status=$?
28251 + grep -v '^ *+' conftest.er1 >conftest.err
28252 + rm -f conftest.er1
28253 + cat conftest.err >&5
28254 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28255 + (exit $ac_status); } &&
28256 + { ac_try='test -z "$ac_c_werror_flag"
28257 + || test ! -s conftest.err'
28258 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28259 + (eval $ac_try) 2>&5
28260 + ac_status=$?
28261 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28262 + (exit $ac_status); }; } &&
28263 + { ac_try='test -s conftest$ac_exeext'
28264 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28265 + (eval $ac_try) 2>&5
28266 + ac_status=$?
28267 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 + (exit $ac_status); }; }; then
28269 + lt_cv_cc_needs_belf=yes
28270 +else
28271 + echo "$as_me: failed program was:" >&5
28272 +sed 's/^/| /' conftest.$ac_ext >&5
28274 +lt_cv_cc_needs_belf=no
28276 +rm -f conftest.err conftest.$ac_objext \
28277 + conftest$ac_exeext conftest.$ac_ext
28278 + ac_ext=c
28279 +ac_cpp='$CPP $CPPFLAGS'
28280 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28281 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28282 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
28285 +echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
28286 +echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
28287 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
28288 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
28289 + CFLAGS="$SAVE_CFLAGS"
28290 + fi
28291 + ;;
28292 +sparc*-*solaris*)
28293 + # Find out which ABI we are using.
28294 + echo 'int i;' > conftest.$ac_ext
28295 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28296 + (eval $ac_compile) 2>&5
28297 + ac_status=$?
28298 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 + (exit $ac_status); }; then
28300 + case `/usr/bin/file conftest.o` in
28301 + *64-bit*)
28302 + case $lt_cv_prog_gnu_ld in
28303 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
28304 + *) LD="${LD-ld} -64" ;;
28305 + esac
28306 + ;;
28307 + esac
28308 + fi
28309 + rm -rf conftest*
28310 + ;;
28312 +*-*-cygwin* | *-*-mingw* | *-*-pw32*)
28313 + if test -n "$ac_tool_prefix"; then
28314 + # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
28315 +set dummy ${ac_tool_prefix}dlltool; ac_word=$2
28316 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28317 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28318 +if test "${ac_cv_prog_DLLTOOL+set}" = set; then
28319 + echo $ECHO_N "(cached) $ECHO_C" >&6
28320 +else
28321 + if test -n "$DLLTOOL"; then
28322 + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
28323 +else
28324 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28325 +for as_dir in $PATH
28327 + IFS=$as_save_IFS
28328 + test -z "$as_dir" && as_dir=.
28329 + for ac_exec_ext in '' $ac_executable_extensions; do
28330 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28331 + ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
28332 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28333 + break 2
28334 + fi
28335 +done
28336 +done
28340 +DLLTOOL=$ac_cv_prog_DLLTOOL
28341 +if test -n "$DLLTOOL"; then
28342 + echo "$as_me:$LINENO: result: $DLLTOOL" >&5
28343 +echo "${ECHO_T}$DLLTOOL" >&6
28344 +else
28345 + echo "$as_me:$LINENO: result: no" >&5
28346 +echo "${ECHO_T}no" >&6
28350 +if test -z "$ac_cv_prog_DLLTOOL"; then
28351 + ac_ct_DLLTOOL=$DLLTOOL
28352 + # Extract the first word of "dlltool", so it can be a program name with args.
28353 +set dummy dlltool; ac_word=$2
28354 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28355 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28356 +if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
28357 + echo $ECHO_N "(cached) $ECHO_C" >&6
28358 +else
28359 + if test -n "$ac_ct_DLLTOOL"; then
28360 + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
28361 +else
28362 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28363 +for as_dir in $PATH
28365 + IFS=$as_save_IFS
28366 + test -z "$as_dir" && as_dir=.
28367 + for ac_exec_ext in '' $ac_executable_extensions; do
28368 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28369 + ac_cv_prog_ac_ct_DLLTOOL="dlltool"
28370 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28371 + break 2
28372 + fi
28373 +done
28374 +done
28376 + test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
28379 +ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
28380 +if test -n "$ac_ct_DLLTOOL"; then
28381 + echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
28382 +echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
28383 +else
28384 + echo "$as_me:$LINENO: result: no" >&5
28385 +echo "${ECHO_T}no" >&6
28388 + DLLTOOL=$ac_ct_DLLTOOL
28389 +else
28390 + DLLTOOL="$ac_cv_prog_DLLTOOL"
28393 + if test -n "$ac_tool_prefix"; then
28394 + # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
28395 +set dummy ${ac_tool_prefix}as; ac_word=$2
28396 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28397 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28398 +if test "${ac_cv_prog_AS+set}" = set; then
28399 + echo $ECHO_N "(cached) $ECHO_C" >&6
28400 +else
28401 + if test -n "$AS"; then
28402 + ac_cv_prog_AS="$AS" # Let the user override the test.
28403 +else
28404 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28405 +for as_dir in $PATH
28407 + IFS=$as_save_IFS
28408 + test -z "$as_dir" && as_dir=.
28409 + for ac_exec_ext in '' $ac_executable_extensions; do
28410 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28411 + ac_cv_prog_AS="${ac_tool_prefix}as"
28412 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28413 + break 2
28414 + fi
28415 +done
28416 +done
28420 +AS=$ac_cv_prog_AS
28421 +if test -n "$AS"; then
28422 + echo "$as_me:$LINENO: result: $AS" >&5
28423 +echo "${ECHO_T}$AS" >&6
28424 +else
28425 + echo "$as_me:$LINENO: result: no" >&5
28426 +echo "${ECHO_T}no" >&6
28430 +if test -z "$ac_cv_prog_AS"; then
28431 + ac_ct_AS=$AS
28432 + # Extract the first word of "as", so it can be a program name with args.
28433 +set dummy as; ac_word=$2
28434 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28435 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28436 +if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
28437 + echo $ECHO_N "(cached) $ECHO_C" >&6
28438 +else
28439 + if test -n "$ac_ct_AS"; then
28440 + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
28441 +else
28442 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28443 +for as_dir in $PATH
28445 + IFS=$as_save_IFS
28446 + test -z "$as_dir" && as_dir=.
28447 + for ac_exec_ext in '' $ac_executable_extensions; do
28448 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28449 + ac_cv_prog_ac_ct_AS="as"
28450 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28451 + break 2
28452 + fi
28453 +done
28454 +done
28456 + test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
28459 +ac_ct_AS=$ac_cv_prog_ac_ct_AS
28460 +if test -n "$ac_ct_AS"; then
28461 + echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
28462 +echo "${ECHO_T}$ac_ct_AS" >&6
28463 +else
28464 + echo "$as_me:$LINENO: result: no" >&5
28465 +echo "${ECHO_T}no" >&6
28468 + AS=$ac_ct_AS
28469 +else
28470 + AS="$ac_cv_prog_AS"
28473 + if test -n "$ac_tool_prefix"; then
28474 + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
28475 +set dummy ${ac_tool_prefix}objdump; ac_word=$2
28476 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28477 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28478 +if test "${ac_cv_prog_OBJDUMP+set}" = set; then
28479 + echo $ECHO_N "(cached) $ECHO_C" >&6
28480 +else
28481 + if test -n "$OBJDUMP"; then
28482 + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
28483 +else
28484 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28485 +for as_dir in $PATH
28487 + IFS=$as_save_IFS
28488 + test -z "$as_dir" && as_dir=.
28489 + for ac_exec_ext in '' $ac_executable_extensions; do
28490 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28491 + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
28492 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28493 + break 2
28494 + fi
28495 +done
28496 +done
28500 +OBJDUMP=$ac_cv_prog_OBJDUMP
28501 +if test -n "$OBJDUMP"; then
28502 + echo "$as_me:$LINENO: result: $OBJDUMP" >&5
28503 +echo "${ECHO_T}$OBJDUMP" >&6
28504 +else
28505 + echo "$as_me:$LINENO: result: no" >&5
28506 +echo "${ECHO_T}no" >&6
28510 +if test -z "$ac_cv_prog_OBJDUMP"; then
28511 + ac_ct_OBJDUMP=$OBJDUMP
28512 + # Extract the first word of "objdump", so it can be a program name with args.
28513 +set dummy objdump; ac_word=$2
28514 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28515 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28516 +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
28517 + echo $ECHO_N "(cached) $ECHO_C" >&6
28518 +else
28519 + if test -n "$ac_ct_OBJDUMP"; then
28520 + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
28521 +else
28522 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28523 +for as_dir in $PATH
28525 + IFS=$as_save_IFS
28526 + test -z "$as_dir" && as_dir=.
28527 + for ac_exec_ext in '' $ac_executable_extensions; do
28528 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28529 + ac_cv_prog_ac_ct_OBJDUMP="objdump"
28530 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28531 + break 2
28532 + fi
28533 +done
28534 +done
28536 + test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
28539 +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
28540 +if test -n "$ac_ct_OBJDUMP"; then
28541 + echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
28542 +echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
28543 +else
28544 + echo "$as_me:$LINENO: result: no" >&5
28545 +echo "${ECHO_T}no" >&6
28548 + OBJDUMP=$ac_ct_OBJDUMP
28549 +else
28550 + OBJDUMP="$ac_cv_prog_OBJDUMP"
28553 + ;;
28555 +esac
28557 +need_locks="$enable_libtool_lock"
28561 +for ac_header in dlfcn.h
28563 +as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28564 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
28565 + echo "$as_me:$LINENO: checking for $ac_header" >&5
28566 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28567 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
28568 + echo $ECHO_N "(cached) $ECHO_C" >&6
28570 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28571 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28572 +else
28573 + # Is the header compilable?
28574 +echo "$as_me:$LINENO: checking $ac_header usability" >&5
28575 +echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28576 +cat >conftest.$ac_ext <<_ACEOF
28577 +/* confdefs.h. */
28578 +_ACEOF
28579 +cat confdefs.h >>conftest.$ac_ext
28580 +cat >>conftest.$ac_ext <<_ACEOF
28581 +/* end confdefs.h. */
28582 +$ac_includes_default
28583 +#include <$ac_header>
28584 +_ACEOF
28585 +rm -f conftest.$ac_objext
28586 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28587 + (eval $ac_compile) 2>conftest.er1
28588 + ac_status=$?
28589 + grep -v '^ *+' conftest.er1 >conftest.err
28590 + rm -f conftest.er1
28591 + cat conftest.err >&5
28592 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28593 + (exit $ac_status); } &&
28594 + { ac_try='test -z "$ac_c_werror_flag"
28595 + || test ! -s conftest.err'
28596 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28597 + (eval $ac_try) 2>&5
28598 + ac_status=$?
28599 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28600 + (exit $ac_status); }; } &&
28601 + { ac_try='test -s conftest.$ac_objext'
28602 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28603 + (eval $ac_try) 2>&5
28604 + ac_status=$?
28605 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 + (exit $ac_status); }; }; then
28607 + ac_header_compiler=yes
28608 +else
28609 + echo "$as_me: failed program was:" >&5
28610 +sed 's/^/| /' conftest.$ac_ext >&5
28612 +ac_header_compiler=no
28614 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28615 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28616 +echo "${ECHO_T}$ac_header_compiler" >&6
28618 +# Is the header present?
28619 +echo "$as_me:$LINENO: checking $ac_header presence" >&5
28620 +echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28621 +cat >conftest.$ac_ext <<_ACEOF
28622 +/* confdefs.h. */
28623 +_ACEOF
28624 +cat confdefs.h >>conftest.$ac_ext
28625 +cat >>conftest.$ac_ext <<_ACEOF
28626 +/* end confdefs.h. */
28627 +#include <$ac_header>
28628 +_ACEOF
28629 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28630 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28631 + ac_status=$?
28632 + grep -v '^ *+' conftest.er1 >conftest.err
28633 + rm -f conftest.er1
28634 + cat conftest.err >&5
28635 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28636 + (exit $ac_status); } >/dev/null; then
28637 + if test -s conftest.err; then
28638 + ac_cpp_err=$ac_c_preproc_warn_flag
28639 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
28640 + else
28641 + ac_cpp_err=
28642 + fi
28643 +else
28644 + ac_cpp_err=yes
28646 +if test -z "$ac_cpp_err"; then
28647 + ac_header_preproc=yes
28648 +else
28649 + echo "$as_me: failed program was:" >&5
28650 +sed 's/^/| /' conftest.$ac_ext >&5
28652 + ac_header_preproc=no
28654 +rm -f conftest.err conftest.$ac_ext
28655 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28656 +echo "${ECHO_T}$ac_header_preproc" >&6
28658 +# So? What about this header?
28659 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28660 + yes:no: )
28661 + { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28662 +echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28663 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28664 +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28665 + ac_header_preproc=yes
28666 + ;;
28667 + no:yes:* )
28668 + { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28669 +echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28670 + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28671 +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28672 + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28673 +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28674 + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28675 +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28676 + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28677 +echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28678 + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28679 +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28681 + cat <<\_ASBOX
28682 +## ------------------------------------------ ##
28683 +## Report this to the AC_PACKAGE_NAME lists. ##
28684 +## ------------------------------------------ ##
28685 +_ASBOX
28686 + ) |
28687 + sed "s/^/$as_me: WARNING: /" >&2
28688 + ;;
28689 +esac
28690 +echo "$as_me:$LINENO: checking for $ac_header" >&5
28691 +echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28692 +if eval "test \"\${$as_ac_Header+set}\" = set"; then
28693 + echo $ECHO_N "(cached) $ECHO_C" >&6
28694 +else
28695 + eval "$as_ac_Header=\$ac_header_preproc"
28697 +echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28698 +echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28701 +if test `eval echo '${'$as_ac_Header'}'` = yes; then
28702 + cat >>confdefs.h <<_ACEOF
28703 +#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28704 +_ACEOF
28708 +done
28710 +ac_ext=cc
28711 +ac_cpp='$CXXCPP $CPPFLAGS'
28712 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28713 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28714 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28715 +if test -n "$ac_tool_prefix"; then
28716 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
28717 + do
28718 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
28719 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
28720 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28721 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28722 +if test "${ac_cv_prog_CXX+set}" = set; then
28723 + echo $ECHO_N "(cached) $ECHO_C" >&6
28724 +else
28725 + if test -n "$CXX"; then
28726 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
28727 +else
28728 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28729 +for as_dir in $PATH
28731 + IFS=$as_save_IFS
28732 + test -z "$as_dir" && as_dir=.
28733 + for ac_exec_ext in '' $ac_executable_extensions; do
28734 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28735 + ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
28736 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28737 + break 2
28738 + fi
28739 +done
28740 +done
28744 +CXX=$ac_cv_prog_CXX
28745 +if test -n "$CXX"; then
28746 + echo "$as_me:$LINENO: result: $CXX" >&5
28747 +echo "${ECHO_T}$CXX" >&6
28748 +else
28749 + echo "$as_me:$LINENO: result: no" >&5
28750 +echo "${ECHO_T}no" >&6
28753 + test -n "$CXX" && break
28754 + done
28756 +if test -z "$CXX"; then
28757 + ac_ct_CXX=$CXX
28758 + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
28760 + # Extract the first word of "$ac_prog", so it can be a program name with args.
28761 +set dummy $ac_prog; ac_word=$2
28762 +echo "$as_me:$LINENO: checking for $ac_word" >&5
28763 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28764 +if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
28765 + echo $ECHO_N "(cached) $ECHO_C" >&6
28766 +else
28767 + if test -n "$ac_ct_CXX"; then
28768 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28769 +else
28770 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28771 +for as_dir in $PATH
28773 + IFS=$as_save_IFS
28774 + test -z "$as_dir" && as_dir=.
28775 + for ac_exec_ext in '' $ac_executable_extensions; do
28776 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28777 + ac_cv_prog_ac_ct_CXX="$ac_prog"
28778 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28779 + break 2
28780 + fi
28781 +done
28782 +done
28786 +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
28787 +if test -n "$ac_ct_CXX"; then
28788 + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
28789 +echo "${ECHO_T}$ac_ct_CXX" >&6
28790 +else
28791 + echo "$as_me:$LINENO: result: no" >&5
28792 +echo "${ECHO_T}no" >&6
28795 + test -n "$ac_ct_CXX" && break
28796 +done
28797 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
28799 + CXX=$ac_ct_CXX
28803 +# Provide some information about the compiler.
28804 +echo "$as_me:$LINENO:" \
28805 + "checking for C++ compiler version" >&5
28806 +ac_compiler=`set X $ac_compile; echo $2`
28807 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
28808 + (eval $ac_compiler --version </dev/null >&5) 2>&5
28809 + ac_status=$?
28810 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28811 + (exit $ac_status); }
28812 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
28813 + (eval $ac_compiler -v </dev/null >&5) 2>&5
28814 + ac_status=$?
28815 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816 + (exit $ac_status); }
28817 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
28818 + (eval $ac_compiler -V </dev/null >&5) 2>&5
28819 + ac_status=$?
28820 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28821 + (exit $ac_status); }
28823 +echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
28824 +echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
28825 +if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
28826 + echo $ECHO_N "(cached) $ECHO_C" >&6
28827 +else
28828 + cat >conftest.$ac_ext <<_ACEOF
28829 +/* confdefs.h. */
28830 +_ACEOF
28831 +cat confdefs.h >>conftest.$ac_ext
28832 +cat >>conftest.$ac_ext <<_ACEOF
28833 +/* end confdefs.h. */
28835 +int
28836 +main ()
28838 +#ifndef __GNUC__
28839 + choke me
28840 +#endif
28843 + return 0;
28845 +_ACEOF
28846 +rm -f conftest.$ac_objext
28847 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28848 + (eval $ac_compile) 2>conftest.er1
28849 + ac_status=$?
28850 + grep -v '^ *+' conftest.er1 >conftest.err
28851 + rm -f conftest.er1
28852 + cat conftest.err >&5
28853 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28854 + (exit $ac_status); } &&
28855 + { ac_try='test -z "$ac_cxx_werror_flag"
28856 + || test ! -s conftest.err'
28857 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28858 + (eval $ac_try) 2>&5
28859 + ac_status=$?
28860 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28861 + (exit $ac_status); }; } &&
28862 + { ac_try='test -s conftest.$ac_objext'
28863 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28864 + (eval $ac_try) 2>&5
28865 + ac_status=$?
28866 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 + (exit $ac_status); }; }; then
28868 + ac_compiler_gnu=yes
28869 +else
28870 + echo "$as_me: failed program was:" >&5
28871 +sed 's/^/| /' conftest.$ac_ext >&5
28873 +ac_compiler_gnu=no
28875 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28876 +ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
28879 +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
28880 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
28881 +GXX=`test $ac_compiler_gnu = yes && echo yes`
28882 +ac_test_CXXFLAGS=${CXXFLAGS+set}
28883 +ac_save_CXXFLAGS=$CXXFLAGS
28884 +CXXFLAGS="-g"
28885 +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
28886 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
28887 +if test "${ac_cv_prog_cxx_g+set}" = set; then
28888 + echo $ECHO_N "(cached) $ECHO_C" >&6
28889 +else
28890 + cat >conftest.$ac_ext <<_ACEOF
28891 +/* confdefs.h. */
28892 +_ACEOF
28893 +cat confdefs.h >>conftest.$ac_ext
28894 +cat >>conftest.$ac_ext <<_ACEOF
28895 +/* end confdefs.h. */
28897 +int
28898 +main ()
28902 + return 0;
28904 +_ACEOF
28905 +rm -f conftest.$ac_objext
28906 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28907 + (eval $ac_compile) 2>conftest.er1
28908 + ac_status=$?
28909 + grep -v '^ *+' conftest.er1 >conftest.err
28910 + rm -f conftest.er1
28911 + cat conftest.err >&5
28912 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913 + (exit $ac_status); } &&
28914 + { ac_try='test -z "$ac_cxx_werror_flag"
28915 + || test ! -s conftest.err'
28916 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28917 + (eval $ac_try) 2>&5
28918 + ac_status=$?
28919 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28920 + (exit $ac_status); }; } &&
28921 + { ac_try='test -s conftest.$ac_objext'
28922 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28923 + (eval $ac_try) 2>&5
28924 + ac_status=$?
28925 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 + (exit $ac_status); }; }; then
28927 + ac_cv_prog_cxx_g=yes
28928 +else
28929 + echo "$as_me: failed program was:" >&5
28930 +sed 's/^/| /' conftest.$ac_ext >&5
28932 +ac_cv_prog_cxx_g=no
28934 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28936 +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
28937 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
28938 +if test "$ac_test_CXXFLAGS" = set; then
28939 + CXXFLAGS=$ac_save_CXXFLAGS
28940 +elif test $ac_cv_prog_cxx_g = yes; then
28941 + if test "$GXX" = yes; then
28942 + CXXFLAGS="-g -O2"
28943 + else
28944 + CXXFLAGS="-g"
28945 + fi
28946 +else
28947 + if test "$GXX" = yes; then
28948 + CXXFLAGS="-O2"
28949 + else
28950 + CXXFLAGS=
28951 + fi
28953 +for ac_declaration in \
28954 + '' \
28955 + 'extern "C" void std::exit (int) throw (); using std::exit;' \
28956 + 'extern "C" void std::exit (int); using std::exit;' \
28957 + 'extern "C" void exit (int) throw ();' \
28958 + 'extern "C" void exit (int);' \
28959 + 'void exit (int);'
28961 + cat >conftest.$ac_ext <<_ACEOF
28962 +/* confdefs.h. */
28963 +_ACEOF
28964 +cat confdefs.h >>conftest.$ac_ext
28965 +cat >>conftest.$ac_ext <<_ACEOF
28966 +/* end confdefs.h. */
28967 +$ac_declaration
28968 +#include <stdlib.h>
28969 +int
28970 +main ()
28972 +exit (42);
28974 + return 0;
28976 +_ACEOF
28977 +rm -f conftest.$ac_objext
28978 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28979 + (eval $ac_compile) 2>conftest.er1
28980 + ac_status=$?
28981 + grep -v '^ *+' conftest.er1 >conftest.err
28982 + rm -f conftest.er1
28983 + cat conftest.err >&5
28984 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28985 + (exit $ac_status); } &&
28986 + { ac_try='test -z "$ac_cxx_werror_flag"
28987 + || test ! -s conftest.err'
28988 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28989 + (eval $ac_try) 2>&5
28990 + ac_status=$?
28991 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28992 + (exit $ac_status); }; } &&
28993 + { ac_try='test -s conftest.$ac_objext'
28994 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28995 + (eval $ac_try) 2>&5
28996 + ac_status=$?
28997 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 + (exit $ac_status); }; }; then
29000 +else
29001 + echo "$as_me: failed program was:" >&5
29002 +sed 's/^/| /' conftest.$ac_ext >&5
29004 +continue
29006 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29007 + cat >conftest.$ac_ext <<_ACEOF
29008 +/* confdefs.h. */
29009 +_ACEOF
29010 +cat confdefs.h >>conftest.$ac_ext
29011 +cat >>conftest.$ac_ext <<_ACEOF
29012 +/* end confdefs.h. */
29013 +$ac_declaration
29014 +int
29015 +main ()
29017 +exit (42);
29019 + return 0;
29021 +_ACEOF
29022 +rm -f conftest.$ac_objext
29023 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29024 + (eval $ac_compile) 2>conftest.er1
29025 + ac_status=$?
29026 + grep -v '^ *+' conftest.er1 >conftest.err
29027 + rm -f conftest.er1
29028 + cat conftest.err >&5
29029 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29030 + (exit $ac_status); } &&
29031 + { ac_try='test -z "$ac_cxx_werror_flag"
29032 + || test ! -s conftest.err'
29033 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29034 + (eval $ac_try) 2>&5
29035 + ac_status=$?
29036 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29037 + (exit $ac_status); }; } &&
29038 + { ac_try='test -s conftest.$ac_objext'
29039 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29040 + (eval $ac_try) 2>&5
29041 + ac_status=$?
29042 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 + (exit $ac_status); }; }; then
29044 + break
29045 +else
29046 + echo "$as_me: failed program was:" >&5
29047 +sed 's/^/| /' conftest.$ac_ext >&5
29050 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29051 +done
29052 +rm -f conftest*
29053 +if test -n "$ac_declaration"; then
29054 + echo '#ifdef __cplusplus' >>confdefs.h
29055 + echo $ac_declaration >>confdefs.h
29056 + echo '#endif' >>confdefs.h
29059 +ac_ext=cc
29060 +ac_cpp='$CXXCPP $CPPFLAGS'
29061 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29062 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29063 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29065 +depcc="$CXX" am_compiler_list=
29067 +echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
29068 +echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
29069 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
29070 + echo $ECHO_N "(cached) $ECHO_C" >&6
29071 +else
29072 + if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
29073 + # We make a subdir and do the tests there. Otherwise we can end up
29074 + # making bogus files that we don't know about and never remove. For
29075 + # instance it was reported that on HP-UX the gcc test will end up
29076 + # making a dummy file named `D' -- because `-MD' means `put the output
29077 + # in D'.
29078 + mkdir conftest.dir
29079 + # Copy depcomp to subdir because otherwise we won't find it if we're
29080 + # using a relative directory.
29081 + cp "$am_depcomp" conftest.dir
29082 + cd conftest.dir
29083 + # We will build objects and dependencies in a subdirectory because
29084 + # it helps to detect inapplicable dependency modes. For instance
29085 + # both Tru64's cc and ICC support -MD to output dependencies as a
29086 + # side effect of compilation, but ICC will put the dependencies in
29087 + # the current directory while Tru64 will put them in the object
29088 + # directory.
29089 + mkdir sub
29091 + am_cv_CXX_dependencies_compiler_type=none
29092 + if test "$am_compiler_list" = ""; then
29093 + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
29094 + fi
29095 + for depmode in $am_compiler_list; do
29096 + # Setup a source with many dependencies, because some compilers
29097 + # like to wrap large dependency lists on column 80 (with \), and
29098 + # we should not choose a depcomp mode which is confused by this.
29100 + # We need to recreate these files for each test, as the compiler may
29101 + # overwrite some of them when testing with obscure command lines.
29102 + # This happens at least with the AIX C compiler.
29103 + : > sub/conftest.c
29104 + for i in 1 2 3 4 5 6; do
29105 + echo '#include "conftst'$i'.h"' >> sub/conftest.c
29106 + # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
29107 + # Solaris 8's {/usr,}/bin/sh.
29108 + touch sub/conftst$i.h
29109 + done
29110 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
29112 + case $depmode in
29113 + nosideeffect)
29114 + # after this tag, mechanisms are not by side-effect, so they'll
29115 + # only be used when explicitly requested
29116 + if test "x$enable_dependency_tracking" = xyes; then
29117 + continue
29118 + else
29119 + break
29120 + fi
29121 + ;;
29122 + none) break ;;
29123 + esac
29124 + # We check with `-c' and `-o' for the sake of the "dashmstdout"
29125 + # mode. It turns out that the SunPro C++ compiler does not properly
29126 + # handle `-M -o', and we need to detect this.
29127 + if depmode=$depmode \
29128 + source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
29129 + depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
29130 + $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
29131 + >/dev/null 2>conftest.err &&
29132 + grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
29133 + grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
29134 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
29135 + # icc doesn't choke on unknown options, it will just issue warnings
29136 + # or remarks (even with -Werror). So we grep stderr for any message
29137 + # that says an option was ignored or not supported.
29138 + # When given -MP, icc 7.0 and 7.1 complain thusly:
29139 + # icc: Command line warning: ignoring option '-M'; no argument required
29140 + # The diagnosis changed in icc 8.0:
29141 + # icc: Command line remark: option '-MP' not supported
29142 + if (grep 'ignoring option' conftest.err ||
29143 + grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
29144 + am_cv_CXX_dependencies_compiler_type=$depmode
29145 + break
29146 + fi
29147 + fi
29148 + done
29150 + cd ..
29151 + rm -rf conftest.dir
29152 +else
29153 + am_cv_CXX_dependencies_compiler_type=none
29157 +echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
29158 +echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
29159 +CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
29164 + test "x$enable_dependency_tracking" != xno \
29165 + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
29166 + am__fastdepCXX_TRUE=
29167 + am__fastdepCXX_FALSE='#'
29168 +else
29169 + am__fastdepCXX_TRUE='#'
29170 + am__fastdepCXX_FALSE=
29176 +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
29177 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
29178 + (test "X$CXX" != "Xg++"))) ; then
29179 + ac_ext=cc
29180 +ac_cpp='$CXXCPP $CPPFLAGS'
29181 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29182 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29183 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29184 +echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
29185 +echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
29186 +if test -z "$CXXCPP"; then
29187 + if test "${ac_cv_prog_CXXCPP+set}" = set; then
29188 + echo $ECHO_N "(cached) $ECHO_C" >&6
29189 +else
29190 + # Double quotes because CXXCPP needs to be expanded
29191 + for CXXCPP in "$CXX -E" "/lib/cpp"
29192 + do
29193 + ac_preproc_ok=false
29194 +for ac_cxx_preproc_warn_flag in '' yes
29196 + # Use a header file that comes with gcc, so configuring glibc
29197 + # with a fresh cross-compiler works.
29198 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29199 + # <limits.h> exists even on freestanding compilers.
29200 + # On the NeXT, cc -E runs the code through the compiler's parser,
29201 + # not just through cpp. "Syntax error" is here to catch this case.
29202 + cat >conftest.$ac_ext <<_ACEOF
29203 +/* confdefs.h. */
29204 +_ACEOF
29205 +cat confdefs.h >>conftest.$ac_ext
29206 +cat >>conftest.$ac_ext <<_ACEOF
29207 +/* end confdefs.h. */
29208 +#ifdef __STDC__
29209 +# include <limits.h>
29210 +#else
29211 +# include <assert.h>
29212 +#endif
29213 + Syntax error
29214 +_ACEOF
29215 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29216 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29217 + ac_status=$?
29218 + grep -v '^ *+' conftest.er1 >conftest.err
29219 + rm -f conftest.er1
29220 + cat conftest.err >&5
29221 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29222 + (exit $ac_status); } >/dev/null; then
29223 + if test -s conftest.err; then
29224 + ac_cpp_err=$ac_cxx_preproc_warn_flag
29225 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29226 + else
29227 + ac_cpp_err=
29228 + fi
29229 +else
29230 + ac_cpp_err=yes
29232 +if test -z "$ac_cpp_err"; then
29234 +else
29235 + echo "$as_me: failed program was:" >&5
29236 +sed 's/^/| /' conftest.$ac_ext >&5
29238 + # Broken: fails on valid input.
29239 +continue
29241 +rm -f conftest.err conftest.$ac_ext
29243 + # OK, works on sane cases. Now check whether non-existent headers
29244 + # can be detected and how.
29245 + cat >conftest.$ac_ext <<_ACEOF
29246 +/* confdefs.h. */
29247 +_ACEOF
29248 +cat confdefs.h >>conftest.$ac_ext
29249 +cat >>conftest.$ac_ext <<_ACEOF
29250 +/* end confdefs.h. */
29251 +#include <ac_nonexistent.h>
29252 +_ACEOF
29253 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29254 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29255 + ac_status=$?
29256 + grep -v '^ *+' conftest.er1 >conftest.err
29257 + rm -f conftest.er1
29258 + cat conftest.err >&5
29259 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260 + (exit $ac_status); } >/dev/null; then
29261 + if test -s conftest.err; then
29262 + ac_cpp_err=$ac_cxx_preproc_warn_flag
29263 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29264 + else
29265 + ac_cpp_err=
29266 + fi
29267 +else
29268 + ac_cpp_err=yes
29270 +if test -z "$ac_cpp_err"; then
29271 + # Broken: success on invalid input.
29272 +continue
29273 +else
29274 + echo "$as_me: failed program was:" >&5
29275 +sed 's/^/| /' conftest.$ac_ext >&5
29277 + # Passes both tests.
29278 +ac_preproc_ok=:
29279 +break
29281 +rm -f conftest.err conftest.$ac_ext
29283 +done
29284 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
29285 +rm -f conftest.err conftest.$ac_ext
29286 +if $ac_preproc_ok; then
29287 + break
29290 + done
29291 + ac_cv_prog_CXXCPP=$CXXCPP
29294 + CXXCPP=$ac_cv_prog_CXXCPP
29295 +else
29296 + ac_cv_prog_CXXCPP=$CXXCPP
29298 +echo "$as_me:$LINENO: result: $CXXCPP" >&5
29299 +echo "${ECHO_T}$CXXCPP" >&6
29300 +ac_preproc_ok=false
29301 +for ac_cxx_preproc_warn_flag in '' yes
29303 + # Use a header file that comes with gcc, so configuring glibc
29304 + # with a fresh cross-compiler works.
29305 + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29306 + # <limits.h> exists even on freestanding compilers.
29307 + # On the NeXT, cc -E runs the code through the compiler's parser,
29308 + # not just through cpp. "Syntax error" is here to catch this case.
29309 + cat >conftest.$ac_ext <<_ACEOF
29310 +/* confdefs.h. */
29311 +_ACEOF
29312 +cat confdefs.h >>conftest.$ac_ext
29313 +cat >>conftest.$ac_ext <<_ACEOF
29314 +/* end confdefs.h. */
29315 +#ifdef __STDC__
29316 +# include <limits.h>
29317 +#else
29318 +# include <assert.h>
29319 +#endif
29320 + Syntax error
29321 +_ACEOF
29322 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29323 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29324 + ac_status=$?
29325 + grep -v '^ *+' conftest.er1 >conftest.err
29326 + rm -f conftest.er1
29327 + cat conftest.err >&5
29328 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29329 + (exit $ac_status); } >/dev/null; then
29330 + if test -s conftest.err; then
29331 + ac_cpp_err=$ac_cxx_preproc_warn_flag
29332 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29333 + else
29334 + ac_cpp_err=
29335 + fi
29336 +else
29337 + ac_cpp_err=yes
29339 +if test -z "$ac_cpp_err"; then
29341 +else
29342 + echo "$as_me: failed program was:" >&5
29343 +sed 's/^/| /' conftest.$ac_ext >&5
29345 + # Broken: fails on valid input.
29346 +continue
29348 +rm -f conftest.err conftest.$ac_ext
29350 + # OK, works on sane cases. Now check whether non-existent headers
29351 + # can be detected and how.
29352 + cat >conftest.$ac_ext <<_ACEOF
29353 +/* confdefs.h. */
29354 +_ACEOF
29355 +cat confdefs.h >>conftest.$ac_ext
29356 +cat >>conftest.$ac_ext <<_ACEOF
29357 +/* end confdefs.h. */
29358 +#include <ac_nonexistent.h>
29359 +_ACEOF
29360 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29361 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29362 + ac_status=$?
29363 + grep -v '^ *+' conftest.er1 >conftest.err
29364 + rm -f conftest.er1
29365 + cat conftest.err >&5
29366 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29367 + (exit $ac_status); } >/dev/null; then
29368 + if test -s conftest.err; then
29369 + ac_cpp_err=$ac_cxx_preproc_warn_flag
29370 + ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
29371 + else
29372 + ac_cpp_err=
29373 + fi
29374 +else
29375 + ac_cpp_err=yes
29377 +if test -z "$ac_cpp_err"; then
29378 + # Broken: success on invalid input.
29379 +continue
29380 +else
29381 + echo "$as_me: failed program was:" >&5
29382 +sed 's/^/| /' conftest.$ac_ext >&5
29384 + # Passes both tests.
29385 +ac_preproc_ok=:
29386 +break
29388 +rm -f conftest.err conftest.$ac_ext
29390 +done
29391 +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
29392 +rm -f conftest.err conftest.$ac_ext
29393 +if $ac_preproc_ok; then
29395 +else
29396 + { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
29397 +See \`config.log' for more details." >&5
29398 +echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
29399 +See \`config.log' for more details." >&2;}
29400 + { (exit 1); exit 1; }; }
29403 +ac_ext=cc
29404 +ac_cpp='$CXXCPP $CPPFLAGS'
29405 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29406 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29407 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29412 +ac_ext=f
29413 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
29414 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29415 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
29416 +if test -n "$ac_tool_prefix"; then
29417 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
29418 + do
29419 + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
29420 +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
29421 +echo "$as_me:$LINENO: checking for $ac_word" >&5
29422 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29423 +if test "${ac_cv_prog_F77+set}" = set; then
29424 + echo $ECHO_N "(cached) $ECHO_C" >&6
29425 +else
29426 + if test -n "$F77"; then
29427 + ac_cv_prog_F77="$F77" # Let the user override the test.
29428 +else
29429 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29430 +for as_dir in $PATH
29432 + IFS=$as_save_IFS
29433 + test -z "$as_dir" && as_dir=.
29434 + for ac_exec_ext in '' $ac_executable_extensions; do
29435 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29436 + ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
29437 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29438 + break 2
29439 + fi
29440 +done
29441 +done
29445 +F77=$ac_cv_prog_F77
29446 +if test -n "$F77"; then
29447 + echo "$as_me:$LINENO: result: $F77" >&5
29448 +echo "${ECHO_T}$F77" >&6
29449 +else
29450 + echo "$as_me:$LINENO: result: no" >&5
29451 +echo "${ECHO_T}no" >&6
29454 + test -n "$F77" && break
29455 + done
29457 +if test -z "$F77"; then
29458 + ac_ct_F77=$F77
29459 + for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
29461 + # Extract the first word of "$ac_prog", so it can be a program name with args.
29462 +set dummy $ac_prog; ac_word=$2
29463 +echo "$as_me:$LINENO: checking for $ac_word" >&5
29464 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29465 +if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
29466 + echo $ECHO_N "(cached) $ECHO_C" >&6
29467 +else
29468 + if test -n "$ac_ct_F77"; then
29469 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
29470 +else
29471 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29472 +for as_dir in $PATH
29474 + IFS=$as_save_IFS
29475 + test -z "$as_dir" && as_dir=.
29476 + for ac_exec_ext in '' $ac_executable_extensions; do
29477 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29478 + ac_cv_prog_ac_ct_F77="$ac_prog"
29479 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29480 + break 2
29481 + fi
29482 +done
29483 +done
29487 +ac_ct_F77=$ac_cv_prog_ac_ct_F77
29488 +if test -n "$ac_ct_F77"; then
29489 + echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
29490 +echo "${ECHO_T}$ac_ct_F77" >&6
29491 +else
29492 + echo "$as_me:$LINENO: result: no" >&5
29493 +echo "${ECHO_T}no" >&6
29496 + test -n "$ac_ct_F77" && break
29497 +done
29499 + F77=$ac_ct_F77
29503 +# Provide some information about the compiler.
29504 +echo "$as_me:7043:" \
29505 + "checking for Fortran 77 compiler version" >&5
29506 +ac_compiler=`set X $ac_compile; echo $2`
29507 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
29508 + (eval $ac_compiler --version </dev/null >&5) 2>&5
29509 + ac_status=$?
29510 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29511 + (exit $ac_status); }
29512 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
29513 + (eval $ac_compiler -v </dev/null >&5) 2>&5
29514 + ac_status=$?
29515 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516 + (exit $ac_status); }
29517 +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
29518 + (eval $ac_compiler -V </dev/null >&5) 2>&5
29519 + ac_status=$?
29520 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 + (exit $ac_status); }
29522 +rm -f a.out
29524 +# If we don't use `.F' as extension, the preprocessor is not run on the
29525 +# input file. (Note that this only needs to work for GNU compilers.)
29526 +ac_save_ext=$ac_ext
29527 +ac_ext=F
29528 +echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
29529 +echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
29530 +if test "${ac_cv_f77_compiler_gnu+set}" = set; then
29531 + echo $ECHO_N "(cached) $ECHO_C" >&6
29532 +else
29533 + cat >conftest.$ac_ext <<_ACEOF
29534 + program main
29535 +#ifndef __GNUC__
29536 + choke me
29537 +#endif
29539 + end
29540 +_ACEOF
29541 +rm -f conftest.$ac_objext
29542 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29543 + (eval $ac_compile) 2>conftest.er1
29544 + ac_status=$?
29545 + grep -v '^ *+' conftest.er1 >conftest.err
29546 + rm -f conftest.er1
29547 + cat conftest.err >&5
29548 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 + (exit $ac_status); } &&
29550 + { ac_try='test -z "$ac_f77_werror_flag"
29551 + || test ! -s conftest.err'
29552 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29553 + (eval $ac_try) 2>&5
29554 + ac_status=$?
29555 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556 + (exit $ac_status); }; } &&
29557 + { ac_try='test -s conftest.$ac_objext'
29558 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29559 + (eval $ac_try) 2>&5
29560 + ac_status=$?
29561 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 + (exit $ac_status); }; }; then
29563 + ac_compiler_gnu=yes
29564 +else
29565 + echo "$as_me: failed program was:" >&5
29566 +sed 's/^/| /' conftest.$ac_ext >&5
29568 +ac_compiler_gnu=no
29570 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29571 +ac_cv_f77_compiler_gnu=$ac_compiler_gnu
29574 +echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
29575 +echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
29576 +ac_ext=$ac_save_ext
29577 +ac_test_FFLAGS=${FFLAGS+set}
29578 +ac_save_FFLAGS=$FFLAGS
29579 +FFLAGS=
29580 +echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
29581 +echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
29582 +if test "${ac_cv_prog_f77_g+set}" = set; then
29583 + echo $ECHO_N "(cached) $ECHO_C" >&6
29584 +else
29585 + FFLAGS=-g
29586 +cat >conftest.$ac_ext <<_ACEOF
29587 + program main
29589 + end
29590 +_ACEOF
29591 +rm -f conftest.$ac_objext
29592 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29593 + (eval $ac_compile) 2>conftest.er1
29594 + ac_status=$?
29595 + grep -v '^ *+' conftest.er1 >conftest.err
29596 + rm -f conftest.er1
29597 + cat conftest.err >&5
29598 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29599 + (exit $ac_status); } &&
29600 + { ac_try='test -z "$ac_f77_werror_flag"
29601 + || test ! -s conftest.err'
29602 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29603 + (eval $ac_try) 2>&5
29604 + ac_status=$?
29605 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29606 + (exit $ac_status); }; } &&
29607 + { ac_try='test -s conftest.$ac_objext'
29608 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29609 + (eval $ac_try) 2>&5
29610 + ac_status=$?
29611 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 + (exit $ac_status); }; }; then
29613 + ac_cv_prog_f77_g=yes
29614 +else
29615 + echo "$as_me: failed program was:" >&5
29616 +sed 's/^/| /' conftest.$ac_ext >&5
29618 +ac_cv_prog_f77_g=no
29620 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29623 +echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
29624 +echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
29625 +if test "$ac_test_FFLAGS" = set; then
29626 + FFLAGS=$ac_save_FFLAGS
29627 +elif test $ac_cv_prog_f77_g = yes; then
29628 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
29629 + FFLAGS="-g -O2"
29630 + else
29631 + FFLAGS="-g"
29632 + fi
29633 +else
29634 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
29635 + FFLAGS="-O2"
29636 + else
29637 + FFLAGS=
29638 + fi
29641 +G77=`test $ac_compiler_gnu = yes && echo yes`
29642 +ac_ext=c
29643 +ac_cpp='$CPP $CPPFLAGS'
29644 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29645 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29646 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
29650 +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
29652 +# find the maximum length of command line arguments
29653 +echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
29654 +echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
29655 +if test "${lt_cv_sys_max_cmd_len+set}" = set; then
29656 + echo $ECHO_N "(cached) $ECHO_C" >&6
29657 +else
29658 + i=0
29659 + teststring="ABCD"
29661 + case $build_os in
29662 + msdosdjgpp*)
29663 + # On DJGPP, this test can blow up pretty badly due to problems in libc
29664 + # (any single argument exceeding 2000 bytes causes a buffer overrun
29665 + # during glob expansion). Even if it were fixed, the result of this
29666 + # check would be larger than it should be.
29667 + lt_cv_sys_max_cmd_len=12288; # 12K is about right
29668 + ;;
29670 + gnu*)
29671 + # Under GNU Hurd, this test is not required because there is
29672 + # no limit to the length of command line arguments.
29673 + # Libtool will interpret -1 as no limit whatsoever
29674 + lt_cv_sys_max_cmd_len=-1;
29675 + ;;
29677 + cygwin* | mingw*)
29678 + # On Win9x/ME, this test blows up -- it succeeds, but takes
29679 + # about 5 minutes as the teststring grows exponentially.
29680 + # Worse, since 9x/ME are not pre-emptively multitasking,
29681 + # you end up with a "frozen" computer, even though with patience
29682 + # the test eventually succeeds (with a max line length of 256k).
29683 + # Instead, let's just punt: use the minimum linelength reported by
29684 + # all of the supported platforms: 8192 (on NT/2K/XP).
29685 + lt_cv_sys_max_cmd_len=8192;
29686 + ;;
29688 + amigaos*)
29689 + # On AmigaOS with pdksh, this test takes hours, literally.
29690 + # So we just punt and use a minimum line length of 8192.
29691 + lt_cv_sys_max_cmd_len=8192;
29692 + ;;
29694 + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
29695 + # This has been around since 386BSD, at least. Likely further.
29696 + if test -x /sbin/sysctl; then
29697 + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
29698 + elif test -x /usr/sbin/sysctl; then
29699 + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
29700 + else
29701 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
29702 + fi
29703 + # And add a safety zone
29704 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
29705 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
29706 + ;;
29708 + interix*)
29709 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
29710 + lt_cv_sys_max_cmd_len=196608
29711 + ;;
29713 + osf*)
29714 + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
29715 + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
29716 + # nice to cause kernel panics so lets avoid the loop below.
29717 + # First set a reasonable default.
29718 + lt_cv_sys_max_cmd_len=16384
29720 + if test -x /sbin/sysconfig; then
29721 + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
29722 + *1*) lt_cv_sys_max_cmd_len=-1 ;;
29723 + esac
29724 + fi
29725 + ;;
29726 + sco3.2v5*)
29727 + lt_cv_sys_max_cmd_len=102400
29728 + ;;
29729 + sysv5* | sco5v6* | sysv4.2uw2*)
29730 + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
29731 + if test -n "$kargmax"; then
29732 + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
29733 + else
29734 + lt_cv_sys_max_cmd_len=32768
29735 + fi
29736 + ;;
29737 + *)
29738 + # If test is not a shell built-in, we'll probably end up computing a
29739 + # maximum length that is only half of the actual maximum length, but
29740 + # we can't tell.
29741 + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
29742 + while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
29743 + = "XX$teststring") >/dev/null 2>&1 &&
29744 + new_result=`expr "X$teststring" : ".*" 2>&1` &&
29745 + lt_cv_sys_max_cmd_len=$new_result &&
29746 + test $i != 17 # 1/2 MB should be enough
29747 + do
29748 + i=`expr $i + 1`
29749 + teststring=$teststring$teststring
29750 + done
29751 + teststring=
29752 + # Add a significant safety factor because C++ compilers can tack on massive
29753 + # amounts of additional arguments before passing them to the linker.
29754 + # It appears as though 1/2 is a usable value.
29755 + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
29756 + ;;
29757 + esac
29761 +if test -n $lt_cv_sys_max_cmd_len ; then
29762 + echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
29763 +echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
29764 +else
29765 + echo "$as_me:$LINENO: result: none" >&5
29766 +echo "${ECHO_T}none" >&6
29772 +# Check for command to grab the raw symbol name followed by C symbol from nm.
29773 +echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
29774 +echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
29775 +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
29776 + echo $ECHO_N "(cached) $ECHO_C" >&6
29777 +else
29779 +# These are sane defaults that work on at least a few old systems.
29780 +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
29782 +# Character class describing NM global symbol codes.
29783 +symcode='[BCDEGRST]'
29785 +# Regexp to match symbols that can be accessed directly from C.
29786 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
29788 +# Transform an extracted symbol line into a proper C declaration
29789 +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
29791 +# Transform an extracted symbol line into symbol name and symbol address
29792 +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'"
29794 +# Define system-specific variables.
29795 +case $host_os in
29796 +aix*)
29797 + symcode='[BCDT]'
29798 + ;;
29799 +cygwin* | mingw* | pw32*)
29800 + symcode='[ABCDGISTW]'
29801 + ;;
29802 +hpux*) # Its linker distinguishes data from code symbols
29803 + if test "$host_cpu" = ia64; then
29804 + symcode='[ABCDEGRST]'
29805 + fi
29806 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
29807 + 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'"
29808 + ;;
29809 +linux*)
29810 + if test "$host_cpu" = ia64; then
29811 + symcode='[ABCDGIRSTW]'
29812 + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
29813 + 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'"
29814 + fi
29815 + ;;
29816 +irix* | nonstopux*)
29817 + symcode='[BCDEGRST]'
29818 + ;;
29819 +osf*)
29820 + symcode='[BCDEGQRST]'
29821 + ;;
29822 +solaris*)
29823 + symcode='[BDRT]'
29824 + ;;
29825 +sco3.2v5*)
29826 + symcode='[DT]'
29827 + ;;
29828 +sysv4.2uw2*)
29829 + symcode='[DT]'
29830 + ;;
29831 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
29832 + symcode='[ABDT]'
29833 + ;;
29834 +sysv4)
29835 + symcode='[DFNSTU]'
29836 + ;;
29837 +esac
29839 +# Handle CRLF in mingw tool chain
29840 +opt_cr=
29841 +case $build_os in
29842 +mingw*)
29843 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
29844 + ;;
29845 +esac
29847 +# If we're using GNU nm, then use its standard symbol codes.
29848 +case `$NM -V 2>&1` in
29849 +*GNU* | *'with BFD'*)
29850 + symcode='[ABCDGIRSTW]' ;;
29851 +esac
29853 +# Try without a prefix undercore, then with it.
29854 +for ac_symprfx in "" "_"; do
29856 + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
29857 + symxfrm="\\1 $ac_symprfx\\2 \\2"
29859 + # Write the raw and C identifiers.
29860 + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
29862 + # Check to see that the pipe works correctly.
29863 + pipe_works=no
29865 + rm -f conftest*
29866 + cat > conftest.$ac_ext <<EOF
29867 +#ifdef __cplusplus
29868 +extern "C" {
29869 +#endif
29870 +char nm_test_var;
29871 +void nm_test_func(){}
29872 +#ifdef __cplusplus
29874 +#endif
29875 +int main(){nm_test_var='a';nm_test_func();return(0);}
29876 +EOF
29878 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29879 + (eval $ac_compile) 2>&5
29880 + ac_status=$?
29881 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882 + (exit $ac_status); }; then
29883 + # Now try to grab the symbols.
29884 + nlist=conftest.nm
29885 + if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
29886 + (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
29887 + ac_status=$?
29888 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29889 + (exit $ac_status); } && test -s "$nlist"; then
29890 + # Try sorting and uniquifying the output.
29891 + if sort "$nlist" | uniq > "$nlist"T; then
29892 + mv -f "$nlist"T "$nlist"
29893 + else
29894 + rm -f "$nlist"T
29895 + fi
29897 + # Make sure that we snagged all the symbols we need.
29898 + if grep ' nm_test_var$' "$nlist" >/dev/null; then
29899 + if grep ' nm_test_func$' "$nlist" >/dev/null; then
29900 + cat <<EOF > conftest.$ac_ext
29901 +#ifdef __cplusplus
29902 +extern "C" {
29903 +#endif
29905 +EOF
29906 + # Now generate the symbol file.
29907 + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
29909 + cat <<EOF >> conftest.$ac_ext
29910 +#if defined (__STDC__) && __STDC__
29911 +# define lt_ptr_t void *
29912 +#else
29913 +# define lt_ptr_t char *
29914 +# define const
29915 +#endif
29917 +/* The mapping between symbol names and symbols. */
29918 +const struct {
29919 + const char *name;
29920 + lt_ptr_t address;
29922 +lt_preloaded_symbols[] =
29924 +EOF
29925 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
29926 + cat <<\EOF >> conftest.$ac_ext
29927 + {0, (lt_ptr_t) 0}
29930 +#ifdef __cplusplus
29932 +#endif
29933 +EOF
29934 + # Now try linking the two files.
29935 + mv conftest.$ac_objext conftstm.$ac_objext
29936 + lt_save_LIBS="$LIBS"
29937 + lt_save_CFLAGS="$CFLAGS"
29938 + LIBS="conftstm.$ac_objext"
29939 + CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
29940 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29941 + (eval $ac_link) 2>&5
29942 + ac_status=$?
29943 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
29945 + pipe_works=yes
29946 + fi
29947 + LIBS="$lt_save_LIBS"
29948 + CFLAGS="$lt_save_CFLAGS"
29949 + else
29950 + echo "cannot find nm_test_func in $nlist" >&5
29951 + fi
29952 + else
29953 + echo "cannot find nm_test_var in $nlist" >&5
29954 + fi
29955 + else
29956 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
29957 + fi
29958 + else
29959 + echo "$progname: failed program was:" >&5
29960 + cat conftest.$ac_ext >&5
29961 + fi
29962 + rm -f conftest* conftst*
29964 + # Do not use the global_symbol_pipe unless it works.
29965 + if test "$pipe_works" = yes; then
29966 + break
29967 + else
29968 + lt_cv_sys_global_symbol_pipe=
29969 + fi
29970 +done
29974 +if test -z "$lt_cv_sys_global_symbol_pipe"; then
29975 + lt_cv_sys_global_symbol_to_cdecl=
29977 +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
29978 + echo "$as_me:$LINENO: result: failed" >&5
29979 +echo "${ECHO_T}failed" >&6
29980 +else
29981 + echo "$as_me:$LINENO: result: ok" >&5
29982 +echo "${ECHO_T}ok" >&6
29985 +echo "$as_me:$LINENO: checking for objdir" >&5
29986 +echo $ECHO_N "checking for objdir... $ECHO_C" >&6
29987 +if test "${lt_cv_objdir+set}" = set; then
29988 + echo $ECHO_N "(cached) $ECHO_C" >&6
29989 +else
29990 + rm -f .libs 2>/dev/null
29991 +mkdir .libs 2>/dev/null
29992 +if test -d .libs; then
29993 + lt_cv_objdir=.libs
29994 +else
29995 + # MS-DOS does not allow filenames that begin with a dot.
29996 + lt_cv_objdir=_libs
29998 +rmdir .libs 2>/dev/null
30000 +echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
30001 +echo "${ECHO_T}$lt_cv_objdir" >&6
30002 +objdir=$lt_cv_objdir
30008 +case $host_os in
30009 +aix3*)
30010 + # AIX sometimes has problems with the GCC collect2 program. For some
30011 + # reason, if we set the COLLECT_NAMES environment variable, the problems
30012 + # vanish in a puff of smoke.
30013 + if test "X${COLLECT_NAMES+set}" != Xset; then
30014 + COLLECT_NAMES=
30015 + export COLLECT_NAMES
30016 + fi
30017 + ;;
30018 +esac
30020 +# Sed substitution that helps us do robust quoting. It backslashifies
30021 +# metacharacters that are still active within double-quoted strings.
30022 +Xsed='sed -e 1s/^X//'
30023 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
30025 +# Same as above, but do not quote variable references.
30026 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
30028 +# Sed substitution to delay expansion of an escaped shell variable in a
30029 +# double_quote_subst'ed string.
30030 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
30032 +# Sed substitution to avoid accidental globbing in evaled expressions
30033 +no_glob_subst='s/\*/\\\*/g'
30035 +# Constants:
30036 +rm="rm -f"
30038 +# Global variables:
30039 +default_ofile=libtool
30040 +can_build_shared=yes
30042 +# All known linkers require a `.a' archive for static linking (except MSVC,
30043 +# which needs '.lib').
30044 +libext=a
30045 +ltmain="$ac_aux_dir/ltmain.sh"
30046 +ofile="$default_ofile"
30047 +with_gnu_ld="$lt_cv_prog_gnu_ld"
30049 +if test -n "$ac_tool_prefix"; then
30050 + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
30051 +set dummy ${ac_tool_prefix}ar; ac_word=$2
30052 +echo "$as_me:$LINENO: checking for $ac_word" >&5
30053 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30054 +if test "${ac_cv_prog_AR+set}" = set; then
30055 + echo $ECHO_N "(cached) $ECHO_C" >&6
30056 +else
30057 + if test -n "$AR"; then
30058 + ac_cv_prog_AR="$AR" # Let the user override the test.
30059 +else
30060 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30061 +for as_dir in $PATH
30063 + IFS=$as_save_IFS
30064 + test -z "$as_dir" && as_dir=.
30065 + for ac_exec_ext in '' $ac_executable_extensions; do
30066 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30067 + ac_cv_prog_AR="${ac_tool_prefix}ar"
30068 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30069 + break 2
30070 + fi
30071 +done
30072 +done
30076 +AR=$ac_cv_prog_AR
30077 +if test -n "$AR"; then
30078 + echo "$as_me:$LINENO: result: $AR" >&5
30079 +echo "${ECHO_T}$AR" >&6
30080 +else
30081 + echo "$as_me:$LINENO: result: no" >&5
30082 +echo "${ECHO_T}no" >&6
30086 +if test -z "$ac_cv_prog_AR"; then
30087 + ac_ct_AR=$AR
30088 + # Extract the first word of "ar", so it can be a program name with args.
30089 +set dummy ar; ac_word=$2
30090 +echo "$as_me:$LINENO: checking for $ac_word" >&5
30091 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30092 +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
30093 + echo $ECHO_N "(cached) $ECHO_C" >&6
30094 +else
30095 + if test -n "$ac_ct_AR"; then
30096 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30097 +else
30098 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30099 +for as_dir in $PATH
30101 + IFS=$as_save_IFS
30102 + test -z "$as_dir" && as_dir=.
30103 + for ac_exec_ext in '' $ac_executable_extensions; do
30104 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30105 + ac_cv_prog_ac_ct_AR="ar"
30106 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30107 + break 2
30108 + fi
30109 +done
30110 +done
30112 + test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
30115 +ac_ct_AR=$ac_cv_prog_ac_ct_AR
30116 +if test -n "$ac_ct_AR"; then
30117 + echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
30118 +echo "${ECHO_T}$ac_ct_AR" >&6
30119 +else
30120 + echo "$as_me:$LINENO: result: no" >&5
30121 +echo "${ECHO_T}no" >&6
30124 + AR=$ac_ct_AR
30125 +else
30126 + AR="$ac_cv_prog_AR"
30129 +if test -n "$ac_tool_prefix"; then
30130 + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
30131 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
30132 +echo "$as_me:$LINENO: checking for $ac_word" >&5
30133 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30134 +if test "${ac_cv_prog_RANLIB+set}" = set; then
30135 + echo $ECHO_N "(cached) $ECHO_C" >&6
30136 +else
30137 + if test -n "$RANLIB"; then
30138 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
30139 +else
30140 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30141 +for as_dir in $PATH
30143 + IFS=$as_save_IFS
30144 + test -z "$as_dir" && as_dir=.
30145 + for ac_exec_ext in '' $ac_executable_extensions; do
30146 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30147 + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
30148 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30149 + break 2
30150 + fi
30151 +done
30152 +done
30156 +RANLIB=$ac_cv_prog_RANLIB
30157 +if test -n "$RANLIB"; then
30158 + echo "$as_me:$LINENO: result: $RANLIB" >&5
30159 +echo "${ECHO_T}$RANLIB" >&6
30160 +else
30161 + echo "$as_me:$LINENO: result: no" >&5
30162 +echo "${ECHO_T}no" >&6
30166 +if test -z "$ac_cv_prog_RANLIB"; then
30167 + ac_ct_RANLIB=$RANLIB
30168 + # Extract the first word of "ranlib", so it can be a program name with args.
30169 +set dummy ranlib; ac_word=$2
30170 +echo "$as_me:$LINENO: checking for $ac_word" >&5
30171 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30172 +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
30173 + echo $ECHO_N "(cached) $ECHO_C" >&6
30174 +else
30175 + if test -n "$ac_ct_RANLIB"; then
30176 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
30177 +else
30178 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30179 +for as_dir in $PATH
30181 + IFS=$as_save_IFS
30182 + test -z "$as_dir" && as_dir=.
30183 + for ac_exec_ext in '' $ac_executable_extensions; do
30184 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30185 + ac_cv_prog_ac_ct_RANLIB="ranlib"
30186 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30187 + break 2
30188 + fi
30189 +done
30190 +done
30192 + test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
30195 +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
30196 +if test -n "$ac_ct_RANLIB"; then
30197 + echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
30198 +echo "${ECHO_T}$ac_ct_RANLIB" >&6
30199 +else
30200 + echo "$as_me:$LINENO: result: no" >&5
30201 +echo "${ECHO_T}no" >&6
30204 + RANLIB=$ac_ct_RANLIB
30205 +else
30206 + RANLIB="$ac_cv_prog_RANLIB"
30209 +if test -n "$ac_tool_prefix"; then
30210 + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
30211 +set dummy ${ac_tool_prefix}strip; ac_word=$2
30212 +echo "$as_me:$LINENO: checking for $ac_word" >&5
30213 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30214 +if test "${ac_cv_prog_STRIP+set}" = set; then
30215 + echo $ECHO_N "(cached) $ECHO_C" >&6
30216 +else
30217 + if test -n "$STRIP"; then
30218 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
30219 +else
30220 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30221 +for as_dir in $PATH
30223 + IFS=$as_save_IFS
30224 + test -z "$as_dir" && as_dir=.
30225 + for ac_exec_ext in '' $ac_executable_extensions; do
30226 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30227 + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
30228 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30229 + break 2
30230 + fi
30231 +done
30232 +done
30236 +STRIP=$ac_cv_prog_STRIP
30237 +if test -n "$STRIP"; then
30238 + echo "$as_me:$LINENO: result: $STRIP" >&5
30239 +echo "${ECHO_T}$STRIP" >&6
30240 +else
30241 + echo "$as_me:$LINENO: result: no" >&5
30242 +echo "${ECHO_T}no" >&6
30246 +if test -z "$ac_cv_prog_STRIP"; then
30247 + ac_ct_STRIP=$STRIP
30248 + # Extract the first word of "strip", so it can be a program name with args.
30249 +set dummy strip; ac_word=$2
30250 +echo "$as_me:$LINENO: checking for $ac_word" >&5
30251 +echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
30252 +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
30253 + echo $ECHO_N "(cached) $ECHO_C" >&6
30254 +else
30255 + if test -n "$ac_ct_STRIP"; then
30256 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
30257 +else
30258 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30259 +for as_dir in $PATH
30261 + IFS=$as_save_IFS
30262 + test -z "$as_dir" && as_dir=.
30263 + for ac_exec_ext in '' $ac_executable_extensions; do
30264 + if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30265 + ac_cv_prog_ac_ct_STRIP="strip"
30266 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30267 + break 2
30268 + fi
30269 +done
30270 +done
30272 + test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
30275 +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
30276 +if test -n "$ac_ct_STRIP"; then
30277 + echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
30278 +echo "${ECHO_T}$ac_ct_STRIP" >&6
30279 +else
30280 + echo "$as_me:$LINENO: result: no" >&5
30281 +echo "${ECHO_T}no" >&6
30284 + STRIP=$ac_ct_STRIP
30285 +else
30286 + STRIP="$ac_cv_prog_STRIP"
30290 +old_CC="$CC"
30291 +old_CFLAGS="$CFLAGS"
30293 +# Set sane defaults for various variables
30294 +test -z "$AR" && AR=ar
30295 +test -z "$AR_FLAGS" && AR_FLAGS=cru
30296 +test -z "$AS" && AS=as
30297 +test -z "$CC" && CC=cc
30298 +test -z "$LTCC" && LTCC=$CC
30299 +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
30300 +test -z "$DLLTOOL" && DLLTOOL=dlltool
30301 +test -z "$LD" && LD=ld
30302 +test -z "$LN_S" && LN_S="ln -s"
30303 +test -z "$MAGIC_CMD" && MAGIC_CMD=file
30304 +test -z "$NM" && NM=nm
30305 +test -z "$SED" && SED=sed
30306 +test -z "$OBJDUMP" && OBJDUMP=objdump
30307 +test -z "$RANLIB" && RANLIB=:
30308 +test -z "$STRIP" && STRIP=:
30309 +test -z "$ac_objext" && ac_objext=o
30311 +# Determine commands to create old-style static archives.
30312 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
30313 +old_postinstall_cmds='chmod 644 $oldlib'
30314 +old_postuninstall_cmds=
30316 +if test -n "$RANLIB"; then
30317 + case $host_os in
30318 + openbsd*)
30319 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
30320 + ;;
30321 + *)
30322 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
30323 + ;;
30324 + esac
30325 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
30328 +for cc_temp in $compiler""; do
30329 + case $cc_temp in
30330 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30331 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
30332 + \-*) ;;
30333 + *) break;;
30334 + esac
30335 +done
30336 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
30339 +# Only perform the check for file, if the check method requires it
30340 +case $deplibs_check_method in
30341 +file_magic*)
30342 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
30343 + echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
30344 +echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
30345 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
30346 + echo $ECHO_N "(cached) $ECHO_C" >&6
30347 +else
30348 + case $MAGIC_CMD in
30349 +[\\/*] | ?:[\\/]*)
30350 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
30351 + ;;
30353 + lt_save_MAGIC_CMD="$MAGIC_CMD"
30354 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
30355 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
30356 + for ac_dir in $ac_dummy; do
30357 + IFS="$lt_save_ifs"
30358 + test -z "$ac_dir" && ac_dir=.
30359 + if test -f $ac_dir/${ac_tool_prefix}file; then
30360 + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
30361 + if test -n "$file_magic_test_file"; then
30362 + case $deplibs_check_method in
30363 + "file_magic "*)
30364 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
30365 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
30366 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
30367 + $EGREP "$file_magic_regex" > /dev/null; then
30369 else
30370 - ac_cv_path_install="$ac_dir/$ac_prog -c"
30371 - break 2
30372 + cat <<EOF 1>&2
30374 +*** Warning: the command libtool uses to detect shared libraries,
30375 +*** $file_magic_cmd, produces output that libtool cannot recognize.
30376 +*** The result is that libtool may fail to recognize shared libraries
30377 +*** as such. This will affect the creation of libtool libraries that
30378 +*** depend on shared libraries, but programs linked with such libtool
30379 +*** libraries will work regardless of this problem. Nevertheless, you
30380 +*** may want to report the problem to your system manager and/or to
30381 +*** bug-libtool@gnu.org
30383 +EOF
30384 + fi ;;
30385 + esac
30386 + fi
30387 + break
30388 + fi
30389 + done
30390 + IFS="$lt_save_ifs"
30391 + MAGIC_CMD="$lt_save_MAGIC_CMD"
30392 + ;;
30393 +esac
30396 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
30397 +if test -n "$MAGIC_CMD"; then
30398 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
30399 +echo "${ECHO_T}$MAGIC_CMD" >&6
30400 +else
30401 + echo "$as_me:$LINENO: result: no" >&5
30402 +echo "${ECHO_T}no" >&6
30405 +if test -z "$lt_cv_path_MAGIC_CMD"; then
30406 + if test -n "$ac_tool_prefix"; then
30407 + echo "$as_me:$LINENO: checking for file" >&5
30408 +echo $ECHO_N "checking for file... $ECHO_C" >&6
30409 +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
30410 + echo $ECHO_N "(cached) $ECHO_C" >&6
30411 +else
30412 + case $MAGIC_CMD in
30413 +[\\/*] | ?:[\\/]*)
30414 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
30415 + ;;
30417 + lt_save_MAGIC_CMD="$MAGIC_CMD"
30418 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
30419 + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
30420 + for ac_dir in $ac_dummy; do
30421 + IFS="$lt_save_ifs"
30422 + test -z "$ac_dir" && ac_dir=.
30423 + if test -f $ac_dir/file; then
30424 + lt_cv_path_MAGIC_CMD="$ac_dir/file"
30425 + if test -n "$file_magic_test_file"; then
30426 + case $deplibs_check_method in
30427 + "file_magic "*)
30428 + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
30429 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
30430 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
30431 + $EGREP "$file_magic_regex" > /dev/null; then
30433 + else
30434 + cat <<EOF 1>&2
30436 +*** Warning: the command libtool uses to detect shared libraries,
30437 +*** $file_magic_cmd, produces output that libtool cannot recognize.
30438 +*** The result is that libtool may fail to recognize shared libraries
30439 +*** as such. This will affect the creation of libtool libraries that
30440 +*** depend on shared libraries, but programs linked with such libtool
30441 +*** libraries will work regardless of this problem. Nevertheless, you
30442 +*** may want to report the problem to your system manager and/or to
30443 +*** bug-libtool@gnu.org
30445 +EOF
30446 + fi ;;
30447 + esac
30448 + fi
30449 + break
30450 + fi
30451 + done
30452 + IFS="$lt_save_ifs"
30453 + MAGIC_CMD="$lt_save_MAGIC_CMD"
30454 + ;;
30455 +esac
30458 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
30459 +if test -n "$MAGIC_CMD"; then
30460 + echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
30461 +echo "${ECHO_T}$MAGIC_CMD" >&6
30462 +else
30463 + echo "$as_me:$LINENO: result: no" >&5
30464 +echo "${ECHO_T}no" >&6
30467 + else
30468 + MAGIC_CMD=:
30469 + fi
30472 + fi
30473 + ;;
30474 +esac
30476 +enable_dlopen=no
30477 +enable_win32_dll=yes
30479 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
30480 +if test "${enable_libtool_lock+set}" = set; then
30481 + enableval="$enable_libtool_lock"
30483 +fi;
30484 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
30487 +# Check whether --with-pic or --without-pic was given.
30488 +if test "${with_pic+set}" = set; then
30489 + withval="$with_pic"
30490 + pic_mode="$withval"
30491 +else
30492 + pic_mode=default
30493 +fi;
30494 +test -z "$pic_mode" && pic_mode=default
30496 +# Use C for the default configuration in the libtool script
30497 +tagname=
30498 +lt_save_CC="$CC"
30499 +ac_ext=c
30500 +ac_cpp='$CPP $CPPFLAGS'
30501 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30502 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30503 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
30506 +# Source file extension for C test sources.
30507 +ac_ext=c
30509 +# Object file extension for compiled C test sources.
30510 +objext=o
30511 +objext=$objext
30513 +# Code to be used in simple compile tests
30514 +lt_simple_compile_test_code="int some_variable = 0;\n"
30516 +# Code to be used in simple link tests
30517 +lt_simple_link_test_code='int main(){return(0);}\n'
30520 +# If no C compiler was specified, use CC.
30521 +LTCC=${LTCC-"$CC"}
30523 +# If no C compiler flags were specified, use CFLAGS.
30524 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
30526 +# Allow CC to be a program name with arguments.
30527 +compiler=$CC
30530 +# save warnings/boilerplate of simple test code
30531 +ac_outfile=conftest.$ac_objext
30532 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
30533 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
30534 +_lt_compiler_boilerplate=`cat conftest.err`
30535 +$rm conftest*
30537 +ac_outfile=conftest.$ac_objext
30538 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
30539 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
30540 +_lt_linker_boilerplate=`cat conftest.err`
30541 +$rm conftest*
30545 +lt_prog_compiler_no_builtin_flag=
30547 +if test "$GCC" = yes; then
30548 + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
30551 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
30552 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
30553 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
30554 + echo $ECHO_N "(cached) $ECHO_C" >&6
30555 +else
30556 + lt_cv_prog_compiler_rtti_exceptions=no
30557 + ac_outfile=conftest.$ac_objext
30558 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30559 + lt_compiler_flag="-fno-rtti -fno-exceptions"
30560 + # Insert the option either (1) after the last *FLAGS variable, or
30561 + # (2) before a word containing "conftest.", or (3) at the end.
30562 + # Note that $ac_compile itself does not contain backslashes and begins
30563 + # with a dollar sign (not a hyphen), so the echo should work correctly.
30564 + # The option is referenced via a variable to avoid confusing sed.
30565 + lt_compile=`echo "$ac_compile" | $SED \
30566 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30567 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30568 + -e 's:$: $lt_compiler_flag:'`
30569 + (eval echo "\"\$as_me:8106: $lt_compile\"" >&5)
30570 + (eval "$lt_compile" 2>conftest.err)
30571 + ac_status=$?
30572 + cat conftest.err >&5
30573 + echo "$as_me:8110: \$? = $ac_status" >&5
30574 + if (exit $ac_status) && test -s "$ac_outfile"; then
30575 + # The compiler can only warn and ignore the option if not recognized
30576 + # So say no if there are warnings other than the usual output.
30577 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
30578 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
30579 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
30580 + lt_cv_prog_compiler_rtti_exceptions=yes
30581 + fi
30582 + fi
30583 + $rm conftest*
30586 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
30587 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
30589 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
30590 + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
30591 +else
30597 +lt_prog_compiler_wl=
30598 +lt_prog_compiler_pic=
30599 +lt_prog_compiler_static=
30601 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
30602 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
30604 + if test "$GCC" = yes; then
30605 + lt_prog_compiler_wl='-Wl,'
30606 + lt_prog_compiler_static='-static'
30608 + case $host_os in
30609 + aix*)
30610 + # All AIX code is PIC.
30611 + if test "$host_cpu" = ia64; then
30612 + # AIX 5 now supports IA64 processor
30613 + lt_prog_compiler_static='-Bstatic'
30614 + fi
30615 + ;;
30617 + amigaos*)
30618 + # FIXME: we need at least 68020 code to build shared libraries, but
30619 + # adding the `-m68020' flag to GCC prevents building anything better,
30620 + # like `-m68040'.
30621 + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
30622 + ;;
30624 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30625 + # PIC is the default for these OSes.
30626 + ;;
30628 + mingw* | pw32* | os2*)
30629 + # This hack is so that the source file can tell whether it is being
30630 + # built for inclusion in a dll (and should export symbols for example).
30631 + lt_prog_compiler_pic='-DDLL_EXPORT'
30632 + ;;
30634 + darwin* | rhapsody*)
30635 + # PIC is the default on this platform
30636 + # Common symbols not allowed in MH_DYLIB files
30637 + lt_prog_compiler_pic='-fno-common'
30638 + ;;
30640 + interix3*)
30641 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
30642 + # Instead, we relocate shared libraries at runtime.
30643 + ;;
30645 + msdosdjgpp*)
30646 + # Just because we use GCC doesn't mean we suddenly get shared libraries
30647 + # on systems that don't support them.
30648 + lt_prog_compiler_can_build_shared=no
30649 + enable_shared=no
30650 + ;;
30652 + sysv4*MP*)
30653 + if test -d /usr/nec; then
30654 + lt_prog_compiler_pic=-Kconform_pic
30655 + fi
30656 + ;;
30658 + hpux*)
30659 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30660 + # not for PA HP-UX.
30661 + case $host_cpu in
30662 + hppa*64*|ia64*)
30663 + # +Z the default
30664 + ;;
30665 + *)
30666 + lt_prog_compiler_pic='-fPIC'
30667 + ;;
30668 + esac
30669 + ;;
30671 + *)
30672 + lt_prog_compiler_pic='-fPIC'
30673 + ;;
30674 + esac
30675 + else
30676 + # PORTME Check for flag to pass linker flags through the system compiler.
30677 + case $host_os in
30678 + aix*)
30679 + lt_prog_compiler_wl='-Wl,'
30680 + if test "$host_cpu" = ia64; then
30681 + # AIX 5 now supports IA64 processor
30682 + lt_prog_compiler_static='-Bstatic'
30683 + else
30684 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
30685 + fi
30686 + ;;
30687 + darwin*)
30688 + # PIC is the default on this platform
30689 + # Common symbols not allowed in MH_DYLIB files
30690 + case $cc_basename in
30691 + xlc*)
30692 + lt_prog_compiler_pic='-qnocommon'
30693 + lt_prog_compiler_wl='-Wl,'
30694 + ;;
30695 + esac
30696 + ;;
30698 + mingw* | pw32* | os2*)
30699 + # This hack is so that the source file can tell whether it is being
30700 + # built for inclusion in a dll (and should export symbols for example).
30701 + lt_prog_compiler_pic='-DDLL_EXPORT'
30702 + ;;
30704 + hpux9* | hpux10* | hpux11*)
30705 + lt_prog_compiler_wl='-Wl,'
30706 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
30707 + # not for PA HP-UX.
30708 + case $host_cpu in
30709 + hppa*64*|ia64*)
30710 + # +Z the default
30711 + ;;
30712 + *)
30713 + lt_prog_compiler_pic='+Z'
30714 + ;;
30715 + esac
30716 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
30717 + lt_prog_compiler_static='${wl}-a ${wl}archive'
30718 + ;;
30720 + irix5* | irix6* | nonstopux*)
30721 + lt_prog_compiler_wl='-Wl,'
30722 + # PIC (with -KPIC) is the default.
30723 + lt_prog_compiler_static='-non_shared'
30724 + ;;
30726 + newsos6)
30727 + lt_prog_compiler_pic='-KPIC'
30728 + lt_prog_compiler_static='-Bstatic'
30729 + ;;
30731 + linux*)
30732 + case $cc_basename in
30733 + icc* | ecc*)
30734 + lt_prog_compiler_wl='-Wl,'
30735 + lt_prog_compiler_pic='-KPIC'
30736 + lt_prog_compiler_static='-static'
30737 + ;;
30738 + pgcc* | pgf77* | pgf90* | pgf95*)
30739 + # Portland Group compilers (*not* the Pentium gcc compiler,
30740 + # which looks to be a dead project)
30741 + lt_prog_compiler_wl='-Wl,'
30742 + lt_prog_compiler_pic='-fpic'
30743 + lt_prog_compiler_static='-Bstatic'
30744 + ;;
30745 + ccc*)
30746 + lt_prog_compiler_wl='-Wl,'
30747 + # All Alpha code is PIC.
30748 + lt_prog_compiler_static='-non_shared'
30749 + ;;
30750 + esac
30751 + ;;
30753 + osf3* | osf4* | osf5*)
30754 + lt_prog_compiler_wl='-Wl,'
30755 + # All OSF/1 code is PIC.
30756 + lt_prog_compiler_static='-non_shared'
30757 + ;;
30759 + solaris*)
30760 + lt_prog_compiler_pic='-KPIC'
30761 + lt_prog_compiler_static='-Bstatic'
30762 + case $cc_basename in
30763 + f77* | f90* | f95*)
30764 + lt_prog_compiler_wl='-Qoption ld ';;
30765 + *)
30766 + lt_prog_compiler_wl='-Wl,';;
30767 + esac
30768 + ;;
30770 + sunos4*)
30771 + lt_prog_compiler_wl='-Qoption ld '
30772 + lt_prog_compiler_pic='-PIC'
30773 + lt_prog_compiler_static='-Bstatic'
30774 + ;;
30776 + sysv4 | sysv4.2uw2* | sysv4.3*)
30777 + lt_prog_compiler_wl='-Wl,'
30778 + lt_prog_compiler_pic='-KPIC'
30779 + lt_prog_compiler_static='-Bstatic'
30780 + ;;
30782 + sysv4*MP*)
30783 + if test -d /usr/nec ;then
30784 + lt_prog_compiler_pic='-Kconform_pic'
30785 + lt_prog_compiler_static='-Bstatic'
30786 + fi
30787 + ;;
30789 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
30790 + lt_prog_compiler_wl='-Wl,'
30791 + lt_prog_compiler_pic='-KPIC'
30792 + lt_prog_compiler_static='-Bstatic'
30793 + ;;
30795 + unicos*)
30796 + lt_prog_compiler_wl='-Wl,'
30797 + lt_prog_compiler_can_build_shared=no
30798 + ;;
30800 + uts4*)
30801 + lt_prog_compiler_pic='-pic'
30802 + lt_prog_compiler_static='-Bstatic'
30803 + ;;
30805 + *)
30806 + lt_prog_compiler_can_build_shared=no
30807 + ;;
30808 + esac
30809 + fi
30811 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
30812 +echo "${ECHO_T}$lt_prog_compiler_pic" >&6
30815 +# Check to make sure the PIC flag actually works.
30817 +if test -n "$lt_prog_compiler_pic"; then
30819 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
30820 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
30821 +if test "${lt_prog_compiler_pic_works+set}" = set; then
30822 + echo $ECHO_N "(cached) $ECHO_C" >&6
30823 +else
30824 + lt_prog_compiler_pic_works=no
30825 + ac_outfile=conftest.$ac_objext
30826 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30827 + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
30828 + # Insert the option either (1) after the last *FLAGS variable, or
30829 + # (2) before a word containing "conftest.", or (3) at the end.
30830 + # Note that $ac_compile itself does not contain backslashes and begins
30831 + # with a dollar sign (not a hyphen), so the echo should work correctly.
30832 + # The option is referenced via a variable to avoid confusing sed.
30833 + lt_compile=`echo "$ac_compile" | $SED \
30834 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30835 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30836 + -e 's:$: $lt_compiler_flag:'`
30837 + (eval echo "\"\$as_me:8374: $lt_compile\"" >&5)
30838 + (eval "$lt_compile" 2>conftest.err)
30839 + ac_status=$?
30840 + cat conftest.err >&5
30841 + echo "$as_me:8378: \$? = $ac_status" >&5
30842 + if (exit $ac_status) && test -s "$ac_outfile"; then
30843 + # The compiler can only warn and ignore the option if not recognized
30844 + # So say no if there are warnings other than the usual output.
30845 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
30846 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
30847 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
30848 + lt_prog_compiler_pic_works=yes
30849 + fi
30850 + fi
30851 + $rm conftest*
30854 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
30855 +echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
30857 +if test x"$lt_prog_compiler_pic_works" = xyes; then
30858 + case $lt_prog_compiler_pic in
30859 + "" | " "*) ;;
30860 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
30861 + esac
30862 +else
30863 + lt_prog_compiler_pic=
30864 + lt_prog_compiler_can_build_shared=no
30868 +case $host_os in
30869 + # For platforms which do not support PIC, -DPIC is meaningless:
30870 + *djgpp*)
30871 + lt_prog_compiler_pic=
30872 + ;;
30873 + *)
30874 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
30875 + ;;
30876 +esac
30879 +# Check to make sure the static flag actually works.
30881 +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
30882 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
30883 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
30884 +if test "${lt_prog_compiler_static_works+set}" = set; then
30885 + echo $ECHO_N "(cached) $ECHO_C" >&6
30886 +else
30887 + lt_prog_compiler_static_works=no
30888 + save_LDFLAGS="$LDFLAGS"
30889 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
30890 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
30891 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
30892 + # The linker can only warn and ignore the option if not recognized
30893 + # So say no if there are warnings
30894 + if test -s conftest.err; then
30895 + # Append any errors to the config.log.
30896 + cat conftest.err 1>&5
30897 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
30898 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
30899 + if diff conftest.exp conftest.er2 >/dev/null; then
30900 + lt_prog_compiler_static_works=yes
30901 + fi
30902 + else
30903 + lt_prog_compiler_static_works=yes
30904 + fi
30905 + fi
30906 + $rm conftest*
30907 + LDFLAGS="$save_LDFLAGS"
30910 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
30911 +echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
30913 +if test x"$lt_prog_compiler_static_works" = xyes; then
30915 +else
30916 + lt_prog_compiler_static=
30920 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
30921 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
30922 +if test "${lt_cv_prog_compiler_c_o+set}" = set; then
30923 + echo $ECHO_N "(cached) $ECHO_C" >&6
30924 +else
30925 + lt_cv_prog_compiler_c_o=no
30926 + $rm -r conftest 2>/dev/null
30927 + mkdir conftest
30928 + cd conftest
30929 + mkdir out
30930 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
30932 + lt_compiler_flag="-o out/conftest2.$ac_objext"
30933 + # Insert the option either (1) after the last *FLAGS variable, or
30934 + # (2) before a word containing "conftest.", or (3) at the end.
30935 + # Note that $ac_compile itself does not contain backslashes and begins
30936 + # with a dollar sign (not a hyphen), so the echo should work correctly.
30937 + lt_compile=`echo "$ac_compile" | $SED \
30938 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
30939 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
30940 + -e 's:$: $lt_compiler_flag:'`
30941 + (eval echo "\"\$as_me:8478: $lt_compile\"" >&5)
30942 + (eval "$lt_compile" 2>out/conftest.err)
30943 + ac_status=$?
30944 + cat out/conftest.err >&5
30945 + echo "$as_me:8482: \$? = $ac_status" >&5
30946 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
30947 + then
30948 + # The compiler can only warn and ignore the option if not recognized
30949 + # So say no if there are warnings
30950 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
30951 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
30952 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
30953 + lt_cv_prog_compiler_c_o=yes
30954 + fi
30955 + fi
30956 + chmod u+w . 2>&5
30957 + $rm conftest*
30958 + # SGI C++ compiler will create directory out/ii_files/ for
30959 + # template instantiation
30960 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
30961 + $rm out/* && rmdir out
30962 + cd ..
30963 + rmdir conftest
30964 + $rm conftest*
30967 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
30968 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
30971 +hard_links="nottested"
30972 +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
30973 + # do not overwrite the value of need_locks provided by the user
30974 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
30975 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
30976 + hard_links=yes
30977 + $rm conftest*
30978 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
30979 + touch conftest.a
30980 + ln conftest.a conftest.b 2>&5 || hard_links=no
30981 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
30982 + echo "$as_me:$LINENO: result: $hard_links" >&5
30983 +echo "${ECHO_T}$hard_links" >&6
30984 + if test "$hard_links" = no; then
30985 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
30986 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
30987 + need_locks=warn
30988 + fi
30989 +else
30990 + need_locks=no
30993 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
30994 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
30996 + runpath_var=
30997 + allow_undefined_flag=
30998 + enable_shared_with_static_runtimes=no
30999 + archive_cmds=
31000 + archive_expsym_cmds=
31001 + old_archive_From_new_cmds=
31002 + old_archive_from_expsyms_cmds=
31003 + export_dynamic_flag_spec=
31004 + whole_archive_flag_spec=
31005 + thread_safe_flag_spec=
31006 + hardcode_libdir_flag_spec=
31007 + hardcode_libdir_flag_spec_ld=
31008 + hardcode_libdir_separator=
31009 + hardcode_direct=no
31010 + hardcode_minus_L=no
31011 + hardcode_shlibpath_var=unsupported
31012 + link_all_deplibs=unknown
31013 + hardcode_automatic=no
31014 + module_cmds=
31015 + module_expsym_cmds=
31016 + always_export_symbols=no
31017 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
31018 + # include_expsyms should be a list of space-separated symbols to be *always*
31019 + # included in the symbol list
31020 + include_expsyms=
31021 + # exclude_expsyms can be an extended regexp of symbols to exclude
31022 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
31023 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
31024 + # as well as any symbol that contains `d'.
31025 + exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
31026 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
31027 + # platforms (ab)use it in PIC code, but their linkers get confused if
31028 + # the symbol is explicitly referenced. Since portable code cannot
31029 + # rely on this symbol name, it's probably fine to never include it in
31030 + # preloaded symbol tables.
31031 + extract_expsyms_cmds=
31032 + # Just being paranoid about ensuring that cc_basename is set.
31033 + for cc_temp in $compiler""; do
31034 + case $cc_temp in
31035 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
31036 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
31037 + \-*) ;;
31038 + *) break;;
31039 + esac
31040 +done
31041 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
31043 + case $host_os in
31044 + cygwin* | mingw* | pw32*)
31045 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
31046 + # When not using gcc, we currently assume that we are using
31047 + # Microsoft Visual C++.
31048 + if test "$GCC" != yes; then
31049 + with_gnu_ld=no
31050 + fi
31051 + ;;
31052 + interix*)
31053 + # we just hope/assume this is gcc and not c89 (= MSVC++)
31054 + with_gnu_ld=yes
31055 + ;;
31056 + openbsd*)
31057 + with_gnu_ld=no
31058 + ;;
31059 + esac
31061 + ld_shlibs=yes
31062 + if test "$with_gnu_ld" = yes; then
31063 + # If archive_cmds runs LD, not CC, wlarc should be empty
31064 + wlarc='${wl}'
31066 + # Set some defaults for GNU ld with shared library support. These
31067 + # are reset later if shared libraries are not supported. Putting them
31068 + # here allows them to be overridden if necessary.
31069 + runpath_var=LD_RUN_PATH
31070 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
31071 + export_dynamic_flag_spec='${wl}--export-dynamic'
31072 + # ancient GNU ld didn't support --whole-archive et. al.
31073 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
31074 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
31075 + else
31076 + whole_archive_flag_spec=
31077 + fi
31078 + supports_anon_versioning=no
31079 + case `$LD -v 2>/dev/null` in
31080 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
31081 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
31082 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
31083 + *\ 2.11.*) ;; # other 2.11 versions
31084 + *) supports_anon_versioning=yes ;;
31085 + esac
31087 + # See if GNU ld supports shared libraries.
31088 + case $host_os in
31089 + aix3* | aix4* | aix5*)
31090 + # On AIX/PPC, the GNU linker is very broken
31091 + if test "$host_cpu" != ia64; then
31092 + ld_shlibs=no
31093 + cat <<EOF 1>&2
31095 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
31096 +*** to be unable to reliably create shared libraries on AIX.
31097 +*** Therefore, libtool is disabling shared libraries support. If you
31098 +*** really care for shared libraries, you may want to modify your PATH
31099 +*** so that a non-GNU linker is found, and then restart.
31101 +EOF
31102 + fi
31103 + ;;
31105 + amigaos*)
31106 + 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)'
31107 + hardcode_libdir_flag_spec='-L$libdir'
31108 + hardcode_minus_L=yes
31110 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
31111 + # that the semantics of dynamic libraries on AmigaOS, at least up
31112 + # to version 4, is to share data among multiple programs linked
31113 + # with the same dynamic library. Since this doesn't match the
31114 + # behavior of shared libraries on other platforms, we can't use
31115 + # them.
31116 + ld_shlibs=no
31117 + ;;
31119 + beos*)
31120 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
31121 + allow_undefined_flag=unsupported
31122 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
31123 + # support --undefined. This deserves some investigation. FIXME
31124 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31125 + else
31126 + ld_shlibs=no
31127 + fi
31128 + ;;
31130 + cygwin* | mingw* | pw32*)
31131 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
31132 + # as there is no search path for DLLs.
31133 + hardcode_libdir_flag_spec='-L$libdir'
31134 + allow_undefined_flag=unsupported
31135 + always_export_symbols=no
31136 + enable_shared_with_static_runtimes=yes
31137 + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
31139 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
31140 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31141 + # If the export-symbols file already is a .def file (1st line
31142 + # is EXPORTS), use it as is; otherwise, prepend...
31143 + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
31144 + cp $export_symbols $output_objdir/$soname.def;
31145 + else
31146 + echo EXPORTS > $output_objdir/$soname.def;
31147 + cat $export_symbols >> $output_objdir/$soname.def;
31148 + fi~
31149 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
31150 + else
31151 + ld_shlibs=no
31152 + fi
31153 + ;;
31155 + interix3*)
31156 + hardcode_direct=no
31157 + hardcode_shlibpath_var=no
31158 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
31159 + export_dynamic_flag_spec='${wl}-E'
31160 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
31161 + # Instead, shared libraries are loaded at an image base (0x10000000 by
31162 + # default) and relocated if they conflict, which is a slow very memory
31163 + # consuming and fragmenting process. To avoid this, we pick a random,
31164 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
31165 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
31166 + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
31167 + archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
31168 + ;;
31170 + linux*)
31171 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
31172 + tmp_addflag=
31173 + case $cc_basename,$host_cpu in
31174 + pgcc*) # Portland Group C compiler
31175 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
31176 + tmp_addflag=' $pic_flag'
31177 + ;;
31178 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
31179 + whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
31180 + tmp_addflag=' $pic_flag -Mnomain' ;;
31181 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
31182 + tmp_addflag=' -i_dynamic' ;;
31183 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
31184 + tmp_addflag=' -i_dynamic -nofor_main' ;;
31185 + ifc* | ifort*) # Intel Fortran compiler
31186 + tmp_addflag=' -nofor_main' ;;
31187 + esac
31188 + archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31190 + if test $supports_anon_versioning = yes; then
31191 + archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
31192 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
31193 + $echo "local: *; };" >> $output_objdir/$libname.ver~
31194 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
31195 + fi
31196 + else
31197 + ld_shlibs=no
31198 + fi
31199 + ;;
31201 + netbsd*)
31202 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
31203 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
31204 + wlarc=
31205 + else
31206 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31207 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31208 + fi
31209 + ;;
31211 + solaris*)
31212 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
31213 + ld_shlibs=no
31214 + cat <<EOF 1>&2
31216 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
31217 +*** create shared libraries on Solaris systems. Therefore, libtool
31218 +*** is disabling shared libraries support. We urge you to upgrade GNU
31219 +*** binutils to release 2.9.1 or newer. Another option is to modify
31220 +*** your PATH or compiler configuration so that the native linker is
31221 +*** used, and then restart.
31223 +EOF
31224 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
31225 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31226 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31227 + else
31228 + ld_shlibs=no
31229 + fi
31230 + ;;
31232 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
31233 + case `$LD -v 2>&1` in
31234 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
31235 + ld_shlibs=no
31236 + cat <<_LT_EOF 1>&2
31238 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
31239 +*** reliably create shared libraries on SCO systems. Therefore, libtool
31240 +*** is disabling shared libraries support. We urge you to upgrade GNU
31241 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
31242 +*** your PATH or compiler configuration so that the native linker is
31243 +*** used, and then restart.
31245 +_LT_EOF
31246 + ;;
31247 + *)
31248 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
31249 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
31250 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
31251 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
31252 + else
31253 + ld_shlibs=no
31255 + ;;
31256 + esac
31257 + ;;
31259 + sunos4*)
31260 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31261 + wlarc=
31262 + hardcode_direct=yes
31263 + hardcode_shlibpath_var=no
31264 + ;;
31266 + *)
31267 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
31268 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
31269 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
31270 + else
31271 + ld_shlibs=no
31272 + fi
31273 + ;;
31274 + esac
31276 + if test "$ld_shlibs" = no; then
31277 + runpath_var=
31278 + hardcode_libdir_flag_spec=
31279 + export_dynamic_flag_spec=
31280 + whole_archive_flag_spec=
31281 + fi
31282 + else
31283 + # PORTME fill in a description of your system's linker (not GNU ld)
31284 + case $host_os in
31285 + aix3*)
31286 + allow_undefined_flag=unsupported
31287 + always_export_symbols=yes
31288 + 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'
31289 + # Note: this linker hardcodes the directories in LIBPATH if there
31290 + # are no directories specified by -L.
31291 + hardcode_minus_L=yes
31292 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
31293 + # Neither direct hardcoding nor static linking is supported with a
31294 + # broken collect2.
31295 + hardcode_direct=unsupported
31296 + fi
31297 + ;;
31299 + aix4* | aix5*)
31300 + if test "$host_cpu" = ia64; then
31301 + # On IA64, the linker does run time linking by default, so we don't
31302 + # have to do anything special.
31303 + aix_use_runtimelinking=no
31304 + exp_sym_flag='-Bexport'
31305 + no_entry_flag=""
31306 + else
31307 + # If we're using GNU nm, then we don't want the "-C" option.
31308 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
31309 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
31310 + 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'
31311 + else
31312 + 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'
31314 - done
31315 + aix_use_runtimelinking=no
31317 + # Test if we are trying to use run time linking or normal
31318 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
31319 + # need to do runtime linking.
31320 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
31321 + for ld_flag in $LDFLAGS; do
31322 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
31323 + aix_use_runtimelinking=yes
31324 + break
31325 + fi
31326 + done
31327 + ;;
31328 + esac
31330 + exp_sym_flag='-bexport'
31331 + no_entry_flag='-bnoentry'
31332 + fi
31334 + # When large executables or shared objects are built, AIX ld can
31335 + # have problems creating the table of contents. If linking a library
31336 + # or program results in "error TOC overflow" add -mminimal-toc to
31337 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
31338 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
31340 + archive_cmds=''
31341 + hardcode_direct=yes
31342 + hardcode_libdir_separator=':'
31343 + link_all_deplibs=yes
31345 + if test "$GCC" = yes; then
31346 + case $host_os in aix4.[012]|aix4.[012].*)
31347 + # We only want to do this on AIX 4.2 and lower, the check
31348 + # below for broken collect2 doesn't work under 4.3+
31349 + collect2name=`${CC} -print-prog-name=collect2`
31350 + if test -f "$collect2name" && \
31351 + strings "$collect2name" | grep resolve_lib_name >/dev/null
31352 + then
31353 + # We have reworked collect2
31354 + hardcode_direct=yes
31355 + else
31356 + # We have old collect2
31357 + hardcode_direct=unsupported
31358 + # It fails to find uninstalled libraries when the uninstalled
31359 + # path is not listed in the libpath. Setting hardcode_minus_L
31360 + # to unsupported forces relinking
31361 + hardcode_minus_L=yes
31362 + hardcode_libdir_flag_spec='-L$libdir'
31363 + hardcode_libdir_separator=
31364 + fi
31365 + ;;
31366 + esac
31367 + shared_flag='-shared'
31368 + if test "$aix_use_runtimelinking" = yes; then
31369 + shared_flag="$shared_flag "'${wl}-G'
31370 + fi
31371 + else
31372 + # not using gcc
31373 + if test "$host_cpu" = ia64; then
31374 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
31375 + # chokes on -Wl,-G. The following line is correct:
31376 + shared_flag='-G'
31377 + else
31378 + if test "$aix_use_runtimelinking" = yes; then
31379 + shared_flag='${wl}-G'
31380 + else
31381 + shared_flag='${wl}-bM:SRE'
31382 + fi
31383 + fi
31384 + fi
31386 + # It seems that -bexpall does not export symbols beginning with
31387 + # underscore (_), so it is better to generate a list of symbols to export.
31388 + always_export_symbols=yes
31389 + if test "$aix_use_runtimelinking" = yes; then
31390 + # Warning - without using the other runtime loading flags (-brtl),
31391 + # -berok will link without error, but may produce a broken library.
31392 + allow_undefined_flag='-berok'
31393 + # Determine the default libpath from the value encoded in an empty executable.
31394 + cat >conftest.$ac_ext <<_ACEOF
31395 +/* confdefs.h. */
31396 +_ACEOF
31397 +cat confdefs.h >>conftest.$ac_ext
31398 +cat >>conftest.$ac_ext <<_ACEOF
31399 +/* end confdefs.h. */
31401 +int
31402 +main ()
31406 + return 0;
31408 +_ACEOF
31409 +rm -f conftest.$ac_objext conftest$ac_exeext
31410 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31411 + (eval $ac_link) 2>conftest.er1
31412 + ac_status=$?
31413 + grep -v '^ *+' conftest.er1 >conftest.err
31414 + rm -f conftest.er1
31415 + cat conftest.err >&5
31416 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31417 + (exit $ac_status); } &&
31418 + { ac_try='test -z "$ac_c_werror_flag"
31419 + || test ! -s conftest.err'
31420 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31421 + (eval $ac_try) 2>&5
31422 + ac_status=$?
31423 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31424 + (exit $ac_status); }; } &&
31425 + { ac_try='test -s conftest$ac_exeext'
31426 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 + (eval $ac_try) 2>&5
31428 + ac_status=$?
31429 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 + (exit $ac_status); }; }; then
31432 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
31433 +}'`
31434 +# Check for a 64-bit object if we didn't find anything.
31435 +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; }
31436 +}'`; fi
31437 +else
31438 + echo "$as_me: failed program was:" >&5
31439 +sed 's/^/| /' conftest.$ac_ext >&5
31442 +rm -f conftest.err conftest.$ac_objext \
31443 + conftest$ac_exeext conftest.$ac_ext
31444 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31446 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
31447 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
31448 + else
31449 + if test "$host_cpu" = ia64; then
31450 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
31451 + allow_undefined_flag="-z nodefs"
31452 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
31453 + else
31454 + # Determine the default libpath from the value encoded in an empty executable.
31455 + cat >conftest.$ac_ext <<_ACEOF
31456 +/* confdefs.h. */
31457 +_ACEOF
31458 +cat confdefs.h >>conftest.$ac_ext
31459 +cat >>conftest.$ac_ext <<_ACEOF
31460 +/* end confdefs.h. */
31462 +int
31463 +main ()
31467 + return 0;
31469 +_ACEOF
31470 +rm -f conftest.$ac_objext conftest$ac_exeext
31471 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31472 + (eval $ac_link) 2>conftest.er1
31473 + ac_status=$?
31474 + grep -v '^ *+' conftest.er1 >conftest.err
31475 + rm -f conftest.er1
31476 + cat conftest.err >&5
31477 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 + (exit $ac_status); } &&
31479 + { ac_try='test -z "$ac_c_werror_flag"
31480 + || test ! -s conftest.err'
31481 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31482 + (eval $ac_try) 2>&5
31483 + ac_status=$?
31484 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31485 + (exit $ac_status); }; } &&
31486 + { ac_try='test -s conftest$ac_exeext'
31487 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31488 + (eval $ac_try) 2>&5
31489 + ac_status=$?
31490 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 + (exit $ac_status); }; }; then
31493 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
31494 +}'`
31495 +# Check for a 64-bit object if we didn't find anything.
31496 +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; }
31497 +}'`; fi
31498 +else
31499 + echo "$as_me: failed program was:" >&5
31500 +sed 's/^/| /' conftest.$ac_ext >&5
31503 +rm -f conftest.err conftest.$ac_objext \
31504 + conftest$ac_exeext conftest.$ac_ext
31505 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
31507 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
31508 + # Warning - without using the other run time loading flags,
31509 + # -berok will link without error, but may produce a broken library.
31510 + no_undefined_flag=' ${wl}-bernotok'
31511 + allow_undefined_flag=' ${wl}-berok'
31512 + # Exported symbols can be pulled into shared objects from archives
31513 + whole_archive_flag_spec='$convenience'
31514 + archive_cmds_need_lc=yes
31515 + # This is similar to how AIX traditionally builds its shared libraries.
31516 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
31517 + fi
31518 + fi
31519 + ;;
31521 + amigaos*)
31522 + 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)'
31523 + hardcode_libdir_flag_spec='-L$libdir'
31524 + hardcode_minus_L=yes
31525 + # see comment about different semantics on the GNU ld section
31526 + ld_shlibs=no
31527 + ;;
31529 + bsdi[45]*)
31530 + export_dynamic_flag_spec=-rdynamic
31531 + ;;
31533 + cygwin* | mingw* | pw32*)
31534 + # When not using gcc, we currently assume that we are using
31535 + # Microsoft Visual C++.
31536 + # hardcode_libdir_flag_spec is actually meaningless, as there is
31537 + # no search path for DLLs.
31538 + hardcode_libdir_flag_spec=' '
31539 + allow_undefined_flag=unsupported
31540 + # Tell ltmain to make .lib files, not .a files.
31541 + libext=lib
31542 + # Tell ltmain to make .dll files, not .so files.
31543 + shrext_cmds=".dll"
31544 + # FIXME: Setting linknames here is a bad hack.
31545 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
31546 + # The linker will automatically build a .lib file if we build a DLL.
31547 + old_archive_From_new_cmds='true'
31548 + # FIXME: Should let the user specify the lib program.
31549 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
31550 + fix_srcfile_path='`cygpath -w "$srcfile"`'
31551 + enable_shared_with_static_runtimes=yes
31552 + ;;
31554 + darwin* | rhapsody*)
31555 + case $host_os in
31556 + rhapsody* | darwin1.[012])
31557 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
31558 + ;;
31559 + *) # Darwin 1.3 on
31560 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
31561 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
31562 + else
31563 + case ${MACOSX_DEPLOYMENT_TARGET} in
31564 + 10.[012])
31565 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
31566 + ;;
31567 + 10.*)
31568 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
31569 + ;;
31570 + esac
31571 + fi
31572 + ;;
31573 + esac
31574 + archive_cmds_need_lc=no
31575 + hardcode_direct=no
31576 + hardcode_automatic=yes
31577 + hardcode_shlibpath_var=unsupported
31578 + whole_archive_flag_spec=''
31579 + link_all_deplibs=yes
31580 + if test "$GCC" = yes ; then
31581 + output_verbose_link_cmd='echo'
31582 + archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
31583 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
31584 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
31585 + 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}'
31586 + 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}'
31587 + else
31588 + case $cc_basename in
31589 + xlc*)
31590 + output_verbose_link_cmd='echo'
31591 + archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
31592 + module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
31593 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
31594 + archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
31595 + 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}'
31596 + ;;
31597 + *)
31598 + ld_shlibs=no
31599 + ;;
31600 + esac
31601 + fi
31602 + ;;
31604 + dgux*)
31605 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31606 + hardcode_libdir_flag_spec='-L$libdir'
31607 + hardcode_shlibpath_var=no
31608 + ;;
31610 + freebsd1*)
31611 + ld_shlibs=no
31612 + ;;
31614 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
31615 + # support. Future versions do this automatically, but an explicit c++rt0.o
31616 + # does not break anything, and helps significantly (at the cost of a little
31617 + # extra space).
31618 + freebsd2.2*)
31619 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
31620 + hardcode_libdir_flag_spec='-R$libdir'
31621 + hardcode_direct=yes
31622 + hardcode_shlibpath_var=no
31623 + ;;
31625 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
31626 + freebsd2*)
31627 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31628 + hardcode_direct=yes
31629 + hardcode_minus_L=yes
31630 + hardcode_shlibpath_var=no
31631 + ;;
31633 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
31634 + freebsd* | kfreebsd*-gnu | dragonfly*)
31635 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
31636 + hardcode_libdir_flag_spec='-R$libdir'
31637 + hardcode_direct=yes
31638 + hardcode_shlibpath_var=no
31639 + ;;
31641 + hpux9*)
31642 + if test "$GCC" = yes; then
31643 + 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'
31644 + else
31645 + 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'
31646 + fi
31647 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
31648 + hardcode_libdir_separator=:
31649 + hardcode_direct=yes
31651 + # hardcode_minus_L: Not really in the search PATH,
31652 + # but as the default location of the library.
31653 + hardcode_minus_L=yes
31654 + export_dynamic_flag_spec='${wl}-E'
31655 + ;;
31657 + hpux10*)
31658 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31659 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31660 + else
31661 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
31662 + fi
31663 + if test "$with_gnu_ld" = no; then
31664 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
31665 + hardcode_libdir_separator=:
31667 + hardcode_direct=yes
31668 + export_dynamic_flag_spec='${wl}-E'
31670 + # hardcode_minus_L: Not really in the search PATH,
31671 + # but as the default location of the library.
31672 + hardcode_minus_L=yes
31673 + fi
31674 + ;;
31676 + hpux11*)
31677 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31678 + case $host_cpu in
31679 + hppa*64*)
31680 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31681 + ;;
31682 + ia64*)
31683 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31684 + ;;
31685 + *)
31686 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31687 + ;;
31688 + esac
31689 + else
31690 + case $host_cpu in
31691 + hppa*64*)
31692 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31693 + ;;
31694 + ia64*)
31695 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31696 + ;;
31697 + *)
31698 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31699 + ;;
31700 + esac
31701 + fi
31702 + if test "$with_gnu_ld" = no; then
31703 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
31704 + hardcode_libdir_separator=:
31706 + case $host_cpu in
31707 + hppa*64*|ia64*)
31708 + hardcode_libdir_flag_spec_ld='+b $libdir'
31709 + hardcode_direct=no
31710 + hardcode_shlibpath_var=no
31711 + ;;
31712 + *)
31713 + hardcode_direct=yes
31714 + export_dynamic_flag_spec='${wl}-E'
31716 + # hardcode_minus_L: Not really in the search PATH,
31717 + # but as the default location of the library.
31718 + hardcode_minus_L=yes
31719 + ;;
31720 + esac
31721 + fi
31722 + ;;
31724 + irix5* | irix6* | nonstopux*)
31725 + if test "$GCC" = yes; then
31726 + 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'
31727 + else
31728 + 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'
31729 + hardcode_libdir_flag_spec_ld='-rpath $libdir'
31730 + fi
31731 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31732 + hardcode_libdir_separator=:
31733 + link_all_deplibs=yes
31734 + ;;
31736 + netbsd*)
31737 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
31738 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
31739 + else
31740 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
31741 + fi
31742 + hardcode_libdir_flag_spec='-R$libdir'
31743 + hardcode_direct=yes
31744 + hardcode_shlibpath_var=no
31745 + ;;
31747 + newsos6)
31748 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31749 + hardcode_direct=yes
31750 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31751 + hardcode_libdir_separator=:
31752 + hardcode_shlibpath_var=no
31753 + ;;
31755 + openbsd*)
31756 + hardcode_direct=yes
31757 + hardcode_shlibpath_var=no
31758 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
31759 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31760 + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
31761 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
31762 + export_dynamic_flag_spec='${wl}-E'
31763 + else
31764 + case $host_os in
31765 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
31766 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31767 + hardcode_libdir_flag_spec='-R$libdir'
31768 + ;;
31769 + *)
31770 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31771 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
31772 + ;;
31773 + esac
31774 + fi
31775 + ;;
31777 + os2*)
31778 + hardcode_libdir_flag_spec='-L$libdir'
31779 + hardcode_minus_L=yes
31780 + allow_undefined_flag=unsupported
31781 + 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'
31782 + old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
31783 + ;;
31785 + osf3*)
31786 + if test "$GCC" = yes; then
31787 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
31788 + 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'
31789 + else
31790 + allow_undefined_flag=' -expect_unresolved \*'
31791 + 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'
31792 + fi
31793 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31794 + hardcode_libdir_separator=:
31795 + ;;
31797 + osf4* | osf5*) # as osf3* with the addition of -msym flag
31798 + if test "$GCC" = yes; then
31799 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
31800 + 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'
31801 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31802 + else
31803 + allow_undefined_flag=' -expect_unresolved \*'
31804 + 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'
31805 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
31806 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
31808 + # Both c and cxx compiler support -rpath directly
31809 + hardcode_libdir_flag_spec='-rpath $libdir'
31810 + fi
31811 + hardcode_libdir_separator=:
31812 + ;;
31814 + solaris*)
31815 + no_undefined_flag=' -z text'
31816 + if test "$GCC" = yes; then
31817 + wlarc='${wl}'
31818 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31819 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
31820 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
31821 + else
31822 + wlarc=''
31823 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
31824 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
31825 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
31826 + fi
31827 + hardcode_libdir_flag_spec='-R$libdir'
31828 + hardcode_shlibpath_var=no
31829 + case $host_os in
31830 + solaris2.[0-5] | solaris2.[0-5].*) ;;
31831 + *)
31832 + # The compiler driver will combine linker options so we
31833 + # cannot just pass the convience library names through
31834 + # without $wl, iff we do not link with $LD.
31835 + # Luckily, gcc supports the same syntax we need for Sun Studio.
31836 + # Supported since Solaris 2.6 (maybe 2.5.1?)
31837 + case $wlarc in
31838 + '')
31839 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
31840 + *)
31841 + whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
31842 + esac ;;
31843 + esac
31844 + link_all_deplibs=yes
31845 + ;;
31847 + sunos4*)
31848 + if test "x$host_vendor" = xsequent; then
31849 + # Use $CC to link under sequent, because it throws in some extra .o
31850 + # files that make .init and .fini sections work.
31851 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
31852 + else
31853 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
31854 + fi
31855 + hardcode_libdir_flag_spec='-L$libdir'
31856 + hardcode_direct=yes
31857 + hardcode_minus_L=yes
31858 + hardcode_shlibpath_var=no
31859 + ;;
31861 + sysv4)
31862 + case $host_vendor in
31863 + sni)
31864 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31865 + hardcode_direct=yes # is this really true???
31866 + ;;
31867 + siemens)
31868 + ## LD is ld it makes a PLAMLIB
31869 + ## CC just makes a GrossModule.
31870 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
31871 + reload_cmds='$CC -r -o $output$reload_objs'
31872 + hardcode_direct=no
31873 + ;;
31874 + motorola)
31875 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31876 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
31877 + ;;
31878 + esac
31879 + runpath_var='LD_RUN_PATH'
31880 + hardcode_shlibpath_var=no
31881 + ;;
31883 + sysv4.3*)
31884 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31885 + hardcode_shlibpath_var=no
31886 + export_dynamic_flag_spec='-Bexport'
31887 + ;;
31889 + sysv4*MP*)
31890 + if test -d /usr/nec; then
31891 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31892 + hardcode_shlibpath_var=no
31893 + runpath_var=LD_RUN_PATH
31894 + hardcode_runpath_var=yes
31895 + ld_shlibs=yes
31896 + fi
31897 + ;;
31899 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
31900 + no_undefined_flag='${wl}-z,text'
31901 + archive_cmds_need_lc=no
31902 + hardcode_shlibpath_var=no
31903 + runpath_var='LD_RUN_PATH'
31905 + if test "$GCC" = yes; then
31906 + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31907 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31908 + else
31909 + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31910 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
31911 + fi
31912 + ;;
31914 + sysv5* | sco3.2v5* | sco5v6*)
31915 + # Note: We can NOT use -z defs as we might desire, because we do not
31916 + # link with -lc, and that would cause any symbols used from libc to
31917 + # always be unresolved, which means just about no library would
31918 + # ever link correctly. If we're not using GNU ld we use -z text
31919 + # though, which does catch some bad symbols but isn't as heavy-handed
31920 + # as -z defs.
31921 + no_undefined_flag='${wl}-z,text'
31922 + allow_undefined_flag='${wl}-z,nodefs'
31923 + archive_cmds_need_lc=no
31924 + hardcode_shlibpath_var=no
31925 + hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
31926 + hardcode_libdir_separator=':'
31927 + link_all_deplibs=yes
31928 + export_dynamic_flag_spec='${wl}-Bexport'
31929 + runpath_var='LD_RUN_PATH'
31931 + if test "$GCC" = yes; then
31932 + archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31933 + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31934 + else
31935 + archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31936 + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
31937 + fi
31938 + ;;
31940 + uts4*)
31941 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31942 + hardcode_libdir_flag_spec='-L$libdir'
31943 + hardcode_shlibpath_var=no
31944 + ;;
31946 + *)
31947 + ld_shlibs=no
31949 esac
31950 - done
31951 - IFS="$ac_save_IFS"
31952 + fi
31954 +echo "$as_me:$LINENO: result: $ld_shlibs" >&5
31955 +echo "${ECHO_T}$ld_shlibs" >&6
31956 +test "$ld_shlibs" = no && can_build_shared=no
31959 +# Do we need to explicitly link libc?
31961 +case "x$archive_cmds_need_lc" in
31962 +x|xyes)
31963 + # Assume -lc should be added
31964 + archive_cmds_need_lc=yes
31966 + if test "$enable_shared" = yes && test "$GCC" = yes; then
31967 + case $archive_cmds in
31968 + *'~'*)
31969 + # FIXME: we may have to deal with multi-command sequences.
31970 + ;;
31971 + '$CC '*)
31972 + # Test whether the compiler implicitly links with -lc since on some
31973 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
31974 + # to ld, don't add -lc before -lgcc.
31975 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
31976 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
31977 + $rm conftest*
31978 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
31980 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31981 + (eval $ac_compile) 2>&5
31982 + ac_status=$?
31983 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 + (exit $ac_status); } 2>conftest.err; then
31985 + soname=conftest
31986 + lib=conftest
31987 + libobjs=conftest.$ac_objext
31988 + deplibs=
31989 + wl=$lt_prog_compiler_wl
31990 + pic_flag=$lt_prog_compiler_pic
31991 + compiler_flags=-v
31992 + linker_flags=-v
31993 + verstring=
31994 + output_objdir=.
31995 + libname=conftest
31996 + lt_save_allow_undefined_flag=$allow_undefined_flag
31997 + allow_undefined_flag=
31998 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
31999 + (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
32000 + ac_status=$?
32001 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 + (exit $ac_status); }
32003 + then
32004 + archive_cmds_need_lc=no
32005 + else
32006 + archive_cmds_need_lc=yes
32007 + fi
32008 + allow_undefined_flag=$lt_save_allow_undefined_flag
32009 + else
32010 + cat conftest.err 1>&5
32011 + fi
32012 + $rm conftest*
32013 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
32014 +echo "${ECHO_T}$archive_cmds_need_lc" >&6
32015 + ;;
32016 + esac
32017 + fi
32018 + ;;
32019 +esac
32021 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
32022 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
32023 +library_names_spec=
32024 +libname_spec='lib$name'
32025 +soname_spec=
32026 +shrext_cmds=".so"
32027 +postinstall_cmds=
32028 +postuninstall_cmds=
32029 +finish_cmds=
32030 +finish_eval=
32031 +shlibpath_var=
32032 +shlibpath_overrides_runpath=unknown
32033 +version_type=none
32034 +dynamic_linker="$host_os ld.so"
32035 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
32036 +if test "$GCC" = yes; then
32037 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
32038 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
32039 + # if the path contains ";" then we assume it to be the separator
32040 + # otherwise default to the standard path separator (i.e. ":") - it is
32041 + # assumed that no part of a normal pathname contains ";" but that should
32042 + # okay in the real world where ";" in dirpaths is itself problematic.
32043 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
32044 + else
32045 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
32046 + fi
32047 +else
32048 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
32050 - if test "${ac_cv_path_install+set}" = set; then
32051 - INSTALL="$ac_cv_path_install"
32052 +need_lib_prefix=unknown
32053 +hardcode_into_libs=no
32055 +# when you set need_version to no, make sure it does not cause -set_version
32056 +# flags to be left without arguments
32057 +need_version=unknown
32059 +case $host_os in
32060 +aix3*)
32061 + version_type=linux
32062 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
32063 + shlibpath_var=LIBPATH
32065 + # AIX 3 has no versioning support, so we append a major version to the name.
32066 + soname_spec='${libname}${release}${shared_ext}$major'
32067 + ;;
32069 +aix4* | aix5*)
32070 + version_type=linux
32071 + need_lib_prefix=no
32072 + need_version=no
32073 + hardcode_into_libs=yes
32074 + if test "$host_cpu" = ia64; then
32075 + # AIX 5 supports IA64
32076 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
32077 + shlibpath_var=LD_LIBRARY_PATH
32078 else
32079 - # As a last resort, use the slow shell script. We don't cache a
32080 - # path for INSTALL within a source directory, because that will
32081 - # break other packages using the cache if that directory is
32082 - # removed, or if the path is relative.
32083 - INSTALL="$ac_install_sh"
32084 + # With GCC up to 2.95.x, collect2 would create an import file
32085 + # for dependence libraries. The import file would start with
32086 + # the line `#! .'. This would cause the generated library to
32087 + # depend on `.', always an invalid library. This was fixed in
32088 + # development snapshots of GCC prior to 3.0.
32089 + case $host_os in
32090 + aix4 | aix4.[01] | aix4.[01].*)
32091 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
32092 + echo ' yes '
32093 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
32095 + else
32096 + can_build_shared=no
32097 + fi
32098 + ;;
32099 + esac
32100 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
32101 + # soname into executable. Probably we can add versioning support to
32102 + # collect2, so additional links can be useful in future.
32103 + if test "$aix_use_runtimelinking" = yes; then
32104 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
32105 + # instead of lib<name>.a to let people know that these are not
32106 + # typical AIX shared libraries.
32107 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32108 + else
32109 + # We preserve .a as extension for shared libraries through AIX4.2
32110 + # and later when we are not doing run time linking.
32111 + library_names_spec='${libname}${release}.a $libname.a'
32112 + soname_spec='${libname}${release}${shared_ext}$major'
32113 + fi
32114 + shlibpath_var=LIBPATH
32115 + fi
32116 + ;;
32118 +amigaos*)
32119 + library_names_spec='$libname.ixlibrary $libname.a'
32120 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
32121 + 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'
32122 + ;;
32124 +beos*)
32125 + library_names_spec='${libname}${shared_ext}'
32126 + dynamic_linker="$host_os ld.so"
32127 + shlibpath_var=LIBRARY_PATH
32128 + ;;
32130 +bsdi[45]*)
32131 + version_type=linux
32132 + need_version=no
32133 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32134 + soname_spec='${libname}${release}${shared_ext}$major'
32135 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
32136 + shlibpath_var=LD_LIBRARY_PATH
32137 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
32138 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
32139 + # the default ld.so.conf also contains /usr/contrib/lib and
32140 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
32141 + # libtool to hard-code these into programs
32142 + ;;
32144 +cygwin* | mingw* | pw32*)
32145 + version_type=windows
32146 + shrext_cmds=".dll"
32147 + need_version=no
32148 + need_lib_prefix=no
32150 + case $GCC,$host_os in
32151 + yes,cygwin* | yes,mingw* | yes,pw32*)
32152 + library_names_spec='$libname.dll.a'
32153 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
32154 + postinstall_cmds='base_file=`basename \${file}`~
32155 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
32156 + dldir=$destdir/`dirname \$dlpath`~
32157 + test -d \$dldir || mkdir -p \$dldir~
32158 + $install_prog $dir/$dlname \$dldir/$dlname~
32159 + chmod a+x \$dldir/$dlname'
32160 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
32161 + dlpath=$dir/\$dldll~
32162 + $rm \$dlpath'
32163 + shlibpath_overrides_runpath=yes
32165 + case $host_os in
32166 + cygwin*)
32167 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
32168 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
32169 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
32170 + ;;
32171 + mingw*)
32172 + # MinGW DLLs use traditional 'lib' prefix
32173 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
32174 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
32175 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
32176 + # It is most probably a Windows format PATH printed by
32177 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
32178 + # path with ; separators, and with drive letters. We can handle the
32179 + # drive letters (cygwin fileutils understands them), so leave them,
32180 + # especially as we might pass files found there to a mingw objdump,
32181 + # which wouldn't understand a cygwinified path. Ahh.
32182 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
32183 + else
32184 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
32185 + fi
32186 + ;;
32187 + pw32*)
32188 + # pw32 DLLs use 'pw' prefix rather than 'lib'
32189 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
32190 + ;;
32191 + esac
32192 + ;;
32194 + *)
32195 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
32196 + ;;
32197 + esac
32198 + dynamic_linker='Win32 ld.exe'
32199 + # FIXME: first we should search . and the directory the executable is in
32200 + shlibpath_var=PATH
32201 + ;;
32203 +darwin* | rhapsody*)
32204 + dynamic_linker="$host_os dyld"
32205 + version_type=darwin
32206 + need_lib_prefix=no
32207 + need_version=no
32208 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
32209 + soname_spec='${libname}${release}${major}$shared_ext'
32210 + shlibpath_overrides_runpath=yes
32211 + shlibpath_var=DYLD_LIBRARY_PATH
32212 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
32213 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
32214 + if test "$GCC" = yes; then
32215 + 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"`
32216 + else
32217 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
32218 + fi
32219 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
32220 + ;;
32222 +dgux*)
32223 + version_type=linux
32224 + need_lib_prefix=no
32225 + need_version=no
32226 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
32227 + soname_spec='${libname}${release}${shared_ext}$major'
32228 + shlibpath_var=LD_LIBRARY_PATH
32229 + ;;
32231 +freebsd1*)
32232 + dynamic_linker=no
32233 + ;;
32235 +kfreebsd*-gnu)
32236 + version_type=linux
32237 + need_lib_prefix=no
32238 + need_version=no
32239 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32240 + soname_spec='${libname}${release}${shared_ext}$major'
32241 + shlibpath_var=LD_LIBRARY_PATH
32242 + shlibpath_overrides_runpath=no
32243 + hardcode_into_libs=yes
32244 + dynamic_linker='GNU ld.so'
32245 + ;;
32247 +freebsd* | dragonfly*)
32248 + # DragonFly does not have aout. When/if they implement a new
32249 + # versioning mechanism, adjust this.
32250 + if test -x /usr/bin/objformat; then
32251 + objformat=`/usr/bin/objformat`
32252 + else
32253 + case $host_os in
32254 + freebsd[123]*) objformat=aout ;;
32255 + *) objformat=elf ;;
32256 + esac
32257 + fi
32258 + version_type=freebsd-$objformat
32259 + case $version_type in
32260 + freebsd-elf*)
32261 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
32262 + need_version=no
32263 + need_lib_prefix=no
32264 + ;;
32265 + freebsd-*)
32266 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
32267 + need_version=yes
32268 + ;;
32269 + esac
32270 + shlibpath_var=LD_LIBRARY_PATH
32271 + case $host_os in
32272 + freebsd2*)
32273 + shlibpath_overrides_runpath=yes
32274 + ;;
32275 + freebsd3.[01]* | freebsdelf3.[01]*)
32276 + shlibpath_overrides_runpath=yes
32277 + hardcode_into_libs=yes
32278 + ;;
32279 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
32280 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
32281 + shlibpath_overrides_runpath=no
32282 + hardcode_into_libs=yes
32283 + ;;
32284 + freebsd*) # from 4.6 on
32285 + shlibpath_overrides_runpath=yes
32286 + hardcode_into_libs=yes
32287 + ;;
32288 + esac
32289 + ;;
32291 +gnu*)
32292 + version_type=linux
32293 + need_lib_prefix=no
32294 + need_version=no
32295 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
32296 + soname_spec='${libname}${release}${shared_ext}$major'
32297 + shlibpath_var=LD_LIBRARY_PATH
32298 + hardcode_into_libs=yes
32299 + ;;
32301 +hpux9* | hpux10* | hpux11*)
32302 + # Give a soname corresponding to the major version so that dld.sl refuses to
32303 + # link against other versions.
32304 + version_type=sunos
32305 + need_lib_prefix=no
32306 + need_version=no
32307 + case $host_cpu in
32308 + ia64*)
32309 + shrext_cmds='.so'
32310 + hardcode_into_libs=yes
32311 + dynamic_linker="$host_os dld.so"
32312 + shlibpath_var=LD_LIBRARY_PATH
32313 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
32314 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32315 + soname_spec='${libname}${release}${shared_ext}$major'
32316 + if test "X$HPUX_IA64_MODE" = X32; then
32317 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
32318 + else
32319 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
32320 + fi
32321 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
32322 + ;;
32323 + hppa*64*)
32324 + shrext_cmds='.sl'
32325 + hardcode_into_libs=yes
32326 + dynamic_linker="$host_os dld.sl"
32327 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
32328 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
32329 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32330 + soname_spec='${libname}${release}${shared_ext}$major'
32331 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
32332 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
32333 + ;;
32334 + *)
32335 + shrext_cmds='.sl'
32336 + dynamic_linker="$host_os dld.sl"
32337 + shlibpath_var=SHLIB_PATH
32338 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
32339 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32340 + soname_spec='${libname}${release}${shared_ext}$major'
32341 + ;;
32342 + esac
32343 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
32344 + postinstall_cmds='chmod 555 $lib'
32345 + ;;
32347 +interix3*)
32348 + version_type=linux
32349 + need_lib_prefix=no
32350 + need_version=no
32351 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32352 + soname_spec='${libname}${release}${shared_ext}$major'
32353 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
32354 + shlibpath_var=LD_LIBRARY_PATH
32355 + shlibpath_overrides_runpath=no
32356 + hardcode_into_libs=yes
32357 + ;;
32359 +irix5* | irix6* | nonstopux*)
32360 + case $host_os in
32361 + nonstopux*) version_type=nonstopux ;;
32362 + *)
32363 + if test "$lt_cv_prog_gnu_ld" = yes; then
32364 + version_type=linux
32365 + else
32366 + version_type=irix
32367 + fi ;;
32368 + esac
32369 + need_lib_prefix=no
32370 + need_version=no
32371 + soname_spec='${libname}${release}${shared_ext}$major'
32372 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
32373 + case $host_os in
32374 + irix5* | nonstopux*)
32375 + libsuff= shlibsuff=
32376 + ;;
32377 + *)
32378 + case $LD in # libtool.m4 will add one of these switches to LD
32379 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
32380 + libsuff= shlibsuff= libmagic=32-bit;;
32381 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
32382 + libsuff=32 shlibsuff=N32 libmagic=N32;;
32383 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
32384 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
32385 + *) libsuff= shlibsuff= libmagic=never-match;;
32386 + esac
32387 + ;;
32388 + esac
32389 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
32390 + shlibpath_overrides_runpath=no
32391 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
32392 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
32393 + hardcode_into_libs=yes
32394 + ;;
32396 +# No shared lib support for Linux oldld, aout, or coff.
32397 +linux*oldld* | linux*aout* | linux*coff*)
32398 + dynamic_linker=no
32399 + ;;
32401 +# This must be Linux ELF.
32402 +linux*)
32403 + version_type=linux
32404 + need_lib_prefix=no
32405 + need_version=no
32406 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32407 + soname_spec='${libname}${release}${shared_ext}$major'
32408 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
32409 + shlibpath_var=LD_LIBRARY_PATH
32410 + shlibpath_overrides_runpath=no
32411 + # This implies no fast_install, which is unacceptable.
32412 + # Some rework will be needed to allow for fast_install
32413 + # before this can be enabled.
32414 + hardcode_into_libs=yes
32416 + # Append ld.so.conf contents to the search path
32417 + if test -f /etc/ld.so.conf; then
32418 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
32419 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
32420 + fi
32422 + # We used to test for /lib/ld.so.1 and disable shared libraries on
32423 + # powerpc, because MkLinux only supported shared libraries with the
32424 + # GNU dynamic linker. Since this was broken with cross compilers,
32425 + # most powerpc-linux boxes support dynamic linking these days and
32426 + # people can always --disable-shared, the test was removed, and we
32427 + # assume the GNU/Linux dynamic linker is in use.
32428 + dynamic_linker='GNU/Linux ld.so'
32429 + ;;
32431 +knetbsd*-gnu)
32432 + version_type=linux
32433 + need_lib_prefix=no
32434 + need_version=no
32435 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32436 + soname_spec='${libname}${release}${shared_ext}$major'
32437 + shlibpath_var=LD_LIBRARY_PATH
32438 + shlibpath_overrides_runpath=no
32439 + hardcode_into_libs=yes
32440 + dynamic_linker='GNU ld.so'
32441 + ;;
32443 +netbsd*)
32444 + version_type=sunos
32445 + need_lib_prefix=no
32446 + need_version=no
32447 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
32448 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32449 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32450 + dynamic_linker='NetBSD (a.out) ld.so'
32451 + else
32452 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
32453 + soname_spec='${libname}${release}${shared_ext}$major'
32454 + dynamic_linker='NetBSD ld.elf_so'
32455 + fi
32456 + shlibpath_var=LD_LIBRARY_PATH
32457 + shlibpath_overrides_runpath=yes
32458 + hardcode_into_libs=yes
32459 + ;;
32461 +newsos6)
32462 + version_type=linux
32463 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32464 + shlibpath_var=LD_LIBRARY_PATH
32465 + shlibpath_overrides_runpath=yes
32466 + ;;
32468 +nto-qnx*)
32469 + version_type=linux
32470 + need_lib_prefix=no
32471 + need_version=no
32472 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32473 + soname_spec='${libname}${release}${shared_ext}$major'
32474 + shlibpath_var=LD_LIBRARY_PATH
32475 + shlibpath_overrides_runpath=yes
32476 + ;;
32478 +openbsd*)
32479 + version_type=sunos
32480 + sys_lib_dlsearch_path_spec="/usr/lib"
32481 + need_lib_prefix=no
32482 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
32483 + case $host_os in
32484 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
32485 + *) need_version=no ;;
32486 + esac
32487 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32488 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
32489 + shlibpath_var=LD_LIBRARY_PATH
32490 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
32491 + case $host_os in
32492 + openbsd2.[89] | openbsd2.[89].*)
32493 + shlibpath_overrides_runpath=no
32494 + ;;
32495 + *)
32496 + shlibpath_overrides_runpath=yes
32497 + ;;
32498 + esac
32499 + else
32500 + shlibpath_overrides_runpath=yes
32501 + fi
32502 + ;;
32504 +os2*)
32505 + libname_spec='$name'
32506 + shrext_cmds=".dll"
32507 + need_lib_prefix=no
32508 + library_names_spec='$libname${shared_ext} $libname.a'
32509 + dynamic_linker='OS/2 ld.exe'
32510 + shlibpath_var=LIBPATH
32511 + ;;
32513 +osf3* | osf4* | osf5*)
32514 + version_type=osf
32515 + need_lib_prefix=no
32516 + need_version=no
32517 + soname_spec='${libname}${release}${shared_ext}$major'
32518 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32519 + shlibpath_var=LD_LIBRARY_PATH
32520 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
32521 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
32522 + ;;
32524 +solaris*)
32525 + version_type=linux
32526 + need_lib_prefix=no
32527 + need_version=no
32528 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32529 + soname_spec='${libname}${release}${shared_ext}$major'
32530 + shlibpath_var=LD_LIBRARY_PATH
32531 + shlibpath_overrides_runpath=yes
32532 + hardcode_into_libs=yes
32533 + # ldd complains unless libraries are executable
32534 + postinstall_cmds='chmod +x $lib'
32535 + ;;
32537 +sunos4*)
32538 + version_type=sunos
32539 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
32540 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
32541 + shlibpath_var=LD_LIBRARY_PATH
32542 + shlibpath_overrides_runpath=yes
32543 + if test "$with_gnu_ld" = yes; then
32544 + need_lib_prefix=no
32545 + fi
32546 + need_version=yes
32547 + ;;
32549 +sysv4 | sysv4.3*)
32550 + version_type=linux
32551 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32552 + soname_spec='${libname}${release}${shared_ext}$major'
32553 + shlibpath_var=LD_LIBRARY_PATH
32554 + case $host_vendor in
32555 + sni)
32556 + shlibpath_overrides_runpath=no
32557 + need_lib_prefix=no
32558 + export_dynamic_flag_spec='${wl}-Blargedynsym'
32559 + runpath_var=LD_RUN_PATH
32560 + ;;
32561 + siemens)
32562 + need_lib_prefix=no
32563 + ;;
32564 + motorola)
32565 + need_lib_prefix=no
32566 + need_version=no
32567 + shlibpath_overrides_runpath=no
32568 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
32569 + ;;
32570 + esac
32571 + ;;
32573 +sysv4*MP*)
32574 + if test -d /usr/nec ;then
32575 + version_type=linux
32576 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
32577 + soname_spec='$libname${shared_ext}.$major'
32578 + shlibpath_var=LD_LIBRARY_PATH
32579 + fi
32580 + ;;
32582 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
32583 + version_type=freebsd-elf
32584 + need_lib_prefix=no
32585 + need_version=no
32586 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
32587 + soname_spec='${libname}${release}${shared_ext}$major'
32588 + shlibpath_var=LD_LIBRARY_PATH
32589 + hardcode_into_libs=yes
32590 + if test "$with_gnu_ld" = yes; then
32591 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
32592 + shlibpath_overrides_runpath=no
32593 + else
32594 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
32595 + shlibpath_overrides_runpath=yes
32596 + case $host_os in
32597 + sco3.2v5*)
32598 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
32599 + ;;
32600 + esac
32602 + sys_lib_dlsearch_path_spec='/usr/lib'
32603 + ;;
32605 +uts4*)
32606 + version_type=linux
32607 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
32608 + soname_spec='${libname}${release}${shared_ext}$major'
32609 + shlibpath_var=LD_LIBRARY_PATH
32610 + ;;
32613 + dynamic_linker=no
32614 + ;;
32615 +esac
32616 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
32617 +echo "${ECHO_T}$dynamic_linker" >&6
32618 +test "$dynamic_linker" = no && can_build_shared=no
32620 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
32621 +if test "$GCC" = yes; then
32622 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
32624 -echo "$ac_t""$INSTALL" 1>&6
32626 -# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
32627 -# It thinks the first close brace ends the variable substitution.
32628 -test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
32629 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
32630 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
32631 +hardcode_action=
32632 +if test -n "$hardcode_libdir_flag_spec" || \
32633 + test -n "$runpath_var" || \
32634 + test "X$hardcode_automatic" = "Xyes" ; then
32636 -test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
32637 + # We can hardcode non-existant directories.
32638 + if test "$hardcode_direct" != no &&
32639 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
32640 + # have to relink, otherwise we might link with an installed library
32641 + # when we should be linking with a yet-to-be-installed one
32642 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
32643 + test "$hardcode_minus_L" != no; then
32644 + # Linking always hardcodes the temporary library directory.
32645 + hardcode_action=relink
32646 + else
32647 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
32648 + hardcode_action=immediate
32649 + fi
32650 +else
32651 + # We cannot hardcode anything, or else we can only hardcode existing
32652 + # directories.
32653 + hardcode_action=unsupported
32655 +echo "$as_me:$LINENO: result: $hardcode_action" >&5
32656 +echo "${ECHO_T}$hardcode_action" >&6
32658 -# Extract the first word of "ranlib", so it can be a program name with args.
32659 -set dummy ranlib; ac_word=$2
32660 -echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
32661 -echo "configure:1488: checking for $ac_word" >&5
32662 -if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
32663 - echo $ac_n "(cached) $ac_c" 1>&6
32664 +if test "$hardcode_action" = relink; then
32665 + # Fast installation is not supported
32666 + enable_fast_install=no
32667 +elif test "$shlibpath_overrides_runpath" = yes ||
32668 + test "$enable_shared" = no; then
32669 + # Fast installation is not necessary
32670 + enable_fast_install=needless
32673 +striplib=
32674 +old_striplib=
32675 +echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
32676 +echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
32677 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
32678 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
32679 + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
32680 + echo "$as_me:$LINENO: result: yes" >&5
32681 +echo "${ECHO_T}yes" >&6
32682 +else
32683 +# FIXME - insert some real tests, host_os isn't really good enough
32684 + case $host_os in
32685 + darwin*)
32686 + if test -n "$STRIP" ; then
32687 + striplib="$STRIP -x"
32688 + echo "$as_me:$LINENO: result: yes" >&5
32689 +echo "${ECHO_T}yes" >&6
32690 + else
32691 + echo "$as_me:$LINENO: result: no" >&5
32692 +echo "${ECHO_T}no" >&6
32694 + ;;
32695 + *)
32696 + echo "$as_me:$LINENO: result: no" >&5
32697 +echo "${ECHO_T}no" >&6
32698 + ;;
32699 + esac
32702 +if test "x$enable_dlopen" != xyes; then
32703 + enable_dlopen=unknown
32704 + enable_dlopen_self=unknown
32705 + enable_dlopen_self_static=unknown
32706 +else
32707 + lt_cv_dlopen=no
32708 + lt_cv_dlopen_libs=
32710 + case $host_os in
32711 + beos*)
32712 + lt_cv_dlopen="load_add_on"
32713 + lt_cv_dlopen_libs=
32714 + lt_cv_dlopen_self=yes
32715 + ;;
32717 + mingw* | pw32*)
32718 + lt_cv_dlopen="LoadLibrary"
32719 + lt_cv_dlopen_libs=
32720 + ;;
32722 + cygwin*)
32723 + lt_cv_dlopen="dlopen"
32724 + lt_cv_dlopen_libs=
32725 + ;;
32727 + darwin*)
32728 + # if libdl is installed we need to link against it
32729 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
32730 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
32731 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
32732 + echo $ECHO_N "(cached) $ECHO_C" >&6
32733 +else
32734 + ac_check_lib_save_LIBS=$LIBS
32735 +LIBS="-ldl $LIBS"
32736 +cat >conftest.$ac_ext <<_ACEOF
32737 +/* confdefs.h. */
32738 +_ACEOF
32739 +cat confdefs.h >>conftest.$ac_ext
32740 +cat >>conftest.$ac_ext <<_ACEOF
32741 +/* end confdefs.h. */
32743 +/* Override any gcc2 internal prototype to avoid an error. */
32744 +#ifdef __cplusplus
32745 +extern "C"
32746 +#endif
32747 +/* We use char because int might match the return type of a gcc2
32748 + builtin and then its argument prototype would still apply. */
32749 +char dlopen ();
32750 +int
32751 +main ()
32753 +dlopen ();
32755 + return 0;
32757 +_ACEOF
32758 +rm -f conftest.$ac_objext conftest$ac_exeext
32759 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32760 + (eval $ac_link) 2>conftest.er1
32761 + ac_status=$?
32762 + grep -v '^ *+' conftest.er1 >conftest.err
32763 + rm -f conftest.er1
32764 + cat conftest.err >&5
32765 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32766 + (exit $ac_status); } &&
32767 + { ac_try='test -z "$ac_c_werror_flag"
32768 + || test ! -s conftest.err'
32769 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32770 + (eval $ac_try) 2>&5
32771 + ac_status=$?
32772 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32773 + (exit $ac_status); }; } &&
32774 + { ac_try='test -s conftest$ac_exeext'
32775 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32776 + (eval $ac_try) 2>&5
32777 + ac_status=$?
32778 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 + (exit $ac_status); }; }; then
32780 + ac_cv_lib_dl_dlopen=yes
32781 +else
32782 + echo "$as_me: failed program was:" >&5
32783 +sed 's/^/| /' conftest.$ac_ext >&5
32785 +ac_cv_lib_dl_dlopen=no
32787 +rm -f conftest.err conftest.$ac_objext \
32788 + conftest$ac_exeext conftest.$ac_ext
32789 +LIBS=$ac_check_lib_save_LIBS
32791 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
32792 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
32793 +if test $ac_cv_lib_dl_dlopen = yes; then
32794 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
32795 +else
32797 + lt_cv_dlopen="dyld"
32798 + lt_cv_dlopen_libs=
32799 + lt_cv_dlopen_self=yes
32803 + ;;
32805 + *)
32806 + echo "$as_me:$LINENO: checking for shl_load" >&5
32807 +echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
32808 +if test "${ac_cv_func_shl_load+set}" = set; then
32809 + echo $ECHO_N "(cached) $ECHO_C" >&6
32810 +else
32811 + cat >conftest.$ac_ext <<_ACEOF
32812 +/* confdefs.h. */
32813 +_ACEOF
32814 +cat confdefs.h >>conftest.$ac_ext
32815 +cat >>conftest.$ac_ext <<_ACEOF
32816 +/* end confdefs.h. */
32817 +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
32818 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
32819 +#define shl_load innocuous_shl_load
32821 +/* System header to define __stub macros and hopefully few prototypes,
32822 + which can conflict with char shl_load (); below.
32823 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32824 + <limits.h> exists even on freestanding compilers. */
32826 +#ifdef __STDC__
32827 +# include <limits.h>
32828 +#else
32829 +# include <assert.h>
32830 +#endif
32832 +#undef shl_load
32834 +/* Override any gcc2 internal prototype to avoid an error. */
32835 +#ifdef __cplusplus
32836 +extern "C"
32838 +#endif
32839 +/* We use char because int might match the return type of a gcc2
32840 + builtin and then its argument prototype would still apply. */
32841 +char shl_load ();
32842 +/* The GNU C library defines this for functions which it implements
32843 + to always fail with ENOSYS. Some functions are actually named
32844 + something starting with __ and the normal name is an alias. */
32845 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
32846 +choke me
32847 +#else
32848 +char (*f) () = shl_load;
32849 +#endif
32850 +#ifdef __cplusplus
32852 +#endif
32854 +int
32855 +main ()
32857 +return f != shl_load;
32859 + return 0;
32861 +_ACEOF
32862 +rm -f conftest.$ac_objext conftest$ac_exeext
32863 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32864 + (eval $ac_link) 2>conftest.er1
32865 + ac_status=$?
32866 + grep -v '^ *+' conftest.er1 >conftest.err
32867 + rm -f conftest.er1
32868 + cat conftest.err >&5
32869 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32870 + (exit $ac_status); } &&
32871 + { ac_try='test -z "$ac_c_werror_flag"
32872 + || test ! -s conftest.err'
32873 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32874 + (eval $ac_try) 2>&5
32875 + ac_status=$?
32876 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32877 + (exit $ac_status); }; } &&
32878 + { ac_try='test -s conftest$ac_exeext'
32879 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32880 + (eval $ac_try) 2>&5
32881 + ac_status=$?
32882 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 + (exit $ac_status); }; }; then
32884 + ac_cv_func_shl_load=yes
32885 +else
32886 + echo "$as_me: failed program was:" >&5
32887 +sed 's/^/| /' conftest.$ac_ext >&5
32889 +ac_cv_func_shl_load=no
32891 +rm -f conftest.err conftest.$ac_objext \
32892 + conftest$ac_exeext conftest.$ac_ext
32894 +echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
32895 +echo "${ECHO_T}$ac_cv_func_shl_load" >&6
32896 +if test $ac_cv_func_shl_load = yes; then
32897 + lt_cv_dlopen="shl_load"
32898 +else
32899 + echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
32900 +echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
32901 +if test "${ac_cv_lib_dld_shl_load+set}" = set; then
32902 + echo $ECHO_N "(cached) $ECHO_C" >&6
32903 +else
32904 + ac_check_lib_save_LIBS=$LIBS
32905 +LIBS="-ldld $LIBS"
32906 +cat >conftest.$ac_ext <<_ACEOF
32907 +/* confdefs.h. */
32908 +_ACEOF
32909 +cat confdefs.h >>conftest.$ac_ext
32910 +cat >>conftest.$ac_ext <<_ACEOF
32911 +/* end confdefs.h. */
32913 +/* Override any gcc2 internal prototype to avoid an error. */
32914 +#ifdef __cplusplus
32915 +extern "C"
32916 +#endif
32917 +/* We use char because int might match the return type of a gcc2
32918 + builtin and then its argument prototype would still apply. */
32919 +char shl_load ();
32920 +int
32921 +main ()
32923 +shl_load ();
32925 + return 0;
32927 +_ACEOF
32928 +rm -f conftest.$ac_objext conftest$ac_exeext
32929 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32930 + (eval $ac_link) 2>conftest.er1
32931 + ac_status=$?
32932 + grep -v '^ *+' conftest.er1 >conftest.err
32933 + rm -f conftest.er1
32934 + cat conftest.err >&5
32935 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32936 + (exit $ac_status); } &&
32937 + { ac_try='test -z "$ac_c_werror_flag"
32938 + || test ! -s conftest.err'
32939 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940 + (eval $ac_try) 2>&5
32941 + ac_status=$?
32942 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 + (exit $ac_status); }; } &&
32944 + { ac_try='test -s conftest$ac_exeext'
32945 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32946 + (eval $ac_try) 2>&5
32947 + ac_status=$?
32948 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 + (exit $ac_status); }; }; then
32950 + ac_cv_lib_dld_shl_load=yes
32951 +else
32952 + echo "$as_me: failed program was:" >&5
32953 +sed 's/^/| /' conftest.$ac_ext >&5
32955 +ac_cv_lib_dld_shl_load=no
32957 +rm -f conftest.err conftest.$ac_objext \
32958 + conftest$ac_exeext conftest.$ac_ext
32959 +LIBS=$ac_check_lib_save_LIBS
32961 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
32962 +echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
32963 +if test $ac_cv_lib_dld_shl_load = yes; then
32964 + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
32965 +else
32966 + echo "$as_me:$LINENO: checking for dlopen" >&5
32967 +echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
32968 +if test "${ac_cv_func_dlopen+set}" = set; then
32969 + echo $ECHO_N "(cached) $ECHO_C" >&6
32970 +else
32971 + cat >conftest.$ac_ext <<_ACEOF
32972 +/* confdefs.h. */
32973 +_ACEOF
32974 +cat confdefs.h >>conftest.$ac_ext
32975 +cat >>conftest.$ac_ext <<_ACEOF
32976 +/* end confdefs.h. */
32977 +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
32978 + For example, HP-UX 11i <limits.h> declares gettimeofday. */
32979 +#define dlopen innocuous_dlopen
32981 +/* System header to define __stub macros and hopefully few prototypes,
32982 + which can conflict with char dlopen (); below.
32983 + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32984 + <limits.h> exists even on freestanding compilers. */
32986 +#ifdef __STDC__
32987 +# include <limits.h>
32988 +#else
32989 +# include <assert.h>
32990 +#endif
32992 +#undef dlopen
32994 +/* Override any gcc2 internal prototype to avoid an error. */
32995 +#ifdef __cplusplus
32996 +extern "C"
32998 +#endif
32999 +/* We use char because int might match the return type of a gcc2
33000 + builtin and then its argument prototype would still apply. */
33001 +char dlopen ();
33002 +/* The GNU C library defines this for functions which it implements
33003 + to always fail with ENOSYS. Some functions are actually named
33004 + something starting with __ and the normal name is an alias. */
33005 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
33006 +choke me
33007 +#else
33008 +char (*f) () = dlopen;
33009 +#endif
33010 +#ifdef __cplusplus
33012 +#endif
33014 +int
33015 +main ()
33017 +return f != dlopen;
33019 + return 0;
33021 +_ACEOF
33022 +rm -f conftest.$ac_objext conftest$ac_exeext
33023 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33024 + (eval $ac_link) 2>conftest.er1
33025 + ac_status=$?
33026 + grep -v '^ *+' conftest.er1 >conftest.err
33027 + rm -f conftest.er1
33028 + cat conftest.err >&5
33029 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33030 + (exit $ac_status); } &&
33031 + { ac_try='test -z "$ac_c_werror_flag"
33032 + || test ! -s conftest.err'
33033 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33034 + (eval $ac_try) 2>&5
33035 + ac_status=$?
33036 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33037 + (exit $ac_status); }; } &&
33038 + { ac_try='test -s conftest$ac_exeext'
33039 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33040 + (eval $ac_try) 2>&5
33041 + ac_status=$?
33042 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 + (exit $ac_status); }; }; then
33044 + ac_cv_func_dlopen=yes
33045 +else
33046 + echo "$as_me: failed program was:" >&5
33047 +sed 's/^/| /' conftest.$ac_ext >&5
33049 +ac_cv_func_dlopen=no
33051 +rm -f conftest.err conftest.$ac_objext \
33052 + conftest$ac_exeext conftest.$ac_ext
33054 +echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
33055 +echo "${ECHO_T}$ac_cv_func_dlopen" >&6
33056 +if test $ac_cv_func_dlopen = yes; then
33057 + lt_cv_dlopen="dlopen"
33058 +else
33059 + echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
33060 +echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
33061 +if test "${ac_cv_lib_dl_dlopen+set}" = set; then
33062 + echo $ECHO_N "(cached) $ECHO_C" >&6
33063 +else
33064 + ac_check_lib_save_LIBS=$LIBS
33065 +LIBS="-ldl $LIBS"
33066 +cat >conftest.$ac_ext <<_ACEOF
33067 +/* confdefs.h. */
33068 +_ACEOF
33069 +cat confdefs.h >>conftest.$ac_ext
33070 +cat >>conftest.$ac_ext <<_ACEOF
33071 +/* end confdefs.h. */
33073 +/* Override any gcc2 internal prototype to avoid an error. */
33074 +#ifdef __cplusplus
33075 +extern "C"
33076 +#endif
33077 +/* We use char because int might match the return type of a gcc2
33078 + builtin and then its argument prototype would still apply. */
33079 +char dlopen ();
33080 +int
33081 +main ()
33083 +dlopen ();
33085 + return 0;
33087 +_ACEOF
33088 +rm -f conftest.$ac_objext conftest$ac_exeext
33089 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33090 + (eval $ac_link) 2>conftest.er1
33091 + ac_status=$?
33092 + grep -v '^ *+' conftest.er1 >conftest.err
33093 + rm -f conftest.er1
33094 + cat conftest.err >&5
33095 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 + (exit $ac_status); } &&
33097 + { ac_try='test -z "$ac_c_werror_flag"
33098 + || test ! -s conftest.err'
33099 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33100 + (eval $ac_try) 2>&5
33101 + ac_status=$?
33102 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33103 + (exit $ac_status); }; } &&
33104 + { ac_try='test -s conftest$ac_exeext'
33105 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33106 + (eval $ac_try) 2>&5
33107 + ac_status=$?
33108 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 + (exit $ac_status); }; }; then
33110 + ac_cv_lib_dl_dlopen=yes
33111 +else
33112 + echo "$as_me: failed program was:" >&5
33113 +sed 's/^/| /' conftest.$ac_ext >&5
33115 +ac_cv_lib_dl_dlopen=no
33117 +rm -f conftest.err conftest.$ac_objext \
33118 + conftest$ac_exeext conftest.$ac_ext
33119 +LIBS=$ac_check_lib_save_LIBS
33121 +echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
33122 +echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
33123 +if test $ac_cv_lib_dl_dlopen = yes; then
33124 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
33125 +else
33126 + echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
33127 +echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
33128 +if test "${ac_cv_lib_svld_dlopen+set}" = set; then
33129 + echo $ECHO_N "(cached) $ECHO_C" >&6
33130 +else
33131 + ac_check_lib_save_LIBS=$LIBS
33132 +LIBS="-lsvld $LIBS"
33133 +cat >conftest.$ac_ext <<_ACEOF
33134 +/* confdefs.h. */
33135 +_ACEOF
33136 +cat confdefs.h >>conftest.$ac_ext
33137 +cat >>conftest.$ac_ext <<_ACEOF
33138 +/* end confdefs.h. */
33140 +/* Override any gcc2 internal prototype to avoid an error. */
33141 +#ifdef __cplusplus
33142 +extern "C"
33143 +#endif
33144 +/* We use char because int might match the return type of a gcc2
33145 + builtin and then its argument prototype would still apply. */
33146 +char dlopen ();
33147 +int
33148 +main ()
33150 +dlopen ();
33152 + return 0;
33154 +_ACEOF
33155 +rm -f conftest.$ac_objext conftest$ac_exeext
33156 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33157 + (eval $ac_link) 2>conftest.er1
33158 + ac_status=$?
33159 + grep -v '^ *+' conftest.er1 >conftest.err
33160 + rm -f conftest.er1
33161 + cat conftest.err >&5
33162 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 + (exit $ac_status); } &&
33164 + { ac_try='test -z "$ac_c_werror_flag"
33165 + || test ! -s conftest.err'
33166 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33167 + (eval $ac_try) 2>&5
33168 + ac_status=$?
33169 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33170 + (exit $ac_status); }; } &&
33171 + { ac_try='test -s conftest$ac_exeext'
33172 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33173 + (eval $ac_try) 2>&5
33174 + ac_status=$?
33175 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 + (exit $ac_status); }; }; then
33177 + ac_cv_lib_svld_dlopen=yes
33178 else
33179 + echo "$as_me: failed program was:" >&5
33180 +sed 's/^/| /' conftest.$ac_ext >&5
33182 +ac_cv_lib_svld_dlopen=no
33184 +rm -f conftest.err conftest.$ac_objext \
33185 + conftest$ac_exeext conftest.$ac_ext
33186 +LIBS=$ac_check_lib_save_LIBS
33188 +echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
33189 +echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
33190 +if test $ac_cv_lib_svld_dlopen = yes; then
33191 + lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
33192 +else
33193 + echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
33194 +echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
33195 +if test "${ac_cv_lib_dld_dld_link+set}" = set; then
33196 + echo $ECHO_N "(cached) $ECHO_C" >&6
33197 +else
33198 + ac_check_lib_save_LIBS=$LIBS
33199 +LIBS="-ldld $LIBS"
33200 +cat >conftest.$ac_ext <<_ACEOF
33201 +/* confdefs.h. */
33202 +_ACEOF
33203 +cat confdefs.h >>conftest.$ac_ext
33204 +cat >>conftest.$ac_ext <<_ACEOF
33205 +/* end confdefs.h. */
33207 +/* Override any gcc2 internal prototype to avoid an error. */
33208 +#ifdef __cplusplus
33209 +extern "C"
33210 +#endif
33211 +/* We use char because int might match the return type of a gcc2
33212 + builtin and then its argument prototype would still apply. */
33213 +char dld_link ();
33214 +int
33215 +main ()
33217 +dld_link ();
33219 + return 0;
33221 +_ACEOF
33222 +rm -f conftest.$ac_objext conftest$ac_exeext
33223 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33224 + (eval $ac_link) 2>conftest.er1
33225 + ac_status=$?
33226 + grep -v '^ *+' conftest.er1 >conftest.err
33227 + rm -f conftest.er1
33228 + cat conftest.err >&5
33229 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33230 + (exit $ac_status); } &&
33231 + { ac_try='test -z "$ac_c_werror_flag"
33232 + || test ! -s conftest.err'
33233 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33234 + (eval $ac_try) 2>&5
33235 + ac_status=$?
33236 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33237 + (exit $ac_status); }; } &&
33238 + { ac_try='test -s conftest$ac_exeext'
33239 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33240 + (eval $ac_try) 2>&5
33241 + ac_status=$?
33242 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 + (exit $ac_status); }; }; then
33244 + ac_cv_lib_dld_dld_link=yes
33245 +else
33246 + echo "$as_me: failed program was:" >&5
33247 +sed 's/^/| /' conftest.$ac_ext >&5
33249 +ac_cv_lib_dld_dld_link=no
33251 +rm -f conftest.err conftest.$ac_objext \
33252 + conftest$ac_exeext conftest.$ac_ext
33253 +LIBS=$ac_check_lib_save_LIBS
33255 +echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
33256 +echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
33257 +if test $ac_cv_lib_dld_dld_link = yes; then
33258 + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
33276 + ;;
33277 + esac
33279 + if test "x$lt_cv_dlopen" != xno; then
33280 + enable_dlopen=yes
33281 + else
33282 + enable_dlopen=no
33283 + fi
33285 + case $lt_cv_dlopen in
33286 + dlopen)
33287 + save_CPPFLAGS="$CPPFLAGS"
33288 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
33290 + save_LDFLAGS="$LDFLAGS"
33291 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
33293 + save_LIBS="$LIBS"
33294 + LIBS="$lt_cv_dlopen_libs $LIBS"
33296 + echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
33297 +echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
33298 +if test "${lt_cv_dlopen_self+set}" = set; then
33299 + echo $ECHO_N "(cached) $ECHO_C" >&6
33300 +else
33301 + if test "$cross_compiling" = yes; then :
33302 + lt_cv_dlopen_self=cross
33303 +else
33304 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
33305 + lt_status=$lt_dlunknown
33306 + cat > conftest.$ac_ext <<EOF
33307 +#line 10823 "configure"
33308 +#include "confdefs.h"
33310 +#if HAVE_DLFCN_H
33311 +#include <dlfcn.h>
33312 +#endif
33314 +#include <stdio.h>
33316 +#ifdef RTLD_GLOBAL
33317 +# define LT_DLGLOBAL RTLD_GLOBAL
33318 +#else
33319 +# ifdef DL_GLOBAL
33320 +# define LT_DLGLOBAL DL_GLOBAL
33321 +# else
33322 +# define LT_DLGLOBAL 0
33323 +# endif
33324 +#endif
33326 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
33327 + find out it does not work in some platform. */
33328 +#ifndef LT_DLLAZY_OR_NOW
33329 +# ifdef RTLD_LAZY
33330 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
33331 +# else
33332 +# ifdef DL_LAZY
33333 +# define LT_DLLAZY_OR_NOW DL_LAZY
33334 +# else
33335 +# ifdef RTLD_NOW
33336 +# define LT_DLLAZY_OR_NOW RTLD_NOW
33337 +# else
33338 +# ifdef DL_NOW
33339 +# define LT_DLLAZY_OR_NOW DL_NOW
33340 +# else
33341 +# define LT_DLLAZY_OR_NOW 0
33342 +# endif
33343 +# endif
33344 +# endif
33345 +# endif
33346 +#endif
33348 +#ifdef __cplusplus
33349 +extern "C" void exit (int);
33350 +#endif
33352 +void fnord() { int i=42;}
33353 +int main ()
33355 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33356 + int status = $lt_dlunknown;
33358 + if (self)
33360 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
33361 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
33362 + /* dlclose (self); */
33364 + else
33365 + puts (dlerror ());
33367 + exit (status);
33369 +EOF
33370 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33371 + (eval $ac_link) 2>&5
33372 + ac_status=$?
33373 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33374 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
33375 + (./conftest; exit; ) >&5 2>/dev/null
33376 + lt_status=$?
33377 + case x$lt_status in
33378 + x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
33379 + x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
33380 + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
33381 + esac
33382 + else :
33383 + # compilation failed
33384 + lt_cv_dlopen_self=no
33385 + fi
33387 +rm -fr conftest*
33391 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
33392 +echo "${ECHO_T}$lt_cv_dlopen_self" >&6
33394 + if test "x$lt_cv_dlopen_self" = xyes; then
33395 + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
33396 + echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
33397 +echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
33398 +if test "${lt_cv_dlopen_self_static+set}" = set; then
33399 + echo $ECHO_N "(cached) $ECHO_C" >&6
33400 +else
33401 + if test "$cross_compiling" = yes; then :
33402 + lt_cv_dlopen_self_static=cross
33403 +else
33404 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
33405 + lt_status=$lt_dlunknown
33406 + cat > conftest.$ac_ext <<EOF
33407 +#line 10923 "configure"
33408 +#include "confdefs.h"
33410 +#if HAVE_DLFCN_H
33411 +#include <dlfcn.h>
33412 +#endif
33414 +#include <stdio.h>
33416 +#ifdef RTLD_GLOBAL
33417 +# define LT_DLGLOBAL RTLD_GLOBAL
33418 +#else
33419 +# ifdef DL_GLOBAL
33420 +# define LT_DLGLOBAL DL_GLOBAL
33421 +# else
33422 +# define LT_DLGLOBAL 0
33423 +# endif
33424 +#endif
33426 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
33427 + find out it does not work in some platform. */
33428 +#ifndef LT_DLLAZY_OR_NOW
33429 +# ifdef RTLD_LAZY
33430 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
33431 +# else
33432 +# ifdef DL_LAZY
33433 +# define LT_DLLAZY_OR_NOW DL_LAZY
33434 +# else
33435 +# ifdef RTLD_NOW
33436 +# define LT_DLLAZY_OR_NOW RTLD_NOW
33437 +# else
33438 +# ifdef DL_NOW
33439 +# define LT_DLLAZY_OR_NOW DL_NOW
33440 +# else
33441 +# define LT_DLLAZY_OR_NOW 0
33442 +# endif
33443 +# endif
33444 +# endif
33445 +# endif
33446 +#endif
33448 +#ifdef __cplusplus
33449 +extern "C" void exit (int);
33450 +#endif
33452 +void fnord() { int i=42;}
33453 +int main ()
33455 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33456 + int status = $lt_dlunknown;
33458 + if (self)
33460 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
33461 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
33462 + /* dlclose (self); */
33464 + else
33465 + puts (dlerror ());
33467 + exit (status);
33469 +EOF
33470 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33471 + (eval $ac_link) 2>&5
33472 + ac_status=$?
33473 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33474 + (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
33475 + (./conftest; exit; ) >&5 2>/dev/null
33476 + lt_status=$?
33477 + case x$lt_status in
33478 + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
33479 + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
33480 + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
33481 + esac
33482 + else :
33483 + # compilation failed
33484 + lt_cv_dlopen_self_static=no
33485 + fi
33487 +rm -fr conftest*
33491 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
33492 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
33493 + fi
33495 + CPPFLAGS="$save_CPPFLAGS"
33496 + LDFLAGS="$save_LDFLAGS"
33497 + LIBS="$save_LIBS"
33498 + ;;
33499 + esac
33501 + case $lt_cv_dlopen_self in
33502 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
33503 + *) enable_dlopen_self=unknown ;;
33504 + esac
33506 + case $lt_cv_dlopen_self_static in
33507 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
33508 + *) enable_dlopen_self_static=unknown ;;
33509 + esac
33513 +# Report which library types will actually be built
33514 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
33515 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
33516 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
33517 +echo "${ECHO_T}$can_build_shared" >&6
33519 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
33520 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
33521 +test "$can_build_shared" = "no" && enable_shared=no
33523 +# On AIX, shared libraries and static libraries use the same namespace, and
33524 +# are all built from PIC.
33525 +case $host_os in
33526 +aix3*)
33527 + test "$enable_shared" = yes && enable_static=no
33528 if test -n "$RANLIB"; then
33529 - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33530 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
33531 + postinstall_cmds='$RANLIB $lib'
33532 + fi
33533 + ;;
33535 +aix4* | aix5*)
33536 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
33537 + test "$enable_shared" = yes && enable_static=no
33538 + fi
33539 + ;;
33540 +esac
33541 +echo "$as_me:$LINENO: result: $enable_shared" >&5
33542 +echo "${ECHO_T}$enable_shared" >&6
33544 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
33545 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
33546 +# Make sure either enable_shared or enable_static is yes.
33547 +test "$enable_shared" = yes || enable_static=yes
33548 +echo "$as_me:$LINENO: result: $enable_static" >&5
33549 +echo "${ECHO_T}$enable_static" >&6
33551 +# The else clause should only fire when bootstrapping the
33552 +# libtool distribution, otherwise you forgot to ship ltmain.sh
33553 +# with your package, and you will get complaints that there are
33554 +# no rules to generate ltmain.sh.
33555 +if test -f "$ltmain"; then
33556 + # See if we are running on zsh, and set the options which allow our commands through
33557 + # without removal of \ escapes.
33558 + if test -n "${ZSH_VERSION+set}" ; then
33559 + setopt NO_GLOB_SUBST
33560 + fi
33561 + # Now quote all the things that may contain metacharacters while being
33562 + # careful not to overquote the AC_SUBSTed values. We take copies of the
33563 + # variables and quote the copies for generation of the libtool script.
33564 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
33565 + SED SHELL STRIP \
33566 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
33567 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
33568 + deplibs_check_method reload_flag reload_cmds need_locks \
33569 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
33570 + lt_cv_sys_global_symbol_to_c_name_address \
33571 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
33572 + old_postinstall_cmds old_postuninstall_cmds \
33573 + compiler \
33574 + CC \
33575 + LD \
33576 + lt_prog_compiler_wl \
33577 + lt_prog_compiler_pic \
33578 + lt_prog_compiler_static \
33579 + lt_prog_compiler_no_builtin_flag \
33580 + export_dynamic_flag_spec \
33581 + thread_safe_flag_spec \
33582 + whole_archive_flag_spec \
33583 + enable_shared_with_static_runtimes \
33584 + old_archive_cmds \
33585 + old_archive_from_new_cmds \
33586 + predep_objects \
33587 + postdep_objects \
33588 + predeps \
33589 + postdeps \
33590 + compiler_lib_search_path \
33591 + archive_cmds \
33592 + archive_expsym_cmds \
33593 + postinstall_cmds \
33594 + postuninstall_cmds \
33595 + old_archive_from_expsyms_cmds \
33596 + allow_undefined_flag \
33597 + no_undefined_flag \
33598 + export_symbols_cmds \
33599 + hardcode_libdir_flag_spec \
33600 + hardcode_libdir_flag_spec_ld \
33601 + hardcode_libdir_separator \
33602 + hardcode_automatic \
33603 + module_cmds \
33604 + module_expsym_cmds \
33605 + lt_cv_prog_compiler_c_o \
33606 + exclude_expsyms \
33607 + include_expsyms; do
33609 + case $var in
33610 + old_archive_cmds | \
33611 + old_archive_from_new_cmds | \
33612 + archive_cmds | \
33613 + archive_expsym_cmds | \
33614 + module_cmds | \
33615 + module_expsym_cmds | \
33616 + old_archive_from_expsyms_cmds | \
33617 + export_symbols_cmds | \
33618 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
33619 + postinstall_cmds | postuninstall_cmds | \
33620 + old_postinstall_cmds | old_postuninstall_cmds | \
33621 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
33622 + # Double-quote double-evaled strings.
33623 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
33624 + ;;
33625 + *)
33626 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
33627 + ;;
33628 + esac
33629 + done
33631 + case $lt_echo in
33632 + *'\$0 --fallback-echo"')
33633 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
33634 + ;;
33635 + esac
33637 +cfgfile="${ofile}T"
33638 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
33639 + $rm -f "$cfgfile"
33640 + { echo "$as_me:$LINENO: creating $ofile" >&5
33641 +echo "$as_me: creating $ofile" >&6;}
33643 + cat <<__EOF__ >> "$cfgfile"
33644 +#! $SHELL
33646 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33647 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
33648 +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
33650 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
33651 +# Free Software Foundation, Inc.
33653 +# This file is part of GNU Libtool:
33654 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
33656 +# This program is free software; you can redistribute it and/or modify
33657 +# it under the terms of the GNU General Public License as published by
33658 +# the Free Software Foundation; either version 2 of the License, or
33659 +# (at your option) any later version.
33661 +# This program is distributed in the hope that it will be useful, but
33662 +# WITHOUT ANY WARRANTY; without even the implied warranty of
33663 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33664 +# General Public License for more details.
33666 +# You should have received a copy of the GNU General Public License
33667 +# along with this program; if not, write to the Free Software
33668 +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33670 +# As a special exception to the GNU General Public License, if you
33671 +# distribute this file as part of a program that contains a
33672 +# configuration script generated by Autoconf, you may include it under
33673 +# the same distribution terms that you use for the rest of that program.
33675 +# A sed program that does not truncate output.
33676 +SED=$lt_SED
33678 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
33679 +Xsed="$SED -e 1s/^X//"
33681 +# The HP-UX ksh and POSIX shell print the target directory to stdout
33682 +# if CDPATH is set.
33683 +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33685 +# The names of the tagged configurations supported by this script.
33686 +available_tags=
33688 +# ### BEGIN LIBTOOL CONFIG
33690 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33692 +# Shell to use when invoking shell scripts.
33693 +SHELL=$lt_SHELL
33695 +# Whether or not to build shared libraries.
33696 +build_libtool_libs=$enable_shared
33698 +# Whether or not to build static libraries.
33699 +build_old_libs=$enable_static
33701 +# Whether or not to add -lc for building shared libraries.
33702 +build_libtool_need_lc=$archive_cmds_need_lc
33704 +# Whether or not to disallow shared libs when runtime libs are static
33705 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33707 +# Whether or not to optimize for fast installation.
33708 +fast_install=$enable_fast_install
33710 +# The host system.
33711 +host_alias=$host_alias
33712 +host=$host
33713 +host_os=$host_os
33715 +# The build system.
33716 +build_alias=$build_alias
33717 +build=$build
33718 +build_os=$build_os
33720 +# An echo program that does not interpret backslashes.
33721 +echo=$lt_echo
33723 +# The archiver.
33724 +AR=$lt_AR
33725 +AR_FLAGS=$lt_AR_FLAGS
33727 +# A C compiler.
33728 +LTCC=$lt_LTCC
33730 +# LTCC compiler flags.
33731 +LTCFLAGS=$lt_LTCFLAGS
33733 +# A language-specific compiler.
33734 +CC=$lt_compiler
33736 +# Is the compiler the GNU C compiler?
33737 +with_gcc=$GCC
33739 +# An ERE matcher.
33740 +EGREP=$lt_EGREP
33742 +# The linker used to build libraries.
33743 +LD=$lt_LD
33745 +# Whether we need hard or soft links.
33746 +LN_S=$lt_LN_S
33748 +# A BSD-compatible nm program.
33749 +NM=$lt_NM
33751 +# A symbol stripping program
33752 +STRIP=$lt_STRIP
33754 +# Used to examine libraries when file_magic_cmd begins "file"
33755 +MAGIC_CMD=$MAGIC_CMD
33757 +# Used on cygwin: DLL creation program.
33758 +DLLTOOL="$DLLTOOL"
33760 +# Used on cygwin: object dumper.
33761 +OBJDUMP="$OBJDUMP"
33763 +# Used on cygwin: assembler.
33764 +AS="$AS"
33766 +# The name of the directory that contains temporary libtool files.
33767 +objdir=$objdir
33769 +# How to create reloadable object files.
33770 +reload_flag=$lt_reload_flag
33771 +reload_cmds=$lt_reload_cmds
33773 +# How to pass a linker flag through the compiler.
33774 +wl=$lt_lt_prog_compiler_wl
33776 +# Object file suffix (normally "o").
33777 +objext="$ac_objext"
33779 +# Old archive suffix (normally "a").
33780 +libext="$libext"
33782 +# Shared library suffix (normally ".so").
33783 +shrext_cmds='$shrext_cmds'
33785 +# Executable file suffix (normally "").
33786 +exeext="$exeext"
33788 +# Additional compiler flags for building library objects.
33789 +pic_flag=$lt_lt_prog_compiler_pic
33790 +pic_mode=$pic_mode
33792 +# What is the maximum length of a command?
33793 +max_cmd_len=$lt_cv_sys_max_cmd_len
33795 +# Does compiler simultaneously support -c and -o options?
33796 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33798 +# Must we lock files when doing compilation?
33799 +need_locks=$lt_need_locks
33801 +# Do we need the lib prefix for modules?
33802 +need_lib_prefix=$need_lib_prefix
33804 +# Do we need a version for libraries?
33805 +need_version=$need_version
33807 +# Whether dlopen is supported.
33808 +dlopen_support=$enable_dlopen
33810 +# Whether dlopen of programs is supported.
33811 +dlopen_self=$enable_dlopen_self
33813 +# Whether dlopen of statically linked programs is supported.
33814 +dlopen_self_static=$enable_dlopen_self_static
33816 +# Compiler flag to prevent dynamic linking.
33817 +link_static_flag=$lt_lt_prog_compiler_static
33819 +# Compiler flag to turn off builtin functions.
33820 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33822 +# Compiler flag to allow reflexive dlopens.
33823 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33825 +# Compiler flag to generate shared objects directly from archives.
33826 +whole_archive_flag_spec=$lt_whole_archive_flag_spec
33828 +# Compiler flag to generate thread-safe objects.
33829 +thread_safe_flag_spec=$lt_thread_safe_flag_spec
33831 +# Library versioning type.
33832 +version_type=$version_type
33834 +# Format of library name prefix.
33835 +libname_spec=$lt_libname_spec
33837 +# List of archive names. First name is the real one, the rest are links.
33838 +# The last name is the one that the linker finds with -lNAME.
33839 +library_names_spec=$lt_library_names_spec
33841 +# The coded name of the library, if different from the real name.
33842 +soname_spec=$lt_soname_spec
33844 +# Commands used to build and install an old-style archive.
33845 +RANLIB=$lt_RANLIB
33846 +old_archive_cmds=$lt_old_archive_cmds
33847 +old_postinstall_cmds=$lt_old_postinstall_cmds
33848 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
33850 +# Create an old-style archive from a shared archive.
33851 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33853 +# Create a temporary old-style archive to link instead of a shared archive.
33854 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33856 +# Commands used to build and install a shared archive.
33857 +archive_cmds=$lt_archive_cmds
33858 +archive_expsym_cmds=$lt_archive_expsym_cmds
33859 +postinstall_cmds=$lt_postinstall_cmds
33860 +postuninstall_cmds=$lt_postuninstall_cmds
33862 +# Commands used to build a loadable module (assumed same as above if empty)
33863 +module_cmds=$lt_module_cmds
33864 +module_expsym_cmds=$lt_module_expsym_cmds
33866 +# Commands to strip libraries.
33867 +old_striplib=$lt_old_striplib
33868 +striplib=$lt_striplib
33870 +# Dependencies to place before the objects being linked to create a
33871 +# shared library.
33872 +predep_objects=$lt_predep_objects
33874 +# Dependencies to place after the objects being linked to create a
33875 +# shared library.
33876 +postdep_objects=$lt_postdep_objects
33878 +# Dependencies to place before the objects being linked to create a
33879 +# shared library.
33880 +predeps=$lt_predeps
33882 +# Dependencies to place after the objects being linked to create a
33883 +# shared library.
33884 +postdeps=$lt_postdeps
33886 +# The library search path used internally by the compiler when linking
33887 +# a shared library.
33888 +compiler_lib_search_path=$lt_compiler_lib_search_path
33890 +# Method to check whether dependent libraries are shared objects.
33891 +deplibs_check_method=$lt_deplibs_check_method
33893 +# Command to use when deplibs_check_method == file_magic.
33894 +file_magic_cmd=$lt_file_magic_cmd
33896 +# Flag that allows shared libraries with undefined symbols to be built.
33897 +allow_undefined_flag=$lt_allow_undefined_flag
33899 +# Flag that forces no undefined symbols.
33900 +no_undefined_flag=$lt_no_undefined_flag
33902 +# Commands used to finish a libtool library installation in a directory.
33903 +finish_cmds=$lt_finish_cmds
33905 +# Same as above, but a single script fragment to be evaled but not shown.
33906 +finish_eval=$lt_finish_eval
33908 +# Take the output of nm and produce a listing of raw symbols and C names.
33909 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33911 +# Transform the output of nm in a proper C declaration
33912 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33914 +# Transform the output of nm in a C name address pair
33915 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33917 +# This is the shared library runtime path variable.
33918 +runpath_var=$runpath_var
33920 +# This is the shared library path variable.
33921 +shlibpath_var=$shlibpath_var
33923 +# Is shlibpath searched before the hard-coded library search path?
33924 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33926 +# How to hardcode a shared library path into an executable.
33927 +hardcode_action=$hardcode_action
33929 +# Whether we should hardcode library paths into libraries.
33930 +hardcode_into_libs=$hardcode_into_libs
33932 +# Flag to hardcode \$libdir into a binary during linking.
33933 +# This must work even if \$libdir does not exist.
33934 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33936 +# If ld is used when linking, flag to hardcode \$libdir into
33937 +# a binary during linking. This must work even if \$libdir does
33938 +# not exist.
33939 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33941 +# Whether we need a single -rpath flag with a separated argument.
33942 +hardcode_libdir_separator=$lt_hardcode_libdir_separator
33944 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
33945 +# resulting binary.
33946 +hardcode_direct=$hardcode_direct
33948 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
33949 +# resulting binary.
33950 +hardcode_minus_L=$hardcode_minus_L
33952 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
33953 +# the resulting binary.
33954 +hardcode_shlibpath_var=$hardcode_shlibpath_var
33956 +# Set to yes if building a shared library automatically hardcodes DIR into the library
33957 +# and all subsequent libraries and executables linked against it.
33958 +hardcode_automatic=$hardcode_automatic
33960 +# Variables whose values should be saved in libtool wrapper scripts and
33961 +# restored at relink time.
33962 +variables_saved_for_relink="$variables_saved_for_relink"
33964 +# Whether libtool must link a program against all its dependency libraries.
33965 +link_all_deplibs=$link_all_deplibs
33967 +# Compile-time system search path for libraries
33968 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33970 +# Run-time system search path for libraries
33971 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33973 +# Fix the shell variable \$srcfile for the compiler.
33974 +fix_srcfile_path="$fix_srcfile_path"
33976 +# Set to yes if exported symbols are required.
33977 +always_export_symbols=$always_export_symbols
33979 +# The commands to list exported symbols.
33980 +export_symbols_cmds=$lt_export_symbols_cmds
33982 +# The commands to extract the exported symbol list from a shared archive.
33983 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
33985 +# Symbols that should not be listed in the preloaded symbols.
33986 +exclude_expsyms=$lt_exclude_expsyms
33988 +# Symbols that must always be exported.
33989 +include_expsyms=$lt_include_expsyms
33991 +# ### END LIBTOOL CONFIG
33993 +__EOF__
33996 + case $host_os in
33997 + aix3*)
33998 + cat <<\EOF >> "$cfgfile"
34000 +# AIX sometimes has problems with the GCC collect2 program. For some
34001 +# reason, if we set the COLLECT_NAMES environment variable, the problems
34002 +# vanish in a puff of smoke.
34003 +if test "X${COLLECT_NAMES+set}" != Xset; then
34004 + COLLECT_NAMES=
34005 + export COLLECT_NAMES
34007 +EOF
34008 + ;;
34009 + esac
34011 + # We use sed instead of cat because bash on DJGPP gets confused if
34012 + # if finds mixed CR/LF and LF-only lines. Since sed operates in
34013 + # text mode, it properly converts lines to CR/LF. This bash problem
34014 + # is reportedly fixed, but why not run on old versions too?
34015 + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
34017 + mv -f "$cfgfile" "$ofile" || \
34018 + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
34019 + chmod +x "$ofile"
34021 +else
34022 + # If there is no Makefile yet, we rely on a make rule to execute
34023 + # `config.status --recheck' to rerun these tests and create the
34024 + # libtool script then.
34025 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
34026 + if test -f "$ltmain_in"; then
34027 + test -f Makefile && make "$ltmain"
34028 + fi
34032 +ac_ext=c
34033 +ac_cpp='$CPP $CPPFLAGS'
34034 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34035 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34036 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
34038 +CC="$lt_save_CC"
34041 +# Check whether --with-tags or --without-tags was given.
34042 +if test "${with_tags+set}" = set; then
34043 + withval="$with_tags"
34044 + tagnames="$withval"
34045 +fi;
34047 +if test -f "$ltmain" && test -n "$tagnames"; then
34048 + if test ! -f "${ofile}"; then
34049 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
34050 +echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
34051 + fi
34053 + if test -z "$LTCC"; then
34054 + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
34055 + if test -z "$LTCC"; then
34056 + { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
34057 +echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
34058 + else
34059 + { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
34060 +echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
34061 + fi
34062 + fi
34063 + if test -z "$LTCFLAGS"; then
34064 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
34065 + fi
34067 + # Extract list of available tagged configurations in $ofile.
34068 + # Note that this assumes the entire list is on one line.
34069 + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
34071 + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
34072 + for tagname in $tagnames; do
34073 + IFS="$lt_save_ifs"
34074 + # Check whether tagname contains only valid characters
34075 + case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
34076 + "") ;;
34077 + *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
34078 +echo "$as_me: error: invalid tag name: $tagname" >&2;}
34079 + { (exit 1); exit 1; }; }
34080 + ;;
34081 + esac
34083 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
34084 + then
34085 + { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
34086 +echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
34087 + { (exit 1); exit 1; }; }
34088 + fi
34090 + # Update the list of available tags.
34091 + if test -n "$tagname"; then
34092 + echo appending configuration tag \"$tagname\" to $ofile
34094 + case $tagname in
34095 + CXX)
34096 + if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
34097 + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
34098 + (test "X$CXX" != "Xg++"))) ; then
34099 + ac_ext=cc
34100 +ac_cpp='$CXXCPP $CPPFLAGS'
34101 +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
34102 +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
34103 +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
34108 +archive_cmds_need_lc_CXX=no
34109 +allow_undefined_flag_CXX=
34110 +always_export_symbols_CXX=no
34111 +archive_expsym_cmds_CXX=
34112 +export_dynamic_flag_spec_CXX=
34113 +hardcode_direct_CXX=no
34114 +hardcode_libdir_flag_spec_CXX=
34115 +hardcode_libdir_flag_spec_ld_CXX=
34116 +hardcode_libdir_separator_CXX=
34117 +hardcode_minus_L_CXX=no
34118 +hardcode_shlibpath_var_CXX=unsupported
34119 +hardcode_automatic_CXX=no
34120 +module_cmds_CXX=
34121 +module_expsym_cmds_CXX=
34122 +link_all_deplibs_CXX=unknown
34123 +old_archive_cmds_CXX=$old_archive_cmds
34124 +no_undefined_flag_CXX=
34125 +whole_archive_flag_spec_CXX=
34126 +enable_shared_with_static_runtimes_CXX=no
34128 +# Dependencies to place before and after the object being linked:
34129 +predep_objects_CXX=
34130 +postdep_objects_CXX=
34131 +predeps_CXX=
34132 +postdeps_CXX=
34133 +compiler_lib_search_path_CXX=
34135 +# Source file extension for C++ test sources.
34136 +ac_ext=cpp
34138 +# Object file extension for compiled C++ test sources.
34139 +objext=o
34140 +objext_CXX=$objext
34142 +# Code to be used in simple compile tests
34143 +lt_simple_compile_test_code="int some_variable = 0;\n"
34145 +# Code to be used in simple link tests
34146 +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
34148 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
34150 +# If no C compiler was specified, use CC.
34151 +LTCC=${LTCC-"$CC"}
34153 +# If no C compiler flags were specified, use CFLAGS.
34154 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
34156 +# Allow CC to be a program name with arguments.
34157 +compiler=$CC
34160 +# save warnings/boilerplate of simple test code
34161 +ac_outfile=conftest.$ac_objext
34162 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
34163 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
34164 +_lt_compiler_boilerplate=`cat conftest.err`
34165 +$rm conftest*
34167 +ac_outfile=conftest.$ac_objext
34168 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
34169 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
34170 +_lt_linker_boilerplate=`cat conftest.err`
34171 +$rm conftest*
34174 +# Allow CC to be a program name with arguments.
34175 +lt_save_CC=$CC
34176 +lt_save_LD=$LD
34177 +lt_save_GCC=$GCC
34178 +GCC=$GXX
34179 +lt_save_with_gnu_ld=$with_gnu_ld
34180 +lt_save_path_LD=$lt_cv_path_LD
34181 +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
34182 + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
34183 +else
34184 + $as_unset lt_cv_prog_gnu_ld
34186 +if test -n "${lt_cv_path_LDCXX+set}"; then
34187 + lt_cv_path_LD=$lt_cv_path_LDCXX
34188 +else
34189 + $as_unset lt_cv_path_LD
34191 +test -z "${LDCXX+set}" || LD=$LDCXX
34192 +CC=${CXX-"c++"}
34193 +compiler=$CC
34194 +compiler_CXX=$CC
34195 +for cc_temp in $compiler""; do
34196 + case $cc_temp in
34197 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34198 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
34199 + \-*) ;;
34200 + *) break;;
34201 + esac
34202 +done
34203 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
34206 +# We don't want -fno-exception wen compiling C++ code, so set the
34207 +# no_builtin_flag separately
34208 +if test "$GXX" = yes; then
34209 + lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
34210 +else
34211 + lt_prog_compiler_no_builtin_flag_CXX=
34214 +if test "$GXX" = yes; then
34215 + # Set up default GNU C++ configuration
34218 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
34219 +if test "${with_gnu_ld+set}" = set; then
34220 + withval="$with_gnu_ld"
34221 + test "$withval" = no || with_gnu_ld=yes
34222 +else
34223 + with_gnu_ld=no
34224 +fi;
34225 +ac_prog=ld
34226 +if test "$GCC" = yes; then
34227 + # Check if gcc -print-prog-name=ld gives a path.
34228 + echo "$as_me:$LINENO: checking for ld used by $CC" >&5
34229 +echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
34230 + case $host in
34231 + *-*-mingw*)
34232 + # gcc leaves a trailing carriage return which upsets mingw
34233 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34234 + *)
34235 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
34236 + esac
34237 + case $ac_prog in
34238 + # Accept absolute paths.
34239 + [\\/]* | ?:[\\/]*)
34240 + re_direlt='/[^/][^/]*/\.\./'
34241 + # Canonicalize the pathname of ld
34242 + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
34243 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
34244 + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
34245 + done
34246 + test -z "$LD" && LD="$ac_prog"
34247 + ;;
34248 + "")
34249 + # If it fails, then pretend we aren't using GCC.
34250 + ac_prog=ld
34251 + ;;
34252 + *)
34253 + # If it is relative, then search for the first ld in PATH.
34254 + with_gnu_ld=unknown
34255 + ;;
34256 + esac
34257 +elif test "$with_gnu_ld" = yes; then
34258 + echo "$as_me:$LINENO: checking for GNU ld" >&5
34259 +echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
34260 else
34261 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
34262 + echo "$as_me:$LINENO: checking for non-GNU ld" >&5
34263 +echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
34265 +if test "${lt_cv_path_LD+set}" = set; then
34266 + echo $ECHO_N "(cached) $ECHO_C" >&6
34267 +else
34268 + if test -z "$LD"; then
34269 + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
34270 for ac_dir in $PATH; do
34271 + IFS="$lt_save_ifs"
34272 test -z "$ac_dir" && ac_dir=.
34273 - if test -f $ac_dir/$ac_word; then
34274 - ac_cv_prog_RANLIB="ranlib"
34275 - break
34276 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
34277 + lt_cv_path_LD="$ac_dir/$ac_prog"
34278 + # Check to see if the program is GNU ld. I'd rather use --version,
34279 + # but apparently some variants of GNU ld only accept -v.
34280 + # Break only if it was the GNU/non-GNU ld that we prefer.
34281 + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
34282 + *GNU* | *'with BFD'*)
34283 + test "$with_gnu_ld" != no && break
34284 + ;;
34285 + *)
34286 + test "$with_gnu_ld" != yes && break
34287 + ;;
34288 + esac
34290 done
34291 - IFS="$ac_save_ifs"
34292 - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
34293 + IFS="$lt_save_ifs"
34294 +else
34295 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
34298 -RANLIB="$ac_cv_prog_RANLIB"
34299 -if test -n "$RANLIB"; then
34300 - echo "$ac_t""$RANLIB" 1>&6
34302 +LD="$lt_cv_path_LD"
34303 +if test -n "$LD"; then
34304 + echo "$as_me:$LINENO: result: $LD" >&5
34305 +echo "${ECHO_T}$LD" >&6
34306 +else
34307 + echo "$as_me:$LINENO: result: no" >&5
34308 +echo "${ECHO_T}no" >&6
34310 +test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
34311 +echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
34312 + { (exit 1); exit 1; }; }
34313 +echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
34314 +echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
34315 +if test "${lt_cv_prog_gnu_ld+set}" = set; then
34316 + echo $ECHO_N "(cached) $ECHO_C" >&6
34317 else
34318 - echo "$ac_t""no" 1>&6
34319 + # I'd rather use --version here, but apparently some GNU lds only accept -v.
34320 +case `$LD -v 2>&1 </dev/null` in
34321 +*GNU* | *'with BFD'*)
34322 + lt_cv_prog_gnu_ld=yes
34323 + ;;
34325 + lt_cv_prog_gnu_ld=no
34326 + ;;
34327 +esac
34329 +echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
34330 +echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
34331 +with_gnu_ld=$lt_cv_prog_gnu_ld
34334 -# Decide whether to use libtool,
34335 -# and if so whether to build shared, static, or both flavors of library.
34336 -LTSHARED="no"
34337 -# Check whether --enable-shared or --disable-shared was given.
34338 -if test "${enable_shared+set}" = set; then
34339 - enableval="$enable_shared"
34340 - LTSHARED="$enableval"
34342 + # Check if GNU C++ uses GNU ld as the underlying linker, since the
34343 + # archiving commands below assume that GNU ld is being used.
34344 + if test "$with_gnu_ld" = yes; then
34345 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
34346 + 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'
34348 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
34349 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
34351 + # If archive_cmds runs LD, not CC, wlarc should be empty
34352 + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
34353 + # investigate it a little bit more. (MM)
34354 + wlarc='${wl}'
34356 + # ancient GNU ld didn't support --whole-archive et. al.
34357 + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
34358 + grep 'no-whole-archive' > /dev/null; then
34359 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
34360 + else
34361 + whole_archive_flag_spec_CXX=
34362 + fi
34363 + else
34364 + with_gnu_ld=no
34365 + wlarc=
34367 + # A generic and very simple default shared library creation
34368 + # command for GNU C++ for the case where it uses the native
34369 + # linker, instead of GNU ld. If possible, this setting should
34370 + # overridden to take advantage of the native linker features on
34371 + # the platform it is being used on.
34372 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
34373 + fi
34375 + # Commands to make compiler produce verbose output that lists
34376 + # what "hidden" libraries, object files and flags are used when
34377 + # linking a shared library.
34378 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
34380 +else
34381 + GXX=no
34382 + with_gnu_ld=no
34383 + wlarc=
34386 -LTSTATIC="no"
34387 -# Check whether --enable-static or --disable-static was given.
34388 -if test "${enable_static+set}" = set; then
34389 - enableval="$enable_static"
34390 - LTSTATIC="$enableval"
34391 +# PORTME: fill in a description of your system's C++ link characteristics
34392 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
34393 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
34394 +ld_shlibs_CXX=yes
34395 +case $host_os in
34396 + aix3*)
34397 + # FIXME: insert proper C++ library support
34398 + ld_shlibs_CXX=no
34399 + ;;
34400 + aix4* | aix5*)
34401 + if test "$host_cpu" = ia64; then
34402 + # On IA64, the linker does run time linking by default, so we don't
34403 + # have to do anything special.
34404 + aix_use_runtimelinking=no
34405 + exp_sym_flag='-Bexport'
34406 + no_entry_flag=""
34407 + else
34408 + aix_use_runtimelinking=no
34410 + # Test if we are trying to use run time linking or normal
34411 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
34412 + # need to do runtime linking.
34413 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
34414 + for ld_flag in $LDFLAGS; do
34415 + case $ld_flag in
34416 + *-brtl*)
34417 + aix_use_runtimelinking=yes
34418 + break
34419 + ;;
34420 + esac
34421 + done
34422 + ;;
34423 + esac
34425 + exp_sym_flag='-bexport'
34426 + no_entry_flag='-bnoentry'
34427 + fi
34429 + # When large executables or shared objects are built, AIX ld can
34430 + # have problems creating the table of contents. If linking a library
34431 + # or program results in "error TOC overflow" add -mminimal-toc to
34432 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
34433 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
34435 + archive_cmds_CXX=''
34436 + hardcode_direct_CXX=yes
34437 + hardcode_libdir_separator_CXX=':'
34438 + link_all_deplibs_CXX=yes
34440 + if test "$GXX" = yes; then
34441 + case $host_os in aix4.[012]|aix4.[012].*)
34442 + # We only want to do this on AIX 4.2 and lower, the check
34443 + # below for broken collect2 doesn't work under 4.3+
34444 + collect2name=`${CC} -print-prog-name=collect2`
34445 + if test -f "$collect2name" && \
34446 + strings "$collect2name" | grep resolve_lib_name >/dev/null
34447 + then
34448 + # We have reworked collect2
34449 + hardcode_direct_CXX=yes
34450 + else
34451 + # We have old collect2
34452 + hardcode_direct_CXX=unsupported
34453 + # It fails to find uninstalled libraries when the uninstalled
34454 + # path is not listed in the libpath. Setting hardcode_minus_L
34455 + # to unsupported forces relinking
34456 + hardcode_minus_L_CXX=yes
34457 + hardcode_libdir_flag_spec_CXX='-L$libdir'
34458 + hardcode_libdir_separator_CXX=
34459 + fi
34460 + ;;
34461 + esac
34462 + shared_flag='-shared'
34463 + if test "$aix_use_runtimelinking" = yes; then
34464 + shared_flag="$shared_flag "'${wl}-G'
34465 + fi
34466 + else
34467 + # not using gcc
34468 + if test "$host_cpu" = ia64; then
34469 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
34470 + # chokes on -Wl,-G. The following line is correct:
34471 + shared_flag='-G'
34472 + else
34473 + if test "$aix_use_runtimelinking" = yes; then
34474 + shared_flag='${wl}-G'
34475 + else
34476 + shared_flag='${wl}-bM:SRE'
34477 + fi
34478 + fi
34479 + fi
34481 + # It seems that -bexpall does not export symbols beginning with
34482 + # underscore (_), so it is better to generate a list of symbols to export.
34483 + always_export_symbols_CXX=yes
34484 + if test "$aix_use_runtimelinking" = yes; then
34485 + # Warning - without using the other runtime loading flags (-brtl),
34486 + # -berok will link without error, but may produce a broken library.
34487 + allow_undefined_flag_CXX='-berok'
34488 + # Determine the default libpath from the value encoded in an empty executable.
34489 + cat >conftest.$ac_ext <<_ACEOF
34490 +/* confdefs.h. */
34491 +_ACEOF
34492 +cat confdefs.h >>conftest.$ac_ext
34493 +cat >>conftest.$ac_ext <<_ACEOF
34494 +/* end confdefs.h. */
34496 +int
34497 +main ()
34501 + return 0;
34503 +_ACEOF
34504 +rm -f conftest.$ac_objext conftest$ac_exeext
34505 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34506 + (eval $ac_link) 2>conftest.er1
34507 + ac_status=$?
34508 + grep -v '^ *+' conftest.er1 >conftest.err
34509 + rm -f conftest.er1
34510 + cat conftest.err >&5
34511 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34512 + (exit $ac_status); } &&
34513 + { ac_try='test -z "$ac_cxx_werror_flag"
34514 + || test ! -s conftest.err'
34515 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34516 + (eval $ac_try) 2>&5
34517 + ac_status=$?
34518 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34519 + (exit $ac_status); }; } &&
34520 + { ac_try='test -s conftest$ac_exeext'
34521 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34522 + (eval $ac_try) 2>&5
34523 + ac_status=$?
34524 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34525 + (exit $ac_status); }; }; then
34527 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
34528 +}'`
34529 +# Check for a 64-bit object if we didn't find anything.
34530 +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; }
34531 +}'`; fi
34532 +else
34533 + echo "$as_me: failed program was:" >&5
34534 +sed 's/^/| /' conftest.$ac_ext >&5
34537 +rm -f conftest.err conftest.$ac_objext \
34538 + conftest$ac_exeext conftest.$ac_ext
34539 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
34541 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
34543 + archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
34544 + else
34545 + if test "$host_cpu" = ia64; then
34546 + hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
34547 + allow_undefined_flag_CXX="-z nodefs"
34548 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
34549 + else
34550 + # Determine the default libpath from the value encoded in an empty executable.
34551 + cat >conftest.$ac_ext <<_ACEOF
34552 +/* confdefs.h. */
34553 +_ACEOF
34554 +cat confdefs.h >>conftest.$ac_ext
34555 +cat >>conftest.$ac_ext <<_ACEOF
34556 +/* end confdefs.h. */
34558 +int
34559 +main ()
34563 + return 0;
34565 +_ACEOF
34566 +rm -f conftest.$ac_objext conftest$ac_exeext
34567 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
34568 + (eval $ac_link) 2>conftest.er1
34569 + ac_status=$?
34570 + grep -v '^ *+' conftest.er1 >conftest.err
34571 + rm -f conftest.er1
34572 + cat conftest.err >&5
34573 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34574 + (exit $ac_status); } &&
34575 + { ac_try='test -z "$ac_cxx_werror_flag"
34576 + || test ! -s conftest.err'
34577 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34578 + (eval $ac_try) 2>&5
34579 + ac_status=$?
34580 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34581 + (exit $ac_status); }; } &&
34582 + { ac_try='test -s conftest$ac_exeext'
34583 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34584 + (eval $ac_try) 2>&5
34585 + ac_status=$?
34586 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
34587 + (exit $ac_status); }; }; then
34589 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
34590 +}'`
34591 +# Check for a 64-bit object if we didn't find anything.
34592 +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; }
34593 +}'`; fi
34594 +else
34595 + echo "$as_me: failed program was:" >&5
34596 +sed 's/^/| /' conftest.$ac_ext >&5
34599 +rm -f conftest.err conftest.$ac_objext \
34600 + conftest$ac_exeext conftest.$ac_ext
34601 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
34603 + hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
34604 + # Warning - without using the other run time loading flags,
34605 + # -berok will link without error, but may produce a broken library.
34606 + no_undefined_flag_CXX=' ${wl}-bernotok'
34607 + allow_undefined_flag_CXX=' ${wl}-berok'
34608 + # Exported symbols can be pulled into shared objects from archives
34609 + whole_archive_flag_spec_CXX='$convenience'
34610 + archive_cmds_need_lc_CXX=yes
34611 + # This is similar to how AIX traditionally builds its shared libraries.
34612 + archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
34613 + fi
34614 + fi
34615 + ;;
34617 + beos*)
34618 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
34619 + allow_undefined_flag_CXX=unsupported
34620 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
34621 + # support --undefined. This deserves some investigation. FIXME
34622 + archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34623 + else
34624 + ld_shlibs_CXX=no
34625 + fi
34626 + ;;
34628 + chorus*)
34629 + case $cc_basename in
34630 + *)
34631 + # FIXME: insert proper C++ library support
34632 + ld_shlibs_CXX=no
34633 + ;;
34634 + esac
34635 + ;;
34637 + cygwin* | mingw* | pw32*)
34638 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
34639 + # as there is no search path for DLLs.
34640 + hardcode_libdir_flag_spec_CXX='-L$libdir'
34641 + allow_undefined_flag_CXX=unsupported
34642 + always_export_symbols_CXX=no
34643 + enable_shared_with_static_runtimes_CXX=yes
34645 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
34646 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
34647 + # If the export-symbols file already is a .def file (1st line
34648 + # is EXPORTS), use it as is; otherwise, prepend...
34649 + archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
34650 + cp $export_symbols $output_objdir/$soname.def;
34651 + else
34652 + echo EXPORTS > $output_objdir/$soname.def;
34653 + cat $export_symbols >> $output_objdir/$soname.def;
34654 + fi~
34655 + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
34656 + else
34657 + ld_shlibs_CXX=no
34658 + fi
34659 + ;;
34660 + darwin* | rhapsody*)
34661 + case $host_os in
34662 + rhapsody* | darwin1.[012])
34663 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
34664 + ;;
34665 + *) # Darwin 1.3 on
34666 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
34667 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
34668 + else
34669 + case ${MACOSX_DEPLOYMENT_TARGET} in
34670 + 10.[012])
34671 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
34672 + ;;
34673 + 10.*)
34674 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
34675 + ;;
34676 + esac
34677 + fi
34678 + ;;
34679 + esac
34680 + archive_cmds_need_lc_CXX=no
34681 + hardcode_direct_CXX=no
34682 + hardcode_automatic_CXX=yes
34683 + hardcode_shlibpath_var_CXX=unsupported
34684 + whole_archive_flag_spec_CXX=''
34685 + link_all_deplibs_CXX=yes
34687 + if test "$GXX" = yes ; then
34688 + lt_int_apple_cc_single_mod=no
34689 + output_verbose_link_cmd='echo'
34690 + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
34691 + lt_int_apple_cc_single_mod=yes
34692 + fi
34693 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
34694 + archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
34695 + else
34696 + archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
34697 + fi
34698 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
34699 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
34700 + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
34701 + 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}'
34702 + else
34703 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
34704 + fi
34705 + 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}'
34706 + else
34707 + case $cc_basename in
34708 + xlc*)
34709 + output_verbose_link_cmd='echo'
34710 + archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
34711 + module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
34712 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
34713 + archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
34714 + 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}'
34715 + ;;
34716 + *)
34717 + ld_shlibs_CXX=no
34718 + ;;
34719 + esac
34720 + fi
34721 + ;;
34723 + dgux*)
34724 + case $cc_basename in
34725 + ec++*)
34726 + # FIXME: insert proper C++ library support
34727 + ld_shlibs_CXX=no
34728 + ;;
34729 + ghcx*)
34730 + # Green Hills C++ Compiler
34731 + # FIXME: insert proper C++ library support
34732 + ld_shlibs_CXX=no
34733 + ;;
34734 + *)
34735 + # FIXME: insert proper C++ library support
34736 + ld_shlibs_CXX=no
34737 + ;;
34738 + esac
34739 + ;;
34740 + freebsd[12]*)
34741 + # C++ shared libraries reported to be fairly broken before switch to ELF
34742 + ld_shlibs_CXX=no
34743 + ;;
34744 + freebsd-elf*)
34745 + archive_cmds_need_lc_CXX=no
34746 + ;;
34747 + freebsd* | kfreebsd*-gnu | dragonfly*)
34748 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
34749 + # conventions
34750 + ld_shlibs_CXX=yes
34751 + ;;
34752 + gnu*)
34753 + ;;
34754 + hpux9*)
34755 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
34756 + hardcode_libdir_separator_CXX=:
34757 + export_dynamic_flag_spec_CXX='${wl}-E'
34758 + hardcode_direct_CXX=yes
34759 + hardcode_minus_L_CXX=yes # Not in the search PATH,
34760 + # but as the default
34761 + # location of the library.
34763 + case $cc_basename in
34764 + CC*)
34765 + # FIXME: insert proper C++ library support
34766 + ld_shlibs_CXX=no
34767 + ;;
34768 + aCC*)
34769 + 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'
34770 + # Commands to make compiler produce verbose output that lists
34771 + # what "hidden" libraries, object files and flags are used when
34772 + # linking a shared library.
34774 + # There doesn't appear to be a way to prevent this compiler from
34775 + # explicitly linking system object files so we need to strip them
34776 + # from the output so that they don't get included in the library
34777 + # dependencies.
34778 + 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'
34779 + ;;
34780 + *)
34781 + if test "$GXX" = yes; then
34782 + 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'
34783 + else
34784 + # FIXME: insert proper C++ library support
34785 + ld_shlibs_CXX=no
34786 + fi
34787 + ;;
34788 + esac
34789 + ;;
34790 + hpux10*|hpux11*)
34791 + if test $with_gnu_ld = no; then
34792 + hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
34793 + hardcode_libdir_separator_CXX=:
34795 + case $host_cpu in
34796 + hppa*64*|ia64*)
34797 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
34798 + ;;
34799 + *)
34800 + export_dynamic_flag_spec_CXX='${wl}-E'
34801 + ;;
34802 + esac
34803 + fi
34804 + case $host_cpu in
34805 + hppa*64*|ia64*)
34806 + hardcode_direct_CXX=no
34807 + hardcode_shlibpath_var_CXX=no
34808 + ;;
34809 + *)
34810 + hardcode_direct_CXX=yes
34811 + hardcode_minus_L_CXX=yes # Not in the search PATH,
34812 + # but as the default
34813 + # location of the library.
34814 + ;;
34815 + esac
34817 + case $cc_basename in
34818 + CC*)
34819 + # FIXME: insert proper C++ library support
34820 + ld_shlibs_CXX=no
34821 + ;;
34822 + aCC*)
34823 + case $host_cpu in
34824 + hppa*64*)
34825 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
34826 + ;;
34827 + ia64*)
34828 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
34829 + ;;
34830 + *)
34831 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
34832 + ;;
34833 + esac
34834 + # Commands to make compiler produce verbose output that lists
34835 + # what "hidden" libraries, object files and flags are used when
34836 + # linking a shared library.
34838 + # There doesn't appear to be a way to prevent this compiler from
34839 + # explicitly linking system object files so we need to strip them
34840 + # from the output so that they don't get included in the library
34841 + # dependencies.
34842 + 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'
34843 + ;;
34844 + *)
34845 + if test "$GXX" = yes; then
34846 + if test $with_gnu_ld = no; then
34847 + case $host_cpu in
34848 + hppa*64*)
34849 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
34850 + ;;
34851 + ia64*)
34852 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
34853 + ;;
34854 + *)
34855 + 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'
34856 + ;;
34857 + esac
34858 + fi
34859 + else
34860 + # FIXME: insert proper C++ library support
34861 + ld_shlibs_CXX=no
34862 + fi
34863 + ;;
34864 + esac
34865 + ;;
34866 + interix3*)
34867 + hardcode_direct_CXX=no
34868 + hardcode_shlibpath_var_CXX=no
34869 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
34870 + export_dynamic_flag_spec_CXX='${wl}-E'
34871 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
34872 + # Instead, shared libraries are loaded at an image base (0x10000000 by
34873 + # default) and relocated if they conflict, which is a slow very memory
34874 + # consuming and fragmenting process. To avoid this, we pick a random,
34875 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
34876 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
34877 + archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
34878 + archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
34879 + ;;
34880 + irix5* | irix6*)
34881 + case $cc_basename in
34882 + CC*)
34883 + # SGI C++
34884 + archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
34886 + # Archives containing C++ object files must be created using
34887 + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
34888 + # necessary to make sure instantiated templates are included
34889 + # in the archive.
34890 + old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
34891 + ;;
34892 + *)
34893 + if test "$GXX" = yes; then
34894 + if test "$with_gnu_ld" = no; then
34895 + archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
34896 + else
34897 + 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'
34898 + fi
34899 + fi
34900 + link_all_deplibs_CXX=yes
34901 + ;;
34902 + esac
34903 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
34904 + hardcode_libdir_separator_CXX=:
34905 + ;;
34906 + linux*)
34907 + case $cc_basename in
34908 + KCC*)
34909 + # Kuck and Associates, Inc. (KAI) C++ Compiler
34911 + # KCC will only create a shared library if the output file
34912 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
34913 + # to its proper name (with version) after linking.
34914 + 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'
34915 + 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'
34916 + # Commands to make compiler produce verbose output that lists
34917 + # what "hidden" libraries, object files and flags are used when
34918 + # linking a shared library.
34920 + # There doesn't appear to be a way to prevent this compiler from
34921 + # explicitly linking system object files so we need to strip them
34922 + # from the output so that they don't get included in the library
34923 + # dependencies.
34924 + 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'
34926 + hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
34927 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
34929 + # Archives containing C++ object files must be created using
34930 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
34931 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
34932 + ;;
34933 + icpc*)
34934 + # Intel C++
34935 + with_gnu_ld=yes
34936 + # version 8.0 and above of icpc choke on multiply defined symbols
34937 + # if we add $predep_objects and $postdep_objects, however 7.1 and
34938 + # earlier do not add the objects themselves.
34939 + case `$CC -V 2>&1` in
34940 + *"Version 7."*)
34941 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
34942 + 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'
34943 + ;;
34944 + *) # Version 8.0 or newer
34945 + tmp_idyn=
34946 + case $host_cpu in
34947 + ia64*) tmp_idyn=' -i_dynamic';;
34948 + esac
34949 + archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
34950 + archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
34951 + ;;
34952 + esac
34953 + archive_cmds_need_lc_CXX=no
34954 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
34955 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
34956 + whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
34957 + ;;
34958 + pgCC*)
34959 + # Portland Group C++ compiler
34960 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
34961 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
34963 + hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
34964 + export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
34965 + whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
34966 + ;;
34967 + cxx*)
34968 + # Compaq C++
34969 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
34970 + 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'
34972 + runpath_var=LD_RUN_PATH
34973 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
34974 + hardcode_libdir_separator_CXX=:
34976 + # Commands to make compiler produce verbose output that lists
34977 + # what "hidden" libraries, object files and flags are used when
34978 + # linking a shared library.
34980 + # There doesn't appear to be a way to prevent this compiler from
34981 + # explicitly linking system object files so we need to strip them
34982 + # from the output so that they don't get included in the library
34983 + # dependencies.
34984 + 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'
34985 + ;;
34986 + esac
34987 + ;;
34988 + lynxos*)
34989 + # FIXME: insert proper C++ library support
34990 + ld_shlibs_CXX=no
34991 + ;;
34992 + m88k*)
34993 + # FIXME: insert proper C++ library support
34994 + ld_shlibs_CXX=no
34995 + ;;
34996 + mvs*)
34997 + case $cc_basename in
34998 + cxx*)
34999 + # FIXME: insert proper C++ library support
35000 + ld_shlibs_CXX=no
35001 + ;;
35002 + *)
35003 + # FIXME: insert proper C++ library support
35004 + ld_shlibs_CXX=no
35005 + ;;
35006 + esac
35007 + ;;
35008 + netbsd*)
35009 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
35010 + archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
35011 + wlarc=
35012 + hardcode_libdir_flag_spec_CXX='-R$libdir'
35013 + hardcode_direct_CXX=yes
35014 + hardcode_shlibpath_var_CXX=no
35015 + fi
35016 + # Workaround some broken pre-1.5 toolchains
35017 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
35018 + ;;
35019 + openbsd2*)
35020 + # C++ shared libraries are fairly broken
35021 + ld_shlibs_CXX=no
35022 + ;;
35023 + openbsd*)
35024 + hardcode_direct_CXX=yes
35025 + hardcode_shlibpath_var_CXX=no
35026 + archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
35027 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
35028 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
35029 + archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
35030 + export_dynamic_flag_spec_CXX='${wl}-E'
35031 + whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
35032 + fi
35033 + output_verbose_link_cmd='echo'
35034 + ;;
35035 + osf3*)
35036 + case $cc_basename in
35037 + KCC*)
35038 + # Kuck and Associates, Inc. (KAI) C++ Compiler
35040 + # KCC will only create a shared library if the output file
35041 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
35042 + # to its proper name (with version) after linking.
35043 + 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'
35045 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
35046 + hardcode_libdir_separator_CXX=:
35048 + # Archives containing C++ object files must be created using
35049 + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
35050 + old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
35052 + ;;
35053 + RCC*)
35054 + # Rational C++ 2.4.1
35055 + # FIXME: insert proper C++ library support
35056 + ld_shlibs_CXX=no
35057 + ;;
35058 + cxx*)
35059 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
35060 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
35062 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
35063 + hardcode_libdir_separator_CXX=:
35065 + # Commands to make compiler produce verbose output that lists
35066 + # what "hidden" libraries, object files and flags are used when
35067 + # linking a shared library.
35069 + # There doesn't appear to be a way to prevent this compiler from
35070 + # explicitly linking system object files so we need to strip them
35071 + # from the output so that they don't get included in the library
35072 + # dependencies.
35073 + 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'
35074 + ;;
35075 + *)
35076 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
35077 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
35078 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
35080 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
35081 + hardcode_libdir_separator_CXX=:
35083 + # Commands to make compiler produce verbose output that lists
35084 + # what "hidden" libraries, object files and flags are used when
35085 + # linking a shared library.
35086 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
35088 + else
35089 + # FIXME: insert proper C++ library support
35090 + ld_shlibs_CXX=no
35091 + fi
35092 + ;;
35093 + esac
35094 + ;;
35095 + osf4* | osf5*)
35096 + case $cc_basename in
35097 + KCC*)
35098 + # Kuck and Associates, Inc. (KAI) C++ Compiler
35100 + # KCC will only create a shared library if the output file
35101 + # ends with ".so" (or ".sl" for HP-UX), so rename the library
35102 + # to its proper name (with version) after linking.
35103 + 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'
35105 + hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
35106 + hardcode_libdir_separator_CXX=:
35108 + # Archives containing C++ object files must be created using
35109 + # the KAI C++ compiler.
35110 + old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
35111 + ;;
35112 + RCC*)
35113 + # Rational C++ 2.4.1
35114 + # FIXME: insert proper C++ library support
35115 + ld_shlibs_CXX=no
35116 + ;;
35117 + cxx*)
35118 + allow_undefined_flag_CXX=' -expect_unresolved \*'
35119 + archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
35120 + archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
35121 + echo "-hidden">> $lib.exp~
35122 + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
35123 + $rm $lib.exp'
35125 + hardcode_libdir_flag_spec_CXX='-rpath $libdir'
35126 + hardcode_libdir_separator_CXX=:
35128 + # Commands to make compiler produce verbose output that lists
35129 + # what "hidden" libraries, object files and flags are used when
35130 + # linking a shared library.
35132 + # There doesn't appear to be a way to prevent this compiler from
35133 + # explicitly linking system object files so we need to strip them
35134 + # from the output so that they don't get included in the library
35135 + # dependencies.
35136 + 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'
35137 + ;;
35138 + *)
35139 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
35140 + allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
35141 + archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
35143 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
35144 + hardcode_libdir_separator_CXX=:
35146 + # Commands to make compiler produce verbose output that lists
35147 + # what "hidden" libraries, object files and flags are used when
35148 + # linking a shared library.
35149 + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
35151 + else
35152 + # FIXME: insert proper C++ library support
35153 + ld_shlibs_CXX=no
35154 + fi
35155 + ;;
35156 + esac
35157 + ;;
35158 + psos*)
35159 + # FIXME: insert proper C++ library support
35160 + ld_shlibs_CXX=no
35161 + ;;
35162 + sunos4*)
35163 + case $cc_basename in
35164 + CC*)
35165 + # Sun C++ 4.x
35166 + # FIXME: insert proper C++ library support
35167 + ld_shlibs_CXX=no
35168 + ;;
35169 + lcc*)
35170 + # Lucid
35171 + # FIXME: insert proper C++ library support
35172 + ld_shlibs_CXX=no
35173 + ;;
35174 + *)
35175 + # FIXME: insert proper C++ library support
35176 + ld_shlibs_CXX=no
35177 + ;;
35178 + esac
35179 + ;;
35180 + solaris*)
35181 + case $cc_basename in
35182 + CC*)
35183 + # Sun C++ 4.2, 5.x and Centerline C++
35184 + archive_cmds_need_lc_CXX=yes
35185 + no_undefined_flag_CXX=' -zdefs'
35186 + archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
35187 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
35188 + $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
35190 + hardcode_libdir_flag_spec_CXX='-R$libdir'
35191 + hardcode_shlibpath_var_CXX=no
35192 + case $host_os in
35193 + solaris2.[0-5] | solaris2.[0-5].*) ;;
35194 + *)
35195 + # The C++ compiler is used as linker so we must use $wl
35196 + # flag to pass the commands to the underlying system
35197 + # linker. We must also pass each convience library through
35198 + # to the system linker between allextract/defaultextract.
35199 + # The C++ compiler will combine linker options so we
35200 + # cannot just pass the convience library names through
35201 + # without $wl.
35202 + # Supported since Solaris 2.6 (maybe 2.5.1?)
35203 + whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
35204 + ;;
35205 + esac
35206 + link_all_deplibs_CXX=yes
35208 + output_verbose_link_cmd='echo'
35210 + # Archives containing C++ object files must be created using
35211 + # "CC -xar", where "CC" is the Sun C++ compiler. This is
35212 + # necessary to make sure instantiated templates are included
35213 + # in the archive.
35214 + old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
35215 + ;;
35216 + gcx*)
35217 + # Green Hills C++ Compiler
35218 + archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
35220 + # The C++ compiler must be used to create the archive.
35221 + old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
35222 + ;;
35223 + *)
35224 + # GNU C++ compiler with Solaris linker
35225 + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
35226 + no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
35227 + if $CC --version | grep -v '^2\.7' > /dev/null; then
35228 + archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
35229 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
35230 + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
35232 + # Commands to make compiler produce verbose output that lists
35233 + # what "hidden" libraries, object files and flags are used when
35234 + # linking a shared library.
35235 + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
35236 + else
35237 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
35238 + # platform.
35239 + archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
35240 + archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
35241 + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
35243 + # Commands to make compiler produce verbose output that lists
35244 + # what "hidden" libraries, object files and flags are used when
35245 + # linking a shared library.
35246 + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
35247 + fi
35249 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
35250 + fi
35251 + ;;
35252 + esac
35253 + ;;
35254 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
35255 + no_undefined_flag_CXX='${wl}-z,text'
35256 + archive_cmds_need_lc_CXX=no
35257 + hardcode_shlibpath_var_CXX=no
35258 + runpath_var='LD_RUN_PATH'
35260 + case $cc_basename in
35261 + CC*)
35262 + archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
35263 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
35264 + ;;
35265 + *)
35266 + archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
35267 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
35268 + ;;
35269 + esac
35270 + ;;
35271 + sysv5* | sco3.2v5* | sco5v6*)
35272 + # Note: We can NOT use -z defs as we might desire, because we do not
35273 + # link with -lc, and that would cause any symbols used from libc to
35274 + # always be unresolved, which means just about no library would
35275 + # ever link correctly. If we're not using GNU ld we use -z text
35276 + # though, which does catch some bad symbols but isn't as heavy-handed
35277 + # as -z defs.
35278 + # For security reasons, it is highly recommended that you always
35279 + # use absolute paths for naming shared libraries, and exclude the
35280 + # DT_RUNPATH tag from executables and libraries. But doing so
35281 + # requires that you compile everything twice, which is a pain.
35282 + # So that behaviour is only enabled if SCOABSPATH is set to a
35283 + # non-empty value in the environment. Most likely only useful for
35284 + # creating official distributions of packages.
35285 + # This is a hack until libtool officially supports absolute path
35286 + # names for shared libraries.
35287 + no_undefined_flag_CXX='${wl}-z,text'
35288 + allow_undefined_flag_CXX='${wl}-z,nodefs'
35289 + archive_cmds_need_lc_CXX=no
35290 + hardcode_shlibpath_var_CXX=no
35291 + hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
35292 + hardcode_libdir_separator_CXX=':'
35293 + link_all_deplibs_CXX=yes
35294 + export_dynamic_flag_spec_CXX='${wl}-Bexport'
35295 + runpath_var='LD_RUN_PATH'
35297 + case $cc_basename in
35298 + CC*)
35299 + archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
35300 + archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
35301 + ;;
35302 + *)
35303 + archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
35304 + archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
35305 + ;;
35306 + esac
35307 + ;;
35308 + tandem*)
35309 + case $cc_basename in
35310 + NCC*)
35311 + # NonStop-UX NCC 3.20
35312 + # FIXME: insert proper C++ library support
35313 + ld_shlibs_CXX=no
35314 + ;;
35315 + *)
35316 + # FIXME: insert proper C++ library support
35317 + ld_shlibs_CXX=no
35318 + ;;
35319 + esac
35320 + ;;
35321 + vxworks*)
35322 + # FIXME: insert proper C++ library support
35323 + ld_shlibs_CXX=no
35324 + ;;
35325 + *)
35326 + # FIXME: insert proper C++ library support
35327 + ld_shlibs_CXX=no
35328 + ;;
35329 +esac
35330 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
35331 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
35332 +test "$ld_shlibs_CXX" = no && can_build_shared=no
35334 +GCC_CXX="$GXX"
35335 +LD_CXX="$LD"
35338 +cat > conftest.$ac_ext <<EOF
35339 +class Foo
35341 +public:
35342 + Foo (void) { a = 0; }
35343 +private:
35344 + int a;
35346 +EOF
35348 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35349 + (eval $ac_compile) 2>&5
35350 + ac_status=$?
35351 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35352 + (exit $ac_status); }; then
35353 + # Parse the compiler output and extract the necessary
35354 + # objects, libraries and library flags.
35356 + # Sentinel used to keep track of whether or not we are before
35357 + # the conftest object file.
35358 + pre_test_object_deps_done=no
35360 + # The `*' in the case matches for architectures that use `case' in
35361 + # $output_verbose_cmd can trigger glob expansion during the loop
35362 + # eval without this substitution.
35363 + output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
35365 + for p in `eval $output_verbose_link_cmd`; do
35366 + case $p in
35368 + -L* | -R* | -l*)
35369 + # Some compilers place space between "-{L,R}" and the path.
35370 + # Remove the space.
35371 + if test $p = "-L" \
35372 + || test $p = "-R"; then
35373 + prev=$p
35374 + continue
35375 + else
35376 + prev=
35377 + fi
35379 + if test "$pre_test_object_deps_done" = no; then
35380 + case $p in
35381 + -L* | -R*)
35382 + # Internal compiler library paths should come after those
35383 + # provided the user. The postdeps already come after the
35384 + # user supplied libs so there is no need to process them.
35385 + if test -z "$compiler_lib_search_path_CXX"; then
35386 + compiler_lib_search_path_CXX="${prev}${p}"
35387 + else
35388 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
35389 + fi
35390 + ;;
35391 + # The "-l" case would never come before the object being
35392 + # linked, so don't bother handling this case.
35393 + esac
35394 + else
35395 + if test -z "$postdeps_CXX"; then
35396 + postdeps_CXX="${prev}${p}"
35397 + else
35398 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
35399 + fi
35400 + fi
35401 + ;;
35403 + *.$objext)
35404 + # This assumes that the test object file only shows up
35405 + # once in the compiler output.
35406 + if test "$p" = "conftest.$objext"; then
35407 + pre_test_object_deps_done=yes
35408 + continue
35409 + fi
35411 + if test "$pre_test_object_deps_done" = no; then
35412 + if test -z "$predep_objects_CXX"; then
35413 + predep_objects_CXX="$p"
35414 + else
35415 + predep_objects_CXX="$predep_objects_CXX $p"
35416 + fi
35417 + else
35418 + if test -z "$postdep_objects_CXX"; then
35419 + postdep_objects_CXX="$p"
35420 + else
35421 + postdep_objects_CXX="$postdep_objects_CXX $p"
35422 + fi
35423 + fi
35424 + ;;
35426 + *) ;; # Ignore the rest.
35428 + esac
35429 + done
35431 + # Clean up.
35432 + rm -f a.out a.exe
35433 +else
35434 + echo "libtool.m4: error: problem compiling CXX test program"
35437 +$rm -f confest.$objext
35439 +# PORTME: override above test on systems where it is broken
35440 +case $host_os in
35441 +interix3*)
35442 + # Interix 3.5 installs completely hosed .la files for C++, so rather than
35443 + # hack all around it, let's just trust "g++" to DTRT.
35444 + predep_objects_CXX=
35445 + postdep_objects_CXX=
35446 + postdeps_CXX=
35447 + ;;
35449 +solaris*)
35450 + case $cc_basename in
35451 + CC*)
35452 + # Adding this requires a known-good setup of shared libraries for
35453 + # Sun compiler versions before 5.6, else PIC objects from an old
35454 + # archive will be linked into the output, leading to subtle bugs.
35455 + postdeps_CXX='-lCstd -lCrun'
35456 + ;;
35457 + esac
35458 + ;;
35459 +esac
35462 +case " $postdeps_CXX " in
35463 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
35464 +esac
35466 +lt_prog_compiler_wl_CXX=
35467 +lt_prog_compiler_pic_CXX=
35468 +lt_prog_compiler_static_CXX=
35470 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
35471 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
35473 + # C++ specific cases for pic, static, wl, etc.
35474 + if test "$GXX" = yes; then
35475 + lt_prog_compiler_wl_CXX='-Wl,'
35476 + lt_prog_compiler_static_CXX='-static'
35478 + case $host_os in
35479 + aix*)
35480 + # All AIX code is PIC.
35481 + if test "$host_cpu" = ia64; then
35482 + # AIX 5 now supports IA64 processor
35483 + lt_prog_compiler_static_CXX='-Bstatic'
35484 + fi
35485 + ;;
35486 + amigaos*)
35487 + # FIXME: we need at least 68020 code to build shared libraries, but
35488 + # adding the `-m68020' flag to GCC prevents building anything better,
35489 + # like `-m68040'.
35490 + lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
35491 + ;;
35492 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35493 + # PIC is the default for these OSes.
35494 + ;;
35495 + mingw* | os2* | pw32*)
35496 + # This hack is so that the source file can tell whether it is being
35497 + # built for inclusion in a dll (and should export symbols for example).
35498 + lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
35499 + ;;
35500 + darwin* | rhapsody*)
35501 + # PIC is the default on this platform
35502 + # Common symbols not allowed in MH_DYLIB files
35503 + lt_prog_compiler_pic_CXX='-fno-common'
35504 + ;;
35505 + *djgpp*)
35506 + # DJGPP does not support shared libraries at all
35507 + lt_prog_compiler_pic_CXX=
35508 + ;;
35509 + interix3*)
35510 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
35511 + # Instead, we relocate shared libraries at runtime.
35512 + ;;
35513 + sysv4*MP*)
35514 + if test -d /usr/nec; then
35515 + lt_prog_compiler_pic_CXX=-Kconform_pic
35516 + fi
35517 + ;;
35518 + hpux*)
35519 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
35520 + # not for PA HP-UX.
35521 + case $host_cpu in
35522 + hppa*64*|ia64*)
35523 + ;;
35524 + *)
35525 + lt_prog_compiler_pic_CXX='-fPIC'
35526 + ;;
35527 + esac
35528 + ;;
35529 + *)
35530 + lt_prog_compiler_pic_CXX='-fPIC'
35531 + ;;
35532 + esac
35533 + else
35534 + case $host_os in
35535 + aix4* | aix5*)
35536 + # All AIX code is PIC.
35537 + if test "$host_cpu" = ia64; then
35538 + # AIX 5 now supports IA64 processor
35539 + lt_prog_compiler_static_CXX='-Bstatic'
35540 + else
35541 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
35542 + fi
35543 + ;;
35544 + chorus*)
35545 + case $cc_basename in
35546 + cxch68*)
35547 + # Green Hills C++ Compiler
35548 + # _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"
35549 + ;;
35550 + esac
35551 + ;;
35552 + darwin*)
35553 + # PIC is the default on this platform
35554 + # Common symbols not allowed in MH_DYLIB files
35555 + case $cc_basename in
35556 + xlc*)
35557 + lt_prog_compiler_pic_CXX='-qnocommon'
35558 + lt_prog_compiler_wl_CXX='-Wl,'
35559 + ;;
35560 + esac
35561 + ;;
35562 + dgux*)
35563 + case $cc_basename in
35564 + ec++*)
35565 + lt_prog_compiler_pic_CXX='-KPIC'
35566 + ;;
35567 + ghcx*)
35568 + # Green Hills C++ Compiler
35569 + lt_prog_compiler_pic_CXX='-pic'
35570 + ;;
35571 + *)
35572 + ;;
35573 + esac
35574 + ;;
35575 + freebsd* | kfreebsd*-gnu | dragonfly*)
35576 + # FreeBSD uses GNU C++
35577 + ;;
35578 + hpux9* | hpux10* | hpux11*)
35579 + case $cc_basename in
35580 + CC*)
35581 + lt_prog_compiler_wl_CXX='-Wl,'
35582 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
35583 + if test "$host_cpu" != ia64; then
35584 + lt_prog_compiler_pic_CXX='+Z'
35585 + fi
35586 + ;;
35587 + aCC*)
35588 + lt_prog_compiler_wl_CXX='-Wl,'
35589 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
35590 + case $host_cpu in
35591 + hppa*64*|ia64*)
35592 + # +Z the default
35593 + ;;
35594 + *)
35595 + lt_prog_compiler_pic_CXX='+Z'
35596 + ;;
35597 + esac
35598 + ;;
35599 + *)
35600 + ;;
35601 + esac
35602 + ;;
35603 + interix*)
35604 + # This is c89, which is MS Visual C++ (no shared libs)
35605 + # Anyone wants to do a port?
35606 + ;;
35607 + irix5* | irix6* | nonstopux*)
35608 + case $cc_basename in
35609 + CC*)
35610 + lt_prog_compiler_wl_CXX='-Wl,'
35611 + lt_prog_compiler_static_CXX='-non_shared'
35612 + # CC pic flag -KPIC is the default.
35613 + ;;
35614 + *)
35615 + ;;
35616 + esac
35617 + ;;
35618 + linux*)
35619 + case $cc_basename in
35620 + KCC*)
35621 + # KAI C++ Compiler
35622 + lt_prog_compiler_wl_CXX='--backend -Wl,'
35623 + lt_prog_compiler_pic_CXX='-fPIC'
35624 + ;;
35625 + icpc* | ecpc*)
35626 + # Intel C++
35627 + lt_prog_compiler_wl_CXX='-Wl,'
35628 + lt_prog_compiler_pic_CXX='-KPIC'
35629 + lt_prog_compiler_static_CXX='-static'
35630 + ;;
35631 + pgCC*)
35632 + # Portland Group C++ compiler.
35633 + lt_prog_compiler_wl_CXX='-Wl,'
35634 + lt_prog_compiler_pic_CXX='-fpic'
35635 + lt_prog_compiler_static_CXX='-Bstatic'
35636 + ;;
35637 + cxx*)
35638 + # Compaq C++
35639 + # Make sure the PIC flag is empty. It appears that all Alpha
35640 + # Linux and Compaq Tru64 Unix objects are PIC.
35641 + lt_prog_compiler_pic_CXX=
35642 + lt_prog_compiler_static_CXX='-non_shared'
35643 + ;;
35644 + *)
35645 + ;;
35646 + esac
35647 + ;;
35648 + lynxos*)
35649 + ;;
35650 + m88k*)
35651 + ;;
35652 + mvs*)
35653 + case $cc_basename in
35654 + cxx*)
35655 + lt_prog_compiler_pic_CXX='-W c,exportall'
35656 + ;;
35657 + *)
35658 + ;;
35659 + esac
35660 + ;;
35661 + netbsd*)
35662 + ;;
35663 + osf3* | osf4* | osf5*)
35664 + case $cc_basename in
35665 + KCC*)
35666 + lt_prog_compiler_wl_CXX='--backend -Wl,'
35667 + ;;
35668 + RCC*)
35669 + # Rational C++ 2.4.1
35670 + lt_prog_compiler_pic_CXX='-pic'
35671 + ;;
35672 + cxx*)
35673 + # Digital/Compaq C++
35674 + lt_prog_compiler_wl_CXX='-Wl,'
35675 + # Make sure the PIC flag is empty. It appears that all Alpha
35676 + # Linux and Compaq Tru64 Unix objects are PIC.
35677 + lt_prog_compiler_pic_CXX=
35678 + lt_prog_compiler_static_CXX='-non_shared'
35679 + ;;
35680 + *)
35681 + ;;
35682 + esac
35683 + ;;
35684 + psos*)
35685 + ;;
35686 + solaris*)
35687 + case $cc_basename in
35688 + CC*)
35689 + # Sun C++ 4.2, 5.x and Centerline C++
35690 + lt_prog_compiler_pic_CXX='-KPIC'
35691 + lt_prog_compiler_static_CXX='-Bstatic'
35692 + lt_prog_compiler_wl_CXX='-Qoption ld '
35693 + ;;
35694 + gcx*)
35695 + # Green Hills C++ Compiler
35696 + lt_prog_compiler_pic_CXX='-PIC'
35697 + ;;
35698 + *)
35699 + ;;
35700 + esac
35701 + ;;
35702 + sunos4*)
35703 + case $cc_basename in
35704 + CC*)
35705 + # Sun C++ 4.x
35706 + lt_prog_compiler_pic_CXX='-pic'
35707 + lt_prog_compiler_static_CXX='-Bstatic'
35708 + ;;
35709 + lcc*)
35710 + # Lucid
35711 + lt_prog_compiler_pic_CXX='-pic'
35712 + ;;
35713 + *)
35714 + ;;
35715 + esac
35716 + ;;
35717 + tandem*)
35718 + case $cc_basename in
35719 + NCC*)
35720 + # NonStop-UX NCC 3.20
35721 + lt_prog_compiler_pic_CXX='-KPIC'
35722 + ;;
35723 + *)
35724 + ;;
35725 + esac
35726 + ;;
35727 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
35728 + case $cc_basename in
35729 + CC*)
35730 + lt_prog_compiler_wl_CXX='-Wl,'
35731 + lt_prog_compiler_pic_CXX='-KPIC'
35732 + lt_prog_compiler_static_CXX='-Bstatic'
35733 + ;;
35734 + esac
35735 + ;;
35736 + vxworks*)
35737 + ;;
35738 + *)
35739 + lt_prog_compiler_can_build_shared_CXX=no
35740 + ;;
35741 + esac
35742 + fi
35744 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
35745 +echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
35748 +# Check to make sure the PIC flag actually works.
35750 +if test -n "$lt_prog_compiler_pic_CXX"; then
35752 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
35753 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
35754 +if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
35755 + echo $ECHO_N "(cached) $ECHO_C" >&6
35756 +else
35757 + lt_prog_compiler_pic_works_CXX=no
35758 + ac_outfile=conftest.$ac_objext
35759 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35760 + lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
35761 + # Insert the option either (1) after the last *FLAGS variable, or
35762 + # (2) before a word containing "conftest.", or (3) at the end.
35763 + # Note that $ac_compile itself does not contain backslashes and begins
35764 + # with a dollar sign (not a hyphen), so the echo should work correctly.
35765 + # The option is referenced via a variable to avoid confusing sed.
35766 + lt_compile=`echo "$ac_compile" | $SED \
35767 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35768 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35769 + -e 's:$: $lt_compiler_flag:'`
35770 + (eval echo "\"\$as_me:13263: $lt_compile\"" >&5)
35771 + (eval "$lt_compile" 2>conftest.err)
35772 + ac_status=$?
35773 + cat conftest.err >&5
35774 + echo "$as_me:13267: \$? = $ac_status" >&5
35775 + if (exit $ac_status) && test -s "$ac_outfile"; then
35776 + # The compiler can only warn and ignore the option if not recognized
35777 + # So say no if there are warnings other than the usual output.
35778 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
35779 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
35780 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
35781 + lt_prog_compiler_pic_works_CXX=yes
35782 + fi
35783 + fi
35784 + $rm conftest*
35787 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
35788 +echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
35790 +if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
35791 + case $lt_prog_compiler_pic_CXX in
35792 + "" | " "*) ;;
35793 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
35794 + esac
35795 +else
35796 + lt_prog_compiler_pic_CXX=
35797 + lt_prog_compiler_can_build_shared_CXX=no
35801 +case $host_os in
35802 + # For platforms which do not support PIC, -DPIC is meaningless:
35803 + *djgpp*)
35804 + lt_prog_compiler_pic_CXX=
35805 + ;;
35806 + *)
35807 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
35808 + ;;
35809 +esac
35812 +# Check to make sure the static flag actually works.
35814 +wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
35815 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
35816 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
35817 +if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
35818 + echo $ECHO_N "(cached) $ECHO_C" >&6
35819 +else
35820 + lt_prog_compiler_static_works_CXX=no
35821 + save_LDFLAGS="$LDFLAGS"
35822 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
35823 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
35824 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
35825 + # The linker can only warn and ignore the option if not recognized
35826 + # So say no if there are warnings
35827 + if test -s conftest.err; then
35828 + # Append any errors to the config.log.
35829 + cat conftest.err 1>&5
35830 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
35831 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
35832 + if diff conftest.exp conftest.er2 >/dev/null; then
35833 + lt_prog_compiler_static_works_CXX=yes
35834 + fi
35835 + else
35836 + lt_prog_compiler_static_works_CXX=yes
35837 + fi
35838 + fi
35839 + $rm conftest*
35840 + LDFLAGS="$save_LDFLAGS"
35843 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
35844 +echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
35846 +if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
35848 +else
35849 + lt_prog_compiler_static_CXX=
35853 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
35854 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
35855 +if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
35856 + echo $ECHO_N "(cached) $ECHO_C" >&6
35857 +else
35858 + lt_cv_prog_compiler_c_o_CXX=no
35859 + $rm -r conftest 2>/dev/null
35860 + mkdir conftest
35861 + cd conftest
35862 + mkdir out
35863 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35865 + lt_compiler_flag="-o out/conftest2.$ac_objext"
35866 + # Insert the option either (1) after the last *FLAGS variable, or
35867 + # (2) before a word containing "conftest.", or (3) at the end.
35868 + # Note that $ac_compile itself does not contain backslashes and begins
35869 + # with a dollar sign (not a hyphen), so the echo should work correctly.
35870 + lt_compile=`echo "$ac_compile" | $SED \
35871 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
35872 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
35873 + -e 's:$: $lt_compiler_flag:'`
35874 + (eval echo "\"\$as_me:13367: $lt_compile\"" >&5)
35875 + (eval "$lt_compile" 2>out/conftest.err)
35876 + ac_status=$?
35877 + cat out/conftest.err >&5
35878 + echo "$as_me:13371: \$? = $ac_status" >&5
35879 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
35880 + then
35881 + # The compiler can only warn and ignore the option if not recognized
35882 + # So say no if there are warnings
35883 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
35884 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
35885 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
35886 + lt_cv_prog_compiler_c_o_CXX=yes
35887 + fi
35888 + fi
35889 + chmod u+w . 2>&5
35890 + $rm conftest*
35891 + # SGI C++ compiler will create directory out/ii_files/ for
35892 + # template instantiation
35893 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
35894 + $rm out/* && rmdir out
35895 + cd ..
35896 + rmdir conftest
35897 + $rm conftest*
35900 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
35901 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
35904 +hard_links="nottested"
35905 +if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
35906 + # do not overwrite the value of need_locks provided by the user
35907 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
35908 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
35909 + hard_links=yes
35910 + $rm conftest*
35911 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
35912 + touch conftest.a
35913 + ln conftest.a conftest.b 2>&5 || hard_links=no
35914 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
35915 + echo "$as_me:$LINENO: result: $hard_links" >&5
35916 +echo "${ECHO_T}$hard_links" >&6
35917 + if test "$hard_links" = no; then
35918 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
35919 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
35920 + need_locks=warn
35921 + fi
35922 +else
35923 + need_locks=no
35926 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
35927 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
35929 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
35930 + case $host_os in
35931 + aix4* | aix5*)
35932 + # If we're using GNU nm, then we don't want the "-C" option.
35933 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
35934 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
35935 + 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'
35936 + else
35937 + 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'
35938 + fi
35939 + ;;
35940 + pw32*)
35941 + export_symbols_cmds_CXX="$ltdll_cmds"
35942 + ;;
35943 + cygwin* | mingw*)
35944 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
35945 + ;;
35946 + *)
35947 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
35948 + ;;
35949 + esac
35951 +echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
35952 +echo "${ECHO_T}$ld_shlibs_CXX" >&6
35953 +test "$ld_shlibs_CXX" = no && can_build_shared=no
35956 +# Do we need to explicitly link libc?
35958 +case "x$archive_cmds_need_lc_CXX" in
35959 +x|xyes)
35960 + # Assume -lc should be added
35961 + archive_cmds_need_lc_CXX=yes
35963 + if test "$enable_shared" = yes && test "$GCC" = yes; then
35964 + case $archive_cmds_CXX in
35965 + *'~'*)
35966 + # FIXME: we may have to deal with multi-command sequences.
35967 + ;;
35968 + '$CC '*)
35969 + # Test whether the compiler implicitly links with -lc since on some
35970 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
35971 + # to ld, don't add -lc before -lgcc.
35972 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
35973 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
35974 + $rm conftest*
35975 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
35977 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35978 + (eval $ac_compile) 2>&5
35979 + ac_status=$?
35980 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 + (exit $ac_status); } 2>conftest.err; then
35982 + soname=conftest
35983 + lib=conftest
35984 + libobjs=conftest.$ac_objext
35985 + deplibs=
35986 + wl=$lt_prog_compiler_wl_CXX
35987 + pic_flag=$lt_prog_compiler_pic_CXX
35988 + compiler_flags=-v
35989 + linker_flags=-v
35990 + verstring=
35991 + output_objdir=.
35992 + libname=conftest
35993 + lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
35994 + allow_undefined_flag_CXX=
35995 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
35996 + (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
35997 + ac_status=$?
35998 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 + (exit $ac_status); }
36000 + then
36001 + archive_cmds_need_lc_CXX=no
36002 + else
36003 + archive_cmds_need_lc_CXX=yes
36004 + fi
36005 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
36006 + else
36007 + cat conftest.err 1>&5
36008 + fi
36009 + $rm conftest*
36010 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
36011 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
36012 + ;;
36013 + esac
36014 + fi
36015 + ;;
36016 +esac
36018 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
36019 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
36020 +library_names_spec=
36021 +libname_spec='lib$name'
36022 +soname_spec=
36023 +shrext_cmds=".so"
36024 +postinstall_cmds=
36025 +postuninstall_cmds=
36026 +finish_cmds=
36027 +finish_eval=
36028 +shlibpath_var=
36029 +shlibpath_overrides_runpath=unknown
36030 +version_type=none
36031 +dynamic_linker="$host_os ld.so"
36032 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
36033 +if test "$GCC" = yes; then
36034 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36035 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
36036 + # if the path contains ";" then we assume it to be the separator
36037 + # otherwise default to the standard path separator (i.e. ":") - it is
36038 + # assumed that no part of a normal pathname contains ";" but that should
36039 + # okay in the real world where ";" in dirpaths is itself problematic.
36040 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36041 + else
36042 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
36043 + fi
36044 +else
36045 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
36047 +need_lib_prefix=unknown
36048 +hardcode_into_libs=no
36050 +# when you set need_version to no, make sure it does not cause -set_version
36051 +# flags to be left without arguments
36052 +need_version=unknown
36054 +case $host_os in
36055 +aix3*)
36056 + version_type=linux
36057 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
36058 + shlibpath_var=LIBPATH
36060 + # AIX 3 has no versioning support, so we append a major version to the name.
36061 + soname_spec='${libname}${release}${shared_ext}$major'
36062 + ;;
36064 +aix4* | aix5*)
36065 + version_type=linux
36066 + need_lib_prefix=no
36067 + need_version=no
36068 + hardcode_into_libs=yes
36069 + if test "$host_cpu" = ia64; then
36070 + # AIX 5 supports IA64
36071 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
36072 + shlibpath_var=LD_LIBRARY_PATH
36073 + else
36074 + # With GCC up to 2.95.x, collect2 would create an import file
36075 + # for dependence libraries. The import file would start with
36076 + # the line `#! .'. This would cause the generated library to
36077 + # depend on `.', always an invalid library. This was fixed in
36078 + # development snapshots of GCC prior to 3.0.
36079 + case $host_os in
36080 + aix4 | aix4.[01] | aix4.[01].*)
36081 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
36082 + echo ' yes '
36083 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
36085 + else
36086 + can_build_shared=no
36087 + fi
36088 + ;;
36089 + esac
36090 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
36091 + # soname into executable. Probably we can add versioning support to
36092 + # collect2, so additional links can be useful in future.
36093 + if test "$aix_use_runtimelinking" = yes; then
36094 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
36095 + # instead of lib<name>.a to let people know that these are not
36096 + # typical AIX shared libraries.
36097 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36098 + else
36099 + # We preserve .a as extension for shared libraries through AIX4.2
36100 + # and later when we are not doing run time linking.
36101 + library_names_spec='${libname}${release}.a $libname.a'
36102 + soname_spec='${libname}${release}${shared_ext}$major'
36103 + fi
36104 + shlibpath_var=LIBPATH
36105 + fi
36106 + ;;
36108 +amigaos*)
36109 + library_names_spec='$libname.ixlibrary $libname.a'
36110 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
36111 + 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'
36112 + ;;
36114 +beos*)
36115 + library_names_spec='${libname}${shared_ext}'
36116 + dynamic_linker="$host_os ld.so"
36117 + shlibpath_var=LIBRARY_PATH
36118 + ;;
36120 +bsdi[45]*)
36121 + version_type=linux
36122 + need_version=no
36123 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36124 + soname_spec='${libname}${release}${shared_ext}$major'
36125 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
36126 + shlibpath_var=LD_LIBRARY_PATH
36127 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
36128 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
36129 + # the default ld.so.conf also contains /usr/contrib/lib and
36130 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
36131 + # libtool to hard-code these into programs
36132 + ;;
36134 +cygwin* | mingw* | pw32*)
36135 + version_type=windows
36136 + shrext_cmds=".dll"
36137 + need_version=no
36138 + need_lib_prefix=no
36140 + case $GCC,$host_os in
36141 + yes,cygwin* | yes,mingw* | yes,pw32*)
36142 + library_names_spec='$libname.dll.a'
36143 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
36144 + postinstall_cmds='base_file=`basename \${file}`~
36145 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
36146 + dldir=$destdir/`dirname \$dlpath`~
36147 + test -d \$dldir || mkdir -p \$dldir~
36148 + $install_prog $dir/$dlname \$dldir/$dlname~
36149 + chmod a+x \$dldir/$dlname'
36150 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
36151 + dlpath=$dir/\$dldll~
36152 + $rm \$dlpath'
36153 + shlibpath_overrides_runpath=yes
36155 + case $host_os in
36156 + cygwin*)
36157 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
36158 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36159 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
36160 + ;;
36161 + mingw*)
36162 + # MinGW DLLs use traditional 'lib' prefix
36163 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36164 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
36165 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
36166 + # It is most probably a Windows format PATH printed by
36167 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
36168 + # path with ; separators, and with drive letters. We can handle the
36169 + # drive letters (cygwin fileutils understands them), so leave them,
36170 + # especially as we might pass files found there to a mingw objdump,
36171 + # which wouldn't understand a cygwinified path. Ahh.
36172 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
36173 + else
36174 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
36175 + fi
36176 + ;;
36177 + pw32*)
36178 + # pw32 DLLs use 'pw' prefix rather than 'lib'
36179 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
36180 + ;;
36181 + esac
36182 + ;;
36184 + *)
36185 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
36186 + ;;
36187 + esac
36188 + dynamic_linker='Win32 ld.exe'
36189 + # FIXME: first we should search . and the directory the executable is in
36190 + shlibpath_var=PATH
36191 + ;;
36193 +darwin* | rhapsody*)
36194 + dynamic_linker="$host_os dyld"
36195 + version_type=darwin
36196 + need_lib_prefix=no
36197 + need_version=no
36198 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
36199 + soname_spec='${libname}${release}${major}$shared_ext'
36200 + shlibpath_overrides_runpath=yes
36201 + shlibpath_var=DYLD_LIBRARY_PATH
36202 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
36203 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
36204 + if test "$GCC" = yes; then
36205 + 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"`
36206 + else
36207 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
36208 + fi
36209 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
36210 + ;;
36212 +dgux*)
36213 + version_type=linux
36214 + need_lib_prefix=no
36215 + need_version=no
36216 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
36217 + soname_spec='${libname}${release}${shared_ext}$major'
36218 + shlibpath_var=LD_LIBRARY_PATH
36219 + ;;
36221 +freebsd1*)
36222 + dynamic_linker=no
36223 + ;;
36225 +kfreebsd*-gnu)
36226 + version_type=linux
36227 + need_lib_prefix=no
36228 + need_version=no
36229 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36230 + soname_spec='${libname}${release}${shared_ext}$major'
36231 + shlibpath_var=LD_LIBRARY_PATH
36232 + shlibpath_overrides_runpath=no
36233 + hardcode_into_libs=yes
36234 + dynamic_linker='GNU ld.so'
36235 + ;;
36237 +freebsd* | dragonfly*)
36238 + # DragonFly does not have aout. When/if they implement a new
36239 + # versioning mechanism, adjust this.
36240 + if test -x /usr/bin/objformat; then
36241 + objformat=`/usr/bin/objformat`
36242 + else
36243 + case $host_os in
36244 + freebsd[123]*) objformat=aout ;;
36245 + *) objformat=elf ;;
36246 + esac
36247 + fi
36248 + version_type=freebsd-$objformat
36249 + case $version_type in
36250 + freebsd-elf*)
36251 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36252 + need_version=no
36253 + need_lib_prefix=no
36254 + ;;
36255 + freebsd-*)
36256 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
36257 + need_version=yes
36258 + ;;
36259 + esac
36260 + shlibpath_var=LD_LIBRARY_PATH
36261 + case $host_os in
36262 + freebsd2*)
36263 + shlibpath_overrides_runpath=yes
36264 + ;;
36265 + freebsd3.[01]* | freebsdelf3.[01]*)
36266 + shlibpath_overrides_runpath=yes
36267 + hardcode_into_libs=yes
36268 + ;;
36269 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
36270 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
36271 + shlibpath_overrides_runpath=no
36272 + hardcode_into_libs=yes
36273 + ;;
36274 + freebsd*) # from 4.6 on
36275 + shlibpath_overrides_runpath=yes
36276 + hardcode_into_libs=yes
36277 + ;;
36278 + esac
36279 + ;;
36281 +gnu*)
36282 + version_type=linux
36283 + need_lib_prefix=no
36284 + need_version=no
36285 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
36286 + soname_spec='${libname}${release}${shared_ext}$major'
36287 + shlibpath_var=LD_LIBRARY_PATH
36288 + hardcode_into_libs=yes
36289 + ;;
36291 +hpux9* | hpux10* | hpux11*)
36292 + # Give a soname corresponding to the major version so that dld.sl refuses to
36293 + # link against other versions.
36294 + version_type=sunos
36295 + need_lib_prefix=no
36296 + need_version=no
36297 + case $host_cpu in
36298 + ia64*)
36299 + shrext_cmds='.so'
36300 + hardcode_into_libs=yes
36301 + dynamic_linker="$host_os dld.so"
36302 + shlibpath_var=LD_LIBRARY_PATH
36303 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36304 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36305 + soname_spec='${libname}${release}${shared_ext}$major'
36306 + if test "X$HPUX_IA64_MODE" = X32; then
36307 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
36308 + else
36309 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
36310 + fi
36311 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36312 + ;;
36313 + hppa*64*)
36314 + shrext_cmds='.sl'
36315 + hardcode_into_libs=yes
36316 + dynamic_linker="$host_os dld.sl"
36317 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
36318 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
36319 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36320 + soname_spec='${libname}${release}${shared_ext}$major'
36321 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
36322 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
36323 + ;;
36324 + *)
36325 + shrext_cmds='.sl'
36326 + dynamic_linker="$host_os dld.sl"
36327 + shlibpath_var=SHLIB_PATH
36328 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
36329 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36330 + soname_spec='${libname}${release}${shared_ext}$major'
36331 + ;;
36332 + esac
36333 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
36334 + postinstall_cmds='chmod 555 $lib'
36335 + ;;
36337 +interix3*)
36338 + version_type=linux
36339 + need_lib_prefix=no
36340 + need_version=no
36341 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36342 + soname_spec='${libname}${release}${shared_ext}$major'
36343 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
36344 + shlibpath_var=LD_LIBRARY_PATH
36345 + shlibpath_overrides_runpath=no
36346 + hardcode_into_libs=yes
36347 + ;;
36349 +irix5* | irix6* | nonstopux*)
36350 + case $host_os in
36351 + nonstopux*) version_type=nonstopux ;;
36352 + *)
36353 + if test "$lt_cv_prog_gnu_ld" = yes; then
36354 + version_type=linux
36355 + else
36356 + version_type=irix
36357 + fi ;;
36358 + esac
36359 + need_lib_prefix=no
36360 + need_version=no
36361 + soname_spec='${libname}${release}${shared_ext}$major'
36362 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
36363 + case $host_os in
36364 + irix5* | nonstopux*)
36365 + libsuff= shlibsuff=
36366 + ;;
36367 + *)
36368 + case $LD in # libtool.m4 will add one of these switches to LD
36369 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
36370 + libsuff= shlibsuff= libmagic=32-bit;;
36371 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
36372 + libsuff=32 shlibsuff=N32 libmagic=N32;;
36373 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
36374 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
36375 + *) libsuff= shlibsuff= libmagic=never-match;;
36376 + esac
36377 + ;;
36378 + esac
36379 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
36380 + shlibpath_overrides_runpath=no
36381 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
36382 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
36383 + hardcode_into_libs=yes
36384 + ;;
36386 +# No shared lib support for Linux oldld, aout, or coff.
36387 +linux*oldld* | linux*aout* | linux*coff*)
36388 + dynamic_linker=no
36389 + ;;
36391 +# This must be Linux ELF.
36392 +linux*)
36393 + version_type=linux
36394 + need_lib_prefix=no
36395 + need_version=no
36396 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36397 + soname_spec='${libname}${release}${shared_ext}$major'
36398 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
36399 + shlibpath_var=LD_LIBRARY_PATH
36400 + shlibpath_overrides_runpath=no
36401 + # This implies no fast_install, which is unacceptable.
36402 + # Some rework will be needed to allow for fast_install
36403 + # before this can be enabled.
36404 + hardcode_into_libs=yes
36406 + # Append ld.so.conf contents to the search path
36407 + if test -f /etc/ld.so.conf; then
36408 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
36409 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
36410 + fi
36412 + # We used to test for /lib/ld.so.1 and disable shared libraries on
36413 + # powerpc, because MkLinux only supported shared libraries with the
36414 + # GNU dynamic linker. Since this was broken with cross compilers,
36415 + # most powerpc-linux boxes support dynamic linking these days and
36416 + # people can always --disable-shared, the test was removed, and we
36417 + # assume the GNU/Linux dynamic linker is in use.
36418 + dynamic_linker='GNU/Linux ld.so'
36419 + ;;
36421 +knetbsd*-gnu)
36422 + version_type=linux
36423 + need_lib_prefix=no
36424 + need_version=no
36425 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36426 + soname_spec='${libname}${release}${shared_ext}$major'
36427 + shlibpath_var=LD_LIBRARY_PATH
36428 + shlibpath_overrides_runpath=no
36429 + hardcode_into_libs=yes
36430 + dynamic_linker='GNU ld.so'
36431 + ;;
36433 +netbsd*)
36434 + version_type=sunos
36435 + need_lib_prefix=no
36436 + need_version=no
36437 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
36438 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36439 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36440 + dynamic_linker='NetBSD (a.out) ld.so'
36441 + else
36442 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
36443 + soname_spec='${libname}${release}${shared_ext}$major'
36444 + dynamic_linker='NetBSD ld.elf_so'
36445 + fi
36446 + shlibpath_var=LD_LIBRARY_PATH
36447 + shlibpath_overrides_runpath=yes
36448 + hardcode_into_libs=yes
36449 + ;;
36451 +newsos6)
36452 + version_type=linux
36453 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36454 + shlibpath_var=LD_LIBRARY_PATH
36455 + shlibpath_overrides_runpath=yes
36456 + ;;
36458 +nto-qnx*)
36459 + version_type=linux
36460 + need_lib_prefix=no
36461 + need_version=no
36462 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36463 + soname_spec='${libname}${release}${shared_ext}$major'
36464 + shlibpath_var=LD_LIBRARY_PATH
36465 + shlibpath_overrides_runpath=yes
36466 + ;;
36468 +openbsd*)
36469 + version_type=sunos
36470 + sys_lib_dlsearch_path_spec="/usr/lib"
36471 + need_lib_prefix=no
36472 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
36473 + case $host_os in
36474 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
36475 + *) need_version=no ;;
36476 + esac
36477 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36478 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
36479 + shlibpath_var=LD_LIBRARY_PATH
36480 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
36481 + case $host_os in
36482 + openbsd2.[89] | openbsd2.[89].*)
36483 + shlibpath_overrides_runpath=no
36484 + ;;
36485 + *)
36486 + shlibpath_overrides_runpath=yes
36487 + ;;
36488 + esac
36489 + else
36490 + shlibpath_overrides_runpath=yes
36491 + fi
36492 + ;;
36494 +os2*)
36495 + libname_spec='$name'
36496 + shrext_cmds=".dll"
36497 + need_lib_prefix=no
36498 + library_names_spec='$libname${shared_ext} $libname.a'
36499 + dynamic_linker='OS/2 ld.exe'
36500 + shlibpath_var=LIBPATH
36501 + ;;
36503 +osf3* | osf4* | osf5*)
36504 + version_type=osf
36505 + need_lib_prefix=no
36506 + need_version=no
36507 + soname_spec='${libname}${release}${shared_ext}$major'
36508 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36509 + shlibpath_var=LD_LIBRARY_PATH
36510 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
36511 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
36512 + ;;
36514 +solaris*)
36515 + version_type=linux
36516 + need_lib_prefix=no
36517 + need_version=no
36518 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36519 + soname_spec='${libname}${release}${shared_ext}$major'
36520 + shlibpath_var=LD_LIBRARY_PATH
36521 + shlibpath_overrides_runpath=yes
36522 + hardcode_into_libs=yes
36523 + # ldd complains unless libraries are executable
36524 + postinstall_cmds='chmod +x $lib'
36525 + ;;
36527 +sunos4*)
36528 + version_type=sunos
36529 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
36530 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
36531 + shlibpath_var=LD_LIBRARY_PATH
36532 + shlibpath_overrides_runpath=yes
36533 + if test "$with_gnu_ld" = yes; then
36534 + need_lib_prefix=no
36535 + fi
36536 + need_version=yes
36537 + ;;
36539 +sysv4 | sysv4.3*)
36540 + version_type=linux
36541 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36542 + soname_spec='${libname}${release}${shared_ext}$major'
36543 + shlibpath_var=LD_LIBRARY_PATH
36544 + case $host_vendor in
36545 + sni)
36546 + shlibpath_overrides_runpath=no
36547 + need_lib_prefix=no
36548 + export_dynamic_flag_spec='${wl}-Blargedynsym'
36549 + runpath_var=LD_RUN_PATH
36550 + ;;
36551 + siemens)
36552 + need_lib_prefix=no
36553 + ;;
36554 + motorola)
36555 + need_lib_prefix=no
36556 + need_version=no
36557 + shlibpath_overrides_runpath=no
36558 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
36559 + ;;
36560 + esac
36561 + ;;
36563 +sysv4*MP*)
36564 + if test -d /usr/nec ;then
36565 + version_type=linux
36566 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
36567 + soname_spec='$libname${shared_ext}.$major'
36568 + shlibpath_var=LD_LIBRARY_PATH
36569 + fi
36570 + ;;
36572 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
36573 + version_type=freebsd-elf
36574 + need_lib_prefix=no
36575 + need_version=no
36576 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36577 + soname_spec='${libname}${release}${shared_ext}$major'
36578 + shlibpath_var=LD_LIBRARY_PATH
36579 + hardcode_into_libs=yes
36580 + if test "$with_gnu_ld" = yes; then
36581 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
36582 + shlibpath_overrides_runpath=no
36583 + else
36584 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
36585 + shlibpath_overrides_runpath=yes
36586 + case $host_os in
36587 + sco3.2v5*)
36588 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
36589 + ;;
36590 + esac
36591 + fi
36592 + sys_lib_dlsearch_path_spec='/usr/lib'
36593 + ;;
36595 +uts4*)
36596 + version_type=linux
36597 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
36598 + soname_spec='${libname}${release}${shared_ext}$major'
36599 + shlibpath_var=LD_LIBRARY_PATH
36600 + ;;
36603 + dynamic_linker=no
36604 + ;;
36605 +esac
36606 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
36607 +echo "${ECHO_T}$dynamic_linker" >&6
36608 +test "$dynamic_linker" = no && can_build_shared=no
36610 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
36611 +if test "$GCC" = yes; then
36612 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
36615 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
36616 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
36617 +hardcode_action_CXX=
36618 +if test -n "$hardcode_libdir_flag_spec_CXX" || \
36619 + test -n "$runpath_var_CXX" || \
36620 + test "X$hardcode_automatic_CXX" = "Xyes" ; then
36622 + # We can hardcode non-existant directories.
36623 + if test "$hardcode_direct_CXX" != no &&
36624 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
36625 + # have to relink, otherwise we might link with an installed library
36626 + # when we should be linking with a yet-to-be-installed one
36627 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
36628 + test "$hardcode_minus_L_CXX" != no; then
36629 + # Linking always hardcodes the temporary library directory.
36630 + hardcode_action_CXX=relink
36631 + else
36632 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
36633 + hardcode_action_CXX=immediate
36634 + fi
36635 +else
36636 + # We cannot hardcode anything, or else we can only hardcode existing
36637 + # directories.
36638 + hardcode_action_CXX=unsupported
36640 +echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
36641 +echo "${ECHO_T}$hardcode_action_CXX" >&6
36643 +if test "$hardcode_action_CXX" = relink; then
36644 + # Fast installation is not supported
36645 + enable_fast_install=no
36646 +elif test "$shlibpath_overrides_runpath" = yes ||
36647 + test "$enable_shared" = no; then
36648 + # Fast installation is not necessary
36649 + enable_fast_install=needless
36653 +# The else clause should only fire when bootstrapping the
36654 +# libtool distribution, otherwise you forgot to ship ltmain.sh
36655 +# with your package, and you will get complaints that there are
36656 +# no rules to generate ltmain.sh.
36657 +if test -f "$ltmain"; then
36658 + # See if we are running on zsh, and set the options which allow our commands through
36659 + # without removal of \ escapes.
36660 + if test -n "${ZSH_VERSION+set}" ; then
36661 + setopt NO_GLOB_SUBST
36662 + fi
36663 + # Now quote all the things that may contain metacharacters while being
36664 + # careful not to overquote the AC_SUBSTed values. We take copies of the
36665 + # variables and quote the copies for generation of the libtool script.
36666 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
36667 + SED SHELL STRIP \
36668 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
36669 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
36670 + deplibs_check_method reload_flag reload_cmds need_locks \
36671 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
36672 + lt_cv_sys_global_symbol_to_c_name_address \
36673 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
36674 + old_postinstall_cmds old_postuninstall_cmds \
36675 + compiler_CXX \
36676 + CC_CXX \
36677 + LD_CXX \
36678 + lt_prog_compiler_wl_CXX \
36679 + lt_prog_compiler_pic_CXX \
36680 + lt_prog_compiler_static_CXX \
36681 + lt_prog_compiler_no_builtin_flag_CXX \
36682 + export_dynamic_flag_spec_CXX \
36683 + thread_safe_flag_spec_CXX \
36684 + whole_archive_flag_spec_CXX \
36685 + enable_shared_with_static_runtimes_CXX \
36686 + old_archive_cmds_CXX \
36687 + old_archive_from_new_cmds_CXX \
36688 + predep_objects_CXX \
36689 + postdep_objects_CXX \
36690 + predeps_CXX \
36691 + postdeps_CXX \
36692 + compiler_lib_search_path_CXX \
36693 + archive_cmds_CXX \
36694 + archive_expsym_cmds_CXX \
36695 + postinstall_cmds_CXX \
36696 + postuninstall_cmds_CXX \
36697 + old_archive_from_expsyms_cmds_CXX \
36698 + allow_undefined_flag_CXX \
36699 + no_undefined_flag_CXX \
36700 + export_symbols_cmds_CXX \
36701 + hardcode_libdir_flag_spec_CXX \
36702 + hardcode_libdir_flag_spec_ld_CXX \
36703 + hardcode_libdir_separator_CXX \
36704 + hardcode_automatic_CXX \
36705 + module_cmds_CXX \
36706 + module_expsym_cmds_CXX \
36707 + lt_cv_prog_compiler_c_o_CXX \
36708 + exclude_expsyms_CXX \
36709 + include_expsyms_CXX; do
36711 + case $var in
36712 + old_archive_cmds_CXX | \
36713 + old_archive_from_new_cmds_CXX | \
36714 + archive_cmds_CXX | \
36715 + archive_expsym_cmds_CXX | \
36716 + module_cmds_CXX | \
36717 + module_expsym_cmds_CXX | \
36718 + old_archive_from_expsyms_cmds_CXX | \
36719 + export_symbols_cmds_CXX | \
36720 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
36721 + postinstall_cmds | postuninstall_cmds | \
36722 + old_postinstall_cmds | old_postuninstall_cmds | \
36723 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
36724 + # Double-quote double-evaled strings.
36725 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
36726 + ;;
36727 + *)
36728 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
36729 + ;;
36730 + esac
36731 + done
36733 + case $lt_echo in
36734 + *'\$0 --fallback-echo"')
36735 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
36736 + ;;
36737 + esac
36739 +cfgfile="$ofile"
36741 + cat <<__EOF__ >> "$cfgfile"
36742 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
36744 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36746 +# Shell to use when invoking shell scripts.
36747 +SHELL=$lt_SHELL
36749 +# Whether or not to build shared libraries.
36750 +build_libtool_libs=$enable_shared
36752 +# Whether or not to build static libraries.
36753 +build_old_libs=$enable_static
36755 +# Whether or not to add -lc for building shared libraries.
36756 +build_libtool_need_lc=$archive_cmds_need_lc_CXX
36758 +# Whether or not to disallow shared libs when runtime libs are static
36759 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36761 +# Whether or not to optimize for fast installation.
36762 +fast_install=$enable_fast_install
36764 +# The host system.
36765 +host_alias=$host_alias
36766 +host=$host
36767 +host_os=$host_os
36769 +# The build system.
36770 +build_alias=$build_alias
36771 +build=$build
36772 +build_os=$build_os
36774 +# An echo program that does not interpret backslashes.
36775 +echo=$lt_echo
36777 +# The archiver.
36778 +AR=$lt_AR
36779 +AR_FLAGS=$lt_AR_FLAGS
36781 +# A C compiler.
36782 +LTCC=$lt_LTCC
36784 +# LTCC compiler flags.
36785 +LTCFLAGS=$lt_LTCFLAGS
36787 +# A language-specific compiler.
36788 +CC=$lt_compiler_CXX
36790 +# Is the compiler the GNU C compiler?
36791 +with_gcc=$GCC_CXX
36793 +# An ERE matcher.
36794 +EGREP=$lt_EGREP
36796 +# The linker used to build libraries.
36797 +LD=$lt_LD_CXX
36799 +# Whether we need hard or soft links.
36800 +LN_S=$lt_LN_S
36802 +# A BSD-compatible nm program.
36803 +NM=$lt_NM
36805 +# A symbol stripping program
36806 +STRIP=$lt_STRIP
36808 +# Used to examine libraries when file_magic_cmd begins "file"
36809 +MAGIC_CMD=$MAGIC_CMD
36811 +# Used on cygwin: DLL creation program.
36812 +DLLTOOL="$DLLTOOL"
36814 +# Used on cygwin: object dumper.
36815 +OBJDUMP="$OBJDUMP"
36817 +# Used on cygwin: assembler.
36818 +AS="$AS"
36820 +# The name of the directory that contains temporary libtool files.
36821 +objdir=$objdir
36823 +# How to create reloadable object files.
36824 +reload_flag=$lt_reload_flag
36825 +reload_cmds=$lt_reload_cmds
36827 +# How to pass a linker flag through the compiler.
36828 +wl=$lt_lt_prog_compiler_wl_CXX
36830 +# Object file suffix (normally "o").
36831 +objext="$ac_objext"
36833 +# Old archive suffix (normally "a").
36834 +libext="$libext"
36836 +# Shared library suffix (normally ".so").
36837 +shrext_cmds='$shrext_cmds'
36839 +# Executable file suffix (normally "").
36840 +exeext="$exeext"
36842 +# Additional compiler flags for building library objects.
36843 +pic_flag=$lt_lt_prog_compiler_pic_CXX
36844 +pic_mode=$pic_mode
36846 +# What is the maximum length of a command?
36847 +max_cmd_len=$lt_cv_sys_max_cmd_len
36849 +# Does compiler simultaneously support -c and -o options?
36850 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36852 +# Must we lock files when doing compilation?
36853 +need_locks=$lt_need_locks
36855 +# Do we need the lib prefix for modules?
36856 +need_lib_prefix=$need_lib_prefix
36858 +# Do we need a version for libraries?
36859 +need_version=$need_version
36861 +# Whether dlopen is supported.
36862 +dlopen_support=$enable_dlopen
36864 +# Whether dlopen of programs is supported.
36865 +dlopen_self=$enable_dlopen_self
36867 +# Whether dlopen of statically linked programs is supported.
36868 +dlopen_self_static=$enable_dlopen_self_static
36870 +# Compiler flag to prevent dynamic linking.
36871 +link_static_flag=$lt_lt_prog_compiler_static_CXX
36873 +# Compiler flag to turn off builtin functions.
36874 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36876 +# Compiler flag to allow reflexive dlopens.
36877 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36879 +# Compiler flag to generate shared objects directly from archives.
36880 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36882 +# Compiler flag to generate thread-safe objects.
36883 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
36885 +# Library versioning type.
36886 +version_type=$version_type
36888 +# Format of library name prefix.
36889 +libname_spec=$lt_libname_spec
36891 +# List of archive names. First name is the real one, the rest are links.
36892 +# The last name is the one that the linker finds with -lNAME.
36893 +library_names_spec=$lt_library_names_spec
36895 +# The coded name of the library, if different from the real name.
36896 +soname_spec=$lt_soname_spec
36898 +# Commands used to build and install an old-style archive.
36899 +RANLIB=$lt_RANLIB
36900 +old_archive_cmds=$lt_old_archive_cmds_CXX
36901 +old_postinstall_cmds=$lt_old_postinstall_cmds
36902 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
36904 +# Create an old-style archive from a shared archive.
36905 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36907 +# Create a temporary old-style archive to link instead of a shared archive.
36908 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36910 +# Commands used to build and install a shared archive.
36911 +archive_cmds=$lt_archive_cmds_CXX
36912 +archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36913 +postinstall_cmds=$lt_postinstall_cmds
36914 +postuninstall_cmds=$lt_postuninstall_cmds
36916 +# Commands used to build a loadable module (assumed same as above if empty)
36917 +module_cmds=$lt_module_cmds_CXX
36918 +module_expsym_cmds=$lt_module_expsym_cmds_CXX
36920 +# Commands to strip libraries.
36921 +old_striplib=$lt_old_striplib
36922 +striplib=$lt_striplib
36924 +# Dependencies to place before the objects being linked to create a
36925 +# shared library.
36926 +predep_objects=$lt_predep_objects_CXX
36928 +# Dependencies to place after the objects being linked to create a
36929 +# shared library.
36930 +postdep_objects=$lt_postdep_objects_CXX
36932 +# Dependencies to place before the objects being linked to create a
36933 +# shared library.
36934 +predeps=$lt_predeps_CXX
36936 +# Dependencies to place after the objects being linked to create a
36937 +# shared library.
36938 +postdeps=$lt_postdeps_CXX
36940 +# The library search path used internally by the compiler when linking
36941 +# a shared library.
36942 +compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36944 +# Method to check whether dependent libraries are shared objects.
36945 +deplibs_check_method=$lt_deplibs_check_method
36947 +# Command to use when deplibs_check_method == file_magic.
36948 +file_magic_cmd=$lt_file_magic_cmd
36950 +# Flag that allows shared libraries with undefined symbols to be built.
36951 +allow_undefined_flag=$lt_allow_undefined_flag_CXX
36953 +# Flag that forces no undefined symbols.
36954 +no_undefined_flag=$lt_no_undefined_flag_CXX
36956 +# Commands used to finish a libtool library installation in a directory.
36957 +finish_cmds=$lt_finish_cmds
36959 +# Same as above, but a single script fragment to be evaled but not shown.
36960 +finish_eval=$lt_finish_eval
36962 +# Take the output of nm and produce a listing of raw symbols and C names.
36963 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36965 +# Transform the output of nm in a proper C declaration
36966 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36968 +# Transform the output of nm in a C name address pair
36969 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36971 +# This is the shared library runtime path variable.
36972 +runpath_var=$runpath_var
36974 +# This is the shared library path variable.
36975 +shlibpath_var=$shlibpath_var
36977 +# Is shlibpath searched before the hard-coded library search path?
36978 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36980 +# How to hardcode a shared library path into an executable.
36981 +hardcode_action=$hardcode_action_CXX
36983 +# Whether we should hardcode library paths into libraries.
36984 +hardcode_into_libs=$hardcode_into_libs
36986 +# Flag to hardcode \$libdir into a binary during linking.
36987 +# This must work even if \$libdir does not exist.
36988 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36990 +# If ld is used when linking, flag to hardcode \$libdir into
36991 +# a binary during linking. This must work even if \$libdir does
36992 +# not exist.
36993 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36995 +# Whether we need a single -rpath flag with a separated argument.
36996 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36998 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
36999 +# resulting binary.
37000 +hardcode_direct=$hardcode_direct_CXX
37002 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
37003 +# resulting binary.
37004 +hardcode_minus_L=$hardcode_minus_L_CXX
37006 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
37007 +# the resulting binary.
37008 +hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37010 +# Set to yes if building a shared library automatically hardcodes DIR into the library
37011 +# and all subsequent libraries and executables linked against it.
37012 +hardcode_automatic=$hardcode_automatic_CXX
37014 +# Variables whose values should be saved in libtool wrapper scripts and
37015 +# restored at relink time.
37016 +variables_saved_for_relink="$variables_saved_for_relink"
37018 +# Whether libtool must link a program against all its dependency libraries.
37019 +link_all_deplibs=$link_all_deplibs_CXX
37021 +# Compile-time system search path for libraries
37022 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37024 +# Run-time system search path for libraries
37025 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37027 +# Fix the shell variable \$srcfile for the compiler.
37028 +fix_srcfile_path="$fix_srcfile_path_CXX"
37030 +# Set to yes if exported symbols are required.
37031 +always_export_symbols=$always_export_symbols_CXX
37033 +# The commands to list exported symbols.
37034 +export_symbols_cmds=$lt_export_symbols_cmds_CXX
37036 +# The commands to extract the exported symbol list from a shared archive.
37037 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
37039 +# Symbols that should not be listed in the preloaded symbols.
37040 +exclude_expsyms=$lt_exclude_expsyms_CXX
37042 +# Symbols that must always be exported.
37043 +include_expsyms=$lt_include_expsyms_CXX
37045 +# ### END LIBTOOL TAG CONFIG: $tagname
37047 +__EOF__
37050 +else
37051 + # If there is no Makefile yet, we rely on a make rule to execute
37052 + # `config.status --recheck' to rerun these tests and create the
37053 + # libtool script then.
37054 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
37055 + if test -f "$ltmain_in"; then
37056 + test -f Makefile && make "$ltmain"
37057 + fi
37061 +ac_ext=c
37062 +ac_cpp='$CPP $CPPFLAGS'
37063 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37064 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37065 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
37067 +CC=$lt_save_CC
37068 +LDCXX=$LD
37069 +LD=$lt_save_LD
37070 +GCC=$lt_save_GCC
37071 +with_gnu_ldcxx=$with_gnu_ld
37072 +with_gnu_ld=$lt_save_with_gnu_ld
37073 +lt_cv_path_LDCXX=$lt_cv_path_LD
37074 +lt_cv_path_LD=$lt_save_path_LD
37075 +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
37076 +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
37078 + else
37079 + tagname=""
37080 + fi
37081 + ;;
37083 + F77)
37084 + if test -n "$F77" && test "X$F77" != "Xno"; then
37086 +ac_ext=f
37087 +ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
37088 +ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37089 +ac_compiler_gnu=$ac_cv_f77_compiler_gnu
37092 +archive_cmds_need_lc_F77=no
37093 +allow_undefined_flag_F77=
37094 +always_export_symbols_F77=no
37095 +archive_expsym_cmds_F77=
37096 +export_dynamic_flag_spec_F77=
37097 +hardcode_direct_F77=no
37098 +hardcode_libdir_flag_spec_F77=
37099 +hardcode_libdir_flag_spec_ld_F77=
37100 +hardcode_libdir_separator_F77=
37101 +hardcode_minus_L_F77=no
37102 +hardcode_automatic_F77=no
37103 +module_cmds_F77=
37104 +module_expsym_cmds_F77=
37105 +link_all_deplibs_F77=unknown
37106 +old_archive_cmds_F77=$old_archive_cmds
37107 +no_undefined_flag_F77=
37108 +whole_archive_flag_spec_F77=
37109 +enable_shared_with_static_runtimes_F77=no
37111 +# Source file extension for f77 test sources.
37112 +ac_ext=f
37114 +# Object file extension for compiled f77 test sources.
37115 +objext=o
37116 +objext_F77=$objext
37118 +# Code to be used in simple compile tests
37119 +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
37121 +# Code to be used in simple link tests
37122 +lt_simple_link_test_code=" program t\n end\n"
37124 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
37126 +# If no C compiler was specified, use CC.
37127 +LTCC=${LTCC-"$CC"}
37129 +# If no C compiler flags were specified, use CFLAGS.
37130 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
37132 +# Allow CC to be a program name with arguments.
37133 +compiler=$CC
37136 +# save warnings/boilerplate of simple test code
37137 +ac_outfile=conftest.$ac_objext
37138 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
37139 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
37140 +_lt_compiler_boilerplate=`cat conftest.err`
37141 +$rm conftest*
37143 +ac_outfile=conftest.$ac_objext
37144 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
37145 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
37146 +_lt_linker_boilerplate=`cat conftest.err`
37147 +$rm conftest*
37150 +# Allow CC to be a program name with arguments.
37151 +lt_save_CC="$CC"
37152 +CC=${F77-"f77"}
37153 +compiler=$CC
37154 +compiler_F77=$CC
37155 +for cc_temp in $compiler""; do
37156 + case $cc_temp in
37157 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37158 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37159 + \-*) ;;
37160 + *) break;;
37161 + esac
37162 +done
37163 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37166 +echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
37167 +echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
37168 +echo "$as_me:$LINENO: result: $can_build_shared" >&5
37169 +echo "${ECHO_T}$can_build_shared" >&6
37171 +echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
37172 +echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
37173 +test "$can_build_shared" = "no" && enable_shared=no
37175 +# On AIX, shared libraries and static libraries use the same namespace, and
37176 +# are all built from PIC.
37177 +case $host_os in
37178 +aix3*)
37179 + test "$enable_shared" = yes && enable_static=no
37180 + if test -n "$RANLIB"; then
37181 + archive_cmds="$archive_cmds~\$RANLIB \$lib"
37182 + postinstall_cmds='$RANLIB $lib'
37183 + fi
37184 + ;;
37185 +aix4* | aix5*)
37186 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
37187 + test "$enable_shared" = yes && enable_static=no
37188 + fi
37189 + ;;
37190 +esac
37191 +echo "$as_me:$LINENO: result: $enable_shared" >&5
37192 +echo "${ECHO_T}$enable_shared" >&6
37194 +echo "$as_me:$LINENO: checking whether to build static libraries" >&5
37195 +echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
37196 +# Make sure either enable_shared or enable_static is yes.
37197 +test "$enable_shared" = yes || enable_static=yes
37198 +echo "$as_me:$LINENO: result: $enable_static" >&5
37199 +echo "${ECHO_T}$enable_static" >&6
37201 +GCC_F77="$G77"
37202 +LD_F77="$LD"
37204 +lt_prog_compiler_wl_F77=
37205 +lt_prog_compiler_pic_F77=
37206 +lt_prog_compiler_static_F77=
37208 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
37209 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
37211 + if test "$GCC" = yes; then
37212 + lt_prog_compiler_wl_F77='-Wl,'
37213 + lt_prog_compiler_static_F77='-static'
37215 + case $host_os in
37216 + aix*)
37217 + # All AIX code is PIC.
37218 + if test "$host_cpu" = ia64; then
37219 + # AIX 5 now supports IA64 processor
37220 + lt_prog_compiler_static_F77='-Bstatic'
37221 + fi
37222 + ;;
37224 + amigaos*)
37225 + # FIXME: we need at least 68020 code to build shared libraries, but
37226 + # adding the `-m68020' flag to GCC prevents building anything better,
37227 + # like `-m68040'.
37228 + lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
37229 + ;;
37231 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
37232 + # PIC is the default for these OSes.
37233 + ;;
37235 + mingw* | pw32* | os2*)
37236 + # This hack is so that the source file can tell whether it is being
37237 + # built for inclusion in a dll (and should export symbols for example).
37238 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
37239 + ;;
37241 + darwin* | rhapsody*)
37242 + # PIC is the default on this platform
37243 + # Common symbols not allowed in MH_DYLIB files
37244 + lt_prog_compiler_pic_F77='-fno-common'
37245 + ;;
37247 + interix3*)
37248 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
37249 + # Instead, we relocate shared libraries at runtime.
37250 + ;;
37252 + msdosdjgpp*)
37253 + # Just because we use GCC doesn't mean we suddenly get shared libraries
37254 + # on systems that don't support them.
37255 + lt_prog_compiler_can_build_shared_F77=no
37256 + enable_shared=no
37257 + ;;
37259 + sysv4*MP*)
37260 + if test -d /usr/nec; then
37261 + lt_prog_compiler_pic_F77=-Kconform_pic
37262 + fi
37263 + ;;
37265 + hpux*)
37266 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37267 + # not for PA HP-UX.
37268 + case $host_cpu in
37269 + hppa*64*|ia64*)
37270 + # +Z the default
37271 + ;;
37272 + *)
37273 + lt_prog_compiler_pic_F77='-fPIC'
37274 + ;;
37275 + esac
37276 + ;;
37278 + *)
37279 + lt_prog_compiler_pic_F77='-fPIC'
37280 + ;;
37281 + esac
37282 + else
37283 + # PORTME Check for flag to pass linker flags through the system compiler.
37284 + case $host_os in
37285 + aix*)
37286 + lt_prog_compiler_wl_F77='-Wl,'
37287 + if test "$host_cpu" = ia64; then
37288 + # AIX 5 now supports IA64 processor
37289 + lt_prog_compiler_static_F77='-Bstatic'
37290 + else
37291 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
37292 + fi
37293 + ;;
37294 + darwin*)
37295 + # PIC is the default on this platform
37296 + # Common symbols not allowed in MH_DYLIB files
37297 + case $cc_basename in
37298 + xlc*)
37299 + lt_prog_compiler_pic_F77='-qnocommon'
37300 + lt_prog_compiler_wl_F77='-Wl,'
37301 + ;;
37302 + esac
37303 + ;;
37305 + mingw* | pw32* | os2*)
37306 + # This hack is so that the source file can tell whether it is being
37307 + # built for inclusion in a dll (and should export symbols for example).
37308 + lt_prog_compiler_pic_F77='-DDLL_EXPORT'
37309 + ;;
37311 + hpux9* | hpux10* | hpux11*)
37312 + lt_prog_compiler_wl_F77='-Wl,'
37313 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
37314 + # not for PA HP-UX.
37315 + case $host_cpu in
37316 + hppa*64*|ia64*)
37317 + # +Z the default
37318 + ;;
37319 + *)
37320 + lt_prog_compiler_pic_F77='+Z'
37321 + ;;
37322 + esac
37323 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
37324 + lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
37325 + ;;
37327 + irix5* | irix6* | nonstopux*)
37328 + lt_prog_compiler_wl_F77='-Wl,'
37329 + # PIC (with -KPIC) is the default.
37330 + lt_prog_compiler_static_F77='-non_shared'
37331 + ;;
37333 + newsos6)
37334 + lt_prog_compiler_pic_F77='-KPIC'
37335 + lt_prog_compiler_static_F77='-Bstatic'
37336 + ;;
37338 + linux*)
37339 + case $cc_basename in
37340 + icc* | ecc*)
37341 + lt_prog_compiler_wl_F77='-Wl,'
37342 + lt_prog_compiler_pic_F77='-KPIC'
37343 + lt_prog_compiler_static_F77='-static'
37344 + ;;
37345 + pgcc* | pgf77* | pgf90* | pgf95*)
37346 + # Portland Group compilers (*not* the Pentium gcc compiler,
37347 + # which looks to be a dead project)
37348 + lt_prog_compiler_wl_F77='-Wl,'
37349 + lt_prog_compiler_pic_F77='-fpic'
37350 + lt_prog_compiler_static_F77='-Bstatic'
37351 + ;;
37352 + ccc*)
37353 + lt_prog_compiler_wl_F77='-Wl,'
37354 + # All Alpha code is PIC.
37355 + lt_prog_compiler_static_F77='-non_shared'
37356 + ;;
37357 + esac
37358 + ;;
37360 + osf3* | osf4* | osf5*)
37361 + lt_prog_compiler_wl_F77='-Wl,'
37362 + # All OSF/1 code is PIC.
37363 + lt_prog_compiler_static_F77='-non_shared'
37364 + ;;
37366 + solaris*)
37367 + lt_prog_compiler_pic_F77='-KPIC'
37368 + lt_prog_compiler_static_F77='-Bstatic'
37369 + case $cc_basename in
37370 + f77* | f90* | f95*)
37371 + lt_prog_compiler_wl_F77='-Qoption ld ';;
37372 + *)
37373 + lt_prog_compiler_wl_F77='-Wl,';;
37374 + esac
37375 + ;;
37377 + sunos4*)
37378 + lt_prog_compiler_wl_F77='-Qoption ld '
37379 + lt_prog_compiler_pic_F77='-PIC'
37380 + lt_prog_compiler_static_F77='-Bstatic'
37381 + ;;
37383 + sysv4 | sysv4.2uw2* | sysv4.3*)
37384 + lt_prog_compiler_wl_F77='-Wl,'
37385 + lt_prog_compiler_pic_F77='-KPIC'
37386 + lt_prog_compiler_static_F77='-Bstatic'
37387 + ;;
37389 + sysv4*MP*)
37390 + if test -d /usr/nec ;then
37391 + lt_prog_compiler_pic_F77='-Kconform_pic'
37392 + lt_prog_compiler_static_F77='-Bstatic'
37393 + fi
37394 + ;;
37396 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
37397 + lt_prog_compiler_wl_F77='-Wl,'
37398 + lt_prog_compiler_pic_F77='-KPIC'
37399 + lt_prog_compiler_static_F77='-Bstatic'
37400 + ;;
37402 + unicos*)
37403 + lt_prog_compiler_wl_F77='-Wl,'
37404 + lt_prog_compiler_can_build_shared_F77=no
37405 + ;;
37407 + uts4*)
37408 + lt_prog_compiler_pic_F77='-pic'
37409 + lt_prog_compiler_static_F77='-Bstatic'
37410 + ;;
37412 + *)
37413 + lt_prog_compiler_can_build_shared_F77=no
37414 + ;;
37415 + esac
37416 + fi
37418 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
37419 +echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
37422 +# Check to make sure the PIC flag actually works.
37424 +if test -n "$lt_prog_compiler_pic_F77"; then
37426 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
37427 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
37428 +if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
37429 + echo $ECHO_N "(cached) $ECHO_C" >&6
37430 +else
37431 + lt_prog_compiler_pic_works_F77=no
37432 + ac_outfile=conftest.$ac_objext
37433 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37434 + lt_compiler_flag="$lt_prog_compiler_pic_F77"
37435 + # Insert the option either (1) after the last *FLAGS variable, or
37436 + # (2) before a word containing "conftest.", or (3) at the end.
37437 + # Note that $ac_compile itself does not contain backslashes and begins
37438 + # with a dollar sign (not a hyphen), so the echo should work correctly.
37439 + # The option is referenced via a variable to avoid confusing sed.
37440 + lt_compile=`echo "$ac_compile" | $SED \
37441 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37442 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37443 + -e 's:$: $lt_compiler_flag:'`
37444 + (eval echo "\"\$as_me:14937: $lt_compile\"" >&5)
37445 + (eval "$lt_compile" 2>conftest.err)
37446 + ac_status=$?
37447 + cat conftest.err >&5
37448 + echo "$as_me:14941: \$? = $ac_status" >&5
37449 + if (exit $ac_status) && test -s "$ac_outfile"; then
37450 + # The compiler can only warn and ignore the option if not recognized
37451 + # So say no if there are warnings other than the usual output.
37452 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
37453 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
37454 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
37455 + lt_prog_compiler_pic_works_F77=yes
37456 + fi
37457 + fi
37458 + $rm conftest*
37461 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
37462 +echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
37464 +if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
37465 + case $lt_prog_compiler_pic_F77 in
37466 + "" | " "*) ;;
37467 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
37468 + esac
37469 +else
37470 + lt_prog_compiler_pic_F77=
37471 + lt_prog_compiler_can_build_shared_F77=no
37475 +case $host_os in
37476 + # For platforms which do not support PIC, -DPIC is meaningless:
37477 + *djgpp*)
37478 + lt_prog_compiler_pic_F77=
37479 + ;;
37480 + *)
37481 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
37482 + ;;
37483 +esac
37486 +# Check to make sure the static flag actually works.
37488 +wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
37489 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
37490 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
37491 +if test "${lt_prog_compiler_static_works_F77+set}" = set; then
37492 + echo $ECHO_N "(cached) $ECHO_C" >&6
37493 +else
37494 + lt_prog_compiler_static_works_F77=no
37495 + save_LDFLAGS="$LDFLAGS"
37496 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
37497 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
37498 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
37499 + # The linker can only warn and ignore the option if not recognized
37500 + # So say no if there are warnings
37501 + if test -s conftest.err; then
37502 + # Append any errors to the config.log.
37503 + cat conftest.err 1>&5
37504 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
37505 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
37506 + if diff conftest.exp conftest.er2 >/dev/null; then
37507 + lt_prog_compiler_static_works_F77=yes
37508 + fi
37509 + else
37510 + lt_prog_compiler_static_works_F77=yes
37511 + fi
37512 + fi
37513 + $rm conftest*
37514 + LDFLAGS="$save_LDFLAGS"
37517 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
37518 +echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
37520 -if test "x$LTSHARED" != xno -o "x$LTSTATIC" != xno; then
37521 - USELIBTOOL="yes"
37522 - LIBTOOL="./libtool"
37523 - O="lo"
37524 - A="la"
37525 - LN='$(LIBTOOL) --mode=link $(CC)'
37526 - INSTALL_LIB='$(LIBTOOL) --mode=install ${INSTALL}'
37527 - INSTALL_PROGRAM="\$(LIBTOOL) --mode=install $INSTALL_PROGRAM"
37528 +if test x"$lt_prog_compiler_static_works_F77" = xyes; then
37530 else
37531 - USELIBTOOL="no"
37532 - LIBTOOL=""
37533 - O="o"
37534 - A="a"
37535 - LN='$(CC)'
37536 - INSTALL_LIB="$INSTALL_DATA"
37537 + lt_prog_compiler_static_F77=
37541 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
37542 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
37543 +if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
37544 + echo $ECHO_N "(cached) $ECHO_C" >&6
37545 +else
37546 + lt_cv_prog_compiler_c_o_F77=no
37547 + $rm -r conftest 2>/dev/null
37548 + mkdir conftest
37549 + cd conftest
37550 + mkdir out
37551 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
37553 + lt_compiler_flag="-o out/conftest2.$ac_objext"
37554 + # Insert the option either (1) after the last *FLAGS variable, or
37555 + # (2) before a word containing "conftest.", or (3) at the end.
37556 + # Note that $ac_compile itself does not contain backslashes and begins
37557 + # with a dollar sign (not a hyphen), so the echo should work correctly.
37558 + lt_compile=`echo "$ac_compile" | $SED \
37559 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
37560 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
37561 + -e 's:$: $lt_compiler_flag:'`
37562 + (eval echo "\"\$as_me:15041: $lt_compile\"" >&5)
37563 + (eval "$lt_compile" 2>out/conftest.err)
37564 + ac_status=$?
37565 + cat out/conftest.err >&5
37566 + echo "$as_me:15045: \$? = $ac_status" >&5
37567 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
37568 + then
37569 + # The compiler can only warn and ignore the option if not recognized
37570 + # So say no if there are warnings
37571 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
37572 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
37573 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
37574 + lt_cv_prog_compiler_c_o_F77=yes
37575 + fi
37576 + fi
37577 + chmod u+w . 2>&5
37578 + $rm conftest*
37579 + # SGI C++ compiler will create directory out/ii_files/ for
37580 + # template instantiation
37581 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
37582 + $rm out/* && rmdir out
37583 + cd ..
37584 + rmdir conftest
37585 + $rm conftest*
37588 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
37589 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
37592 -# Configure libtool if needed.
37593 -if test $USELIBTOOL = yes; then
37594 - disable_shared=
37595 - disable_static=
37596 - if test "x$LTSHARED" = xno; then
37597 - disable_shared="--disable-shared"
37598 +hard_links="nottested"
37599 +if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
37600 + # do not overwrite the value of need_locks provided by the user
37601 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
37602 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
37603 + hard_links=yes
37604 + $rm conftest*
37605 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
37606 + touch conftest.a
37607 + ln conftest.a conftest.b 2>&5 || hard_links=no
37608 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
37609 + echo "$as_me:$LINENO: result: $hard_links" >&5
37610 +echo "${ECHO_T}$hard_links" >&6
37611 + if test "$hard_links" = no; then
37612 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
37613 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
37614 + need_locks=warn
37616 - if test "x$LTSTATIC" = xno; then
37617 - disable_static="--disable-static"
37618 +else
37619 + need_locks=no
37622 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
37623 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
37625 + runpath_var=
37626 + allow_undefined_flag_F77=
37627 + enable_shared_with_static_runtimes_F77=no
37628 + archive_cmds_F77=
37629 + archive_expsym_cmds_F77=
37630 + old_archive_From_new_cmds_F77=
37631 + old_archive_from_expsyms_cmds_F77=
37632 + export_dynamic_flag_spec_F77=
37633 + whole_archive_flag_spec_F77=
37634 + thread_safe_flag_spec_F77=
37635 + hardcode_libdir_flag_spec_F77=
37636 + hardcode_libdir_flag_spec_ld_F77=
37637 + hardcode_libdir_separator_F77=
37638 + hardcode_direct_F77=no
37639 + hardcode_minus_L_F77=no
37640 + hardcode_shlibpath_var_F77=unsupported
37641 + link_all_deplibs_F77=unknown
37642 + hardcode_automatic_F77=no
37643 + module_cmds_F77=
37644 + module_expsym_cmds_F77=
37645 + always_export_symbols_F77=no
37646 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
37647 + # include_expsyms should be a list of space-separated symbols to be *always*
37648 + # included in the symbol list
37649 + include_expsyms_F77=
37650 + # exclude_expsyms can be an extended regexp of symbols to exclude
37651 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
37652 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
37653 + # as well as any symbol that contains `d'.
37654 + exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
37655 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
37656 + # platforms (ab)use it in PIC code, but their linkers get confused if
37657 + # the symbol is explicitly referenced. Since portable code cannot
37658 + # rely on this symbol name, it's probably fine to never include it in
37659 + # preloaded symbol tables.
37660 + extract_expsyms_cmds=
37661 + # Just being paranoid about ensuring that cc_basename is set.
37662 + for cc_temp in $compiler""; do
37663 + case $cc_temp in
37664 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37665 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37666 + \-*) ;;
37667 + *) break;;
37668 + esac
37669 +done
37670 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
37672 + case $host_os in
37673 + cygwin* | mingw* | pw32*)
37674 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
37675 + # When not using gcc, we currently assume that we are using
37676 + # Microsoft Visual C++.
37677 + if test "$GCC" != yes; then
37678 + with_gnu_ld=no
37679 + fi
37680 + ;;
37681 + interix*)
37682 + # we just hope/assume this is gcc and not c89 (= MSVC++)
37683 + with_gnu_ld=yes
37684 + ;;
37685 + openbsd*)
37686 + with_gnu_ld=no
37687 + ;;
37688 + esac
37690 + ld_shlibs_F77=yes
37691 + if test "$with_gnu_ld" = yes; then
37692 + # If archive_cmds runs LD, not CC, wlarc should be empty
37693 + wlarc='${wl}'
37695 + # Set some defaults for GNU ld with shared library support. These
37696 + # are reset later if shared libraries are not supported. Putting them
37697 + # here allows them to be overridden if necessary.
37698 + runpath_var=LD_RUN_PATH
37699 + hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
37700 + export_dynamic_flag_spec_F77='${wl}--export-dynamic'
37701 + # ancient GNU ld didn't support --whole-archive et. al.
37702 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
37703 + whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
37704 + else
37705 + whole_archive_flag_spec_F77=
37706 + fi
37707 + supports_anon_versioning=no
37708 + case `$LD -v 2>/dev/null` in
37709 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
37710 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
37711 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
37712 + *\ 2.11.*) ;; # other 2.11 versions
37713 + *) supports_anon_versioning=yes ;;
37714 + esac
37716 + # See if GNU ld supports shared libraries.
37717 + case $host_os in
37718 + aix3* | aix4* | aix5*)
37719 + # On AIX/PPC, the GNU linker is very broken
37720 + if test "$host_cpu" != ia64; then
37721 + ld_shlibs_F77=no
37722 + cat <<EOF 1>&2
37724 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
37725 +*** to be unable to reliably create shared libraries on AIX.
37726 +*** Therefore, libtool is disabling shared libraries support. If you
37727 +*** really care for shared libraries, you may want to modify your PATH
37728 +*** so that a non-GNU linker is found, and then restart.
37730 +EOF
37731 + fi
37732 + ;;
37734 + amigaos*)
37735 + 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)'
37736 + hardcode_libdir_flag_spec_F77='-L$libdir'
37737 + hardcode_minus_L_F77=yes
37739 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
37740 + # that the semantics of dynamic libraries on AmigaOS, at least up
37741 + # to version 4, is to share data among multiple programs linked
37742 + # with the same dynamic library. Since this doesn't match the
37743 + # behavior of shared libraries on other platforms, we can't use
37744 + # them.
37745 + ld_shlibs_F77=no
37746 + ;;
37748 + beos*)
37749 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
37750 + allow_undefined_flag_F77=unsupported
37751 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
37752 + # support --undefined. This deserves some investigation. FIXME
37753 + archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
37754 + else
37755 + ld_shlibs_F77=no
37756 + fi
37757 + ;;
37759 + cygwin* | mingw* | pw32*)
37760 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
37761 + # as there is no search path for DLLs.
37762 + hardcode_libdir_flag_spec_F77='-L$libdir'
37763 + allow_undefined_flag_F77=unsupported
37764 + always_export_symbols_F77=no
37765 + enable_shared_with_static_runtimes_F77=yes
37766 + export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
37768 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
37769 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
37770 + # If the export-symbols file already is a .def file (1st line
37771 + # is EXPORTS), use it as is; otherwise, prepend...
37772 + archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
37773 + cp $export_symbols $output_objdir/$soname.def;
37774 + else
37775 + echo EXPORTS > $output_objdir/$soname.def;
37776 + cat $export_symbols >> $output_objdir/$soname.def;
37777 + fi~
37778 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
37779 + else
37780 + ld_shlibs_F77=no
37781 + fi
37782 + ;;
37784 + interix3*)
37785 + hardcode_direct_F77=no
37786 + hardcode_shlibpath_var_F77=no
37787 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
37788 + export_dynamic_flag_spec_F77='${wl}-E'
37789 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
37790 + # Instead, shared libraries are loaded at an image base (0x10000000 by
37791 + # default) and relocated if they conflict, which is a slow very memory
37792 + # consuming and fragmenting process. To avoid this, we pick a random,
37793 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
37794 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
37795 + archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
37796 + archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
37797 + ;;
37799 + linux*)
37800 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
37801 + tmp_addflag=
37802 + case $cc_basename,$host_cpu in
37803 + pgcc*) # Portland Group C compiler
37804 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
37805 + tmp_addflag=' $pic_flag'
37806 + ;;
37807 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
37808 + whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
37809 + tmp_addflag=' $pic_flag -Mnomain' ;;
37810 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
37811 + tmp_addflag=' -i_dynamic' ;;
37812 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
37813 + tmp_addflag=' -i_dynamic -nofor_main' ;;
37814 + ifc* | ifort*) # Intel Fortran compiler
37815 + tmp_addflag=' -nofor_main' ;;
37816 + esac
37817 + archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
37819 + if test $supports_anon_versioning = yes; then
37820 + archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
37821 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
37822 + $echo "local: *; };" >> $output_objdir/$libname.ver~
37823 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
37824 + fi
37825 + else
37826 + ld_shlibs_F77=no
37827 + fi
37828 + ;;
37830 + netbsd*)
37831 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
37832 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
37833 + wlarc=
37834 + else
37835 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
37836 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
37837 + fi
37838 + ;;
37840 + solaris*)
37841 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
37842 + ld_shlibs_F77=no
37843 + cat <<EOF 1>&2
37845 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
37846 +*** create shared libraries on Solaris systems. Therefore, libtool
37847 +*** is disabling shared libraries support. We urge you to upgrade GNU
37848 +*** binutils to release 2.9.1 or newer. Another option is to modify
37849 +*** your PATH or compiler configuration so that the native linker is
37850 +*** used, and then restart.
37852 +EOF
37853 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
37854 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
37855 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
37856 + else
37857 + ld_shlibs_F77=no
37858 + fi
37859 + ;;
37861 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
37862 + case `$LD -v 2>&1` in
37863 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
37864 + ld_shlibs_F77=no
37865 + cat <<_LT_EOF 1>&2
37867 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
37868 +*** reliably create shared libraries on SCO systems. Therefore, libtool
37869 +*** is disabling shared libraries support. We urge you to upgrade GNU
37870 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
37871 +*** your PATH or compiler configuration so that the native linker is
37872 +*** used, and then restart.
37874 +_LT_EOF
37875 + ;;
37876 + *)
37877 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
37878 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
37879 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
37880 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
37881 + else
37882 + ld_shlibs_F77=no
37883 + fi
37884 + ;;
37885 + esac
37886 + ;;
37888 + sunos4*)
37889 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
37890 + wlarc=
37891 + hardcode_direct_F77=yes
37892 + hardcode_shlibpath_var_F77=no
37893 + ;;
37895 + *)
37896 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
37897 + archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
37898 + archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
37899 + else
37900 + ld_shlibs_F77=no
37901 + fi
37902 + ;;
37903 + esac
37905 + if test "$ld_shlibs_F77" = no; then
37906 + runpath_var=
37907 + hardcode_libdir_flag_spec_F77=
37908 + export_dynamic_flag_spec_F77=
37909 + whole_archive_flag_spec_F77=
37910 + fi
37911 + else
37912 + # PORTME fill in a description of your system's linker (not GNU ld)
37913 + case $host_os in
37914 + aix3*)
37915 + allow_undefined_flag_F77=unsupported
37916 + always_export_symbols_F77=yes
37917 + 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'
37918 + # Note: this linker hardcodes the directories in LIBPATH if there
37919 + # are no directories specified by -L.
37920 + hardcode_minus_L_F77=yes
37921 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
37922 + # Neither direct hardcoding nor static linking is supported with a
37923 + # broken collect2.
37924 + hardcode_direct_F77=unsupported
37925 + fi
37926 + ;;
37928 + aix4* | aix5*)
37929 + if test "$host_cpu" = ia64; then
37930 + # On IA64, the linker does run time linking by default, so we don't
37931 + # have to do anything special.
37932 + aix_use_runtimelinking=no
37933 + exp_sym_flag='-Bexport'
37934 + no_entry_flag=""
37935 + else
37936 + # If we're using GNU nm, then we don't want the "-C" option.
37937 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
37938 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
37939 + 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'
37940 + else
37941 + 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'
37942 + fi
37943 + aix_use_runtimelinking=no
37945 + # Test if we are trying to use run time linking or normal
37946 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
37947 + # need to do runtime linking.
37948 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
37949 + for ld_flag in $LDFLAGS; do
37950 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
37951 + aix_use_runtimelinking=yes
37952 + break
37953 + fi
37954 + done
37955 + ;;
37956 + esac
37958 + exp_sym_flag='-bexport'
37959 + no_entry_flag='-bnoentry'
37960 + fi
37962 + # When large executables or shared objects are built, AIX ld can
37963 + # have problems creating the table of contents. If linking a library
37964 + # or program results in "error TOC overflow" add -mminimal-toc to
37965 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
37966 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
37968 + archive_cmds_F77=''
37969 + hardcode_direct_F77=yes
37970 + hardcode_libdir_separator_F77=':'
37971 + link_all_deplibs_F77=yes
37973 + if test "$GCC" = yes; then
37974 + case $host_os in aix4.[012]|aix4.[012].*)
37975 + # We only want to do this on AIX 4.2 and lower, the check
37976 + # below for broken collect2 doesn't work under 4.3+
37977 + collect2name=`${CC} -print-prog-name=collect2`
37978 + if test -f "$collect2name" && \
37979 + strings "$collect2name" | grep resolve_lib_name >/dev/null
37980 + then
37981 + # We have reworked collect2
37982 + hardcode_direct_F77=yes
37983 + else
37984 + # We have old collect2
37985 + hardcode_direct_F77=unsupported
37986 + # It fails to find uninstalled libraries when the uninstalled
37987 + # path is not listed in the libpath. Setting hardcode_minus_L
37988 + # to unsupported forces relinking
37989 + hardcode_minus_L_F77=yes
37990 + hardcode_libdir_flag_spec_F77='-L$libdir'
37991 + hardcode_libdir_separator_F77=
37992 + fi
37993 + ;;
37994 + esac
37995 + shared_flag='-shared'
37996 + if test "$aix_use_runtimelinking" = yes; then
37997 + shared_flag="$shared_flag "'${wl}-G'
37998 + fi
37999 + else
38000 + # not using gcc
38001 + if test "$host_cpu" = ia64; then
38002 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
38003 + # chokes on -Wl,-G. The following line is correct:
38004 + shared_flag='-G'
38005 + else
38006 + if test "$aix_use_runtimelinking" = yes; then
38007 + shared_flag='${wl}-G'
38008 + else
38009 + shared_flag='${wl}-bM:SRE'
38010 + fi
38011 + fi
38012 + fi
38014 + # It seems that -bexpall does not export symbols beginning with
38015 + # underscore (_), so it is better to generate a list of symbols to export.
38016 + always_export_symbols_F77=yes
38017 + if test "$aix_use_runtimelinking" = yes; then
38018 + # Warning - without using the other runtime loading flags (-brtl),
38019 + # -berok will link without error, but may produce a broken library.
38020 + allow_undefined_flag_F77='-berok'
38021 + # Determine the default libpath from the value encoded in an empty executable.
38022 + cat >conftest.$ac_ext <<_ACEOF
38023 + program main
38025 + end
38026 +_ACEOF
38027 +rm -f conftest.$ac_objext conftest$ac_exeext
38028 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38029 + (eval $ac_link) 2>conftest.er1
38030 + ac_status=$?
38031 + grep -v '^ *+' conftest.er1 >conftest.err
38032 + rm -f conftest.er1
38033 + cat conftest.err >&5
38034 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38035 + (exit $ac_status); } &&
38036 + { ac_try='test -z "$ac_f77_werror_flag"
38037 + || test ! -s conftest.err'
38038 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38039 + (eval $ac_try) 2>&5
38040 + ac_status=$?
38041 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38042 + (exit $ac_status); }; } &&
38043 + { ac_try='test -s conftest$ac_exeext'
38044 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38045 + (eval $ac_try) 2>&5
38046 + ac_status=$?
38047 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38048 + (exit $ac_status); }; }; then
38050 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38051 +}'`
38052 +# Check for a 64-bit object if we didn't find anything.
38053 +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; }
38054 +}'`; fi
38055 +else
38056 + echo "$as_me: failed program was:" >&5
38057 +sed 's/^/| /' conftest.$ac_ext >&5
38060 +rm -f conftest.err conftest.$ac_objext \
38061 + conftest$ac_exeext conftest.$ac_ext
38062 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38064 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
38065 + archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
38066 + else
38067 + if test "$host_cpu" = ia64; then
38068 + hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
38069 + allow_undefined_flag_F77="-z nodefs"
38070 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
38071 + else
38072 + # Determine the default libpath from the value encoded in an empty executable.
38073 + cat >conftest.$ac_ext <<_ACEOF
38074 + program main
38076 + end
38077 +_ACEOF
38078 +rm -f conftest.$ac_objext conftest$ac_exeext
38079 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
38080 + (eval $ac_link) 2>conftest.er1
38081 + ac_status=$?
38082 + grep -v '^ *+' conftest.er1 >conftest.err
38083 + rm -f conftest.er1
38084 + cat conftest.err >&5
38085 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38086 + (exit $ac_status); } &&
38087 + { ac_try='test -z "$ac_f77_werror_flag"
38088 + || test ! -s conftest.err'
38089 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38090 + (eval $ac_try) 2>&5
38091 + ac_status=$?
38092 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38093 + (exit $ac_status); }; } &&
38094 + { ac_try='test -s conftest$ac_exeext'
38095 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38096 + (eval $ac_try) 2>&5
38097 + ac_status=$?
38098 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38099 + (exit $ac_status); }; }; then
38101 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
38102 +}'`
38103 +# Check for a 64-bit object if we didn't find anything.
38104 +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; }
38105 +}'`; fi
38106 +else
38107 + echo "$as_me: failed program was:" >&5
38108 +sed 's/^/| /' conftest.$ac_ext >&5
38111 +rm -f conftest.err conftest.$ac_objext \
38112 + conftest$ac_exeext conftest.$ac_ext
38113 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
38115 + hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
38116 + # Warning - without using the other run time loading flags,
38117 + # -berok will link without error, but may produce a broken library.
38118 + no_undefined_flag_F77=' ${wl}-bernotok'
38119 + allow_undefined_flag_F77=' ${wl}-berok'
38120 + # Exported symbols can be pulled into shared objects from archives
38121 + whole_archive_flag_spec_F77='$convenience'
38122 + archive_cmds_need_lc_F77=yes
38123 + # This is similar to how AIX traditionally builds its shared libraries.
38124 + archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
38125 + fi
38126 + fi
38127 + ;;
38129 + amigaos*)
38130 + 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)'
38131 + hardcode_libdir_flag_spec_F77='-L$libdir'
38132 + hardcode_minus_L_F77=yes
38133 + # see comment about different semantics on the GNU ld section
38134 + ld_shlibs_F77=no
38135 + ;;
38137 + bsdi[45]*)
38138 + export_dynamic_flag_spec_F77=-rdynamic
38139 + ;;
38141 + cygwin* | mingw* | pw32*)
38142 + # When not using gcc, we currently assume that we are using
38143 + # Microsoft Visual C++.
38144 + # hardcode_libdir_flag_spec is actually meaningless, as there is
38145 + # no search path for DLLs.
38146 + hardcode_libdir_flag_spec_F77=' '
38147 + allow_undefined_flag_F77=unsupported
38148 + # Tell ltmain to make .lib files, not .a files.
38149 + libext=lib
38150 + # Tell ltmain to make .dll files, not .so files.
38151 + shrext_cmds=".dll"
38152 + # FIXME: Setting linknames here is a bad hack.
38153 + archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
38154 + # The linker will automatically build a .lib file if we build a DLL.
38155 + old_archive_From_new_cmds_F77='true'
38156 + # FIXME: Should let the user specify the lib program.
38157 + old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
38158 + fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
38159 + enable_shared_with_static_runtimes_F77=yes
38160 + ;;
38162 + darwin* | rhapsody*)
38163 + case $host_os in
38164 + rhapsody* | darwin1.[012])
38165 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
38166 + ;;
38167 + *) # Darwin 1.3 on
38168 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
38169 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38170 + else
38171 + case ${MACOSX_DEPLOYMENT_TARGET} in
38172 + 10.[012])
38173 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38174 + ;;
38175 + 10.*)
38176 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
38177 + ;;
38178 + esac
38179 + fi
38180 + ;;
38181 + esac
38182 + archive_cmds_need_lc_F77=no
38183 + hardcode_direct_F77=no
38184 + hardcode_automatic_F77=yes
38185 + hardcode_shlibpath_var_F77=unsupported
38186 + whole_archive_flag_spec_F77=''
38187 + link_all_deplibs_F77=yes
38188 + if test "$GCC" = yes ; then
38189 + output_verbose_link_cmd='echo'
38190 + archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
38191 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38192 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38193 + archive_expsym_cmds_F77='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}'
38194 + 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}'
38195 + else
38196 + case $cc_basename in
38197 + xlc*)
38198 + output_verbose_link_cmd='echo'
38199 + archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
38200 + module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
38201 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
38202 + archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
38203 + 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}'
38204 + ;;
38205 + *)
38206 + ld_shlibs_F77=no
38207 + ;;
38208 + esac
38209 + fi
38210 + ;;
38212 + dgux*)
38213 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38214 + hardcode_libdir_flag_spec_F77='-L$libdir'
38215 + hardcode_shlibpath_var_F77=no
38216 + ;;
38218 + freebsd1*)
38219 + ld_shlibs_F77=no
38220 + ;;
38222 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
38223 + # support. Future versions do this automatically, but an explicit c++rt0.o
38224 + # does not break anything, and helps significantly (at the cost of a little
38225 + # extra space).
38226 + freebsd2.2*)
38227 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
38228 + hardcode_libdir_flag_spec_F77='-R$libdir'
38229 + hardcode_direct_F77=yes
38230 + hardcode_shlibpath_var_F77=no
38231 + ;;
38233 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
38234 + freebsd2*)
38235 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38236 + hardcode_direct_F77=yes
38237 + hardcode_minus_L_F77=yes
38238 + hardcode_shlibpath_var_F77=no
38239 + ;;
38241 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
38242 + freebsd* | kfreebsd*-gnu | dragonfly*)
38243 + archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
38244 + hardcode_libdir_flag_spec_F77='-R$libdir'
38245 + hardcode_direct_F77=yes
38246 + hardcode_shlibpath_var_F77=no
38247 + ;;
38249 + hpux9*)
38250 + if test "$GCC" = yes; then
38251 + 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'
38252 + else
38253 + 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'
38254 + fi
38255 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
38256 + hardcode_libdir_separator_F77=:
38257 + hardcode_direct_F77=yes
38259 + # hardcode_minus_L: Not really in the search PATH,
38260 + # but as the default location of the library.
38261 + hardcode_minus_L_F77=yes
38262 + export_dynamic_flag_spec_F77='${wl}-E'
38263 + ;;
38265 + hpux10*)
38266 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38267 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38268 + else
38269 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
38270 + fi
38271 + if test "$with_gnu_ld" = no; then
38272 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
38273 + hardcode_libdir_separator_F77=:
38275 + hardcode_direct_F77=yes
38276 + export_dynamic_flag_spec_F77='${wl}-E'
38278 + # hardcode_minus_L: Not really in the search PATH,
38279 + # but as the default location of the library.
38280 + hardcode_minus_L_F77=yes
38281 + fi
38282 + ;;
38284 + hpux11*)
38285 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38286 + case $host_cpu in
38287 + hppa*64*)
38288 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38289 + ;;
38290 + ia64*)
38291 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
38292 + ;;
38293 + *)
38294 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38295 + ;;
38296 + esac
38297 + else
38298 + case $host_cpu in
38299 + hppa*64*)
38300 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38301 + ;;
38302 + ia64*)
38303 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
38304 + ;;
38305 + *)
38306 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38307 + ;;
38308 + esac
38309 + fi
38310 + if test "$with_gnu_ld" = no; then
38311 + hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
38312 + hardcode_libdir_separator_F77=:
38314 + case $host_cpu in
38315 + hppa*64*|ia64*)
38316 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
38317 + hardcode_direct_F77=no
38318 + hardcode_shlibpath_var_F77=no
38319 + ;;
38320 + *)
38321 + hardcode_direct_F77=yes
38322 + export_dynamic_flag_spec_F77='${wl}-E'
38324 + # hardcode_minus_L: Not really in the search PATH,
38325 + # but as the default location of the library.
38326 + hardcode_minus_L_F77=yes
38327 + ;;
38328 + esac
38329 + fi
38330 + ;;
38332 + irix5* | irix6* | nonstopux*)
38333 + if test "$GCC" = yes; then
38334 + 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'
38335 + else
38336 + 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'
38337 + hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
38338 + fi
38339 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
38340 + hardcode_libdir_separator_F77=:
38341 + link_all_deplibs_F77=yes
38342 + ;;
38344 + netbsd*)
38345 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
38346 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
38347 + else
38348 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
38349 + fi
38350 + hardcode_libdir_flag_spec_F77='-R$libdir'
38351 + hardcode_direct_F77=yes
38352 + hardcode_shlibpath_var_F77=no
38353 + ;;
38355 + newsos6)
38356 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38357 + hardcode_direct_F77=yes
38358 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
38359 + hardcode_libdir_separator_F77=:
38360 + hardcode_shlibpath_var_F77=no
38361 + ;;
38363 + openbsd*)
38364 + hardcode_direct_F77=yes
38365 + hardcode_shlibpath_var_F77=no
38366 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
38367 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38368 + archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
38369 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
38370 + export_dynamic_flag_spec_F77='${wl}-E'
38371 + else
38372 + case $host_os in
38373 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
38374 + archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
38375 + hardcode_libdir_flag_spec_F77='-R$libdir'
38376 + ;;
38377 + *)
38378 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38379 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
38380 + ;;
38381 + esac
38382 + fi
38383 + ;;
38385 + os2*)
38386 + hardcode_libdir_flag_spec_F77='-L$libdir'
38387 + hardcode_minus_L_F77=yes
38388 + allow_undefined_flag_F77=unsupported
38389 + 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'
38390 + old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
38391 + ;;
38393 + osf3*)
38394 + if test "$GCC" = yes; then
38395 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
38396 + 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'
38397 + else
38398 + allow_undefined_flag_F77=' -expect_unresolved \*'
38399 + 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'
38400 + fi
38401 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
38402 + hardcode_libdir_separator_F77=:
38403 + ;;
38405 + osf4* | osf5*) # as osf3* with the addition of -msym flag
38406 + if test "$GCC" = yes; then
38407 + allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
38408 + 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'
38409 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
38410 + else
38411 + allow_undefined_flag_F77=' -expect_unresolved \*'
38412 + 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'
38413 + 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~
38414 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
38416 + # Both c and cxx compiler support -rpath directly
38417 + hardcode_libdir_flag_spec_F77='-rpath $libdir'
38418 + fi
38419 + hardcode_libdir_separator_F77=:
38420 + ;;
38422 + solaris*)
38423 + no_undefined_flag_F77=' -z text'
38424 + if test "$GCC" = yes; then
38425 + wlarc='${wl}'
38426 + archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38427 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38428 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
38429 + else
38430 + wlarc=''
38431 + archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
38432 + archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
38433 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
38434 + fi
38435 + hardcode_libdir_flag_spec_F77='-R$libdir'
38436 + hardcode_shlibpath_var_F77=no
38437 + case $host_os in
38438 + solaris2.[0-5] | solaris2.[0-5].*) ;;
38439 + *)
38440 + # The compiler driver will combine linker options so we
38441 + # cannot just pass the convience library names through
38442 + # without $wl, iff we do not link with $LD.
38443 + # Luckily, gcc supports the same syntax we need for Sun Studio.
38444 + # Supported since Solaris 2.6 (maybe 2.5.1?)
38445 + case $wlarc in
38446 + '')
38447 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
38448 + *)
38449 + whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
38450 + esac ;;
38451 + esac
38452 + link_all_deplibs_F77=yes
38453 + ;;
38455 + sunos4*)
38456 + if test "x$host_vendor" = xsequent; then
38457 + # Use $CC to link under sequent, because it throws in some extra .o
38458 + # files that make .init and .fini sections work.
38459 + archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
38460 + else
38461 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
38462 + fi
38463 + hardcode_libdir_flag_spec_F77='-L$libdir'
38464 + hardcode_direct_F77=yes
38465 + hardcode_minus_L_F77=yes
38466 + hardcode_shlibpath_var_F77=no
38467 + ;;
38469 + sysv4)
38470 + case $host_vendor in
38471 + sni)
38472 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38473 + hardcode_direct_F77=yes # is this really true???
38474 + ;;
38475 + siemens)
38476 + ## LD is ld it makes a PLAMLIB
38477 + ## CC just makes a GrossModule.
38478 + archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
38479 + reload_cmds_F77='$CC -r -o $output$reload_objs'
38480 + hardcode_direct_F77=no
38481 + ;;
38482 + motorola)
38483 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38484 + hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
38485 + ;;
38486 + esac
38487 + runpath_var='LD_RUN_PATH'
38488 + hardcode_shlibpath_var_F77=no
38489 + ;;
38491 + sysv4.3*)
38492 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38493 + hardcode_shlibpath_var_F77=no
38494 + export_dynamic_flag_spec_F77='-Bexport'
38495 + ;;
38497 + sysv4*MP*)
38498 + if test -d /usr/nec; then
38499 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38500 + hardcode_shlibpath_var_F77=no
38501 + runpath_var=LD_RUN_PATH
38502 + hardcode_runpath_var=yes
38503 + ld_shlibs_F77=yes
38504 + fi
38505 + ;;
38507 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
38508 + no_undefined_flag_F77='${wl}-z,text'
38509 + archive_cmds_need_lc_F77=no
38510 + hardcode_shlibpath_var_F77=no
38511 + runpath_var='LD_RUN_PATH'
38513 + if test "$GCC" = yes; then
38514 + archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38515 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38516 + else
38517 + archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38518 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
38519 + fi
38520 + ;;
38522 + sysv5* | sco3.2v5* | sco5v6*)
38523 + # Note: We can NOT use -z defs as we might desire, because we do not
38524 + # link with -lc, and that would cause any symbols used from libc to
38525 + # always be unresolved, which means just about no library would
38526 + # ever link correctly. If we're not using GNU ld we use -z text
38527 + # though, which does catch some bad symbols but isn't as heavy-handed
38528 + # as -z defs.
38529 + no_undefined_flag_F77='${wl}-z,text'
38530 + allow_undefined_flag_F77='${wl}-z,nodefs'
38531 + archive_cmds_need_lc_F77=no
38532 + hardcode_shlibpath_var_F77=no
38533 + hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
38534 + hardcode_libdir_separator_F77=':'
38535 + link_all_deplibs_F77=yes
38536 + export_dynamic_flag_spec_F77='${wl}-Bexport'
38537 + runpath_var='LD_RUN_PATH'
38539 + if test "$GCC" = yes; then
38540 + archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
38541 + archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
38542 + else
38543 + archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
38544 + archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
38545 + fi
38546 + ;;
38548 + uts4*)
38549 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38550 + hardcode_libdir_flag_spec_F77='-L$libdir'
38551 + hardcode_shlibpath_var_F77=no
38552 + ;;
38554 + *)
38555 + ld_shlibs_F77=no
38556 + ;;
38557 + esac
38558 + fi
38560 +echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
38561 +echo "${ECHO_T}$ld_shlibs_F77" >&6
38562 +test "$ld_shlibs_F77" = no && can_build_shared=no
38565 +# Do we need to explicitly link libc?
38567 +case "x$archive_cmds_need_lc_F77" in
38568 +x|xyes)
38569 + # Assume -lc should be added
38570 + archive_cmds_need_lc_F77=yes
38572 + if test "$enable_shared" = yes && test "$GCC" = yes; then
38573 + case $archive_cmds_F77 in
38574 + *'~'*)
38575 + # FIXME: we may have to deal with multi-command sequences.
38576 + ;;
38577 + '$CC '*)
38578 + # Test whether the compiler implicitly links with -lc since on some
38579 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
38580 + # to ld, don't add -lc before -lgcc.
38581 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
38582 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
38583 + $rm conftest*
38584 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
38586 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
38587 + (eval $ac_compile) 2>&5
38588 + ac_status=$?
38589 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590 + (exit $ac_status); } 2>conftest.err; then
38591 + soname=conftest
38592 + lib=conftest
38593 + libobjs=conftest.$ac_objext
38594 + deplibs=
38595 + wl=$lt_prog_compiler_wl_F77
38596 + pic_flag=$lt_prog_compiler_pic_F77
38597 + compiler_flags=-v
38598 + linker_flags=-v
38599 + verstring=
38600 + output_objdir=.
38601 + libname=conftest
38602 + lt_save_allow_undefined_flag=$allow_undefined_flag_F77
38603 + allow_undefined_flag_F77=
38604 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
38605 + (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
38606 + ac_status=$?
38607 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608 + (exit $ac_status); }
38609 + then
38610 + archive_cmds_need_lc_F77=no
38611 + else
38612 + archive_cmds_need_lc_F77=yes
38613 + fi
38614 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
38615 + else
38616 + cat conftest.err 1>&5
38617 + fi
38618 + $rm conftest*
38619 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
38620 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
38621 + ;;
38622 + esac
38623 + fi
38624 + ;;
38625 +esac
38627 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
38628 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
38629 +library_names_spec=
38630 +libname_spec='lib$name'
38631 +soname_spec=
38632 +shrext_cmds=".so"
38633 +postinstall_cmds=
38634 +postuninstall_cmds=
38635 +finish_cmds=
38636 +finish_eval=
38637 +shlibpath_var=
38638 +shlibpath_overrides_runpath=unknown
38639 +version_type=none
38640 +dynamic_linker="$host_os ld.so"
38641 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
38642 +if test "$GCC" = yes; then
38643 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38644 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
38645 + # if the path contains ";" then we assume it to be the separator
38646 + # otherwise default to the standard path separator (i.e. ":") - it is
38647 + # assumed that no part of a normal pathname contains ";" but that should
38648 + # okay in the real world where ";" in dirpaths is itself problematic.
38649 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38650 + else
38651 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
38653 - $srcdir/ltconfig $disable_shared $disable_static $srcdir/ltmain.sh
38654 +else
38655 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
38657 +need_lib_prefix=unknown
38658 +hardcode_into_libs=no
38660 +# when you set need_version to no, make sure it does not cause -set_version
38661 +# flags to be left without arguments
38662 +need_version=unknown
38664 +case $host_os in
38665 +aix3*)
38666 + version_type=linux
38667 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
38668 + shlibpath_var=LIBPATH
38670 + # AIX 3 has no versioning support, so we append a major version to the name.
38671 + soname_spec='${libname}${release}${shared_ext}$major'
38672 + ;;
38674 +aix4* | aix5*)
38675 + version_type=linux
38676 + need_lib_prefix=no
38677 + need_version=no
38678 + hardcode_into_libs=yes
38679 + if test "$host_cpu" = ia64; then
38680 + # AIX 5 supports IA64
38681 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
38682 + shlibpath_var=LD_LIBRARY_PATH
38683 + else
38684 + # With GCC up to 2.95.x, collect2 would create an import file
38685 + # for dependence libraries. The import file would start with
38686 + # the line `#! .'. This would cause the generated library to
38687 + # depend on `.', always an invalid library. This was fixed in
38688 + # development snapshots of GCC prior to 3.0.
38689 + case $host_os in
38690 + aix4 | aix4.[01] | aix4.[01].*)
38691 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
38692 + echo ' yes '
38693 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
38695 + else
38696 + can_build_shared=no
38697 + fi
38698 + ;;
38699 + esac
38700 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
38701 + # soname into executable. Probably we can add versioning support to
38702 + # collect2, so additional links can be useful in future.
38703 + if test "$aix_use_runtimelinking" = yes; then
38704 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
38705 + # instead of lib<name>.a to let people know that these are not
38706 + # typical AIX shared libraries.
38707 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38708 + else
38709 + # We preserve .a as extension for shared libraries through AIX4.2
38710 + # and later when we are not doing run time linking.
38711 + library_names_spec='${libname}${release}.a $libname.a'
38712 + soname_spec='${libname}${release}${shared_ext}$major'
38713 + fi
38714 + shlibpath_var=LIBPATH
38715 + fi
38716 + ;;
38718 +amigaos*)
38719 + library_names_spec='$libname.ixlibrary $libname.a'
38720 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
38721 + 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'
38722 + ;;
38724 +beos*)
38725 + library_names_spec='${libname}${shared_ext}'
38726 + dynamic_linker="$host_os ld.so"
38727 + shlibpath_var=LIBRARY_PATH
38728 + ;;
38730 +bsdi[45]*)
38731 + version_type=linux
38732 + need_version=no
38733 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38734 + soname_spec='${libname}${release}${shared_ext}$major'
38735 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
38736 + shlibpath_var=LD_LIBRARY_PATH
38737 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
38738 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
38739 + # the default ld.so.conf also contains /usr/contrib/lib and
38740 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
38741 + # libtool to hard-code these into programs
38742 + ;;
38744 +cygwin* | mingw* | pw32*)
38745 + version_type=windows
38746 + shrext_cmds=".dll"
38747 + need_version=no
38748 + need_lib_prefix=no
38750 + case $GCC,$host_os in
38751 + yes,cygwin* | yes,mingw* | yes,pw32*)
38752 + library_names_spec='$libname.dll.a'
38753 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
38754 + postinstall_cmds='base_file=`basename \${file}`~
38755 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
38756 + dldir=$destdir/`dirname \$dlpath`~
38757 + test -d \$dldir || mkdir -p \$dldir~
38758 + $install_prog $dir/$dlname \$dldir/$dlname~
38759 + chmod a+x \$dldir/$dlname'
38760 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
38761 + dlpath=$dir/\$dldll~
38762 + $rm \$dlpath'
38763 + shlibpath_overrides_runpath=yes
38765 + case $host_os in
38766 + cygwin*)
38767 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
38768 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38769 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
38770 + ;;
38771 + mingw*)
38772 + # MinGW DLLs use traditional 'lib' prefix
38773 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38774 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
38775 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
38776 + # It is most probably a Windows format PATH printed by
38777 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
38778 + # path with ; separators, and with drive letters. We can handle the
38779 + # drive letters (cygwin fileutils understands them), so leave them,
38780 + # especially as we might pass files found there to a mingw objdump,
38781 + # which wouldn't understand a cygwinified path. Ahh.
38782 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
38783 + else
38784 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
38785 + fi
38786 + ;;
38787 + pw32*)
38788 + # pw32 DLLs use 'pw' prefix rather than 'lib'
38789 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
38790 + ;;
38791 + esac
38792 + ;;
38794 + *)
38795 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
38796 + ;;
38797 + esac
38798 + dynamic_linker='Win32 ld.exe'
38799 + # FIXME: first we should search . and the directory the executable is in
38800 + shlibpath_var=PATH
38801 + ;;
38803 +darwin* | rhapsody*)
38804 + dynamic_linker="$host_os dyld"
38805 + version_type=darwin
38806 + need_lib_prefix=no
38807 + need_version=no
38808 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
38809 + soname_spec='${libname}${release}${major}$shared_ext'
38810 + shlibpath_overrides_runpath=yes
38811 + shlibpath_var=DYLD_LIBRARY_PATH
38812 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
38813 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
38814 + if test "$GCC" = yes; then
38815 + 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"`
38816 + else
38817 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
38818 + fi
38819 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
38820 + ;;
38822 +dgux*)
38823 + version_type=linux
38824 + need_lib_prefix=no
38825 + need_version=no
38826 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
38827 + soname_spec='${libname}${release}${shared_ext}$major'
38828 + shlibpath_var=LD_LIBRARY_PATH
38829 + ;;
38831 +freebsd1*)
38832 + dynamic_linker=no
38833 + ;;
38835 +kfreebsd*-gnu)
38836 + version_type=linux
38837 + need_lib_prefix=no
38838 + need_version=no
38839 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
38840 + soname_spec='${libname}${release}${shared_ext}$major'
38841 + shlibpath_var=LD_LIBRARY_PATH
38842 + shlibpath_overrides_runpath=no
38843 + hardcode_into_libs=yes
38844 + dynamic_linker='GNU ld.so'
38845 + ;;
38847 +freebsd* | dragonfly*)
38848 + # DragonFly does not have aout. When/if they implement a new
38849 + # versioning mechanism, adjust this.
38850 + if test -x /usr/bin/objformat; then
38851 + objformat=`/usr/bin/objformat`
38852 + else
38853 + case $host_os in
38854 + freebsd[123]*) objformat=aout ;;
38855 + *) objformat=elf ;;
38856 + esac
38857 + fi
38858 + version_type=freebsd-$objformat
38859 + case $version_type in
38860 + freebsd-elf*)
38861 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
38862 + need_version=no
38863 + need_lib_prefix=no
38864 + ;;
38865 + freebsd-*)
38866 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
38867 + need_version=yes
38868 + ;;
38869 + esac
38870 + shlibpath_var=LD_LIBRARY_PATH
38871 + case $host_os in
38872 + freebsd2*)
38873 + shlibpath_overrides_runpath=yes
38874 + ;;
38875 + freebsd3.[01]* | freebsdelf3.[01]*)
38876 + shlibpath_overrides_runpath=yes
38877 + hardcode_into_libs=yes
38878 + ;;
38879 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
38880 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
38881 + shlibpath_overrides_runpath=no
38882 + hardcode_into_libs=yes
38883 + ;;
38884 + freebsd*) # from 4.6 on
38885 + shlibpath_overrides_runpath=yes
38886 + hardcode_into_libs=yes
38887 + ;;
38888 + esac
38889 + ;;
38891 +gnu*)
38892 + version_type=linux
38893 + need_lib_prefix=no
38894 + need_version=no
38895 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
38896 + soname_spec='${libname}${release}${shared_ext}$major'
38897 + shlibpath_var=LD_LIBRARY_PATH
38898 + hardcode_into_libs=yes
38899 + ;;
38901 +hpux9* | hpux10* | hpux11*)
38902 + # Give a soname corresponding to the major version so that dld.sl refuses to
38903 + # link against other versions.
38904 + version_type=sunos
38905 + need_lib_prefix=no
38906 + need_version=no
38907 + case $host_cpu in
38908 + ia64*)
38909 + shrext_cmds='.so'
38910 + hardcode_into_libs=yes
38911 + dynamic_linker="$host_os dld.so"
38912 + shlibpath_var=LD_LIBRARY_PATH
38913 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
38914 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38915 + soname_spec='${libname}${release}${shared_ext}$major'
38916 + if test "X$HPUX_IA64_MODE" = X32; then
38917 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
38918 + else
38919 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
38920 + fi
38921 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
38922 + ;;
38923 + hppa*64*)
38924 + shrext_cmds='.sl'
38925 + hardcode_into_libs=yes
38926 + dynamic_linker="$host_os dld.sl"
38927 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
38928 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
38929 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38930 + soname_spec='${libname}${release}${shared_ext}$major'
38931 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
38932 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
38933 + ;;
38934 + *)
38935 + shrext_cmds='.sl'
38936 + dynamic_linker="$host_os dld.sl"
38937 + shlibpath_var=SHLIB_PATH
38938 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
38939 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
38940 + soname_spec='${libname}${release}${shared_ext}$major'
38941 + ;;
38942 + esac
38943 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
38944 + postinstall_cmds='chmod 555 $lib'
38945 + ;;
38947 +interix3*)
38948 + version_type=linux
38949 + need_lib_prefix=no
38950 + need_version=no
38951 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
38952 + soname_spec='${libname}${release}${shared_ext}$major'
38953 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
38954 + shlibpath_var=LD_LIBRARY_PATH
38955 + shlibpath_overrides_runpath=no
38956 + hardcode_into_libs=yes
38957 + ;;
38959 +irix5* | irix6* | nonstopux*)
38960 + case $host_os in
38961 + nonstopux*) version_type=nonstopux ;;
38962 + *)
38963 + if test "$lt_cv_prog_gnu_ld" = yes; then
38964 + version_type=linux
38965 + else
38966 + version_type=irix
38967 + fi ;;
38968 + esac
38969 + need_lib_prefix=no
38970 + need_version=no
38971 + soname_spec='${libname}${release}${shared_ext}$major'
38972 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
38973 + case $host_os in
38974 + irix5* | nonstopux*)
38975 + libsuff= shlibsuff=
38976 + ;;
38977 + *)
38978 + case $LD in # libtool.m4 will add one of these switches to LD
38979 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
38980 + libsuff= shlibsuff= libmagic=32-bit;;
38981 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
38982 + libsuff=32 shlibsuff=N32 libmagic=N32;;
38983 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
38984 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
38985 + *) libsuff= shlibsuff= libmagic=never-match;;
38986 + esac
38987 + ;;
38988 + esac
38989 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
38990 + shlibpath_overrides_runpath=no
38991 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
38992 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
38993 + hardcode_into_libs=yes
38994 + ;;
38996 +# No shared lib support for Linux oldld, aout, or coff.
38997 +linux*oldld* | linux*aout* | linux*coff*)
38998 + dynamic_linker=no
38999 + ;;
39001 +# This must be Linux ELF.
39002 +linux*)
39003 + version_type=linux
39004 + need_lib_prefix=no
39005 + need_version=no
39006 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39007 + soname_spec='${libname}${release}${shared_ext}$major'
39008 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
39009 + shlibpath_var=LD_LIBRARY_PATH
39010 + shlibpath_overrides_runpath=no
39011 + # This implies no fast_install, which is unacceptable.
39012 + # Some rework will be needed to allow for fast_install
39013 + # before this can be enabled.
39014 + hardcode_into_libs=yes
39016 + # Append ld.so.conf contents to the search path
39017 + if test -f /etc/ld.so.conf; then
39018 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
39019 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
39020 + fi
39022 + # We used to test for /lib/ld.so.1 and disable shared libraries on
39023 + # powerpc, because MkLinux only supported shared libraries with the
39024 + # GNU dynamic linker. Since this was broken with cross compilers,
39025 + # most powerpc-linux boxes support dynamic linking these days and
39026 + # people can always --disable-shared, the test was removed, and we
39027 + # assume the GNU/Linux dynamic linker is in use.
39028 + dynamic_linker='GNU/Linux ld.so'
39029 + ;;
39031 +knetbsd*-gnu)
39032 + version_type=linux
39033 + need_lib_prefix=no
39034 + need_version=no
39035 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39036 + soname_spec='${libname}${release}${shared_ext}$major'
39037 + shlibpath_var=LD_LIBRARY_PATH
39038 + shlibpath_overrides_runpath=no
39039 + hardcode_into_libs=yes
39040 + dynamic_linker='GNU ld.so'
39041 + ;;
39043 +netbsd*)
39044 + version_type=sunos
39045 + need_lib_prefix=no
39046 + need_version=no
39047 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
39048 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39049 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39050 + dynamic_linker='NetBSD (a.out) ld.so'
39051 + else
39052 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
39053 + soname_spec='${libname}${release}${shared_ext}$major'
39054 + dynamic_linker='NetBSD ld.elf_so'
39055 + fi
39056 + shlibpath_var=LD_LIBRARY_PATH
39057 + shlibpath_overrides_runpath=yes
39058 + hardcode_into_libs=yes
39059 + ;;
39061 +newsos6)
39062 + version_type=linux
39063 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39064 + shlibpath_var=LD_LIBRARY_PATH
39065 + shlibpath_overrides_runpath=yes
39066 + ;;
39068 +nto-qnx*)
39069 + version_type=linux
39070 + need_lib_prefix=no
39071 + need_version=no
39072 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39073 + soname_spec='${libname}${release}${shared_ext}$major'
39074 + shlibpath_var=LD_LIBRARY_PATH
39075 + shlibpath_overrides_runpath=yes
39076 + ;;
39078 +openbsd*)
39079 + version_type=sunos
39080 + sys_lib_dlsearch_path_spec="/usr/lib"
39081 + need_lib_prefix=no
39082 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
39083 + case $host_os in
39084 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
39085 + *) need_version=no ;;
39086 + esac
39087 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39088 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
39089 + shlibpath_var=LD_LIBRARY_PATH
39090 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
39091 + case $host_os in
39092 + openbsd2.[89] | openbsd2.[89].*)
39093 + shlibpath_overrides_runpath=no
39094 + ;;
39095 + *)
39096 + shlibpath_overrides_runpath=yes
39097 + ;;
39098 + esac
39099 + else
39100 + shlibpath_overrides_runpath=yes
39101 + fi
39102 + ;;
39104 +os2*)
39105 + libname_spec='$name'
39106 + shrext_cmds=".dll"
39107 + need_lib_prefix=no
39108 + library_names_spec='$libname${shared_ext} $libname.a'
39109 + dynamic_linker='OS/2 ld.exe'
39110 + shlibpath_var=LIBPATH
39111 + ;;
39113 +osf3* | osf4* | osf5*)
39114 + version_type=osf
39115 + need_lib_prefix=no
39116 + need_version=no
39117 + soname_spec='${libname}${release}${shared_ext}$major'
39118 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39119 + shlibpath_var=LD_LIBRARY_PATH
39120 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
39121 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
39122 + ;;
39124 +solaris*)
39125 + version_type=linux
39126 + need_lib_prefix=no
39127 + need_version=no
39128 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39129 + soname_spec='${libname}${release}${shared_ext}$major'
39130 + shlibpath_var=LD_LIBRARY_PATH
39131 + shlibpath_overrides_runpath=yes
39132 + hardcode_into_libs=yes
39133 + # ldd complains unless libraries are executable
39134 + postinstall_cmds='chmod +x $lib'
39135 + ;;
39137 +sunos4*)
39138 + version_type=sunos
39139 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
39140 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
39141 + shlibpath_var=LD_LIBRARY_PATH
39142 + shlibpath_overrides_runpath=yes
39143 + if test "$with_gnu_ld" = yes; then
39144 + need_lib_prefix=no
39145 + fi
39146 + need_version=yes
39147 + ;;
39149 +sysv4 | sysv4.3*)
39150 + version_type=linux
39151 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39152 + soname_spec='${libname}${release}${shared_ext}$major'
39153 + shlibpath_var=LD_LIBRARY_PATH
39154 + case $host_vendor in
39155 + sni)
39156 + shlibpath_overrides_runpath=no
39157 + need_lib_prefix=no
39158 + export_dynamic_flag_spec='${wl}-Blargedynsym'
39159 + runpath_var=LD_RUN_PATH
39160 + ;;
39161 + siemens)
39162 + need_lib_prefix=no
39163 + ;;
39164 + motorola)
39165 + need_lib_prefix=no
39166 + need_version=no
39167 + shlibpath_overrides_runpath=no
39168 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
39169 + ;;
39170 + esac
39171 + ;;
39173 +sysv4*MP*)
39174 + if test -d /usr/nec ;then
39175 + version_type=linux
39176 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
39177 + soname_spec='$libname${shared_ext}.$major'
39178 + shlibpath_var=LD_LIBRARY_PATH
39179 + fi
39180 + ;;
39182 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
39183 + version_type=freebsd-elf
39184 + need_lib_prefix=no
39185 + need_version=no
39186 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
39187 + soname_spec='${libname}${release}${shared_ext}$major'
39188 + shlibpath_var=LD_LIBRARY_PATH
39189 + hardcode_into_libs=yes
39190 + if test "$with_gnu_ld" = yes; then
39191 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
39192 + shlibpath_overrides_runpath=no
39193 + else
39194 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
39195 + shlibpath_overrides_runpath=yes
39196 + case $host_os in
39197 + sco3.2v5*)
39198 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
39199 + ;;
39200 + esac
39201 + fi
39202 + sys_lib_dlsearch_path_spec='/usr/lib'
39203 + ;;
39205 +uts4*)
39206 + version_type=linux
39207 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
39208 + soname_spec='${libname}${release}${shared_ext}$major'
39209 + shlibpath_var=LD_LIBRARY_PATH
39210 + ;;
39213 + dynamic_linker=no
39214 + ;;
39215 +esac
39216 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
39217 +echo "${ECHO_T}$dynamic_linker" >&6
39218 +test "$dynamic_linker" = no && can_build_shared=no
39220 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
39221 +if test "$GCC" = yes; then
39222 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
39225 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
39226 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
39227 +hardcode_action_F77=
39228 +if test -n "$hardcode_libdir_flag_spec_F77" || \
39229 + test -n "$runpath_var_F77" || \
39230 + test "X$hardcode_automatic_F77" = "Xyes" ; then
39232 + # We can hardcode non-existant directories.
39233 + if test "$hardcode_direct_F77" != no &&
39234 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
39235 + # have to relink, otherwise we might link with an installed library
39236 + # when we should be linking with a yet-to-be-installed one
39237 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
39238 + test "$hardcode_minus_L_F77" != no; then
39239 + # Linking always hardcodes the temporary library directory.
39240 + hardcode_action_F77=relink
39241 + else
39242 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
39243 + hardcode_action_F77=immediate
39244 + fi
39245 +else
39246 + # We cannot hardcode anything, or else we can only hardcode existing
39247 + # directories.
39248 + hardcode_action_F77=unsupported
39250 +echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
39251 +echo "${ECHO_T}$hardcode_action_F77" >&6
39253 +if test "$hardcode_action_F77" = relink; then
39254 + # Fast installation is not supported
39255 + enable_fast_install=no
39256 +elif test "$shlibpath_overrides_runpath" = yes ||
39257 + test "$enable_shared" = no; then
39258 + # Fast installation is not necessary
39259 + enable_fast_install=needless
39263 +# The else clause should only fire when bootstrapping the
39264 +# libtool distribution, otherwise you forgot to ship ltmain.sh
39265 +# with your package, and you will get complaints that there are
39266 +# no rules to generate ltmain.sh.
39267 +if test -f "$ltmain"; then
39268 + # See if we are running on zsh, and set the options which allow our commands through
39269 + # without removal of \ escapes.
39270 + if test -n "${ZSH_VERSION+set}" ; then
39271 + setopt NO_GLOB_SUBST
39272 + fi
39273 + # Now quote all the things that may contain metacharacters while being
39274 + # careful not to overquote the AC_SUBSTed values. We take copies of the
39275 + # variables and quote the copies for generation of the libtool script.
39276 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
39277 + SED SHELL STRIP \
39278 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
39279 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
39280 + deplibs_check_method reload_flag reload_cmds need_locks \
39281 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
39282 + lt_cv_sys_global_symbol_to_c_name_address \
39283 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
39284 + old_postinstall_cmds old_postuninstall_cmds \
39285 + compiler_F77 \
39286 + CC_F77 \
39287 + LD_F77 \
39288 + lt_prog_compiler_wl_F77 \
39289 + lt_prog_compiler_pic_F77 \
39290 + lt_prog_compiler_static_F77 \
39291 + lt_prog_compiler_no_builtin_flag_F77 \
39292 + export_dynamic_flag_spec_F77 \
39293 + thread_safe_flag_spec_F77 \
39294 + whole_archive_flag_spec_F77 \
39295 + enable_shared_with_static_runtimes_F77 \
39296 + old_archive_cmds_F77 \
39297 + old_archive_from_new_cmds_F77 \
39298 + predep_objects_F77 \
39299 + postdep_objects_F77 \
39300 + predeps_F77 \
39301 + postdeps_F77 \
39302 + compiler_lib_search_path_F77 \
39303 + archive_cmds_F77 \
39304 + archive_expsym_cmds_F77 \
39305 + postinstall_cmds_F77 \
39306 + postuninstall_cmds_F77 \
39307 + old_archive_from_expsyms_cmds_F77 \
39308 + allow_undefined_flag_F77 \
39309 + no_undefined_flag_F77 \
39310 + export_symbols_cmds_F77 \
39311 + hardcode_libdir_flag_spec_F77 \
39312 + hardcode_libdir_flag_spec_ld_F77 \
39313 + hardcode_libdir_separator_F77 \
39314 + hardcode_automatic_F77 \
39315 + module_cmds_F77 \
39316 + module_expsym_cmds_F77 \
39317 + lt_cv_prog_compiler_c_o_F77 \
39318 + exclude_expsyms_F77 \
39319 + include_expsyms_F77; do
39321 + case $var in
39322 + old_archive_cmds_F77 | \
39323 + old_archive_from_new_cmds_F77 | \
39324 + archive_cmds_F77 | \
39325 + archive_expsym_cmds_F77 | \
39326 + module_cmds_F77 | \
39327 + module_expsym_cmds_F77 | \
39328 + old_archive_from_expsyms_cmds_F77 | \
39329 + export_symbols_cmds_F77 | \
39330 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
39331 + postinstall_cmds | postuninstall_cmds | \
39332 + old_postinstall_cmds | old_postuninstall_cmds | \
39333 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
39334 + # Double-quote double-evaled strings.
39335 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
39336 + ;;
39337 + *)
39338 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
39339 + ;;
39340 + esac
39341 + done
39343 + case $lt_echo in
39344 + *'\$0 --fallback-echo"')
39345 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
39346 + ;;
39347 + esac
39349 +cfgfile="$ofile"
39351 + cat <<__EOF__ >> "$cfgfile"
39352 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
39354 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
39356 +# Shell to use when invoking shell scripts.
39357 +SHELL=$lt_SHELL
39359 +# Whether or not to build shared libraries.
39360 +build_libtool_libs=$enable_shared
39362 +# Whether or not to build static libraries.
39363 +build_old_libs=$enable_static
39365 +# Whether or not to add -lc for building shared libraries.
39366 +build_libtool_need_lc=$archive_cmds_need_lc_F77
39368 +# Whether or not to disallow shared libs when runtime libs are static
39369 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
39371 +# Whether or not to optimize for fast installation.
39372 +fast_install=$enable_fast_install
39374 +# The host system.
39375 +host_alias=$host_alias
39376 +host=$host
39377 +host_os=$host_os
39379 +# The build system.
39380 +build_alias=$build_alias
39381 +build=$build
39382 +build_os=$build_os
39384 +# An echo program that does not interpret backslashes.
39385 +echo=$lt_echo
39387 +# The archiver.
39388 +AR=$lt_AR
39389 +AR_FLAGS=$lt_AR_FLAGS
39391 +# A C compiler.
39392 +LTCC=$lt_LTCC
39394 +# LTCC compiler flags.
39395 +LTCFLAGS=$lt_LTCFLAGS
39397 +# A language-specific compiler.
39398 +CC=$lt_compiler_F77
39400 +# Is the compiler the GNU C compiler?
39401 +with_gcc=$GCC_F77
39403 +# An ERE matcher.
39404 +EGREP=$lt_EGREP
39406 +# The linker used to build libraries.
39407 +LD=$lt_LD_F77
39409 +# Whether we need hard or soft links.
39410 +LN_S=$lt_LN_S
39412 +# A BSD-compatible nm program.
39413 +NM=$lt_NM
39415 +# A symbol stripping program
39416 +STRIP=$lt_STRIP
39418 +# Used to examine libraries when file_magic_cmd begins "file"
39419 +MAGIC_CMD=$MAGIC_CMD
39421 +# Used on cygwin: DLL creation program.
39422 +DLLTOOL="$DLLTOOL"
39424 +# Used on cygwin: object dumper.
39425 +OBJDUMP="$OBJDUMP"
39427 +# Used on cygwin: assembler.
39428 +AS="$AS"
39430 +# The name of the directory that contains temporary libtool files.
39431 +objdir=$objdir
39433 +# How to create reloadable object files.
39434 +reload_flag=$lt_reload_flag
39435 +reload_cmds=$lt_reload_cmds
39437 +# How to pass a linker flag through the compiler.
39438 +wl=$lt_lt_prog_compiler_wl_F77
39440 +# Object file suffix (normally "o").
39441 +objext="$ac_objext"
39443 +# Old archive suffix (normally "a").
39444 +libext="$libext"
39446 +# Shared library suffix (normally ".so").
39447 +shrext_cmds='$shrext_cmds'
39449 +# Executable file suffix (normally "").
39450 +exeext="$exeext"
39452 +# Additional compiler flags for building library objects.
39453 +pic_flag=$lt_lt_prog_compiler_pic_F77
39454 +pic_mode=$pic_mode
39456 +# What is the maximum length of a command?
39457 +max_cmd_len=$lt_cv_sys_max_cmd_len
39459 +# Does compiler simultaneously support -c and -o options?
39460 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
39462 +# Must we lock files when doing compilation?
39463 +need_locks=$lt_need_locks
39465 +# Do we need the lib prefix for modules?
39466 +need_lib_prefix=$need_lib_prefix
39468 +# Do we need a version for libraries?
39469 +need_version=$need_version
39471 +# Whether dlopen is supported.
39472 +dlopen_support=$enable_dlopen
39474 +# Whether dlopen of programs is supported.
39475 +dlopen_self=$enable_dlopen_self
39477 +# Whether dlopen of statically linked programs is supported.
39478 +dlopen_self_static=$enable_dlopen_self_static
39480 +# Compiler flag to prevent dynamic linking.
39481 +link_static_flag=$lt_lt_prog_compiler_static_F77
39483 +# Compiler flag to turn off builtin functions.
39484 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
39486 +# Compiler flag to allow reflexive dlopens.
39487 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
39489 +# Compiler flag to generate shared objects directly from archives.
39490 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
39492 +# Compiler flag to generate thread-safe objects.
39493 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
39495 +# Library versioning type.
39496 +version_type=$version_type
39498 +# Format of library name prefix.
39499 +libname_spec=$lt_libname_spec
39501 +# List of archive names. First name is the real one, the rest are links.
39502 +# The last name is the one that the linker finds with -lNAME.
39503 +library_names_spec=$lt_library_names_spec
39505 +# The coded name of the library, if different from the real name.
39506 +soname_spec=$lt_soname_spec
39508 +# Commands used to build and install an old-style archive.
39509 +RANLIB=$lt_RANLIB
39510 +old_archive_cmds=$lt_old_archive_cmds_F77
39511 +old_postinstall_cmds=$lt_old_postinstall_cmds
39512 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
39514 +# Create an old-style archive from a shared archive.
39515 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
39517 +# Create a temporary old-style archive to link instead of a shared archive.
39518 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
39520 +# Commands used to build and install a shared archive.
39521 +archive_cmds=$lt_archive_cmds_F77
39522 +archive_expsym_cmds=$lt_archive_expsym_cmds_F77
39523 +postinstall_cmds=$lt_postinstall_cmds
39524 +postuninstall_cmds=$lt_postuninstall_cmds
39526 +# Commands used to build a loadable module (assumed same as above if empty)
39527 +module_cmds=$lt_module_cmds_F77
39528 +module_expsym_cmds=$lt_module_expsym_cmds_F77
39530 +# Commands to strip libraries.
39531 +old_striplib=$lt_old_striplib
39532 +striplib=$lt_striplib
39534 +# Dependencies to place before the objects being linked to create a
39535 +# shared library.
39536 +predep_objects=$lt_predep_objects_F77
39538 +# Dependencies to place after the objects being linked to create a
39539 +# shared library.
39540 +postdep_objects=$lt_postdep_objects_F77
39542 +# Dependencies to place before the objects being linked to create a
39543 +# shared library.
39544 +predeps=$lt_predeps_F77
39546 +# Dependencies to place after the objects being linked to create a
39547 +# shared library.
39548 +postdeps=$lt_postdeps_F77
39550 +# The library search path used internally by the compiler when linking
39551 +# a shared library.
39552 +compiler_lib_search_path=$lt_compiler_lib_search_path_F77
39554 +# Method to check whether dependent libraries are shared objects.
39555 +deplibs_check_method=$lt_deplibs_check_method
39557 +# Command to use when deplibs_check_method == file_magic.
39558 +file_magic_cmd=$lt_file_magic_cmd
39560 +# Flag that allows shared libraries with undefined symbols to be built.
39561 +allow_undefined_flag=$lt_allow_undefined_flag_F77
39563 +# Flag that forces no undefined symbols.
39564 +no_undefined_flag=$lt_no_undefined_flag_F77
39566 +# Commands used to finish a libtool library installation in a directory.
39567 +finish_cmds=$lt_finish_cmds
39569 +# Same as above, but a single script fragment to be evaled but not shown.
39570 +finish_eval=$lt_finish_eval
39572 +# Take the output of nm and produce a listing of raw symbols and C names.
39573 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
39575 +# Transform the output of nm in a proper C declaration
39576 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
39578 +# Transform the output of nm in a C name address pair
39579 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
39581 +# This is the shared library runtime path variable.
39582 +runpath_var=$runpath_var
39584 +# This is the shared library path variable.
39585 +shlibpath_var=$shlibpath_var
39587 +# Is shlibpath searched before the hard-coded library search path?
39588 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
39590 +# How to hardcode a shared library path into an executable.
39591 +hardcode_action=$hardcode_action_F77
39593 +# Whether we should hardcode library paths into libraries.
39594 +hardcode_into_libs=$hardcode_into_libs
39596 +# Flag to hardcode \$libdir into a binary during linking.
39597 +# This must work even if \$libdir does not exist.
39598 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
39600 +# If ld is used when linking, flag to hardcode \$libdir into
39601 +# a binary during linking. This must work even if \$libdir does
39602 +# not exist.
39603 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
39605 +# Whether we need a single -rpath flag with a separated argument.
39606 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
39608 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
39609 +# resulting binary.
39610 +hardcode_direct=$hardcode_direct_F77
39612 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
39613 +# resulting binary.
39614 +hardcode_minus_L=$hardcode_minus_L_F77
39616 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
39617 +# the resulting binary.
39618 +hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
39620 +# Set to yes if building a shared library automatically hardcodes DIR into the library
39621 +# and all subsequent libraries and executables linked against it.
39622 +hardcode_automatic=$hardcode_automatic_F77
39624 +# Variables whose values should be saved in libtool wrapper scripts and
39625 +# restored at relink time.
39626 +variables_saved_for_relink="$variables_saved_for_relink"
39628 +# Whether libtool must link a program against all its dependency libraries.
39629 +link_all_deplibs=$link_all_deplibs_F77
39631 +# Compile-time system search path for libraries
39632 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
39634 +# Run-time system search path for libraries
39635 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
39637 +# Fix the shell variable \$srcfile for the compiler.
39638 +fix_srcfile_path="$fix_srcfile_path_F77"
39640 +# Set to yes if exported symbols are required.
39641 +always_export_symbols=$always_export_symbols_F77
39643 +# The commands to list exported symbols.
39644 +export_symbols_cmds=$lt_export_symbols_cmds_F77
39646 +# The commands to extract the exported symbol list from a shared archive.
39647 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
39649 +# Symbols that should not be listed in the preloaded symbols.
39650 +exclude_expsyms=$lt_exclude_expsyms_F77
39652 +# Symbols that must always be exported.
39653 +include_expsyms=$lt_include_expsyms_F77
39655 +# ### END LIBTOOL TAG CONFIG: $tagname
39657 +__EOF__
39660 +else
39661 + # If there is no Makefile yet, we rely on a make rule to execute
39662 + # `config.status --recheck' to rerun these tests and create the
39663 + # libtool script then.
39664 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
39665 + if test -f "$ltmain_in"; then
39666 + test -f Makefile && make "$ltmain"
39667 + fi
39671 +ac_ext=c
39672 +ac_cpp='$CPP $CPPFLAGS'
39673 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39674 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39675 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
39677 +CC="$lt_save_CC"
39679 + else
39680 + tagname=""
39681 + fi
39682 + ;;
39684 + GCJ)
39685 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
39689 +# Source file extension for Java test sources.
39690 +ac_ext=java
39692 +# Object file extension for compiled Java test sources.
39693 +objext=o
39694 +objext_GCJ=$objext
39696 +# Code to be used in simple compile tests
39697 +lt_simple_compile_test_code="class foo {}\n"
39699 +# Code to be used in simple link tests
39700 +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
39702 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
39704 +# If no C compiler was specified, use CC.
39705 +LTCC=${LTCC-"$CC"}
39707 +# If no C compiler flags were specified, use CFLAGS.
39708 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
39710 +# Allow CC to be a program name with arguments.
39711 +compiler=$CC
39714 +# save warnings/boilerplate of simple test code
39715 +ac_outfile=conftest.$ac_objext
39716 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
39717 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39718 +_lt_compiler_boilerplate=`cat conftest.err`
39719 +$rm conftest*
39721 +ac_outfile=conftest.$ac_objext
39722 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
39723 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
39724 +_lt_linker_boilerplate=`cat conftest.err`
39725 +$rm conftest*
39728 +# Allow CC to be a program name with arguments.
39729 +lt_save_CC="$CC"
39730 +CC=${GCJ-"gcj"}
39731 +compiler=$CC
39732 +compiler_GCJ=$CC
39733 +for cc_temp in $compiler""; do
39734 + case $cc_temp in
39735 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39736 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
39737 + \-*) ;;
39738 + *) break;;
39739 + esac
39740 +done
39741 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
39744 +# GCJ did not exist at the time GCC didn't implicitly link libc in.
39745 +archive_cmds_need_lc_GCJ=no
39747 +old_archive_cmds_GCJ=$old_archive_cmds
39750 +lt_prog_compiler_no_builtin_flag_GCJ=
39752 +if test "$GCC" = yes; then
39753 + lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
39756 +echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
39757 +echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
39758 +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
39759 + echo $ECHO_N "(cached) $ECHO_C" >&6
39760 +else
39761 + lt_cv_prog_compiler_rtti_exceptions=no
39762 + ac_outfile=conftest.$ac_objext
39763 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
39764 + lt_compiler_flag="-fno-rtti -fno-exceptions"
39765 + # Insert the option either (1) after the last *FLAGS variable, or
39766 + # (2) before a word containing "conftest.", or (3) at the end.
39767 + # Note that $ac_compile itself does not contain backslashes and begins
39768 + # with a dollar sign (not a hyphen), so the echo should work correctly.
39769 + # The option is referenced via a variable to avoid confusing sed.
39770 + lt_compile=`echo "$ac_compile" | $SED \
39771 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
39772 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
39773 + -e 's:$: $lt_compiler_flag:'`
39774 + (eval echo "\"\$as_me:17244: $lt_compile\"" >&5)
39775 + (eval "$lt_compile" 2>conftest.err)
39776 + ac_status=$?
39777 + cat conftest.err >&5
39778 + echo "$as_me:17248: \$? = $ac_status" >&5
39779 + if (exit $ac_status) && test -s "$ac_outfile"; then
39780 + # The compiler can only warn and ignore the option if not recognized
39781 + # So say no if there are warnings other than the usual output.
39782 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
39783 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
39784 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
39785 + lt_cv_prog_compiler_rtti_exceptions=yes
39786 + fi
39787 + fi
39788 + $rm conftest*
39791 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
39792 +echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
39794 +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
39795 + lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
39796 +else
39802 +lt_prog_compiler_wl_GCJ=
39803 +lt_prog_compiler_pic_GCJ=
39804 +lt_prog_compiler_static_GCJ=
39806 +echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
39807 +echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
39809 + if test "$GCC" = yes; then
39810 + lt_prog_compiler_wl_GCJ='-Wl,'
39811 + lt_prog_compiler_static_GCJ='-static'
39813 + case $host_os in
39814 + aix*)
39815 + # All AIX code is PIC.
39816 + if test "$host_cpu" = ia64; then
39817 + # AIX 5 now supports IA64 processor
39818 + lt_prog_compiler_static_GCJ='-Bstatic'
39819 + fi
39820 + ;;
39822 + amigaos*)
39823 + # FIXME: we need at least 68020 code to build shared libraries, but
39824 + # adding the `-m68020' flag to GCC prevents building anything better,
39825 + # like `-m68040'.
39826 + lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
39827 + ;;
39829 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39830 + # PIC is the default for these OSes.
39831 + ;;
39833 + mingw* | pw32* | os2*)
39834 + # This hack is so that the source file can tell whether it is being
39835 + # built for inclusion in a dll (and should export symbols for example).
39836 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
39837 + ;;
39839 + darwin* | rhapsody*)
39840 + # PIC is the default on this platform
39841 + # Common symbols not allowed in MH_DYLIB files
39842 + lt_prog_compiler_pic_GCJ='-fno-common'
39843 + ;;
39845 + interix3*)
39846 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39847 + # Instead, we relocate shared libraries at runtime.
39848 + ;;
39850 + msdosdjgpp*)
39851 + # Just because we use GCC doesn't mean we suddenly get shared libraries
39852 + # on systems that don't support them.
39853 + lt_prog_compiler_can_build_shared_GCJ=no
39854 + enable_shared=no
39855 + ;;
39857 + sysv4*MP*)
39858 + if test -d /usr/nec; then
39859 + lt_prog_compiler_pic_GCJ=-Kconform_pic
39860 + fi
39861 + ;;
39863 + hpux*)
39864 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39865 + # not for PA HP-UX.
39866 + case $host_cpu in
39867 + hppa*64*|ia64*)
39868 + # +Z the default
39869 + ;;
39870 + *)
39871 + lt_prog_compiler_pic_GCJ='-fPIC'
39872 + ;;
39873 + esac
39874 + ;;
39876 + *)
39877 + lt_prog_compiler_pic_GCJ='-fPIC'
39878 + ;;
39879 + esac
39880 + else
39881 + # PORTME Check for flag to pass linker flags through the system compiler.
39882 + case $host_os in
39883 + aix*)
39884 + lt_prog_compiler_wl_GCJ='-Wl,'
39885 + if test "$host_cpu" = ia64; then
39886 + # AIX 5 now supports IA64 processor
39887 + lt_prog_compiler_static_GCJ='-Bstatic'
39888 + else
39889 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
39890 + fi
39891 + ;;
39892 + darwin*)
39893 + # PIC is the default on this platform
39894 + # Common symbols not allowed in MH_DYLIB files
39895 + case $cc_basename in
39896 + xlc*)
39897 + lt_prog_compiler_pic_GCJ='-qnocommon'
39898 + lt_prog_compiler_wl_GCJ='-Wl,'
39899 + ;;
39900 + esac
39901 + ;;
39903 + mingw* | pw32* | os2*)
39904 + # This hack is so that the source file can tell whether it is being
39905 + # built for inclusion in a dll (and should export symbols for example).
39906 + lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
39907 + ;;
39909 + hpux9* | hpux10* | hpux11*)
39910 + lt_prog_compiler_wl_GCJ='-Wl,'
39911 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
39912 + # not for PA HP-UX.
39913 + case $host_cpu in
39914 + hppa*64*|ia64*)
39915 + # +Z the default
39916 + ;;
39917 + *)
39918 + lt_prog_compiler_pic_GCJ='+Z'
39919 + ;;
39920 + esac
39921 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
39922 + lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
39923 + ;;
39925 + irix5* | irix6* | nonstopux*)
39926 + lt_prog_compiler_wl_GCJ='-Wl,'
39927 + # PIC (with -KPIC) is the default.
39928 + lt_prog_compiler_static_GCJ='-non_shared'
39929 + ;;
39931 + newsos6)
39932 + lt_prog_compiler_pic_GCJ='-KPIC'
39933 + lt_prog_compiler_static_GCJ='-Bstatic'
39934 + ;;
39936 + linux*)
39937 + case $cc_basename in
39938 + icc* | ecc*)
39939 + lt_prog_compiler_wl_GCJ='-Wl,'
39940 + lt_prog_compiler_pic_GCJ='-KPIC'
39941 + lt_prog_compiler_static_GCJ='-static'
39942 + ;;
39943 + pgcc* | pgf77* | pgf90* | pgf95*)
39944 + # Portland Group compilers (*not* the Pentium gcc compiler,
39945 + # which looks to be a dead project)
39946 + lt_prog_compiler_wl_GCJ='-Wl,'
39947 + lt_prog_compiler_pic_GCJ='-fpic'
39948 + lt_prog_compiler_static_GCJ='-Bstatic'
39949 + ;;
39950 + ccc*)
39951 + lt_prog_compiler_wl_GCJ='-Wl,'
39952 + # All Alpha code is PIC.
39953 + lt_prog_compiler_static_GCJ='-non_shared'
39954 + ;;
39955 + esac
39956 + ;;
39958 + osf3* | osf4* | osf5*)
39959 + lt_prog_compiler_wl_GCJ='-Wl,'
39960 + # All OSF/1 code is PIC.
39961 + lt_prog_compiler_static_GCJ='-non_shared'
39962 + ;;
39964 + solaris*)
39965 + lt_prog_compiler_pic_GCJ='-KPIC'
39966 + lt_prog_compiler_static_GCJ='-Bstatic'
39967 + case $cc_basename in
39968 + f77* | f90* | f95*)
39969 + lt_prog_compiler_wl_GCJ='-Qoption ld ';;
39970 + *)
39971 + lt_prog_compiler_wl_GCJ='-Wl,';;
39972 + esac
39973 + ;;
39975 + sunos4*)
39976 + lt_prog_compiler_wl_GCJ='-Qoption ld '
39977 + lt_prog_compiler_pic_GCJ='-PIC'
39978 + lt_prog_compiler_static_GCJ='-Bstatic'
39979 + ;;
39981 + sysv4 | sysv4.2uw2* | sysv4.3*)
39982 + lt_prog_compiler_wl_GCJ='-Wl,'
39983 + lt_prog_compiler_pic_GCJ='-KPIC'
39984 + lt_prog_compiler_static_GCJ='-Bstatic'
39985 + ;;
39987 + sysv4*MP*)
39988 + if test -d /usr/nec ;then
39989 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
39990 + lt_prog_compiler_static_GCJ='-Bstatic'
39991 + fi
39992 + ;;
39994 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
39995 + lt_prog_compiler_wl_GCJ='-Wl,'
39996 + lt_prog_compiler_pic_GCJ='-KPIC'
39997 + lt_prog_compiler_static_GCJ='-Bstatic'
39998 + ;;
40000 + unicos*)
40001 + lt_prog_compiler_wl_GCJ='-Wl,'
40002 + lt_prog_compiler_can_build_shared_GCJ=no
40003 + ;;
40005 + uts4*)
40006 + lt_prog_compiler_pic_GCJ='-pic'
40007 + lt_prog_compiler_static_GCJ='-Bstatic'
40008 + ;;
40010 + *)
40011 + lt_prog_compiler_can_build_shared_GCJ=no
40012 + ;;
40013 + esac
40014 + fi
40016 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
40017 +echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
40020 +# Check to make sure the PIC flag actually works.
40022 +if test -n "$lt_prog_compiler_pic_GCJ"; then
40024 +echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
40025 +echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
40026 +if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
40027 + echo $ECHO_N "(cached) $ECHO_C" >&6
40028 +else
40029 + lt_prog_compiler_pic_works_GCJ=no
40030 + ac_outfile=conftest.$ac_objext
40031 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40032 + lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
40033 + # Insert the option either (1) after the last *FLAGS variable, or
40034 + # (2) before a word containing "conftest.", or (3) at the end.
40035 + # Note that $ac_compile itself does not contain backslashes and begins
40036 + # with a dollar sign (not a hyphen), so the echo should work correctly.
40037 + # The option is referenced via a variable to avoid confusing sed.
40038 + lt_compile=`echo "$ac_compile" | $SED \
40039 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40040 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40041 + -e 's:$: $lt_compiler_flag:'`
40042 + (eval echo "\"\$as_me:17512: $lt_compile\"" >&5)
40043 + (eval "$lt_compile" 2>conftest.err)
40044 + ac_status=$?
40045 + cat conftest.err >&5
40046 + echo "$as_me:17516: \$? = $ac_status" >&5
40047 + if (exit $ac_status) && test -s "$ac_outfile"; then
40048 + # The compiler can only warn and ignore the option if not recognized
40049 + # So say no if there are warnings other than the usual output.
40050 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
40051 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40052 + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
40053 + lt_prog_compiler_pic_works_GCJ=yes
40054 + fi
40055 + fi
40056 + $rm conftest*
40059 +echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
40060 +echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
40062 +if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
40063 + case $lt_prog_compiler_pic_GCJ in
40064 + "" | " "*) ;;
40065 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
40066 + esac
40067 +else
40068 + lt_prog_compiler_pic_GCJ=
40069 + lt_prog_compiler_can_build_shared_GCJ=no
40073 +case $host_os in
40074 + # For platforms which do not support PIC, -DPIC is meaningless:
40075 + *djgpp*)
40076 + lt_prog_compiler_pic_GCJ=
40077 + ;;
40078 + *)
40079 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
40080 + ;;
40081 +esac
40084 +# Check to make sure the static flag actually works.
40086 +wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
40087 +echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
40088 +echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
40089 +if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
40090 + echo $ECHO_N "(cached) $ECHO_C" >&6
40091 +else
40092 + lt_prog_compiler_static_works_GCJ=no
40093 + save_LDFLAGS="$LDFLAGS"
40094 + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
40095 + printf "$lt_simple_link_test_code" > conftest.$ac_ext
40096 + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
40097 + # The linker can only warn and ignore the option if not recognized
40098 + # So say no if there are warnings
40099 + if test -s conftest.err; then
40100 + # Append any errors to the config.log.
40101 + cat conftest.err 1>&5
40102 + $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
40103 + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
40104 + if diff conftest.exp conftest.er2 >/dev/null; then
40105 + lt_prog_compiler_static_works_GCJ=yes
40106 + fi
40107 + else
40108 + lt_prog_compiler_static_works_GCJ=yes
40109 + fi
40110 + fi
40111 + $rm conftest*
40112 + LDFLAGS="$save_LDFLAGS"
40115 +echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
40116 +echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
40118 +if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
40120 +else
40121 + lt_prog_compiler_static_GCJ=
40125 +echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
40126 +echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
40127 +if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
40128 + echo $ECHO_N "(cached) $ECHO_C" >&6
40129 +else
40130 + lt_cv_prog_compiler_c_o_GCJ=no
40131 + $rm -r conftest 2>/dev/null
40132 + mkdir conftest
40133 + cd conftest
40134 + mkdir out
40135 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
40137 + lt_compiler_flag="-o out/conftest2.$ac_objext"
40138 + # Insert the option either (1) after the last *FLAGS variable, or
40139 + # (2) before a word containing "conftest.", or (3) at the end.
40140 + # Note that $ac_compile itself does not contain backslashes and begins
40141 + # with a dollar sign (not a hyphen), so the echo should work correctly.
40142 + lt_compile=`echo "$ac_compile" | $SED \
40143 + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
40144 + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
40145 + -e 's:$: $lt_compiler_flag:'`
40146 + (eval echo "\"\$as_me:17616: $lt_compile\"" >&5)
40147 + (eval "$lt_compile" 2>out/conftest.err)
40148 + ac_status=$?
40149 + cat out/conftest.err >&5
40150 + echo "$as_me:17620: \$? = $ac_status" >&5
40151 + if (exit $ac_status) && test -s out/conftest2.$ac_objext
40152 + then
40153 + # The compiler can only warn and ignore the option if not recognized
40154 + # So say no if there are warnings
40155 + $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
40156 + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
40157 + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
40158 + lt_cv_prog_compiler_c_o_GCJ=yes
40159 + fi
40160 + fi
40161 + chmod u+w . 2>&5
40162 + $rm conftest*
40163 + # SGI C++ compiler will create directory out/ii_files/ for
40164 + # template instantiation
40165 + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
40166 + $rm out/* && rmdir out
40167 + cd ..
40168 + rmdir conftest
40169 + $rm conftest*
40172 +echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
40173 +echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
40176 +hard_links="nottested"
40177 +if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
40178 + # do not overwrite the value of need_locks provided by the user
40179 + echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
40180 +echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
40181 + hard_links=yes
40182 + $rm conftest*
40183 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
40184 + touch conftest.a
40185 + ln conftest.a conftest.b 2>&5 || hard_links=no
40186 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
40187 + echo "$as_me:$LINENO: result: $hard_links" >&5
40188 +echo "${ECHO_T}$hard_links" >&6
40189 + if test "$hard_links" = no; then
40190 + { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
40191 +echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
40192 + need_locks=warn
40193 + fi
40194 +else
40195 + need_locks=no
40198 +echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
40199 +echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
40201 + runpath_var=
40202 + allow_undefined_flag_GCJ=
40203 + enable_shared_with_static_runtimes_GCJ=no
40204 + archive_cmds_GCJ=
40205 + archive_expsym_cmds_GCJ=
40206 + old_archive_From_new_cmds_GCJ=
40207 + old_archive_from_expsyms_cmds_GCJ=
40208 + export_dynamic_flag_spec_GCJ=
40209 + whole_archive_flag_spec_GCJ=
40210 + thread_safe_flag_spec_GCJ=
40211 + hardcode_libdir_flag_spec_GCJ=
40212 + hardcode_libdir_flag_spec_ld_GCJ=
40213 + hardcode_libdir_separator_GCJ=
40214 + hardcode_direct_GCJ=no
40215 + hardcode_minus_L_GCJ=no
40216 + hardcode_shlibpath_var_GCJ=unsupported
40217 + link_all_deplibs_GCJ=unknown
40218 + hardcode_automatic_GCJ=no
40219 + module_cmds_GCJ=
40220 + module_expsym_cmds_GCJ=
40221 + always_export_symbols_GCJ=no
40222 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
40223 + # include_expsyms should be a list of space-separated symbols to be *always*
40224 + # included in the symbol list
40225 + include_expsyms_GCJ=
40226 + # exclude_expsyms can be an extended regexp of symbols to exclude
40227 + # it will be wrapped by ` (' and `)$', so one must not match beginning or
40228 + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
40229 + # as well as any symbol that contains `d'.
40230 + exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
40231 + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
40232 + # platforms (ab)use it in PIC code, but their linkers get confused if
40233 + # the symbol is explicitly referenced. Since portable code cannot
40234 + # rely on this symbol name, it's probably fine to never include it in
40235 + # preloaded symbol tables.
40236 + extract_expsyms_cmds=
40237 + # Just being paranoid about ensuring that cc_basename is set.
40238 + for cc_temp in $compiler""; do
40239 + case $cc_temp in
40240 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40241 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40242 + \-*) ;;
40243 + *) break;;
40244 + esac
40245 +done
40246 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
40248 + case $host_os in
40249 + cygwin* | mingw* | pw32*)
40250 + # FIXME: the MSVC++ port hasn't been tested in a loooong time
40251 + # When not using gcc, we currently assume that we are using
40252 + # Microsoft Visual C++.
40253 + if test "$GCC" != yes; then
40254 + with_gnu_ld=no
40255 + fi
40256 + ;;
40257 + interix*)
40258 + # we just hope/assume this is gcc and not c89 (= MSVC++)
40259 + with_gnu_ld=yes
40260 + ;;
40261 + openbsd*)
40262 + with_gnu_ld=no
40263 + ;;
40264 + esac
40266 + ld_shlibs_GCJ=yes
40267 + if test "$with_gnu_ld" = yes; then
40268 + # If archive_cmds runs LD, not CC, wlarc should be empty
40269 + wlarc='${wl}'
40271 + # Set some defaults for GNU ld with shared library support. These
40272 + # are reset later if shared libraries are not supported. Putting them
40273 + # here allows them to be overridden if necessary.
40274 + runpath_var=LD_RUN_PATH
40275 + hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
40276 + export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
40277 + # ancient GNU ld didn't support --whole-archive et. al.
40278 + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
40279 + whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
40280 + else
40281 + whole_archive_flag_spec_GCJ=
40282 + fi
40283 + supports_anon_versioning=no
40284 + case `$LD -v 2>/dev/null` in
40285 + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
40286 + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
40287 + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
40288 + *\ 2.11.*) ;; # other 2.11 versions
40289 + *) supports_anon_versioning=yes ;;
40290 + esac
40292 + # See if GNU ld supports shared libraries.
40293 + case $host_os in
40294 + aix3* | aix4* | aix5*)
40295 + # On AIX/PPC, the GNU linker is very broken
40296 + if test "$host_cpu" != ia64; then
40297 + ld_shlibs_GCJ=no
40298 + cat <<EOF 1>&2
40300 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
40301 +*** to be unable to reliably create shared libraries on AIX.
40302 +*** Therefore, libtool is disabling shared libraries support. If you
40303 +*** really care for shared libraries, you may want to modify your PATH
40304 +*** so that a non-GNU linker is found, and then restart.
40306 +EOF
40307 + fi
40308 + ;;
40310 + amigaos*)
40311 + 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)'
40312 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
40313 + hardcode_minus_L_GCJ=yes
40315 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
40316 + # that the semantics of dynamic libraries on AmigaOS, at least up
40317 + # to version 4, is to share data among multiple programs linked
40318 + # with the same dynamic library. Since this doesn't match the
40319 + # behavior of shared libraries on other platforms, we can't use
40320 + # them.
40321 + ld_shlibs_GCJ=no
40322 + ;;
40324 + beos*)
40325 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
40326 + allow_undefined_flag_GCJ=unsupported
40327 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
40328 + # support --undefined. This deserves some investigation. FIXME
40329 + archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40330 + else
40331 + ld_shlibs_GCJ=no
40332 + fi
40333 + ;;
40335 + cygwin* | mingw* | pw32*)
40336 + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
40337 + # as there is no search path for DLLs.
40338 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
40339 + allow_undefined_flag_GCJ=unsupported
40340 + always_export_symbols_GCJ=no
40341 + enable_shared_with_static_runtimes_GCJ=yes
40342 + export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
40344 + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
40345 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
40346 + # If the export-symbols file already is a .def file (1st line
40347 + # is EXPORTS), use it as is; otherwise, prepend...
40348 + archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
40349 + cp $export_symbols $output_objdir/$soname.def;
40350 + else
40351 + echo EXPORTS > $output_objdir/$soname.def;
40352 + cat $export_symbols >> $output_objdir/$soname.def;
40353 + fi~
40354 + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
40355 + else
40356 + ld_shlibs_GCJ=no
40357 + fi
40358 + ;;
40360 + interix3*)
40361 + hardcode_direct_GCJ=no
40362 + hardcode_shlibpath_var_GCJ=no
40363 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
40364 + export_dynamic_flag_spec_GCJ='${wl}-E'
40365 + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
40366 + # Instead, shared libraries are loaded at an image base (0x10000000 by
40367 + # default) and relocated if they conflict, which is a slow very memory
40368 + # consuming and fragmenting process. To avoid this, we pick a random,
40369 + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
40370 + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
40371 + archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
40372 + archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
40373 + ;;
40375 + linux*)
40376 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
40377 + tmp_addflag=
40378 + case $cc_basename,$host_cpu in
40379 + pgcc*) # Portland Group C compiler
40380 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
40381 + tmp_addflag=' $pic_flag'
40382 + ;;
40383 + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
40384 + whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
40385 + tmp_addflag=' $pic_flag -Mnomain' ;;
40386 + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
40387 + tmp_addflag=' -i_dynamic' ;;
40388 + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
40389 + tmp_addflag=' -i_dynamic -nofor_main' ;;
40390 + ifc* | ifort*) # Intel Fortran compiler
40391 + tmp_addflag=' -nofor_main' ;;
40392 + esac
40393 + archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40395 + if test $supports_anon_versioning = yes; then
40396 + archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
40397 + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
40398 + $echo "local: *; };" >> $output_objdir/$libname.ver~
40399 + $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
40400 + fi
40401 + else
40402 + ld_shlibs_GCJ=no
40403 + fi
40404 + ;;
40406 + netbsd*)
40407 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
40408 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
40409 + wlarc=
40410 + else
40411 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40412 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40413 + fi
40414 + ;;
40416 + solaris*)
40417 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
40418 + ld_shlibs_GCJ=no
40419 + cat <<EOF 1>&2
40421 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
40422 +*** create shared libraries on Solaris systems. Therefore, libtool
40423 +*** is disabling shared libraries support. We urge you to upgrade GNU
40424 +*** binutils to release 2.9.1 or newer. Another option is to modify
40425 +*** your PATH or compiler configuration so that the native linker is
40426 +*** used, and then restart.
40428 +EOF
40429 + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
40430 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40431 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40432 + else
40433 + ld_shlibs_GCJ=no
40434 + fi
40435 + ;;
40437 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
40438 + case `$LD -v 2>&1` in
40439 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
40440 + ld_shlibs_GCJ=no
40441 + cat <<_LT_EOF 1>&2
40443 +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
40444 +*** reliably create shared libraries on SCO systems. Therefore, libtool
40445 +*** is disabling shared libraries support. We urge you to upgrade GNU
40446 +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
40447 +*** your PATH or compiler configuration so that the native linker is
40448 +*** used, and then restart.
40450 +_LT_EOF
40451 + ;;
40452 + *)
40453 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
40454 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
40455 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
40456 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
40457 + else
40458 + ld_shlibs_GCJ=no
40459 + fi
40460 + ;;
40461 + esac
40462 + ;;
40464 + sunos4*)
40465 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40466 + wlarc=
40467 + hardcode_direct_GCJ=yes
40468 + hardcode_shlibpath_var_GCJ=no
40469 + ;;
40471 + *)
40472 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
40473 + archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
40474 + archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
40475 + else
40476 + ld_shlibs_GCJ=no
40477 + fi
40478 + ;;
40479 + esac
40481 + if test "$ld_shlibs_GCJ" = no; then
40482 + runpath_var=
40483 + hardcode_libdir_flag_spec_GCJ=
40484 + export_dynamic_flag_spec_GCJ=
40485 + whole_archive_flag_spec_GCJ=
40486 + fi
40487 + else
40488 + # PORTME fill in a description of your system's linker (not GNU ld)
40489 + case $host_os in
40490 + aix3*)
40491 + allow_undefined_flag_GCJ=unsupported
40492 + always_export_symbols_GCJ=yes
40493 + 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'
40494 + # Note: this linker hardcodes the directories in LIBPATH if there
40495 + # are no directories specified by -L.
40496 + hardcode_minus_L_GCJ=yes
40497 + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
40498 + # Neither direct hardcoding nor static linking is supported with a
40499 + # broken collect2.
40500 + hardcode_direct_GCJ=unsupported
40501 + fi
40502 + ;;
40504 + aix4* | aix5*)
40505 + if test "$host_cpu" = ia64; then
40506 + # On IA64, the linker does run time linking by default, so we don't
40507 + # have to do anything special.
40508 + aix_use_runtimelinking=no
40509 + exp_sym_flag='-Bexport'
40510 + no_entry_flag=""
40511 + else
40512 + # If we're using GNU nm, then we don't want the "-C" option.
40513 + # -C means demangle to AIX nm, but means don't demangle with GNU nm
40514 + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
40515 + 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'
40516 + else
40517 + 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'
40518 + fi
40519 + aix_use_runtimelinking=no
40521 + # Test if we are trying to use run time linking or normal
40522 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
40523 + # need to do runtime linking.
40524 + case $host_os in aix4.[23]|aix4.[23].*|aix5*)
40525 + for ld_flag in $LDFLAGS; do
40526 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
40527 + aix_use_runtimelinking=yes
40528 + break
40529 + fi
40530 + done
40531 + ;;
40532 + esac
40534 + exp_sym_flag='-bexport'
40535 + no_entry_flag='-bnoentry'
40536 + fi
40538 + # When large executables or shared objects are built, AIX ld can
40539 + # have problems creating the table of contents. If linking a library
40540 + # or program results in "error TOC overflow" add -mminimal-toc to
40541 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
40542 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
40544 + archive_cmds_GCJ=''
40545 + hardcode_direct_GCJ=yes
40546 + hardcode_libdir_separator_GCJ=':'
40547 + link_all_deplibs_GCJ=yes
40549 + if test "$GCC" = yes; then
40550 + case $host_os in aix4.[012]|aix4.[012].*)
40551 + # We only want to do this on AIX 4.2 and lower, the check
40552 + # below for broken collect2 doesn't work under 4.3+
40553 + collect2name=`${CC} -print-prog-name=collect2`
40554 + if test -f "$collect2name" && \
40555 + strings "$collect2name" | grep resolve_lib_name >/dev/null
40556 + then
40557 + # We have reworked collect2
40558 + hardcode_direct_GCJ=yes
40559 + else
40560 + # We have old collect2
40561 + hardcode_direct_GCJ=unsupported
40562 + # It fails to find uninstalled libraries when the uninstalled
40563 + # path is not listed in the libpath. Setting hardcode_minus_L
40564 + # to unsupported forces relinking
40565 + hardcode_minus_L_GCJ=yes
40566 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
40567 + hardcode_libdir_separator_GCJ=
40568 + fi
40569 + ;;
40570 + esac
40571 + shared_flag='-shared'
40572 + if test "$aix_use_runtimelinking" = yes; then
40573 + shared_flag="$shared_flag "'${wl}-G'
40574 + fi
40575 + else
40576 + # not using gcc
40577 + if test "$host_cpu" = ia64; then
40578 + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
40579 + # chokes on -Wl,-G. The following line is correct:
40580 + shared_flag='-G'
40581 + else
40582 + if test "$aix_use_runtimelinking" = yes; then
40583 + shared_flag='${wl}-G'
40584 + else
40585 + shared_flag='${wl}-bM:SRE'
40586 + fi
40587 + fi
40588 + fi
40590 + # It seems that -bexpall does not export symbols beginning with
40591 + # underscore (_), so it is better to generate a list of symbols to export.
40592 + always_export_symbols_GCJ=yes
40593 + if test "$aix_use_runtimelinking" = yes; then
40594 + # Warning - without using the other runtime loading flags (-brtl),
40595 + # -berok will link without error, but may produce a broken library.
40596 + allow_undefined_flag_GCJ='-berok'
40597 + # Determine the default libpath from the value encoded in an empty executable.
40598 + cat >conftest.$ac_ext <<_ACEOF
40599 +/* confdefs.h. */
40600 +_ACEOF
40601 +cat confdefs.h >>conftest.$ac_ext
40602 +cat >>conftest.$ac_ext <<_ACEOF
40603 +/* end confdefs.h. */
40605 +int
40606 +main ()
40610 + return 0;
40612 +_ACEOF
40613 +rm -f conftest.$ac_objext conftest$ac_exeext
40614 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40615 + (eval $ac_link) 2>conftest.er1
40616 + ac_status=$?
40617 + grep -v '^ *+' conftest.er1 >conftest.err
40618 + rm -f conftest.er1
40619 + cat conftest.err >&5
40620 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40621 + (exit $ac_status); } &&
40622 + { ac_try='test -z "$ac_c_werror_flag"
40623 + || test ! -s conftest.err'
40624 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40625 + (eval $ac_try) 2>&5
40626 + ac_status=$?
40627 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40628 + (exit $ac_status); }; } &&
40629 + { ac_try='test -s conftest$ac_exeext'
40630 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40631 + (eval $ac_try) 2>&5
40632 + ac_status=$?
40633 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40634 + (exit $ac_status); }; }; then
40636 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
40637 +}'`
40638 +# Check for a 64-bit object if we didn't find anything.
40639 +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; }
40640 +}'`; fi
40641 +else
40642 + echo "$as_me: failed program was:" >&5
40643 +sed 's/^/| /' conftest.$ac_ext >&5
40646 +rm -f conftest.err conftest.$ac_objext \
40647 + conftest$ac_exeext conftest.$ac_ext
40648 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
40650 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
40651 + archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
40652 + else
40653 + if test "$host_cpu" = ia64; then
40654 + hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
40655 + allow_undefined_flag_GCJ="-z nodefs"
40656 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
40657 + else
40658 + # Determine the default libpath from the value encoded in an empty executable.
40659 + cat >conftest.$ac_ext <<_ACEOF
40660 +/* confdefs.h. */
40661 +_ACEOF
40662 +cat confdefs.h >>conftest.$ac_ext
40663 +cat >>conftest.$ac_ext <<_ACEOF
40664 +/* end confdefs.h. */
40666 +int
40667 +main ()
40671 + return 0;
40673 +_ACEOF
40674 +rm -f conftest.$ac_objext conftest$ac_exeext
40675 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
40676 + (eval $ac_link) 2>conftest.er1
40677 + ac_status=$?
40678 + grep -v '^ *+' conftest.er1 >conftest.err
40679 + rm -f conftest.er1
40680 + cat conftest.err >&5
40681 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40682 + (exit $ac_status); } &&
40683 + { ac_try='test -z "$ac_c_werror_flag"
40684 + || test ! -s conftest.err'
40685 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40686 + (eval $ac_try) 2>&5
40687 + ac_status=$?
40688 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 + (exit $ac_status); }; } &&
40690 + { ac_try='test -s conftest$ac_exeext'
40691 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
40692 + (eval $ac_try) 2>&5
40693 + ac_status=$?
40694 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
40695 + (exit $ac_status); }; }; then
40697 +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
40698 +}'`
40699 +# Check for a 64-bit object if we didn't find anything.
40700 +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; }
40701 +}'`; fi
40702 +else
40703 + echo "$as_me: failed program was:" >&5
40704 +sed 's/^/| /' conftest.$ac_ext >&5
40707 +rm -f conftest.err conftest.$ac_objext \
40708 + conftest$ac_exeext conftest.$ac_ext
40709 +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
40711 + hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
40712 + # Warning - without using the other run time loading flags,
40713 + # -berok will link without error, but may produce a broken library.
40714 + no_undefined_flag_GCJ=' ${wl}-bernotok'
40715 + allow_undefined_flag_GCJ=' ${wl}-berok'
40716 + # Exported symbols can be pulled into shared objects from archives
40717 + whole_archive_flag_spec_GCJ='$convenience'
40718 + archive_cmds_need_lc_GCJ=yes
40719 + # This is similar to how AIX traditionally builds its shared libraries.
40720 + archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
40721 + fi
40722 + fi
40723 + ;;
40725 + amigaos*)
40726 + 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)'
40727 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
40728 + hardcode_minus_L_GCJ=yes
40729 + # see comment about different semantics on the GNU ld section
40730 + ld_shlibs_GCJ=no
40731 + ;;
40733 + bsdi[45]*)
40734 + export_dynamic_flag_spec_GCJ=-rdynamic
40735 + ;;
40737 + cygwin* | mingw* | pw32*)
40738 + # When not using gcc, we currently assume that we are using
40739 + # Microsoft Visual C++.
40740 + # hardcode_libdir_flag_spec is actually meaningless, as there is
40741 + # no search path for DLLs.
40742 + hardcode_libdir_flag_spec_GCJ=' '
40743 + allow_undefined_flag_GCJ=unsupported
40744 + # Tell ltmain to make .lib files, not .a files.
40745 + libext=lib
40746 + # Tell ltmain to make .dll files, not .so files.
40747 + shrext_cmds=".dll"
40748 + # FIXME: Setting linknames here is a bad hack.
40749 + archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
40750 + # The linker will automatically build a .lib file if we build a DLL.
40751 + old_archive_From_new_cmds_GCJ='true'
40752 + # FIXME: Should let the user specify the lib program.
40753 + old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
40754 + fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
40755 + enable_shared_with_static_runtimes_GCJ=yes
40756 + ;;
40758 + darwin* | rhapsody*)
40759 + case $host_os in
40760 + rhapsody* | darwin1.[012])
40761 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
40762 + ;;
40763 + *) # Darwin 1.3 on
40764 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
40765 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
40766 + else
40767 + case ${MACOSX_DEPLOYMENT_TARGET} in
40768 + 10.[012])
40769 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
40770 + ;;
40771 + 10.*)
40772 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
40773 + ;;
40774 + esac
40775 + fi
40776 + ;;
40777 + esac
40778 + archive_cmds_need_lc_GCJ=no
40779 + hardcode_direct_GCJ=no
40780 + hardcode_automatic_GCJ=yes
40781 + hardcode_shlibpath_var_GCJ=unsupported
40782 + whole_archive_flag_spec_GCJ=''
40783 + link_all_deplibs_GCJ=yes
40784 + if test "$GCC" = yes ; then
40785 + output_verbose_link_cmd='echo'
40786 + archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
40787 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
40788 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
40789 + archive_expsym_cmds_GCJ='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}'
40790 + 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}'
40791 + else
40792 + case $cc_basename in
40793 + xlc*)
40794 + output_verbose_link_cmd='echo'
40795 + archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
40796 + module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
40797 + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
40798 + archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
40799 + 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}'
40800 + ;;
40801 + *)
40802 + ld_shlibs_GCJ=no
40803 + ;;
40804 + esac
40805 + fi
40806 + ;;
40808 + dgux*)
40809 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40810 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
40811 + hardcode_shlibpath_var_GCJ=no
40812 + ;;
40814 + freebsd1*)
40815 + ld_shlibs_GCJ=no
40816 + ;;
40818 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
40819 + # support. Future versions do this automatically, but an explicit c++rt0.o
40820 + # does not break anything, and helps significantly (at the cost of a little
40821 + # extra space).
40822 + freebsd2.2*)
40823 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
40824 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
40825 + hardcode_direct_GCJ=yes
40826 + hardcode_shlibpath_var_GCJ=no
40827 + ;;
40829 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
40830 + freebsd2*)
40831 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40832 + hardcode_direct_GCJ=yes
40833 + hardcode_minus_L_GCJ=yes
40834 + hardcode_shlibpath_var_GCJ=no
40835 + ;;
40837 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
40838 + freebsd* | kfreebsd*-gnu | dragonfly*)
40839 + archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
40840 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
40841 + hardcode_direct_GCJ=yes
40842 + hardcode_shlibpath_var_GCJ=no
40843 + ;;
40845 + hpux9*)
40846 + if test "$GCC" = yes; then
40847 + 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'
40848 + else
40849 + 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'
40850 + fi
40851 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
40852 + hardcode_libdir_separator_GCJ=:
40853 + hardcode_direct_GCJ=yes
40855 + # hardcode_minus_L: Not really in the search PATH,
40856 + # but as the default location of the library.
40857 + hardcode_minus_L_GCJ=yes
40858 + export_dynamic_flag_spec_GCJ='${wl}-E'
40859 + ;;
40861 + hpux10*)
40862 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
40863 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40864 + else
40865 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
40866 + fi
40867 + if test "$with_gnu_ld" = no; then
40868 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
40869 + hardcode_libdir_separator_GCJ=:
40871 + hardcode_direct_GCJ=yes
40872 + export_dynamic_flag_spec_GCJ='${wl}-E'
40874 + # hardcode_minus_L: Not really in the search PATH,
40875 + # but as the default location of the library.
40876 + hardcode_minus_L_GCJ=yes
40877 + fi
40878 + ;;
40880 + hpux11*)
40881 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
40882 + case $host_cpu in
40883 + hppa*64*)
40884 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40885 + ;;
40886 + ia64*)
40887 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40888 + ;;
40889 + *)
40890 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40891 + ;;
40892 + esac
40893 + else
40894 + case $host_cpu in
40895 + hppa*64*)
40896 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40897 + ;;
40898 + ia64*)
40899 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40900 + ;;
40901 + *)
40902 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40903 + ;;
40904 + esac
40905 + fi
40906 + if test "$with_gnu_ld" = no; then
40907 + hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
40908 + hardcode_libdir_separator_GCJ=:
40910 + case $host_cpu in
40911 + hppa*64*|ia64*)
40912 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
40913 + hardcode_direct_GCJ=no
40914 + hardcode_shlibpath_var_GCJ=no
40915 + ;;
40916 + *)
40917 + hardcode_direct_GCJ=yes
40918 + export_dynamic_flag_spec_GCJ='${wl}-E'
40920 + # hardcode_minus_L: Not really in the search PATH,
40921 + # but as the default location of the library.
40922 + hardcode_minus_L_GCJ=yes
40923 + ;;
40924 + esac
40925 + fi
40926 + ;;
40928 + irix5* | irix6* | nonstopux*)
40929 + if test "$GCC" = yes; then
40930 + 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'
40931 + else
40932 + 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'
40933 + hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
40934 + fi
40935 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
40936 + hardcode_libdir_separator_GCJ=:
40937 + link_all_deplibs_GCJ=yes
40938 + ;;
40940 + netbsd*)
40941 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
40942 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
40943 + else
40944 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
40945 + fi
40946 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
40947 + hardcode_direct_GCJ=yes
40948 + hardcode_shlibpath_var_GCJ=no
40949 + ;;
40951 + newsos6)
40952 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
40953 + hardcode_direct_GCJ=yes
40954 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
40955 + hardcode_libdir_separator_GCJ=:
40956 + hardcode_shlibpath_var_GCJ=no
40957 + ;;
40959 + openbsd*)
40960 + hardcode_direct_GCJ=yes
40961 + hardcode_shlibpath_var_GCJ=no
40962 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
40963 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40964 + archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
40965 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
40966 + export_dynamic_flag_spec_GCJ='${wl}-E'
40967 + else
40968 + case $host_os in
40969 + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
40970 + archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40971 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
40972 + ;;
40973 + *)
40974 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40975 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
40976 + ;;
40977 + esac
40978 + fi
40979 + ;;
40981 + os2*)
40982 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
40983 + hardcode_minus_L_GCJ=yes
40984 + allow_undefined_flag_GCJ=unsupported
40985 + 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'
40986 + old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
40987 + ;;
40989 + osf3*)
40990 + if test "$GCC" = yes; then
40991 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
40992 + 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'
40993 + else
40994 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
40995 + 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'
40996 + fi
40997 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
40998 + hardcode_libdir_separator_GCJ=:
40999 + ;;
41001 + osf4* | osf5*) # as osf3* with the addition of -msym flag
41002 + if test "$GCC" = yes; then
41003 + allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
41004 + 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'
41005 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
41006 + else
41007 + allow_undefined_flag_GCJ=' -expect_unresolved \*'
41008 + 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'
41009 + 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~
41010 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
41012 + # Both c and cxx compiler support -rpath directly
41013 + hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
41014 + fi
41015 + hardcode_libdir_separator_GCJ=:
41016 + ;;
41018 + solaris*)
41019 + no_undefined_flag_GCJ=' -z text'
41020 + if test "$GCC" = yes; then
41021 + wlarc='${wl}'
41022 + archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
41023 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41024 + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
41025 + else
41026 + wlarc=''
41027 + archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
41028 + archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
41029 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
41030 + fi
41031 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
41032 + hardcode_shlibpath_var_GCJ=no
41033 + case $host_os in
41034 + solaris2.[0-5] | solaris2.[0-5].*) ;;
41035 + *)
41036 + # The compiler driver will combine linker options so we
41037 + # cannot just pass the convience library names through
41038 + # without $wl, iff we do not link with $LD.
41039 + # Luckily, gcc supports the same syntax we need for Sun Studio.
41040 + # Supported since Solaris 2.6 (maybe 2.5.1?)
41041 + case $wlarc in
41042 + '')
41043 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
41044 + *)
41045 + whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
41046 + esac ;;
41047 + esac
41048 + link_all_deplibs_GCJ=yes
41049 + ;;
41051 + sunos4*)
41052 + if test "x$host_vendor" = xsequent; then
41053 + # Use $CC to link under sequent, because it throws in some extra .o
41054 + # files that make .init and .fini sections work.
41055 + archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
41056 + else
41057 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
41058 + fi
41059 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
41060 + hardcode_direct_GCJ=yes
41061 + hardcode_minus_L_GCJ=yes
41062 + hardcode_shlibpath_var_GCJ=no
41063 + ;;
41065 + sysv4)
41066 + case $host_vendor in
41067 + sni)
41068 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41069 + hardcode_direct_GCJ=yes # is this really true???
41070 + ;;
41071 + siemens)
41072 + ## LD is ld it makes a PLAMLIB
41073 + ## CC just makes a GrossModule.
41074 + archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
41075 + reload_cmds_GCJ='$CC -r -o $output$reload_objs'
41076 + hardcode_direct_GCJ=no
41077 + ;;
41078 + motorola)
41079 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41080 + hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
41081 + ;;
41082 + esac
41083 + runpath_var='LD_RUN_PATH'
41084 + hardcode_shlibpath_var_GCJ=no
41085 + ;;
41087 + sysv4.3*)
41088 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41089 + hardcode_shlibpath_var_GCJ=no
41090 + export_dynamic_flag_spec_GCJ='-Bexport'
41091 + ;;
41093 + sysv4*MP*)
41094 + if test -d /usr/nec; then
41095 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41096 + hardcode_shlibpath_var_GCJ=no
41097 + runpath_var=LD_RUN_PATH
41098 + hardcode_runpath_var=yes
41099 + ld_shlibs_GCJ=yes
41100 + fi
41101 + ;;
41103 + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
41104 + no_undefined_flag_GCJ='${wl}-z,text'
41105 + archive_cmds_need_lc_GCJ=no
41106 + hardcode_shlibpath_var_GCJ=no
41107 + runpath_var='LD_RUN_PATH'
41109 + if test "$GCC" = yes; then
41110 + archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41111 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41112 + else
41113 + archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41114 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
41115 + fi
41116 + ;;
41118 + sysv5* | sco3.2v5* | sco5v6*)
41119 + # Note: We can NOT use -z defs as we might desire, because we do not
41120 + # link with -lc, and that would cause any symbols used from libc to
41121 + # always be unresolved, which means just about no library would
41122 + # ever link correctly. If we're not using GNU ld we use -z text
41123 + # though, which does catch some bad symbols but isn't as heavy-handed
41124 + # as -z defs.
41125 + no_undefined_flag_GCJ='${wl}-z,text'
41126 + allow_undefined_flag_GCJ='${wl}-z,nodefs'
41127 + archive_cmds_need_lc_GCJ=no
41128 + hardcode_shlibpath_var_GCJ=no
41129 + hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
41130 + hardcode_libdir_separator_GCJ=':'
41131 + link_all_deplibs_GCJ=yes
41132 + export_dynamic_flag_spec_GCJ='${wl}-Bexport'
41133 + runpath_var='LD_RUN_PATH'
41135 + if test "$GCC" = yes; then
41136 + archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
41137 + archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
41138 + else
41139 + archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
41140 + archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
41141 + fi
41142 + ;;
41144 + uts4*)
41145 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41146 + hardcode_libdir_flag_spec_GCJ='-L$libdir'
41147 + hardcode_shlibpath_var_GCJ=no
41148 + ;;
41150 + *)
41151 + ld_shlibs_GCJ=no
41152 + ;;
41153 + esac
41154 + fi
41156 +echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
41157 +echo "${ECHO_T}$ld_shlibs_GCJ" >&6
41158 +test "$ld_shlibs_GCJ" = no && can_build_shared=no
41161 +# Do we need to explicitly link libc?
41163 +case "x$archive_cmds_need_lc_GCJ" in
41164 +x|xyes)
41165 + # Assume -lc should be added
41166 + archive_cmds_need_lc_GCJ=yes
41168 + if test "$enable_shared" = yes && test "$GCC" = yes; then
41169 + case $archive_cmds_GCJ in
41170 + *'~'*)
41171 + # FIXME: we may have to deal with multi-command sequences.
41172 + ;;
41173 + '$CC '*)
41174 + # Test whether the compiler implicitly links with -lc since on some
41175 + # systems, -lgcc has to come before -lc. If gcc already passes -lc
41176 + # to ld, don't add -lc before -lgcc.
41177 + echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
41178 +echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
41179 + $rm conftest*
41180 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
41182 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
41183 + (eval $ac_compile) 2>&5
41184 + ac_status=$?
41185 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41186 + (exit $ac_status); } 2>conftest.err; then
41187 + soname=conftest
41188 + lib=conftest
41189 + libobjs=conftest.$ac_objext
41190 + deplibs=
41191 + wl=$lt_prog_compiler_wl_GCJ
41192 + pic_flag=$lt_prog_compiler_pic_GCJ
41193 + compiler_flags=-v
41194 + linker_flags=-v
41195 + verstring=
41196 + output_objdir=.
41197 + libname=conftest
41198 + lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
41199 + allow_undefined_flag_GCJ=
41200 + if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
41201 + (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
41202 + ac_status=$?
41203 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41204 + (exit $ac_status); }
41205 + then
41206 + archive_cmds_need_lc_GCJ=no
41207 + else
41208 + archive_cmds_need_lc_GCJ=yes
41209 + fi
41210 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
41211 + else
41212 + cat conftest.err 1>&5
41213 + fi
41214 + $rm conftest*
41215 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
41216 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
41217 + ;;
41218 + esac
41219 + fi
41220 + ;;
41221 +esac
41223 +echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
41224 +echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
41225 +library_names_spec=
41226 +libname_spec='lib$name'
41227 +soname_spec=
41228 +shrext_cmds=".so"
41229 +postinstall_cmds=
41230 +postuninstall_cmds=
41231 +finish_cmds=
41232 +finish_eval=
41233 +shlibpath_var=
41234 +shlibpath_overrides_runpath=unknown
41235 +version_type=none
41236 +dynamic_linker="$host_os ld.so"
41237 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
41238 +if test "$GCC" = yes; then
41239 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
41240 + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
41241 + # if the path contains ";" then we assume it to be the separator
41242 + # otherwise default to the standard path separator (i.e. ":") - it is
41243 + # assumed that no part of a normal pathname contains ";" but that should
41244 + # okay in the real world where ";" in dirpaths is itself problematic.
41245 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41246 + else
41247 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41248 + fi
41249 +else
41250 + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
41252 +need_lib_prefix=unknown
41253 +hardcode_into_libs=no
41255 +# when you set need_version to no, make sure it does not cause -set_version
41256 +# flags to be left without arguments
41257 +need_version=unknown
41259 +case $host_os in
41260 +aix3*)
41261 + version_type=linux
41262 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
41263 + shlibpath_var=LIBPATH
41265 + # AIX 3 has no versioning support, so we append a major version to the name.
41266 + soname_spec='${libname}${release}${shared_ext}$major'
41267 + ;;
41269 +aix4* | aix5*)
41270 + version_type=linux
41271 + need_lib_prefix=no
41272 + need_version=no
41273 + hardcode_into_libs=yes
41274 + if test "$host_cpu" = ia64; then
41275 + # AIX 5 supports IA64
41276 + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
41277 + shlibpath_var=LD_LIBRARY_PATH
41278 + else
41279 + # With GCC up to 2.95.x, collect2 would create an import file
41280 + # for dependence libraries. The import file would start with
41281 + # the line `#! .'. This would cause the generated library to
41282 + # depend on `.', always an invalid library. This was fixed in
41283 + # development snapshots of GCC prior to 3.0.
41284 + case $host_os in
41285 + aix4 | aix4.[01] | aix4.[01].*)
41286 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41287 + echo ' yes '
41288 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
41290 + else
41291 + can_build_shared=no
41292 + fi
41293 + ;;
41294 + esac
41295 + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
41296 + # soname into executable. Probably we can add versioning support to
41297 + # collect2, so additional links can be useful in future.
41298 + if test "$aix_use_runtimelinking" = yes; then
41299 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
41300 + # instead of lib<name>.a to let people know that these are not
41301 + # typical AIX shared libraries.
41302 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41303 + else
41304 + # We preserve .a as extension for shared libraries through AIX4.2
41305 + # and later when we are not doing run time linking.
41306 + library_names_spec='${libname}${release}.a $libname.a'
41307 + soname_spec='${libname}${release}${shared_ext}$major'
41308 + fi
41309 + shlibpath_var=LIBPATH
41310 + fi
41311 + ;;
41313 +amigaos*)
41314 + library_names_spec='$libname.ixlibrary $libname.a'
41315 + # Create ${libname}_ixlibrary.a entries in /sys/libs.
41316 + 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'
41317 + ;;
41319 +beos*)
41320 + library_names_spec='${libname}${shared_ext}'
41321 + dynamic_linker="$host_os ld.so"
41322 + shlibpath_var=LIBRARY_PATH
41323 + ;;
41325 +bsdi[45]*)
41326 + version_type=linux
41327 + need_version=no
41328 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41329 + soname_spec='${libname}${release}${shared_ext}$major'
41330 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
41331 + shlibpath_var=LD_LIBRARY_PATH
41332 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
41333 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
41334 + # the default ld.so.conf also contains /usr/contrib/lib and
41335 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
41336 + # libtool to hard-code these into programs
41337 + ;;
41339 +cygwin* | mingw* | pw32*)
41340 + version_type=windows
41341 + shrext_cmds=".dll"
41342 + need_version=no
41343 + need_lib_prefix=no
41345 + case $GCC,$host_os in
41346 + yes,cygwin* | yes,mingw* | yes,pw32*)
41347 + library_names_spec='$libname.dll.a'
41348 + # DLL is installed to $(libdir)/../bin by postinstall_cmds
41349 + postinstall_cmds='base_file=`basename \${file}`~
41350 + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
41351 + dldir=$destdir/`dirname \$dlpath`~
41352 + test -d \$dldir || mkdir -p \$dldir~
41353 + $install_prog $dir/$dlname \$dldir/$dlname~
41354 + chmod a+x \$dldir/$dlname'
41355 + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
41356 + dlpath=$dir/\$dldll~
41357 + $rm \$dlpath'
41358 + shlibpath_overrides_runpath=yes
41360 + case $host_os in
41361 + cygwin*)
41362 + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
41363 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41364 + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
41365 + ;;
41366 + mingw*)
41367 + # MinGW DLLs use traditional 'lib' prefix
41368 + soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41369 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
41370 + if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
41371 + # It is most probably a Windows format PATH printed by
41372 + # mingw gcc, but we are running on Cygwin. Gcc prints its search
41373 + # path with ; separators, and with drive letters. We can handle the
41374 + # drive letters (cygwin fileutils understands them), so leave them,
41375 + # especially as we might pass files found there to a mingw objdump,
41376 + # which wouldn't understand a cygwinified path. Ahh.
41377 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
41378 + else
41379 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
41380 + fi
41381 + ;;
41382 + pw32*)
41383 + # pw32 DLLs use 'pw' prefix rather than 'lib'
41384 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
41385 + ;;
41386 + esac
41387 + ;;
41389 + *)
41390 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
41391 + ;;
41392 + esac
41393 + dynamic_linker='Win32 ld.exe'
41394 + # FIXME: first we should search . and the directory the executable is in
41395 + shlibpath_var=PATH
41396 + ;;
41398 +darwin* | rhapsody*)
41399 + dynamic_linker="$host_os dyld"
41400 + version_type=darwin
41401 + need_lib_prefix=no
41402 + need_version=no
41403 + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
41404 + soname_spec='${libname}${release}${major}$shared_ext'
41405 + shlibpath_overrides_runpath=yes
41406 + shlibpath_var=DYLD_LIBRARY_PATH
41407 + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
41408 + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
41409 + if test "$GCC" = yes; then
41410 + 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"`
41411 + else
41412 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
41413 + fi
41414 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41415 + ;;
41417 +dgux*)
41418 + version_type=linux
41419 + need_lib_prefix=no
41420 + need_version=no
41421 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
41422 + soname_spec='${libname}${release}${shared_ext}$major'
41423 + shlibpath_var=LD_LIBRARY_PATH
41424 + ;;
41426 +freebsd1*)
41427 + dynamic_linker=no
41428 + ;;
41430 +kfreebsd*-gnu)
41431 + version_type=linux
41432 + need_lib_prefix=no
41433 + need_version=no
41434 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41435 + soname_spec='${libname}${release}${shared_ext}$major'
41436 + shlibpath_var=LD_LIBRARY_PATH
41437 + shlibpath_overrides_runpath=no
41438 + hardcode_into_libs=yes
41439 + dynamic_linker='GNU ld.so'
41440 + ;;
41442 +freebsd* | dragonfly*)
41443 + # DragonFly does not have aout. When/if they implement a new
41444 + # versioning mechanism, adjust this.
41445 + if test -x /usr/bin/objformat; then
41446 + objformat=`/usr/bin/objformat`
41447 + else
41448 + case $host_os in
41449 + freebsd[123]*) objformat=aout ;;
41450 + *) objformat=elf ;;
41451 + esac
41452 + fi
41453 + version_type=freebsd-$objformat
41454 + case $version_type in
41455 + freebsd-elf*)
41456 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41457 + need_version=no
41458 + need_lib_prefix=no
41459 + ;;
41460 + freebsd-*)
41461 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
41462 + need_version=yes
41463 + ;;
41464 + esac
41465 + shlibpath_var=LD_LIBRARY_PATH
41466 + case $host_os in
41467 + freebsd2*)
41468 + shlibpath_overrides_runpath=yes
41469 + ;;
41470 + freebsd3.[01]* | freebsdelf3.[01]*)
41471 + shlibpath_overrides_runpath=yes
41472 + hardcode_into_libs=yes
41473 + ;;
41474 + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
41475 + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
41476 + shlibpath_overrides_runpath=no
41477 + hardcode_into_libs=yes
41478 + ;;
41479 + freebsd*) # from 4.6 on
41480 + shlibpath_overrides_runpath=yes
41481 + hardcode_into_libs=yes
41482 + ;;
41483 + esac
41484 + ;;
41486 +gnu*)
41487 + version_type=linux
41488 + need_lib_prefix=no
41489 + need_version=no
41490 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
41491 + soname_spec='${libname}${release}${shared_ext}$major'
41492 + shlibpath_var=LD_LIBRARY_PATH
41493 + hardcode_into_libs=yes
41494 + ;;
41496 +hpux9* | hpux10* | hpux11*)
41497 + # Give a soname corresponding to the major version so that dld.sl refuses to
41498 + # link against other versions.
41499 + version_type=sunos
41500 + need_lib_prefix=no
41501 + need_version=no
41502 + case $host_cpu in
41503 + ia64*)
41504 + shrext_cmds='.so'
41505 + hardcode_into_libs=yes
41506 + dynamic_linker="$host_os dld.so"
41507 + shlibpath_var=LD_LIBRARY_PATH
41508 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41509 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41510 + soname_spec='${libname}${release}${shared_ext}$major'
41511 + if test "X$HPUX_IA64_MODE" = X32; then
41512 + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
41513 + else
41514 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41515 + fi
41516 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41517 + ;;
41518 + hppa*64*)
41519 + shrext_cmds='.sl'
41520 + hardcode_into_libs=yes
41521 + dynamic_linker="$host_os dld.sl"
41522 + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
41523 + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
41524 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41525 + soname_spec='${libname}${release}${shared_ext}$major'
41526 + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
41527 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
41528 + ;;
41529 + *)
41530 + shrext_cmds='.sl'
41531 + dynamic_linker="$host_os dld.sl"
41532 + shlibpath_var=SHLIB_PATH
41533 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
41534 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41535 + soname_spec='${libname}${release}${shared_ext}$major'
41536 + ;;
41537 + esac
41538 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
41539 + postinstall_cmds='chmod 555 $lib'
41540 + ;;
41542 +interix3*)
41543 + version_type=linux
41544 + need_lib_prefix=no
41545 + need_version=no
41546 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41547 + soname_spec='${libname}${release}${shared_ext}$major'
41548 + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
41549 + shlibpath_var=LD_LIBRARY_PATH
41550 + shlibpath_overrides_runpath=no
41551 + hardcode_into_libs=yes
41552 + ;;
41554 +irix5* | irix6* | nonstopux*)
41555 + case $host_os in
41556 + nonstopux*) version_type=nonstopux ;;
41557 + *)
41558 + if test "$lt_cv_prog_gnu_ld" = yes; then
41559 + version_type=linux
41560 + else
41561 + version_type=irix
41562 + fi ;;
41563 + esac
41564 + need_lib_prefix=no
41565 + need_version=no
41566 + soname_spec='${libname}${release}${shared_ext}$major'
41567 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
41568 + case $host_os in
41569 + irix5* | nonstopux*)
41570 + libsuff= shlibsuff=
41571 + ;;
41572 + *)
41573 + case $LD in # libtool.m4 will add one of these switches to LD
41574 + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
41575 + libsuff= shlibsuff= libmagic=32-bit;;
41576 + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
41577 + libsuff=32 shlibsuff=N32 libmagic=N32;;
41578 + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
41579 + libsuff=64 shlibsuff=64 libmagic=64-bit;;
41580 + *) libsuff= shlibsuff= libmagic=never-match;;
41581 + esac
41582 + ;;
41583 + esac
41584 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
41585 + shlibpath_overrides_runpath=no
41586 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
41587 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
41588 + hardcode_into_libs=yes
41589 + ;;
41591 +# No shared lib support for Linux oldld, aout, or coff.
41592 +linux*oldld* | linux*aout* | linux*coff*)
41593 + dynamic_linker=no
41594 + ;;
41596 +# This must be Linux ELF.
41597 +linux*)
41598 + version_type=linux
41599 + need_lib_prefix=no
41600 + need_version=no
41601 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41602 + soname_spec='${libname}${release}${shared_ext}$major'
41603 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
41604 + shlibpath_var=LD_LIBRARY_PATH
41605 + shlibpath_overrides_runpath=no
41606 + # This implies no fast_install, which is unacceptable.
41607 + # Some rework will be needed to allow for fast_install
41608 + # before this can be enabled.
41609 + hardcode_into_libs=yes
41611 + # Append ld.so.conf contents to the search path
41612 + if test -f /etc/ld.so.conf; then
41613 + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
41614 + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
41615 + fi
41617 + # We used to test for /lib/ld.so.1 and disable shared libraries on
41618 + # powerpc, because MkLinux only supported shared libraries with the
41619 + # GNU dynamic linker. Since this was broken with cross compilers,
41620 + # most powerpc-linux boxes support dynamic linking these days and
41621 + # people can always --disable-shared, the test was removed, and we
41622 + # assume the GNU/Linux dynamic linker is in use.
41623 + dynamic_linker='GNU/Linux ld.so'
41624 + ;;
41626 +knetbsd*-gnu)
41627 + version_type=linux
41628 + need_lib_prefix=no
41629 + need_version=no
41630 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41631 + soname_spec='${libname}${release}${shared_ext}$major'
41632 + shlibpath_var=LD_LIBRARY_PATH
41633 + shlibpath_overrides_runpath=no
41634 + hardcode_into_libs=yes
41635 + dynamic_linker='GNU ld.so'
41636 + ;;
41638 +netbsd*)
41639 + version_type=sunos
41640 + need_lib_prefix=no
41641 + need_version=no
41642 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
41643 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41644 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41645 + dynamic_linker='NetBSD (a.out) ld.so'
41646 + else
41647 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
41648 + soname_spec='${libname}${release}${shared_ext}$major'
41649 + dynamic_linker='NetBSD ld.elf_so'
41650 + fi
41651 + shlibpath_var=LD_LIBRARY_PATH
41652 + shlibpath_overrides_runpath=yes
41653 + hardcode_into_libs=yes
41654 + ;;
41656 +newsos6)
41657 + version_type=linux
41658 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41659 + shlibpath_var=LD_LIBRARY_PATH
41660 + shlibpath_overrides_runpath=yes
41661 + ;;
41663 +nto-qnx*)
41664 + version_type=linux
41665 + need_lib_prefix=no
41666 + need_version=no
41667 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41668 + soname_spec='${libname}${release}${shared_ext}$major'
41669 + shlibpath_var=LD_LIBRARY_PATH
41670 + shlibpath_overrides_runpath=yes
41671 + ;;
41673 +openbsd*)
41674 + version_type=sunos
41675 + sys_lib_dlsearch_path_spec="/usr/lib"
41676 + need_lib_prefix=no
41677 + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
41678 + case $host_os in
41679 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
41680 + *) need_version=no ;;
41681 + esac
41682 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41683 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
41684 + shlibpath_var=LD_LIBRARY_PATH
41685 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
41686 + case $host_os in
41687 + openbsd2.[89] | openbsd2.[89].*)
41688 + shlibpath_overrides_runpath=no
41689 + ;;
41690 + *)
41691 + shlibpath_overrides_runpath=yes
41692 + ;;
41693 + esac
41694 + else
41695 + shlibpath_overrides_runpath=yes
41696 + fi
41697 + ;;
41699 +os2*)
41700 + libname_spec='$name'
41701 + shrext_cmds=".dll"
41702 + need_lib_prefix=no
41703 + library_names_spec='$libname${shared_ext} $libname.a'
41704 + dynamic_linker='OS/2 ld.exe'
41705 + shlibpath_var=LIBPATH
41706 + ;;
41708 +osf3* | osf4* | osf5*)
41709 + version_type=osf
41710 + need_lib_prefix=no
41711 + need_version=no
41712 + soname_spec='${libname}${release}${shared_ext}$major'
41713 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41714 + shlibpath_var=LD_LIBRARY_PATH
41715 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
41716 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
41717 + ;;
41719 +solaris*)
41720 + version_type=linux
41721 + need_lib_prefix=no
41722 + need_version=no
41723 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41724 + soname_spec='${libname}${release}${shared_ext}$major'
41725 + shlibpath_var=LD_LIBRARY_PATH
41726 + shlibpath_overrides_runpath=yes
41727 + hardcode_into_libs=yes
41728 + # ldd complains unless libraries are executable
41729 + postinstall_cmds='chmod +x $lib'
41730 + ;;
41732 +sunos4*)
41733 + version_type=sunos
41734 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
41735 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
41736 + shlibpath_var=LD_LIBRARY_PATH
41737 + shlibpath_overrides_runpath=yes
41738 + if test "$with_gnu_ld" = yes; then
41739 + need_lib_prefix=no
41740 + fi
41741 + need_version=yes
41742 + ;;
41744 +sysv4 | sysv4.3*)
41745 + version_type=linux
41746 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41747 + soname_spec='${libname}${release}${shared_ext}$major'
41748 + shlibpath_var=LD_LIBRARY_PATH
41749 + case $host_vendor in
41750 + sni)
41751 + shlibpath_overrides_runpath=no
41752 + need_lib_prefix=no
41753 + export_dynamic_flag_spec='${wl}-Blargedynsym'
41754 + runpath_var=LD_RUN_PATH
41755 + ;;
41756 + siemens)
41757 + need_lib_prefix=no
41758 + ;;
41759 + motorola)
41760 + need_lib_prefix=no
41761 + need_version=no
41762 + shlibpath_overrides_runpath=no
41763 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
41764 + ;;
41765 + esac
41766 + ;;
41768 +sysv4*MP*)
41769 + if test -d /usr/nec ;then
41770 + version_type=linux
41771 + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
41772 + soname_spec='$libname${shared_ext}.$major'
41773 + shlibpath_var=LD_LIBRARY_PATH
41774 + fi
41775 + ;;
41777 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
41778 + version_type=freebsd-elf
41779 + need_lib_prefix=no
41780 + need_version=no
41781 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41782 + soname_spec='${libname}${release}${shared_ext}$major'
41783 + shlibpath_var=LD_LIBRARY_PATH
41784 + hardcode_into_libs=yes
41785 + if test "$with_gnu_ld" = yes; then
41786 + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
41787 + shlibpath_overrides_runpath=no
41788 + else
41789 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
41790 + shlibpath_overrides_runpath=yes
41791 + case $host_os in
41792 + sco3.2v5*)
41793 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
41794 + ;;
41795 + esac
41796 + fi
41797 + sys_lib_dlsearch_path_spec='/usr/lib'
41798 + ;;
41800 +uts4*)
41801 + version_type=linux
41802 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
41803 + soname_spec='${libname}${release}${shared_ext}$major'
41804 + shlibpath_var=LD_LIBRARY_PATH
41805 + ;;
41808 + dynamic_linker=no
41809 + ;;
41810 +esac
41811 +echo "$as_me:$LINENO: result: $dynamic_linker" >&5
41812 +echo "${ECHO_T}$dynamic_linker" >&6
41813 +test "$dynamic_linker" = no && can_build_shared=no
41815 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
41816 +if test "$GCC" = yes; then
41817 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
41820 +echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
41821 +echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
41822 +hardcode_action_GCJ=
41823 +if test -n "$hardcode_libdir_flag_spec_GCJ" || \
41824 + test -n "$runpath_var_GCJ" || \
41825 + test "X$hardcode_automatic_GCJ" = "Xyes" ; then
41827 + # We can hardcode non-existant directories.
41828 + if test "$hardcode_direct_GCJ" != no &&
41829 + # If the only mechanism to avoid hardcoding is shlibpath_var, we
41830 + # have to relink, otherwise we might link with an installed library
41831 + # when we should be linking with a yet-to-be-installed one
41832 + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
41833 + test "$hardcode_minus_L_GCJ" != no; then
41834 + # Linking always hardcodes the temporary library directory.
41835 + hardcode_action_GCJ=relink
41836 + else
41837 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
41838 + hardcode_action_GCJ=immediate
41839 + fi
41840 +else
41841 + # We cannot hardcode anything, or else we can only hardcode existing
41842 + # directories.
41843 + hardcode_action_GCJ=unsupported
41845 +echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
41846 +echo "${ECHO_T}$hardcode_action_GCJ" >&6
41848 +if test "$hardcode_action_GCJ" = relink; then
41849 + # Fast installation is not supported
41850 + enable_fast_install=no
41851 +elif test "$shlibpath_overrides_runpath" = yes ||
41852 + test "$enable_shared" = no; then
41853 + # Fast installation is not necessary
41854 + enable_fast_install=needless
41858 +# The else clause should only fire when bootstrapping the
41859 +# libtool distribution, otherwise you forgot to ship ltmain.sh
41860 +# with your package, and you will get complaints that there are
41861 +# no rules to generate ltmain.sh.
41862 +if test -f "$ltmain"; then
41863 + # See if we are running on zsh, and set the options which allow our commands through
41864 + # without removal of \ escapes.
41865 + if test -n "${ZSH_VERSION+set}" ; then
41866 + setopt NO_GLOB_SUBST
41867 + fi
41868 + # Now quote all the things that may contain metacharacters while being
41869 + # careful not to overquote the AC_SUBSTed values. We take copies of the
41870 + # variables and quote the copies for generation of the libtool script.
41871 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
41872 + SED SHELL STRIP \
41873 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
41874 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
41875 + deplibs_check_method reload_flag reload_cmds need_locks \
41876 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
41877 + lt_cv_sys_global_symbol_to_c_name_address \
41878 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
41879 + old_postinstall_cmds old_postuninstall_cmds \
41880 + compiler_GCJ \
41881 + CC_GCJ \
41882 + LD_GCJ \
41883 + lt_prog_compiler_wl_GCJ \
41884 + lt_prog_compiler_pic_GCJ \
41885 + lt_prog_compiler_static_GCJ \
41886 + lt_prog_compiler_no_builtin_flag_GCJ \
41887 + export_dynamic_flag_spec_GCJ \
41888 + thread_safe_flag_spec_GCJ \
41889 + whole_archive_flag_spec_GCJ \
41890 + enable_shared_with_static_runtimes_GCJ \
41891 + old_archive_cmds_GCJ \
41892 + old_archive_from_new_cmds_GCJ \
41893 + predep_objects_GCJ \
41894 + postdep_objects_GCJ \
41895 + predeps_GCJ \
41896 + postdeps_GCJ \
41897 + compiler_lib_search_path_GCJ \
41898 + archive_cmds_GCJ \
41899 + archive_expsym_cmds_GCJ \
41900 + postinstall_cmds_GCJ \
41901 + postuninstall_cmds_GCJ \
41902 + old_archive_from_expsyms_cmds_GCJ \
41903 + allow_undefined_flag_GCJ \
41904 + no_undefined_flag_GCJ \
41905 + export_symbols_cmds_GCJ \
41906 + hardcode_libdir_flag_spec_GCJ \
41907 + hardcode_libdir_flag_spec_ld_GCJ \
41908 + hardcode_libdir_separator_GCJ \
41909 + hardcode_automatic_GCJ \
41910 + module_cmds_GCJ \
41911 + module_expsym_cmds_GCJ \
41912 + lt_cv_prog_compiler_c_o_GCJ \
41913 + exclude_expsyms_GCJ \
41914 + include_expsyms_GCJ; do
41916 + case $var in
41917 + old_archive_cmds_GCJ | \
41918 + old_archive_from_new_cmds_GCJ | \
41919 + archive_cmds_GCJ | \
41920 + archive_expsym_cmds_GCJ | \
41921 + module_cmds_GCJ | \
41922 + module_expsym_cmds_GCJ | \
41923 + old_archive_from_expsyms_cmds_GCJ | \
41924 + export_symbols_cmds_GCJ | \
41925 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
41926 + postinstall_cmds | postuninstall_cmds | \
41927 + old_postinstall_cmds | old_postuninstall_cmds | \
41928 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
41929 + # Double-quote double-evaled strings.
41930 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
41931 + ;;
41932 + *)
41933 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
41934 + ;;
41935 + esac
41936 + done
41938 + case $lt_echo in
41939 + *'\$0 --fallback-echo"')
41940 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
41941 + ;;
41942 + esac
41944 +cfgfile="$ofile"
41946 + cat <<__EOF__ >> "$cfgfile"
41947 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
41949 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41951 +# Shell to use when invoking shell scripts.
41952 +SHELL=$lt_SHELL
41954 +# Whether or not to build shared libraries.
41955 +build_libtool_libs=$enable_shared
41957 +# Whether or not to build static libraries.
41958 +build_old_libs=$enable_static
41960 +# Whether or not to add -lc for building shared libraries.
41961 +build_libtool_need_lc=$archive_cmds_need_lc_GCJ
41963 +# Whether or not to disallow shared libs when runtime libs are static
41964 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
41966 +# Whether or not to optimize for fast installation.
41967 +fast_install=$enable_fast_install
41969 +# The host system.
41970 +host_alias=$host_alias
41971 +host=$host
41972 +host_os=$host_os
41974 +# The build system.
41975 +build_alias=$build_alias
41976 +build=$build
41977 +build_os=$build_os
41979 +# An echo program that does not interpret backslashes.
41980 +echo=$lt_echo
41982 +# The archiver.
41983 +AR=$lt_AR
41984 +AR_FLAGS=$lt_AR_FLAGS
41986 +# A C compiler.
41987 +LTCC=$lt_LTCC
41989 +# LTCC compiler flags.
41990 +LTCFLAGS=$lt_LTCFLAGS
41992 +# A language-specific compiler.
41993 +CC=$lt_compiler_GCJ
41995 +# Is the compiler the GNU C compiler?
41996 +with_gcc=$GCC_GCJ
41998 +# An ERE matcher.
41999 +EGREP=$lt_EGREP
42001 +# The linker used to build libraries.
42002 +LD=$lt_LD_GCJ
42004 +# Whether we need hard or soft links.
42005 +LN_S=$lt_LN_S
42007 +# A BSD-compatible nm program.
42008 +NM=$lt_NM
42010 +# A symbol stripping program
42011 +STRIP=$lt_STRIP
42013 +# Used to examine libraries when file_magic_cmd begins "file"
42014 +MAGIC_CMD=$MAGIC_CMD
42016 +# Used on cygwin: DLL creation program.
42017 +DLLTOOL="$DLLTOOL"
42019 +# Used on cygwin: object dumper.
42020 +OBJDUMP="$OBJDUMP"
42022 +# Used on cygwin: assembler.
42023 +AS="$AS"
42025 +# The name of the directory that contains temporary libtool files.
42026 +objdir=$objdir
42028 +# How to create reloadable object files.
42029 +reload_flag=$lt_reload_flag
42030 +reload_cmds=$lt_reload_cmds
42032 +# How to pass a linker flag through the compiler.
42033 +wl=$lt_lt_prog_compiler_wl_GCJ
42035 +# Object file suffix (normally "o").
42036 +objext="$ac_objext"
42038 +# Old archive suffix (normally "a").
42039 +libext="$libext"
42041 +# Shared library suffix (normally ".so").
42042 +shrext_cmds='$shrext_cmds'
42044 +# Executable file suffix (normally "").
42045 +exeext="$exeext"
42047 +# Additional compiler flags for building library objects.
42048 +pic_flag=$lt_lt_prog_compiler_pic_GCJ
42049 +pic_mode=$pic_mode
42051 +# What is the maximum length of a command?
42052 +max_cmd_len=$lt_cv_sys_max_cmd_len
42054 +# Does compiler simultaneously support -c and -o options?
42055 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
42057 +# Must we lock files when doing compilation?
42058 +need_locks=$lt_need_locks
42060 +# Do we need the lib prefix for modules?
42061 +need_lib_prefix=$need_lib_prefix
42063 +# Do we need a version for libraries?
42064 +need_version=$need_version
42066 +# Whether dlopen is supported.
42067 +dlopen_support=$enable_dlopen
42069 +# Whether dlopen of programs is supported.
42070 +dlopen_self=$enable_dlopen_self
42072 +# Whether dlopen of statically linked programs is supported.
42073 +dlopen_self_static=$enable_dlopen_self_static
42075 +# Compiler flag to prevent dynamic linking.
42076 +link_static_flag=$lt_lt_prog_compiler_static_GCJ
42078 +# Compiler flag to turn off builtin functions.
42079 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
42081 +# Compiler flag to allow reflexive dlopens.
42082 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
42084 +# Compiler flag to generate shared objects directly from archives.
42085 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
42087 +# Compiler flag to generate thread-safe objects.
42088 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
42090 +# Library versioning type.
42091 +version_type=$version_type
42093 +# Format of library name prefix.
42094 +libname_spec=$lt_libname_spec
42096 +# List of archive names. First name is the real one, the rest are links.
42097 +# The last name is the one that the linker finds with -lNAME.
42098 +library_names_spec=$lt_library_names_spec
42100 +# The coded name of the library, if different from the real name.
42101 +soname_spec=$lt_soname_spec
42103 +# Commands used to build and install an old-style archive.
42104 +RANLIB=$lt_RANLIB
42105 +old_archive_cmds=$lt_old_archive_cmds_GCJ
42106 +old_postinstall_cmds=$lt_old_postinstall_cmds
42107 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
42109 +# Create an old-style archive from a shared archive.
42110 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
42112 +# Create a temporary old-style archive to link instead of a shared archive.
42113 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
42115 +# Commands used to build and install a shared archive.
42116 +archive_cmds=$lt_archive_cmds_GCJ
42117 +archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
42118 +postinstall_cmds=$lt_postinstall_cmds
42119 +postuninstall_cmds=$lt_postuninstall_cmds
42121 +# Commands used to build a loadable module (assumed same as above if empty)
42122 +module_cmds=$lt_module_cmds_GCJ
42123 +module_expsym_cmds=$lt_module_expsym_cmds_GCJ
42125 +# Commands to strip libraries.
42126 +old_striplib=$lt_old_striplib
42127 +striplib=$lt_striplib
42129 +# Dependencies to place before the objects being linked to create a
42130 +# shared library.
42131 +predep_objects=$lt_predep_objects_GCJ
42133 +# Dependencies to place after the objects being linked to create a
42134 +# shared library.
42135 +postdep_objects=$lt_postdep_objects_GCJ
42137 +# Dependencies to place before the objects being linked to create a
42138 +# shared library.
42139 +predeps=$lt_predeps_GCJ
42141 +# Dependencies to place after the objects being linked to create a
42142 +# shared library.
42143 +postdeps=$lt_postdeps_GCJ
42145 +# The library search path used internally by the compiler when linking
42146 +# a shared library.
42147 +compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
42149 +# Method to check whether dependent libraries are shared objects.
42150 +deplibs_check_method=$lt_deplibs_check_method
42152 +# Command to use when deplibs_check_method == file_magic.
42153 +file_magic_cmd=$lt_file_magic_cmd
42155 +# Flag that allows shared libraries with undefined symbols to be built.
42156 +allow_undefined_flag=$lt_allow_undefined_flag_GCJ
42158 +# Flag that forces no undefined symbols.
42159 +no_undefined_flag=$lt_no_undefined_flag_GCJ
42161 +# Commands used to finish a libtool library installation in a directory.
42162 +finish_cmds=$lt_finish_cmds
42164 +# Same as above, but a single script fragment to be evaled but not shown.
42165 +finish_eval=$lt_finish_eval
42167 +# Take the output of nm and produce a listing of raw symbols and C names.
42168 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42170 +# Transform the output of nm in a proper C declaration
42171 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42173 +# Transform the output of nm in a C name address pair
42174 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42176 +# This is the shared library runtime path variable.
42177 +runpath_var=$runpath_var
42179 +# This is the shared library path variable.
42180 +shlibpath_var=$shlibpath_var
42182 +# Is shlibpath searched before the hard-coded library search path?
42183 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42185 +# How to hardcode a shared library path into an executable.
42186 +hardcode_action=$hardcode_action_GCJ
42188 +# Whether we should hardcode library paths into libraries.
42189 +hardcode_into_libs=$hardcode_into_libs
42191 +# Flag to hardcode \$libdir into a binary during linking.
42192 +# This must work even if \$libdir does not exist.
42193 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
42195 +# If ld is used when linking, flag to hardcode \$libdir into
42196 +# a binary during linking. This must work even if \$libdir does
42197 +# not exist.
42198 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
42200 +# Whether we need a single -rpath flag with a separated argument.
42201 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
42203 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
42204 +# resulting binary.
42205 +hardcode_direct=$hardcode_direct_GCJ
42207 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
42208 +# resulting binary.
42209 +hardcode_minus_L=$hardcode_minus_L_GCJ
42211 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
42212 +# the resulting binary.
42213 +hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
42215 +# Set to yes if building a shared library automatically hardcodes DIR into the library
42216 +# and all subsequent libraries and executables linked against it.
42217 +hardcode_automatic=$hardcode_automatic_GCJ
42219 +# Variables whose values should be saved in libtool wrapper scripts and
42220 +# restored at relink time.
42221 +variables_saved_for_relink="$variables_saved_for_relink"
42223 +# Whether libtool must link a program against all its dependency libraries.
42224 +link_all_deplibs=$link_all_deplibs_GCJ
42226 +# Compile-time system search path for libraries
42227 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42229 +# Run-time system search path for libraries
42230 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42232 +# Fix the shell variable \$srcfile for the compiler.
42233 +fix_srcfile_path="$fix_srcfile_path_GCJ"
42235 +# Set to yes if exported symbols are required.
42236 +always_export_symbols=$always_export_symbols_GCJ
42238 +# The commands to list exported symbols.
42239 +export_symbols_cmds=$lt_export_symbols_cmds_GCJ
42241 +# The commands to extract the exported symbol list from a shared archive.
42242 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
42244 +# Symbols that should not be listed in the preloaded symbols.
42245 +exclude_expsyms=$lt_exclude_expsyms_GCJ
42247 +# Symbols that must always be exported.
42248 +include_expsyms=$lt_include_expsyms_GCJ
42250 +# ### END LIBTOOL TAG CONFIG: $tagname
42252 +__EOF__
42255 +else
42256 + # If there is no Makefile yet, we rely on a make rule to execute
42257 + # `config.status --recheck' to rerun these tests and create the
42258 + # libtool script then.
42259 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
42260 + if test -f "$ltmain_in"; then
42261 + test -f Makefile && make "$ltmain"
42262 + fi
42266 +ac_ext=c
42267 +ac_cpp='$CPP $CPPFLAGS'
42268 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42269 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42270 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
42272 +CC="$lt_save_CC"
42274 + else
42275 + tagname=""
42276 + fi
42277 + ;;
42279 + RC)
42283 +# Source file extension for RC test sources.
42284 +ac_ext=rc
42286 +# Object file extension for compiled RC test sources.
42287 +objext=o
42288 +objext_RC=$objext
42290 +# Code to be used in simple compile tests
42291 +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
42293 +# Code to be used in simple link tests
42294 +lt_simple_link_test_code="$lt_simple_compile_test_code"
42296 +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
42298 +# If no C compiler was specified, use CC.
42299 +LTCC=${LTCC-"$CC"}
42301 +# If no C compiler flags were specified, use CFLAGS.
42302 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
42304 +# Allow CC to be a program name with arguments.
42305 +compiler=$CC
42308 +# save warnings/boilerplate of simple test code
42309 +ac_outfile=conftest.$ac_objext
42310 +printf "$lt_simple_compile_test_code" >conftest.$ac_ext
42311 +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
42312 +_lt_compiler_boilerplate=`cat conftest.err`
42313 +$rm conftest*
42315 +ac_outfile=conftest.$ac_objext
42316 +printf "$lt_simple_link_test_code" >conftest.$ac_ext
42317 +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
42318 +_lt_linker_boilerplate=`cat conftest.err`
42319 +$rm conftest*
42322 +# Allow CC to be a program name with arguments.
42323 +lt_save_CC="$CC"
42324 +CC=${RC-"windres"}
42325 +compiler=$CC
42326 +compiler_RC=$CC
42327 +for cc_temp in $compiler""; do
42328 + case $cc_temp in
42329 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42330 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
42331 + \-*) ;;
42332 + *) break;;
42333 + esac
42334 +done
42335 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
42337 +lt_cv_prog_compiler_c_o_RC=yes
42339 +# The else clause should only fire when bootstrapping the
42340 +# libtool distribution, otherwise you forgot to ship ltmain.sh
42341 +# with your package, and you will get complaints that there are
42342 +# no rules to generate ltmain.sh.
42343 +if test -f "$ltmain"; then
42344 + # See if we are running on zsh, and set the options which allow our commands through
42345 + # without removal of \ escapes.
42346 + if test -n "${ZSH_VERSION+set}" ; then
42347 + setopt NO_GLOB_SUBST
42348 + fi
42349 + # Now quote all the things that may contain metacharacters while being
42350 + # careful not to overquote the AC_SUBSTed values. We take copies of the
42351 + # variables and quote the copies for generation of the libtool script.
42352 + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
42353 + SED SHELL STRIP \
42354 + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
42355 + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
42356 + deplibs_check_method reload_flag reload_cmds need_locks \
42357 + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
42358 + lt_cv_sys_global_symbol_to_c_name_address \
42359 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
42360 + old_postinstall_cmds old_postuninstall_cmds \
42361 + compiler_RC \
42362 + CC_RC \
42363 + LD_RC \
42364 + lt_prog_compiler_wl_RC \
42365 + lt_prog_compiler_pic_RC \
42366 + lt_prog_compiler_static_RC \
42367 + lt_prog_compiler_no_builtin_flag_RC \
42368 + export_dynamic_flag_spec_RC \
42369 + thread_safe_flag_spec_RC \
42370 + whole_archive_flag_spec_RC \
42371 + enable_shared_with_static_runtimes_RC \
42372 + old_archive_cmds_RC \
42373 + old_archive_from_new_cmds_RC \
42374 + predep_objects_RC \
42375 + postdep_objects_RC \
42376 + predeps_RC \
42377 + postdeps_RC \
42378 + compiler_lib_search_path_RC \
42379 + archive_cmds_RC \
42380 + archive_expsym_cmds_RC \
42381 + postinstall_cmds_RC \
42382 + postuninstall_cmds_RC \
42383 + old_archive_from_expsyms_cmds_RC \
42384 + allow_undefined_flag_RC \
42385 + no_undefined_flag_RC \
42386 + export_symbols_cmds_RC \
42387 + hardcode_libdir_flag_spec_RC \
42388 + hardcode_libdir_flag_spec_ld_RC \
42389 + hardcode_libdir_separator_RC \
42390 + hardcode_automatic_RC \
42391 + module_cmds_RC \
42392 + module_expsym_cmds_RC \
42393 + lt_cv_prog_compiler_c_o_RC \
42394 + exclude_expsyms_RC \
42395 + include_expsyms_RC; do
42397 + case $var in
42398 + old_archive_cmds_RC | \
42399 + old_archive_from_new_cmds_RC | \
42400 + archive_cmds_RC | \
42401 + archive_expsym_cmds_RC | \
42402 + module_cmds_RC | \
42403 + module_expsym_cmds_RC | \
42404 + old_archive_from_expsyms_cmds_RC | \
42405 + export_symbols_cmds_RC | \
42406 + extract_expsyms_cmds | reload_cmds | finish_cmds | \
42407 + postinstall_cmds | postuninstall_cmds | \
42408 + old_postinstall_cmds | old_postuninstall_cmds | \
42409 + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
42410 + # Double-quote double-evaled strings.
42411 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
42412 + ;;
42413 + *)
42414 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
42415 + ;;
42416 + esac
42417 + done
42419 + case $lt_echo in
42420 + *'\$0 --fallback-echo"')
42421 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
42422 + ;;
42423 + esac
42425 +cfgfile="$ofile"
42427 + cat <<__EOF__ >> "$cfgfile"
42428 +# ### BEGIN LIBTOOL TAG CONFIG: $tagname
42430 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42432 +# Shell to use when invoking shell scripts.
42433 +SHELL=$lt_SHELL
42435 +# Whether or not to build shared libraries.
42436 +build_libtool_libs=$enable_shared
42438 +# Whether or not to build static libraries.
42439 +build_old_libs=$enable_static
42441 +# Whether or not to add -lc for building shared libraries.
42442 +build_libtool_need_lc=$archive_cmds_need_lc_RC
42444 +# Whether or not to disallow shared libs when runtime libs are static
42445 +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
42447 +# Whether or not to optimize for fast installation.
42448 +fast_install=$enable_fast_install
42450 +# The host system.
42451 +host_alias=$host_alias
42452 +host=$host
42453 +host_os=$host_os
42455 +# The build system.
42456 +build_alias=$build_alias
42457 +build=$build
42458 +build_os=$build_os
42460 +# An echo program that does not interpret backslashes.
42461 +echo=$lt_echo
42463 +# The archiver.
42464 +AR=$lt_AR
42465 +AR_FLAGS=$lt_AR_FLAGS
42467 +# A C compiler.
42468 +LTCC=$lt_LTCC
42470 +# LTCC compiler flags.
42471 +LTCFLAGS=$lt_LTCFLAGS
42473 +# A language-specific compiler.
42474 +CC=$lt_compiler_RC
42476 +# Is the compiler the GNU C compiler?
42477 +with_gcc=$GCC_RC
42479 +# An ERE matcher.
42480 +EGREP=$lt_EGREP
42482 +# The linker used to build libraries.
42483 +LD=$lt_LD_RC
42485 +# Whether we need hard or soft links.
42486 +LN_S=$lt_LN_S
42488 +# A BSD-compatible nm program.
42489 +NM=$lt_NM
42491 +# A symbol stripping program
42492 +STRIP=$lt_STRIP
42494 +# Used to examine libraries when file_magic_cmd begins "file"
42495 +MAGIC_CMD=$MAGIC_CMD
42497 +# Used on cygwin: DLL creation program.
42498 +DLLTOOL="$DLLTOOL"
42500 +# Used on cygwin: object dumper.
42501 +OBJDUMP="$OBJDUMP"
42503 +# Used on cygwin: assembler.
42504 +AS="$AS"
42506 +# The name of the directory that contains temporary libtool files.
42507 +objdir=$objdir
42509 +# How to create reloadable object files.
42510 +reload_flag=$lt_reload_flag
42511 +reload_cmds=$lt_reload_cmds
42513 +# How to pass a linker flag through the compiler.
42514 +wl=$lt_lt_prog_compiler_wl_RC
42516 +# Object file suffix (normally "o").
42517 +objext="$ac_objext"
42519 +# Old archive suffix (normally "a").
42520 +libext="$libext"
42522 +# Shared library suffix (normally ".so").
42523 +shrext_cmds='$shrext_cmds'
42525 +# Executable file suffix (normally "").
42526 +exeext="$exeext"
42528 +# Additional compiler flags for building library objects.
42529 +pic_flag=$lt_lt_prog_compiler_pic_RC
42530 +pic_mode=$pic_mode
42532 +# What is the maximum length of a command?
42533 +max_cmd_len=$lt_cv_sys_max_cmd_len
42535 +# Does compiler simultaneously support -c and -o options?
42536 +compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
42538 +# Must we lock files when doing compilation?
42539 +need_locks=$lt_need_locks
42541 +# Do we need the lib prefix for modules?
42542 +need_lib_prefix=$need_lib_prefix
42544 +# Do we need a version for libraries?
42545 +need_version=$need_version
42547 +# Whether dlopen is supported.
42548 +dlopen_support=$enable_dlopen
42550 +# Whether dlopen of programs is supported.
42551 +dlopen_self=$enable_dlopen_self
42553 +# Whether dlopen of statically linked programs is supported.
42554 +dlopen_self_static=$enable_dlopen_self_static
42556 +# Compiler flag to prevent dynamic linking.
42557 +link_static_flag=$lt_lt_prog_compiler_static_RC
42559 +# Compiler flag to turn off builtin functions.
42560 +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
42562 +# Compiler flag to allow reflexive dlopens.
42563 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
42565 +# Compiler flag to generate shared objects directly from archives.
42566 +whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
42568 +# Compiler flag to generate thread-safe objects.
42569 +thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
42571 +# Library versioning type.
42572 +version_type=$version_type
42574 +# Format of library name prefix.
42575 +libname_spec=$lt_libname_spec
42577 +# List of archive names. First name is the real one, the rest are links.
42578 +# The last name is the one that the linker finds with -lNAME.
42579 +library_names_spec=$lt_library_names_spec
42581 +# The coded name of the library, if different from the real name.
42582 +soname_spec=$lt_soname_spec
42584 +# Commands used to build and install an old-style archive.
42585 +RANLIB=$lt_RANLIB
42586 +old_archive_cmds=$lt_old_archive_cmds_RC
42587 +old_postinstall_cmds=$lt_old_postinstall_cmds
42588 +old_postuninstall_cmds=$lt_old_postuninstall_cmds
42590 +# Create an old-style archive from a shared archive.
42591 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
42593 +# Create a temporary old-style archive to link instead of a shared archive.
42594 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
42596 +# Commands used to build and install a shared archive.
42597 +archive_cmds=$lt_archive_cmds_RC
42598 +archive_expsym_cmds=$lt_archive_expsym_cmds_RC
42599 +postinstall_cmds=$lt_postinstall_cmds
42600 +postuninstall_cmds=$lt_postuninstall_cmds
42602 +# Commands used to build a loadable module (assumed same as above if empty)
42603 +module_cmds=$lt_module_cmds_RC
42604 +module_expsym_cmds=$lt_module_expsym_cmds_RC
42606 +# Commands to strip libraries.
42607 +old_striplib=$lt_old_striplib
42608 +striplib=$lt_striplib
42610 +# Dependencies to place before the objects being linked to create a
42611 +# shared library.
42612 +predep_objects=$lt_predep_objects_RC
42614 +# Dependencies to place after the objects being linked to create a
42615 +# shared library.
42616 +postdep_objects=$lt_postdep_objects_RC
42618 +# Dependencies to place before the objects being linked to create a
42619 +# shared library.
42620 +predeps=$lt_predeps_RC
42622 +# Dependencies to place after the objects being linked to create a
42623 +# shared library.
42624 +postdeps=$lt_postdeps_RC
42626 +# The library search path used internally by the compiler when linking
42627 +# a shared library.
42628 +compiler_lib_search_path=$lt_compiler_lib_search_path_RC
42630 +# Method to check whether dependent libraries are shared objects.
42631 +deplibs_check_method=$lt_deplibs_check_method
42633 +# Command to use when deplibs_check_method == file_magic.
42634 +file_magic_cmd=$lt_file_magic_cmd
42636 +# Flag that allows shared libraries with undefined symbols to be built.
42637 +allow_undefined_flag=$lt_allow_undefined_flag_RC
42639 +# Flag that forces no undefined symbols.
42640 +no_undefined_flag=$lt_no_undefined_flag_RC
42642 +# Commands used to finish a libtool library installation in a directory.
42643 +finish_cmds=$lt_finish_cmds
42645 +# Same as above, but a single script fragment to be evaled but not shown.
42646 +finish_eval=$lt_finish_eval
42648 +# Take the output of nm and produce a listing of raw symbols and C names.
42649 +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42651 +# Transform the output of nm in a proper C declaration
42652 +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42654 +# Transform the output of nm in a C name address pair
42655 +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42657 +# This is the shared library runtime path variable.
42658 +runpath_var=$runpath_var
42660 +# This is the shared library path variable.
42661 +shlibpath_var=$shlibpath_var
42663 +# Is shlibpath searched before the hard-coded library search path?
42664 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
42666 +# How to hardcode a shared library path into an executable.
42667 +hardcode_action=$hardcode_action_RC
42669 +# Whether we should hardcode library paths into libraries.
42670 +hardcode_into_libs=$hardcode_into_libs
42672 +# Flag to hardcode \$libdir into a binary during linking.
42673 +# This must work even if \$libdir does not exist.
42674 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
42676 +# If ld is used when linking, flag to hardcode \$libdir into
42677 +# a binary during linking. This must work even if \$libdir does
42678 +# not exist.
42679 +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
42681 +# Whether we need a single -rpath flag with a separated argument.
42682 +hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
42684 +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
42685 +# resulting binary.
42686 +hardcode_direct=$hardcode_direct_RC
42688 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
42689 +# resulting binary.
42690 +hardcode_minus_L=$hardcode_minus_L_RC
42692 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
42693 +# the resulting binary.
42694 +hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
42696 +# Set to yes if building a shared library automatically hardcodes DIR into the library
42697 +# and all subsequent libraries and executables linked against it.
42698 +hardcode_automatic=$hardcode_automatic_RC
42700 +# Variables whose values should be saved in libtool wrapper scripts and
42701 +# restored at relink time.
42702 +variables_saved_for_relink="$variables_saved_for_relink"
42704 +# Whether libtool must link a program against all its dependency libraries.
42705 +link_all_deplibs=$link_all_deplibs_RC
42707 +# Compile-time system search path for libraries
42708 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
42710 +# Run-time system search path for libraries
42711 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
42713 +# Fix the shell variable \$srcfile for the compiler.
42714 +fix_srcfile_path="$fix_srcfile_path_RC"
42716 +# Set to yes if exported symbols are required.
42717 +always_export_symbols=$always_export_symbols_RC
42719 +# The commands to list exported symbols.
42720 +export_symbols_cmds=$lt_export_symbols_cmds_RC
42722 +# The commands to extract the exported symbol list from a shared archive.
42723 +extract_expsyms_cmds=$lt_extract_expsyms_cmds
42725 +# Symbols that should not be listed in the preloaded symbols.
42726 +exclude_expsyms=$lt_exclude_expsyms_RC
42728 +# Symbols that must always be exported.
42729 +include_expsyms=$lt_include_expsyms_RC
42731 +# ### END LIBTOOL TAG CONFIG: $tagname
42733 +__EOF__
42736 +else
42737 + # If there is no Makefile yet, we rely on a make rule to execute
42738 + # `config.status --recheck' to rerun these tests and create the
42739 + # libtool script then.
42740 + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
42741 + if test -f "$ltmain_in"; then
42742 + test -f Makefile && make "$ltmain"
42743 + fi
42747 +ac_ext=c
42748 +ac_cpp='$CPP $CPPFLAGS'
42749 +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42750 +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42751 +ac_compiler_gnu=$ac_cv_c_compiler_gnu
42753 +CC="$lt_save_CC"
42755 + ;;
42757 + *)
42758 + { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
42759 +echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
42760 + { (exit 1); exit 1; }; }
42761 + ;;
42762 + esac
42764 + # Append the new tag name to the list of available tags.
42765 + if test -n "$tagname" ; then
42766 + available_tags="$available_tags $tagname"
42767 + fi
42768 + fi
42769 + done
42770 + IFS="$lt_save_ifs"
42772 + # Now substitute the updated list of available tags.
42773 + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
42774 + mv "${ofile}T" "$ofile"
42775 + chmod +x "$ofile"
42776 + else
42777 + rm -f "${ofile}T"
42778 + { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
42779 +echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
42780 + { (exit 1); exit 1; }; }
42781 + fi
42786 +# This can be used to rebuild libtool when needed
42787 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
42789 +# Always use our own libtool.
42790 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
42792 +# Prevent multiple expansion
42814 # Select memory manager depending on user input.
42815 # If no "-enable-maxmem", use jmemnobs
42816 -MEMORYMGR='jmemnobs.$(O)'
42817 +MEMORYMGR='jmemnobs'
42818 MAXMEM="no"
42819 # Check whether --enable-maxmem or --disable-maxmem was given.
42820 if test "${enable_maxmem+set}" = set; then
42821 enableval="$enable_maxmem"
42822 MAXMEM="$enableval"
42825 -# support --with-maxmem for backwards compatibility with IJG V5.
42826 -# Check whether --with-maxmem or --without-maxmem was given.
42827 -if test "${with_maxmem+set}" = set; then
42828 - withval="$with_maxmem"
42829 - MAXMEM="$withval"
42832 +fi;
42833 if test "x$MAXMEM" = xyes; then
42834 MAXMEM=1
42836 if test "x$MAXMEM" != xno; then
42837 if test -n "`echo $MAXMEM | sed 's/[0-9]//g'`"; then
42838 - { echo "configure: error: non-numeric argument to --enable-maxmem" 1>&2; exit 1; }
42839 + { { echo "$as_me:$LINENO: error: non-numeric argument to --enable-maxmem" >&5
42840 +echo "$as_me: error: non-numeric argument to --enable-maxmem" >&2;}
42841 + { (exit 1); exit 1; }; }
42843 DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
42844 -cat >> confdefs.h <<EOF
42846 +cat >>confdefs.h <<_ACEOF
42847 #define DEFAULT_MAX_MEM ${DEFAULTMAXMEM}
42848 -EOF
42849 +_ACEOF
42851 -echo $ac_n "checking for 'tmpfile()'""... $ac_c" 1>&6
42852 -echo "configure:1596: checking for 'tmpfile()'" >&5
42853 -cat > conftest.$ac_ext <<EOF
42854 -#line 1598 "configure"
42855 -#include "confdefs.h"
42856 +echo "$as_me:$LINENO: checking for 'tmpfile()'" >&5
42857 +echo $ECHO_N "checking for 'tmpfile()'... $ECHO_C" >&6
42858 +cat >conftest.$ac_ext <<_ACEOF
42859 +/* confdefs.h. */
42860 +_ACEOF
42861 +cat confdefs.h >>conftest.$ac_ext
42862 +cat >>conftest.$ac_ext <<_ACEOF
42863 +/* end confdefs.h. */
42864 #include <stdio.h>
42865 -int main() {
42866 - FILE * tfile = tmpfile();
42867 -; return 0; }
42868 -EOF
42869 -if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
42870 - rm -rf conftest*
42871 - echo "$ac_t""yes" 1>&6
42872 -MEMORYMGR='jmemansi.$(O)'
42873 +int
42874 +main ()
42876 + FILE * tfile = tmpfile();
42878 + return 0;
42880 +_ACEOF
42881 +rm -f conftest.$ac_objext conftest$ac_exeext
42882 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42883 + (eval $ac_link) 2>conftest.er1
42884 + ac_status=$?
42885 + grep -v '^ *+' conftest.er1 >conftest.err
42886 + rm -f conftest.er1
42887 + cat conftest.err >&5
42888 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42889 + (exit $ac_status); } &&
42890 + { ac_try='test -z "$ac_c_werror_flag"
42891 + || test ! -s conftest.err'
42892 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42893 + (eval $ac_try) 2>&5
42894 + ac_status=$?
42895 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42896 + (exit $ac_status); }; } &&
42897 + { ac_try='test -s conftest$ac_exeext'
42898 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42899 + (eval $ac_try) 2>&5
42900 + ac_status=$?
42901 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42902 + (exit $ac_status); }; }; then
42903 + echo "$as_me:$LINENO: result: yes" >&5
42904 +echo "${ECHO_T}yes" >&6
42905 +MEMORYMGR='jmemansi'
42906 else
42907 - echo "configure: failed program was:" >&5
42908 - cat conftest.$ac_ext >&5
42909 - rm -rf conftest*
42910 - echo "$ac_t""no" 1>&6
42911 -MEMORYMGR='jmemname.$(O)'
42912 -cat >> confdefs.h <<\EOF
42913 -#define NEED_SIGNAL_CATCHER
42914 -EOF
42915 + echo "$as_me: failed program was:" >&5
42916 +sed 's/^/| /' conftest.$ac_ext >&5
42918 -echo $ac_n "checking for 'mktemp()'""... $ac_c" 1>&6
42919 -echo "configure:1620: checking for 'mktemp()'" >&5
42920 -cat > conftest.$ac_ext <<EOF
42921 -#line 1622 "configure"
42922 -#include "confdefs.h"
42923 +echo "$as_me:$LINENO: result: no" >&5
42924 +echo "${ECHO_T}no" >&6
42925 +MEMORYMGR='jmemname'
42927 -int main() {
42928 - char fname[80]; mktemp(fname);
42929 -; return 0; }
42930 -EOF
42931 -if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
42932 - rm -rf conftest*
42933 - echo "$ac_t""yes" 1>&6
42934 +# Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
42936 +cat >>confdefs.h <<\_ACEOF
42937 +#define NEED_SIGNAL_CATCHER 1
42938 +_ACEOF
42940 +echo "$as_me:$LINENO: checking for 'mktemp()'" >&5
42941 +echo $ECHO_N "checking for 'mktemp()'... $ECHO_C" >&6
42942 +cat >conftest.$ac_ext <<_ACEOF
42943 +/* confdefs.h. */
42944 +_ACEOF
42945 +cat confdefs.h >>conftest.$ac_ext
42946 +cat >>conftest.$ac_ext <<_ACEOF
42947 +/* end confdefs.h. */
42949 +int
42950 +main ()
42952 + char fname[80]; mktemp(fname);
42954 + return 0;
42956 +_ACEOF
42957 +rm -f conftest.$ac_objext conftest$ac_exeext
42958 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
42959 + (eval $ac_link) 2>conftest.er1
42960 + ac_status=$?
42961 + grep -v '^ *+' conftest.er1 >conftest.err
42962 + rm -f conftest.er1
42963 + cat conftest.err >&5
42964 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42965 + (exit $ac_status); } &&
42966 + { ac_try='test -z "$ac_c_werror_flag"
42967 + || test ! -s conftest.err'
42968 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42969 + (eval $ac_try) 2>&5
42970 + ac_status=$?
42971 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42972 + (exit $ac_status); }; } &&
42973 + { ac_try='test -s conftest$ac_exeext'
42974 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
42975 + (eval $ac_try) 2>&5
42976 + ac_status=$?
42977 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
42978 + (exit $ac_status); }; }; then
42979 + echo "$as_me:$LINENO: result: yes" >&5
42980 +echo "${ECHO_T}yes" >&6
42981 else
42982 - echo "configure: failed program was:" >&5
42983 - cat conftest.$ac_ext >&5
42984 - rm -rf conftest*
42985 - echo "$ac_t""no" 1>&6
42986 -cat >> confdefs.h <<\EOF
42987 -#define NO_MKTEMP
42988 -EOF
42989 + echo "$as_me: failed program was:" >&5
42990 +sed 's/^/| /' conftest.$ac_ext >&5
42992 +echo "$as_me:$LINENO: result: no" >&5
42993 +echo "${ECHO_T}no" >&6
42995 +cat >>confdefs.h <<\_ACEOF
42996 +#define NO_MKTEMP 1
42997 +_ACEOF
43000 -rm -f conftest*
43001 +rm -f conftest.err conftest.$ac_objext \
43002 + conftest$ac_exeext conftest.$ac_ext
43004 -rm -f conftest*
43005 +rm -f conftest.err conftest.$ac_objext \
43006 + conftest$ac_exeext conftest.$ac_ext
43010 -# Extract the library version ID from jpeglib.h.
43011 -echo $ac_n "checking libjpeg version number""... $ac_c" 1>&6
43012 -echo "configure:1650: checking libjpeg version number" >&5
43013 -JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
43014 -echo "$ac_t""$JPEG_LIB_VERSION" 1>&6
43015 +# Support definitons for cjpeg/djpeg
43017 +cat >>confdefs.h <<\_ACEOF
43018 +#define BMP_SUPPORTED 1
43019 +_ACEOF
43021 -# Prepare to massage makefile.cfg correctly.
43022 -if test $ijg_cv_have_prototypes = yes; then
43023 - A2K_DEPS=""
43024 - COM_A2K="# "
43026 +cat >>confdefs.h <<\_ACEOF
43027 +#define GIF_SUPPORTED 1
43028 +_ACEOF
43031 +cat >>confdefs.h <<\_ACEOF
43032 +#define PPM_SUPPORTED 1
43033 +_ACEOF
43036 +cat >>confdefs.h <<\_ACEOF
43037 +#define TARGA_SUPPORTED 1
43038 +_ACEOF
43041 +# Include PNG support in cjpeg/djpeg if appropriate.
43043 +# Check whether --with-png or --without-png was given.
43044 +if test "${with_png+set}" = set; then
43045 + withval="$with_png"
43047 else
43048 - A2K_DEPS="ansi2knr"
43049 - COM_A2K=""
43050 + with_png="maybe"
43051 +fi;
43053 +# try to detect whether libpng is present
43054 +OLIBS=$LIBS
43055 +if test "x$with_png" = xmaybe ; then
43056 + if test "${ac_cv_header_png_h+set}" = set; then
43057 + echo "$as_me:$LINENO: checking for png.h" >&5
43058 +echo $ECHO_N "checking for png.h... $ECHO_C" >&6
43059 +if test "${ac_cv_header_png_h+set}" = set; then
43060 + echo $ECHO_N "(cached) $ECHO_C" >&6
43062 +echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
43063 +echo "${ECHO_T}$ac_cv_header_png_h" >&6
43064 +else
43065 + # Is the header compilable?
43066 +echo "$as_me:$LINENO: checking png.h usability" >&5
43067 +echo $ECHO_N "checking png.h usability... $ECHO_C" >&6
43068 +cat >conftest.$ac_ext <<_ACEOF
43069 +/* confdefs.h. */
43070 +_ACEOF
43071 +cat confdefs.h >>conftest.$ac_ext
43072 +cat >>conftest.$ac_ext <<_ACEOF
43073 +/* end confdefs.h. */
43074 +$ac_includes_default
43075 +#include <png.h>
43076 +_ACEOF
43077 +rm -f conftest.$ac_objext
43078 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43079 + (eval $ac_compile) 2>conftest.er1
43080 + ac_status=$?
43081 + grep -v '^ *+' conftest.er1 >conftest.err
43082 + rm -f conftest.er1
43083 + cat conftest.err >&5
43084 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43085 + (exit $ac_status); } &&
43086 + { ac_try='test -z "$ac_c_werror_flag"
43087 + || test ! -s conftest.err'
43088 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43089 + (eval $ac_try) 2>&5
43090 + ac_status=$?
43091 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43092 + (exit $ac_status); }; } &&
43093 + { ac_try='test -s conftest.$ac_objext'
43094 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43095 + (eval $ac_try) 2>&5
43096 + ac_status=$?
43097 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43098 + (exit $ac_status); }; }; then
43099 + ac_header_compiler=yes
43100 +else
43101 + echo "$as_me: failed program was:" >&5
43102 +sed 's/^/| /' conftest.$ac_ext >&5
43104 +ac_header_compiler=no
43106 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43107 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43108 +echo "${ECHO_T}$ac_header_compiler" >&6
43110 -# ansi2knr needs -DBSD if string.h is missing
43111 -if test $ac_cv_header_string_h = no; then
43112 - ANSI2KNRFLAGS="-DBSD"
43113 +# Is the header present?
43114 +echo "$as_me:$LINENO: checking png.h presence" >&5
43115 +echo $ECHO_N "checking png.h presence... $ECHO_C" >&6
43116 +cat >conftest.$ac_ext <<_ACEOF
43117 +/* confdefs.h. */
43118 +_ACEOF
43119 +cat confdefs.h >>conftest.$ac_ext
43120 +cat >>conftest.$ac_ext <<_ACEOF
43121 +/* end confdefs.h. */
43122 +#include <png.h>
43123 +_ACEOF
43124 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43125 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43126 + ac_status=$?
43127 + grep -v '^ *+' conftest.er1 >conftest.err
43128 + rm -f conftest.er1
43129 + cat conftest.err >&5
43130 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43131 + (exit $ac_status); } >/dev/null; then
43132 + if test -s conftest.err; then
43133 + ac_cpp_err=$ac_c_preproc_warn_flag
43134 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43135 + else
43136 + ac_cpp_err=
43137 + fi
43138 else
43139 - ANSI2KNRFLAGS=""
43140 + ac_cpp_err=yes
43142 +if test -z "$ac_cpp_err"; then
43143 + ac_header_preproc=yes
43144 +else
43145 + echo "$as_me: failed program was:" >&5
43146 +sed 's/^/| /' conftest.$ac_ext >&5
43148 -# Substitutions to enable or disable libtool-related stuff
43149 -if test $USELIBTOOL = yes -a $ijg_cv_have_prototypes = yes; then
43150 - COM_LT=""
43151 + ac_header_preproc=no
43153 +rm -f conftest.err conftest.$ac_ext
43154 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43155 +echo "${ECHO_T}$ac_header_preproc" >&6
43157 +# So? What about this header?
43158 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43159 + yes:no: )
43160 + { echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
43161 +echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43162 + { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
43163 +echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
43164 + ac_header_preproc=yes
43165 + ;;
43166 + no:yes:* )
43167 + { echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
43168 +echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
43169 + { echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
43170 +echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
43171 + { echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
43172 +echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
43173 + { echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
43174 +echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
43175 + { echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
43176 +echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
43177 + { echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
43178 +echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
43180 + cat <<\_ASBOX
43181 +## ------------------------------------------ ##
43182 +## Report this to the AC_PACKAGE_NAME lists. ##
43183 +## ------------------------------------------ ##
43184 +_ASBOX
43185 + ) |
43186 + sed "s/^/$as_me: WARNING: /" >&2
43187 + ;;
43188 +esac
43189 +echo "$as_me:$LINENO: checking for png.h" >&5
43190 +echo $ECHO_N "checking for png.h... $ECHO_C" >&6
43191 +if test "${ac_cv_header_png_h+set}" = set; then
43192 + echo $ECHO_N "(cached) $ECHO_C" >&6
43193 else
43194 - COM_LT="# "
43195 + ac_cv_header_png_h=$ac_header_preproc
43197 +echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
43198 +echo "${ECHO_T}$ac_cv_header_png_h" >&6
43200 -if test "x$LTSHARED" != xno; then
43201 - FORCE_INSTALL_LIB="install-lib"
43203 +if test $ac_cv_header_png_h = yes; then
43205 else
43206 - FORCE_INSTALL_LIB=""
43207 + with_png="no"
43210 -# Set up -I directives
43211 -if test "x$srcdir" = x.; then
43212 - INCLUDEFLAGS='-I$(srcdir)'
43215 +if test "x$with_png" = xmaybe ; then
43216 + if test "${ac_cv_header_zlib_h+set}" = set; then
43217 + echo "$as_me:$LINENO: checking for zlib.h" >&5
43218 +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
43219 +if test "${ac_cv_header_zlib_h+set}" = set; then
43220 + echo $ECHO_N "(cached) $ECHO_C" >&6
43222 +echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
43223 +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
43224 else
43225 - INCLUDEFLAGS='-I. -I$(srcdir)'
43226 + # Is the header compilable?
43227 +echo "$as_me:$LINENO: checking zlib.h usability" >&5
43228 +echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
43229 +cat >conftest.$ac_ext <<_ACEOF
43230 +/* confdefs.h. */
43231 +_ACEOF
43232 +cat confdefs.h >>conftest.$ac_ext
43233 +cat >>conftest.$ac_ext <<_ACEOF
43234 +/* end confdefs.h. */
43235 +$ac_includes_default
43236 +#include <zlib.h>
43237 +_ACEOF
43238 +rm -f conftest.$ac_objext
43239 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43240 + (eval $ac_compile) 2>conftest.er1
43241 + ac_status=$?
43242 + grep -v '^ *+' conftest.er1 >conftest.err
43243 + rm -f conftest.er1
43244 + cat conftest.err >&5
43245 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43246 + (exit $ac_status); } &&
43247 + { ac_try='test -z "$ac_c_werror_flag"
43248 + || test ! -s conftest.err'
43249 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43250 + (eval $ac_try) 2>&5
43251 + ac_status=$?
43252 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43253 + (exit $ac_status); }; } &&
43254 + { ac_try='test -s conftest.$ac_objext'
43255 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43256 + (eval $ac_try) 2>&5
43257 + ac_status=$?
43258 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43259 + (exit $ac_status); }; }; then
43260 + ac_header_compiler=yes
43261 +else
43262 + echo "$as_me: failed program was:" >&5
43263 +sed 's/^/| /' conftest.$ac_ext >&5
43265 +ac_header_compiler=no
43267 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
43268 +echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43269 +echo "${ECHO_T}$ac_header_compiler" >&6
43271 +# Is the header present?
43272 +echo "$as_me:$LINENO: checking zlib.h presence" >&5
43273 +echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
43274 +cat >conftest.$ac_ext <<_ACEOF
43275 +/* confdefs.h. */
43276 +_ACEOF
43277 +cat confdefs.h >>conftest.$ac_ext
43278 +cat >>conftest.$ac_ext <<_ACEOF
43279 +/* end confdefs.h. */
43280 +#include <zlib.h>
43281 +_ACEOF
43282 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43283 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
43284 + ac_status=$?
43285 + grep -v '^ *+' conftest.er1 >conftest.err
43286 + rm -f conftest.er1
43287 + cat conftest.err >&5
43288 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43289 + (exit $ac_status); } >/dev/null; then
43290 + if test -s conftest.err; then
43291 + ac_cpp_err=$ac_c_preproc_warn_flag
43292 + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
43293 + else
43294 + ac_cpp_err=
43295 + fi
43296 +else
43297 + ac_cpp_err=yes
43299 +if test -z "$ac_cpp_err"; then
43300 + ac_header_preproc=yes
43301 +else
43302 + echo "$as_me: failed program was:" >&5
43303 +sed 's/^/| /' conftest.$ac_ext >&5
43305 + ac_header_preproc=no
43307 +rm -f conftest.err conftest.$ac_ext
43308 +echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43309 +echo "${ECHO_T}$ac_header_preproc" >&6
43311 -trap '' 1 2 15
43312 +# So? What about this header?
43313 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43314 + yes:no: )
43315 + { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
43316 +echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
43317 + { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
43318 +echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
43319 + ac_header_preproc=yes
43320 + ;;
43321 + no:yes:* )
43322 + { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
43323 +echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
43324 + { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
43325 +echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
43326 + { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
43327 +echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
43328 + { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
43329 +echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
43330 + { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
43331 +echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
43332 + { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
43333 +echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
43335 + cat <<\_ASBOX
43336 +## ------------------------------------------ ##
43337 +## Report this to the AC_PACKAGE_NAME lists. ##
43338 +## ------------------------------------------ ##
43339 +_ASBOX
43340 + ) |
43341 + sed "s/^/$as_me: WARNING: /" >&2
43342 + ;;
43343 +esac
43344 +echo "$as_me:$LINENO: checking for zlib.h" >&5
43345 +echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
43346 +if test "${ac_cv_header_zlib_h+set}" = set; then
43347 + echo $ECHO_N "(cached) $ECHO_C" >&6
43348 +else
43349 + ac_cv_header_zlib_h=$ac_header_preproc
43351 +echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
43352 +echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
43355 +if test $ac_cv_header_zlib_h = yes; then
43357 +else
43358 + with_png="no"
43363 +if test "x$with_png" = xmaybe ; then
43365 +echo "$as_me:$LINENO: checking for deflate in -lz" >&5
43366 +echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
43367 +if test "${ac_cv_lib_z_deflate+set}" = set; then
43368 + echo $ECHO_N "(cached) $ECHO_C" >&6
43369 +else
43370 + ac_check_lib_save_LIBS=$LIBS
43371 +LIBS="-lz $LIBS"
43372 +cat >conftest.$ac_ext <<_ACEOF
43373 +/* confdefs.h. */
43374 +_ACEOF
43375 +cat confdefs.h >>conftest.$ac_ext
43376 +cat >>conftest.$ac_ext <<_ACEOF
43377 +/* end confdefs.h. */
43379 +/* Override any gcc2 internal prototype to avoid an error. */
43380 +#ifdef __cplusplus
43381 +extern "C"
43382 +#endif
43383 +/* We use char because int might match the return type of a gcc2
43384 + builtin and then its argument prototype would still apply. */
43385 +char deflate ();
43386 +int
43387 +main ()
43389 +deflate ();
43391 + return 0;
43393 +_ACEOF
43394 +rm -f conftest.$ac_objext conftest$ac_exeext
43395 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43396 + (eval $ac_link) 2>conftest.er1
43397 + ac_status=$?
43398 + grep -v '^ *+' conftest.er1 >conftest.err
43399 + rm -f conftest.er1
43400 + cat conftest.err >&5
43401 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43402 + (exit $ac_status); } &&
43403 + { ac_try='test -z "$ac_c_werror_flag"
43404 + || test ! -s conftest.err'
43405 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43406 + (eval $ac_try) 2>&5
43407 + ac_status=$?
43408 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43409 + (exit $ac_status); }; } &&
43410 + { ac_try='test -s conftest$ac_exeext'
43411 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43412 + (eval $ac_try) 2>&5
43413 + ac_status=$?
43414 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415 + (exit $ac_status); }; }; then
43416 + ac_cv_lib_z_deflate=yes
43417 +else
43418 + echo "$as_me: failed program was:" >&5
43419 +sed 's/^/| /' conftest.$ac_ext >&5
43421 -trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
43422 +ac_cv_lib_z_deflate=no
43424 +rm -f conftest.err conftest.$ac_objext \
43425 + conftest$ac_exeext conftest.$ac_ext
43426 +LIBS=$ac_check_lib_save_LIBS
43428 +echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
43429 +echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
43430 +if test $ac_cv_lib_z_deflate = yes; then
43431 + cat >>confdefs.h <<_ACEOF
43432 +#define HAVE_LIBZ 1
43433 +_ACEOF
43435 + LIBS="-lz $LIBS"
43437 +else
43438 + with_png="no"
43442 +if test "x$with_png" = xmaybe ; then
43443 + echo "$as_me:$LINENO: checking for png_create_info_struct in -lpng" >&5
43444 +echo $ECHO_N "checking for png_create_info_struct in -lpng... $ECHO_C" >&6
43445 +if test "${ac_cv_lib_png_png_create_info_struct+set}" = set; then
43446 + echo $ECHO_N "(cached) $ECHO_C" >&6
43447 +else
43448 + ac_check_lib_save_LIBS=$LIBS
43449 +LIBS="-lpng -lz -lm $LIBS"
43450 +cat >conftest.$ac_ext <<_ACEOF
43451 +/* confdefs.h. */
43452 +_ACEOF
43453 +cat confdefs.h >>conftest.$ac_ext
43454 +cat >>conftest.$ac_ext <<_ACEOF
43455 +/* end confdefs.h. */
43457 +/* Override any gcc2 internal prototype to avoid an error. */
43458 +#ifdef __cplusplus
43459 +extern "C"
43460 +#endif
43461 +/* We use char because int might match the return type of a gcc2
43462 + builtin and then its argument prototype would still apply. */
43463 +char png_create_info_struct ();
43464 +int
43465 +main ()
43467 +png_create_info_struct ();
43469 + return 0;
43471 +_ACEOF
43472 +rm -f conftest.$ac_objext conftest$ac_exeext
43473 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
43474 + (eval $ac_link) 2>conftest.er1
43475 + ac_status=$?
43476 + grep -v '^ *+' conftest.er1 >conftest.err
43477 + rm -f conftest.er1
43478 + cat conftest.err >&5
43479 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43480 + (exit $ac_status); } &&
43481 + { ac_try='test -z "$ac_c_werror_flag"
43482 + || test ! -s conftest.err'
43483 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43484 + (eval $ac_try) 2>&5
43485 + ac_status=$?
43486 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43487 + (exit $ac_status); }; } &&
43488 + { ac_try='test -s conftest$ac_exeext'
43489 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
43490 + (eval $ac_try) 2>&5
43491 + ac_status=$?
43492 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 + (exit $ac_status); }; }; then
43494 + ac_cv_lib_png_png_create_info_struct=yes
43495 +else
43496 + echo "$as_me: failed program was:" >&5
43497 +sed 's/^/| /' conftest.$ac_ext >&5
43499 +ac_cv_lib_png_png_create_info_struct=no
43501 +rm -f conftest.err conftest.$ac_objext \
43502 + conftest$ac_exeext conftest.$ac_ext
43503 +LIBS=$ac_check_lib_save_LIBS
43505 +echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_create_info_struct" >&5
43506 +echo "${ECHO_T}$ac_cv_lib_png_png_create_info_struct" >&6
43507 +if test $ac_cv_lib_png_png_create_info_struct = yes; then
43508 + with_png="yes"
43509 +else
43510 + with_png="no"
43514 +LIBS=$OLIBS
43516 +if test "x$with_png" = xyes ; then
43518 +cat >>confdefs.h <<\_ACEOF
43519 +#define PNG_SUPPORTED 1
43520 +_ACEOF
43522 + PNGLIBS='-lpng -lz -lm'
43526 +# Extract the library version ID from jpeglib.h.
43527 +echo "$as_me:$LINENO: checking libjpeg version number" >&5
43528 +echo $ECHO_N "checking libjpeg version number... $ECHO_C" >&6
43529 +JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`
43530 +echo "$as_me:$LINENO: result: $JPEG_LIB_VERSION" >&5
43531 +echo "${ECHO_T}$JPEG_LIB_VERSION" >&6
43534 + ac_config_files="$ac_config_files Makefile"
43535 +cat >confcache <<\_ACEOF
43536 +# This file is a shell script that caches the results of configure
43537 +# tests run on this system so they can be shared between configure
43538 +# scripts and configure runs, see configure's option --config-cache.
43539 +# It is not useful on other systems. If it contains results you don't
43540 +# want to keep, you may remove or edit it.
43542 +# config.status only pays attention to the cache file if you give it
43543 +# the --recheck option to rerun configure.
43545 +# `ac_cv_env_foo' variables (set or unset) will be overridden when
43546 +# loading this file, other *unset* `ac_cv_foo' will be assigned the
43547 +# following values.
43549 +_ACEOF
43551 +# The following way of writing the cache mishandles newlines in values,
43552 +# but we know of no workaround that is simple, portable, and efficient.
43553 +# So, don't put newlines in cache variables' values.
43554 +# Ultrix sh set writes to stderr and can't be redirected directly,
43555 +# and sets the high bit in the cache file unless we assign to the vars.
43557 + (set) 2>&1 |
43558 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
43559 + *ac_space=\ *)
43560 + # `set' does not quote correctly, so add quotes (double-quote
43561 + # substitution turns \\\\ into \\, and sed turns \\ into \).
43562 + sed -n \
43563 + "s/'/'\\\\''/g;
43564 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43565 + ;;
43566 + *)
43567 + # `set' quotes correctly as required by POSIX, so do not add quotes.
43568 + sed -n \
43569 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
43570 + ;;
43571 + esac;
43572 +} |
43573 + sed '
43574 + t clear
43575 + : clear
43576 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43577 + t end
43578 + /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43579 + : end' >>confcache
43580 +if diff $cache_file confcache >/dev/null 2>&1; then :; else
43581 + if test -w $cache_file; then
43582 + test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
43583 + cat confcache >$cache_file
43584 + else
43585 + echo "not updating unwritable cache $cache_file"
43586 + fi
43588 +rm -f confcache
43590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43591 # Let make expand exec_prefix.
43592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43594 -# Any assignment to VPATH causes Sun make to only execute
43595 -# the first set of double-colon rules, so remove it if not needed.
43596 -# If there is a colon in the path, we need to keep it.
43597 +# VPATH may cause trouble with some makes, so we remove $(srcdir),
43598 +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
43599 +# trailing colons and then remove the whole line if VPATH becomes empty
43600 +# (actually we leave an empty line to preserve line numbers).
43601 if test "x$srcdir" = x.; then
43602 - ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
43603 + ac_vpsub='/^[ ]*VPATH[ ]*=/{
43604 +s/:*\$(srcdir):*/:/;
43605 +s/:*\${srcdir}:*/:/;
43606 +s/:*@srcdir@:*/:/;
43607 +s/^\([^=]*=[ ]*\):*/\1/;
43608 +s/:*$//;
43609 +s/^[^=]*=[ ]*$//;
43613 -trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
43615 DEFS=-DHAVE_CONFIG_H
43617 -# Without the "./", some shells look in PATH for config.status.
43618 -: ${CONFIG_STATUS=./config.status}
43619 +ac_libobjs=
43620 +ac_ltlibobjs=
43621 +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43622 + # 1. Remove the extension, and $U if already installed.
43623 + ac_i=`echo "$ac_i" |
43624 + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
43625 + # 2. Add them.
43626 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43627 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43628 +done
43629 +LIBOBJS=$ac_libobjs
43631 -echo creating $CONFIG_STATUS
43632 -rm -f $CONFIG_STATUS
43633 -cat > $CONFIG_STATUS <<EOF
43634 -#! /bin/sh
43635 -# Generated automatically by configure.
43636 +LTLIBOBJS=$ac_ltlibobjs
43639 +if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
43640 + { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
43641 +Usually this means the macro was only invoked conditionally." >&5
43642 +echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
43643 +Usually this means the macro was only invoked conditionally." >&2;}
43644 + { (exit 1); exit 1; }; }
43646 +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
43647 + { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
43648 +Usually this means the macro was only invoked conditionally." >&5
43649 +echo "$as_me: error: conditional \"AMDEP\" was never defined.
43650 +Usually this means the macro was only invoked conditionally." >&2;}
43651 + { (exit 1); exit 1; }; }
43653 +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
43654 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
43655 +Usually this means the macro was only invoked conditionally." >&5
43656 +echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
43657 +Usually this means the macro was only invoked conditionally." >&2;}
43658 + { (exit 1); exit 1; }; }
43660 +if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
43661 + { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
43662 +Usually this means the macro was only invoked conditionally." >&5
43663 +echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
43664 +Usually this means the macro was only invoked conditionally." >&2;}
43665 + { (exit 1); exit 1; }; }
43668 +: ${CONFIG_STATUS=./config.status}
43669 +ac_clean_files_save=$ac_clean_files
43670 +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43671 +{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
43672 +echo "$as_me: creating $CONFIG_STATUS" >&6;}
43673 +cat >$CONFIG_STATUS <<_ACEOF
43674 +#! $SHELL
43675 +# Generated by $as_me.
43676 # Run this file to recreate the current configuration.
43677 -# This directory was configured as follows,
43678 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
43680 -# $0 $ac_configure_args
43682 # Compiler output produced by configure, useful for debugging
43683 -# configure, is in ./config.log if it exists.
43684 +# configure, is in config.log if it exists.
43686 -ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
43687 -for ac_option
43688 +debug=false
43689 +ac_cs_recheck=false
43690 +ac_cs_silent=false
43691 +SHELL=\${CONFIG_SHELL-$SHELL}
43692 +_ACEOF
43694 +cat >>$CONFIG_STATUS <<\_ACEOF
43695 +## --------------------- ##
43696 +## M4sh Initialization. ##
43697 +## --------------------- ##
43699 +# Be Bourne compatible
43700 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
43701 + emulate sh
43702 + NULLCMD=:
43703 + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43704 + # is contrary to our usage. Disable this feature.
43705 + alias -g '${1+"$@"}'='"$@"'
43706 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
43707 + set -o posix
43709 +DUALCASE=1; export DUALCASE # for MKS sh
43711 +# Support unset when possible.
43712 +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
43713 + as_unset=unset
43714 +else
43715 + as_unset=false
43719 +# Work around bugs in pre-3.0 UWIN ksh.
43720 +$as_unset ENV MAIL MAILPATH
43721 +PS1='$ '
43722 +PS2='> '
43723 +PS4='+ '
43725 +# NLS nuisances.
43726 +for as_var in \
43727 + LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43728 + LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43729 + LC_TELEPHONE LC_TIME
43731 - case "\$ac_option" in
43732 - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43733 - echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
43734 - exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
43735 - -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
43736 - echo "$CONFIG_STATUS generated by autoconf version 2.12"
43737 - exit 0 ;;
43738 - -help | --help | --hel | --he | --h)
43739 - echo "\$ac_cs_usage"; exit 0 ;;
43740 - *) echo "\$ac_cs_usage"; exit 1 ;;
43741 - esac
43742 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43743 + eval $as_var=C; export $as_var
43744 + else
43745 + $as_unset $as_var
43746 + fi
43747 done
43749 -ac_given_srcdir=$srcdir
43750 -ac_given_INSTALL="$INSTALL"
43751 +# Required to use basename.
43752 +if expr a : '\(a\)' >/dev/null 2>&1; then
43753 + as_expr=expr
43754 +else
43755 + as_expr=false
43758 -trap 'rm -fr `echo "Makefile:makefile.cfg jconfig.h:jconfig.cfg" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
43759 -EOF
43760 -cat >> $CONFIG_STATUS <<EOF
43761 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43762 + as_basename=basename
43763 +else
43764 + as_basename=false
43767 -# Protect against being on the right side of a sed subst in config.status.
43768 -sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
43769 - s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
43770 -$ac_vpsub
43771 -$extrasub
43772 -s%@CFLAGS@%$CFLAGS%g
43773 -s%@CPPFLAGS@%$CPPFLAGS%g
43774 -s%@CXXFLAGS@%$CXXFLAGS%g
43775 -s%@DEFS@%$DEFS%g
43776 -s%@LDFLAGS@%$LDFLAGS%g
43777 -s%@LIBS@%$LIBS%g
43778 -s%@exec_prefix@%$exec_prefix%g
43779 -s%@prefix@%$prefix%g
43780 -s%@program_transform_name@%$program_transform_name%g
43781 -s%@bindir@%$bindir%g
43782 -s%@sbindir@%$sbindir%g
43783 -s%@libexecdir@%$libexecdir%g
43784 -s%@datadir@%$datadir%g
43785 -s%@sysconfdir@%$sysconfdir%g
43786 -s%@sharedstatedir@%$sharedstatedir%g
43787 -s%@localstatedir@%$localstatedir%g
43788 -s%@libdir@%$libdir%g
43789 -s%@includedir@%$includedir%g
43790 -s%@oldincludedir@%$oldincludedir%g
43791 -s%@infodir@%$infodir%g
43792 -s%@mandir@%$mandir%g
43793 -s%@CC@%$CC%g
43794 -s%@CPP@%$CPP%g
43795 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
43796 -s%@INSTALL_DATA@%$INSTALL_DATA%g
43797 -s%@RANLIB@%$RANLIB%g
43798 -s%@LIBTOOL@%$LIBTOOL%g
43799 -s%@O@%$O%g
43800 -s%@A@%$A%g
43801 -s%@LN@%$LN%g
43802 -s%@INSTALL_LIB@%$INSTALL_LIB%g
43803 -s%@MEMORYMGR@%$MEMORYMGR%g
43804 -s%@JPEG_LIB_VERSION@%$JPEG_LIB_VERSION%g
43805 -s%@A2K_DEPS@%$A2K_DEPS%g
43806 -s%@COM_A2K@%$COM_A2K%g
43807 -s%@ANSI2KNRFLAGS@%$ANSI2KNRFLAGS%g
43808 -s%@COM_LT@%$COM_LT%g
43809 -s%@FORCE_INSTALL_LIB@%$FORCE_INSTALL_LIB%g
43810 -s%@INCLUDEFLAGS@%$INCLUDEFLAGS%g
43812 -CEOF
43813 -EOF
43814 +# Name of the executable.
43815 +as_me=`$as_basename "$0" ||
43816 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43817 + X"$0" : 'X\(//\)$' \| \
43818 + X"$0" : 'X\(/\)$' \| \
43819 + . : '\(.\)' 2>/dev/null ||
43820 +echo X/"$0" |
43821 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43822 + /^X\/\(\/\/\)$/{ s//\1/; q; }
43823 + /^X\/\(\/\).*/{ s//\1/; q; }
43824 + s/.*/./; q'`
43827 -cat >> $CONFIG_STATUS <<\EOF
43828 +# PATH needs CR, and LINENO needs CR and PATH.
43829 +# Avoid depending upon Character Ranges.
43830 +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43831 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43832 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43833 +as_cr_digits='0123456789'
43834 +as_cr_alnum=$as_cr_Letters$as_cr_digits
43836 -# Split the substitutions into bite-sized pieces for seds with
43837 -# small command number limits, like on Digital OSF/1 and HP-UX.
43838 -ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
43839 -ac_file=1 # Number of current file.
43840 -ac_beg=1 # First line for current file.
43841 -ac_end=$ac_max_sed_cmds # Line after last line for current file.
43842 -ac_more_lines=:
43843 -ac_sed_cmds=""
43844 -while $ac_more_lines; do
43845 - if test $ac_beg -gt 1; then
43846 - sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
43847 +# The user is always right.
43848 +if test "${PATH_SEPARATOR+set}" != set; then
43849 + echo "#! /bin/sh" >conf$$.sh
43850 + echo "exit 0" >>conf$$.sh
43851 + chmod +x conf$$.sh
43852 + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
43853 + PATH_SEPARATOR=';'
43854 else
43855 - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
43856 + PATH_SEPARATOR=:
43858 - if test ! -s conftest.s$ac_file; then
43859 - ac_more_lines=false
43860 - rm -f conftest.s$ac_file
43861 + rm -f conf$$.sh
43865 + as_lineno_1=$LINENO
43866 + as_lineno_2=$LINENO
43867 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43868 + test "x$as_lineno_1" != "x$as_lineno_2" &&
43869 + test "x$as_lineno_3" = "x$as_lineno_2" || {
43870 + # Find who we are. Look in the path if we contain no path at all
43871 + # relative or not.
43872 + case $0 in
43873 + *[\\/]* ) as_myself=$0 ;;
43874 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43875 +for as_dir in $PATH
43877 + IFS=$as_save_IFS
43878 + test -z "$as_dir" && as_dir=.
43879 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43880 +done
43882 + ;;
43883 + esac
43884 + # We did not find ourselves, most probably we were run as `sh COMMAND'
43885 + # in which case we are not to be found in the path.
43886 + if test "x$as_myself" = x; then
43887 + as_myself=$0
43888 + fi
43889 + if test ! -f "$as_myself"; then
43890 + { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
43891 +echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
43892 + { (exit 1); exit 1; }; }
43893 + fi
43894 + case $CONFIG_SHELL in
43895 + '')
43896 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43897 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43899 + IFS=$as_save_IFS
43900 + test -z "$as_dir" && as_dir=.
43901 + for as_base in sh bash ksh sh5; do
43902 + case $as_dir in
43903 + /*)
43904 + if ("$as_dir/$as_base" -c '
43905 + as_lineno_1=$LINENO
43906 + as_lineno_2=$LINENO
43907 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
43908 + test "x$as_lineno_1" != "x$as_lineno_2" &&
43909 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
43910 + $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
43911 + $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
43912 + CONFIG_SHELL=$as_dir/$as_base
43913 + export CONFIG_SHELL
43914 + exec "$CONFIG_SHELL" "$0" ${1+"$@"}
43915 + fi;;
43916 + esac
43917 + done
43918 +done
43920 + esac
43922 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
43923 + # uniformly replaced by the line number. The first 'sed' inserts a
43924 + # line-number line before each line; the second 'sed' does the real
43925 + # work. The second script uses 'N' to pair each line-number line
43926 + # with the numbered line, and appends trailing '-' during
43927 + # substitution so that $LINENO is not a special case at line end.
43928 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
43929 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
43930 + sed '=' <$as_myself |
43931 + sed '
43933 + s,$,-,
43934 + : loop
43935 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
43936 + t loop
43937 + s,-$,,
43938 + s,^['$as_cr_digits']*\n,,
43939 + ' >$as_me.lineno &&
43940 + chmod +x $as_me.lineno ||
43941 + { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
43942 +echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
43943 + { (exit 1); exit 1; }; }
43945 + # Don't try to exec as it changes $[0], causing all sort of problems
43946 + # (the dirname of $[0] is not the place where we might find the
43947 + # original and so on. Autoconf is especially sensible to this).
43948 + . ./$as_me.lineno
43949 + # Exit status is that of the last command.
43950 + exit
43954 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43955 + *c*,-n*) ECHO_N= ECHO_C='
43956 +' ECHO_T=' ' ;;
43957 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43958 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43959 +esac
43961 +if expr a : '\(a\)' >/dev/null 2>&1; then
43962 + as_expr=expr
43963 +else
43964 + as_expr=false
43967 +rm -f conf$$ conf$$.exe conf$$.file
43968 +echo >conf$$.file
43969 +if ln -s conf$$.file conf$$ 2>/dev/null; then
43970 + # We could just check for DJGPP; but this test a) works b) is more generic
43971 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
43972 + if test -f conf$$.exe; then
43973 + # Don't use ln at all; we don't have any links
43974 + as_ln_s='cp -p'
43975 else
43976 - if test -z "$ac_sed_cmds"; then
43977 - ac_sed_cmds="sed -f conftest.s$ac_file"
43978 - else
43979 - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
43980 - fi
43981 - ac_file=`expr $ac_file + 1`
43982 - ac_beg=$ac_end
43983 - ac_end=`expr $ac_end + $ac_max_sed_cmds`
43984 + as_ln_s='ln -s'
43986 +elif ln conf$$.file conf$$ 2>/dev/null; then
43987 + as_ln_s=ln
43988 +else
43989 + as_ln_s='cp -p'
43991 +rm -f conf$$ conf$$.exe conf$$.file
43993 +if mkdir -p . 2>/dev/null; then
43994 + as_mkdir_p=:
43995 +else
43996 + test -d ./-p && rmdir ./-p
43997 + as_mkdir_p=false
44000 +as_executable_p="test -f"
44002 +# Sed expression to map a string onto a valid CPP name.
44003 +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
44005 +# Sed expression to map a string onto a valid variable name.
44006 +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
44009 +# IFS
44010 +# We need space, tab and new line, in precisely that order.
44011 +as_nl='
44013 +IFS=" $as_nl"
44015 +# CDPATH.
44016 +$as_unset CDPATH
44018 +exec 6>&1
44020 +# Open the log real soon, to keep \$[0] and so on meaningful, and to
44021 +# report actual input values of CONFIG_FILES etc. instead of their
44022 +# values after options handling. Logging --version etc. is OK.
44023 +exec 5>>config.log
44025 + echo
44026 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44027 +## Running $as_me. ##
44028 +_ASBOX
44029 +} >&5
44030 +cat >&5 <<_CSEOF
44032 +This file was extended by $as_me, which was
44033 +generated by GNU Autoconf 2.59. Invocation command line was
44035 + CONFIG_FILES = $CONFIG_FILES
44036 + CONFIG_HEADERS = $CONFIG_HEADERS
44037 + CONFIG_LINKS = $CONFIG_LINKS
44038 + CONFIG_COMMANDS = $CONFIG_COMMANDS
44039 + $ $0 $@
44041 +_CSEOF
44042 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
44043 +echo >&5
44044 +_ACEOF
44046 +# Files that config.status was made for.
44047 +if test -n "$ac_config_files"; then
44048 + echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
44051 +if test -n "$ac_config_headers"; then
44052 + echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
44055 +if test -n "$ac_config_links"; then
44056 + echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
44059 +if test -n "$ac_config_commands"; then
44060 + echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
44063 +cat >>$CONFIG_STATUS <<\_ACEOF
44065 +ac_cs_usage="\
44066 +\`$as_me' instantiates files from templates according to the
44067 +current configuration.
44069 +Usage: $0 [OPTIONS] [FILE]...
44071 + -h, --help print this help, then exit
44072 + -V, --version print version number, then exit
44073 + -q, --quiet do not print progress messages
44074 + -d, --debug don't remove temporary files
44075 + --recheck update $as_me by reconfiguring in the same conditions
44076 + --file=FILE[:TEMPLATE]
44077 + instantiate the configuration file FILE
44078 + --header=FILE[:TEMPLATE]
44079 + instantiate the configuration header FILE
44081 +Configuration files:
44082 +$config_files
44084 +Configuration headers:
44085 +$config_headers
44087 +Configuration commands:
44088 +$config_commands
44090 +Report bugs to <bug-autoconf@gnu.org>."
44091 +_ACEOF
44093 +cat >>$CONFIG_STATUS <<_ACEOF
44094 +ac_cs_version="\\
44095 +config.status
44096 +configured by $0, generated by GNU Autoconf 2.59,
44097 + with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
44099 +Copyright (C) 2003 Free Software Foundation, Inc.
44100 +This config.status script is free software; the Free Software Foundation
44101 +gives unlimited permission to copy, distribute and modify it."
44102 +srcdir=$srcdir
44103 +INSTALL="$INSTALL"
44104 +_ACEOF
44106 +cat >>$CONFIG_STATUS <<\_ACEOF
44107 +# If no file are specified by the user, then we need to provide default
44108 +# value. By we need to know if files were specified by the user.
44109 +ac_need_defaults=:
44110 +while test $# != 0
44112 + case $1 in
44113 + --*=*)
44114 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
44115 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44116 + ac_shift=:
44117 + ;;
44118 + -*)
44119 + ac_option=$1
44120 + ac_optarg=$2
44121 + ac_shift=shift
44122 + ;;
44123 + *) # This is not an option, so the user has probably given explicit
44124 + # arguments.
44125 + ac_option=$1
44126 + ac_need_defaults=false;;
44127 + esac
44129 + case $ac_option in
44130 + # Handling of the options.
44131 +_ACEOF
44132 +cat >>$CONFIG_STATUS <<\_ACEOF
44133 + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
44134 + ac_cs_recheck=: ;;
44135 + --version | --vers* | -V )
44136 + echo "$ac_cs_version"; exit 0 ;;
44137 + --he | --h)
44138 + # Conflict between --help and --header
44139 + { { echo "$as_me:$LINENO: error: ambiguous option: $1
44140 +Try \`$0 --help' for more information." >&5
44141 +echo "$as_me: error: ambiguous option: $1
44142 +Try \`$0 --help' for more information." >&2;}
44143 + { (exit 1); exit 1; }; };;
44144 + --help | --hel | -h )
44145 + echo "$ac_cs_usage"; exit 0 ;;
44146 + --debug | --d* | -d )
44147 + debug=: ;;
44148 + --file | --fil | --fi | --f )
44149 + $ac_shift
44150 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44151 + ac_need_defaults=false;;
44152 + --header | --heade | --head | --hea )
44153 + $ac_shift
44154 + CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
44155 + ac_need_defaults=false;;
44156 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
44157 + | -silent | --silent | --silen | --sile | --sil | --si | --s)
44158 + ac_cs_silent=: ;;
44160 + # This is an error.
44161 + -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
44162 +Try \`$0 --help' for more information." >&5
44163 +echo "$as_me: error: unrecognized option: $1
44164 +Try \`$0 --help' for more information." >&2;}
44165 + { (exit 1); exit 1; }; } ;;
44167 + *) ac_config_targets="$ac_config_targets $1" ;;
44169 + esac
44170 + shift
44171 done
44172 -if test -z "$ac_sed_cmds"; then
44173 - ac_sed_cmds=cat
44175 +ac_configure_extra_args=
44177 +if $ac_cs_silent; then
44178 + exec 6>/dev/null
44179 + ac_configure_extra_args="$ac_configure_extra_args --silent"
44181 -EOF
44183 -cat >> $CONFIG_STATUS <<EOF
44184 +_ACEOF
44185 +cat >>$CONFIG_STATUS <<_ACEOF
44186 +if \$ac_cs_recheck; then
44187 + echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
44188 + exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
44191 -CONFIG_FILES=\${CONFIG_FILES-"Makefile:makefile.cfg"}
44192 -EOF
44193 -cat >> $CONFIG_STATUS <<\EOF
44194 -for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
44195 - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44196 - case "$ac_file" in
44197 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
44198 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44199 - *) ac_file_in="${ac_file}.in" ;;
44200 +_ACEOF
44202 +cat >>$CONFIG_STATUS <<_ACEOF
44204 +# INIT-COMMANDS section.
44207 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
44209 +_ACEOF
44213 +cat >>$CONFIG_STATUS <<\_ACEOF
44214 +for ac_config_target in $ac_config_targets
44216 + case "$ac_config_target" in
44217 + # Handling of arguments.
44218 + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44219 + "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
44220 + "jconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS jconfig.h" ;;
44221 + "jconfig_api.h" ) CONFIG_HEADERS="$CONFIG_HEADERS jconfig_api.h" ;;
44222 + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
44223 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
44224 + { (exit 1); exit 1; }; };;
44225 esac
44226 +done
44228 - # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
44229 +# If the user did not use the arguments to specify the items to instantiate,
44230 +# then the envvar interface is used. Set only those that are not.
44231 +# We use the long form for the default assignment because of an extremely
44232 +# bizarre bug on SunOS 4.1.3.
44233 +if $ac_need_defaults; then
44234 + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44235 + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44236 + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44239 - # Remove last slash and all that follows it. Not all systems have dirname.
44240 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
44241 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
44242 - # The file is in a subdirectory.
44243 - test ! -d "$ac_dir" && mkdir "$ac_dir"
44244 - ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
44245 - # A "../" for each directory in $ac_dir_suffix.
44246 - ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
44247 - else
44248 - ac_dir_suffix= ac_dots=
44249 +# Have a temporary directory for convenience. Make it in the build tree
44250 +# simply because there is no reason to put it here, and in addition,
44251 +# creating and moving files from /tmp can sometimes cause problems.
44252 +# Create a temporary directory, and hook for its removal unless debugging.
44253 +$debug ||
44255 + trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
44256 + trap '{ (exit 1); exit 1; }' 1 2 13 15
44259 +# Create a (secure) tmp directory for tmp files.
44262 + tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
44263 + test -n "$tmp" && test -d "$tmp"
44264 +} ||
44266 + tmp=./confstat$$-$RANDOM
44267 + (umask 077 && mkdir $tmp)
44268 +} ||
44270 + echo "$me: cannot create a temporary directory in ." >&2
44271 + { (exit 1); exit 1; }
44274 +_ACEOF
44276 +cat >>$CONFIG_STATUS <<_ACEOF
44279 +# CONFIG_FILES section.
44282 +# No need to generate the scripts if there are no CONFIG_FILES.
44283 +# This happens for instance when ./config.status config.h
44284 +if test -n "\$CONFIG_FILES"; then
44285 + # Protect against being on the right side of a sed subst in config.status.
44286 + sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
44287 + s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
44288 +s,@SHELL@,$SHELL,;t t
44289 +s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
44290 +s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
44291 +s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
44292 +s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
44293 +s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
44294 +s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
44295 +s,@exec_prefix@,$exec_prefix,;t t
44296 +s,@prefix@,$prefix,;t t
44297 +s,@program_transform_name@,$program_transform_name,;t t
44298 +s,@bindir@,$bindir,;t t
44299 +s,@sbindir@,$sbindir,;t t
44300 +s,@libexecdir@,$libexecdir,;t t
44301 +s,@datadir@,$datadir,;t t
44302 +s,@sysconfdir@,$sysconfdir,;t t
44303 +s,@sharedstatedir@,$sharedstatedir,;t t
44304 +s,@localstatedir@,$localstatedir,;t t
44305 +s,@libdir@,$libdir,;t t
44306 +s,@includedir@,$includedir,;t t
44307 +s,@oldincludedir@,$oldincludedir,;t t
44308 +s,@infodir@,$infodir,;t t
44309 +s,@mandir@,$mandir,;t t
44310 +s,@build_alias@,$build_alias,;t t
44311 +s,@host_alias@,$host_alias,;t t
44312 +s,@target_alias@,$target_alias,;t t
44313 +s,@DEFS@,$DEFS,;t t
44314 +s,@ECHO_C@,$ECHO_C,;t t
44315 +s,@ECHO_N@,$ECHO_N,;t t
44316 +s,@ECHO_T@,$ECHO_T,;t t
44317 +s,@LIBS@,$LIBS,;t t
44318 +s,@build@,$build,;t t
44319 +s,@build_cpu@,$build_cpu,;t t
44320 +s,@build_vendor@,$build_vendor,;t t
44321 +s,@build_os@,$build_os,;t t
44322 +s,@host@,$host,;t t
44323 +s,@host_cpu@,$host_cpu,;t t
44324 +s,@host_vendor@,$host_vendor,;t t
44325 +s,@host_os@,$host_os,;t t
44326 +s,@target@,$target,;t t
44327 +s,@target_cpu@,$target_cpu,;t t
44328 +s,@target_vendor@,$target_vendor,;t t
44329 +s,@target_os@,$target_os,;t t
44330 +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
44331 +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
44332 +s,@INSTALL_DATA@,$INSTALL_DATA,;t t
44333 +s,@CYGPATH_W@,$CYGPATH_W,;t t
44334 +s,@PACKAGE@,$PACKAGE,;t t
44335 +s,@VERSION@,$VERSION,;t t
44336 +s,@ACLOCAL@,$ACLOCAL,;t t
44337 +s,@AUTOCONF@,$AUTOCONF,;t t
44338 +s,@AUTOMAKE@,$AUTOMAKE,;t t
44339 +s,@AUTOHEADER@,$AUTOHEADER,;t t
44340 +s,@MAKEINFO@,$MAKEINFO,;t t
44341 +s,@install_sh@,$install_sh,;t t
44342 +s,@STRIP@,$STRIP,;t t
44343 +s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
44344 +s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
44345 +s,@mkdir_p@,$mkdir_p,;t t
44346 +s,@AWK@,$AWK,;t t
44347 +s,@SET_MAKE@,$SET_MAKE,;t t
44348 +s,@am__leading_dot@,$am__leading_dot,;t t
44349 +s,@AMTAR@,$AMTAR,;t t
44350 +s,@am__tar@,$am__tar,;t t
44351 +s,@am__untar@,$am__untar,;t t
44352 +s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
44353 +s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
44354 +s,@MAINT@,$MAINT,;t t
44355 +s,@CC@,$CC,;t t
44356 +s,@CFLAGS@,$CFLAGS,;t t
44357 +s,@LDFLAGS@,$LDFLAGS,;t t
44358 +s,@CPPFLAGS@,$CPPFLAGS,;t t
44359 +s,@ac_ct_CC@,$ac_ct_CC,;t t
44360 +s,@EXEEXT@,$EXEEXT,;t t
44361 +s,@OBJEXT@,$OBJEXT,;t t
44362 +s,@DEPDIR@,$DEPDIR,;t t
44363 +s,@am__include@,$am__include,;t t
44364 +s,@am__quote@,$am__quote,;t t
44365 +s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
44366 +s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
44367 +s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
44368 +s,@CCDEPMODE@,$CCDEPMODE,;t t
44369 +s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
44370 +s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
44371 +s,@CPP@,$CPP,;t t
44372 +s,@LN_S@,$LN_S,;t t
44373 +s,@EGREP@,$EGREP,;t t
44374 +s,@ECHO@,$ECHO,;t t
44375 +s,@AR@,$AR,;t t
44376 +s,@ac_ct_AR@,$ac_ct_AR,;t t
44377 +s,@RANLIB@,$RANLIB,;t t
44378 +s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
44379 +s,@DLLTOOL@,$DLLTOOL,;t t
44380 +s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
44381 +s,@AS@,$AS,;t t
44382 +s,@ac_ct_AS@,$ac_ct_AS,;t t
44383 +s,@OBJDUMP@,$OBJDUMP,;t t
44384 +s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
44385 +s,@CXX@,$CXX,;t t
44386 +s,@CXXFLAGS@,$CXXFLAGS,;t t
44387 +s,@ac_ct_CXX@,$ac_ct_CXX,;t t
44388 +s,@CXXDEPMODE@,$CXXDEPMODE,;t t
44389 +s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
44390 +s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
44391 +s,@CXXCPP@,$CXXCPP,;t t
44392 +s,@F77@,$F77,;t t
44393 +s,@FFLAGS@,$FFLAGS,;t t
44394 +s,@ac_ct_F77@,$ac_ct_F77,;t t
44395 +s,@LIBTOOL@,$LIBTOOL,;t t
44396 +s,@MEMORYMGR@,$MEMORYMGR,;t t
44397 +s,@PNGLIBS@,$PNGLIBS,;t t
44398 +s,@JPEG_LIB_VERSION@,$JPEG_LIB_VERSION,;t t
44399 +s,@LIBOBJS@,$LIBOBJS,;t t
44400 +s,@LTLIBOBJS@,$LTLIBOBJS,;t t
44401 +CEOF
44403 +_ACEOF
44405 + cat >>$CONFIG_STATUS <<\_ACEOF
44406 + # Split the substitutions into bite-sized pieces for seds with
44407 + # small command number limits, like on Digital OSF/1 and HP-UX.
44408 + ac_max_sed_lines=48
44409 + ac_sed_frag=1 # Number of current file.
44410 + ac_beg=1 # First line for current file.
44411 + ac_end=$ac_max_sed_lines # Line after last line for current file.
44412 + ac_more_lines=:
44413 + ac_sed_cmds=
44414 + while $ac_more_lines; do
44415 + if test $ac_beg -gt 1; then
44416 + sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44417 + else
44418 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44419 + fi
44420 + if test ! -s $tmp/subs.frag; then
44421 + ac_more_lines=false
44422 + else
44423 + # The purpose of the label and of the branching condition is to
44424 + # speed up the sed processing (if there are no `@' at all, there
44425 + # is no need to browse any of the substitutions).
44426 + # These are the two extra sed commands mentioned above.
44427 + (echo ':t
44428 + /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
44429 + if test -z "$ac_sed_cmds"; then
44430 + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
44431 + else
44432 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
44433 + fi
44434 + ac_sed_frag=`expr $ac_sed_frag + 1`
44435 + ac_beg=$ac_end
44436 + ac_end=`expr $ac_end + $ac_max_sed_lines`
44437 + fi
44438 + done
44439 + if test -z "$ac_sed_cmds"; then
44440 + ac_sed_cmds=cat
44442 +fi # test -n "$CONFIG_FILES"
44444 - case "$ac_given_srcdir" in
44445 - .) srcdir=.
44446 - if test -z "$ac_dots"; then top_srcdir=.
44447 - else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
44448 - /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
44449 - *) # Relative path.
44450 - srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
44451 - top_srcdir="$ac_dots$ac_given_srcdir" ;;
44452 +_ACEOF
44453 +cat >>$CONFIG_STATUS <<\_ACEOF
44454 +for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
44455 + # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44456 + case $ac_file in
44457 + - | *:- | *:-:* ) # input from stdin
44458 + cat >$tmp/stdin
44459 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44460 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44461 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44462 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44463 + * ) ac_file_in=$ac_file.in ;;
44464 esac
44466 - case "$ac_given_INSTALL" in
44467 - [/$]*) INSTALL="$ac_given_INSTALL" ;;
44468 - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
44469 - esac
44470 + # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
44471 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44472 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44473 + X"$ac_file" : 'X\(//\)[^/]' \| \
44474 + X"$ac_file" : 'X\(//\)$' \| \
44475 + X"$ac_file" : 'X\(/\)' \| \
44476 + . : '\(.\)' 2>/dev/null ||
44477 +echo X"$ac_file" |
44478 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44479 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44480 + /^X\(\/\/\)$/{ s//\1/; q; }
44481 + /^X\(\/\).*/{ s//\1/; q; }
44482 + s/.*/./; q'`
44483 + { if $as_mkdir_p; then
44484 + mkdir -p "$ac_dir"
44485 + else
44486 + as_dir="$ac_dir"
44487 + as_dirs=
44488 + while test ! -d "$as_dir"; do
44489 + as_dirs="$as_dir $as_dirs"
44490 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
44491 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44492 + X"$as_dir" : 'X\(//\)[^/]' \| \
44493 + X"$as_dir" : 'X\(//\)$' \| \
44494 + X"$as_dir" : 'X\(/\)' \| \
44495 + . : '\(.\)' 2>/dev/null ||
44496 +echo X"$as_dir" |
44497 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44498 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44499 + /^X\(\/\/\)$/{ s//\1/; q; }
44500 + /^X\(\/\).*/{ s//\1/; q; }
44501 + s/.*/./; q'`
44502 + done
44503 + test ! -n "$as_dirs" || mkdir $as_dirs
44504 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44505 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44506 + { (exit 1); exit 1; }; }; }
44508 + ac_builddir=.
44510 +if test "$ac_dir" != .; then
44511 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
44512 + # A "../" for each directory in $ac_dir_suffix.
44513 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
44514 +else
44515 + ac_dir_suffix= ac_top_builddir=
44518 +case $srcdir in
44519 + .) # No --srcdir option. We are building in place.
44520 + ac_srcdir=.
44521 + if test -z "$ac_top_builddir"; then
44522 + ac_top_srcdir=.
44523 + else
44524 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
44525 + fi ;;
44526 + [\\/]* | ?:[\\/]* ) # Absolute path.
44527 + ac_srcdir=$srcdir$ac_dir_suffix;
44528 + ac_top_srcdir=$srcdir ;;
44529 + *) # Relative path.
44530 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
44531 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
44532 +esac
44534 +# Do not use `cd foo && pwd` to compute absolute paths, because
44535 +# the directories may not exist.
44536 +case `pwd` in
44537 +.) ac_abs_builddir="$ac_dir";;
44539 + case "$ac_dir" in
44540 + .) ac_abs_builddir=`pwd`;;
44541 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
44542 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
44543 + esac;;
44544 +esac
44545 +case $ac_abs_builddir in
44546 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
44548 + case ${ac_top_builddir}. in
44549 + .) ac_abs_top_builddir=$ac_abs_builddir;;
44550 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
44551 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
44552 + esac;;
44553 +esac
44554 +case $ac_abs_builddir in
44555 +.) ac_abs_srcdir=$ac_srcdir;;
44557 + case $ac_srcdir in
44558 + .) ac_abs_srcdir=$ac_abs_builddir;;
44559 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
44560 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
44561 + esac;;
44562 +esac
44563 +case $ac_abs_builddir in
44564 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
44566 + case $ac_top_srcdir in
44567 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
44568 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
44569 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
44570 + esac;;
44571 +esac
44573 - echo creating "$ac_file"
44574 - rm -f "$ac_file"
44575 - configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
44576 - case "$ac_file" in
44577 - *Makefile*) ac_comsub="1i\\
44578 -# $configure_input" ;;
44579 - *) ac_comsub= ;;
44581 + case $INSTALL in
44582 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44583 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
44584 esac
44586 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
44587 - sed -e "$ac_comsub
44588 -s%@configure_input@%$configure_input%g
44589 -s%@srcdir@%$srcdir%g
44590 -s%@top_srcdir@%$top_srcdir%g
44591 -s%@INSTALL@%$INSTALL%g
44592 -" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
44593 -fi; done
44594 -rm -f conftest.s*
44595 + if test x"$ac_file" != x-; then
44596 + { echo "$as_me:$LINENO: creating $ac_file" >&5
44597 +echo "$as_me: creating $ac_file" >&6;}
44598 + rm -f "$ac_file"
44599 + fi
44600 + # Let's still pretend it is `configure' which instantiates (i.e., don't
44601 + # use $as_me), people would be surprised to read:
44602 + # /* config.h. Generated by config.status. */
44603 + if test x"$ac_file" = x-; then
44604 + configure_input=
44605 + else
44606 + configure_input="$ac_file. "
44607 + fi
44608 + configure_input=$configure_input"Generated from `echo $ac_file_in |
44609 + sed 's,.*/,,'` by configure."
44611 + # First look for the input files in the build tree, otherwise in the
44612 + # src tree.
44613 + ac_file_inputs=`IFS=:
44614 + for f in $ac_file_in; do
44615 + case $f in
44616 + -) echo $tmp/stdin ;;
44617 + [\\/$]*)
44618 + # Absolute (can't be DOS-style, as IFS=:)
44619 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44620 +echo "$as_me: error: cannot find input file: $f" >&2;}
44621 + { (exit 1); exit 1; }; }
44622 + echo "$f";;
44623 + *) # Relative
44624 + if test -f "$f"; then
44625 + # Build tree
44626 + echo "$f"
44627 + elif test -f "$srcdir/$f"; then
44628 + # Source tree
44629 + echo "$srcdir/$f"
44630 + else
44631 + # /dev/null tree
44632 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44633 +echo "$as_me: error: cannot find input file: $f" >&2;}
44634 + { (exit 1); exit 1; }; }
44635 + fi;;
44636 + esac
44637 + done` || { (exit 1); exit 1; }
44638 +_ACEOF
44639 +cat >>$CONFIG_STATUS <<_ACEOF
44640 + sed "$ac_vpsub
44641 +$extrasub
44642 +_ACEOF
44643 +cat >>$CONFIG_STATUS <<\_ACEOF
44645 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44646 +s,@configure_input@,$configure_input,;t t
44647 +s,@srcdir@,$ac_srcdir,;t t
44648 +s,@abs_srcdir@,$ac_abs_srcdir,;t t
44649 +s,@top_srcdir@,$ac_top_srcdir,;t t
44650 +s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
44651 +s,@builddir@,$ac_builddir,;t t
44652 +s,@abs_builddir@,$ac_abs_builddir,;t t
44653 +s,@top_builddir@,$ac_top_builddir,;t t
44654 +s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
44655 +s,@INSTALL@,$ac_INSTALL,;t t
44656 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
44657 + rm -f $tmp/stdin
44658 + if test x"$ac_file" != x-; then
44659 + mv $tmp/out $ac_file
44660 + else
44661 + cat $tmp/out
44662 + rm -f $tmp/out
44663 + fi
44665 +done
44666 +_ACEOF
44667 +cat >>$CONFIG_STATUS <<\_ACEOF
44670 +# CONFIG_HEADER section.
44673 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
44674 # NAME is the cpp macro being defined and VALUE is the value it is being given.
44676 # ac_d sets the value in "#define NAME VALUE" lines.
44677 -ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44678 -ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
44679 -ac_dC='\3'
44680 -ac_dD='%g'
44681 -# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
44682 -ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
44683 -ac_uB='\([ ]\)%\1#\2define\3'
44684 +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
44685 +ac_dB='[ ].*$,\1#\2'
44686 +ac_dC=' '
44687 +ac_dD=',;t'
44688 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
44689 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
44690 +ac_uB='$,\1#\2define\3'
44691 ac_uC=' '
44692 -ac_uD='\4%g'
44693 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
44694 -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
44695 -ac_eB='$%\1#\2define\3'
44696 -ac_eC=' '
44697 -ac_eD='%g'
44699 -if test "${CONFIG_HEADERS+set}" != set; then
44700 -EOF
44701 -cat >> $CONFIG_STATUS <<EOF
44702 - CONFIG_HEADERS="jconfig.h:jconfig.cfg"
44703 -EOF
44704 -cat >> $CONFIG_STATUS <<\EOF
44706 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
44707 +ac_uD=',;t'
44709 +for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
44710 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
44711 - case "$ac_file" in
44712 - *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
44713 - ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
44714 - *) ac_file_in="${ac_file}.in" ;;
44715 + case $ac_file in
44716 + - | *:- | *:-:* ) # input from stdin
44717 + cat >$tmp/stdin
44718 + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44719 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44720 + *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
44721 + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
44722 + * ) ac_file_in=$ac_file.in ;;
44723 esac
44725 - echo creating $ac_file
44726 + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
44727 +echo "$as_me: creating $ac_file" >&6;}
44729 - rm -f conftest.frag conftest.in conftest.out
44730 - ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
44731 - cat $ac_file_inputs > conftest.in
44732 + # First look for the input files in the build tree, otherwise in the
44733 + # src tree.
44734 + ac_file_inputs=`IFS=:
44735 + for f in $ac_file_in; do
44736 + case $f in
44737 + -) echo $tmp/stdin ;;
44738 + [\\/$]*)
44739 + # Absolute (can't be DOS-style, as IFS=:)
44740 + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44741 +echo "$as_me: error: cannot find input file: $f" >&2;}
44742 + { (exit 1); exit 1; }; }
44743 + # Do quote $f, to prevent DOS paths from being IFS'd.
44744 + echo "$f";;
44745 + *) # Relative
44746 + if test -f "$f"; then
44747 + # Build tree
44748 + echo "$f"
44749 + elif test -f "$srcdir/$f"; then
44750 + # Source tree
44751 + echo "$srcdir/$f"
44752 + else
44753 + # /dev/null tree
44754 + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
44755 +echo "$as_me: error: cannot find input file: $f" >&2;}
44756 + { (exit 1); exit 1; }; }
44757 + fi;;
44758 + esac
44759 + done` || { (exit 1); exit 1; }
44760 + # Remove the trailing spaces.
44761 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
44763 -EOF
44764 +_ACEOF
44766 -# Transform confdefs.h into a sed script conftest.vals that substitutes
44767 -# the proper values into config.h.in to produce config.h. And first:
44768 -# Protect against being on the right side of a sed subst in config.status.
44769 -# Protect against being in an unquoted here document in config.status.
44770 -rm -f conftest.vals
44771 -cat > conftest.hdr <<\EOF
44772 -s/[\\&%]/\\&/g
44773 -s%[\\$`]%\\&%g
44774 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
44775 -s%ac_d%ac_u%gp
44776 -s%ac_u%ac_e%gp
44777 -EOF
44778 -sed -n -f conftest.hdr confdefs.h > conftest.vals
44779 -rm -f conftest.hdr
44780 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
44781 +# `conftest.undefs', that substitutes the proper values into
44782 +# config.h.in to produce config.h. The first handles `#define'
44783 +# templates, and the second `#undef' templates.
44784 +# And first: Protect against being on the right side of a sed subst in
44785 +# config.status. Protect against being in an unquoted here document
44786 +# in config.status.
44787 +rm -f conftest.defines conftest.undefs
44788 +# Using a here document instead of a string reduces the quoting nightmare.
44789 +# Putting comments in sed scripts is not portable.
44791 +# `end' is used to avoid that the second main sed command (meant for
44792 +# 0-ary CPP macros) applies to n-ary macro definitions.
44793 +# See the Autoconf documentation for `clear'.
44794 +cat >confdef2sed.sed <<\_ACEOF
44795 +s/[\\&,]/\\&/g
44796 +s,[\\$`],\\&,g
44797 +t clear
44798 +: clear
44799 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
44800 +t end
44801 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
44802 +: end
44803 +_ACEOF
44804 +# If some macros were called several times there might be several times
44805 +# the same #defines, which is useless. Nevertheless, we may not want to
44806 +# sort them, since we want the *last* AC-DEFINE to be honored.
44807 +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
44808 +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
44809 +rm -f confdef2sed.sed
44811 # This sed command replaces #undef with comments. This is necessary, for
44812 # example, in the case of _POSIX_SOURCE, which is predefined and required
44813 # on some systems where configure will not decide to define it.
44814 -cat >> conftest.vals <<\EOF
44815 -EOF
44816 +cat >>conftest.undefs <<\_ACEOF
44817 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
44818 +_ACEOF
44820 -# Break up conftest.vals because some shells have a limit on
44821 -# the size of here documents, and old seds have small limits too.
44822 +# Break up conftest.defines because some shells have a limit on the size
44823 +# of here documents, and old seds have small limits too (100 cmds).
44824 +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
44825 +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
44826 +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
44827 +echo ' :' >>$CONFIG_STATUS
44828 +rm -f conftest.tail
44829 +while grep . conftest.defines >/dev/null
44831 + # Write a limited-size here document to $tmp/defines.sed.
44832 + echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
44833 + # Speed up: don't consider the non `#define' lines.
44834 + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
44835 + # Work around the forget-to-reset-the-flag bug.
44836 + echo 't clr' >>$CONFIG_STATUS
44837 + echo ': clr' >>$CONFIG_STATUS
44838 + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
44839 + echo 'CEOF
44840 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
44841 + rm -f $tmp/in
44842 + mv $tmp/out $tmp/in
44843 +' >>$CONFIG_STATUS
44844 + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
44845 + rm -f conftest.defines
44846 + mv conftest.tail conftest.defines
44847 +done
44848 +rm -f conftest.defines
44849 +echo ' fi # grep' >>$CONFIG_STATUS
44850 +echo >>$CONFIG_STATUS
44852 +# Break up conftest.undefs because some shells have a limit on the size
44853 +# of here documents, and old seds have small limits too (100 cmds).
44854 +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
44855 rm -f conftest.tail
44856 -while :
44857 +while grep . conftest.undefs >/dev/null
44859 - ac_lines=`grep -c . conftest.vals`
44860 - # grep -c gives empty output for an empty file on some AIX systems.
44861 - if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
44862 - # Write a limited-size here document to conftest.frag.
44863 - echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
44864 - sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
44865 + # Write a limited-size here document to $tmp/undefs.sed.
44866 + echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
44867 + # Speed up: don't consider the non `#undef'
44868 + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
44869 + # Work around the forget-to-reset-the-flag bug.
44870 + echo 't clr' >>$CONFIG_STATUS
44871 + echo ': clr' >>$CONFIG_STATUS
44872 + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
44873 echo 'CEOF
44874 - sed -f conftest.frag conftest.in > conftest.out
44875 - rm -f conftest.in
44876 - mv conftest.out conftest.in
44877 -' >> $CONFIG_STATUS
44878 - sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
44879 - rm -f conftest.vals
44880 - mv conftest.tail conftest.vals
44881 -done
44882 -rm -f conftest.vals
44884 -cat >> $CONFIG_STATUS <<\EOF
44885 - rm -f conftest.frag conftest.h
44886 - echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
44887 - cat conftest.in >> conftest.h
44888 - rm -f conftest.in
44889 - if cmp -s $ac_file conftest.h 2>/dev/null; then
44890 - echo "$ac_file is unchanged"
44891 - rm -f conftest.h
44892 - else
44893 - # Remove last slash and all that follows it. Not all systems have dirname.
44894 - ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
44895 - if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
44896 - # The file is in a subdirectory.
44897 - test ! -d "$ac_dir" && mkdir "$ac_dir"
44898 + sed -f $tmp/undefs.sed $tmp/in >$tmp/out
44899 + rm -f $tmp/in
44900 + mv $tmp/out $tmp/in
44901 +' >>$CONFIG_STATUS
44902 + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
44903 + rm -f conftest.undefs
44904 + mv conftest.tail conftest.undefs
44905 +done
44906 +rm -f conftest.undefs
44908 +cat >>$CONFIG_STATUS <<\_ACEOF
44909 + # Let's still pretend it is `configure' which instantiates (i.e., don't
44910 + # use $as_me), people would be surprised to read:
44911 + # /* config.h. Generated by config.status. */
44912 + if test x"$ac_file" = x-; then
44913 + echo "/* Generated by configure. */" >$tmp/config.h
44914 + else
44915 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44916 + fi
44917 + cat $tmp/in >>$tmp/config.h
44918 + rm -f $tmp/in
44919 + if test x"$ac_file" != x-; then
44920 + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
44921 + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
44922 +echo "$as_me: $ac_file is unchanged" >&6;}
44923 + else
44924 + ac_dir=`(dirname "$ac_file") 2>/dev/null ||
44925 +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44926 + X"$ac_file" : 'X\(//\)[^/]' \| \
44927 + X"$ac_file" : 'X\(//\)$' \| \
44928 + X"$ac_file" : 'X\(/\)' \| \
44929 + . : '\(.\)' 2>/dev/null ||
44930 +echo X"$ac_file" |
44931 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44932 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44933 + /^X\(\/\/\)$/{ s//\1/; q; }
44934 + /^X\(\/\).*/{ s//\1/; q; }
44935 + s/.*/./; q'`
44936 + { if $as_mkdir_p; then
44937 + mkdir -p "$ac_dir"
44938 + else
44939 + as_dir="$ac_dir"
44940 + as_dirs=
44941 + while test ! -d "$as_dir"; do
44942 + as_dirs="$as_dir $as_dirs"
44943 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
44944 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44945 + X"$as_dir" : 'X\(//\)[^/]' \| \
44946 + X"$as_dir" : 'X\(//\)$' \| \
44947 + X"$as_dir" : 'X\(/\)' \| \
44948 + . : '\(.\)' 2>/dev/null ||
44949 +echo X"$as_dir" |
44950 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44951 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44952 + /^X\(\/\/\)$/{ s//\1/; q; }
44953 + /^X\(\/\).*/{ s//\1/; q; }
44954 + s/.*/./; q'`
44955 + done
44956 + test ! -n "$as_dirs" || mkdir $as_dirs
44957 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
44958 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
44959 + { (exit 1); exit 1; }; }; }
44961 + rm -f $ac_file
44962 + mv $tmp/config.h $ac_file
44964 - rm -f $ac_file
44965 - mv conftest.h $ac_file
44966 + else
44967 + cat $tmp/config.h
44968 + rm -f $tmp/config.h
44970 -fi; done
44971 +# Compute $ac_file's index in $config_headers.
44972 +_am_stamp_count=1
44973 +for _am_header in $config_headers :; do
44974 + case $_am_header in
44975 + $ac_file | $ac_file:* )
44976 + break ;;
44977 + * )
44978 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44979 + esac
44980 +done
44981 +echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
44982 +$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44983 + X$ac_file : 'X\(//\)[^/]' \| \
44984 + X$ac_file : 'X\(//\)$' \| \
44985 + X$ac_file : 'X\(/\)' \| \
44986 + . : '\(.\)' 2>/dev/null ||
44987 +echo X$ac_file |
44988 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44989 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44990 + /^X\(\/\/\)$/{ s//\1/; q; }
44991 + /^X\(\/\).*/{ s//\1/; q; }
44992 + s/.*/./; q'`/stamp-h$_am_stamp_count
44993 +done
44994 +_ACEOF
44995 +cat >>$CONFIG_STATUS <<\_ACEOF
44997 -EOF
44998 -cat >> $CONFIG_STATUS <<EOF
45000 +# CONFIG_COMMANDS section.
45002 +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
45003 + ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
45004 + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
45005 + ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
45006 +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45007 + X"$ac_dest" : 'X\(//\)[^/]' \| \
45008 + X"$ac_dest" : 'X\(//\)$' \| \
45009 + X"$ac_dest" : 'X\(/\)' \| \
45010 + . : '\(.\)' 2>/dev/null ||
45011 +echo X"$ac_dest" |
45012 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45013 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45014 + /^X\(\/\/\)$/{ s//\1/; q; }
45015 + /^X\(\/\).*/{ s//\1/; q; }
45016 + s/.*/./; q'`
45017 + { if $as_mkdir_p; then
45018 + mkdir -p "$ac_dir"
45019 + else
45020 + as_dir="$ac_dir"
45021 + as_dirs=
45022 + while test ! -d "$as_dir"; do
45023 + as_dirs="$as_dir $as_dirs"
45024 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
45025 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45026 + X"$as_dir" : 'X\(//\)[^/]' \| \
45027 + X"$as_dir" : 'X\(//\)$' \| \
45028 + X"$as_dir" : 'X\(/\)' \| \
45029 + . : '\(.\)' 2>/dev/null ||
45030 +echo X"$as_dir" |
45031 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45032 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45033 + /^X\(\/\/\)$/{ s//\1/; q; }
45034 + /^X\(\/\).*/{ s//\1/; q; }
45035 + s/.*/./; q'`
45036 + done
45037 + test ! -n "$as_dirs" || mkdir $as_dirs
45038 + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
45039 +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
45040 + { (exit 1); exit 1; }; }; }
45042 -EOF
45043 -cat >> $CONFIG_STATUS <<\EOF
45044 + ac_builddir=.
45046 -exit 0
45047 -EOF
45048 +if test "$ac_dir" != .; then
45049 + ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
45050 + # A "../" for each directory in $ac_dir_suffix.
45051 + ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
45052 +else
45053 + ac_dir_suffix= ac_top_builddir=
45056 +case $srcdir in
45057 + .) # No --srcdir option. We are building in place.
45058 + ac_srcdir=.
45059 + if test -z "$ac_top_builddir"; then
45060 + ac_top_srcdir=.
45061 + else
45062 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
45063 + fi ;;
45064 + [\\/]* | ?:[\\/]* ) # Absolute path.
45065 + ac_srcdir=$srcdir$ac_dir_suffix;
45066 + ac_top_srcdir=$srcdir ;;
45067 + *) # Relative path.
45068 + ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
45069 + ac_top_srcdir=$ac_top_builddir$srcdir ;;
45070 +esac
45072 +# Do not use `cd foo && pwd` to compute absolute paths, because
45073 +# the directories may not exist.
45074 +case `pwd` in
45075 +.) ac_abs_builddir="$ac_dir";;
45077 + case "$ac_dir" in
45078 + .) ac_abs_builddir=`pwd`;;
45079 + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
45080 + *) ac_abs_builddir=`pwd`/"$ac_dir";;
45081 + esac;;
45082 +esac
45083 +case $ac_abs_builddir in
45084 +.) ac_abs_top_builddir=${ac_top_builddir}.;;
45086 + case ${ac_top_builddir}. in
45087 + .) ac_abs_top_builddir=$ac_abs_builddir;;
45088 + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
45089 + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
45090 + esac;;
45091 +esac
45092 +case $ac_abs_builddir in
45093 +.) ac_abs_srcdir=$ac_srcdir;;
45095 + case $ac_srcdir in
45096 + .) ac_abs_srcdir=$ac_abs_builddir;;
45097 + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
45098 + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
45099 + esac;;
45100 +esac
45101 +case $ac_abs_builddir in
45102 +.) ac_abs_top_srcdir=$ac_top_srcdir;;
45104 + case $ac_top_srcdir in
45105 + .) ac_abs_top_srcdir=$ac_abs_builddir;;
45106 + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
45107 + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
45108 + esac;;
45109 +esac
45112 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45113 +echo "$as_me: executing $ac_dest commands" >&6;}
45114 + case $ac_dest in
45115 + depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
45116 + # Strip MF so we end up with the name of the file.
45117 + mf=`echo "$mf" | sed -e 's/:.*$//'`
45118 + # Check whether this is an Automake generated Makefile or not.
45119 + # We used to match only the files named `Makefile.in', but
45120 + # some people rename them; so instead we look at the file content.
45121 + # Grep'ing the first line is not enough: some people post-process
45122 + # each Makefile.in and add a new line on top of each file to say so.
45123 + # So let's grep whole file.
45124 + if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
45125 + dirpart=`(dirname "$mf") 2>/dev/null ||
45126 +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45127 + X"$mf" : 'X\(//\)[^/]' \| \
45128 + X"$mf" : 'X\(//\)$' \| \
45129 + X"$mf" : 'X\(/\)' \| \
45130 + . : '\(.\)' 2>/dev/null ||
45131 +echo X"$mf" |
45132 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45133 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45134 + /^X\(\/\/\)$/{ s//\1/; q; }
45135 + /^X\(\/\).*/{ s//\1/; q; }
45136 + s/.*/./; q'`
45137 + else
45138 + continue
45139 + fi
45140 + # Extract the definition of DEPDIR, am__include, and am__quote
45141 + # from the Makefile without running `make'.
45142 + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
45143 + test -z "$DEPDIR" && continue
45144 + am__include=`sed -n 's/^am__include = //p' < "$mf"`
45145 + test -z "am__include" && continue
45146 + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
45147 + # When using ansi2knr, U may be empty or an underscore; expand it
45148 + U=`sed -n 's/^U = //p' < "$mf"`
45149 + # Find all dependency output files, they are included files with
45150 + # $(DEPDIR) in their names. We invoke sed twice because it is the
45151 + # simplest approach to changing $(DEPDIR) to its actual value in the
45152 + # expansion.
45153 + for file in `sed -n "
45154 + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
45155 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
45156 + # Make sure the directory exists.
45157 + test -f "$dirpart/$file" && continue
45158 + fdir=`(dirname "$file") 2>/dev/null ||
45159 +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45160 + X"$file" : 'X\(//\)[^/]' \| \
45161 + X"$file" : 'X\(//\)$' \| \
45162 + X"$file" : 'X\(/\)' \| \
45163 + . : '\(.\)' 2>/dev/null ||
45164 +echo X"$file" |
45165 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45166 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45167 + /^X\(\/\/\)$/{ s//\1/; q; }
45168 + /^X\(\/\).*/{ s//\1/; q; }
45169 + s/.*/./; q'`
45170 + { if $as_mkdir_p; then
45171 + mkdir -p $dirpart/$fdir
45172 + else
45173 + as_dir=$dirpart/$fdir
45174 + as_dirs=
45175 + while test ! -d "$as_dir"; do
45176 + as_dirs="$as_dir $as_dirs"
45177 + as_dir=`(dirname "$as_dir") 2>/dev/null ||
45178 +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45179 + X"$as_dir" : 'X\(//\)[^/]' \| \
45180 + X"$as_dir" : 'X\(//\)$' \| \
45181 + X"$as_dir" : 'X\(/\)' \| \
45182 + . : '\(.\)' 2>/dev/null ||
45183 +echo X"$as_dir" |
45184 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45185 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45186 + /^X\(\/\/\)$/{ s//\1/; q; }
45187 + /^X\(\/\).*/{ s//\1/; q; }
45188 + s/.*/./; q'`
45189 + done
45190 + test ! -n "$as_dirs" || mkdir $as_dirs
45191 + fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
45192 +echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
45193 + { (exit 1); exit 1; }; }; }
45195 + # echo "creating $dirpart/$file"
45196 + echo '# dummy' > "$dirpart/$file"
45197 + done
45198 +done
45199 + ;;
45200 + esac
45201 +done
45202 +_ACEOF
45204 +cat >>$CONFIG_STATUS <<\_ACEOF
45206 +{ (exit 0); exit 0; }
45207 +_ACEOF
45208 chmod +x $CONFIG_STATUS
45209 -rm -fr confdefs* $ac_clean_files
45210 -test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
45211 +ac_clean_files=$ac_clean_files_save
45214 +# configure is writing to config.log, and then calls config.status.
45215 +# config.status does its own redirection, appending to config.log.
45216 +# Unfortunately, on DOS this fails, as config.log is still kept open
45217 +# by configure, so config.status won't be able to write to it; its
45218 +# output is simply discarded. So we exec the FD to /dev/null,
45219 +# effectively closing config.log, so it can be properly (re)opened and
45220 +# appended to by config.status. When coming back to configure, we
45221 +# need to make the FD available again.
45222 +if test "$no_create" != yes; then
45223 + ac_cs_success=:
45224 + ac_config_status_args=
45225 + test "$silent" = yes &&
45226 + ac_config_status_args="$ac_config_status_args --quiet"
45227 + exec 5>/dev/null
45228 + $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45229 + exec 5>>config.log
45230 + # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45231 + # would make configure fail if this is the last instruction.
45232 + $ac_cs_success || { (exit 1); exit 1; }
45235 diff --git a/configure.ac b/configure.ac
45236 new file mode 100755
45237 index 0000000..b2c90d3
45238 --- /dev/null
45239 +++ b/configure.ac
45240 @@ -0,0 +1,318 @@
45241 +dnl IJG auto-configuration source file.
45242 +dnl Process this file with autoconf to produce a configure script.
45244 +# Configure script for IJG libjpeg
45246 +AC_PREREQ(2.59)
45247 +AC_INIT(jcmaster.c)
45249 +# Specify directory where m4 macros may be found.
45250 +AC_CONFIG_MACRO_DIR([m4])
45252 +# Directory where autotools helper scripts lives.
45253 +AC_CONFIG_AUX_DIR([config])
45255 +# Generate configuration headers.
45256 +AC_CONFIG_HEADERS([jconfig.h jconfig_api.h])
45258 +# Check system type
45259 +AC_CANONICAL_SYSTEM
45261 +# Initialize Automake
45262 +AM_INIT_AUTOMAKE([libjpeg], [6.1.0])
45264 +# Add configure option --enable-maintainer-mode which enables dependency
45265 +# checking and generation useful to package maintainers. This is made an
45266 +# option to avoid confusing end users.
45267 +AM_MAINTAINER_MODE
45269 +# Check for programs
45270 +AC_PROG_CC
45271 +AC_PROG_CC_STDC
45272 +AC_PROG_CPP
45273 +AC_PROG_INSTALL
45274 +AC_PROG_MAKE_SET
45275 +AC_PROG_LN_S
45276 +dnl
45277 +dnl
45279 +# Tests for Windows
45281 +AC_EXEEXT
45282 +AC_OBJEXT
45283 +dnl
45284 +dnl See if compiler supports prototypes.
45285 +AC_MSG_CHECKING(for function prototypes)
45286 +AC_CACHE_VAL(ijg_cv_have_prototypes,
45287 +[AC_TRY_COMPILE([
45288 +int testfunction (int arg1, int * arg2); /* check prototypes */
45289 +struct methods_struct { /* check method-pointer declarations */
45290 + int (*error_exit) (char *msgtext);
45291 + int (*trace_message) (char *msgtext);
45292 + int (*another_method) (void);
45294 +int testfunction (int arg1, int * arg2) /* check definitions */
45295 +{ return arg2[arg1]; }
45296 +int test2function (void) /* check void arg list */
45297 +{ return 0; }
45298 +], [ ], ijg_cv_have_prototypes=yes, ijg_cv_have_prototypes=no)])
45299 +AC_MSG_RESULT($ijg_cv_have_prototypes)
45300 +if test $ijg_cv_have_prototypes = yes; then
45301 + AC_DEFINE([HAVE_PROTOTYPES],[1],[Compiler supports function prototypes.])
45302 +else
45303 + echo Your compiler does not seem to know about function prototypes.
45304 + echo Perhaps it needs a special switch to enable ANSI C mode.
45305 + echo If so, we recommend running configure like this:
45306 + echo " ./configure CC='cc -switch'"
45307 + echo where -switch is the proper switch.
45309 +dnl
45310 +dnl check header files
45311 +AC_CHECK_HEADERS(stddef.h stdlib.h)
45312 +AC_CHECK_HEADER(string.h, , AC_DEFINE([NEED_BSD_STRINGS],[1],[Compiler has <strings.h> rather than standard <string.h>.]))
45313 +dnl See whether type size_t is defined in any ANSI-standard places;
45314 +dnl if not, perhaps it is defined in <sys/types.h>.
45315 +AC_MSG_CHECKING(for size_t)
45316 +AC_TRY_COMPILE([
45317 +#ifdef HAVE_STDDEF_H
45318 +#include <stddef.h>
45319 +#endif
45320 +#ifdef HAVE_STDLIB_H
45321 +#include <stdlib.h>
45322 +#endif
45323 +#include <stdio.h>
45324 +#ifdef NEED_BSD_STRINGS
45325 +#include <strings.h>
45326 +#else
45327 +#include <string.h>
45328 +#endif
45329 +typedef size_t my_size_t;
45330 +], [ my_size_t foovar; ], ijg_size_t_ok=yes,
45331 +[ijg_size_t_ok="not ANSI, perhaps it is in sys/types.h"])
45332 +AC_MSG_RESULT($ijg_size_t_ok)
45333 +if test "$ijg_size_t_ok" != yes; then
45334 +AC_CHECK_HEADER(sys/types.h, [AC_DEFINE([NEED_SYS_TYPES_H],[1],[Need to include <sys/types.h> in order to obtain size_t.])
45335 +AC_EGREP_CPP(size_t, [#include <sys/types.h>],
45336 +[ijg_size_t_ok="size_t is in sys/types.h"], ijg_size_t_ok=no)],
45337 +ijg_size_t_ok=no)
45338 +AC_MSG_RESULT($ijg_size_t_ok)
45339 +if test "$ijg_size_t_ok" = no; then
45340 + echo Type size_t is not defined in any of the usual places.
45341 + echo Try putting '"typedef unsigned int size_t;"' in jconfig.h.
45344 +dnl
45345 +dnl check compiler characteristics
45346 +AC_MSG_CHECKING(for type unsigned char)
45347 +AC_TRY_COMPILE(, [ unsigned char un_char; ],
45348 +[AC_MSG_RESULT(yes)
45349 +AC_DEFINE([HAVE_UNSIGNED_CHAR],[1],[Compiler supports 'unsigned char'.])], AC_MSG_RESULT(no))
45350 +dnl
45351 +AC_MSG_CHECKING(for type unsigned short)
45352 +AC_TRY_COMPILE(, [ unsigned short un_short; ],
45353 +[AC_MSG_RESULT(yes)
45354 +AC_DEFINE([HAVE_UNSIGNED_SHORT],[1],[Compiler supports 'unsigned short'.])], AC_MSG_RESULT(no))
45355 +dnl
45356 +AC_MSG_CHECKING(for type void)
45357 +AC_TRY_COMPILE([
45358 +/* Caution: a C++ compiler will insist on valid prototypes */
45359 +typedef void * void_ptr; /* check void * */
45360 +#ifdef HAVE_PROTOTYPES /* check ptr to function returning void */
45361 +typedef void (*void_func) (int a, int b);
45362 +#else
45363 +typedef void (*void_func) ();
45364 +#endif
45366 +#ifdef HAVE_PROTOTYPES /* check void function result */
45367 +void test3function (void_ptr arg1, void_func arg2)
45368 +#else
45369 +void test3function (arg1, arg2)
45370 + void_ptr arg1;
45371 + void_func arg2;
45372 +#endif
45374 + char * locptr = (char *) arg1; /* check casting to and from void * */
45375 + arg1 = (void *) locptr;
45376 + (*arg2) (1, 2); /* check call of fcn returning void */
45378 +], [ ], AC_MSG_RESULT(yes), [AC_MSG_RESULT(no)
45379 +AC_DEFINE([void],[char],[Define 'void' as 'char' for archaic compilers that don't understand it.])])
45381 +AC_C_CONST
45382 +dnl check for non-broken inline under various spellings
45383 +AC_MSG_CHECKING(for inline)
45384 +ijg_cv_inline=""
45385 +AC_TRY_COMPILE(, [} __inline__ int foo() { return 0; }
45386 +int bar() { return foo();], ijg_cv_inline="__inline__",
45387 +AC_TRY_COMPILE(, [} __inline int foo() { return 0; }
45388 +int bar() { return foo();], ijg_cv_inline="__inline",
45389 +AC_TRY_COMPILE(, [} inline int foo() { return 0; }
45390 +int bar() { return foo();], ijg_cv_inline="inline")))
45391 +AC_MSG_RESULT($ijg_cv_inline)
45392 +AC_DEFINE_UNQUOTED([INLINE],[$ijg_cv_inline],[How to obtain function inlining.])
45393 +dnl we cannot check for bogus warnings, but at least we can check for errors
45394 +AC_MSG_CHECKING(for broken incomplete types)
45395 +AC_TRY_COMPILE([ typedef struct undefined_structure * undef_struct_ptr; ], ,
45396 +AC_MSG_RESULT(ok),
45397 +[AC_MSG_RESULT(broken)
45398 +AC_DEFINE([INCOMPLETE_TYPES_BROKEN],[1],[Compiler does not support pointers to unspecified structures.])])
45399 +dnl test whether global names are unique to at least 15 chars
45400 +AC_MSG_CHECKING(for short external names)
45401 +AC_TRY_LINK([
45402 +int possibly_duplicate_function () { return 0; }
45403 +int possibly_dupli_function () { return 1; }
45404 +], [ ], AC_MSG_RESULT(ok), [AC_MSG_RESULT(short)
45405 +AC_DEFINE([NEED_SHORT_EXTERNAL_NAMES],[1],[Linker requires that global names be unique in first 15 characters.])])
45406 +dnl
45407 +dnl run-time checks
45408 +AC_MSG_CHECKING(to see if char is signed)
45409 +AC_TRY_RUN([
45410 +#ifdef HAVE_PROTOTYPES
45411 +int is_char_signed (int arg)
45412 +#else
45413 +int is_char_signed (arg)
45414 + int arg;
45415 +#endif
45417 + if (arg == 189) { /* expected result for unsigned char */
45418 + return 0; /* type char is unsigned */
45420 + else if (arg != -67) { /* expected result for signed char */
45421 + printf("Hmm, it seems 'char' is not eight bits wide on your machine.\n");
45422 + printf("I fear the JPEG software will not work at all.\n\n");
45424 + return 1; /* assume char is signed otherwise */
45426 +char signed_char_check = (char) (-67);
45427 +int main() {
45428 + exit(is_char_signed((int) signed_char_check));
45429 +}], [AC_MSG_RESULT(no)
45430 +AC_DEFINE([CHAR_IS_UNSIGNED],[1],[Characters are unsigned])], AC_MSG_RESULT(yes),
45431 +[echo Assuming that char is signed on target machine.
45432 +echo If it is unsigned, this will be a little bit inefficient.
45434 +dnl
45435 +AC_MSG_CHECKING(to see if right shift is signed)
45436 +AC_TRY_RUN([
45437 +#ifdef HAVE_PROTOTYPES
45438 +int is_shifting_signed (long arg)
45439 +#else
45440 +int is_shifting_signed (arg)
45441 + long arg;
45442 +#endif
45443 +/* See whether right-shift on a long is signed or not. */
45445 + long res = arg >> 4;
45447 + if (res == -0x7F7E80CL) { /* expected result for signed shift */
45448 + return 1; /* right shift is signed */
45450 + /* see if unsigned-shift hack will fix it. */
45451 + /* we can't just test exact value since it depends on width of long... */
45452 + res |= (~0L) << (32-4);
45453 + if (res == -0x7F7E80CL) { /* expected result now? */
45454 + return 0; /* right shift is unsigned */
45456 + printf("Right shift isn't acting as I expect it to.\n");
45457 + printf("I fear the JPEG software will not work at all.\n\n");
45458 + return 0; /* try it with unsigned anyway */
45460 +int main() {
45461 + exit(is_shifting_signed(-0x7F7E80B1L));
45462 +}], [AC_MSG_RESULT(no)
45463 +AC_DEFINE([RIGHT_SHIFT_IS_UNSIGNED],[1],[Broken compiler shifts signed values as an unsigned shift.])], AC_MSG_RESULT(yes),
45464 +AC_MSG_RESULT(Assuming that right shift is signed on target machine.))
45465 +dnl
45466 +AC_MSG_CHECKING(to see if fopen accepts b spec)
45467 +AC_TRY_RUN([
45468 +#include <stdio.h>
45469 +int main() {
45470 + if (fopen("conftestdata", "wb") != NULL)
45471 + exit(0);
45472 + exit(1);
45473 +}], AC_MSG_RESULT(yes), [AC_MSG_RESULT(no)
45474 +AC_DEFINE([DONT_USE_B_MODE],[1],[Don't open files in binary mode.])],
45475 +AC_MSG_RESULT(Assuming that it does.))
45477 +# Configure libtool
45478 +AC_LIBTOOL_WIN32_DLL
45479 +AC_PROG_LIBTOOL
45481 +# Select memory manager depending on user input.
45482 +# If no "-enable-maxmem", use jmemnobs
45483 +MEMORYMGR='jmemnobs'
45484 +MAXMEM="no"
45485 +AC_ARG_ENABLE(maxmem,
45486 +[ --enable-maxmem[=N] enable use of temp files, set max mem usage to N MB],
45487 +MAXMEM="$enableval")
45488 +dnl [# support --with-maxmem for backwards compatibility with IJG V5.]
45489 +dnl AC_ARG_WITH(maxmem, , MAXMEM="$withval")
45490 +if test "x$MAXMEM" = xyes; then
45491 + MAXMEM=1
45493 +if test "x$MAXMEM" != xno; then
45494 + if test -n "`echo $MAXMEM | sed 's/[[0-9]]//g'`"; then
45495 + AC_MSG_ERROR(non-numeric argument to --enable-maxmem)
45496 + fi
45497 + DEFAULTMAXMEM=`expr $MAXMEM \* 1048576`
45498 +AC_DEFINE_UNQUOTED([DEFAULT_MAX_MEM], [${DEFAULTMAXMEM}], [Maximum data space library will allocate.])
45499 +AC_MSG_CHECKING([for 'tmpfile()'])
45500 +AC_TRY_LINK([#include <stdio.h>], [ FILE * tfile = tmpfile(); ],
45501 +[AC_MSG_RESULT(yes)
45502 +MEMORYMGR='jmemansi'],
45503 +[AC_MSG_RESULT(no)
45504 +dnl if tmpfile is not present, must use jmemname.
45505 +MEMORYMGR='jmemname'
45507 +# Test for the need to remove temporary files using a signal handler (for cjpeg/djpeg)
45508 +AC_DEFINE([NEED_SIGNAL_CATCHER],[1],[Need signal handler to clean up temporary files.])
45509 +AC_MSG_CHECKING([for 'mktemp()'])
45510 +AC_TRY_LINK(, [ char fname[80]; mktemp(fname); ], AC_MSG_RESULT(yes),
45511 +[AC_MSG_RESULT(no)
45512 +AC_DEFINE([NO_MKTEMP],[1],[The mktemp() function is not available.])])])
45514 +AC_SUBST(MEMORYMGR)
45516 +# Support definitons for cjpeg/djpeg
45517 +AC_DEFINE([BMP_SUPPORTED],[1],[cjpeg/djpeg support the BMP file format.])
45518 +AC_DEFINE([GIF_SUPPORTED],[1],[cjpeg/djpeg support the GIF file format.])
45519 +AC_DEFINE([PPM_SUPPORTED],[1],[cjpeg/djpeg support the PBMPLUS PPM/PGM file formats.])
45520 +dnl AC_DEFINE([RLE_SUPPORTED],[1],[cjpeg/djpeg support the Utah RLE file format.])
45521 +AC_DEFINE([TARGA_SUPPORTED],[1],[cjpeg/djpeg support the Targa file format.])
45523 +# Include PNG support in cjpeg/djpeg if appropriate.
45524 +AC_ARG_WITH(png,
45525 +[ --with-png enable PNG support in cjpeg/djpeg],
45526 +[#], [with_png="maybe"])
45528 +# try to detect whether libpng is present
45529 +OLIBS=$LIBS
45530 +if test "x$with_png" = xmaybe ; then
45531 + AC_CHECK_HEADER(png.h, , [with_png="no"])
45533 +if test "x$with_png" = xmaybe ; then
45534 + AC_CHECK_HEADER(zlib.h, , [with_png="no"])
45536 +if test "x$with_png" = xmaybe ; then
45537 + AC_CHECK_LIB(z, deflate, , [with_png="no"])
45539 +if test "x$with_png" = xmaybe ; then
45540 + AC_CHECK_LIB(png, png_create_info_struct,
45541 + [with_png="yes"], [with_png="no"], [-lz -lm])
45543 +LIBS=$OLIBS
45545 +if test "x$with_png" = xyes ; then
45546 + AC_DEFINE([PNG_SUPPORTED],[1],[Libpng is available in order to support the PNG file format.])
45547 + PNGLIBS='-lpng -lz -lm'
45549 +AC_SUBST([PNGLIBS])
45551 +# Extract the library version ID from jpeglib.h.
45552 +AC_MSG_CHECKING([libjpeg version number])
45553 +[JPEG_LIB_VERSION=`sed -e '/^#define JPEG_LIB_VERSION/!d' -e 's/^[^0-9]*\([0-9][0-9]*\).*$/\1/' $srcdir/jpeglib.h`]
45554 +AC_MSG_RESULT([$JPEG_LIB_VERSION])
45555 +AC_SUBST([JPEG_LIB_VERSION])
45557 +dnl
45558 +AC_OUTPUT([Makefile])
45559 diff --git a/exifautotran.sh b/exifautotran.sh
45560 new file mode 100755
45561 index 0000000..fd5105e
45562 --- /dev/null
45563 +++ b/exifautotran.sh
45564 @@ -0,0 +1,41 @@
45565 +#!/bin/sh
45566 +# exifautotran [list of files]
45568 +# Transforms Exif files so that Orientation becomes 1
45570 +for i
45572 + case $i in
45573 + -v|--version) echo "exifautotran"; exit 0;;
45574 + -h|--help)
45575 + cat <<EOF
45576 +exifautotran [list of files]
45578 +Transforms Exif files so that Orientation becomes 1
45579 +EOF
45580 + exit 0;;
45581 + esac
45583 + case `jpegexiforient -n "$i"` in
45584 + 1) transform="";;
45585 + 2) transform="-flip horizontal";;
45586 + 3) transform="-rotate 180";;
45587 + 4) transform="-flip vertical";;
45588 + 5) transform="-transpose";;
45589 + 6) transform="-rotate 90";;
45590 + 7) transform="-transverse";;
45591 + 8) transform="-rotate 270";;
45592 + *) transform="";;
45593 + esac
45594 + if test -n "$transform"; then
45595 + echo Executing: jpegtran -copy all $transform $i >&2
45596 + jpegtran -copy all $transform "$i" > tempfile
45597 + if test $? -ne 0; then
45598 + echo Error while transforming $i - skipped. >&2
45599 + else
45600 + rm "$i"
45601 + mv tempfile "$i"
45602 + jpegexiforient -1 "$i" > /dev/null
45603 + fi
45604 + fi
45605 +done
45606 diff --git a/jaricom.c b/jaricom.c
45607 new file mode 100755
45608 index 0000000..1a15bdf
45609 --- /dev/null
45610 +++ b/jaricom.c
45611 @@ -0,0 +1,13 @@
45613 + * jaricom.c
45615 + * [IJG Copyright notice]
45617 + * This file holds place for arithmetic entropy codec tables.
45618 + */
45620 +#define JPEG_INTERNALS
45621 +#include "jinclude.h"
45622 +#include "jpeglib.h"
45624 +INT32 jaritab[1]; /* dummy table */
45625 diff --git a/jcarith.c b/jcarith.c
45626 new file mode 100755
45627 index 0000000..e9790a3
45628 --- /dev/null
45629 +++ b/jcarith.c
45630 @@ -0,0 +1,22 @@
45632 + * jcarith.c
45634 + * [IJG Copyright notice]
45636 + * This file holds place for arithmetic entropy encoding routines.
45637 + */
45639 +#define JPEG_INTERNALS
45640 +#include "jinclude.h"
45641 +#include "jpeglib.h"
45645 + * Module initialization routine for arithmetic entropy encoding.
45646 + */
45648 +GLOBAL(void)
45649 +jinit_arith_encoder (j_compress_ptr cinfo)
45651 + ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
45653 diff --git a/jconfig.h.in b/jconfig.h.in
45654 new file mode 100755
45655 index 0000000..48ec810
45656 --- /dev/null
45657 +++ b/jconfig.h.in
45658 @@ -0,0 +1,124 @@
45659 +/* jconfig.h.in. Generated from configure.ac by autoheader. */
45661 +/* cjpeg/djpeg support the BMP file format. */
45662 +#undef BMP_SUPPORTED
45664 +/* Characters are unsigned */
45665 +#undef CHAR_IS_UNSIGNED
45667 +/* Maximum data space library will allocate. */
45668 +#undef DEFAULT_MAX_MEM
45670 +/* Don't open files in binary mode. */
45671 +#undef DONT_USE_B_MODE
45673 +/* cjpeg/djpeg support the GIF file format. */
45674 +#undef GIF_SUPPORTED
45676 +/* Define to 1 if you have the <dlfcn.h> header file. */
45677 +#undef HAVE_DLFCN_H
45679 +/* Define to 1 if you have the <inttypes.h> header file. */
45680 +#undef HAVE_INTTYPES_H
45682 +/* Define to 1 if you have the `z' library (-lz). */
45683 +#undef HAVE_LIBZ
45685 +/* Define to 1 if you have the <memory.h> header file. */
45686 +#undef HAVE_MEMORY_H
45688 +/* Compiler supports function prototypes. */
45689 +#undef HAVE_PROTOTYPES
45691 +/* Define to 1 if you have the <stddef.h> header file. */
45692 +#undef HAVE_STDDEF_H
45694 +/* Define to 1 if you have the <stdint.h> header file. */
45695 +#undef HAVE_STDINT_H
45697 +/* Define to 1 if you have the <stdlib.h> header file. */
45698 +#undef HAVE_STDLIB_H
45700 +/* Define to 1 if you have the <strings.h> header file. */
45701 +#undef HAVE_STRINGS_H
45703 +/* Define to 1 if you have the <string.h> header file. */
45704 +#undef HAVE_STRING_H
45706 +/* Define to 1 if you have the <sys/stat.h> header file. */
45707 +#undef HAVE_SYS_STAT_H
45709 +/* Define to 1 if you have the <sys/types.h> header file. */
45710 +#undef HAVE_SYS_TYPES_H
45712 +/* Define to 1 if you have the <unistd.h> header file. */
45713 +#undef HAVE_UNISTD_H
45715 +/* Compiler supports 'unsigned char'. */
45716 +#undef HAVE_UNSIGNED_CHAR
45718 +/* Compiler supports 'unsigned short'. */
45719 +#undef HAVE_UNSIGNED_SHORT
45721 +/* Compiler does not support pointers to unspecified structures. */
45722 +#undef INCOMPLETE_TYPES_BROKEN
45724 +/* How to obtain function inlining. */
45725 +#undef INLINE
45727 +/* Compiler has <strings.h> rather than standard <string.h>. */
45728 +#undef NEED_BSD_STRINGS
45730 +/* Linker requires that global names be unique in first 15 characters. */
45731 +#undef NEED_SHORT_EXTERNAL_NAMES
45733 +/* Need signal handler to clean up temporary files. */
45734 +#undef NEED_SIGNAL_CATCHER
45736 +/* Need to include <sys/types.h> in order to obtain size_t. */
45737 +#undef NEED_SYS_TYPES_H
45739 +/* The mktemp() function is not available. */
45740 +#undef NO_MKTEMP
45742 +/* Name of package */
45743 +#undef PACKAGE
45745 +/* Define to the address where bug reports for this package should be sent. */
45746 +#undef PACKAGE_BUGREPORT
45748 +/* Define to the full name of this package. */
45749 +#undef PACKAGE_NAME
45751 +/* Define to the full name and version of this package. */
45752 +#undef PACKAGE_STRING
45754 +/* Define to the one symbol short name of this package. */
45755 +#undef PACKAGE_TARNAME
45757 +/* Define to the version of this package. */
45758 +#undef PACKAGE_VERSION
45760 +/* Libpng is available in order to support the PNG file format. */
45761 +#undef PNG_SUPPORTED
45763 +/* cjpeg/djpeg support the PBMPLUS PPM/PGM file formats. */
45764 +#undef PPM_SUPPORTED
45766 +/* Broken compiler shifts signed values as an unsigned shift. */
45767 +#undef RIGHT_SHIFT_IS_UNSIGNED
45769 +/* Define to 1 if you have the ANSI C header files. */
45770 +#undef STDC_HEADERS
45772 +/* cjpeg/djpeg support the Targa file format. */
45773 +#undef TARGA_SUPPORTED
45775 +/* Version number of package */
45776 +#undef VERSION
45778 +/* Define to empty if `const' does not conform to ANSI C. */
45779 +#undef const
45781 +/* Define 'void' as 'char' for archaic compilers that don't understand it. */
45782 +#undef void
45783 diff --git a/jconfig_api.h.in b/jconfig_api.h.in
45784 new file mode 100755
45785 index 0000000..2d5d22e
45786 --- /dev/null
45787 +++ b/jconfig_api.h.in
45788 @@ -0,0 +1,37 @@
45789 +/* IJG JPEG Library Configuration Header */
45791 +/* Characters are unsigned */
45792 +#undef CHAR_IS_UNSIGNED
45794 +/* Compiler supports function prototypes. */
45795 +#undef HAVE_PROTOTYPES
45797 +/* Define to 1 if you have the <stddef.h> header file. */
45798 +#undef HAVE_STDDEF_H
45800 +/* Define to 1 if you have the <stdlib.h> header file. */
45801 +#undef HAVE_STDLIB_H
45803 +/* Compiler supports 'unsigned char'. */
45804 +#undef HAVE_UNSIGNED_CHAR
45806 +/* Compiler supports 'unsigned short'. */
45807 +#undef HAVE_UNSIGNED_SHORT
45809 +/* Compiler does not support pointers to unspecified structures. */
45810 +#undef INCOMPLETE_TYPES_BROKEN
45812 +/* Compiler has <strings.h> rather than standard <string.h>. */
45813 +#undef NEED_BSD_STRINGS
45815 +/* Linker requires that global names be unique in first 15 characters. */
45816 +#undef NEED_SHORT_EXTERNAL_NAMES
45818 +/* Need to include <sys/types.h> in order to obtain size_t. */
45819 +#undef NEED_SYS_TYPES_H
45821 +/* Define to empty if `const' does not conform to ANSI C. */
45822 +#undef const
45824 +/* Define 'void' as 'char' for archaic compilers that don't understand it. */
45825 +#undef void
45826 diff --git a/jdarith.c b/jdarith.c
45827 new file mode 100755
45828 index 0000000..13709f2
45829 --- /dev/null
45830 +++ b/jdarith.c
45831 @@ -0,0 +1,22 @@
45833 + * jdarith.c
45835 + * [IJG Copyright notice]
45837 + * This file holds place for arithmetic entropy decoding routines.
45838 + */
45840 +#define JPEG_INTERNALS
45841 +#include "jinclude.h"
45842 +#include "jpeglib.h"
45846 + * Module initialization routine for arithmetic entropy decoding.
45847 + */
45849 +GLOBAL(void)
45850 +jinit_arith_decoder (j_decompress_ptr cinfo)
45852 + ERREXIT(cinfo, JERR_ARITH_NOTIMPL);
45854 diff --git a/jpegexiforient.c b/jpegexiforient.c
45855 new file mode 100755
45856 index 0000000..ac17d7d
45857 --- /dev/null
45858 +++ b/jpegexiforient.c
45859 @@ -0,0 +1,292 @@
45861 + * jpegexiforient.c
45863 + * This is a utility program to get and set the Exif Orientation Tag.
45864 + * It can be used together with jpegtran in scripts for automatic
45865 + * orientation correction of digital camera pictures.
45867 + * The Exif orientation value gives the orientation of the camera
45868 + * relative to the scene when the image was captured. The relation
45869 + * of the '0th row' and '0th column' to visual position is shown as
45870 + * below.
45872 + * Value | 0th Row | 0th Column
45873 + * ------+-------------+-----------
45874 + * 1 | top | left side
45875 + * 2 | top | rigth side
45876 + * 3 | bottom | rigth side
45877 + * 4 | bottom | left side
45878 + * 5 | left side | top
45879 + * 6 | right side | top
45880 + * 7 | right side | bottom
45881 + * 8 | left side | bottom
45883 + * For convenience, here is what the letter F would look like if it were
45884 + * tagged correctly and displayed by a program that ignores the orientation
45885 + * tag:
45887 + * 1 2 3 4 5 6 7 8
45889 + * 888888 888888 88 88 8888888888 88 88 8888888888
45890 + * 88 88 88 88 88 88 88 88 88 88 88 88
45891 + * 8888 8888 8888 8888 88 8888888888 8888888888 88
45892 + * 88 88 88 88
45893 + * 88 88 888888 888888
45895 + */
45897 +#include <stdio.h>
45898 +#include <stdlib.h>
45900 +static FILE * myfile; /* My JPEG file */
45902 +static unsigned char exif_data[65536L];
45904 +/* Return next input byte, or EOF if no more */
45905 +#define NEXTBYTE() getc(myfile)
45907 +/* Error exit handler */
45908 +#define ERREXIT(msg) (exit(0))
45910 +/* Read one byte, testing for EOF */
45911 +static int
45912 +read_1_byte (void)
45914 + int c;
45916 + c = NEXTBYTE();
45917 + if (c == EOF)
45918 + ERREXIT("Premature EOF in JPEG file");
45919 + return c;
45922 +/* Read 2 bytes, convert to unsigned int */
45923 +/* All 2-byte quantities in JPEG markers are MSB first */
45924 +static unsigned int
45925 +read_2_bytes (void)
45927 + int c1, c2;
45929 + c1 = NEXTBYTE();
45930 + if (c1 == EOF)
45931 + ERREXIT("Premature EOF in JPEG file");
45932 + c2 = NEXTBYTE();
45933 + if (c2 == EOF)
45934 + ERREXIT("Premature EOF in JPEG file");
45935 + return (((unsigned int) c1) << 8) + ((unsigned int) c2);
45938 +static const char * progname; /* program name for error messages */
45940 +static void
45941 +usage (void)
45942 +/* complain about bad command line */
45944 + fprintf(stderr, "jpegexiforient reads or writes the Exif Orientation Tag ");
45945 + fprintf(stderr, "in a JPEG Exif file.\n");
45947 + fprintf(stderr, "Usage: %s [switches] jpegfile\n", progname);
45949 + fprintf(stderr, "Switches:\n");
45950 + fprintf(stderr, " -n Do not output the trailing newline\n");
45951 + fprintf(stderr, " -1 .. -8 Set orientation value 1 .. 8\n");
45955 + * The main program.
45956 + */
45958 +int
45959 +main (int argc, char **argv)
45961 + int n_flag, set_flag;
45962 + unsigned int length, i;
45963 + int is_motorola; /* Flag for byte order */
45964 + unsigned int offset, number_of_tags, tagnum;
45966 + progname = argv[0];
45967 + if (progname == NULL || progname[0] == 0)
45968 + progname = "jpegexiforient"; /* in case C library doesn't provide it */
45970 + if (argc < 2) { usage(); return 0; }
45972 + n_flag = 0; set_flag = 0;
45974 + i = 1;
45975 + while (argv[i][0] == '-') {
45976 + switch (argv[i][1]) {
45977 + case 'n':
45978 + n_flag = 1;
45979 + break;
45980 + case '1':
45981 + case '2':
45982 + case '3':
45983 + case '4':
45984 + case '5':
45985 + case '6':
45986 + case '7':
45987 + case '8':
45988 + set_flag = argv[i][1] - '0';
45989 + break;
45990 + default:
45991 + usage(); return 0;
45993 + if (++i >= argc) { usage(); return 0; }
45996 + if (set_flag) {
45997 + if ((myfile = fopen(argv[i], "rb+")) == NULL) {
45998 + fprintf(stderr, "%s: can't open %s\n", progname, argv[i]);
45999 + return 0;
46001 + } else {
46002 + if ((myfile = fopen(argv[i], "rb")) == NULL) {
46003 + fprintf(stderr, "%s: can't open %s\n", progname, argv[i]);
46004 + return 0;
46008 + /* Read File head, check for JPEG SOI + Exif APP1 */
46009 + for (i = 0; i < 4; i++)
46010 + exif_data[i] = (unsigned char) read_1_byte();
46011 + if (exif_data[0] != 0xFF ||
46012 + exif_data[1] != 0xD8 ||
46013 + exif_data[2] != 0xFF ||
46014 + exif_data[3] != 0xE1)
46015 + return 0;
46017 + /* Get the marker parameter length count */
46018 + length = read_2_bytes();
46019 + /* Length includes itself, so must be at least 2 */
46020 + /* Following Exif data length must be at least 6 */
46021 + if (length < 8)
46022 + return 0;
46023 + length -= 8;
46024 + /* Read Exif head, check for "Exif" */
46025 + for (i = 0; i < 6; i++)
46026 + exif_data[i] = (unsigned char) read_1_byte();
46027 + if (exif_data[0] != 0x45 ||
46028 + exif_data[1] != 0x78 ||
46029 + exif_data[2] != 0x69 ||
46030 + exif_data[3] != 0x66 ||
46031 + exif_data[4] != 0 ||
46032 + exif_data[5] != 0)
46033 + return 0;
46034 + /* Read Exif body */
46035 + for (i = 0; i < length; i++)
46036 + exif_data[i] = (unsigned char) read_1_byte();
46038 + if (length < 12) return 0; /* Length of an IFD entry */
46040 + /* Discover byte order */
46041 + if (exif_data[0] == 0x49 && exif_data[1] == 0x49)
46042 + is_motorola = 0;
46043 + else if (exif_data[0] == 0x4D && exif_data[1] == 0x4D)
46044 + is_motorola = 1;
46045 + else
46046 + return 0;
46048 + /* Check Tag Mark */
46049 + if (is_motorola) {
46050 + if (exif_data[2] != 0) return 0;
46051 + if (exif_data[3] != 0x2A) return 0;
46052 + } else {
46053 + if (exif_data[3] != 0) return 0;
46054 + if (exif_data[2] != 0x2A) return 0;
46057 + /* Get first IFD offset (offset to IFD0) */
46058 + if (is_motorola) {
46059 + if (exif_data[4] != 0) return 0;
46060 + if (exif_data[5] != 0) return 0;
46061 + offset = exif_data[6];
46062 + offset <<= 8;
46063 + offset += exif_data[7];
46064 + } else {
46065 + if (exif_data[7] != 0) return 0;
46066 + if (exif_data[6] != 0) return 0;
46067 + offset = exif_data[5];
46068 + offset <<= 8;
46069 + offset += exif_data[4];
46071 + if (offset > length - 2) return 0; /* check end of data segment */
46073 + /* Get the number of directory entries contained in this IFD */
46074 + if (is_motorola) {
46075 + number_of_tags = exif_data[offset];
46076 + number_of_tags <<= 8;
46077 + number_of_tags += exif_data[offset+1];
46078 + } else {
46079 + number_of_tags = exif_data[offset+1];
46080 + number_of_tags <<= 8;
46081 + number_of_tags += exif_data[offset];
46083 + if (number_of_tags == 0) return 0;
46084 + offset += 2;
46086 + /* Search for Orientation Tag in IFD0 */
46087 + for (;;) {
46088 + if (offset > length - 12) return 0; /* check end of data segment */
46089 + /* Get Tag number */
46090 + if (is_motorola) {
46091 + tagnum = exif_data[offset];
46092 + tagnum <<= 8;
46093 + tagnum += exif_data[offset+1];
46094 + } else {
46095 + tagnum = exif_data[offset+1];
46096 + tagnum <<= 8;
46097 + tagnum += exif_data[offset];
46099 + if (tagnum == 0x0112) break; /* found Orientation Tag */
46100 + if (--number_of_tags == 0) return 0;
46101 + offset += 12;
46104 + if (set_flag) {
46105 + /* Set the Orientation value */
46106 + if (is_motorola) {
46107 + exif_data[offset+2] = 0; /* Format = unsigned short (2 octets) */
46108 + exif_data[offset+3] = 3;
46109 + exif_data[offset+4] = 0; /* Number Of Components = 1 */
46110 + exif_data[offset+5] = 0;
46111 + exif_data[offset+6] = 0;
46112 + exif_data[offset+7] = 1;
46113 + exif_data[offset+8] = 0;
46114 + exif_data[offset+9] = (unsigned char)set_flag;
46115 + exif_data[offset+10] = 0;
46116 + exif_data[offset+11] = 0;
46117 + } else {
46118 + exif_data[offset+2] = 3; /* Format = unsigned short (2 octets) */
46119 + exif_data[offset+3] = 0;
46120 + exif_data[offset+4] = 1; /* Number Of Components = 1 */
46121 + exif_data[offset+5] = 0;
46122 + exif_data[offset+6] = 0;
46123 + exif_data[offset+7] = 0;
46124 + exif_data[offset+8] = (unsigned char)set_flag;
46125 + exif_data[offset+9] = 0;
46126 + exif_data[offset+10] = 0;
46127 + exif_data[offset+11] = 0;
46129 + fseek(myfile, (4 + 2 + 6 + 2) + offset, SEEK_SET);
46130 + fwrite(exif_data + 2 + offset, 1, 10, myfile);
46131 + } else {
46132 + /* Get the Orientation value */
46133 + if (is_motorola) {
46134 + if (exif_data[offset+8] != 0) return 0;
46135 + set_flag = exif_data[offset+9];
46136 + } else {
46137 + if (exif_data[offset+9] != 0) return 0;
46138 + set_flag = exif_data[offset+8];
46140 + if (set_flag > 8) return 0;
46143 + /* Write out Orientation value */
46144 + if (n_flag)
46145 + printf("%c", '0' + set_flag);
46146 + else
46147 + printf("%c\n", '0' + set_flag);
46149 + /* All done. */
46150 + return 0;
46152 diff --git a/ltconfig b/ltconfig
46153 deleted file mode 100755
46154 index 2347e69..0000000
46155 --- a/ltconfig
46156 +++ /dev/null
46157 @@ -1,1512 +0,0 @@
46158 -#! /bin/sh
46160 -# ltconfig - Create a system-specific libtool.
46161 -# Copyright (C) 1996-1998 Free Software Foundation, Inc.
46162 -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
46164 -# This file is free software; you can redistribute it and/or modify it
46165 -# under the terms of the GNU General Public License as published by
46166 -# the Free Software Foundation; either version 2 of the License, or
46167 -# (at your option) any later version.
46169 -# This program is distributed in the hope that it will be useful, but
46170 -# WITHOUT ANY WARRANTY; without even the implied warranty of
46171 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
46172 -# General Public License for more details.
46174 -# You should have received a copy of the GNU General Public License
46175 -# along with this program; if not, write to the Free Software
46176 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
46178 -# As a special exception to the GNU General Public License, if you
46179 -# distribute this file as part of a program that contains a
46180 -# configuration script generated by Autoconf, you may include it under
46181 -# the same distribution terms that you use for the rest of that program.
46183 -# A lot of this script is taken from autoconf-2.10.
46185 -# The HP-UX ksh and POSIX shell print the target directory to stdout
46186 -# if CDPATH is set.
46187 -if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
46189 -echo=echo
46190 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then :
46191 -else
46192 - # The Solaris and AIX default echo program unquotes backslashes.
46193 - # This makes it impossible to quote backslashes using
46194 - # echo "$something" | sed 's/\\/\\\\/g'
46195 - # So, we emulate echo with printf '%s\n'
46196 - echo="printf %s\\n"
46197 - if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then :
46198 - else
46199 - # Oops. We have no working printf. Try to find a not-so-buggy echo.
46200 - echo=echo
46201 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
46202 - for dir in $PATH /usr/ucb; do
46203 - if test -f $dir/echo && test "X`$dir/echo '\t'`" = 'X\t'; then
46204 - echo="$dir/echo"
46205 - break
46206 - fi
46207 - done
46208 - IFS="$save_ifs"
46209 - fi
46212 -# Sed substitution that helps us do robust quoting. It backslashifies
46213 -# metacharacters that are still active within double-quoted strings.
46214 -Xsed='sed -e s/^X//'
46215 -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
46217 -# Same as above, but do not quote variable references.
46218 -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
46220 -# The name of this program.
46221 -progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
46223 -# Constants:
46224 -PROGRAM=ltconfig
46225 -PACKAGE=libtool
46226 -VERSION=1.2
46227 -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
46228 -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
46229 -rm="rm -f"
46231 -help="Try \`$progname --help' for more information."
46233 -# Global variables:
46234 -can_build_shared=yes
46235 -enable_shared=yes
46236 -# All known linkers require a `.a' archive for static linking.
46237 -enable_static=yes
46238 -ltmain=
46239 -silent=
46240 -srcdir=
46241 -ac_config_guess=
46242 -ac_config_sub=
46243 -host=
46244 -nonopt=
46245 -verify_host=yes
46246 -with_gcc=no
46247 -with_gnu_ld=no
46249 -old_AR="$AR"
46250 -old_CC="$CC"
46251 -old_CFLAGS="$CFLAGS"
46252 -old_CPPFLAGS="$CPPFLAGS"
46253 -old_LD="$LD"
46254 -old_LN_S="$LN_S"
46255 -old_NM="$NM"
46256 -old_RANLIB="$RANLIB"
46258 -# Parse the command line options.
46259 -args=
46260 -prev=
46261 -for option
46263 - case "$option" in
46264 - -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
46265 - *) optarg= ;;
46266 - esac
46268 - # If the previous option needs an argument, assign it.
46269 - if test -n "$prev"; then
46270 - eval "$prev=\$option"
46271 - prev=
46272 - continue
46273 - fi
46275 - case "$option" in
46276 - --help) cat <<EOM
46277 -Usage: $progname [OPTION]... LTMAIN [HOST]
46279 -Generate a system-specific libtool script.
46281 - --disable-shared do not build shared libraries
46282 - --disable-static do not build static libraries
46283 - --help display this help and exit
46284 - --no-verify do not verify that HOST is a valid host type
46285 - --quiet same as \`--silent'
46286 - --silent do not print informational messages
46287 - --srcdir=DIR find \`config.guess' in DIR
46288 - --version output version information and exit
46289 - --with-gcc assume that the GNU C compiler will be used
46290 - --with-gnu-ld assume that the C compiler uses the GNU linker
46292 -LTMAIN is the \`ltmain.sh' shell script fragment that provides basic libtool
46293 -functionality.
46295 -HOST is the canonical host system name [default=guessed].
46296 -EOM
46297 - exit 0
46298 - ;;
46300 - --disable-shared) enable_shared=no ;;
46302 - --disable-static) enable_static=no ;;
46304 - --quiet | --silent) silent=yes ;;
46306 - --srcdir) prev=srcdir ;;
46307 - --srcdir=*) srcdir="$optarg" ;;
46309 - --no-verify) verify_host=no ;;
46311 - --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION"; exit 0 ;;
46313 - --with-gcc) with_gcc=yes ;;
46314 - --with-gnu-ld) with_gnu_ld=yes ;;
46316 - -*)
46317 - echo "$progname: unrecognized option \`$option'" 1>&2
46318 - echo "$help" 1>&2
46319 - exit 1
46320 - ;;
46322 - *)
46323 - if test -z "$ltmain"; then
46324 - ltmain="$option"
46325 - elif test -z "$host"; then
46326 -# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
46327 -# if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
46328 -# echo "$progname: warning \`$option' is not a valid host type" 1>&2
46329 -# fi
46330 - host="$option"
46331 - else
46332 - echo "$progname: too many arguments" 1>&2
46333 - echo "$help" 1>&2
46334 - exit 1
46335 - fi ;;
46336 - esac
46337 -done
46339 -if test -z "$ltmain"; then
46340 - echo "$progname: you must specify a LTMAIN file" 1>&2
46341 - echo "$help" 1>&2
46342 - exit 1
46345 -if test -f "$ltmain"; then :
46346 -else
46347 - echo "$progname: \`$ltmain' does not exist" 1>&2
46348 - echo "$help" 1>&2
46349 - exit 1
46352 -# Quote any args containing shell metacharacters.
46353 -ltconfig_args=
46354 -for arg
46356 - case "$arg" in
46357 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
46358 - ltconfig_args="$ltconfig_args '$arg'" ;;
46359 - *) ltconfig_args="$ltconfig_args $arg" ;;
46360 - esac
46361 -done
46363 -# A relevant subset of AC_INIT.
46365 -# File descriptor usage:
46366 -# 0 standard input
46367 -# 1 file creation
46368 -# 2 errors and warnings
46369 -# 3 some systems may open it to /dev/tty
46370 -# 4 used on the Kubota Titan
46371 -# 5 compiler messages saved in config.log
46372 -# 6 checking for... messages and results
46373 -if test "$silent" = yes; then
46374 - exec 6>/dev/null
46375 -else
46376 - exec 6>&1
46378 -exec 5>>./config.log
46380 -# NLS nuisances.
46381 -# Only set LANG and LC_ALL to C if already set.
46382 -# These must not be set unconditionally because not all systems understand
46383 -# e.g. LANG=C (notably SCO).
46384 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
46385 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
46387 -if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
46388 - # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
46389 - if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
46390 - ac_n= ac_c='
46391 -' ac_t=' '
46392 - else
46393 - ac_n=-n ac_c= ac_t=
46394 - fi
46395 -else
46396 - ac_n= ac_c='\c' ac_t=
46399 -if test -z "$srcdir"; then
46400 - # Assume the source directory is the same one as the path to ltmain.sh.
46401 - srcdir=`$echo "$ltmain" | $Xsed -e 's%/[^/]*$%%'`
46402 - test "$srcdir" = "$ltmain" && srcdir=.
46405 -trap "$rm conftest*; exit 1" 1 2 15
46406 -if test "$verify_host" = yes; then
46407 - # Check for config.guess and config.sub.
46408 - ac_aux_dir=
46409 - for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
46410 - if test -f $ac_dir/config.guess; then
46411 - ac_aux_dir=$ac_dir
46412 - break
46413 - fi
46414 - done
46415 - if test -z "$ac_aux_dir"; then
46416 - echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
46417 - echo "$help" 1>&2
46418 - exit 1
46419 - fi
46420 - ac_config_guess=$ac_aux_dir/config.guess
46421 - ac_config_sub=$ac_aux_dir/config.sub
46423 - # Make sure we can run config.sub.
46424 - if $ac_config_sub sun4 >/dev/null 2>&1; then :
46425 - else
46426 - echo "$progname: cannot run $ac_config_sub" 1>&2
46427 - echo "$help" 1>&2
46428 - exit 1
46429 - fi
46431 - echo $ac_n "checking host system type""... $ac_c" 1>&6
46433 - host_alias=$host
46434 - case "$host_alias" in
46435 - "")
46436 - if host_alias=`$ac_config_guess`; then :
46437 - else
46438 - echo "$progname: cannot guess host type; you must specify one" 1>&2
46439 - echo "$help" 1>&2
46440 - exit 1
46441 - fi ;;
46442 - esac
46443 - host=`$ac_config_sub $host_alias`
46444 - echo "$ac_t$host" 1>&6
46446 - # Make sure the host verified.
46447 - test -z "$host" && exit 1
46449 -elif test -z "$host"; then
46450 - echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
46451 - echo "$help" 1>&2
46452 - exit 1
46453 -else
46454 - host_alias=$host
46457 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
46458 -case "$host_os" in
46459 -linux-gnu*) ;;
46460 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
46461 -esac
46463 -host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
46464 -host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
46465 -host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
46467 -case "$host_os" in
46468 -aix3*)
46469 - # AIX sometimes has problems with the GCC collect2 program. For some
46470 - # reason, if we set the COLLECT_NAMES environment variable, the problems
46471 - # vanish in a puff of smoke.
46472 - if test "${COLLECT_NAMES+set}" != set; then
46473 - COLLECT_NAMES=
46474 - export COLLECT_NAMES
46475 - fi
46476 - ;;
46477 -esac
46479 -# Determine commands to create old-style static archives.
46480 -old_archive_cmds='$AR cru $oldlib$oldobjs'
46481 -old_postinstall_cmds='chmod 644 $oldlib'
46482 -old_postuninstall_cmds=
46484 -# Set a sane default for `AR'.
46485 -test -z "$AR" && AR=ar
46487 -# If RANLIB is not set, then run the test.
46488 -if test "${RANLIB+set}" != "set"; then
46489 - result=no
46491 - echo $ac_n "checking for ranlib... $ac_c" 1>&6
46492 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
46493 - for dir in $PATH; do
46494 - test -z "$dir" && dir=.
46495 - if test -f $dir/ranlib; then
46496 - RANLIB="ranlib"
46497 - result="ranlib"
46498 - break
46499 - fi
46500 - done
46501 - IFS="$save_ifs"
46503 - echo "$ac_t$result" 1>&6
46506 -if test -n "$RANLIB"; then
46507 - old_archive_cmds="$old_archive_cmds;\$RANLIB \$oldlib"
46508 - old_postinstall_cmds="\$RANLIB \$oldlib;$old_postinstall_cmds"
46511 -# Check to see if we are using GCC.
46512 -if test "$with_gcc" != yes || test -z "$CC"; then
46513 - # If CC is not set, then try to find GCC or a usable CC.
46514 - if test -z "$CC"; then
46515 - echo $ac_n "checking for gcc... $ac_c" 1>&6
46516 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
46517 - for dir in $PATH; do
46518 - IFS="$save_ifs"
46519 - test -z "$dir" && dir=.
46520 - if test -f $dir/gcc; then
46521 - CC="gcc"
46522 - break
46523 - fi
46524 - done
46525 - IFS="$save_ifs"
46527 - if test -n "$CC"; then
46528 - echo "$ac_t$CC" 1>&6
46529 - else
46530 - echo "$ac_t"no 1>&6
46531 - fi
46532 - fi
46534 - # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
46535 - if test -z "$CC"; then
46536 - echo $ac_n "checking for cc... $ac_c" 1>&6
46537 - IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
46538 - cc_rejected=no
46539 - for dir in $PATH; do
46540 - test -z "$dir" && dir=.
46541 - if test -f $dir/cc; then
46542 - if test "$dir/cc" = "/usr/ucb/cc"; then
46543 - cc_rejected=yes
46544 - continue
46545 - fi
46546 - CC="cc"
46547 - break
46548 - fi
46549 - done
46550 - IFS="$save_ifs"
46551 - if test $cc_rejected = yes; then
46552 - # We found a bogon in the path, so make sure we never use it.
46553 - set dummy $CC
46554 - shift
46555 - if test $# -gt 0; then
46556 - # We chose a different compiler from the bogus one.
46557 - # However, it has the same name, so the bogon will be chosen
46558 - # first if we set CC to just the name; use the full file name.
46559 - shift
46560 - set dummy "$dir/cc" "$@"
46561 - shift
46562 - CC="$@"
46563 - fi
46564 - fi
46566 - if test -n "$CC"; then
46567 - echo "$ac_t$CC" 1>&6
46568 - else
46569 - echo "$ac_t"no 1>&6
46570 - fi
46572 - if test -z "$CC"; then
46573 - echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
46574 - exit 1
46575 - fi
46576 - fi
46578 - # Now see if the compiler is really GCC.
46579 - with_gcc=no
46580 - echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
46581 - echo "$progname:424: checking whether we are using GNU C" >&5
46583 - $rm conftest.c
46584 - cat > conftest.c <<EOF
46585 -#ifdef __GNUC__
46586 - yes;
46587 -#endif
46588 -EOF
46589 - if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:432: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
46590 - with_gcc=yes
46591 - fi
46592 - $rm conftest.c
46593 - echo "$ac_t$with_gcc" 1>&6
46596 -# Allow CC to be a program name with arguments.
46597 -set dummy $CC
46598 -compiler="$2"
46600 -echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
46601 -pic_flag=
46602 -special_shlib_compile_flags=
46603 -wl=
46604 -link_static_flag=
46605 -no_builtin_flag=
46607 -if test "$with_gcc" = yes; then
46608 - wl='-Wl,'
46609 - link_static_flag='-static'
46610 - no_builtin_flag=' -fno-builtin'
46612 - case "$host_os" in
46613 - aix3* | aix4* | irix5* | irix6* | osf3* | osf4*)
46614 - # PIC is the default for these OSes.
46615 - ;;
46616 - os2*)
46617 - # We can build DLLs from non-PIC.
46618 - ;;
46619 - amigaos*)
46620 - # FIXME: we need at least 68020 code to build shared libraries, but
46621 - # adding the `-m68020' flag to GCC prevents building anything better,
46622 - # like `-m68040'.
46623 - pic_flag='-m68020 -resident32 -malways-restore-a4'
46624 - ;;
46625 - *)
46626 - pic_flag='-fPIC'
46627 - ;;
46628 - esac
46629 -else
46630 - # PORTME Check for PIC flags for the system compiler.
46631 - case "$host_os" in
46632 - aix3* | aix4*)
46633 - # All AIX code is PIC.
46634 - link_static_flag='-bnso -bI:/lib/syscalls.exp'
46635 - ;;
46637 - hpux9* | hpux10*)
46638 - # Is there a better link_static_flag that works with the bundled CC?
46639 - wl='-Wl,'
46640 - link_static_flag="${wl}-a ${wl}archive"
46641 - pic_flag='+Z'
46642 - ;;
46644 - irix5* | irix6*)
46645 - wl='-Wl,'
46646 - link_static_flag='-non_shared'
46647 - # PIC (with -KPIC) is the default.
46648 - ;;
46650 - os2*)
46651 - # We can build DLLs from non-PIC.
46652 - ;;
46654 - osf3* | osf4*)
46655 - # All OSF/1 code is PIC.
46656 - wl='-Wl,'
46657 - link_static_flag='-non_shared'
46658 - ;;
46660 - sco3.2v5*)
46661 - pic_flag='-Kpic'
46662 - link_static_flag='-dn'
46663 - special_shlib_compile_flags='-belf'
46664 - ;;
46666 - solaris2*)
46667 - pic_flag='-KPIC'
46668 - link_static_flag='-Bstatic'
46669 - wl='-Wl,'
46670 - ;;
46672 - sunos4*)
46673 - pic_flag='-PIC'
46674 - link_static_flag='-Bstatic'
46675 - wl='-Qoption ld '
46676 - ;;
46678 - sysv4.2uw2*)
46679 - pic_flag='-KPIC'
46680 - link_static_flag='-Bstatic'
46681 - wl='-Wl,'
46682 - ;;
46684 - uts4*)
46685 - pic_flag='-pic'
46686 - link_static_flag='-Bstatic'
46687 - ;;
46689 - *)
46690 - can_build_shared=no
46691 - ;;
46692 - esac
46695 -if test -n "$pic_flag"; then
46696 - echo "$ac_t$pic_flag" 1>&6
46698 - # Check to make sure the pic_flag actually works.
46699 - echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
46700 - $rm conftest*
46701 - echo > conftest.c
46702 - save_CFLAGS="$CFLAGS"
46703 - CFLAGS="$CFLAGS $pic_flag -DPIC"
46704 - echo "$progname:547: checking if $compiler PIC flag $pic_flag works" >&5
46705 - if { (eval echo $progname:548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
46706 - # Append any warnings to the config.log.
46707 - cat conftest.err 1>&5
46709 - # On HP-UX, both CC and GCC only warn that PIC is supported... then they
46710 - # create non-PIC objects. So, if there were any warnings, we assume that
46711 - # PIC is not supported.
46712 - if test -s conftest.err; then
46713 - echo "$ac_t"no 1>&6
46714 - can_build_shared=no
46715 - pic_flag=
46716 - else
46717 - echo "$ac_t"yes 1>&6
46718 - pic_flag=" $pic_flag"
46719 - fi
46720 - else
46721 - # Append any errors to the config.log.
46722 - cat conftest.err 1>&5
46723 - can_build_shared=no
46724 - pic_flag=
46725 - echo "$ac_t"no 1>&6
46726 - fi
46727 - CFLAGS="$save_CFLAGS"
46728 - $rm conftest*
46729 -else
46730 - echo "$ac_t"none 1>&6
46733 -# Check for any special shared library compilation flags.
46734 -if test -n "$special_shlib_compile_flags"; then
46735 - echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
46736 - if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$special_shlib_compile_flags[ ]" >/dev/null; then :
46737 - else
46738 - echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
46739 - can_build_shared=no
46740 - fi
46743 -echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
46744 -$rm conftest*
46745 -echo 'main(){return(0);}' > conftest.c
46746 -save_LDFLAGS="$LDFLAGS"
46747 -LDFLAGS="$LDFLAGS $link_static_flag"
46748 -echo "$progname:591: checking if $compiler static flag $link_static_flag works" >&5
46749 -if { (eval echo $progname:592: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
46750 - echo "$ac_t$link_static_flag" 1>&6
46751 -else
46752 - echo "$ac_t"none 1>&6
46753 - link_static_flag=
46755 -LDFLAGS="$save_LDFLAGS"
46756 -$rm conftest*
46758 -if test -z "$LN_S"; then
46759 - # Check to see if we can use ln -s, or we need hard links.
46760 - echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
46761 - $rm conftestdata
46762 - if ln -s X conftestdata 2>/dev/null; then
46763 - $rm conftestdata
46764 - LN_S="ln -s"
46765 - else
46766 - LN_S=ln
46767 - fi
46768 - if test "$LN_S" = "ln -s"; then
46769 - echo "$ac_t"yes 1>&6
46770 - else
46771 - echo "$ac_t"no 1>&6
46772 - fi
46775 -# Make sure LD is an absolute path.
46776 -if test -z "$LD"; then
46777 - ac_prog=ld
46778 - if test "$with_gcc" = yes; then
46779 - # Check if gcc -print-prog-name=ld gives a path.
46780 - echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
46781 - echo "$progname:624: checking for ld used by GCC" >&5
46782 - ac_prog=`($CC -print-prog-name=ld) 2>&5`
46783 - case "$ac_prog" in
46784 - # Accept absolute paths.
46785 - /* | [A-Za-z]:\\*)
46786 - test -z "$LD" && LD="$ac_prog"
46787 - ;;
46788 - "")
46789 - # If it fails, then pretend we are not using GCC.
46790 - ac_prog=ld
46791 - ;;
46792 - *)
46793 - # If it is relative, then search for the first ld in PATH.
46794 - with_gnu_ld=unknown
46795 - ;;
46796 - esac
46797 - elif test "$with_gnu_ld" = yes; then
46798 - echo $ac_n "checking for GNU ld... $ac_c" 1>&6
46799 - echo "$progname:642: checking for GNU ld" >&5
46800 - else
46801 - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
46802 - echo "$progname:645: checking for non-GNU ld" >&5
46803 - fi
46805 - if test -z "$LD"; then
46806 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
46807 - for ac_dir in $PATH; do
46808 - test -z "$ac_dir" && ac_dir=.
46809 - if test -f "$ac_dir/$ac_prog"; then
46810 - LD="$ac_dir/$ac_prog"
46811 - # Check to see if the program is GNU ld. I'd rather use --version,
46812 - # but apparently some GNU ld's only accept -v.
46813 - # Break only if it was the GNU/non-GNU ld that we prefer.
46814 - if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
46815 - test "$with_gnu_ld" != no && break
46816 - else
46817 - test "$with_gnu_ld" != yes && break
46818 - fi
46819 - fi
46820 - done
46821 - IFS="$ac_save_ifs"
46822 - fi
46824 - if test -n "$LD"; then
46825 - echo "$ac_t$LD" 1>&6
46826 - else
46827 - echo "$ac_t"no 1>&6
46828 - fi
46830 - if test -z "$LD"; then
46831 - echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
46832 - exit 1
46833 - fi
46836 -# Check to see if it really is or is not GNU ld.
46837 -echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
46838 -# I'd rather use --version here, but apparently some GNU ld's only accept -v.
46839 -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
46840 - with_gnu_ld=yes
46841 -else
46842 - with_gnu_ld=no
46844 -echo "$ac_t$with_gnu_ld" 1>&6
46846 -# See if the linker supports building shared libraries.
46847 -echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
46849 -allow_undefined_flag=
46850 -no_undefined_flag=
46851 -archive_cmds=
46852 -old_archive_from_new_cmds=
46853 -export_dynamic_flag_spec=
46854 -hardcode_libdir_flag_spec=
46855 -hardcode_libdir_separator=
46856 -hardcode_direct=no
46857 -hardcode_minus_L=no
46858 -hardcode_shlibpath_var=unsupported
46859 -runpath_var=
46861 -case "$host_os" in
46862 -amigaos* | sunos4*)
46863 - # On these operating systems, we should treat GNU ld like the system ld.
46864 - gnu_ld_acts_native=yes
46865 - ;;
46867 - gnu_ld_acts_native=no
46868 - ;;
46869 -esac
46871 -ld_shlibs=yes
46872 -if test "$with_gnu_ld" = yes && test "$gnu_ld_acts_native" != yes; then
46874 - # See if GNU ld supports shared libraries.
46875 - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
46876 - archive_cmds='$CC -shared ${wl}-soname $wl$soname -o $lib$libobjs'
46877 - runpath_var=LD_RUN_PATH
46878 - ld_shlibs=yes
46879 - else
46880 - ld_shlibs=no
46881 - fi
46883 - if test "$ld_shlibs" = yes; then
46884 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
46885 - export_dynamic_flag_spec='${wl}--export-dynamic'
46886 - fi
46887 -else
46888 - # PORTME fill in a description of your system's linker (not GNU ld)
46889 - case "$host_os" in
46890 - aix3*)
46891 - allow_undefined_flag=unsupported
46892 - archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\'' > $lib.exp;$LD -o $objdir/$soname$libobjs -bE:$lib.exp -T512 -H512 -bM:SRE;$AR cru $lib $objdir/$soname'
46893 - # Note: this linker hardcodes the directories in LIBPATH if there
46894 - # are no directories specified by -L.
46895 - hardcode_minus_L=yes
46896 - if test "$with_gcc" = yes && test -z "$link_static_flag"; then
46897 - # Neither direct hardcoding nor static linking is supported with a
46898 - # broken collect2.
46899 - hardcode_direct=unsupported
46900 - fi
46901 - ;;
46903 - aix4*)
46904 - allow_undefined_flag=unsupported
46905 - archive_cmds='$NM$libobjs | $global_symbol_pipe | sed '\''s/.* //'\'' > $lib.exp;$CC -o $objdir/$soname$libobjs ${wl}-bE:$lib.exp ${wl}-bM:SRE ${wl}-bnoentry;$AR cru $lib $objdir/$soname'
46906 - hardcode_direct=yes
46907 - hardcode_minus_L=yes
46908 - ;;
46910 - amigaos*)
46911 - archive_cmds='$rm $objdir/a2ixlibrary.data;$echo "#define NAME $libname" > $objdir/a2ixlibrary.data;$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data;$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data;$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data;$AR cru $lib$libobjs;$RANLIB $lib;(cd $objdir && a2ixlibrary -32)'
46912 - hardcode_libdir_flag_spec='-L$libdir'
46913 - hardcode_minus_L=yes
46914 - ;;
46916 - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
46917 - # support. Future versions do this automatically, but an explicit c++rt0.o
46918 - # does not break anything, and helps significantly (at the cost of a little
46919 - # extra space).
46920 - freebsd2.2*)
46921 - archive_cmds='$LD -Bshareable -o $lib$libobjs /usr/lib/c++rt0.o'
46922 - hardcode_libdir_flag_spec='-R$libdir'
46923 - hardcode_direct=yes
46924 - hardcode_minus_L=yes
46925 - hardcode_shlibpath_var=no
46926 - ;;
46928 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
46929 - freebsd2*)
46930 - archive_cmds='$LD -Bshareable -o $lib$libobjs'
46931 - hardcode_direct=yes
46932 - hardcode_minus_L=yes
46933 - hardcode_shlibpath_var=no
46934 - ;;
46936 - # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
46937 - freebsd3*)
46938 - archive_cmds='$CC -shared -o $lib$libobjs'
46939 - hardcode_libdir_flag_spec='-R$libdir'
46940 - hardcode_direct=yes
46941 - hardcode_minus_L=yes
46942 - hardcode_shlibpath_var=no
46943 - ;;
46945 - hpux9*)
46946 - archive_cmds='$rm $objdir/$soname;$LD -b +s +b $install_libdir -o $objdir/$soname$libobjs;mv $objdir/$soname $lib'
46947 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
46948 - hardcode_direct=yes
46949 - hardcode_minus_L=yes
46950 - export_dynamic_flag_spec='${wl}-E'
46951 - ;;
46953 - hpux10*)
46954 - archive_cmds='$LD -b +h $soname +s +b $install_libdir -o $lib$libobjs'
46955 - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
46956 - hardcode_direct=yes
46957 - hardcode_minus_L=yes
46958 - export_dynamic_flag_spec='${wl}-E'
46959 - ;;
46961 - irix5* | irix6*)
46962 - archive_cmds='$LD -shared -o $lib -soname $soname -set_version $verstring$libobjs'
46963 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46964 - ;;
46966 - netbsd*)
46967 - # Tested with NetBSD 1.2 ld
46968 - archive_cmds='$LD -Bshareable -o $lib$libobjs'
46969 - hardcode_libdir_flag_spec='-R$libdir'
46970 - hardcode_direct=yes
46971 - hardcode_shlibpath_var=no
46972 - ;;
46974 - openbsd*)
46975 - archive_cmds='$LD -Bshareable -o $lib$libobjs'
46976 - hardcode_libdir_flag_spec='-R$libdir'
46977 - hardcode_direct=yes
46978 - hardcode_shlibpath_var=no
46979 - ;;
46981 - os2*)
46982 - hardcode_libdir_flag_spec='-L$libdir'
46983 - hardcode_minus_L=yes
46984 - allow_undefined_flag=unsupported
46985 - archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def;$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def;$echo DATA >> $objdir/$libname.def;$echo " SINGLE NONSHARED" >> $objdir/$libname.def;$echo EXPORTS >> $objdir/$libname.def;emxexp$libobjs >> $objdir/$libname.def;$CC -Zdll -Zcrtdll -o $lib$libobjs $objdir/$libname.def'
46986 - old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
46987 - ;;
46989 - osf3* | osf4*)
46990 - allow_undefined_flag=' -expect_unresolved \*'
46991 - archive_cmds='$LD -shared${allow_undefined_flag} -o $lib -soname $soname -set_version $verstring$libobjs$deplibs'
46992 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
46993 - hardcode_libdir_separator=:
46994 - ;;
46996 - sco3.2v5*)
46997 - archive_cmds='$LD -G -o $lib$libobjs'
46998 - hardcode_direct=yes
46999 - ;;
47001 - solaris2*)
47002 - no_undefined_flag=' -z text'
47003 - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib$libobjs'
47004 - hardcode_libdir_flag_spec='-R$libdir'
47005 - hardcode_shlibpath_var=no
47007 - # Solaris 2 before 2.5 hardcodes -L paths.
47008 - case "$host_os" in
47009 - solaris2.[0-4]*)
47010 - hardcode_minus_L=yes
47011 - ;;
47012 - esac
47013 - ;;
47015 - sunos4*)
47016 - if test "$with_gcc" = yes; then
47017 - archive_cmds='$CC -shared -o $lib$libobjs'
47018 - else
47019 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs'
47020 - fi
47022 - if test "$with_gnu_ld" = yes; then
47023 - export_dynamic_flag_spec='${wl}-export-dynamic'
47024 - fi
47025 - hardcode_libdir_flag_spec='-L$libdir'
47026 - hardcode_direct=yes
47027 - hardcode_minus_L=yes
47028 - hardcode_shlibpath_var=no
47029 - ;;
47031 - uts4*)
47032 - archive_cmds='$LD -G -h $soname -o $lib$libobjs'
47033 - hardcode_libdir_flag_spec='-L$libdir'
47034 - hardcode_direct=no
47035 - hardcode_minus_L=no
47036 - hardcode_shlibpath_var=no
47037 - ;;
47039 - *)
47040 - ld_shlibs=no
47041 - can_build_shared=no
47042 - ;;
47043 - esac
47045 -echo "$ac_t$ld_shlibs" 1>&6
47047 -if test -z "$NM"; then
47048 - echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
47049 - case "$NM" in
47050 - /* | [A-Za-z]:\\*) ;; # Let the user override the test with a path.
47051 - *)
47052 - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
47053 - for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
47054 - test -z "$ac_dir" && ac_dir=.
47055 - if test -f $ac_dir/nm; then
47056 - # Check to see if the nm accepts a BSD-compat flag.
47057 - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
47058 - # nm: unknown option "B" ignored
47059 - if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
47060 - NM="$ac_dir/nm -B"
47061 - elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
47062 - NM="$ac_dir/nm -p"
47063 - else
47064 - NM="$ac_dir/nm"
47065 - fi
47066 - break
47067 - fi
47068 - done
47069 - IFS="$ac_save_ifs"
47070 - test -z "$NM" && NM=nm
47071 - ;;
47072 - esac
47073 - echo "$ac_t$NM" 1>&6
47076 -# Check for command to grab the raw symbol name followed by C symbol from nm.
47077 -echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
47079 -# These are sane defaults that work on at least a few old systems.
47080 -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
47082 -# Character class describing NM global symbol codes.
47083 -symcode='[BCDEGRSTU]'
47085 -# Regexp to match symbols that can be accessed directly from C.
47086 -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
47088 -# Transform the above into a raw symbol and a C symbol.
47089 -symxfrm='\1 \1'
47091 -# Define system-specific variables.
47092 -case "$host_os" in
47093 -aix*)
47094 - symcode='[BCDTU]'
47095 - ;;
47096 -irix*)
47097 - # Cannot use undefined symbols on IRIX because inlined functions mess us up.
47098 - symcode='[BCDEGRST]'
47099 - ;;
47100 -solaris2*)
47101 - symcode='[BDTU]'
47102 - ;;
47103 -esac
47105 -# If we're using GNU nm, then use its standard symbol codes.
47106 -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
47107 - symcode='[ABCDGISTUW]'
47110 -# Write the raw and C identifiers.
47111 -global_symbol_pipe="sed -n -e 's/^.* $symcode $sympat$/$symxfrm/p'"
47113 -# Check to see that the pipe works correctly.
47114 -pipe_works=no
47115 -$rm conftest*
47116 -cat > conftest.c <<EOF
47117 -#ifdef __cplusplus
47118 -extern "C" {
47119 -#endif
47120 -char nm_test_var;
47121 -void nm_test_func(){}
47122 -#ifdef __cplusplus
47124 -#endif
47125 -main(){nm_test_var='a';nm_test_func();return(0);}
47126 -EOF
47128 -echo "$progname:971: checking if global_symbol_pipe works" >&5
47129 -if { (eval echo $progname:972: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.o; then
47130 - # Now try to grab the symbols.
47131 - nlist=conftest.nm
47132 - if { echo "$progname:975: eval \"$NM conftest.o | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.o | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
47134 - # Try sorting and uniquifying the output.
47135 - if sort "$nlist" | uniq > "$nlist"T; then
47136 - mv -f "$nlist"T "$nlist"
47137 - wcout=`wc "$nlist" 2>/dev/null`
47138 - count=`$echo "X$wcout" | $Xsed -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
47139 - (test "$count" -ge 0) 2>/dev/null || count=-1
47140 - else
47141 - rm -f "$nlist"T
47142 - count=-1
47143 - fi
47145 - # Make sure that we snagged all the symbols we need.
47146 - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
47147 - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
47148 - cat <<EOF > conftest.c
47149 -#ifdef __cplusplus
47150 -extern "C" {
47151 -#endif
47153 -EOF
47154 - # Now generate the symbol file.
47155 - sed 's/^.* \(.*\)$/extern char \1;/' < "$nlist" >> conftest.c
47157 - cat <<EOF >> conftest.c
47158 -#if defined (__STDC__) && __STDC__
47159 -# define __ptr_t void *
47160 -#else
47161 -# define __ptr_t char *
47162 -#endif
47164 -/* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
47165 -int dld_preloaded_symbol_count = $count;
47167 -/* The mapping between symbol names and symbols. */
47168 -struct {
47169 - char *name;
47170 - __ptr_t address;
47172 -dld_preloaded_symbols[] =
47174 -EOF
47175 - sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$nlist" >> conftest.c
47176 - cat <<\EOF >> conftest.c
47177 - {0, (__ptr_t) 0}
47180 -#ifdef __cplusplus
47182 -#endif
47183 -EOF
47184 - # Now try linking the two files.
47185 - mv conftest.o conftestm.o
47186 - save_LIBS="$LIBS"
47187 - save_CFLAGS="$CFLAGS"
47188 - LIBS='conftestm.o'
47189 - CFLAGS="$CFLAGS$no_builtin_flag"
47190 - if { (eval echo $progname:1033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
47191 - pipe_works=yes
47192 - else
47193 - echo "$progname: failed program was:" >&5
47194 - cat conftest.c >&5
47195 - fi
47196 - LIBS="$save_LIBS"
47197 - else
47198 - echo "cannot find nm_test_func in $nlist" >&5
47199 - fi
47200 - else
47201 - echo "cannot find nm_test_var in $nlist" >&5
47202 - fi
47203 - else
47204 - echo "cannot run $global_symbol_pipe" >&5
47205 - fi
47206 -else
47207 - echo "$progname: failed program was:" >&5
47208 - cat conftest.c >&5
47210 -$rm conftest*
47212 -# Do not use the global_symbol_pipe unless it works.
47213 -echo "$ac_t$pipe_works" 1>&6
47214 -test "$pipe_works" = yes || global_symbol_pipe=
47216 -# Check hardcoding attributes.
47217 -echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6
47218 -hardcode_action=
47219 -if test -n "$hardcode_libdir_flag_spec" || \
47220 - test -n "$runpath_var"; then
47222 - # We can hardcode non-existant directories.
47223 - if test "$hardcode_direct" != no && \
47224 - test "$hardcode_minus_L" != no && \
47225 - test "$hardcode_shlibpath_var" != no; then
47227 - # Linking always hardcodes the temporary library directory.
47228 - hardcode_action=relink
47229 - else
47230 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
47231 - hardcode_action=immediate
47232 - fi
47233 -elif test "$hardcode_direct" != yes && \
47234 - test "$hardcode_minus_L" != yes && \
47235 - test "$hardcode_shlibpath_var" != yes; then
47236 - # We cannot hardcode anything.
47237 - hardcode_action=unsupported
47238 -else
47239 - # We can only hardcode existing directories.
47240 - hardcode_action=relink
47242 -echo "$ac_t$hardcode_action" 1>&6
47243 -test "$hardcode_action" = unsupported && can_build_shared=no
47246 -reload_flag=
47247 -reload_cmds='$LD$reload_flag -o $output$reload_objs'
47248 -echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6
47249 -# PORTME Some linker may need a different reload flag.
47250 -reload_flag='-r'
47251 -echo "$ac_t$reload_flag"
47252 -test -n "$reload_flag" && reload_flag=" $reload_flag"
47254 -# PORTME Fill in your ld.so characteristics
47255 -library_names_spec=
47256 -libname_spec='lib$name'
47257 -soname_spec=
47258 -postinstall_cmds=
47259 -postuninstall_cmds=
47260 -finish_cmds=
47261 -finish_eval=
47262 -shlibpath_var=
47263 -version_type=none
47264 -dynamic_linker="$host_os ld.so"
47266 -echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
47267 -case "$host_os" in
47268 -aix3* | aix4*)
47269 - version_type=linux
47270 - library_names_spec='${libname}${release}.so.$versuffix $libname.a'
47271 - shlibpath_var=LIBPATH
47273 - # AIX has no versioning support, so we append a major version to the name.
47274 - soname_spec='${libname}${release}.so.$major'
47275 - ;;
47277 -amigaos*)
47278 - library_names_spec='$libname.ixlibrary $libname.a'
47279 - # Create ${libname}_ixlibrary.a entries in /sys/libs.
47280 - 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'
47281 - ;;
47283 -freebsd2* | freebsd3*)
47284 - version_type=sunos
47285 - library_names_spec='${libname}${release}.so.$versuffix $libname.so'
47286 - finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
47287 - shlibpath_var=LD_LIBRARY_PATH
47288 - ;;
47290 -gnu*)
47291 - version_type=sunos
47292 - library_names_spec='${libname}${release}.so.$versuffix'
47293 - shlibpath_var=LD_LIBRARY_PATH
47294 - ;;
47296 -hpux9* | hpux10*)
47297 - # Give a soname corresponding to the major version so that dld.sl refuses to
47298 - # link against other versions.
47299 - dynamic_linker="$host_os dld.sl"
47300 - version_type=sunos
47301 - shlibpath_var=SHLIB_PATH
47302 - library_names_spec='${libname}${release}.sl.$versuffix ${libname}${release}.sl.$major $libname.sl'
47303 - soname_spec='${libname}${release}.sl.$major'
47304 - # HP-UX runs *really* slowly unless shared libraries are mode 555.
47305 - postinstall_cmds='chmod 555 $lib'
47306 - ;;
47308 -irix5* | irix6*)
47309 - version_type=osf
47310 - soname_spec='${libname}${release}.so'
47311 - library_names_spec='${libname}${release}.so.$versuffix $libname.so'
47312 - shlibpath_var=LD_LIBRARY_PATH
47313 - ;;
47315 -# No shared lib support for Linux oldld, aout, or coff.
47316 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
47317 - dynamic_linker=no
47318 - ;;
47320 -# This must be Linux ELF.
47321 -linux-gnu*)
47322 - version_type=linux
47323 - library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
47324 - soname_spec='${libname}${release}.so.$major'
47325 - finish_cmds='PATH="$PATH:/sbin" ldconfig -n $libdir'
47326 - shlibpath_var=LD_LIBRARY_PATH
47328 - if test -f /lib/ld.so.1; then
47329 - dynamic_linker='GNU ld.so'
47330 - else
47331 - # Only the GNU ld.so supports shared libraries on MkLinux.
47332 - case "$host_cpu" in
47333 - powerpc*) dynamic_linker=no ;;
47334 - *) dynamic_linker='Linux ld.so' ;;
47335 - esac
47336 - fi
47337 - ;;
47339 -netbsd* | openbsd*)
47340 - version_type=sunos
47341 - library_names_spec='${libname}${release}.so.$versuffix'
47342 - finish_cmds='PATH="$PATH:/sbin" ldconfig -m $libdir'
47343 - shlibpath_var=LD_LIBRARY_PATH
47344 - ;;
47346 -os2*)
47347 - libname_spec='$name'
47348 - library_names_spec='$libname.dll $libname.a'
47349 - dynamic_linker='OS/2 ld.exe'
47350 - shlibpath_var=LIBPATH
47351 - ;;
47353 -osf3* | osf4*)
47354 - version_type=osf
47355 - soname_spec='${libname}${release}.so'
47356 - library_names_spec='${libname}${release}.so.$versuffix $libname.so'
47357 - shlibpath_var=LD_LIBRARY_PATH
47358 - ;;
47360 -sco3.2v5*)
47361 - version_type=osf
47362 - soname_spec='${libname}${release}.so.$major'
47363 - library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
47364 - shlibpath_var=LD_LIBRARY_PATH
47365 - ;;
47367 -solaris2*)
47368 - version_type=linux
47369 - library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
47370 - soname_spec='${libname}${release}.so.$major'
47371 - shlibpath_var=LD_LIBRARY_PATH
47372 - ;;
47374 -sunos4*)
47375 - version_type=sunos
47376 - library_names_spec='${libname}${release}.so.$versuffix'
47377 - finish_cmds='PATH="$PATH:/usr/etc" ldconfig $libdir'
47378 - shlibpath_var=LD_LIBRARY_PATH
47379 - ;;
47381 -sysv4.2uw2*)
47382 - version_type=linux
47383 - library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
47384 - soname_spec='${libname}${release}.so.$major'
47385 - shlibpath_var=LD_LIBRARY_PATH
47386 - ;;
47388 -uts4*)
47389 - version_type=linux
47390 - library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major $libname.so'
47391 - soname_spec='${libname}${release}.so.$major'
47392 - shlibpath_var=LD_LIBRARY_PATH
47393 - ;;
47396 - dynamic_linker=no
47397 - ;;
47398 -esac
47399 -echo "$ac_t$dynamic_linker"
47400 -test "$dynamic_linker" = no && can_build_shared=no
47402 -# Report the final consequences.
47403 -echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
47405 -echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6
47406 -test "$can_build_shared" = "no" && enable_shared=no
47408 -# On AIX, shared libraries and static libraries use the same namespace, and
47409 -# are all built from PIC.
47410 -case "$host_os" in
47411 -aix*)
47412 - test "$enable_shared" = yes && enable_static=no
47413 - if test -n "$RANLIB"; then
47414 - archive_cmds="$archive_cmds;\$RANLIB \$lib"
47415 - postinstall_cmds='$RANLIB $lib'
47416 - fi
47417 - ;;
47418 -esac
47420 -echo "$ac_t$enable_shared" 1>&6
47422 -# Make sure either enable_shared or enable_static is yes.
47423 -test "$enable_shared" = yes || enable_static=yes
47425 -echo "checking whether to build static libraries... $enable_static" 1>&6
47427 -echo $ac_n "checking for objdir... $ac_c" 1>&6
47428 -rm -f .libs 2>/dev/null
47429 -mkdir .libs 2>/dev/null
47430 -if test -d .libs; then
47431 - objdir=.libs
47432 -else
47433 - # MS-DOS does not allow filenames that begin with a dot.
47434 - objdir=_libs
47436 -rmdir .libs 2>/dev/null
47437 -echo "$ac_t$objdir" 1>&6
47439 -# Copy echo and quote the copy, instead of the original, because it is
47440 -# used later.
47441 -ltecho="$echo"
47443 -# Now quote all the things that may contain metacharacters.
47444 -for var in ltecho old_CC old_CFLAGS old_CPPFLAGS old_LD old_NM old_RANLIB \
47445 - old_LN_S AR CC LD LN_S NM reload_flag reload_cmds wl pic_flag \
47446 - link_static_flag no_builtin_flag export_dynamic_flag_spec \
47447 - libname_spec library_names_spec soname_spec RANLIB \
47448 - old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
47449 - old_postuninstall_cmds archive_cmds postinstall_cmds postuninstall_cmds \
47450 - allow_undefined_flag no_undefined_flag \
47451 - finish_cmds finish_eval global_symbol_pipe \
47452 - hardcode_libdir_flag_spec hardcode_libdir_separator; do
47454 - case "$var" in
47455 - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
47456 - old_postinstall_cmds | old_postuninstall_cmds | archive_cmds | \
47457 - postinstall_cmds | postuninstall_cmds | finish_cmds)
47458 - # Double-quote double-evaled strings.
47459 - eval "$var=\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\"\`"
47460 - ;;
47461 - *)
47462 - eval "$var=\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`"
47463 - ;;
47464 - esac
47465 -done
47467 -ofile=libtool
47468 -trap "$rm $ofile; exit 1" 1 2 15
47469 -echo creating $ofile
47470 -$rm $ofile
47471 -cat <<EOF > $ofile
47472 -#! /bin/sh
47474 -# libtool - Provide generalized library-building support services.
47475 -# Generated automatically by $PROGRAM - GNU $PACKAGE $VERSION
47476 -# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
47478 -# Copyright (C) 1996-1998 Free Software Foundation, Inc.
47479 -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
47481 -# This program is free software; you can redistribute it and/or modify
47482 -# it under the terms of the GNU General Public License as published by
47483 -# the Free Software Foundation; either version 2 of the License, or
47484 -# (at your option) any later version.
47486 -# This program is distributed in the hope that it will be useful, but
47487 -# WITHOUT ANY WARRANTY; without even the implied warranty of
47488 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
47489 -# General Public License for more details.
47491 -# You should have received a copy of the GNU General Public License
47492 -# along with this program; if not, write to the Free Software
47493 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
47495 -# As a special exception to the GNU General Public License, if you
47496 -# distribute this file as part of a program that contains a
47497 -# configuration script generated by Autoconf, you may include it under
47498 -# the same distribution terms that you use for the rest of that program.
47500 -# This program was configured as follows,
47501 -# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
47503 -# CC="$old_CC" CFLAGS="$old_CFLAGS" CPPFLAGS="$old_CPPFLAGS" \\
47504 -# LD="$old_LD" NM="$old_NM" RANLIB="$old_RANLIB" LN_S="$old_LN_S" \\
47505 -# $0$ltconfig_args
47507 -# Compiler and other test output produced by $progname, useful for
47508 -# debugging $progname, is in ./config.log if it exists.
47510 -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
47511 -Xsed="sed -e s/^X//"
47513 -# The HP-UX ksh and POSIX shell print the target directory to stdout
47514 -# if CDPATH is set.
47515 -if test "\${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
47517 -# An echo program that does not interpret backslashes.
47518 -echo="$ltecho"
47520 -# The version of $progname that generated this script.
47521 -LTCONFIG_VERSION="$VERSION"
47523 -# Shell to use when invoking shell scripts.
47524 -SHELL=${CONFIG_SHELL-/bin/sh}
47526 -# Whether or not to build libtool libraries.
47527 -build_libtool_libs=$enable_shared
47529 -# Whether or not to build old-style libraries.
47530 -build_old_libs=$enable_static
47532 -# The host system.
47533 -host_alias="$host_alias"
47534 -host="$host"
47536 -# The archiver.
47537 -AR="$AR"
47539 -# The default C compiler.
47540 -CC="$CC"
47542 -# The linker used to build libraries.
47543 -LD="$LD"
47545 -# Whether we need hard or soft links.
47546 -LN_S="$LN_S"
47548 -# A BSD-compatible nm program.
47549 -NM="$NM"
47551 -# The name of the directory that contains temporary libtool files.
47552 -objdir="$objdir"
47554 -# How to create reloadable object files.
47555 -reload_flag="$reload_flag"
47556 -reload_cmds="$reload_cmds"
47558 -# How to pass a linker flag through the compiler.
47559 -wl="$wl"
47561 -# Additional compiler flags for building library objects.
47562 -pic_flag="$pic_flag"
47564 -# Compiler flag to prevent dynamic linking.
47565 -link_static_flag="$link_static_flag"
47567 -# Compiler flag to turn off builtin functions.
47568 -no_builtin_flag="$no_builtin_flag"
47570 -# Compiler flag to allow reflexive dlopens.
47571 -export_dynamic_flag_spec="$export_dynamic_flag_spec"
47573 -# Library versioning type.
47574 -version_type=$version_type
47576 -# Format of library name prefix.
47577 -libname_spec="$libname_spec"
47579 -# List of archive names. First name is the real one, the rest are links.
47580 -# The last name is the one that the linker finds with -lNAME.
47581 -library_names_spec="$library_names_spec"
47583 -# The coded name of the library, if different from the real name.
47584 -soname_spec="$soname_spec"
47586 -# Commands used to build and install an old-style archive.
47587 -RANLIB="$RANLIB"
47588 -old_archive_cmds="$old_archive_cmds"
47589 -old_postinstall_cmds="$old_postinstall_cmds"
47590 -old_postuninstall_cmds="$old_postuninstall_cmds"
47592 -# Create an old-style archive from a shared archive.
47593 -old_archive_from_new_cmds="$old_archive_from_new_cmds"
47595 -# Commands used to build and install a shared archive.
47596 -archive_cmds="$archive_cmds"
47597 -postinstall_cmds="$postinstall_cmds"
47598 -postuninstall_cmds="$postuninstall_cmds"
47600 -# Flag that allows shared libraries with undefined symbols to be built.
47601 -allow_undefined_flag="$allow_undefined_flag"
47603 -# Flag that forces no undefined symbols.
47604 -no_undefined_flag="$no_undefined_flag"
47606 -# Commands used to finish a libtool library installation in a directory.
47607 -finish_cmds="$finish_cmds"
47609 -# Same as above, but a single script fragment to be evaled but not shown.
47610 -finish_eval="$finish_eval"
47612 -# Take the output of nm and produce a listing of raw symbols and C names.
47613 -global_symbol_pipe="$global_symbol_pipe"
47615 -# This is the shared library runtime path variable.
47616 -runpath_var=$runpath_var
47618 -# This is the shared library path variable.
47619 -shlibpath_var=$shlibpath_var
47621 -# How to hardcode a shared library path into an executable.
47622 -hardcode_action=$hardcode_action
47624 -# Flag to hardcode \$libdir into a binary during linking.
47625 -# This must work even if \$libdir does not exist.
47626 -hardcode_libdir_flag_spec="$hardcode_libdir_flag_spec"
47628 -# Whether we need a single -rpath flag with a separated argument.
47629 -hardcode_libdir_separator="$hardcode_libdir_separator"
47631 -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
47632 -# resulting binary.
47633 -hardcode_direct=$hardcode_direct
47635 -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
47636 -# resulting binary.
47637 -hardcode_minus_L=$hardcode_minus_L
47639 -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
47640 -# the resulting binary.
47641 -hardcode_shlibpath_var=$hardcode_shlibpath_var
47643 -EOF
47645 -case "$host_os" in
47646 -aix3*)
47647 - cat <<\EOF >> $ofile
47648 -# AIX sometimes has problems with the GCC collect2 program. For some
47649 -# reason, if we set the COLLECT_NAMES environment variable, the problems
47650 -# vanish in a puff of smoke.
47651 -if test "${COLLECT_NAMES+set}" != set; then
47652 - COLLECT_NAMES=
47653 - export COLLECT_NAMES
47656 -EOF
47657 - ;;
47658 -esac
47660 -# Append the ltmain.sh script.
47661 -cat "$ltmain" >> $ofile || (rm -f $ofile; exit 1)
47663 -chmod +x $ofile
47664 -exit 0
47666 -# Local Variables:
47667 -# mode:shell-script
47668 -# sh-indentation:2
47669 -# End:
47670 diff --git a/ltmain.sh b/ltmain.sh
47671 deleted file mode 100755
47672 index e9350b3..0000000
47673 --- a/ltmain.sh
47674 +++ /dev/null
47675 @@ -1,2453 +0,0 @@
47676 -# ltmain.sh - Provide generalized library-building support services.
47677 -# NOTE: Changing this file will not affect anything until you rerun ltconfig.
47679 -# Copyright (C) 1996-1998 Free Software Foundation, Inc.
47680 -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
47682 -# This program is free software; you can redistribute it and/or modify
47683 -# it under the terms of the GNU General Public License as published by
47684 -# the Free Software Foundation; either version 2 of the License, or
47685 -# (at your option) any later version.
47687 -# This program is distributed in the hope that it will be useful, but
47688 -# WITHOUT ANY WARRANTY; without even the implied warranty of
47689 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
47690 -# General Public License for more details.
47692 -# You should have received a copy of the GNU General Public License
47693 -# along with this program; if not, write to the Free Software
47694 -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
47696 -# As a special exception to the GNU General Public License, if you
47697 -# distribute this file as part of a program that contains a
47698 -# configuration script generated by Autoconf, you may include it under
47699 -# the same distribution terms that you use for the rest of that program.
47701 -# The name of this program.
47702 -progname=`$echo "$0" | sed 's%^.*/%%'`
47703 -modename="$progname"
47705 -# Constants.
47706 -PROGRAM=ltmain.sh
47707 -PACKAGE=libtool
47708 -VERSION=1.2
47710 -default_mode=
47711 -help="Try \`$progname --help' for more information."
47712 -magic="%%%MAGIC variable%%%"
47713 -mkdir="mkdir"
47714 -mv="mv -f"
47715 -rm="rm -f"
47717 -# Sed substitution that helps us do robust quoting. It backslashifies
47718 -# metacharacters that are still active within double-quoted strings.
47719 -Xsed='sed -e s/^X//'
47720 -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
47722 -# NLS nuisances.
47723 -# Only set LANG and LC_ALL to C if already set.
47724 -# These must not be set unconditionally because not all systems understand
47725 -# e.g. LANG=C (notably SCO).
47726 -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
47727 -if test "${LANG+set}" = set; then LANG=C; export LANG; fi
47729 -if test "$LTCONFIG_VERSION" != "$VERSION"; then
47730 - echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
47731 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
47732 - exit 1
47735 -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
47736 - echo "$modename: not configured to build any kind of library" 1>&2
47737 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
47738 - exit 1
47741 -# Global variables.
47742 -mode=$default_mode
47743 -nonopt=
47744 -prev=
47745 -prevopt=
47746 -run=
47747 -show="$echo"
47748 -show_help=
47749 -execute_dlfiles=
47751 -# Parse our command line options once, thoroughly.
47752 -while test $# -gt 0
47754 - arg="$1"
47755 - shift
47757 - case "$arg" in
47758 - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
47759 - *) optarg= ;;
47760 - esac
47762 - # If the previous option needs an argument, assign it.
47763 - if test -n "$prev"; then
47764 - case "$prev" in
47765 - execute_dlfiles)
47766 - eval "$prev=\"\$$prev \$arg\""
47767 - ;;
47768 - *)
47769 - eval "$prev=\$arg"
47770 - ;;
47771 - esac
47773 - prev=
47774 - prevopt=
47775 - continue
47776 - fi
47778 - # Have we seen a non-optional argument yet?
47779 - case "$arg" in
47780 - --help)
47781 - show_help=yes
47782 - ;;
47784 - --version)
47785 - echo "$PROGRAM (GNU $PACKAGE) $VERSION"
47786 - exit 0
47787 - ;;
47789 - --dry-run | -n)
47790 - run=:
47791 - ;;
47793 - --features)
47794 - echo "host: $host"
47795 - if test "$build_libtool_libs" = yes; then
47796 - echo "enable shared libraries"
47797 - else
47798 - echo "disable shared libraries"
47799 - fi
47800 - if test "$build_old_libs" = yes; then
47801 - echo "enable static libraries"
47802 - else
47803 - echo "disable static libraries"
47804 - fi
47805 - exit 0
47806 - ;;
47808 - --finish) mode="finish" ;;
47810 - --mode) prevopt="--mode" prev=mode ;;
47811 - --mode=*) mode="$optarg" ;;
47813 - --quiet | --silent)
47814 - show=:
47815 - ;;
47817 - -dlopen)
47818 - prevopt="-dlopen"
47819 - prev=execute_dlfiles
47820 - ;;
47822 - -*)
47823 - $echo "$modename: unrecognized option \`$arg'" 1>&2
47824 - $echo "$help" 1>&2
47825 - exit 1
47826 - ;;
47828 - *)
47829 - nonopt="$arg"
47830 - break
47831 - ;;
47832 - esac
47833 -done
47835 -if test -n "$prevopt"; then
47836 - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
47837 - $echo "$help" 1>&2
47838 - exit 1
47841 -if test -z "$show_help"; then
47843 - # Infer the operation mode.
47844 - if test -z "$mode"; then
47845 - case "$nonopt" in
47846 - *cc | *++ | gcc* | *-gcc*)
47847 - mode=link
47848 - for arg
47849 - do
47850 - case "$arg" in
47851 - -c)
47852 - mode=compile
47853 - break
47854 - ;;
47855 - esac
47856 - done
47857 - ;;
47858 - *db | *dbx)
47859 - mode=execute
47860 - ;;
47861 - *install*|cp|mv)
47862 - mode=install
47863 - ;;
47864 - *rm)
47865 - mode=uninstall
47866 - ;;
47867 - *)
47868 - # If we have no mode, but dlfiles were specified, then do execute mode.
47869 - test -n "$execute_dlfiles" && mode=execute
47871 - # Just use the default operation mode.
47872 - if test -z "$mode"; then
47873 - if test -n "$nonopt"; then
47874 - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
47875 - else
47876 - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
47877 - fi
47878 - fi
47879 - ;;
47880 - esac
47881 - fi
47883 - # Only execute mode is allowed to have -dlopen flags.
47884 - if test -n "$execute_dlfiles" && test "$mode" != execute; then
47885 - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
47886 - $echo "$help" 1>&2
47887 - exit 1
47888 - fi
47890 - # Change the help message to a mode-specific one.
47891 - generic_help="$help"
47892 - help="Try \`$modename --help --mode=$mode' for more information."
47894 - # These modes are in order of execution frequency so that they run quickly.
47895 - case "$mode" in
47896 - # libtool compile mode
47897 - compile)
47898 - modename="$modename: compile"
47899 - # Get the compilation command and the source file.
47900 - base_compile=
47901 - lastarg=
47902 - srcfile="$nonopt"
47903 - suppress_output=
47905 - for arg
47906 - do
47907 - # Accept any command-line options.
47908 - case "$arg" in
47909 - -o)
47910 - $echo "$modename: you cannot specify the output filename with \`-o'" 1>&2
47911 - $echo "$help" 1>&2
47912 - exit 1
47913 - ;;
47915 - -static)
47916 - build_libtool_libs=no
47917 - build_old_libs=yes
47918 - continue
47919 - ;;
47920 - esac
47922 - # Accept the current argument as the source file.
47923 - lastarg="$srcfile"
47924 - srcfile="$arg"
47926 - # Aesthetically quote the previous argument.
47928 - # Backslashify any backslashes, double quotes, and dollar signs.
47929 - # These are the only characters that are still specially
47930 - # interpreted inside of double-quoted scrings.
47931 - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
47933 - # Double-quote args containing other shell metacharacters.
47934 - # Many Bourne shells cannot handle close brackets correctly in scan
47935 - # sets, so we specify it separately.
47936 - case "$lastarg" in
47937 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
47938 - lastarg="\"$lastarg\""
47939 - ;;
47940 - esac
47942 - # Add the previous argument to base_compile.
47943 - if test -z "$base_compile"; then
47944 - base_compile="$lastarg"
47945 - else
47946 - base_compile="$base_compile $lastarg"
47947 - fi
47948 - done
47950 - # Get the name of the library object.
47951 - libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
47953 - # Recognize several different file suffixes.
47954 - xform='[cCFSfms]'
47955 - case "$libobj" in
47956 - *.ada) xform=ada ;;
47957 - *.adb) xform=adb ;;
47958 - *.ads) xform=ads ;;
47959 - *.asm) xform=asm ;;
47960 - *.c++) xform=c++ ;;
47961 - *.cc) xform=cc ;;
47962 - *.cpp) xform=cpp ;;
47963 - *.cxx) xform=cxx ;;
47964 - *.f90) xform=f90 ;;
47965 - *.for) xform=for ;;
47966 - esac
47968 - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
47970 - case "$libobj" in
47971 - *.lo) obj=`$echo "X$libobj" | $Xsed -e 's/\.lo$/.o/'` ;;
47972 - *)
47973 - $echo "$modename: cannot determine name of library object from \`$srcfile'" 1>&2
47974 - exit 1
47975 - ;;
47976 - esac
47978 - if test -z "$base_compile"; then
47979 - $echo "$modename: you must specify a compilation command" 1>&2
47980 - $echo "$help" 1>&2
47981 - exit 1
47982 - fi
47984 - # Delete any leftover library objects.
47985 - if test "$build_old_libs" = yes; then
47986 - $run $rm $obj $libobj
47987 - trap "$run $rm $obj $libobj; exit 1" 1 2 15
47988 - else
47989 - $run $rm $libobj
47990 - trap "$run $rm $libobj; exit 1" 1 2 15
47991 - fi
47993 - # Only build a PIC object if we are building libtool libraries.
47994 - if test "$build_libtool_libs" = yes; then
47995 - # Without this assignment, base_compile gets emptied.
47996 - fbsd_hideous_sh_bug=$base_compile
47998 - # All platforms use -DPIC, to notify preprocessed assembler code.
47999 - $show "$base_compile$pic_flag -DPIC $srcfile"
48000 - if $run eval "$base_compile\$pic_flag -DPIC \$srcfile"; then :
48001 - else
48002 - test -n "$obj" && $run $rm $obj
48003 - exit 1
48004 - fi
48006 - # If we have no pic_flag, then copy the object into place and finish.
48007 - if test -z "$pic_flag"; then
48008 - $show "$LN_S $obj $libobj"
48009 - $run $LN_S $obj $libobj
48010 - exit $?
48011 - fi
48013 - # Just move the object, then go on to compile the next one
48014 - $show "$mv $obj $libobj"
48015 - $run $mv $obj $libobj || exit 1
48017 - # Allow error messages only from the first compilation.
48018 - suppress_output=' >/dev/null 2>&1'
48019 - fi
48021 - # Only build a position-dependent object if we build old libraries.
48022 - if test "$build_old_libs" = yes; then
48023 - # Suppress compiler output if we already did a PIC compilation.
48024 - $show "$base_compile $srcfile$suppress_output"
48025 - if $run eval "$base_compile \$srcfile$suppress_output"; then :
48026 - else
48027 - $run $rm $obj $libobj
48028 - exit 1
48029 - fi
48030 - fi
48032 - # Create an invalid libtool object if no PIC, so that we do not
48033 - # accidentally link it into a program.
48034 - if test "$build_libtool_libs" != yes; then
48035 - $show "echo timestamp > $libobj"
48036 - $run eval "echo timestamp > \$libobj" || exit $?
48037 - fi
48039 - exit 0
48040 - ;;
48042 - # libtool link mode
48043 - link)
48044 - modename="$modename: link"
48045 - CC="$nonopt"
48046 - allow_undefined=yes
48047 - compile_command="$CC"
48048 - finalize_command="$CC"
48050 - compile_shlibpath=
48051 - finalize_shlibpath=
48052 - deplibs=
48053 - dlfiles=
48054 - dlprefiles=
48055 - export_dynamic=no
48056 - hardcode_libdirs=
48057 - libobjs=
48058 - link_against_libtool_libs=
48059 - ltlibs=
48060 - objs=
48061 - prev=
48062 - prevarg=
48063 - release=
48064 - rpath=
48065 - perm_rpath=
48066 - temp_rpath=
48067 - vinfo=
48069 - # We need to know -static, to get the right output filenames.
48070 - for arg
48071 - do
48072 - case "$arg" in
48073 - -all-static | -static)
48074 - if test "X$arg" = "X-all-static" && test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
48075 - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
48076 - fi
48077 - build_libtool_libs=no
48078 - build_old_libs=yes
48079 - break
48080 - ;;
48081 - esac
48082 - done
48084 - # See if our shared archives depend on static archives.
48085 - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
48087 - # Go through the arguments, transforming them on the way.
48088 - for arg
48089 - do
48090 - # If the previous option needs an argument, assign it.
48091 - if test -n "$prev"; then
48092 - case "$prev" in
48093 - output)
48094 - compile_command="$compile_command @OUTPUT@"
48095 - finalize_command="$finalize_command @OUTPUT@"
48096 - ;;
48097 - esac
48099 - case "$prev" in
48100 - dlfiles|dlprefiles)
48101 - case "$arg" in
48102 - *.la | *.lo) ;; # We handle these cases below.
48103 - *)
48104 - dlprefiles="$dlprefiles $arg"
48105 - test "$prev" = dlfiles && dlfiles="$dlfiles $arg"
48106 - prev=
48107 - ;;
48108 - esac
48109 - ;;
48110 - release)
48111 - release="-$arg"
48112 - prev=
48113 - continue
48114 - ;;
48115 - rpath)
48116 - rpath="$rpath $arg"
48117 - prev=
48118 - continue
48119 - ;;
48120 - *)
48121 - eval "$prev=\"\$arg\""
48122 - prev=
48123 - continue
48124 - ;;
48125 - esac
48126 - fi
48128 - prevarg="$arg"
48130 - case "$arg" in
48131 - -all-static)
48132 - if test -n "$link_static_flag"; then
48133 - compile_command="$compile_command $link_static_flag"
48134 - finalize_command="$finalize_command $link_static_flag"
48135 - fi
48136 - continue
48137 - ;;
48139 - -allow-undefined)
48140 - # FIXME: remove this flag sometime in the future.
48141 - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
48142 - continue
48143 - ;;
48145 - -dlopen)
48146 - prev=dlfiles
48147 - continue
48148 - ;;
48150 - -dlpreopen)
48151 - prev=dlprefiles
48152 - continue
48153 - ;;
48155 - -export-dynamic)
48156 - if test "$export_dynamic" != yes; then
48157 - export_dynamic=yes
48158 - if test -n "$export_dynamic_flag_spec"; then
48159 - eval arg=\"$export_dynamic_flag_spec\"
48160 - else
48161 - arg=
48162 - fi
48164 - # Add the symbol object into the linking commands.
48165 - compile_command="$compile_command @SYMFILE@"
48166 - finalize_command="$finalize_command @SYMFILE@"
48167 - fi
48168 - ;;
48170 - -L*)
48171 - dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'`
48172 - case "$dir" in
48173 - /* | [A-Za-z]:\\*)
48174 - # Add the corresponding hardcode_libdir_flag, if it is not identical.
48175 - ;;
48176 - *)
48177 - $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2
48178 - exit 1
48179 - ;;
48180 - esac
48181 - deplibs="$deplibs $arg"
48182 - ;;
48184 - -l*) deplibs="$deplibs $arg" ;;
48186 - -no-undefined)
48187 - allow_undefined=no
48188 - continue
48189 - ;;
48191 - -o) prev=output ;;
48193 - -release)
48194 - prev=release
48195 - continue
48196 - ;;
48198 - -rpath)
48199 - prev=rpath
48200 - continue
48201 - ;;
48203 - -static)
48204 - # If we have no pic_flag, then this is the same as -all-static.
48205 - if test -z "$pic_flag" && test -n "$link_static_flag"; then
48206 - compile_command="$compile_command $link_static_flag"
48207 - finalize_command="$finalize_command $link_static_flag"
48208 - fi
48209 - continue
48210 - ;;
48212 - -version-info)
48213 - prev=vinfo
48214 - continue
48215 - ;;
48217 - # Some other compiler flag.
48218 - -* | +*)
48219 - # Unknown arguments in both finalize_command and compile_command need
48220 - # to be aesthetically quoted because they are evaled later.
48221 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
48222 - case "$arg" in
48223 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
48224 - arg="\"$arg\""
48225 - ;;
48226 - esac
48227 - ;;
48229 - *.o | *.a)
48230 - # A standard object.
48231 - objs="$objs $arg"
48232 - ;;
48234 - *.lo)
48235 - # A library object.
48236 - if test "$prev" = dlfiles; then
48237 - dlfiles="$dlfiles $arg"
48238 - if test "$build_libtool_libs" = yes; then
48239 - prev=
48240 - continue
48241 - else
48242 - # If libtool objects are unsupported, then we need to preload.
48243 - prev=dlprefiles
48244 - fi
48245 - fi
48247 - if test "$prev" = dlprefiles; then
48248 - # Preload the old-style object.
48249 - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e 's/\.lo$/\.o/'`
48250 - prev=
48251 - fi
48252 - libobjs="$libobjs $arg"
48253 - ;;
48255 - *.la)
48256 - # A libtool-controlled library.
48258 - dlname=
48259 - libdir=
48260 - library_names=
48261 - old_library=
48263 - # Check to see that this really is a libtool archive.
48264 - if (sed -e '2q' $arg | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then :
48265 - else
48266 - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
48267 - exit 1
48268 - fi
48270 - # If there is no directory component, then add one.
48271 - case "$arg" in
48272 - */* | *\\*) . $arg ;;
48273 - *) . ./$arg ;;
48274 - esac
48276 - if test -z "$libdir"; then
48277 - $echo "$modename: \`$arg' contains no -rpath information" 1>&2
48278 - exit 1
48279 - fi
48281 - # Get the name of the library we link against.
48282 - linklib=
48283 - for l in $old_library $library_names; do
48284 - linklib="$l"
48285 - done
48287 - if test -z "$linklib"; then
48288 - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
48289 - exit 1
48290 - fi
48292 - # Find the relevant object directory and library name.
48293 - name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
48294 - dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
48295 - if test "X$dir" = "X$arg"; then
48296 - dir="$objdir"
48297 - else
48298 - dir="$dir/$objdir"
48299 - fi
48301 - # This library was specified with -dlopen.
48302 - if test "$prev" = dlfiles; then
48303 - dlfiles="$dlfiles $arg"
48304 - if test -z "$dlname"; then
48305 - # If there is no dlname, we need to preload.
48306 - prev=dlprefiles
48307 - else
48308 - # We should not create a dependency on this library, but we
48309 - # may need any libraries it requires.
48310 - compile_command="$compile_command$dependency_libs"
48311 - finalize_command="$finalize_command$dependency_libs"
48312 - prev=
48313 - continue
48314 - fi
48315 - fi
48317 - # The library was specified with -dlpreopen.
48318 - if test "$prev" = dlprefiles; then
48319 - # Prefer using a static library (so that no silly _DYNAMIC symbols
48320 - # are required to link).
48321 - if test -n "$old_library"; then
48322 - dlprefiles="$dlprefiles $dir/$old_library"
48323 - else
48324 - dlprefiles="$dlprefiles $dir/$linklib"
48325 - fi
48326 - prev=
48327 - fi
48329 - if test "$build_libtool_libs" = yes && test -n "$library_names"; then
48330 - link_against_libtool_libs="$link_against_libtool_libs $arg"
48331 - if test -n "$shlibpath_var"; then
48332 - # Make sure the rpath contains only unique directories.
48333 - case "$temp_rpath " in
48334 - *" $dir "*) ;;
48335 - *) temp_rpath="$temp_rpath $dir" ;;
48336 - esac
48337 - fi
48339 - # This is the magic to use -rpath.
48340 - if test -n "$hardcode_libdir_flag_spec"; then
48341 - if test -n "$hardcode_libdir_separator"; then
48342 - if test -z "$hardcode_libdirs"; then
48343 - # Put the magic libdir with the hardcode flag.
48344 - hardcode_libdirs="$libdir"
48345 - libdir="@HARDCODE_LIBDIRS@"
48346 - else
48347 - # Just accumulate the unique libdirs.
48348 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
48349 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
48350 - ;;
48351 - *)
48352 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
48353 - ;;
48354 - esac
48355 - libdir=
48356 - fi
48357 - fi
48359 - if test -n "$libdir"; then
48360 - eval flag=\"$hardcode_libdir_flag_spec\"
48362 - compile_command="$compile_command $flag"
48363 - finalize_command="$finalize_command $flag"
48364 - fi
48365 - elif test -n "$runpath_var"; then
48366 - # Do the same for the permanent run path.
48367 - case "$perm_rpath " in
48368 - *" $libdir "*) ;;
48369 - *) perm_rpath="$perm_rpath $libdir" ;;
48370 - esac
48371 - fi
48374 - case "$hardcode_action" in
48375 - immediate)
48376 - if test "$hardcode_direct" = no; then
48377 - compile_command="$compile_command $dir/$linklib"
48378 - elif test "$hardcode_minus_L" = no; then
48379 - compile_command="$compile_command -L$dir -l$name"
48380 - elif test "$hardcode_shlibpath_var" = no; then
48381 - compile_shlibpath="$compile_shlibpath$dir:"
48382 - compile_command="$compile_command -l$name"
48383 - fi
48384 - ;;
48386 - relink)
48387 - # We need an absolute path.
48388 - case "$dir" in
48389 - /* | [A-Za-z]:\\*) ;;
48390 - *)
48391 - absdir=`cd "$dir" && pwd`
48392 - if test -z "$absdir"; then
48393 - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
48394 - exit 1
48395 - fi
48396 - dir="$absdir"
48397 - ;;
48398 - esac
48400 - if test "$hardcode_direct" = yes; then
48401 - compile_command="$compile_command $dir/$linklib"
48402 - elif test "$hardcode_minus_L" = yes; then
48403 - compile_command="$compile_command -L$dir -l$name"
48404 - elif test "$hardcode_shlibpath_var" = yes; then
48405 - compile_shlibpath="$compile_shlibpath$dir:"
48406 - compile_command="$compile_command -l$name"
48407 - fi
48408 - ;;
48410 - *)
48411 - $echo "$modename: \`$hardcode_action' is an unknown hardcode action" 1>&2
48412 - exit 1
48413 - ;;
48414 - esac
48416 - # Finalize command for both is simple: just hardcode it.
48417 - if test "$hardcode_direct" = yes; then
48418 - finalize_command="$finalize_command $libdir/$linklib"
48419 - elif test "$hardcode_minus_L" = yes; then
48420 - finalize_command="$finalize_command -L$libdir -l$name"
48421 - elif test "$hardcode_shlibpath_var" = yes; then
48422 - finalize_shlibpath="$finalize_shlibpath$libdir:"
48423 - finalize_command="$finalize_command -l$name"
48424 - else
48425 - # We cannot seem to hardcode it, guess we'll fake it.
48426 - finalize_command="$finalize_command -L$libdir -l$name"
48427 - fi
48428 - else
48429 - # Transform directly to old archives if we don't build new libraries.
48430 - if test -n "$pic_flag" && test -z "$old_library"; then
48431 - $echo "$modename: cannot find static library for \`$arg'" 1>&2
48432 - exit 1
48433 - fi
48435 - # Here we assume that one of hardcode_direct or hardcode_minus_L
48436 - # is not unsupported. This is valid on all known static and
48437 - # shared platforms.
48438 - if test "$hardcode_direct" != unsupported; then
48439 - test -n "$old_library" && linklib="$old_library"
48440 - compile_command="$compile_command $dir/$linklib"
48441 - finalize_command="$finalize_command $dir/$linklib"
48442 - else
48443 - compile_command="$compile_command -L$dir -l$name"
48444 - finalize_command="$finalize_command -L$dir -l$name"
48445 - fi
48446 - fi
48448 - # Add in any libraries that this one depends upon.
48449 - compile_command="$compile_command$dependency_libs"
48450 - finalize_command="$finalize_command$dependency_libs"
48451 - continue
48452 - ;;
48454 - # Some other compiler argument.
48455 - *)
48456 - # Unknown arguments in both finalize_command and compile_command need
48457 - # to be aesthetically quoted because they are evaled later.
48458 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
48459 - case "$arg" in
48460 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
48461 - arg="\"$arg\""
48462 - ;;
48463 - esac
48464 - ;;
48465 - esac
48467 - # Now actually substitute the argument into the commands.
48468 - if test -n "$arg"; then
48469 - compile_command="$compile_command $arg"
48470 - finalize_command="$finalize_command $arg"
48471 - fi
48472 - done
48474 - if test -n "$prev"; then
48475 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
48476 - $echo "$help" 1>&2
48477 - exit 1
48478 - fi
48480 - if test -n "$vinfo" && test -n "$release"; then
48481 - $echo "$modename: you cannot specify both \`-version-info' and \`-release'" 1>&2
48482 - $echo "$help" 1>&2
48483 - exit 1
48484 - fi
48486 - oldlib=
48487 - oldobjs=
48488 - case "$output" in
48489 - "")
48490 - $echo "$modename: you must specify an output file" 1>&2
48491 - $echo "$help" 1>&2
48492 - exit 1
48493 - ;;
48495 - */* | *\\*)
48496 - $echo "$modename: output file \`$output' must have no directory components" 1>&2
48497 - exit 1
48498 - ;;
48500 - *.a)
48501 - # Now set the variables for building old libraries.
48502 - build_libtool_libs=no
48503 - build_old_libs=yes
48504 - oldlib="$output"
48505 - $show "$rm $oldlib"
48506 - $run $rm $oldlib
48507 - ;;
48509 - *.la)
48510 - # Make sure we only generate libraries of the form `libNAME.la'.
48511 - case "$output" in
48512 - lib*) ;;
48513 - *)
48514 - $echo "$modename: libtool library \`$arg' must begin with \`lib'" 1>&2
48515 - $echo "$help" 1>&2
48516 - exit 1
48517 - ;;
48518 - esac
48520 - name=`$echo "X$output" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
48521 - eval libname=\"$libname_spec\"
48523 - # All the library-specific variables (install_libdir is set above).
48524 - library_names=
48525 - old_library=
48526 - dlname=
48527 - current=0
48528 - revision=0
48529 - age=0
48531 - if test -n "$objs"; then
48532 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
48533 - exit 1
48534 - fi
48536 - # How the heck are we supposed to write a wrapper for a shared library?
48537 - if test -n "$link_against_libtool_libs"; then
48538 - $echo "$modename: libtool library \`$output' may not depend on uninstalled libraries:$link_against_libtool_libs" 1>&2
48539 - exit 1
48540 - fi
48542 - if test -n "$dlfiles$dlprefiles"; then
48543 - $echo "$modename: warning: \`-dlopen' is ignored while creating libtool libraries" 1>&2
48544 - # Nullify the symbol file.
48545 - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
48546 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
48547 - fi
48549 - if test -z "$rpath"; then
48550 - $echo "$modename: you must specify an installation directory with \`-rpath'" 1>&2
48551 - $echo "$help" 1>&2
48552 - exit 1
48553 - fi
48555 - set dummy $rpath
48556 - if test $# -gt 2; then
48557 - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
48558 - fi
48559 - install_libdir="$2"
48561 - # Parse the version information argument.
48562 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
48563 - set dummy $vinfo
48564 - IFS="$save_ifs"
48566 - if test -n "$5"; then
48567 - $echo "$modename: too many parameters to \`-version-info'" 1>&2
48568 - $echo "$help" 1>&2
48569 - exit 1
48570 - fi
48572 - test -n "$2" && current="$2"
48573 - test -n "$3" && revision="$3"
48574 - test -n "$4" && age="$4"
48576 - # Check that each of the things are valid numbers.
48577 - case "$current" in
48578 - 0 | [1-9] | [1-9][0-9]*) ;;
48579 - *)
48580 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
48581 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
48582 - exit 1
48583 - ;;
48584 - esac
48586 - case "$revision" in
48587 - 0 | [1-9] | [1-9][0-9]*) ;;
48588 - *)
48589 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
48590 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
48591 - exit 1
48592 - ;;
48593 - esac
48595 - case "$age" in
48596 - 0 | [1-9] | [1-9][0-9]*) ;;
48597 - *)
48598 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
48599 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
48600 - exit 1
48601 - ;;
48602 - esac
48604 - if test $age -gt $current; then
48605 - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
48606 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
48607 - exit 1
48608 - fi
48610 - # Calculate the version variables.
48611 - version_vars="version_type current age revision"
48612 - case "$version_type" in
48613 - none) ;;
48615 - linux)
48616 - version_vars="$version_vars major versuffix"
48617 - major=`expr $current - $age`
48618 - versuffix="$major.$age.$revision"
48619 - ;;
48621 - osf)
48622 - version_vars="$version_vars versuffix verstring"
48623 - major=`expr $current - $age`
48624 - versuffix="$current.$age.$revision"
48625 - verstring="$versuffix"
48627 - # Add in all the interfaces that we are compatible with.
48628 - loop=$age
48629 - while test $loop != 0; do
48630 - iface=`expr $current - $loop`
48631 - loop=`expr $loop - 1`
48632 - verstring="$verstring:${iface}.0"
48633 - done
48635 - # Make executables depend on our current version.
48636 - verstring="$verstring:${current}.0"
48637 - ;;
48639 - sunos)
48640 - version_vars="$version_vars major versuffix"
48641 - major="$current"
48642 - versuffix="$current.$revision"
48643 - ;;
48645 - *)
48646 - $echo "$modename: unknown library version type \`$version_type'" 1>&2
48647 - echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
48648 - exit 1
48649 - ;;
48650 - esac
48652 - # Create the output directory, or remove our outputs if we need to.
48653 - if test -d $objdir; then
48654 - $show "$rm $objdir/$output $objdir/$libname.* $objdir/${libname}${release}.*"
48655 - $run $rm $objdir/$output $objdir/$libname.* $objdir/${libname}${release}.*
48656 - else
48657 - $show "$mkdir $objdir"
48658 - $run $mkdir $objdir
48659 - status=$?
48660 - if test $status -eq 0 || test -d $objdir; then :
48661 - else
48662 - exit $status
48663 - fi
48664 - fi
48666 - # Check to see if the archive will have undefined symbols.
48667 - if test "$allow_undefined" = yes; then
48668 - if test "$allow_undefined_flag" = unsupported; then
48669 - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
48670 - build_libtool_libs=no
48671 - build_old_libs=yes
48672 - fi
48673 - else
48674 - # Don't allow undefined symbols.
48675 - allow_undefined_flag="$no_undefined_flag"
48676 - fi
48678 - # Add libc to deplibs on all systems.
48679 - dependency_libs="$deplibs"
48680 - deplibs="$deplibs -lc"
48682 - if test "$build_libtool_libs" = yes; then
48683 - # Get the real and link names of the library.
48684 - eval library_names=\"$library_names_spec\"
48685 - set dummy $library_names
48686 - realname="$2"
48687 - shift; shift
48689 - if test -n "$soname_spec"; then
48690 - eval soname=\"$soname_spec\"
48691 - else
48692 - soname="$realname"
48693 - fi
48695 - lib="$objdir/$realname"
48696 - for link
48697 - do
48698 - linknames="$linknames $link"
48699 - done
48701 - # Use standard objects if they are PIC.
48702 - test -z "$pic_flag" && libobjs=`$echo "X$libobjs " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//g'`
48704 - # Do each of the archive commands.
48705 - eval cmds=\"$archive_cmds\"
48706 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
48707 - for cmd in $cmds; do
48708 - IFS="$save_ifs"
48709 - $show "$cmd"
48710 - $run eval "$cmd" || exit $?
48711 - done
48712 - IFS="$save_ifs"
48714 - # Create links to the real library.
48715 - for linkname in $linknames; do
48716 - $show "(cd $objdir && $LN_S $realname $linkname)"
48717 - $run eval '(cd $objdir && $LN_S $realname $linkname)' || exit $?
48718 - done
48720 - # If -export-dynamic was specified, set the dlname.
48721 - if test "$export_dynamic" = yes; then
48722 - # On all known operating systems, these are identical.
48723 - dlname="$soname"
48724 - fi
48725 - fi
48727 - # Now set the variables for building old libraries.
48728 - oldlib="$objdir/$libname.a"
48729 - ;;
48731 - *.lo | *.o)
48732 - if test -n "$link_against_libtool_libs"; then
48733 - $echo "$modename: error: cannot link libtool libraries into reloadable objects" 1>&2
48734 - exit 1
48735 - fi
48737 - if test -n "$deplibs"; then
48738 - $echo "$modename: warning: \`-l' and \`-L' are ignored while creating objects" 1>&2
48739 - fi
48741 - if test -n "$dlfiles$dlprefiles"; then
48742 - $echo "$modename: warning: \`-dlopen' is ignored while creating objects" 1>&2
48743 - # Nullify the symbol file.
48744 - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
48745 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
48746 - fi
48748 - if test -n "$rpath"; then
48749 - $echo "$modename: warning: \`-rpath' is ignored while creating objects" 1>&2
48750 - fi
48752 - if test -n "$vinfo"; then
48753 - $echo "$modename: warning: \`-version-info' is ignored while creating objects" 1>&2
48754 - fi
48756 - if test -n "$release"; then
48757 - $echo "$modename: warning: \`-release' is ignored while creating objects" 1>&2
48758 - fi
48760 - case "$output" in
48761 - *.lo)
48762 - if test -n "$objs"; then
48763 - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
48764 - exit 1
48765 - fi
48766 - libobj="$output"
48767 - obj=`$echo "X$output" | $Xsed -e 's/\.lo$/.o/'`
48768 - ;;
48769 - *)
48770 - libobj=
48771 - obj="$output"
48772 - ;;
48773 - esac
48775 - # Delete the old objects.
48776 - $run $rm $obj $libobj
48778 - # Create the old-style object.
48779 - reload_objs="$objs"`$echo "X$libobjs " | $Xsed -e 's/[^ ]*\.a //g' -e 's/\.lo /.o /g' -e 's/ $//g'`
48781 - output="$obj"
48782 - eval cmds=\"$reload_cmds\"
48783 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
48784 - for cmd in $cmds; do
48785 - IFS="$save_ifs"
48786 - $show "$cmd"
48787 - $run eval "$cmd" || exit $?
48788 - done
48789 - IFS="$save_ifs"
48791 - # Exit if we aren't doing a library object file.
48792 - test -z "$libobj" && exit 0
48794 - if test "$build_libtool_libs" != yes; then
48795 - # Create an invalid libtool object if no PIC, so that we don't
48796 - # accidentally link it into a program.
48797 - $show "echo timestamp > $libobj"
48798 - $run eval "echo timestamp > $libobj" || exit $?
48799 - exit 0
48800 - fi
48802 - if test -n "$pic_flag"; then
48803 - # Only do commands if we really have different PIC objects.
48804 - reload_objs="$libobjs"
48805 - output="$libobj"
48806 - eval cmds=\"$reload_cmds\"
48807 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
48808 - for cmd in $cmds; do
48809 - IFS="$save_ifs"
48810 - $show "$cmd"
48811 - $run eval "$cmd" || exit $?
48812 - done
48813 - IFS="$save_ifs"
48814 - else
48815 - # Just create a symlink.
48816 - $show "$LN_S $obj $libobj"
48817 - $run $LN_S $obj $libobj || exit 1
48818 - fi
48820 - exit 0
48821 - ;;
48823 - *)
48824 - if test -n "$vinfo"; then
48825 - $echo "$modename: warning: \`-version-info' is ignored while linking programs" 1>&2
48826 - fi
48828 - if test -n "$release"; then
48829 - $echo "$modename: warning: \`-release' is ignored while creating objects" 1>&2
48830 - fi
48832 - if test -n "$rpath"; then
48833 - # If the user specified any rpath flags, then add them.
48834 - for libdir in $rpath; do
48835 - if test -n "$hardcode_libdir_flag_spec"; then
48836 - if test -n "$hardcode_libdir_separator"; then
48837 - if test -z "$hardcode_libdirs"; then
48838 - # Put the magic libdir with the hardcode flag.
48839 - hardcode_libdirs="$libdir"
48840 - libdir="@HARDCODE_LIBDIRS@"
48841 - else
48842 - # Just accumulate the unique libdirs.
48843 - case "$hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator" in
48844 - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
48845 - ;;
48846 - *)
48847 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
48848 - ;;
48849 - esac
48850 - libdir=
48851 - fi
48852 - fi
48854 - if test -n "$libdir"; then
48855 - eval flag=\"$hardcode_libdir_flag_spec\"
48857 - compile_command="$compile_command $flag"
48858 - finalize_command="$finalize_command $flag"
48859 - fi
48860 - elif test -n "$runpath_var"; then
48861 - case "$perm_rpath " in
48862 - *" $libdir "*) ;;
48863 - *) perm_rpath="$perm_rpath $libdir" ;;
48864 - esac
48865 - fi
48866 - done
48867 - fi
48869 - # Substitute the hardcoded libdirs into the compile commands.
48870 - if test -n "$hardcode_libdir_separator"; then
48871 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$hardcode_libdirs%g"`
48872 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@HARDCODE_LIBDIRS@%$hardcode_libdirs%g"`
48873 - fi
48875 - if test -n "$libobjs" && test "$build_old_libs" = yes; then
48876 - # Transform all the library objects into standard objects.
48877 - compile_command=`$echo "X$compile_command " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//'`
48878 - finalize_command=`$echo "X$finalize_command " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//'`
48879 - fi
48881 - if test "$export_dynamic" = yes && test -n "$NM" && test -n "$global_symbol_pipe"; then
48882 - dlsyms="${output}S.c"
48883 - else
48884 - dlsyms=
48885 - fi
48887 - if test -n "$dlsyms"; then
48888 - # Add our own program objects to the preloaded list.
48889 - dlprefiles=`$echo "X$objs$dlprefiles " | $Xsed -e 's/\.lo /.o /g' -e 's/ $//'`
48891 - # Discover the nlist of each of the dlfiles.
48892 - nlist="$objdir/${output}.nm"
48894 - if test -d $objdir; then
48895 - $show "$rm $nlist ${nlist}T"
48896 - $run $rm "$nlist" "${nlist}T"
48897 - else
48898 - $show "$mkdir $objdir"
48899 - $run $mkdir $objdir
48900 - status=$?
48901 - if test $status -eq 0 || test -d $objdir; then :
48902 - else
48903 - exit $status
48904 - fi
48905 - fi
48907 - for arg in $dlprefiles; do
48908 - $show "extracting global C symbols from \`$arg'"
48909 - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
48910 - done
48912 - # Parse the name list into a source file.
48913 - $show "creating $objdir/$dlsyms"
48914 - if test -z "$run"; then
48915 - # Make sure we at least have an empty file.
48916 - test -f "$nlist" || : > "$nlist"
48918 - # Try sorting and uniquifying the output.
48919 - if sort "$nlist" | uniq > "$nlist"T; then
48920 - mv -f "$nlist"T "$nlist"
48921 - wcout=`wc "$nlist" 2>/dev/null`
48922 - count=`echo "X$wcout" | $Xsed -e 's/^[ ]*\([0-9][0-9]*\).*$/\1/'`
48923 - (test "$count" -ge 0) 2>/dev/null || count=-1
48924 - else
48925 - $rm "$nlist"T
48926 - count=-1
48927 - fi
48929 - case "$dlsyms" in
48930 - "") ;;
48931 - *.c)
48932 - $echo > "$objdir/$dlsyms" "\
48933 -/* $dlsyms - symbol resolution table for \`$output' dlsym emulation. */
48934 -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION */
48936 -#ifdef __cplusplus
48937 -extern \"C\" {
48938 -#endif
48940 -/* Prevent the only kind of declaration conflicts we can make. */
48941 -#define dld_preloaded_symbol_count some_other_symbol
48942 -#define dld_preloaded_symbols some_other_symbol
48944 -/* External symbol declarations for the compiler. */\
48947 - if test -f "$nlist"; then
48948 - sed -e 's/^.* \(.*\)$/extern char \1;/' < "$nlist" >> "$objdir/$dlsyms"
48949 - else
48950 - echo '/* NONE */' >> "$objdir/$dlsyms"
48951 - fi
48953 - $echo >> "$objdir/$dlsyms" "\
48955 -#undef dld_preloaded_symbol_count
48956 -#undef dld_preloaded_symbols
48958 -#if defined (__STDC__) && __STDC__
48959 -# define __ptr_t void *
48960 -#else
48961 -# define __ptr_t char *
48962 -#endif
48964 -/* The number of symbols in dld_preloaded_symbols, -1 if unsorted. */
48965 -int dld_preloaded_symbol_count = $count;
48967 -/* The mapping between symbol names and symbols. */
48968 -struct {
48969 - char *name;
48970 - __ptr_t address;
48972 -dld_preloaded_symbols[] =
48976 - if test -f "$nlist"; then
48977 - sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$nlist" >> "$objdir/$dlsyms"
48978 - fi
48980 - $echo >> "$objdir/$dlsyms" "\
48981 - {0, (__ptr_t) 0}
48984 -#ifdef __cplusplus
48986 -#endif\
48988 - ;;
48990 - *)
48991 - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
48992 - exit 1
48993 - ;;
48994 - esac
48995 - fi
48997 - # Now compile the dynamic symbol file.
48998 - $show "(cd $objdir && $CC -c$no_builtin_flag \"$dlsyms\")"
48999 - $run eval '(cd $objdir && $CC -c$no_builtin_flag "$dlsyms")' || exit $?
49001 - # Transform the symbol file into the correct name.
49002 - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.o%"`
49003 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$objdir/${output}S.o%"`
49004 - elif test "$export_dynamic" != yes; then
49005 - test -n "$dlfiles$dlprefiles" && $echo "$modename: warning: \`-dlopen' and \`-dlpreopen' are ignored without \`-export-dynamic'" 1>&2
49006 - else
49007 - # We keep going just in case the user didn't refer to
49008 - # dld_preloaded_symbols. The linker will fail if global_symbol_pipe
49009 - # really was required.
49010 - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
49012 - # Nullify the symbol file.
49013 - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
49014 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
49015 - fi
49017 - if test -z "$link_against_libtool_libs" || test "$build_libtool_libs" != yes; then
49018 - # Replace the output file specification.
49019 - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
49020 - finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
49022 - # We have no uninstalled library dependencies, so finalize right now.
49023 - $show "$compile_command"
49024 - $run eval "$compile_command"
49025 - exit $?
49026 - fi
49028 - # Replace the output file specification.
49029 - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$objdir/$output"'%g'`
49030 - finalize_command=`$echo "X$finalize_command" | $Xsed -e 's%@OUTPUT@%'"$objdir/$output"'T%g'`
49032 - # Create the binary in the object directory, then wrap it.
49033 - if test -d $objdir; then :
49034 - else
49035 - $show "$mkdir $objdir"
49036 - $run $mkdir $objdir
49037 - status=$?
49038 - if test $status -eq 0 || test -d $objdir; then :
49039 - else
49040 - exit $status
49041 - fi
49042 - fi
49044 - if test -n "$shlibpath_var"; then
49045 - # We should set the shlibpath_var
49046 - rpath=
49047 - for dir in $temp_rpath; do
49048 - case "$dir" in
49049 - /* | [A-Za-z]:\\*)
49050 - # Absolute path.
49051 - rpath="$rpath$dir:"
49052 - ;;
49053 - *)
49054 - # Relative path: add a thisdir entry.
49055 - rpath="$rpath\$thisdir/$dir:"
49056 - ;;
49057 - esac
49058 - done
49059 - temp_rpath="$rpath"
49060 - fi
49062 - # Delete the old output file.
49063 - $run $rm $output
49065 - if test -n "$compile_shlibpath"; then
49066 - compile_command="$shlibpath_var=\"$compile_shlibpath\$$shlibpath_var\" $compile_command"
49067 - fi
49068 - if test -n "$finalize_shlibpath"; then
49069 - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
49070 - fi
49072 - if test -n "$runpath_var" && test -n "$perm_rpath"; then
49073 - # We should set the runpath_var.
49074 - rpath=
49075 - for dir in $perm_rpath; do
49076 - rpath="$rpath$dir:"
49077 - done
49078 - compile_command="$runpath_var=\"$rpath\$$runpath_var\" $compile_command"
49079 - finalize_command="$runpath_var=\"$rpath\$$runpath_var\" $finalize_command"
49080 - fi
49082 - case "$hardcode_action" in
49083 - relink)
49084 - # AGH! Flame the AIX and HP-UX people for me, will ya?
49085 - $echo "$modename: warning: using a buggy system linker" 1>&2
49086 - $echo "$modename: relinking will be required before \`$output' can be installed" 1>&2
49087 - ;;
49088 - esac
49090 - $show "$compile_command"
49091 - $run eval "$compile_command" || exit $?
49093 - # Now create the wrapper script.
49094 - $show "creating $output"
49096 - # Quote the finalize command for shipping.
49097 - finalize_command=`$echo "X$finalize_command" | $Xsed -e "$sed_quote_subst"`
49099 - # Quote $echo for shipping.
49100 - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
49102 - # Only actually do things if our run command is non-null.
49103 - if test -z "$run"; then
49104 - $rm $output
49105 - trap "$rm $output; exit 1" 1 2 15
49107 - $echo > $output "\
49108 -#! /bin/sh
49110 -# $output - temporary wrapper script for $objdir/$output
49111 -# Generated by ltmain.sh - GNU $PACKAGE $VERSION
49113 -# The $output program cannot be directly executed until all the libtool
49114 -# libraries that it depends on are installed.
49116 -# This wrapper script should never be moved out of \``pwd`'.
49117 -# If it is, it will not operate correctly.
49119 -# Sed substitution that helps us do robust quoting. It backslashifies
49120 -# metacharacters that are still active within double-quoted strings.
49121 -Xsed='sed -e s/^X//'
49122 -sed_quote_subst='$sed_quote_subst'
49124 -# The HP-UX ksh and POSIX shell print the target directory to stdout
49125 -# if CDPATH is set.
49126 -if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi
49128 -# This environment variable determines our operation mode.
49129 -if test \"\$libtool_install_magic\" = \"$magic\"; then
49130 - # install mode needs the following variables:
49131 - link_against_libtool_libs='$link_against_libtool_libs'
49132 - finalize_command=\"$finalize_command\"
49133 -else
49134 - # When we are sourced in execute mode, \$file and \$echo are already set.
49135 - if test \"\$libtool_execute_magic\" = \"$magic\"; then :
49136 - else
49137 - echo=\"$qecho\"
49138 - file=\"\$0\"
49139 - fi\
49141 - $echo >> $output "\
49143 - # Find the directory that this script lives in.
49144 - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
49145 - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
49147 - # Follow symbolic links until we get to the real thisdir.
49148 - file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\`
49149 - while test -n \"\$file\"; do
49150 - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
49152 - # If there was a directory component, then change thisdir.
49153 - if test \"x\$destdir\" != \"x\$file\"; then
49154 - case \"\$destdir\" in
49155 - /* | [A-Za-z]:\\*) thisdir=\"\$destdir\" ;;
49156 - *) thisdir=\"\$thisdir/\$destdir\" ;;
49157 - esac
49158 - fi
49160 - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
49161 - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
49162 - done
49164 - # Try to get the absolute directory name.
49165 - absdir=\`cd \"\$thisdir\" && pwd\`
49166 - test -n \"\$absdir\" && thisdir=\"\$absdir\"
49168 - progdir=\"\$thisdir/$objdir\"
49169 - program='$output'
49171 - if test -f \"\$progdir/\$program\"; then"
49173 - # Export our shlibpath_var if we have one.
49174 - if test -n "$shlibpath_var" && test -n "$temp_rpath"; then
49175 - $echo >> $output "\
49176 - # Add our own library path to $shlibpath_var
49177 - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
49179 - # Some systems cannot cope with colon-terminated $shlibpath_var
49180 - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/:*\$//'\`
49182 - export $shlibpath_var
49184 - fi
49186 - $echo >> $output "\
49187 - if test \"\$libtool_execute_magic\" != \"$magic\"; then
49188 - # Run the actual program with our arguments.
49190 - # Export the path to the program.
49191 - PATH=\"\$progdir:\$PATH\"
49192 - export PATH
49194 - exec \$program \${1+\"\$@\"}
49196 - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
49197 - exit 1
49198 - fi
49199 - else
49200 - # The program doesn't exist.
49201 - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
49202 - \$echo \"This script is just a wrapper for \$program.\" 1>&2
49203 - echo \"See the $PACKAGE documentation for more information.\" 1>&2
49204 - exit 1
49205 - fi
49206 -fi\
49208 - chmod +x $output
49209 - fi
49210 - exit 0
49211 - ;;
49212 - esac
49214 - # See if we need to build an old-fashioned archive.
49215 - if test "$build_old_libs" = "yes"; then
49216 - # Transform .lo files to .o files.
49217 - oldobjs="$objs"`$echo "X$libobjs " | $Xsed -e 's/[^ ]*\.a //g' -e 's/\.lo /.o /g' -e 's/ $//g'`
49219 - # Do each command in the archive commands.
49220 - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
49221 - eval cmds=\"$old_archive_from_new_cmds\"
49222 - else
49223 - eval cmds=\"$old_archive_cmds\"
49224 - fi
49225 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
49226 - for cmd in $cmds; do
49227 - IFS="$save_ifs"
49228 - $show "$cmd"
49229 - $run eval "$cmd" || exit $?
49230 - done
49231 - IFS="$save_ifs"
49232 - fi
49234 - # Now create the libtool archive.
49235 - case "$output" in
49236 - *.la)
49237 - old_library=
49238 - test "$build_old_libs" = yes && old_library="$libname.a"
49240 - $show "creating $output"
49242 - # Only create the output if not a dry run.
49243 - if test -z "$run"; then
49244 - $echo > $output "\
49245 -# $output - a libtool library file
49246 -# Generated by ltmain.sh - GNU $PACKAGE $VERSION
49248 -# The name that we can dlopen(3).
49249 -dlname='$dlname'
49251 -# Names of this library.
49252 -library_names='$library_names'
49254 -# The name of the static archive.
49255 -old_library='$old_library'
49257 -# Libraries that this one depends upon.
49258 -dependency_libs='$dependency_libs'
49260 -# Version information for $libname.
49261 -current=$current
49262 -age=$age
49263 -revision=$revision
49265 -# Directory that this library needs to be installed in:
49266 -libdir='$install_libdir'\
49268 - fi
49270 - # Do a symbolic link so that the libtool archive can be found in
49271 - # LD_LIBRARY_PATH before the program is installed.
49272 - $show "(cd $objdir && $LN_S ../$output $output)"
49273 - $run eval "(cd $objdir && $LN_S ../$output $output)" || exit 1
49274 - ;;
49275 - esac
49276 - exit 0
49277 - ;;
49279 - # libtool install mode
49280 - install)
49281 - modename="$modename: install"
49283 - # There may be an optional /bin/sh argument at the beginning of
49284 - # install_prog (especially on Windows NT).
49285 - if test "$nonopt" = "$SHELL"; then
49286 - # Aesthetically quote it.
49287 - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
49288 - case "$arg" in
49289 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49290 - arg="\"$arg\""
49291 - ;;
49292 - esac
49293 - install_prog="$arg "
49294 - arg="$1"
49295 - shift
49296 - else
49297 - install_prog=
49298 - arg="$nonopt"
49299 - fi
49301 - # The real first argument should be the name of the installation program.
49302 - # Aesthetically quote it.
49303 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
49304 - case "$arg" in
49305 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49306 - arg="\"$arg\""
49307 - ;;
49308 - esac
49309 - install_prog="$install_prog$arg"
49311 - # We need to accept at least all the BSD install flags.
49312 - dest=
49313 - files=
49314 - opts=
49315 - prev=
49316 - install_type=
49317 - isdir=
49318 - stripme=
49319 - for arg
49320 - do
49321 - if test -n "$dest"; then
49322 - files="$files $dest"
49323 - dest="$arg"
49324 - continue
49325 - fi
49327 - case "$arg" in
49328 - -d) isdir=yes ;;
49329 - -f) prev="-f" ;;
49330 - -g) prev="-g" ;;
49331 - -m) prev="-m" ;;
49332 - -o) prev="-o" ;;
49333 - -s)
49334 - stripme=" -s"
49335 - continue
49336 - ;;
49337 - -*) ;;
49339 - *)
49340 - # If the previous option needed an argument, then skip it.
49341 - if test -n "$prev"; then
49342 - prev=
49343 - else
49344 - dest="$arg"
49345 - continue
49346 - fi
49347 - ;;
49348 - esac
49350 - # Aesthetically quote the argument.
49351 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
49352 - case "$arg" in
49353 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49354 - arg="\"$arg\""
49355 - ;;
49356 - esac
49357 - install_prog="$install_prog $arg"
49358 - done
49360 - if test -z "$install_prog"; then
49361 - $echo "$modename: you must specify an install program" 1>&2
49362 - $echo "$help" 1>&2
49363 - exit 1
49364 - fi
49366 - if test -n "$prev"; then
49367 - $echo "$modename: the \`$prev' option requires an argument" 1>&2
49368 - $echo "$help" 1>&2
49369 - exit 1
49370 - fi
49372 - if test -z "$files"; then
49373 - if test -z "$dest"; then
49374 - $echo "$modename: no file or destination specified" 1>&2
49375 - else
49376 - $echo "$modename: you must specify a destination" 1>&2
49377 - fi
49378 - $echo "$help" 1>&2
49379 - exit 1
49380 - fi
49382 - # Strip any trailing slash from the destination.
49383 - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
49385 - # Check to see that the destination is a directory.
49386 - test -d "$dest" && isdir=yes
49387 - if test -n "$isdir"; then
49388 - destdir="$dest"
49389 - destname=
49390 - else
49391 - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
49392 - test "X$destdir" = "X$dest" && destdir=.
49393 - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
49395 - # Not a directory, so check to see that there is only one file specified.
49396 - set dummy $files
49397 - if test $# -gt 2; then
49398 - $echo "$modename: \`$dest' is not a directory" 1>&2
49399 - $echo "$help" 1>&2
49400 - exit 1
49401 - fi
49402 - fi
49403 - case "$destdir" in
49404 - /* | [A-Za-z]:\\*) ;;
49405 - *)
49406 - for file in $files; do
49407 - case "$file" in
49408 - *.lo) ;;
49409 - *)
49410 - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
49411 - $echo "$help" 1>&2
49412 - exit 1
49413 - ;;
49414 - esac
49415 - done
49416 - ;;
49417 - esac
49419 - # This variable tells wrapper scripts just to set variables rather
49420 - # than running their programs.
49421 - libtool_install_magic="$magic"
49423 - staticlibs=
49424 - future_libdirs=
49425 - current_libdirs=
49426 - for file in $files; do
49428 - # Do each installation.
49429 - case "$file" in
49430 - *.a)
49431 - # Do the static libraries later.
49432 - staticlibs="$staticlibs $file"
49433 - ;;
49435 - *.la)
49436 - # Check to see that this really is a libtool archive.
49437 - if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then :
49438 - else
49439 - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
49440 - $echo "$help" 1>&2
49441 - exit 1
49442 - fi
49444 - library_names=
49445 - old_library=
49446 - # If there is no directory component, then add one.
49447 - case "$file" in
49448 - */* | *\\*) . $file ;;
49449 - *) . ./$file ;;
49450 - esac
49452 - # Add the libdir to current_libdirs if it is the destination.
49453 - if test "X$destdir" = "X$libdir"; then
49454 - case "$current_libdirs " in
49455 - *" $libdir "*) ;;
49456 - *) current_libdirs="$current_libdirs $libdir" ;;
49457 - esac
49458 - else
49459 - # Note the libdir as a future libdir.
49460 - case "$future_libdirs " in
49461 - *" $libdir "*) ;;
49462 - *) future_libdirs="$future_libdirs $libdir" ;;
49463 - esac
49464 - fi
49466 - dir="`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/"
49467 - test "X$dir" = "X$file/" && dir=
49468 - dir="$dir$objdir"
49470 - # See the names of the shared library.
49471 - set dummy $library_names
49472 - if test -n "$2"; then
49473 - realname="$2"
49474 - shift
49475 - shift
49477 - # Install the shared library and build the symlinks.
49478 - $show "$install_prog $dir/$realname $destdir/$realname"
49479 - $run eval "$install_prog $dir/$realname $destdir/$realname" || exit $?
49480 - test "X$dlname" = "X$realname" && dlname=
49482 - if test $# -gt 0; then
49483 - # Delete the old symlinks.
49484 - rmcmd="$rm"
49485 - for linkname
49486 - do
49487 - rmcmd="$rmcmd $destdir/$linkname"
49488 - done
49489 - $show "$rmcmd"
49490 - $run $rmcmd
49492 - # ... and create new ones.
49493 - for linkname
49494 - do
49495 - test "X$dlname" = "X$linkname" && dlname=
49496 - $show "(cd $destdir && $LN_S $realname $linkname)"
49497 - $run eval "(cd $destdir && $LN_S $realname $linkname)"
49498 - done
49499 - fi
49501 - if test -n "$dlname"; then
49502 - # Install the dynamically-loadable library.
49503 - $show "$install_prog $dir/$dlname $destdir/$dlname"
49504 - $run eval "$install_prog $dir/$dlname $destdir/$dlname" || exit $?
49505 - fi
49507 - # Do each command in the postinstall commands.
49508 - lib="$destdir/$realname"
49509 - eval cmds=\"$postinstall_cmds\"
49510 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
49511 - for cmd in $cmds; do
49512 - IFS="$save_ifs"
49513 - $show "$cmd"
49514 - $run eval "$cmd" || exit $?
49515 - done
49516 - IFS="$save_ifs"
49517 - fi
49519 - # Install the pseudo-library for information purposes.
49520 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
49521 - $show "$install_prog $file $destdir/$name"
49522 - $run eval "$install_prog $file $destdir/$name" || exit $?
49524 - # Maybe install the static library, too.
49525 - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
49526 - ;;
49528 - *.lo)
49529 - # Install (i.e. copy) a libtool object.
49531 - # Figure out destination file name, if it wasn't already specified.
49532 - if test -n "$destname"; then
49533 - destfile="$destdir/$destname"
49534 - else
49535 - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
49536 - destfile="$destdir/$destfile"
49537 - fi
49539 - # Deduce the name of the destination old-style object file.
49540 - case "$destfile" in
49541 - *.lo)
49542 - staticdest=`$echo "X$destfile" | $Xsed -e 's/\.lo$/\.o/'`
49543 - ;;
49544 - *.o)
49545 - staticdest="$destfile"
49546 - destfile=
49547 - ;;
49548 - *)
49549 - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
49550 - $echo "$help" 1>&2
49551 - exit 1
49552 - ;;
49553 - esac
49555 - # Install the libtool object if requested.
49556 - if test -n "$destfile"; then
49557 - $show "$install_prog $file $destfile"
49558 - $run eval "$install_prog $file $destfile" || exit $?
49559 - fi
49561 - # Install the old object if enabled.
49562 - if test "$build_old_libs" = yes; then
49563 - # Deduce the name of the old-style object file.
49564 - staticobj=`$echo "X$file" | $Xsed -e 's/\.lo$/\.o/'`
49566 - $show "$install_prog $staticobj $staticdest"
49567 - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
49568 - fi
49569 - exit 0
49570 - ;;
49572 - *)
49573 - # Do a test to see if this is really a libtool program.
49574 - if (sed -e '4q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then
49575 - link_against_libtool_libs=
49576 - finalize_command=
49578 - # If there is no directory component, then add one.
49579 - case "$file" in
49580 - */* | *\\*) . $file ;;
49581 - *) . ./$file ;;
49582 - esac
49584 - # Check the variables that should have been set.
49585 - if test -z "$link_against_libtool_libs" || test -z "$finalize_command"; then
49586 - $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2
49587 - exit 1
49588 - fi
49590 - finalize=yes
49591 - for lib in $link_against_libtool_libs; do
49592 - # Check to see that each library is installed.
49593 - libdir=
49594 - if test -f "$lib"; then
49595 - # If there is no directory component, then add one.
49596 - case "$lib" in
49597 - */* | *\\*) . $lib ;;
49598 - *) . ./$lib ;;
49599 - esac
49600 - fi
49601 - libfile="$libdir/`$echo "X$lib" | $Xsed -e 's%^.*/%%g'`"
49602 - if test -z "$libdir"; then
49603 - $echo "$modename: warning: \`$lib' contains no -rpath information" 1>&2
49604 - elif test -f "$libfile"; then :
49605 - else
49606 - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
49607 - finalize=no
49608 - fi
49609 - done
49611 - if test "$hardcode_action" = relink; then
49612 - if test "$finalize" = yes; then
49613 - $echo "$modename: warning: relinking \`$file' on behalf of your buggy system linker" 1>&2
49614 - $show "$finalize_command"
49615 - if $run eval "$finalize_command"; then :
49616 - else
49617 - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
49618 - continue
49619 - fi
49620 - file="$objdir/$file"T
49621 - else
49622 - $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2
49623 - fi
49624 - else
49625 - # Install the binary that we compiled earlier.
49626 - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
49627 - fi
49628 - fi
49630 - $show "$install_prog$stripme $file $dest"
49631 - $run eval "$install_prog\$stripme \$file \$dest" || exit $?
49632 - ;;
49633 - esac
49634 - done
49636 - for file in $staticlibs; do
49637 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
49639 - # Set up the ranlib parameters.
49640 - oldlib="$destdir/$name"
49642 - $show "$install_prog $file $oldlib"
49643 - $run eval "$install_prog \$file \$oldlib" || exit $?
49645 - # Do each command in the postinstall commands.
49646 - eval cmds=\"$old_postinstall_cmds\"
49647 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
49648 - for cmd in $cmds; do
49649 - IFS="$save_ifs"
49650 - $show "$cmd"
49651 - $run eval "$cmd" || exit $?
49652 - done
49653 - IFS="$save_ifs"
49654 - done
49656 - if test -n "$future_libdirs"; then
49657 - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
49658 - fi
49660 - if test -n "$current_libdirs"; then
49661 - # Maybe just do a dry run.
49662 - test -n "$run" && current_libdirs=" -n$current_libdirs"
49663 - exec $SHELL $0 --finish$current_libdirs
49664 - exit 1
49665 - fi
49667 - exit 0
49668 - ;;
49670 - # libtool finish mode
49671 - finish)
49672 - modename="$modename: finish"
49673 - libdirs="$nonopt"
49675 - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
49676 - for dir
49677 - do
49678 - libdirs="$libdirs $dir"
49679 - done
49681 - for libdir in $libdirs; do
49682 - if test -n "$finish_cmds"; then
49683 - # Do each command in the finish commands.
49684 - eval cmds=\"$finish_cmds\"
49685 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
49686 - for cmd in $cmds; do
49687 - IFS="$save_ifs"
49688 - $show "$cmd"
49689 - $run eval "$cmd"
49690 - done
49691 - IFS="$save_ifs"
49692 - fi
49693 - if test -n "$finish_eval"; then
49694 - # Do the single finish_eval.
49695 - eval cmds=\"$finish_eval\"
49696 - $run eval "$cmds"
49697 - fi
49698 - done
49699 - fi
49701 - echo "------------------------------------------------------------------------------"
49702 - echo "Libraries have been installed in:"
49703 - for libdir in $libdirs; do
49704 - echo " $libdir"
49705 - done
49706 - echo
49707 - echo "To link against installed libraries in a given directory, LIBDIR,"
49708 - echo "you must use the \`-LLIBDIR' flag during linking."
49709 - echo
49710 - echo " You will also need to do one of the following:"
49711 - if test -n "$shlibpath_var"; then
49712 - echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
49713 - echo " during execution"
49714 - fi
49715 - if test -n "$runpath_var"; then
49716 - echo " - add LIBDIR to the \`$runpath_var' environment variable"
49717 - echo " during linking"
49718 - fi
49719 - if test -n "$hardcode_libdir_flag_spec"; then
49720 - libdir=LIBDIR
49721 - eval flag=\"$hardcode_libdir_flag_spec\"
49723 - echo " - use the \`$flag' linker flag"
49724 - fi
49725 - if test -f /etc/ld.so.conf; then
49726 - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
49727 - fi
49728 - echo
49729 - echo "See any operating system documentation about shared libraries for"
49730 - echo "more information, such as the ld(1) and ld.so(8) manual pages."
49731 - echo "------------------------------------------------------------------------------"
49732 - exit 0
49733 - ;;
49735 - # libtool execute mode
49736 - execute)
49737 - modename="$modename: execute"
49739 - # The first argument is the command name.
49740 - cmd="$nonopt"
49741 - if test -z "$cmd"; then
49742 - $echo "$modename: you must specify a COMMAND" 1>&2
49743 - $echo "$help"
49744 - exit 1
49745 - fi
49747 - # Handle -dlopen flags immediately.
49748 - for file in $execute_dlfiles; do
49749 - if test -f "$file"; then :
49750 - else
49751 - $echo "$modename: \`$file' is not a file" 1>&2
49752 - $echo "$help" 1>&2
49753 - exit 1
49754 - fi
49756 - dir=
49757 - case "$file" in
49758 - *.la)
49759 - # Check to see that this really is a libtool archive.
49760 - if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then :
49761 - else
49762 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
49763 - $echo "$help" 1>&2
49764 - exit 1
49765 - fi
49767 - # Read the libtool library.
49768 - dlname=
49769 - library_names=
49771 - # If there is no directory component, then add one.
49772 - case "$file" in
49773 - */* | *\\*) . $file ;;
49774 - *) . ./$file ;;
49775 - esac
49777 - # Skip this library if it cannot be dlopened.
49778 - if test -z "$dlname"; then
49779 - # Warn if it was a shared library.
49780 - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
49781 - continue
49782 - fi
49784 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
49785 - test "X$dir" = "X$file" && dir=.
49787 - if test -f "$dir/$objdir/$dlname"; then
49788 - dir="$dir/$objdir"
49789 - else
49790 - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
49791 - exit 1
49792 - fi
49793 - ;;
49795 - *.lo)
49796 - # Just add the directory containing the .lo file.
49797 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
49798 - test "X$dir" = "X$file" && dir=.
49799 - ;;
49801 - *)
49802 - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
49803 - continue
49804 - ;;
49805 - esac
49807 - # Get the absolute pathname.
49808 - absdir=`cd "$dir" && pwd`
49809 - test -n "$absdir" && dir="$absdir"
49811 - # Now add the directory to shlibpath_var.
49812 - if eval "test -z \"\$$shlibpath_var\""; then
49813 - eval "$shlibpath_var=\"\$dir\""
49814 - else
49815 - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
49816 - fi
49817 - done
49819 - # This variable tells wrapper scripts just to set shlibpath_var
49820 - # rather than running their programs.
49821 - libtool_execute_magic="$magic"
49823 - # Check if any of the arguments is a wrapper script.
49824 - args=
49825 - for file
49826 - do
49827 - case "$file" in
49828 - -*) ;;
49829 - *)
49830 - # Do a test to see if this is really a libtool program.
49831 - if (sed -e '4q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then
49832 - # If there is no directory component, then add one.
49833 - case "$file" in
49834 - */* | *\\*) . $file ;;
49835 - *) . ./$file ;;
49836 - esac
49838 - # Transform arg to wrapped name.
49839 - file="$progdir/$program"
49840 - fi
49841 - ;;
49842 - esac
49843 - # Quote arguments (to preserve shell metacharacters).
49844 - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
49845 - args="$args \"$file\""
49846 - done
49848 - if test -z "$run"; then
49849 - # Export the shlibpath_var.
49850 - eval "export $shlibpath_var"
49852 - # Now actually exec the command.
49853 - eval "exec \$cmd$args"
49855 - $echo "$modename: cannot exec \$cmd$args"
49856 - exit 1
49857 - else
49858 - # Display what would be done.
49859 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
49860 - $echo "export $shlibpath_var"
49861 - $echo "$cmd$args"
49862 - exit 0
49863 - fi
49864 - ;;
49866 - # libtool uninstall mode
49867 - uninstall)
49868 - modename="$modename: uninstall"
49869 - rm="$nonopt"
49870 - files=
49872 - for arg
49873 - do
49874 - case "$arg" in
49875 - -*) rm="$rm $arg" ;;
49876 - *) files="$files $arg" ;;
49877 - esac
49878 - done
49880 - if test -z "$rm"; then
49881 - $echo "$modename: you must specify an RM program" 1>&2
49882 - $echo "$help" 1>&2
49883 - exit 1
49884 - fi
49886 - for file in $files; do
49887 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
49888 - test "X$dir" = "X$file" && dir=.
49889 - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
49891 - rmfiles="$file"
49893 - case "$name" in
49894 - *.la)
49895 - # Possibly a libtool archive, so verify it.
49896 - if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then
49897 - . $dir/$name
49899 - # Delete the libtool libraries and symlinks.
49900 - for n in $library_names; do
49901 - rmfiles="$rmfiles $dir/$n"
49902 - test "X$n" = "X$dlname" && dlname=
49903 - done
49904 - test -n "$dlname" && rmfiles="$rmfiles $dir/$dlname"
49905 - test -n "$old_library" && rmfiles="$rmfiles $dir/$old_library"
49907 - $show "$rm $rmfiles"
49908 - $run $rm $rmfiles
49910 - if test -n "$library_names"; then
49911 - # Do each command in the postuninstall commands.
49912 - eval cmds=\"$postuninstall_cmds\"
49913 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
49914 - for cmd in $cmds; do
49915 - IFS="$save_ifs"
49916 - $show "$cmd"
49917 - $run eval "$cmd"
49918 - done
49919 - IFS="$save_ifs"
49920 - fi
49922 - if test -n "$old_library"; then
49923 - # Do each command in the old_postuninstall commands.
49924 - eval cmds=\"$old_postuninstall_cmds\"
49925 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
49926 - for cmd in $cmds; do
49927 - IFS="$save_ifs"
49928 - $show "$cmd"
49929 - $run eval "$cmd"
49930 - done
49931 - IFS="$save_ifs"
49932 - fi
49934 - # FIXME: should reinstall the best remaining shared library.
49935 - fi
49936 - ;;
49938 - *.lo)
49939 - if test "$build_old_libs" = yes; then
49940 - oldobj=`$echo "X$name" | $Xsed -e 's/\.lo$/\.o/'`
49941 - rmfiles="$rmfiles $dir/$oldobj"
49942 - fi
49943 - $show "$rm $rmfiles"
49944 - $run $rm $rmfiles
49945 - ;;
49947 - *)
49948 - $show "$rm $rmfiles"
49949 - $run $rm $rmfiles
49950 - ;;
49951 - esac
49952 - done
49953 - exit 0
49954 - ;;
49956 - "")
49957 - $echo "$modename: you must specify a MODE" 1>&2
49958 - $echo "$generic_help" 1>&2
49959 - exit 1
49960 - ;;
49961 - esac
49963 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
49964 - $echo "$generic_help" 1>&2
49965 - exit 1
49966 -fi # test -z "$show_help"
49968 -# We need to display help for each of the modes.
49969 -case "$mode" in
49970 -"") $echo \
49971 -"Usage: $modename [OPTION]... [MODE-ARG]...
49973 -Provide generalized library-building support services.
49975 --n, --dry-run display commands without modifying any files
49976 - --features display configuration information and exit
49977 - --finish same as \`--mode=finish'
49978 - --help display this help message and exit
49979 - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
49980 - --quiet same as \`--silent'
49981 - --silent don't print informational messages
49982 - --version print version information
49984 -MODE must be one of the following:
49986 - compile compile a source file into a libtool object
49987 - execute automatically set library path, then run a program
49988 - finish complete the installation of libtool libraries
49989 - install install libraries or executables
49990 - link create a library or an executable
49991 - uninstall remove libraries from an installed directory
49993 -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
49994 -a more detailed description of MODE."
49995 - exit 0
49996 - ;;
49998 -compile)
49999 - $echo \
50000 -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
50002 -Compile a source file into a libtool library object.
50004 -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
50005 -from the given SOURCEFILE.
50007 -The output file name is determined by removing the directory component from
50008 -SOURCEFILE, then substituting the C source code suffix \`.c' with the
50009 -library object suffix, \`.lo'."
50010 - ;;
50012 -execute)
50013 - $echo \
50014 -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
50016 -Automatically set library path, then run a program.
50018 -This mode accepts the following additional options:
50020 - -dlopen FILE add the directory containing FILE to the library path
50022 -This mode sets the library path environment variable according to \`-dlopen'
50023 -flags.
50025 -If any of the ARGS are libtool executable wrappers, then they are translated
50026 -into their corresponding uninstalled binary, and any of their required library
50027 -directories are added to the library path.
50029 -Then, COMMAND is executed, with ARGS as arguments."
50030 - ;;
50032 -finish)
50033 - $echo \
50034 -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
50036 -Complete the installation of libtool libraries.
50038 -Each LIBDIR is a directory that contains libtool libraries.
50040 -The commands that this mode executes may require superuser privileges. Use
50041 -the \`--dry-run' option if you just want to see what would be executed."
50042 - ;;
50044 -install)
50045 - $echo \
50046 -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
50048 -Install executables or libraries.
50050 -INSTALL-COMMAND is the installation command. The first component should be
50051 -either the \`install' or \`cp' program.
50053 -The rest of the components are interpreted as arguments to that command (only
50054 -BSD-compatible install options are recognized)."
50055 - ;;
50057 -link)
50058 - $echo \
50059 -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
50061 -Link object files or libraries together to form another library, or to
50062 -create an executable program.
50064 -LINK-COMMAND is a command using the C compiler that you would use to create
50065 -a program from several object files.
50067 -The following components of LINK-COMMAND are treated specially:
50069 - -all-static do not do any dynamic linking at all
50070 - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
50071 - -dlpreopen FILE link in FILE and add its symbols to dld_preloaded_symbols
50072 - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
50073 - -LLIBDIR search LIBDIR for required installed libraries
50074 - -lNAME OUTPUT-FILE requires the installed library libNAME
50075 - -no-undefined declare that a library does not refer to external symbols
50076 - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
50077 - -release RELEASE specify package release information
50078 - -rpath LIBDIR the created library will eventually be installed in LIBDIR
50079 - -static do not do any dynamic linking of libtool libraries
50080 - -version-info CURRENT[:REVISION[:AGE]]
50081 - specify library version info [each variable defaults to 0]
50083 -All other options (arguments beginning with \`-') are ignored.
50085 -Every other argument is treated as a filename. Files ending in \`.la' are
50086 -treated as uninstalled libtool libraries, other files are standard or library
50087 -object files.
50089 -If the OUTPUT-FILE ends in \`.la', then a libtool library is created, only
50090 -library objects (\`.lo' files) may be specified, and \`-rpath' is required.
50092 -If OUTPUT-FILE ends in \`.a', then a standard library is created using \`ar'
50093 -and \`ranlib'.
50095 -If OUTPUT-FILE ends in \`.lo' or \`.o', then a reloadable object file is
50096 -created, otherwise an executable program is created."
50097 - ;;
50099 -uninstall)
50100 - $echo
50101 -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
50103 -Remove libraries from an installation directory.
50105 -RM is the name of the program to use to delete files associated with each FILE
50106 -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
50107 -to RM.
50109 -If FILE is a libtool library, all the files associated with it are deleted.
50110 -Otherwise, only FILE itself is deleted using RM."
50111 - ;;
50114 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
50115 - $echo "$help" 1>&2
50116 - exit 1
50117 - ;;
50118 -esac
50120 -echo
50121 -$echo "Try \`$modename --help' for more information about other modes."
50123 -exit 0
50125 -# Local Variables:
50126 -# mode:shell-script
50127 -# sh-indentation:2
50128 -# End: