1 diff --git a/ChangeLog b/ChangeLog
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
38 index 0000000..54caf7c
42 +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
45 + This file is free documentation; the Free Software Foundation gives
46 +unlimited permission to copy, distribute and modify it.
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
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
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
96 + 4. Type `make install' to install the programs and any data files and
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
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.
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'.
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
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:
191 +where SYSTEM can have one of these forms:
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
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'.
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.
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
241 + Print a summary of the options to `configure', and exit.
245 + Print the version of Autoconf used to generate the `configure'
249 + Enable the cache: use and save the results of the tests in FILE,
250 + traditionally `config.cache'. FILE defaults to `/dev/null' to
255 + Alias for `--cache-file=config.cache'.
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).
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
273 index 0000000..10d4251
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 \
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 \
329 +# Test support files
330 +TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.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
377 + $(mkinstalldirs) $(DESTDIR)$(includedir)
378 + $(INSTALL_HEADER) jconfig_api.h $(DESTDIR)$(includedir)/jconfig.h
380 +# Uninstall jconfig_api.h
382 + rm -f $(DESTDIR)$(includedir)/jconfig.h
384 +# Non-Automake subdirectories to distribute
385 +DISTDIRS = m4 config
391 + for dir in $(DISTDIRS) ; do \
392 + find $$dir -depth -print | egrep -v '(~$$)|(/CVS)|(/\.#)|(/\.deps)' \
393 + | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
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
417 index 0000000..ddd9c50
421 +# Makefile.in generated by automake 1.9.6 from Makefile.am.
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.
438 +# Automake Makefile for the JPEG library
440 +# This file is written by Bob Friesenhahn, bfriesen@simple.dallas.tx.us
446 +top_srcdir = @top_srcdir@
448 +pkgdatadir = $(datadir)/@PACKAGE@
449 +pkglibdir = $(libdir)/@PACKAGE@
450 +pkgincludedir = $(includedir)/@PACKAGE@
452 +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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)
462 +NORMAL_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
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) \
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/||"`;; \
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)
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)
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
553 +includeHEADERS_INSTALL = $(INSTALL_HEADER)
554 +HEADERS = $(include_HEADERS) $(noinst_HEADERS)
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
566 +distuninstallcheck_listfiles = find . -type f -print
567 +distcleancheck_listfiles = find . -type f -print
569 +AMDEP_FALSE = @AMDEP_FALSE@
570 +AMDEP_TRUE = @AMDEP_TRUE@
574 +AUTOCONF = @AUTOCONF@
575 +AUTOHEADER = @AUTOHEADER@
576 +AUTOMAKE = @AUTOMAKE@
579 +CCDEPMODE = @CCDEPMODE@
582 +CPPFLAGS = @CPPFLAGS@
585 +CXXDEPMODE = @CXXDEPMODE@
586 +CXXFLAGS = @CXXFLAGS@
587 +CYGPATH_W = @CYGPATH_W@
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@
609 +LTLIBOBJS = @LTLIBOBJS@
611 +MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
612 +MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
613 +MAKEINFO = @MAKEINFO@
614 +MEMORYMGR = @MEMORYMGR@
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@
626 +SET_MAKE = @SET_MAKE@
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@
647 +am__untar = @am__untar@
650 +build_alias = @build_alias@
651 +build_cpu = @build_cpu@
652 +build_os = @build_os@
653 +build_vendor = @build_vendor@
655 +exec_prefix = @exec_prefix@
657 +host_alias = @host_alias@
658 +host_cpu = @host_cpu@
660 +host_vendor = @host_vendor@
661 +includedir = @includedir@
663 +install_sh = @install_sh@
665 +libexecdir = @libexecdir@
666 +localstatedir = @localstatedir@
669 +oldincludedir = @oldincludedir@
671 +program_transform_name = @program_transform_name@
673 +sharedstatedir = @sharedstatedir@
674 +sysconfdir = @sysconfdir@
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 \
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 \
733 +# Test support files
734 +TESTFILES = testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.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
785 +.SUFFIXES: .c .lo .o .obj
788 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
789 + @for dep in $?; do \
790 + case '$(am__configure_deps)' in \
792 + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \
793 + cd $(srcdir) && $(AUTOMAKE) --foreign \
798 + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
799 + cd $(top_srcdir) && \
800 + $(AUTOMAKE) --foreign Makefile
802 +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
805 + echo ' $(SHELL) ./config.status'; \
806 + $(SHELL) ./config.status;; \
808 + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
809 + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
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)
821 + @if test ! -f $@; then \
823 + $(MAKE) stamp-h1; \
826 +stamp-h1: $(srcdir)/jconfig.h.in $(top_builddir)/config.status
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)
834 +jconfig_api.h: stamp-h2
835 + @if test ! -f $@; then \
837 + $(MAKE) stamp-h2; \
840 +stamp-h2: $(srcdir)/jconfig_api.h.in $(top_builddir)/config.status
842 + cd $(top_builddir) && $(SHELL) ./config.status jconfig_api.h
845 + -rm -f jconfig.h stamp-h1 jconfig_api.h stamp-h2
846 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
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"; \
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"; \
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"; \
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)
877 + test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
878 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
879 + p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
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; \
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"; \
898 + @list='$(bin_PROGRAMS)'; for p in $$list; do \
899 + f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
900 + echo " rm -f $$p $$f"; \
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:
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@
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 $<
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) '$<'`
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:
1021 + -rm -rf .libs _libs
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 \
1033 + *.1*) list="$$list $$i" ;; \
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/^.*\\.//'`; \
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"; \
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 \
1056 + *.1*) list="$$list $$i" ;; \
1059 + for i in $$list; do \
1060 + ext=`echo $$i | sed -e 's/^.*\\.//'`; \
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"; \
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"; \
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"; \
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; \
1094 + $(AWK) ' { files[$$0] = 1; } \
1095 + END { for (i in files) print i; }'`; \
1096 + mkid -fID $$unique
1099 +TAGS: $(HEADERS) $(SOURCES) jconfig.h.in jconfig_api.h.in $(TAGS_DEPENDENCIES) \
1100 + $(TAGS_FILES) $(LISP)
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; \
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; \
1115 +CTAGS: $(HEADERS) $(SOURCES) jconfig.h.in jconfig_api.h.in $(TAGS_DEPENDENCIES) \
1116 + $(TAGS_FILES) $(LISP)
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; \
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) \
1130 + here=`$(am__cd) $(top_builddir) && pwd` \
1131 + && cd $(top_srcdir) \
1132 + && gtags -i $(GTAGS_ARGS) $$here
1135 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1137 +distdir: $(DISTFILES)
1138 + $(am__remove_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 \
1145 + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
1146 + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
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 \
1152 + $(mkdir_p) "$(distdir)$$dir"; \
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; \
1160 + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
1162 + test -f $(distdir)/$$file \
1163 + || cp -p $$d/$$file $(distdir)/$$file \
1167 + $(MAKE) $(AM_MAKEFLAGS) \
1168 + top_distdir="$(top_distdir)" distdir="$(distdir)" \
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)
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)
1183 + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1184 + $(am__remove_distdir)
1187 + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
1188 + $(am__remove_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
1205 + case '$(DIST_ARCHIVES)' in \
1207 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
1209 + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
1211 + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1213 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
1215 + unzip $(distdir).zip ;;\
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" \
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)"; \
1257 + $(distuninstallcheck_listfiles) ; \
1259 +distcleancheck: distclean
1260 + @if test '$(srcdir)' = . ; then \
1261 + echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1264 + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1265 + || { echo "ERROR: files left in build directory after distclean:" ; \
1266 + $(distcleancheck_listfiles) ; \
1269 + $(MAKE) $(AM_MAKEFLAGS) check-local
1271 +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(MANS) $(HEADERS) \
1272 + jconfig.h jconfig_api.h
1273 +install-binPROGRAMS: install-libLTLIBRARIES
1276 + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(includedir)"; do \
1277 + test -z "$$dir" || $(mkdir_p) "$$dir"; \
1279 +install: install-am
1280 +install-exec: install-exec-am
1281 +install-data: install-data-am
1282 +uninstall: uninstall-am
1285 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1287 +installcheck: installcheck-am
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:
1296 + -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
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."
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)
1313 +distclean-am: clean-am distclean-compile distclean-generic \
1314 + distclean-hdr distclean-libtool distclean-tags
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
1336 +maintainer-clean: maintainer-clean-am
1337 + -rm -f $(am__CONFIG_DISTCLEAN_FILES)
1338 + -rm -rf $(top_srcdir)/autom4te.cache
1339 + -rm -rf ./$(DEPDIR)
1341 +maintainer-clean-am: distclean-am maintainer-clean-generic
1343 +mostlyclean: mostlyclean-am
1345 +mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1346 + mostlyclean-libtool
1356 +uninstall-am: uninstall-binPROGRAMS uninstall-includeHEADERS \
1357 + uninstall-info-am uninstall-libLTLIBRARIES uninstall-local \
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
1389 + rm -f $(DESTDIR)$(includedir)/jconfig.h
1392 + builddir=`pwd` ; \
1395 + for dir in $(DISTDIRS) ; do \
1396 + find $$dir -depth -print | egrep -v '(~$$)|(/CVS)|(/\.#)|(/\.deps)' \
1397 + | cpio -pdum $$builddir/$(distdir) 2> /dev/null ; \
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.
1421 diff --git a/README.1st b/README.1st
1422 new file mode 100755
1423 index 0000000..fcb0a86
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
1437 +An example build sequence for the package (should work for Linux, FreeBSD,
1440 + tar -xzvf libjpeg-6b.tar.gz
1442 + ./configure --prefix=/place/to/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
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],
1479 + [m4_define([AC_PROVIDE_IFELSE],
1480 + [m4_ifdef([AC_PROVIDE_$1],
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],
1492 + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
1494 +dnl And a similar setup for Fortran 77 support
1495 + AC_PROVIDE_IFELSE([AC_PROG_F77],
1497 + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
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],
1505 + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
1507 + [AC_PROVIDE_IFELSE([LT_AC_PROG_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
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
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
1560 +AC_LIBTOOL_SYS_MAX_CMD_LEN
1561 +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1564 +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1565 +_LT_AC_PROG_ECHO_BACKSLASH
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
1574 + export COLLECT_NAMES
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'
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').
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, :)
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
1641 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
1644 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
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
1655 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
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
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
1679 +AC_LIBTOOL_LANG_C_CONFIG
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.
1692 +# If no C compiler flags were specified, use CFLAGS.
1693 +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
1695 +# Allow CC to be a program name with arguments.
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
1706 + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
1707 + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
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`
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`
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; }
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; }
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)])
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}
1783 + # Remove one level of quotation (which was required for Make).
1784 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
1789 +if test "X[$]1" = X--no-reexec; then
1790 + # Discard the --no-reexec flag, and continue.
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!
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
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
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
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
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.
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+"[$]@"}
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"
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"
1892 + # maybe with a smaller string...
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
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+"[$]@"}
1908 + # Oops. We lost completely, so just stick with echo.
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.
1920 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
1921 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
1925 +])])# _LT_AC_PROG_ECHO_BACKSLASH
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
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
1945 + HPUX_IA64_MODE="32"
1948 + HPUX_IA64_MODE="64"
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
1961 + LD="${LD-ld} -melf32bsmip"
1964 + LD="${LD-ld} -melf32bmipn32"
1967 + LD="${LD-ld} -melf64bmip"
1971 + case `/usr/bin/file conftest.$ac_objext` in
1976 + LD="${LD-ld} -n32"
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
1995 + LD="${LD-ld} -m elf_i386"
1997 + ppc64-*linux*|powerpc64-*linux*)
1998 + LD="${LD-ld} -m elf32ppclinux"
2001 + LD="${LD-ld} -m elf_s390"
2004 + LD="${LD-ld} -m elf32_sparc"
2011 + LD="${LD-ld} -m elf_x86_64"
2013 + ppc*-*linux*|powerpc*-*linux*)
2014 + LD="${LD-ld} -m elf64ppc"
2017 + LD="${LD-ld} -m elf64_s390"
2020 + LD="${LD-ld} -m elf64_sparc"
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,
2035 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
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"
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
2048 + case $lt_cv_prog_gnu_ld in
2049 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
2050 + *) LD="${LD-ld} -64" ;;
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)
2067 +need_locks="$enable_libtool_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],
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)
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
2109 +if test x"[$]$2" = xyes; then
2110 + ifelse([$5], , :, [$5])
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],
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
2143 + LDFLAGS="$save_LDFLAGS"
2146 +if test x"[$]$2" = xyes; then
2147 + ifelse([$4], , :, [$4])
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
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
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;
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;
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;
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`
2203 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
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`
2211 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
2212 + lt_cv_sys_max_cmd_len=196608
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 ;;
2229 + lt_cv_sys_max_cmd_len=102400
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/.*[[ ]]//'`
2236 + lt_cv_sys_max_cmd_len=32768
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
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
2251 + teststring=$teststring$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`
2261 +if test -n $lt_cv_sys_max_cmd_len ; then
2262 + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
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 :
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"
2297 +# define LT_DLGLOBAL RTLD_GLOBAL
2300 +# define LT_DLGLOBAL DL_GLOBAL
2302 +# define LT_DLGLOBAL 0
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
2310 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
2313 +# define LT_DLLAZY_OR_NOW DL_LAZY
2316 +# define LT_DLLAZY_OR_NOW RTLD_NOW
2319 +# define LT_DLLAZY_OR_NOW DL_NOW
2321 +# define LT_DLLAZY_OR_NOW 0
2329 +extern "C" void exit (int);
2332 +void fnord() { int i=42;}
2335 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
2336 + int status = $lt_dlunknown;
2340 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
2341 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
2342 + /* dlclose (self); */
2345 + puts (dlerror ());
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
2353 + case x$lt_status in
2354 + x$lt_dlno_uscore) $1 ;;
2355 + x$lt_dlneed_uscore) $2 ;;
2356 + x$lt_dlunknown|x*) $3 ;;
2359 + # compilation failed
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
2377 + lt_cv_dlopen_libs=
2381 + lt_cv_dlopen="load_add_on"
2382 + lt_cv_dlopen_libs=
2383 + lt_cv_dlopen_self=yes
2387 + lt_cv_dlopen="LoadLibrary"
2388 + lt_cv_dlopen_libs=
2392 + lt_cv_dlopen="dlopen"
2393 + lt_cv_dlopen_libs=
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
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"])
2427 + if test "x$lt_cv_dlopen" != xno; then
2433 + case $lt_cv_dlopen in
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\"
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)
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)
2461 + CPPFLAGS="$save_CPPFLAGS"
2462 + LDFLAGS="$save_LDFLAGS"
2467 + case $lt_cv_dlopen_self in
2468 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2469 + *) enable_dlopen_self=unknown ;;
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 ;;
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
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)
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
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
2518 + chmod u+w . 2>&AS_MESSAGE_LOG_FD
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
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])
2543 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
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])
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
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
2595 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
2596 + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
2599 + # We cannot hardcode anything, or else we can only hardcode existing
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],
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])
2627 +# FIXME - insert some real tests, host_os isn't really good enough
2630 + if test -n "$STRIP" ; then
2631 + striplib="$STRIP -x"
2632 + AC_MSG_RESULT([yes])
2634 + AC_MSG_RESULT([no])
2638 + AC_MSG_RESULT([no])
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'
2655 +postuninstall_cmds=
2659 +shlibpath_overrides_runpath=unknown
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'`
2672 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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
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'
2695 + version_type=linux
2696 + need_lib_prefix=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
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.
2710 + aix4 | aix4.[[01]] | aix4.[[01]].*)
2711 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2713 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
2716 + can_build_shared=no
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}'
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'
2734 + shlibpath_var=LIBPATH
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'
2745 + library_names_spec='${libname}${shared_ext}'
2746 + dynamic_linker="$host_os ld.so"
2747 + shlibpath_var=LIBRARY_PATH
2751 + version_type=linux
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
2764 +cygwin* | mingw* | pw32*)
2765 + version_type=windows
2766 + shrext_cmds=".dll"
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~
2783 + shlibpath_overrides_runpath=yes
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"
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'`
2804 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
2815 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
2818 + dynamic_linker='Win32 ld.exe'
2819 + # FIXME: first we should search . and the directory the executable is in
2820 + shlibpath_var=PATH
2823 +darwin* | rhapsody*)
2824 + dynamic_linker="$host_os dyld"
2825 + version_type=darwin
2826 + need_lib_prefix=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"`
2837 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
2839 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2843 + version_type=linux
2844 + need_lib_prefix=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
2856 + version_type=linux
2857 + need_lib_prefix=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'
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`
2874 + freebsd[[123]]*) objformat=aout ;;
2875 + *) objformat=elf ;;
2878 + version_type=freebsd-$objformat
2879 + case $version_type in
2881 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
2883 + need_lib_prefix=no
2886 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
2890 + shlibpath_var=LD_LIBRARY_PATH
2893 + shlibpath_overrides_runpath=yes
2895 + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2896 + shlibpath_overrides_runpath=yes
2897 + hardcode_into_libs=yes
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
2904 + freebsd*) # from 4.6 on
2905 + shlibpath_overrides_runpath=yes
2906 + hardcode_into_libs=yes
2912 + version_type=linux
2913 + need_lib_prefix=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
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
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"
2939 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2941 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
2963 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
2964 + postinstall_cmds='chmod 555 $lib'
2968 + version_type=linux
2969 + need_lib_prefix=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
2979 +irix5* | irix6* | nonstopux*)
2981 + nonstopux*) version_type=nonstopux ;;
2983 + if test "$lt_cv_prog_gnu_ld" = yes; then
2984 + version_type=linux
2989 + need_lib_prefix=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}'
2994 + irix5* | nonstopux*)
2995 + libsuff= shlibsuff=
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;;
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
3016 +# No shared lib support for Linux oldld, aout, or coff.
3017 +linux*oldld* | linux*aout* | linux*coff*)
3021 +# This must be Linux ELF.
3023 + version_type=linux
3024 + need_lib_prefix=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"
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'
3052 + version_type=linux
3053 + need_lib_prefix=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'
3064 + version_type=sunos
3065 + need_lib_prefix=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'
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'
3076 + shlibpath_var=LD_LIBRARY_PATH
3077 + shlibpath_overrides_runpath=yes
3078 + hardcode_into_libs=yes
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
3089 + version_type=linux
3090 + need_lib_prefix=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
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.
3104 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
3105 + *) need_version=no ;;
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
3112 + openbsd2.[[89]] | openbsd2.[[89]].*)
3113 + shlibpath_overrides_runpath=no
3116 + shlibpath_overrides_runpath=yes
3120 + shlibpath_overrides_runpath=yes
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
3133 +osf3* | osf4* | osf5*)
3135 + need_lib_prefix=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"
3145 + version_type=linux
3146 + need_lib_prefix=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'
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
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
3176 + shlibpath_overrides_runpath=no
3177 + need_lib_prefix=no
3178 + export_dynamic_flag_spec='${wl}-Blargedynsym'
3179 + runpath_var=LD_RUN_PATH
3182 + need_lib_prefix=no
3185 + need_lib_prefix=no
3187 + shlibpath_overrides_runpath=no
3188 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
3202 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3203 + version_type=freebsd-elf
3204 + need_lib_prefix=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
3214 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3215 + shlibpath_overrides_runpath=yes
3218 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3222 + sys_lib_dlsearch_path_spec='/usr/lib'
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
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
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])
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])
3264 + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
3267 + if test -z "$LTCFLAGS"; then
3268 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
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
3281 + *) AC_MSG_ERROR([invalid tag name: $tagname])
3285 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
3287 + AC_MSG_ERROR([tag name \"$tagname\" already exists])
3290 + # Update the list of available tags.
3291 + if test -n "$tagname"; then
3292 + echo appending configuration tag \"$tagname\" to $ofile
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
3306 + if test -n "$F77" && test "X$F77" != "Xno"; then
3307 + AC_LIBTOOL_LANG_F77_CONFIG
3314 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
3315 + AC_LIBTOOL_LANG_GCJ_CONFIG
3322 + AC_LIBTOOL_LANG_RC_CONFIG
3326 + AC_MSG_ERROR([Unsupported tag name: $tagname])
3330 + # Append the new tag name to the list of available tags.
3331 + if test -n "$tagname" ; then
3332 + available_tags="$available_tags $tagname"
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"
3344 + AC_MSG_ERROR([unable to update list of available tagged configurations.])
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 ;;
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
3389 + IFS="$lt_save_ifs"
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 ;;
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
3428 + IFS="$lt_save_ifs"
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 ;;
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
3467 + IFS="$lt_save_ifs"
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
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'
3503 + EGREP=$ac_cv_prog_egrep
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.
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
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
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
3558 + IFS="$lt_save_ifs"
3559 + MAGIC_CMD="$lt_save_MAGIC_CMD"
3562 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3563 +if test -n "$MAGIC_CMD"; then
3564 + AC_MSG_RESULT($MAGIC_CMD)
3568 +])# AC_PATH_TOOL_PREFIX
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)
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],
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
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])
3605 + # gcc leaves a trailing carriage return which upsets mingw
3606 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3608 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
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%/%"`
3619 + test -z "$LD" && LD="$ac_prog"
3622 + # If it fails, then pretend we aren't using GCC.
3626 + # If it is relative, then search for the first ld in PATH.
3627 + with_gnu_ld=unknown
3630 +elif test "$with_gnu_ld" = yes; then
3631 + AC_MSG_CHECKING([for GNU ld])
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
3651 + test "$with_gnu_ld" != yes && break
3656 + IFS="$lt_save_ifs"
3658 + lt_cv_path_LD="$LD" # Let the user override the test with a path.
3660 +LD="$lt_cv_path_LD"
3661 +if test -n "$LD"; then
3662 + AC_MSG_RESULT($LD)
3666 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
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
3682 + lt_cv_prog_gnu_ld=no
3685 +with_gnu_ld=$lt_cv_prog_gnu_ld
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
3700 +*) reload_flag=" $reload_flag" ;;
3702 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
3705 + if test "$GCC" = yes; then
3706 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3708 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
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.
3738 + lt_cv_deplibs_check_method=pass_all
3742 + lt_cv_deplibs_check_method=pass_all
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
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'
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'
3764 +darwin* | rhapsody*)
3765 + lt_cv_deplibs_check_method=pass_all
3768 +freebsd* | kfreebsd*-gnu | dragonfly*)
3769 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
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.*`
3780 + lt_cv_deplibs_check_method=pass_all
3785 + lt_cv_deplibs_check_method=pass_all
3788 +hpux10.20* | hpux11*)
3789 + lt_cv_file_magic_cmd=/usr/bin/file
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
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
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
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)$'
3811 +irix5* | irix6* | nonstopux*)
3813 + *-32|*"-32 ") libmagic=32-bit;;
3814 + *-n32|*"-n32 ") libmagic=N32;;
3815 + *-64|*"-64 ") libmagic=64-bit;;
3816 + *) libmagic=never-match;;
3818 + lt_cv_deplibs_check_method=pass_all
3821 +# This must be Linux ELF.
3823 + lt_cv_deplibs_check_method=pass_all
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)$'
3830 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
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
3841 + lt_cv_deplibs_check_method=unknown
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)$'
3848 + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3852 +osf3* | osf4* | osf5*)
3853 + lt_cv_deplibs_check_method=pass_all
3857 + lt_cv_deplibs_check_method=pass_all
3861 + case $host_vendor in
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*`
3867 + lt_cv_deplibs_check_method=pass_all
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 )'
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
3879 + lt_cv_deplibs_check_method=pass_all
3882 + lt_cv_deplibs_check_method=pass_all
3887 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3888 + lt_cv_deplibs_check_method=pass_all
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
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"
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"
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"
3928 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3930 + lt_cv_path_NM="$tmp_nm -p"
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
3942 + IFS="$lt_save_ifs"
3944 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3946 +NM="$lt_cv_path_NM"
3952 +# check for math library
3953 +AC_DEFUN([AC_CHECK_LIBM],
3954 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
3957 +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
3958 + # These system don't have libm, or don't need it
3961 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
3962 + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3965 + AC_CHECK_LIB(m, cos, LIBM="-lm")
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
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" ;;
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])
4015 + enable_ltdl_install=yes
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'])
4023 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4027 + # For backwards non-gettext consistent compatibility...
4028 + INCLTDL="$LTDLINCL"
4029 +])# AC_LIBLTDL_INSTALLABLE
4034 +# enable support for C++ libraries
4035 +AC_DEFUN([AC_LIBTOOL_CXX],
4036 +[AC_REQUIRE([_LT_AC_LANG_CXX])
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
4058 +])# _LT_AC_PROG_CXXCPP
4062 +# enable support for Fortran 77 libraries
4063 +AC_DEFUN([AC_LIBTOOL_F77],
4064 +[AC_REQUIRE([_LT_AC_LANG_F77])
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
4078 +# enable support for GCJ libraries
4079 +AC_DEFUN([AC_LIBTOOL_GCJ],
4080 +[AC_REQUIRE([_LT_AC_LANG_GCJ])
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
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])
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],
4116 +# Source file extension for C test sources.
4119 +# Object file extension for compiled C test sources.
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.
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'
4164 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
4165 + test "$enable_shared" = yes && enable_static=no
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)
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],
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.
4224 +# Object file extension for compiled C++ test sources.
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.
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
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
4256 + $as_unset lt_cv_path_LD
4258 +test -z "${LDCXX+set}" || LD=$LDCXX
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'
4269 + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4272 +if test "$GXX" = yes; then
4273 + # Set up default GNU C++ configuration
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)
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'
4296 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
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'
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"'
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
4326 + # FIXME: insert proper C++ library support
4327 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
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
4346 + aix_use_runtimelinking=yes
4354 + exp_sym_flag='-bexport'
4355 + no_entry_flag='-bnoentry'
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
4377 + # We have reworked collect2
4378 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
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)=
4391 + shared_flag='-shared'
4392 + if test "$aix_use_runtimelinking" = yes; then
4393 + shared_flag="$shared_flag "'${wl}-G'
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:
4402 + if test "$aix_use_runtimelinking" = yes; then
4403 + shared_flag='${wl}-G'
4405 + shared_flag='${wl}-bM:SRE'
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"
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"
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'
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'
4451 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4456 + case $cc_basename in
4458 + # FIXME: insert proper C++ library support
4459 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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;
4479 + echo EXPORTS > $output_objdir/$soname.def;
4480 + cat $export_symbols >> $output_objdir/$soname.def;
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'
4484 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4487 + darwin* | rhapsody*)
4489 + rhapsody* | darwin1.[[012]])
4490 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
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'
4496 + case ${MACOSX_DEPLOYMENT_TARGET} in
4498 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
4501 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
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
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'
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'
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}'
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}'
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}'
4534 + case $cc_basename in
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}'
4544 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4551 + case $cc_basename in
4553 + # FIXME: insert proper C++ library support
4554 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4557 + # Green Hills C++ Compiler
4558 + # FIXME: insert proper C++ library support
4559 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4562 + # FIXME: insert proper C++ library support
4563 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4568 + # C++ shared libraries reported to be fairly broken before switch to ELF
4569 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4572 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4574 + freebsd* | kfreebsd*-gnu | dragonfly*)
4575 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
4577 + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
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
4592 + # FIXME: insert proper C++ library support
4593 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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
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'
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'
4611 + # FIXME: insert proper C++ library support
4612 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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)=:
4624 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
4627 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
4633 + _LT_AC_TAGVAR(hardcode_direct, $1)=no
4634 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
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.
4644 + case $cc_basename in
4646 + # FIXME: insert proper C++ library support
4647 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4652 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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'
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'
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
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'
4672 + if test "$GXX" = yes; then
4673 + if test $with_gnu_ld = no; then
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'
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'
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'
4687 + # FIXME: insert proper C++ library support
4688 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
4708 + case $cc_basename in
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
4717 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
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'
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'
4727 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
4730 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
4731 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
4734 + case $cc_basename in
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
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'
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
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'
4771 + *) # Version 8.0 or newer
4774 + ia64*) tmp_idyn=' -i_dynamic';;
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'
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'
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'
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
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'
4816 + # FIXME: insert proper C++ library support
4817 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4820 + # FIXME: insert proper C++ library support
4821 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4824 + case $cc_basename in
4826 + # FIXME: insert proper C++ library support
4827 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4830 + # FIXME: insert proper C++ library support
4831 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
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
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::"'
4847 + # C++ shared libraries are fairly broken
4848 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
4860 + output_verbose_link_cmd='echo'
4863 + case $cc_basename in
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'
4881 + # Rational C++ 2.4.1
4882 + # FIXME: insert proper C++ library support
4883 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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
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'
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"'
4916 + # FIXME: insert proper C++ library support
4917 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4923 + case $cc_basename in
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'
4940 + # Rational C++ 2.4.1
4941 + # FIXME: insert proper C++ library support
4942 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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~
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
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'
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"'
4979 + # FIXME: insert proper C++ library support
4980 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4986 + # FIXME: insert proper C++ library support
4987 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4990 + case $cc_basename in
4993 + # FIXME: insert proper C++ library support
4994 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
4998 + # FIXME: insert proper C++ library support
4999 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5002 + # FIXME: insert proper C++ library support
5003 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5008 + case $cc_basename in
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
5020 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
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
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'
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
5041 + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
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'
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\""
5064 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
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\""
5076 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
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
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'
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'
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
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
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'
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'
5136 + case $cc_basename in
5138 + # NonStop-UX NCC 3.20
5139 + # FIXME: insert proper C++ library support
5140 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5143 + # FIXME: insert proper C++ library support
5144 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5149 + # FIXME: insert proper C++ library support
5150 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
5153 + # FIXME: insert proper C++ library support
5154 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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)
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
5200 +void foo (void) { a = 0; }
5202 +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
5206 + Foo (void) { a = 0; }
5211 +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
5219 +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
5222 + public void bar (void) {
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
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
5257 + if test "$pre_test_object_deps_done" = no; then
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}"
5266 + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
5269 + # The "-l" case would never come before the object being
5270 + # linked, so don't bother handling this case.
5273 + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
5274 + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
5276 + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
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
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"
5293 + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
5296 + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
5297 + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
5299 + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
5304 + *) ;; # Ignore the rest.
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
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)=
5329 + case $cc_basename in
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'
5341 +case " $_LT_AC_TAGVAR(postdeps, $1) " in
5342 +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
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.
5378 +# Object file extension for compiled f77 test sources.
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.
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.
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'
5419 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
5420 + test "$enable_shared" = yes && enable_static=no
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)
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],
5457 +# Source file extension for Java test sources.
5460 +# Object file extension for compiled Java test sources.
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.
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)
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],
5513 +# Source file extension for RC test sources.
5516 +# Object file extension for compiled RC test sources.
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.
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)
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
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 \
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
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\"\`\\\""
5630 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
5636 + *'\[$]0 --fallback-echo"')
5637 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
5642 + [cfgfile="${ofile}T"
5643 + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
5645 + AC_MSG_NOTICE([creating $ofile])],
5646 + [cfgfile="$ofile"])
5648 + cat <<__EOF__ >> "$cfgfile"
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.
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.
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.
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
5718 +host_alias=$host_alias
5722 +# The build system.
5723 +build_alias=$build_alias
5727 +# An echo program that does not interpret backslashes.
5732 +AR_FLAGS=$lt_AR_FLAGS
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)
5749 +# The linker used to build libraries.
5750 +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
5752 +# Whether we need hard or soft links.
5755 +# A BSD-compatible nm program.
5758 +# A symbol stripping program
5761 +# Used to examine libraries when file_magic_cmd begins "file"
5762 +MAGIC_CMD=$MAGIC_CMD
5764 +# Used on cygwin: DLL creation program.
5767 +# Used on cygwin: object dumper.
5770 +# Used on cygwin: assembler.
5773 +# The name of the directory that contains temporary libtool files.
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").
5789 +# Shared library suffix (normally ".so").
5790 +shrext_cmds='$shrext_cmds'
5792 +# Executable file suffix (normally "").
5795 +# Additional compiler flags for building library objects.
5796 +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
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.
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
5879 +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
5881 +# Dependencies to place after the objects being linked to create a
5883 +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
5885 +# Dependencies to place before the objects being linked to create a
5887 +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
5889 +# Dependencies to place after the objects being linked to create a
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
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)
5999 +[# ### END LIBTOOL CONFIG],
6000 +[# ### END LIBTOOL TAG CONFIG: $tagname])
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
6014 + export COLLECT_NAMES
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")
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"
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.
6088 + symcode='[[BCDT]]'
6090 +cygwin* | mingw* | pw32*)
6091 + symcode='[[ABCDGISTW]]'
6093 +hpux*) # Its linker distinguishes data from code symbols
6094 + if test "$host_cpu" = ia64; then
6095 + symcode='[[ABCDEGRST]]'
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'"
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'"
6107 +irix* | nonstopux*)
6108 + symcode='[[BCDEGRST]]'
6111 + symcode='[[BCDEGQRST]]'
6114 + symcode='[[BDRT]]'
6122 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
6123 + symcode='[[ABDT]]'
6126 + symcode='[[DFNSTU]]'
6130 +# Handle CRLF in mingw tool chain
6134 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
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]]' ;;
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.
6157 + cat > conftest.$ac_ext <<EOF
6162 +void nm_test_func(){}
6166 +int main(){nm_test_var='a';nm_test_func();return(0);}
6169 + if AC_TRY_EVAL(ac_compile); then
6170 + # Now try to grab the symbols.
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"
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
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 *
6196 +# define lt_ptr_t char *
6200 +/* The mapping between symbol names and symbols. */
6205 +lt_preloaded_symbols[[]] =
6208 + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6209 + cat <<\EOF >> conftest.$ac_ext
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
6226 + LIBS="$lt_save_LIBS"
6227 + CFLAGS="$lt_save_CFLAGS"
6229 + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
6232 + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
6235 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
6238 + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
6239 + cat conftest.$ac_ext >&5
6241 + rm -f conftest* conftst*
6243 + # Do not use the global_symbol_pipe unless it works.
6244 + if test "$pipe_works" = yes; then
6247 + lt_cv_sys_global_symbol_pipe=
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)
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'
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'
6285 + # FIXME: we need at least 68020 code to build shared libraries, but
6286 + # adding the `-m68020' flag to GCC prevents building anything better,
6288 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6290 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6291 + # PIC is the default for these OSes.
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'
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'
6304 + # DJGPP does not support shared libraries at all
6305 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6308 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6309 + # Instead, we relocate shared libraries at runtime.
6312 + if test -d /usr/nec; then
6313 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6317 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6318 + # not for PA HP-UX.
6323 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6328 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
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'
6339 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6343 + case $cc_basename in
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"
6351 + # PIC is the default on this platform
6352 + # Common symbols not allowed in MH_DYLIB files
6353 + case $cc_basename in
6355 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6356 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6361 + case $cc_basename in
6363 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6366 + # Green Hills C++ Compiler
6367 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6373 + freebsd* | kfreebsd*-gnu | dragonfly*)
6374 + # FreeBSD uses GNU C++
6376 + hpux9* | hpux10* | hpux11*)
6377 + case $cc_basename in
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'
6386 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6387 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
6393 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
6402 + # This is c89, which is MS Visual C++ (no shared libs)
6403 + # Anyone wants to do a port?
6405 + irix5* | irix6* | nonstopux*)
6406 + case $cc_basename in
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.
6417 + case $cc_basename in
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'
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'
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'
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'
6451 + case $cc_basename in
6453 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
6461 + osf3* | osf4* | osf5*)
6462 + case $cc_basename in
6464 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
6467 + # Rational C++ 2.4.1
6468 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
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'
6485 + case $cc_basename in
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 '
6493 + # Green Hills C++ Compiler
6494 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
6501 + case $cc_basename in
6504 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6505 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6509 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6516 + case $cc_basename in
6518 + # NonStop-UX NCC 3.20
6519 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6525 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6526 + case $cc_basename in
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'
6537 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
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'
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'
6557 + # FIXME: we need at least 68020 code to build shared libraries, but
6558 + # adding the `-m68020' flag to GCC prevents building anything better,
6560 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
6563 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6564 + # PIC is the default for these OSes.
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'
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'
6580 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6581 + # Instead, we relocate shared libraries at runtime.
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
6592 + if test -d /usr/nec; then
6593 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
6598 + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6599 + # not for PA HP-UX.
6605 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6611 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
6615 + # PORTME Check for flag to pass linker flags through the system compiler.
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'
6623 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
6627 + # PIC is the default on this platform
6628 + # Common symbols not allowed in MH_DYLIB files
6629 + case $cc_basename in
6631 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
6632 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
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'
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.
6652 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
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'
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'
6666 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
6667 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6671 + case $cc_basename in
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'
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'
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'
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'
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 ';;
6705 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
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'
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'
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'
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'
6735 + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
6736 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
6740 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
6741 + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
6745 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
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
6761 + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
6763 + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6764 + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
6767 + # For platforms which do not support PIC, -DPIC is meaningless:
6769 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
6772 + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
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,
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'
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'
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'
6806 + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
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'
6812 + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
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])
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
6864 + # we just hope/assume this is gcc and not c89 (= MSVC++)
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
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'
6887 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
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 ;;
6898 + # See if GNU ld supports shared libraries.
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
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.
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
6927 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
6937 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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;
6957 + echo EXPORTS > $output_objdir/$soname.def;
6958 + cat $export_symbols >> $output_objdir/$soname.def;
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'
6962 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
6982 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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'
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' ;;
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'
7008 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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'
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'
7023 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7024 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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.
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'
7039 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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.
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'
7064 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7071 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7073 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
7074 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
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'
7082 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
7087 + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
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)=
7094 + # PORTME fill in a description of your system's linker (not GNU ld)
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
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'
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'
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'
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
7140 + exp_sym_flag='-bexport'
7141 + no_entry_flag='-bnoentry'
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
7163 + # We have reworked collect2
7164 + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
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)=
7177 + shared_flag='-shared'
7178 + if test "$aix_use_runtimelinking" = yes; then
7179 + shared_flag="$shared_flag "'${wl}-G'
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:
7188 + if test "$aix_use_runtimelinking" = yes; then
7189 + shared_flag='${wl}-G'
7191 + shared_flag='${wl}-bM:SRE'
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"
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"
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'
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
7238 + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
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.
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
7262 + darwin* | rhapsody*)
7264 + rhapsody* | darwin1.[[012]])
7265 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
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'
7271 + case ${MACOSX_DEPLOYMENT_TARGET} in
7273 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7276 + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
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}'
7296 + case $cc_basename in
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}'
7306 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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
7319 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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
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
7333 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
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
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
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'
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'
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'
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'
7369 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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
7385 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7388 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7391 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
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'
7400 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7403 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7406 + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
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)=:
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
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
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'
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'
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
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
7448 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
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
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
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'
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'
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'
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'
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'
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'
7501 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
7502 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
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'
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'
7519 + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
7523 + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
7524 + if test "$GCC" = yes; then
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'
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'
7535 + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7536 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
7538 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
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?)
7547 + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
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' ;;
7552 + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
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'
7561 + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
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
7570 + case $host_vendor in
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???
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
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
7587 + runpath_var='LD_RUN_PATH'
7588 + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
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'
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
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'
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'
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
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'
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'
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
7655 + _LT_AC_TAGVAR(ld_shlibs, $1)=no
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
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
7674 + # FIXME: we may have to deal with multi-command sequences.
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])
7682 + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7684 + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
7687 + libobjs=conftest.$ac_objext
7689 + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
7690 + pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
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)
7700 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
7702 + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
7704 + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
7706 + cat conftest.err 1>&5
7709 + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
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__
7734 +# #ifdef __cplusplus
7737 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7738 +# #ifdef __cplusplus
7742 +# #ifdef __CYGWIN__
7743 +# #include <cygwin/cygwin_dll.h>
7744 +# DECLARE_CYGWIN_DLL( DllMain );
7746 +# HINSTANCE __hDllInstance_base;
7749 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7751 +# __hDllInstance_base = hInst;
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])])
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. #
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
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"
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
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
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
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.
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])
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.]])
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.
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
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
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
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`
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
8030 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
8071 + rm -rf conftest.dir
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])
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
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.
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")`
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
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"
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.
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'
8221 +AC_SUBST([CYGPATH_W])
8223 +# Define the identity of the package.
8224 +dnl Distinguish between old-style and new-style calls.
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)
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
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.
8279 +for _am_header in $config_headers :; do
8280 + case $_am_header in
8284 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
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.
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
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.
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.
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'
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])
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
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
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.
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"}
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 "
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.
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
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
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
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 --'
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
8490 + for d in ./-p ./--version;
8492 + test -d $d && rmdir $d
8494 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
8495 + if test -f "$ac_aux_dir/mkinstalldirs"; then
8496 + mkdir_p='$(mkinstalldirs)'
8498 + mkdir_p='$(install_sh) -d'
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.
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.
8549 +AC_DEFUN([AM_SANITY_CHECK],
8550 +[AC_MSG_CHECKING([whether build environment is sane])
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
8560 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
8561 + if test "$[*]" = "X"; then
8563 + set X `ls -t $srcdir/configure conftest.file`
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])
8577 + test "$[2]" = conftest.file
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.
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
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])
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
8656 + for _am_tar in tar gnutar gtar;
8658 + AM_RUN_LOG([$_am_tar --version]) && break
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 -"
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 -'
8673 + am__tar='pax -L -x $1 -w "$$tardir"'
8674 + am__tar_='pax -L -x $1 -w "$tardir"'
8675 + am__untar='pax -r'
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'
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
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])
8712 diff --git a/autogen.sh b/autogen.sh
8713 new file mode 100755
8714 index 0000000..56f0596
8721 +libtoolize --force --copy
8724 +automake --foreign --add-missing --force-missing --copy
8727 diff --git a/config.guess b/config.guess
8728 deleted file mode 100755
8729 index 413ed41..0000000
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
8787 - if test $UNAME_RELEASE = "V4.0"; then
8788 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
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
8798 - .frame \$30,0,\$26,0
8800 - .long 0x47e03d80 # implver $0
8802 - .long 0x47e20c21 # amask $2,$1
8811 - ${CC-cc} dummy.s -o dummy 2>/dev/null
8812 - if test "$?" = 0 ; then
8816 - UNAME_MACHINE="alpha"
8819 - UNAME_MACHINE="alphaev5"
8822 - UNAME_MACHINE="alphaev56"
8825 - UNAME_MACHINE="alphapca56"
8828 - UNAME_MACHINE="alphaev6"
8832 - rm -f dummy.s dummy
8833 - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
8835 - 21064:Windows_NT:50:3)
8836 - echo alpha-dec-winnt3.5
8838 - Amiga*:UNIX_System_V:4.0:*)
8839 - echo m68k-cbm-sysv4
8842 - echo m68k-cbm-netbsd${UNAME_RELEASE}
8844 - amiga:OpenBSD:*:*)
8845 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8847 - arc64:OpenBSD:*:*)
8848 - echo mips64el-unknown-openbsd${UNAME_RELEASE}
8851 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8853 - hkmips:OpenBSD:*:*)
8854 - echo mips-unknown-openbsd${UNAME_RELEASE}
8857 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8860 - echo mips-unknown-openbsd${UNAME_RELEASE}
8862 - wgrisc:OpenBSD:*:*)
8863 - echo mipsel-unknown-openbsd${UNAME_RELEASE}
8865 - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
8866 - echo arm-acorn-riscix${UNAME_RELEASE}
8869 - echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
8871 - SR2?01:HI-UX/MPP:*:*)
8872 - echo hppa1.1-hitachi-hiuxmpp
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
8879 - echo pyramid-pyramid-bsd
8883 - echo pyramid-pyramid-svr4
8885 - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
8886 - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8888 - i86pc:SunOS:5.*:*)
8889 - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
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/[^.]*//'`
8898 - case "`/usr/bin/arch -k`" in
8900 - UNAME_RELEASE=`uname -v`
8903 - # Japanese Language versions have a version number like `4.1.3-JL'.
8904 - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
8907 - echo m68k-sun-sunos${UNAME_RELEASE}
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
8914 - echo m68k-sun-sunos${UNAME_RELEASE}
8917 - echo sparc-sun-sunos${UNAME_RELEASE}
8922 - echo sparc-auspex-sunos${UNAME_RELEASE}
8924 - atari*:NetBSD:*:*)
8925 - echo m68k-atari-netbsd${UNAME_RELEASE}
8927 - atari*:OpenBSD:*:*)
8928 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8931 - echo m68k-sun-netbsd${UNAME_RELEASE}
8933 - sun3*:OpenBSD:*:*)
8934 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8936 - mac68k:NetBSD:*:*)
8937 - echo m68k-apple-netbsd${UNAME_RELEASE}
8939 - mac68k:OpenBSD:*:*)
8940 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8942 - mvme68k:OpenBSD:*:*)
8943 - echo m68k-unknown-openbsd${UNAME_RELEASE}
8945 - mvme88k:OpenBSD:*:*)
8946 - echo m88k-unknown-openbsd${UNAME_RELEASE}
8948 - powerpc:machten:*:*)
8949 - echo powerpc-apple-machten${UNAME_RELEASE}
8952 - echo mips-dec-mach_bsd4.3
8955 - echo mips-dec-ultrix${UNAME_RELEASE}
8958 - echo vax-dec-ultrix${UNAME_RELEASE}
8961 - echo clipper-intergraph-clix${UNAME_RELEASE}
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);
8970 - #if defined (SYSTYPE_SVR4)
8971 - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
8973 - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
8974 - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
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}
8986 - Night_Hawk:Power_UNIX:*:*)
8987 - echo powerpc-harris-powerunix
8990 - echo m88k-harris-cxux7
8993 - echo m88k-motorola-sysv4
8996 - echo m88k-motorola-sysv3
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}
9006 - echo m88k-dg-dguxbcs${UNAME_RELEASE}
9008 - else echo i586-dg-dgux${UNAME_RELEASE}
9011 - M88*:DolphinOS:*:*) # DolphinOS (SVR3)
9012 - echo m88k-dolphin-sysv3
9015 - # Delta 88k system running SVR3
9016 - echo m88k-motorola-sysv3
9018 - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
9019 - echo m88k-tektronix-sysv3
9021 - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
9022 - echo m68k-tektronix-bsd
9025 - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
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 '
9034 - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
9035 - sed 's/^ //' << EOF >dummy.c
9036 - #include <sys/systemcfg.h>
9040 - if (!__power_pc())
9042 - puts("powerpc-ibm-aix3.2.5");
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
9052 - echo rs6000-ibm-aix3.2
9056 - if /usr/sbin/lsattr -EHl proc0 | grep POWER >/dev/null 2>&1; then
9061 - if [ -x /usr/bin/oslevel ] ; then
9062 - IBM_REV=`/usr/bin/oslevel`
9064 - IBM_REV=4.${UNAME_RELEASE}
9066 - echo ${IBM_ARCH}-ibm-aix${IBM_REV}
9069 - echo rs6000-ibm-aix
9071 - ibmrt:4.4BSD:*|romp-ibm:BSD:*)
9072 - echo romp-ibm-bsd4.4
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
9078 - echo rs6000-bull-bosx
9080 - DPX/2?00:B.O.S.:*:*)
9081 - echo m68k-bull-sysv3
9083 - 9000/[34]??:4.3bsd:1.*:*)
9086 - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
9087 - echo m68k-hp-bsd4.4
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 ;;
9096 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
9097 - echo ${HP_ARCH}-hp-hpux${HPUX_REV}
9100 - sed 's/^ //' << EOF >dummy.c
9101 - #include <unistd.h>
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))
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");
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
9129 - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
9130 - echo hppa1.1-hp-bsd
9132 - 9000/8??:4.3bsd:*:*)
9133 - echo hppa1.0-hp-bsd
9135 - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
9136 - echo hppa1.1-hp-osf
9139 - echo hppa1.0-hp-osf
9142 - if [ -x /usr/sbin/sysversion ] ; then
9143 - echo ${UNAME_MACHINE}-unknown-osf1mk
9145 - echo ${UNAME_MACHINE}-unknown-osf1
9148 - parisc*:Lites*:*:*)
9149 - echo hppa1.1-hp-lites
9151 - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
9152 - echo c1-convex-bsd
9154 - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
9155 - if getsysinfo -f scalar_acc
9156 - then echo c32-convex-bsd
9157 - else echo c2-convex-bsd
9160 - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
9161 - echo c34-convex-bsd
9163 - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
9164 - echo c38-convex-bsd
9166 - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
9167 - echo c4-convex-bsd
9170 - echo xmp-cray-unicos
9173 - echo ymp-cray-unicos${UNAME_RELEASE}
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/
9181 - echo t90-cray-unicos${UNAME_RELEASE}
9184 - echo cray2-cray-unicos
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}"
9191 - F301:UNIX_System_V:*:*)
9192 - echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
9194 - hp3[0-9][05]:NetBSD:*:*)
9195 - echo m68k-hp-netbsd${UNAME_RELEASE}
9197 - hp300:OpenBSD:*:*)
9198 - echo m68k-unknown-openbsd${UNAME_RELEASE}
9200 - i?86:BSD/386:*:* | *:BSD/OS:*:*)
9201 - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
9204 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
9207 - echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9210 - echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
9213 - echo i386-pc-cygwin32
9216 - echo i386-pc-mingw32
9219 - echo powerpcle-unknown-cygwin32
9221 - prep*:SunOS:5.*:*)
9222 - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
9225 - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
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
9234 - s/.*supported emulations: *//
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 ;;
9245 - if test "${UNAME_MACHINE}" = "alpha" ; then
9246 - sed 's/^ //' <<EOF >dummy.s
9250 - .frame \$30,0,\$26,0
9252 - .long 0x47e03d80 # implver $0
9254 - .long 0x47e20c21 # amask $2,$1
9264 - ${CC-cc} dummy.s -o dummy 2>/dev/null
9265 - if test "$?" = 0 ; then
9269 - UNAME_MACHINE="alpha"
9272 - UNAME_MACHINE="alphaev5"
9275 - UNAME_MACHINE="alphaev56"
9278 - UNAME_MACHINE="alphapca56"
9281 - UNAME_MACHINE="alphaev6"
9285 - objdump --private-headers dummy | \
9286 - grep ld.so.1 > /dev/null
9287 - if test "$?" = 0 ; then
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
9300 - printf ("%s-unknown-linux-gnu\n", argv[1]);
9303 - printf ("%sel-unknown-linux-gnu\n", argv[1]);
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
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
9327 - # Determine whether the default compiler is a.out or elf
9328 - cat >dummy.c <<EOF
9329 -#include <features.h>
9336 -# if __GLIBC__ >= 2
9337 - printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
9339 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
9342 - printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
9345 - printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
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
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
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}
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}
9370 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
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
9384 - echo ${UNAME_MACHINE}-pc-sysv32
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
9393 - echo i386-pc-mach3
9396 - echo i860-intel-osf1
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
9405 - mini*:CTIX:SYS*5:*)
9407 - echo m68010-convergent-sysv
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)
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}
9425 - mc68030:UNIX_System_V:4.*:*)
9426 - echo m68k-atari-sysv4
9428 - i?86:LynxOS:2.*:*)
9429 - echo i386-unknown-lynxos${UNAME_RELEASE}
9431 - TSUNAMI:LynxOS:2.*:*)
9432 - echo sparc-unknown-lynxos${UNAME_RELEASE}
9434 - rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
9435 - echo rs6000-unknown-lynxos${UNAME_RELEASE}
9437 - SM[BE]S:UNIX_SV:*:*)
9438 - echo mips-dde-sysv${UNAME_RELEASE}
9441 - echo mips-sni-sysv4
9444 - if uname -p 2>/dev/null >/dev/null ; then
9445 - UNAME_MACHINE=`(uname -p) 2>/dev/null`
9446 - echo ${UNAME_MACHINE}-sni-sysv4
9448 - echo ns32k-sni-sysv
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
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
9461 - # From seanf@swdc.stratus.com.
9462 - echo i860-stratus-sysv4
9465 - echo m68k-apple-aux${UNAME_RELEASE}
9467 - news*:NEWS-OS:*:6*)
9468 - echo mips-sony-newsos6
9470 - R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:*)
9471 - if [ -d /usr/nec ]; then
9472 - echo mips-nec-sysv${UNAME_RELEASE}
9474 - echo mips-unknown-sysv${UNAME_RELEASE}
9479 -#echo '(No uname command or uname output not recognized.)' 1>&2
9480 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
9484 -# include <sys/types.h>
9485 -# include <sys/utsname.h>
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);
9495 -#include <sys/param.h>
9496 - printf ("m68k-sony-newsos%s\n",
9506 -#if defined (__arm) && defined (__acorn) && defined (__unix)
9507 - printf ("arm-acorn-riscix"); exit (0);
9510 -#if defined (hp300) && !defined (hpux)
9511 - printf ("m68k-hp-bsd\n"); exit (0);
9515 -#if !defined (__ARCHITECTURE__)
9516 -#define __ARCHITECTURE__ "m68k"
9519 - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
9520 - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
9524 -#if defined (MULTIMAX) || defined (n16)
9525 -#if defined (UMAXV)
9526 - printf ("ns32k-encore-sysv\n"); exit (0);
9529 - printf ("ns32k-encore-mach\n"); exit (0);
9531 - printf ("ns32k-encore-bsd\n"); exit (0);
9536 -#if defined (__386BSD__)
9537 - printf ("i386-pc-bsd\n"); exit (0);
9540 -#if defined (sequent)
9542 - printf ("i386-sequent-dynix\n"); exit (0);
9544 -#if defined (ns32000)
9545 - printf ("ns32k-sequent-dynix\n"); exit (0);
9549 -#if defined (_SEQUENT_)
9550 - struct utsname 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);
9565 -#if !defined (ultrix)
9566 - printf ("vax-dec-bsd\n"); exit (0);
9568 - printf ("vax-dec-ultrix\n"); exit (0);
9572 -#if defined (alliant) && defined (i860)
9573 - printf ("i860-alliant-bsd\n"); exit (0);
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 ]
9591 - case `getsysinfo -f cpu_type` in
9593 - echo c1-convex-bsd
9596 - if getsysinfo -f scalar_acc
9597 - then echo c32-convex-bsd
9598 - else echo c2-convex-bsd
9602 - echo c34-convex-bsd
9605 - echo c38-convex-bsd
9608 - echo c4-convex-bsd
9613 -#echo '(Unable to guess system type)' 1>&2
9616 diff --git a/config.sub b/config.sub
9617 deleted file mode 100755
9618 index 213a6d4..0000000
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
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.
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
9678 -# First pass through any local machine types.
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/'`
9694 - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
9697 - basic_machine=`echo $1 | sed 's/-[^-]*$//'`
9698 - if [ $basic_machine != $1 ]
9699 - then os=`echo $1 | sed 's/.*-/-/'`
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.
9710 - # Prevent following clause from handling this invalid input.
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 | \
9727 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9731 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9734 - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
9735 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9738 - # Don't forget version if it is 3.2v4 or newer.
9739 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9743 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9747 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9750 - basic_machine=clipper-intergraph
9753 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
9759 - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
9762 - os=`echo $os | sed -e 's/windowsnt/winnt/'`
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
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.
9787 - basic_machine=$basic_machine-pc
9789 - # Object if more than one company name word.
9791 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
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-* \
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
9814 - basic_machine=we32k-att
9817 - basic_machine=fx80-alliant
9819 - altos | altos3068)
9820 - basic_machine=m68k-altos
9823 - basic_machine=a29k-none
9827 - basic_machine=580-amdahl
9831 - basic_machine=m68k-cbm
9833 - amigaos | amigados)
9834 - basic_machine=m68k-cbm
9838 - basic_machine=m68k-cbm
9842 - basic_machine=m68k-apollo
9846 - basic_machine=m68k-apple
9850 - basic_machine=ns32k-sequent
9854 - basic_machine=c1-convex
9858 - basic_machine=c2-convex
9862 - basic_machine=c32-convex
9866 - basic_machine=c34-convex
9870 - basic_machine=c38-convex
9874 - basic_machine=ymp-cray
9878 - basic_machine=cray2-cray
9882 - basic_machine=c90-cray
9886 - basic_machine=m68k-crds
9889 - basic_machine=m68k-da30
9891 - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
9892 - basic_machine=mips-dec
9894 - delta | 3300 | motorola-3300 | motorola-delta \
9895 - | 3300-motorola | delta-motorola)
9896 - basic_machine=m68k-motorola
9899 - basic_machine=m88k-motorola
9903 - basic_machine=rs6000-bull
9906 - dpx2* | dpx2*-bull)
9907 - basic_machine=m68k-bull
9911 - basic_machine=a29k-amd
9915 - basic_machine=elxsi-elxsi
9918 - encore | umax | mmax)
9919 - basic_machine=ns32k-encore
9922 - basic_machine=i860-alliant
9925 - basic_machine=ns32k-ns
9928 - basic_machine=tron-gmicro
9932 - basic_machine=hppa1.1-hitachi
9936 - basic_machine=h8300-hitachi
9940 - basic_machine=m88k-harris
9944 - basic_machine=m68k-hp
9947 - basic_machine=m68k-hp
9951 - basic_machine=m68k-hp
9954 - hp9k2[0-9][0-9] | hp9k31[0-9])
9955 - basic_machine=m68000-hp
9958 - basic_machine=m68k-hp
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
9963 - hp9k8[0-9][0-9] | hp8[0-9][0-9])
9964 - basic_machine=hppa1.0-hp
9970 - basic_machine=i370-ibm
9973 -# I'm not sure what "Sysv32" means. Should this be sysv3.2?
9975 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9979 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9983 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9987 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
9991 - basic_machine=mips-sgi
10001 - basic_machine=m68k-isi
10005 - basic_machine=m88k-omron
10008 - basic_machine=mips-mips
10012 - basic_machine=ns32k-utek
10016 - basic_machine=m68000-convergent
10019 - basic_machine=mipsel-unknown
10023 - basic_machine=mips-unknown
10027 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
10030 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
10033 - basic_machine=i486-ncr
10036 - news | news700 | news800 | news900)
10037 - basic_machine=m68k-sony
10041 - basic_machine=m68030-sony
10044 - news-3600 | risc-news)
10045 - basic_machine=mips-sony
10049 - basic_machine=m68k-next
10062 - basic_machine=m68k-harris
10066 - basic_machine=m88k-harris
10070 - basic_machine=i960-intel
10074 - basic_machine=np1-gould
10077 - basic_machine=hppa1.1-hitachi
10081 - basic_machine=i860-intel
10085 - basic_machine=sparc-tti
10088 - basic_machine=m68k-tti
10091 - basic_machine=ns32k-pc532
10094 - basic_machine=i586-intel
10097 - basic_machine=i686-intel
10099 - pentium-* | p5-*)
10100 - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
10102 - pentiumpro-* | p6-*)
10103 - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
10106 - # We don't have specific support for AMD's K5 yet, so just call it a Pentium
10107 - basic_machine=i586-amd
10110 - # We don't have specific support for Nexgen yet, so just call it a Pentium
10111 - basic_machine=i586-nexgen
10114 - basic_machine=pn-gould
10116 - power) basic_machine=rs6000-ibm
10118 - ppc) basic_machine=powerpc-unknown
10120 - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
10122 - ppcle | powerpclittle | ppc-le | powerpc-little)
10123 - basic_machine=powerpcle-unknown
10125 - ppcle-* | powerpclittle-*)
10126 - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
10129 - basic_machine=i386-ibm
10132 - basic_machine=mips-siemens
10135 - basic_machine=romp-ibm
10138 - basic_machine=i386-sequent
10141 - basic_machine=sh-hitachi
10145 - basic_machine=m68k-bull
10149 - basic_machine=spur-unknown
10152 - basic_machine=m68000-sun
10155 - basic_machine=m68000-sun
10159 - basic_machine=m68000-sun
10163 - basic_machine=m68k-sun
10167 - basic_machine=m68k-sun
10171 - basic_machine=sparc-sun
10175 - basic_machine=sparc-sun
10179 - basic_machine=sparc-sun
10183 - basic_machine=m68k-sun
10186 - basic_machine=sparc-sun
10188 - sun386 | sun386i | roadrunner)
10189 - basic_machine=i386-sun
10192 - basic_machine=i386-sequent
10196 - basic_machine=mipstx39-unknown
10199 - basic_machine=mipstx39el-unknown
10201 - tower | tower-32)
10202 - basic_machine=m68k-ncr
10205 - basic_machine=a29k-amd
10209 - basic_machine=a29k-nyu
10213 - basic_machine=vax-dec
10217 - basic_machine=vax-dec
10221 - basic_machine=f301-fujitsu
10224 - basic_machine=i960-wrs
10228 - basic_machine=m68k-wrs
10232 - basic_machine=a29k-wrs
10236 - basic_machine=xmp-cray
10240 - basic_machine=xps100-honeywell
10243 - basic_machine=none-none
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.
10250 - if [ x$os = x-linux-gnu ]; then
10251 - basic_machine=mips-unknown
10253 - basic_machine=mips-mips
10257 - basic_machine=romp-ibm
10260 - basic_machine=rs6000-ibm
10263 - basic_machine=vax-dec
10266 - basic_machine=pdp11-dec
10269 - basic_machine=we32k-att
10272 - basic_machine=sparc-sun
10275 - basic_machine=cydra-cydrome
10278 - basic_machine=orion-highlevel
10281 - basic_machine=clipper-highlevel
10284 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
10289 -# Here we canonicalize certain aliases for manufacturers.
10290 -case $basic_machine in
10292 - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
10295 - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
10301 -# Decode manufacturer-specific aliases for certain operating systems.
10303 -if [ x"$os" != x"" ]
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|'`
10322 - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
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* \
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.
10344 - os=`echo $os | sed -e 's|linux|linux-gnu|'`
10347 - os=`echo $os | sed -e 's|sunos5|solaris2|'`
10350 - os=`echo $os | sed -e 's|sunos6|solaris3|'`
10373 - # Preserve the version number of sinix5.
10375 - os=`echo $os | sed -e 's|sinix|sysv|'`
10395 - # This must come after -sysvr4.
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
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
10443 - # This also exists in the configure program, but was not the
10447 - *-tti) # must be before sparc entry or we get the wrong os.
10462 - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
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.
10528 -case $basic_machine in
10564 - -vxsim* | -vxworks*)
10571 - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
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
10580 +++ b/config/config.guess
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,.*/,,'`
10624 +Usage: $0 [OPTION]
10626 +Output the configuration name of the system \`$me' is run on.
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>."
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."
10646 +Try \`$me --help' for more information."
10648 +# Parse command line
10649 +while test $# -gt 0 ; do
10651 + --time-stamp | --time* | -t )
10652 + echo "$timestamp" ; exit ;;
10654 + echo "$version" ; exit ;;
10655 + --help | --h* | -h )
10656 + echo "$usage"; exit ;;
10657 + -- ) # Stop option processing
10659 + - ) # Use stdin as input.
10662 + echo "$me: invalid option $1$help" >&2
10669 +if test $# != 0; then
10670 + echo "$me: too many arguments$help" >&2
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 ;
10703 + if test x"$CC_FOR_BUILD" = x ; then
10704 + CC_FOR_BUILD=no_compiler_found ;
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
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 ;;
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
10754 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
10755 + # Return netbsd for either. FIX?
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
10775 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
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}"
10784 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
10785 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
10788 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
10790 + macppc:MirBSD:*:*)
10791 + echo powerppc-unknown-mirbsd${UNAME_RELEASE}
10794 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
10797 + case $UNAME_RELEASE in
10799 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
10802 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
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
10812 + UNAME_MACHINE="alpha" ;;
10814 + UNAME_MACHINE="alpha" ;;
10815 + "LCA4 (21066/21068)")
10816 + UNAME_MACHINE="alpha" ;;
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" ;;
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" ;;
10838 + UNAME_MACHINE="alphaev7" ;;
10839 + "EV7.9 (21364A)")
10840 + UNAME_MACHINE="alphaev79" ;;
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'`
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
10855 + 21064:Windows_NT:50:3)
10856 + echo alpha-dec-winnt3.5
10858 + Amiga*:UNIX_System_V:4.0:*)
10859 + echo m68k-unknown-sysv4
10861 + *:[Aa]miga[Oo][Ss]:*:*)
10862 + echo ${UNAME_MACHINE}-unknown-amigaos
10864 + *:[Mm]orph[Oo][Ss]:*:*)
10865 + echo ${UNAME_MACHINE}-unknown-morphos
10868 + echo i370-ibm-openedition
10871 + echo s390-ibm-zvmoe
10874 + echo powerpc-ibm-os400
10876 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
10877 + echo arm-acorn-riscix${UNAME_RELEASE}
10879 + arm:riscos:*:*|arm:RISCOS:*:*)
10880 + echo arm-unknown-riscos
10882 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
10883 + echo hppa1.1-hitachi-hiuxmpp
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
10890 + echo pyramid-pyramid-bsd
10894 + echo pyramid-pyramid-svr4
10896 + DRS?6000:unix:4.0:6*)
10897 + echo sparc-icl-nx6
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 ;;
10903 + sun4H:SunOS:5.*:*)
10904 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
10906 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
10907 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
10909 + i86pc:SunOS:5.*:*)
10910 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
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/[^.]*//'`
10919 + case "`/usr/bin/arch -k`" in
10921 + UNAME_RELEASE=`uname -v`
10924 + # Japanese Language versions have a version number like `4.1.3-JL'.
10925 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
10928 + echo m68k-sun-sunos${UNAME_RELEASE}
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
10935 + echo m68k-sun-sunos${UNAME_RELEASE}
10938 + echo sparc-sun-sunos${UNAME_RELEASE}
10943 + echo sparc-auspex-sunos${UNAME_RELEASE}
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
10953 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
10954 + echo m68k-atari-mint${UNAME_RELEASE}
10956 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
10957 + echo m68k-atari-mint${UNAME_RELEASE}
10959 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
10960 + echo m68k-atari-mint${UNAME_RELEASE}
10962 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
10963 + echo m68k-milan-mint${UNAME_RELEASE}
10965 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
10966 + echo m68k-hades-mint${UNAME_RELEASE}
10968 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
10969 + echo m68k-unknown-mint${UNAME_RELEASE}
10971 + m68k:machten:*:*)
10972 + echo m68k-apple-machten${UNAME_RELEASE}
10974 + powerpc:machten:*:*)
10975 + echo powerpc-apple-machten${UNAME_RELEASE}
10978 + echo mips-dec-mach_bsd4.3
10980 + RISC*:ULTRIX:*:*)
10981 + echo mips-dec-ultrix${UNAME_RELEASE}
10983 + VAX*:ULTRIX*:*:*)
10984 + echo vax-dec-ultrix${UNAME_RELEASE}
10986 + 2020:CLIX:*:* | 2430:CLIX:*:*)
10987 + echo clipper-intergraph-clix${UNAME_RELEASE}
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[]) {
10996 + int main (argc, argv) int argc; char *argv[]; {
10998 + #if defined (host_mips) && defined (MIPSEB)
10999 + #if defined (SYSTYPE_SYSV)
11000 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
11002 + #if defined (SYSTYPE_SVR4)
11003 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
11005 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
11006 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
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}
11018 + Motorola:PowerMAX_OS:*:*)
11019 + echo powerpc-motorola-powermax
11021 + Motorola:*:4.3:PL8-*)
11022 + echo powerpc-harris-powermax
11024 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
11025 + echo powerpc-harris-powermax
11027 + Night_Hawk:Power_UNIX:*:*)
11028 + echo powerpc-harris-powerunix
11031 + echo m88k-harris-cxux7
11034 + echo m88k-motorola-sysv4
11037 + echo m88k-motorola-sysv3
11040 + # DG/UX returns AViiON for all architectures
11041 + UNAME_PROCESSOR=`/usr/bin/uname -p`
11042 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
11044 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
11045 + [ ${TARGET_BINARY_INTERFACE}x = x ]
11047 + echo m88k-dg-dgux${UNAME_RELEASE}
11049 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
11052 + echo i586-dg-dgux${UNAME_RELEASE}
11055 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
11056 + echo m88k-dolphin-sysv3
11059 + # Delta 88k system running SVR3
11060 + echo m88k-motorola-sysv3
11062 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
11063 + echo m88k-tektronix-sysv3
11065 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
11066 + echo m68k-tektronix-bsd
11069 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
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 '
11075 + echo i386-ibm-aix
11078 + if [ -x /usr/bin/oslevel ] ; then
11079 + IBM_REV=`/usr/bin/oslevel`
11081 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
11083 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
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>
11093 + if (!__power_pc())
11095 + puts("powerpc-ibm-aix3.2.5");
11099 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
11101 + echo "$SYSTEM_NAME"
11103 + echo rs6000-ibm-aix3.2.5
11105 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
11106 + echo rs6000-ibm-aix3.2.4
11108 + echo rs6000-ibm-aix3.2
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
11118 + if [ -x /usr/bin/oslevel ] ; then
11119 + IBM_REV=`/usr/bin/oslevel`
11121 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
11123 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
11126 + echo rs6000-ibm-aix
11128 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
11129 + echo romp-ibm-bsd4.4
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
11135 + echo rs6000-bull-bosx
11137 + DPX/2?00:B.O.S.:*:*)
11138 + echo m68k-bull-sysv3
11140 + 9000/[34]??:4.3bsd:1.*:*)
11143 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
11144 + echo m68k-hp-bsd4.4
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
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>
11176 + #if defined(_SC_KERNEL_BITS)
11177 + long bits = sysconf(_SC_KERNEL_BITS);
11179 + long cpu = sysconf (_SC_CPU_VERSION);
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)
11189 + case 64: puts ("hppa2.0w"); break;
11190 + case 32: puts ("hppa2.0n"); break;
11191 + default: puts ("hppa2.0"); break;
11193 + #else /* !defined(_SC_KERNEL_BITS) */
11194 + puts ("hppa2.0"); break;
11196 + default: puts ("hppa1.0"); break;
11201 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
11202 + test -z "$HP_ARCH" && HP_ARCH=hppa
11205 + if [ ${HP_ARCH} = "hppa2.0w" ]
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
11221 + HP_ARCH="hppa2.0w"
11226 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
11229 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
11230 + echo ia64-hp-hpux${HPUX_REV}
11233 + eval $set_cc_for_build
11234 + sed 's/^ //' << EOF >$dummy.c
11235 + #include <unistd.h>
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))
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");
11259 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
11260 + { echo "$SYSTEM_NAME"; exit; }
11261 + echo unknown-hitachi-hiuxwe2
11263 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
11264 + echo hppa1.1-hp-bsd
11266 + 9000/8??:4.3bsd:*:*)
11267 + echo hppa1.0-hp-bsd
11269 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
11270 + echo hppa1.0-hp-mpeix
11272 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
11273 + echo hppa1.1-hp-osf
11276 + echo hppa1.0-hp-osf
11279 + if [ -x /usr/sbin/sysversion ] ; then
11280 + echo ${UNAME_MACHINE}-unknown-osf1mk
11282 + echo ${UNAME_MACHINE}-unknown-osf1
11285 + parisc*:Lites*:*:*)
11286 + echo hppa1.1-hp-lites
11288 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
11289 + echo c1-convex-bsd
11291 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
11292 + if getsysinfo -f scalar_acc
11293 + then echo c32-convex-bsd
11294 + else echo c2-convex-bsd
11297 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
11298 + echo c34-convex-bsd
11300 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
11301 + echo c38-convex-bsd
11303 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
11304 + echo c4-convex-bsd
11307 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
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/'
11316 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11319 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11322 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
11325 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
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}"
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}"
11338 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
11339 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
11341 + sparc*:BSD/OS:*:*)
11342 + echo sparc-unknown-bsdi${UNAME_RELEASE}
11345 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
11348 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
11351 + echo ${UNAME_MACHINE}-pc-cygwin
11354 + echo ${UNAME_MACHINE}-pc-mingw32
11357 + # uname -m includes "-pc" on this system.
11358 + echo ${UNAME_MACHINE}-mingw32
11361 + echo ${UNAME_MACHINE}-pc-pw32
11363 + x86:Interix*:[34]*)
11364 + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
11366 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
11367 + echo i${UNAME_MACHINE}-pc-mks
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
11376 + echo ${UNAME_MACHINE}-pc-uwin
11378 + amd64:CYGWIN*:*:*)
11379 + echo x86_64-unknown-cygwin
11382 + echo powerpcle-unknown-cygwin
11384 + prep*:SunOS:5.*:*)
11385 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
11389 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
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
11396 + echo ${UNAME_MACHINE}-pc-minix
11399 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11402 + echo cris-axis-linux-gnu
11404 + crisv32:Linux:*:*)
11405 + echo crisv32-axis-linux-gnu
11408 + echo frv-unknown-linux-gnu
11411 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11414 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11417 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11420 + eval $set_cc_for_build
11421 + sed 's/^ //' << EOF >$dummy.c
11425 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
11428 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
11435 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
11436 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
11438 + mips64:Linux:*:*)
11439 + eval $set_cc_for_build
11440 + sed 's/^ //' << EOF >$dummy.c
11444 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
11447 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
11454 + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
11455 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
11458 + echo powerpc-unknown-linux-gnu
11461 + echo powerpc64-unknown-linux-gnu
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 ;;
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}
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 ;;
11485 + parisc64:Linux:*:* | hppa64:Linux:*:*)
11486 + echo hppa64-unknown-linux-gnu
11488 + s390:Linux:*:* | s390x:Linux:*:*)
11489 + echo ${UNAME_MACHINE}-ibm-linux
11492 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11495 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11497 + sparc:Linux:*:* | sparc64:Linux:*:*)
11498 + echo ${UNAME_MACHINE}-unknown-linux-gnu
11500 + x86_64:Linux:*:*)
11501 + echo x86_64-unknown-linux-gnu
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
11511 + s/.*supported targets: *//
11514 + case "$ld_supported_targets" in
11516 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
11518 + a.out-i386-linux)
11519 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
11522 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"
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"
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>
11535 + # ifdef __GLIBC__
11536 + # if __GLIBC__ >= 2
11545 + #ifdef __INTEL_COMPILER
11551 + #ifdef __dietlibc__
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}"
11560 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
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
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}
11577 + # If we were able to find `uname', then EMX Unix compatibility
11578 + # is probably installed.
11579 + echo ${UNAME_MACHINE}-pc-os2-emx
11581 + i*86:XTS-300:*:STOP)
11582 + echo ${UNAME_MACHINE}-unknown-stop
11585 + echo ${UNAME_MACHINE}-unknown-atheos
11587 + i*86:syllable:*:*)
11588 + echo ${UNAME_MACHINE}-pc-syllable
11590 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
11591 + echo i386-unknown-lynxos${UNAME_RELEASE}
11594 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
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}
11601 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
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 ;;
11611 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
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
11628 + echo ${UNAME_MACHINE}-pc-sysv32
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
11638 + echo i386-pc-mach3
11641 + echo i860-intel-osf1
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
11650 + mini*:CTIX:SYS*5:*)
11652 + echo m68010-convergent-sysv
11654 + mc68k:UNIX:SYSTEM5:3.51m)
11655 + echo m68k-convergent-sysv
11657 + M680?0:D-NIX:5.3:*)
11658 + echo m68k-diab-dnix
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)
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}
11676 + mc68030:UNIX_System_V:4.*:*)
11677 + echo m68k-atari-sysv4
11679 + TSUNAMI:LynxOS:2.*:*)
11680 + echo sparc-unknown-lynxos${UNAME_RELEASE}
11682 + rs6000:LynxOS:2.*:*)
11683 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
11685 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
11686 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
11688 + SM[BE]S:UNIX_SV:*:*)
11689 + echo mips-dde-sysv${UNAME_RELEASE}
11691 + RM*:ReliantUNIX-*:*:*)
11692 + echo mips-sni-sysv4
11695 + echo mips-sni-sysv4
11698 + if uname -p 2>/dev/null >/dev/null ; then
11699 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
11700 + echo ${UNAME_MACHINE}-sni-sysv4
11702 + echo ns32k-sni-sysv
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
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
11715 + # From seanf@swdc.stratus.com.
11716 + echo i860-stratus-sysv4
11719 + # From Paul.Green@stratus.com.
11720 + echo ${UNAME_MACHINE}-stratus-vos
11723 + # From Paul.Green@stratus.com.
11724 + echo hppa1.1-stratus-vos
11727 + echo m68k-apple-aux${UNAME_RELEASE}
11729 + news*:NEWS-OS:6*:*)
11730 + echo mips-sony-newsos6
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}
11736 + echo mips-unknown-sysv${UNAME_RELEASE}
11739 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
11740 + echo powerpc-be-beos
11742 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
11743 + echo powerpc-apple-beos
11745 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
11746 + echo i586-pc-beos
11748 + SX-4:SUPER-UX:*:*)
11749 + echo sx4-nec-superux${UNAME_RELEASE}
11751 + SX-5:SUPER-UX:*:*)
11752 + echo sx5-nec-superux${UNAME_RELEASE}
11754 + SX-6:SUPER-UX:*:*)
11755 + echo sx6-nec-superux${UNAME_RELEASE}
11757 + Power*:Rhapsody:*:*)
11758 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
11761 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
11764 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
11765 + case $UNAME_PROCESSOR in
11766 + *86) UNAME_PROCESSOR=i686 ;;
11767 + unknown) UNAME_PROCESSOR=powerpc ;;
11769 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
11771 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
11772 + UNAME_PROCESSOR=`uname -p`
11773 + if test "$UNAME_PROCESSOR" = "x86"; then
11774 + UNAME_PROCESSOR=i386
11777 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
11782 + NSE-?:NONSTOP_KERNEL:*:*)
11783 + echo nse-tandem-nsk${UNAME_RELEASE}
11785 + NSR-?:NONSTOP_KERNEL:*:*)
11786 + echo nsr-tandem-nsk${UNAME_RELEASE}
11788 + *:NonStop-UX:*:*)
11789 + echo mips-compaq-nonstopux
11791 + BS2000:POSIX*:*:*)
11792 + echo bs2000-siemens-sysv
11794 + DS/*:UNIX_System_V:*:*)
11795 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
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
11804 + UNAME_MACHINE="$cputype"
11806 + echo ${UNAME_MACHINE}-unknown-plan9
11809 + echo pdp10-unknown-tops10
11812 + echo pdp10-unknown-tenex
11814 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
11815 + echo pdp10-dec-tops20
11817 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
11818 + echo pdp10-xkl-tops20
11821 + echo pdp10-unknown-tops20
11824 + echo pdp10-unknown-its
11827 + echo mips-sei-seiux${UNAME_RELEASE}
11830 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
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 ;;
11840 + echo i386-pc-xenix
11843 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
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
11853 +# include <sys/types.h>
11854 +# include <sys/utsname.h>
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);
11864 +#include <sys/param.h>
11865 + printf ("m68k-sony-newsos%s\n",
11875 +#if defined (__arm) && defined (__acorn) && defined (__unix)
11876 + printf ("arm-acorn-riscix\n"); exit (0);
11879 +#if defined (hp300) && !defined (hpux)
11880 + printf ("m68k-hp-bsd\n"); exit (0);
11883 +#if defined (NeXT)
11884 +#if !defined (__ARCHITECTURE__)
11885 +#define __ARCHITECTURE__ "m68k"
11888 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
11890 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
11892 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
11896 +#if defined (MULTIMAX) || defined (n16)
11897 +#if defined (UMAXV)
11898 + printf ("ns32k-encore-sysv\n"); exit (0);
11901 + printf ("ns32k-encore-mach\n"); exit (0);
11903 + printf ("ns32k-encore-bsd\n"); exit (0);
11908 +#if defined (__386BSD__)
11909 + printf ("i386-pc-bsd\n"); exit (0);
11912 +#if defined (sequent)
11913 +#if defined (i386)
11914 + printf ("i386-sequent-dynix\n"); exit (0);
11916 +#if defined (ns32000)
11917 + printf ("ns32k-sequent-dynix\n"); exit (0);
11921 +#if defined (_SEQUENT_)
11922 + struct utsname 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);
11937 +# if !defined (ultrix)
11938 +# include <sys/param.h>
11939 +# if defined (BSD)
11941 + printf ("vax-dec-bsd4.3\n"); exit (0);
11943 +# if BSD == 199006
11944 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
11946 + printf ("vax-dec-bsd\n"); exit (0);
11950 + printf ("vax-dec-bsd\n"); exit (0);
11953 + printf ("vax-dec-ultrix\n"); exit (0);
11957 +#if defined (alliant) && defined (i860)
11958 + printf ("i860-alliant-bsd\n"); exit (0);
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 ]
11976 + case `getsysinfo -f cpu_type` in
11978 + echo c1-convex-bsd
11981 + if getsysinfo -f scalar_acc
11982 + then echo c32-convex-bsd
11983 + else echo c2-convex-bsd
11987 + echo c34-convex-bsd
11990 + echo c38-convex-bsd
11993 + echo c4-convex-bsd
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
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}
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: "'"
12045 diff --git a/config/config.sub b/config/config.sub
12046 new file mode 100755
12047 index 0000000..1c366df
12049 +++ b/config/config.sub
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
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,.*/,,'`
12109 +Usage: $0 [OPTION] CPU-MFR-OPSYS
12110 + $0 [OPTION] ALIAS
12112 +Canonicalize a configuration name.
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>."
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."
12131 +Try \`$me --help' for more information."
12133 +# Parse command line
12134 +while test $# -gt 0 ; do
12136 + --time-stamp | --time* | -t )
12137 + echo "$timestamp" ; exit ;;
12139 + echo "$version" ; exit ;;
12140 + --help | --h* | -h )
12141 + echo "$usage"; exit ;;
12142 + -- ) # Stop option processing
12144 + - ) # Use stdin as input.
12147 + echo "$me: invalid option $1$help"
12151 + # First pass through any local machine types.
12161 + 0) echo "$me: missing argument$help" >&2
12164 + *) echo "$me: too many arguments$help" >&2
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/'`
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*)
12175 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
12178 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
12179 + if [ $basic_machine != $1 ]
12180 + then os=`echo $1 | sed 's/.*-/-/'`
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.
12191 + # Prevent following clause from handling this invalid input.
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)
12203 + -sim | -cisco | -oki | -wec | -winbond)
12226 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12230 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12233 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
12234 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12237 + # Don't forget version if it is 3.2v4 or newer.
12238 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12242 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12245 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12249 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12252 + basic_machine=clipper-intergraph
12255 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
12261 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
12264 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
12269 + -mint | -mint[0-9]*)
12270 + basic_machine=m68k-atari
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.
12281 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
12282 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
12284 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
12286 + | c4x | clipper \
12287 + | d10v | d30v | dlx | dsp16xx \
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 \
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 \
12312 + | ns16k | ns32k \
12314 + | pdp10 | pdp11 | pj | pjl \
12315 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
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 \
12322 + | tahoe | thumb | tic4x | tic80 | tron \
12325 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
12327 + basic_machine=$basic_machine-unknown
12330 + basic_machine=$basic_machine-unknown
12332 + m6811 | m68hc11 | m6812 | m68hc12)
12333 + # Motorola 68HC11/12.
12334 + basic_machine=$basic_machine-unknown
12337 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
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.
12344 + basic_machine=$basic_machine-pc
12346 + # Object if more than one company name word.
12348 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
12351 + # Recognize the basic CPU types with company name.
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*-* \
12359 + | bfin-* | bs2000-* \
12360 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
12361 + | clipper-* | craynv-* | cydra-* \
12362 + | d10v-* | d30v-* | dlx-* \
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-* \
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-* \
12391 + | none-* | np1-* | ns16k-* | ns32k-* \
12393 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
12394 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
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-* \
12401 + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
12402 + | tahoe-* | thumb-* \
12403 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
12405 + | v850-* | v850e-* | vax-* \
12407 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
12408 + | xstormy16-* | xtensa-* \
12414 + # Recognize the various machine names and aliases which stand
12415 + # for a CPU type and a company and sometimes even an OS.
12417 + basic_machine=i386-unknown
12420 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
12421 + basic_machine=m68000-att
12424 + basic_machine=we32k-att
12427 + basic_machine=a29k-amd
12431 + basic_machine=abacus-unknown
12434 + basic_machine=m68010-adobe
12438 + basic_machine=fx80-alliant
12440 + altos | altos3068)
12441 + basic_machine=m68k-altos
12444 + basic_machine=a29k-none
12448 + basic_machine=x86_64-pc
12451 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
12454 + basic_machine=580-amdahl
12458 + basic_machine=m68k-unknown
12460 + amigaos | amigados)
12461 + basic_machine=m68k-unknown
12464 + amigaunix | amix)
12465 + basic_machine=m68k-unknown
12469 + basic_machine=m68k-apollo
12473 + basic_machine=m68k-apollo
12477 + basic_machine=m68k-apple
12481 + basic_machine=ns32k-sequent
12485 + basic_machine=c90-cray
12489 + basic_machine=c1-convex
12493 + basic_machine=c2-convex
12497 + basic_machine=c32-convex
12501 + basic_machine=c34-convex
12505 + basic_machine=c38-convex
12509 + basic_machine=j90-cray
12513 + basic_machine=craynv-cray
12517 + basic_machine=cr16c-unknown
12521 + basic_machine=m68k-crds
12523 + crisv32 | crisv32-* | etraxfs*)
12524 + basic_machine=crisv32-axis
12526 + cris | cris-* | etrax*)
12527 + basic_machine=cris-axis
12530 + basic_machine=crx-unknown
12534 + basic_machine=m68k-da30
12536 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
12537 + basic_machine=mips-dec
12539 + decsystem10* | dec10*)
12540 + basic_machine=pdp10-dec
12543 + decsystem20* | dec20*)
12544 + basic_machine=pdp10-dec
12547 + delta | 3300 | motorola-3300 | motorola-delta \
12548 + | 3300-motorola | delta-motorola)
12549 + basic_machine=m68k-motorola
12552 + basic_machine=m88k-motorola
12556 + basic_machine=i586-pc
12560 + basic_machine=rs6000-bull
12563 + dpx2* | dpx2*-bull)
12564 + basic_machine=m68k-bull
12568 + basic_machine=a29k-amd
12572 + basic_machine=elxsi-elxsi
12575 + encore | umax | mmax)
12576 + basic_machine=ns32k-encore
12578 + es1800 | OSE68k | ose68k | ose | OSE)
12579 + basic_machine=m68k-ericsson
12583 + basic_machine=i860-alliant
12586 + basic_machine=ns32k-ns
12589 + basic_machine=tron-gmicro
12593 + basic_machine=i386-pc
12597 + basic_machine=hppa1.1-hitachi
12601 + basic_machine=h8300-hitachi
12605 + basic_machine=h8300-hitachi
12609 + basic_machine=h8500-hitachi
12613 + basic_machine=m88k-harris
12617 + basic_machine=m68k-hp
12620 + basic_machine=m68k-hp
12624 + basic_machine=m68k-hp
12627 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
12628 + basic_machine=hppa1.0-hp
12630 + hp9k2[0-9][0-9] | hp9k31[0-9])
12631 + basic_machine=m68000-hp
12634 + basic_machine=m68k-hp
12636 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
12637 + basic_machine=hppa1.0-hp
12639 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
12640 + basic_machine=hppa1.1-hp
12642 + hp9k78[0-9] | hp78[0-9])
12643 + # FIXME: really hppa2.0-hp
12644 + basic_machine=hppa1.1-hp
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
12650 + hp9k8[0-9][13679] | hp8[0-9][13679])
12651 + basic_machine=hppa1.1-hp
12653 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
12654 + basic_machine=hppa1.0-hp
12660 + basic_machine=hppa1.1-hp
12664 + basic_machine=hppa1.1-hp
12667 + i370-ibm* | ibm*)
12668 + basic_machine=i370-ibm
12670 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
12672 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12676 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12680 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12684 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
12688 + basic_machine=i386-mach
12691 + i386-vsta | vsta)
12692 + basic_machine=i386-unknown
12696 + basic_machine=mips-sgi
12706 + basic_machine=m68k-isi
12710 + basic_machine=m88k-omron
12713 + basic_machine=mips-mips
12717 + basic_machine=ns32k-utek
12721 + basic_machine=i386-pc
12725 + basic_machine=m68000-convergent
12727 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
12728 + basic_machine=m68k-atari
12732 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
12735 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
12738 + basic_machine=m68k-rom68k
12742 + basic_machine=powerpc-unknown
12746 + basic_machine=i386-pc
12750 + basic_machine=i370-ibm
12754 + basic_machine=i486-ncr
12758 + basic_machine=i386-unknown
12762 + basic_machine=armv4l-rebel
12765 + news | news700 | news800 | news900)
12766 + basic_machine=m68k-sony
12770 + basic_machine=m68030-sony
12773 + news-3600 | risc-news)
12774 + basic_machine=mips-sony
12778 + basic_machine=v70-nec
12782 + basic_machine=m68k-next
12795 + basic_machine=m68k-harris
12799 + basic_machine=m88k-harris
12803 + basic_machine=i960-intel
12807 + basic_machine=i960-intel
12811 + basic_machine=mips-compaq
12815 + basic_machine=np1-gould
12818 + basic_machine=nsr-tandem
12820 + op50n-* | op60c-*)
12821 + basic_machine=hppa1.1-oki
12824 + openrisc | openrisc-*)
12825 + basic_machine=or32-unknown
12828 + basic_machine=powerpc-ibm
12831 + OSE68000 | ose68000)
12832 + basic_machine=m68000-ericsson
12836 + basic_machine=m68k-none
12840 + basic_machine=hppa1.1-hitachi
12844 + basic_machine=i860-intel
12848 + basic_machine=sparc-tti
12851 + basic_machine=m68k-tti
12854 + basic_machine=ns32k-pc532
12856 + pentium | p5 | k5 | k6 | nexgen | viac3)
12857 + basic_machine=i586-pc
12859 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
12860 + basic_machine=i686-pc
12862 + pentiumii | pentium2 | pentiumiii | pentium3)
12863 + basic_machine=i686-pc
12866 + basic_machine=i786-pc
12868 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
12869 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
12871 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
12872 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
12874 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
12875 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
12878 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
12881 + basic_machine=pn-gould
12883 + power) basic_machine=power-ibm
12885 + ppc) basic_machine=powerpc-unknown
12887 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
12889 + ppcle | powerpclittle | ppc-le | powerpc-little)
12890 + basic_machine=powerpcle-unknown
12892 + ppcle-* | powerpclittle-*)
12893 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
12895 + ppc64) basic_machine=powerpc64-unknown
12897 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
12899 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
12900 + basic_machine=powerpc64le-unknown
12902 + ppc64le-* | powerpc64little-*)
12903 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
12906 + basic_machine=i386-ibm
12909 + basic_machine=i586-unknown
12913 + basic_machine=m68k-rom68k
12917 + basic_machine=mips-siemens
12920 + basic_machine=romp-ibm
12923 + basic_machine=s390-ibm
12926 + basic_machine=s390x-ibm
12929 + basic_machine=a29k-amd
12933 + basic_machine=mipsisa64sb1-unknown
12936 + basic_machine=mipsisa64sb1el-unknown
12939 + basic_machine=mips-sei
12943 + basic_machine=i386-sequent
12946 + basic_machine=sh-hitachi
12950 + basic_machine=sh64-unknown
12952 + sparclite-wrs | simso-wrs)
12953 + basic_machine=sparclite-wrs
12957 + basic_machine=m68k-bull
12961 + basic_machine=spur-unknown
12964 + basic_machine=m68k-tandem
12967 + basic_machine=i860-stratus
12971 + basic_machine=m68000-sun
12974 + basic_machine=m68000-sun
12978 + basic_machine=m68000-sun
12982 + basic_machine=m68k-sun
12986 + basic_machine=m68k-sun
12990 + basic_machine=sparc-sun
12994 + basic_machine=sparc-sun
12998 + basic_machine=sparc-sun
13002 + basic_machine=m68k-sun
13005 + basic_machine=sparc-sun
13007 + sun386 | sun386i | roadrunner)
13008 + basic_machine=i386-sun
13011 + basic_machine=sv1-cray
13015 + basic_machine=i386-sequent
13019 + basic_machine=alphaev5-cray
13023 + basic_machine=t90-cray
13027 + basic_machine=tic54x-unknown
13031 + basic_machine=tic55x-unknown
13035 + basic_machine=tic6x-unknown
13039 + basic_machine=mipstx39-unknown
13042 + basic_machine=mipstx39el-unknown
13045 + basic_machine=pdp10-xkl
13048 + tower | tower-32)
13049 + basic_machine=m68k-ncr
13052 + basic_machine=s390x-ibm
13056 + basic_machine=a29k-amd
13060 + basic_machine=a29k-nyu
13064 + basic_machine=v810-nec
13068 + basic_machine=vax-dec
13072 + basic_machine=vax-dec
13076 + basic_machine=f301-fujitsu
13079 + basic_machine=i960-wrs
13083 + basic_machine=m68k-wrs
13087 + basic_machine=a29k-wrs
13091 + basic_machine=w65-wdc
13095 + basic_machine=hppa1.1-winbond
13099 + basic_machine=i686-pc
13103 + basic_machine=xps100-honeywell
13106 + basic_machine=ymp-cray
13110 + basic_machine=z8k-unknown
13114 + basic_machine=none-none
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.
13121 + basic_machine=hppa1.1-winbond
13124 + basic_machine=hppa1.1-oki
13127 + basic_machine=hppa1.1-oki
13130 + basic_machine=romp-ibm
13133 + basic_machine=mmix-knuth
13136 + basic_machine=rs6000-ibm
13139 + basic_machine=vax-dec
13142 + # there are many clones, so DEC is not a safe bet
13143 + basic_machine=pdp10-unknown
13146 + basic_machine=pdp11-dec
13149 + basic_machine=we32k-att
13151 + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
13152 + basic_machine=sh-unknown
13154 + sparc | sparcv8 | sparcv9 | sparcv9b)
13155 + basic_machine=sparc-sun
13158 + basic_machine=cydra-cydrome
13161 + basic_machine=orion-highlevel
13164 + basic_machine=clipper-highlevel
13166 + mac | mpw | mac-mpw)
13167 + basic_machine=m68k-apple
13170 + basic_machine=powerpc-apple
13173 + # Make sure to match an already-canonicalized machine name.
13176 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
13181 +# Here we canonicalize certain aliases for manufacturers.
13182 +case $basic_machine in
13184 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
13187 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
13193 +# Decode manufacturer-specific aliases for certain operating systems.
13195 +if [ x"$os" != x"" ]
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|'`
13214 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
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* \
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.
13245 + case $basic_machine in
13256 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
13258 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
13259 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
13260 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
13263 + os=`echo $os | sed -e 's|mac|macos|'`
13266 + os=-linux-dietlibc
13269 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
13272 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
13275 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
13322 + # Preserve the version number of sinix5.
13324 + os=`echo $os | sed -e 's|sinix|sysv|'`
13347 + # This must come after -sysvr4.
13359 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
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
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
13405 + # This must come before the *-dec entry.
13423 + # This also exists in the configure program, but was not the
13439 + *-tti) # must be before sparc entry or we get the wrong os.
13472 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
13526 + f30[01]-fujitsu | f700-fujitsu)
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.
13550 +case $basic_machine in
13586 + -mvs* | -opened*)
13598 + -vxsim* | -vxworks* | -windiss*)
13610 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
13617 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
13621 +echo $basic_machine$os
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: "'"
13630 diff --git a/config/depcomp b/config/depcomp
13631 new file mode 100755
13632 index 0000000..04701da
13634 +++ b/config/depcomp
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>.
13667 + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
13672 +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
13674 +Run PROGRAMS ARGS to compile a file, generating dependencies
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>.
13691 + echo "depcomp $scriptversion"
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
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.
13718 +if test "$depmode" = dashXmstdout; then
13719 + # This is just like dashmstdout with a different argument.
13721 + depmode=dashmstdout
13724 +case "$depmode" in
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"
13731 + if test $stat -eq 0; then :
13733 + rm -f "$tmpdepfile"
13736 + mv "$tmpdepfile" "$depfile"
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
13752 + "$@" -Wp,"$gccflag$tmpdepfile"
13754 + if test $stat -eq 0; then :
13756 + rm -f "$tmpdepfile"
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.
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
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"
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.
13790 + if test "$libtool" = yes; then
13791 + "$@" "-Wp,-MDupdate,$tmpdepfile"
13793 + "$@" -MDupdate "$tmpdepfile"
13796 + if test $stat -eq 0; then :
13798 + rm -f "$tmpdepfile"
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.
13813 +' < "$tmpdepfile" \
13814 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
13819 + # The second pass generates a dummy entry for each header file.
13821 +' < "$tmpdepfile" \
13822 + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
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"
13830 + rm -f "$tmpdepfile"
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
13848 + if test -f "$tmpdepfile"; then :
13850 + stripped=`echo "$stripped" | sed 's,^.*/,,'`
13851 + tmpdepfile="$stripped.u"
13854 + if test $stat -eq 0; then :
13856 + rm -f "$tmpdepfile"
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"
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"
13873 + rm -f "$tmpdepfile"
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
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 ... \
13894 + "$@" -MD -MF "$tmpdepfile"
13896 + if test $stat -eq 0; then :
13898 + rm -f "$tmpdepfile"
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"
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
13944 + tmpdepfile1=$dir$base.o.d
13945 + tmpdepfile2=$dir$base.d
13946 + tmpdepfile3=$dir$base.d
13947 + tmpdepfile4=$dir$base.d
13952 + if test $stat -eq 0; then :
13954 + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
13958 + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
13960 + test -f "$tmpdepfile" && break
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"
13967 + echo "#dummy" > "$depfile"
13969 + rm -f "$tmpdepfile"
13973 + # This comment above is used by automake to tell side-effect
13974 + # dependency tracking mechanisms from slower ones.
13977 + # Important note: in order to support this mode, a compiler *must*
13978 + # always write the preprocessed file to stdout, regardless of -o.
13981 + # Remove the call to Libtool.
13982 + if test "$libtool" = yes; then
13983 + while test $1 != '--mode=compile'; do
13989 + # Remove `-o $object'.
14001 + set fnord "$@" "$arg"
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"
14015 + cat < "$tmpdepfile" > "$depfile"
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"
14025 + # This case only exists to satisfy depend.m4. It is never actually
14026 + # run, as this mode is specially recognized in the preamble.
14032 + # Remove any Libtool call
14033 + if test "$libtool" = yes; then
14034 + while test $1 != '--mode=compile'; do
14042 + for arg in "$@"; do
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.
14056 + set fnord "$@" "$arg"; shift ;;
14059 + obj_suffix="`echo $object | sed 's/^.*\././'`"
14060 + touch "$tmpdepfile"
14061 + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
14063 + cat < "$tmpdepfile" > "$depfile"
14064 + sed '1,2d' "$tmpdepfile" | tr ' ' '
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
14073 + # Important note: in order to support this mode, a compiler *must*
14074 + # always write the preprocessed file to stdout.
14077 + # Remove the call to Libtool.
14078 + if test "$libtool" = yes; then
14079 + while test $1 != '--mode=compile'; do
14085 + # Remove `-o $object'.
14097 + set fnord "$@" "$arg"
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"
14109 + echo "$object : \\" > "$depfile"
14110 + cat < "$tmpdepfile" >> "$depfile"
14111 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
14112 + rm -f "$tmpdepfile"
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.
14124 + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
14130 + set fnord "$@" "$arg"
14137 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
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"
14151 + echo "Unknown depmode $depmode" 1>&2
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: "$"
14166 diff --git a/config/install-sh b/config/install-sh
14167 new file mode 100755
14168 index 0000000..4d4a951
14170 +++ b/config/install-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-
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"
14236 +rmcmd="$rmprog -f"
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.
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
14278 + -g) chgrpcmd="$chgrpprog $2"
14283 + --help) echo "$usage"; exit $?;;
14285 + -m) chmodcmd="$chmodprog $2"
14290 + -o) chowncmd="$chownprog $2"
14295 + -s) stripcmd=$stripprog
14304 + -T) no_target_directory=true
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 $@.
14316 + if test -n "$dstarg"; then
14317 + # $@ is not empty: it contains at least $arg.
14318 + set fnord "$@" "$dstarg"
14328 +if test -z "$1"; then
14329 + if test -z "$dir_arg"; then
14330 + echo "$0: no input file specified." >&2
14333 + # It's OK to call `install-sh -d' without argument.
14334 + # This can happen when creating conditional directories.
14340 + # Protect names starting with `-'.
14342 + -*) src=./$src ;;
14345 + if test -n "$dir_arg"; then
14349 + if test -d "$dst"; then
14353 + mkdircmd=$mkdirprog
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
14364 + if test -z "$dstarg"; then
14365 + echo "$0: no destination specified." >&2
14370 + # Protect names starting with `-'.
14372 + -*) dst=./$dst ;;
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
14382 + dst=$dst/`basename "$src"`
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
14395 + IFS="${IFS-$defaultIFS}"
14398 + # Some sh's can't handle IFS=/ for some reason.
14400 + set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
14406 + while test $# -ne 0 ; do
14407 + pathcomp=$pathcomp$1
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
14414 + test -d "$pathcomp" || exit
14416 + pathcomp=$pathcomp/
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"; }
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 \
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
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 \
14469 + echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
14477 + # Now rename the file to the real destination.
14478 + $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
14481 + fi || { (exit 1); exit 1; }
14484 +# The final little trick to "correctly" pass the exit status to the exit trap.
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: "$"
14495 diff --git a/config/ltmain.sh b/config/ltmain.sh
14496 new file mode 100755
14497 index 0000000..06823e0
14499 +++ b/config/ltmain.sh
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
14536 +# The name of this program:
14537 +progname=`echo "$progpath" | $SED $basename`
14538 +modename="$progname"
14540 +# Global variables:
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.
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!
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
14576 + exit $EXIT_SUCCESS
14580 +help="Try \`$progname --help' for more information."
14581 +magic="%%%MAGIC variable%%%"
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'
14597 + *) # EBCDIC based system
14598 + SP2NL='tr \100 \n'
14599 + NL2SP='tr \r\n \100\100'
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
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
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.
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}-$$"
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`
14666 + $mkdir "$my_tmpdir"
14667 + umask $save_mktempdir_umask
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
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"
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";;
14707 + win32_libid_type="x86 DLL"
14709 + *executable*) # but shell scripts are "executable" too...
14710 + case $win32_fileres in
14711 + *MS\ Windows\ PE\ Intel*)
14712 + win32_libid_type="x86 DLL"
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 ...'
14729 + if test -n "$available_tags" && test -z "$tagname"; then
14731 + for arg in $CC; do
14733 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14737 + CC_quoted="$CC_quoted $arg"
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.
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`"
14751 + for arg in $CC; do
14752 + # Double-quote args containing other shell metacharacters.
14754 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
14758 + CC_quoted="$CC_quoted $arg"
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.
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
14779 +# $echo "$modename: using $tagname tagged configuration"
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
14798 + $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
14799 + exit $EXIT_FAILURE
14803 +# func_extract_archives gentop oldlib ...
14804 +func_extract_archives ()
14806 + my_gentop="$1"; shift
14807 + my_oldlibs=${1+"$@"}
14814 + $show "${rm}r $my_gentop"
14815 + $run ${rm}r "$my_gentop"
14816 + $show "$mkdir $my_gentop"
14817 + $run $mkdir "$my_gentop"
14819 + if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
14823 + for my_xlib in $my_oldlibs; do
14824 + # Extract the objects.
14826 + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
14827 + *) my_xabs=`pwd`"/$my_xlib" ;;
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"
14837 + if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
14838 + exit $exit_status
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://'`
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`
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
14872 + cd "$darwin_orig_dir"
14874 + cd "$darwin_orig_dir"
14875 + func_extract_an_archive "$my_xdir" "$my_xabs"
14876 + fi # $darwin_arches
14880 + func_extract_an_archive "$my_xdir" "$my_xabs"
14883 + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
14885 + func_extract_archives_result="$my_oldobjs"
14887 +# End of Shell function definitions
14888 +#####################################
14891 +eval std_shrext=\"$shrext_cmds\"
14895 +# Parse our command line options once, thoroughly.
14896 +while test "$#" -gt 0
14902 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
14906 + # If the previous option needs an argument, assign it.
14907 + if test -n "$prev"; then
14910 + execute_dlfiles="$execute_dlfiles $arg"
14914 + preserve_args="${preserve_args}=$arg"
14916 + # Check whether tagname contains only valid characters
14918 + *[!-_A-Za-z0-9,/]*)
14919 + $echo "$progname: invalid tag name: $tagname" 1>&2
14920 + exit $EXIT_FAILURE
14926 + # Don't test for the "default" C tag, as we know, it's there, but
14927 + # not specially marked.
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`"
14935 + $echo "$progname: ignoring unknown tag $tagname" 1>&2
14941 + eval "$prev=\$arg"
14950 + # Have we seen a non-optional argument yet?
14957 + $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
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."
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"
14975 + $echo "$progname: enabling shell trace mode"
14977 + preserve_args="$preserve_args $arg"
14985 + $echo "host: $host"
14986 + if test "$build_libtool_libs" = yes; then
14987 + $echo "enable shared libraries"
14989 + $echo "disable shared libraries"
14991 + if test "$build_old_libs" = yes; then
14992 + $echo "enable static libraries"
14994 + $echo "disable static libraries"
14999 + --finish) mode="finish" ;;
15001 + --mode) prevopt="--mode" prev=mode ;;
15002 + --mode=*) mode="$optarg" ;;
15004 + --preserve-dup-deps) duplicate_deps="yes" ;;
15006 + --quiet | --silent)
15008 + preserve_args="$preserve_args $arg"
15014 + preserve_args="$preserve_args --tag"
15017 + set tag "$optarg" ${1+"$@"}
15020 + preserve_args="$preserve_args --tag"
15024 + prevopt="-dlopen"
15025 + prev=execute_dlfiles
15029 + $echo "$modename: unrecognized option \`$arg'" 1>&2
15030 + $echo "$help" 1>&2
15031 + exit $EXIT_FAILURE
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
15051 + build_libtool_libs=no
15052 + build_old_libs=yes
15055 + build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; 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.
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
15071 + *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
15083 + *db | *dbx | *strace | *truss)
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
15101 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
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
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.
15121 + # libtool compile mode
15123 + modename="$modename: compile"
15124 + # Get the compilation command and the source file.
15126 + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
15135 + case $arg_mode in
15137 + # do not "continue". Instead, add this to base_compile
15149 + # Accept any command-line options.
15152 + if test -n "$libobj" ; then
15153 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2
15154 + exit $EXIT_FAILURE
15160 + -static | -prefer-pic | -prefer-non-pic)
15161 + later="$later $arg"
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.
15176 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
15178 + save_ifs="$IFS"; IFS=','
15179 + for arg in $args; do
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.
15186 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15190 + lastarg="$lastarg $arg"
15193 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
15195 + # Add the arguments to base_compile.
15196 + base_compile="$base_compile $lastarg"
15201 + # Accept the current argument as the source file.
15202 + # The previous "srcfile" becomes the current argument.
15204 + lastarg="$srcfile"
15209 + esac # case $arg_mode
15211 + # Aesthetically quote the previous argument.
15212 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
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\""
15226 + base_compile="$base_compile $lastarg"
15229 + case $arg_mode in
15231 + $echo "$modename: you must specify an argument for -Xcompile"
15232 + exit $EXIT_FAILURE
15235 + $echo "$modename: you must specify a target with \`-o'" 1>&2
15236 + exit $EXIT_FAILURE
15239 + # Get the name of the library object.
15240 + [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
15244 + # Recognize several different file suffixes.
15245 + # If the user specifies -o file.o, it is replaced with file.lo
15246 + xform='[cCFSifmso]'
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 ;;
15263 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
15266 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
15268 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
15269 + exit $EXIT_FAILURE
15273 + func_infer_tag $base_compile
15275 + for arg in $later; do
15278 + build_old_libs=yes
15294 + qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
15296 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15297 + qlibobj="\"$qlibobj\"" ;;
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
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
15317 + # Delete any leftover library objects.
15318 + if test "$build_old_libs" = yes; then
15319 + removelist="$obj $lobj $libobj ${libobj}T"
15321 + removelist="$lobj $libobj ${libobj}T"
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
15329 + cygwin* | mingw* | pw32* | os2*)
15333 + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
15334 + # non-PIC code in shared libraries is not supported
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
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"
15358 + elif test "$need_locks" = warn; then
15359 + if test -f "$lockfile"; then
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
15371 + $run $rm $removelist
15372 + exit $EXIT_FAILURE
15374 + $echo "$srcfile" > "$lockfile"
15377 + if test -n "$fix_srcfile_path"; then
15378 + eval srcfile=\"$fix_srcfile_path\"
15380 + qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
15381 + case $qsrcfile in
15382 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15383 + qsrcfile="\"$qsrcfile\"" ;;
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.
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"
15408 + # Don't build PIC code
15409 + command="$base_compile $qsrcfile"
15412 + if test ! -d "${xdir}$objdir"; then
15413 + $show "$mkdir ${xdir}$objdir"
15414 + $run $mkdir ${xdir}$objdir
15416 + if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
15417 + exit $exit_status
15421 + if test -z "$output_obj"; then
15422 + # Place PIC objects in $objdir
15423 + command="$command -o $lobj"
15426 + $run $rm "$lobj" "$output_obj"
15429 + if $run eval "$command"; then :
15431 + test -n "$output_obj" && $run $rm $removelist
15432 + exit $EXIT_FAILURE
15435 + if test "$need_locks" = warn &&
15436 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
15438 +*** ERROR, $lockfile contains:
15439 +`cat $lockfile 2>/dev/null`
15441 +but it should contain:
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
15451 + $run $rm $removelist
15452 + exit $EXIT_FAILURE
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 :
15461 + $run $rm $removelist
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'
15472 + # Allow error messages only from the first compilation.
15473 + if test "$suppress_opt" = yes; then
15474 + suppress_output=' >/dev/null 2>&1'
15477 + # No PIC object so indicate it doesn't exist in the libtool
15479 + test -z "$run" && cat >> ${libobj}T <<EOF
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"
15491 + command="$base_compile $qsrcfile $pic_flag"
15493 + if test "$compiler_c_o" = yes; then
15494 + command="$command -o $obj"
15497 + # Suppress compiler output if we already did a PIC compilation.
15498 + command="$command$suppress_output"
15499 + $run $rm "$obj" "$output_obj"
15501 + if $run eval "$command"; then :
15503 + $run $rm $removelist
15504 + exit $EXIT_FAILURE
15507 + if test "$need_locks" = warn &&
15508 + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
15510 +*** ERROR, $lockfile contains:
15511 +`cat $lockfile 2>/dev/null`
15513 +but it should contain:
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
15523 + $run $rm $removelist
15524 + exit $EXIT_FAILURE
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 :
15533 + $run $rm $removelist
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'
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
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"
15562 + exit $EXIT_SUCCESS
15565 + # libtool link mode
15567 + modename="$modename: link"
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
15584 + allow_undefined=yes
15587 + libtool_args="$nonopt"
15588 + base_compile="$nonopt $@"
15589 + compile_command="$nonopt"
15590 + finalize_command="$nonopt"
15594 + compile_shlibpath=
15595 + finalize_shlibpath=
15603 + lib_search_path=`pwd`
15610 + export_dynamic=no
15612 + export_symbols_regex=
15620 + notinst_path= # paths that contain not-installed libtool libraries
15621 + precious_files_regex=
15622 + prefer_static_libs=no
15635 + func_infer_tag $base_compile
15637 + # We need to know -static, to get the right output filenames.
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
15646 + if test -n "$link_static_flag"; then
15647 + dlopen_self=$dlopen_self_static
15649 + prefer_static_libs=yes
15651 + if test -z "$pic_flag" && test -n "$link_static_flag"; then
15652 + dlopen_self=$dlopen_self_static
15654 + prefer_static_libs=built
15656 + build_libtool_libs=no
15657 + build_old_libs=yes
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
15671 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
15672 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
15676 + libtool_args="$libtool_args $qarg"
15678 + # If the previous option needs an argument, assign it.
15679 + if test -n "$prev"; then
15682 + compile_command="$compile_command @OUTPUT@"
15683 + finalize_command="$finalize_command @OUTPUT@"
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@"
15696 + *.la | *.lo) ;; # We handle these cases below.
15698 + if test "$dlself" = no; then
15700 + export_dynamic=yes
15706 + if test "$prev" = dlprefiles; then
15708 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
15712 + export_dynamic=yes
15718 + if test "$prev" = dlfiles; then
15719 + dlfiles="$dlfiles $arg"
15721 + dlprefiles="$dlprefiles $arg"
15729 + export_symbols="$arg"
15730 + if test ! -f "$arg"; then
15731 + $echo "$modename: symbol file \`$arg' does not exist"
15732 + exit $EXIT_FAILURE
15738 + export_symbols_regex="$arg"
15743 + inst_prefix_dir="$arg"
15748 + precious_files_regex="$arg"
15758 + if test -f "$arg"; then
15761 + for fil in `cat $save_arg`
15763 +# moreargs="$moreargs $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
15772 + # Read the .lo file
15773 + # If there is no directory component, then add one.
15775 + */* | *\\*) . $arg ;;
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
15787 + # Extract subdirectory from the argument.
15788 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
15789 + if test "X$xdir" = "X$arg"; then
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"
15805 + # If libtool objects are unsupported, then we need to preload.
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"
15818 + libobjs="$libobjs $pic_object"
15819 + arg="$pic_object"
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"
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"
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
15846 + # Extract subdirectory from the argument.
15847 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
15848 + if test "X$xdir" = "X$arg"; then
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"
15862 + $echo "$modename: link input file \`$save_arg' does not exist"
15863 + exit $EXIT_FAILURE
15870 + # We need an absolute path.
15872 + [\\/]* | [A-Za-z]:[\\/]*) ;;
15874 + $echo "$modename: only absolute run-paths are allowed" 1>&2
15875 + exit $EXIT_FAILURE
15878 + if test "$prev" = rpath; then
15879 + case "$rpath " in
15881 + *) rpath="$rpath $arg" ;;
15884 + case "$xrpath " in
15886 + *) xrpath="$xrpath $arg" ;;
15893 + compiler_flags="$compiler_flags $qarg"
15895 + compile_command="$compile_command $qarg"
15896 + finalize_command="$finalize_command $qarg"
15900 + linker_flags="$linker_flags $qarg"
15901 + compiler_flags="$compiler_flags $wl$qarg"
15903 + compile_command="$compile_command $wl$qarg"
15904 + finalize_command="$finalize_command $wl$qarg"
15908 + linker_flags="$linker_flags $qarg"
15909 + compiler_flags="$compiler_flags $qarg"
15911 + compile_command="$compile_command $qarg"
15912 + finalize_command="$finalize_command $qarg"
15916 + shrext_cmds="$arg"
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"
15928 + eval "$prev=\"\$arg\""
15933 + fi # test -n "$prev"
15939 + if test -n "$link_static_flag"; then
15940 + compile_command="$compile_command $link_static_flag"
15941 + finalize_command="$finalize_command $link_static_flag"
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
15953 + avoid_version=yes
15968 + export_dynamic=yes
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
15977 + if test "X$arg" = "X-export-symbols"; then
15980 + prev=expsyms_regex
15985 + -framework|-arch|-isysroot)
15987 + *" ${arg} ${1} "* | *" ${arg} ${1} "*)
15988 + prev=darwin_framework_skip ;;
15989 + *) compiler_flags="$compiler_flags $arg"
15990 + prev=darwin_framework ;;
15992 + compile_command="$compile_command $arg"
15993 + finalize_command="$finalize_command $arg"
15997 + -inst-prefix-dir)
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
16005 + case $with_gcc/$host in
16006 + no/*-*-irix* | /*-*-irix*)
16007 + compile_command="$compile_command $arg"
16008 + finalize_command="$finalize_command $arg"
16015 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
16016 + # We need an absolute path.
16018 + [\\/]* | [A-Za-z]:[\\/]*) ;;
16020 + absdir=`cd "$dir" && pwd`
16021 + if test -z "$absdir"; then
16022 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
16024 + notinst_path="$notinst_path $dir"
16029 + case "$deplibs " in
16032 + deplibs="$deplibs -L$dir"
16033 + lib_search_path="$lib_search_path $dir"
16037 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
16038 + testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
16039 + case :$dllsearchpath: in
16041 + *) dllsearchpath="$dllsearchpath:$dir";;
16043 + case :$dllsearchpath: in
16044 + *":$testbindir:"*) ;;
16045 + *) dllsearchpath="$dllsearchpath:$testbindir";;
16053 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
16055 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
16056 + # These systems don't actually have a C or math library (as such)
16060 + # These systems don't actually have a C library (as such)
16061 + test "X$arg" = "X-lc" && continue
16063 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
16064 + # Do not include libc due to us having libc/libc_r.
16065 + test "X$arg" = "X-lc" && continue
16067 + *-*-rhapsody* | *-*-darwin1.[012])
16068 + # Rhapsody C and math libraries are in the System framework
16069 + deplibs="$deplibs -framework System"
16072 + *-*-sco3.2v5* | *-*-sco5v6*)
16073 + # Causes problems with __ctype
16074 + test "X$arg" = "X-lc" && continue
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
16081 + elif test "X$arg" = "X-lc_r"; then
16083 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
16084 + # Do not include libc_r directly, use -pthread flag.
16089 + deplibs="$deplibs $arg"
16093 + # Tru64 UNIX uses -model [arg] to determine the layout of C++
16094 + # classes, name mangling, and exception handling.
16096 + compile_command="$compile_command $arg"
16097 + compiler_flags="$compiler_flags $arg"
16098 + finalize_command="$finalize_command $arg"
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"
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"`
16132 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16136 + compile_command="$compile_command $arg"
16137 + finalize_command="$finalize_command $arg"
16138 + compiler_flags="$compiler_flags $arg"
16147 + -no-fast-install)
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
16161 + *) no_install=yes ;;
16167 + allow_undefined=no
16176 + -o) prev=output ;;
16178 + -precious-files-regex)
16179 + prev=precious_regex
16199 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
16200 + # We need an absolute path.
16202 + [\\/]* | [A-Za-z]:[\\/]*) ;;
16204 + $echo "$modename: only absolute run-paths are allowed" 1>&2
16205 + exit $EXIT_FAILURE
16208 + case "$xrpath " in
16210 + *) xrpath="$xrpath $dir" ;;
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.
16240 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
16242 + save_ifs="$IFS"; IFS=','
16243 + for flag in $args; do
16246 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16250 + arg="$arg $wl$flag"
16251 + compiler_flags="$compiler_flags $flag"
16254 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
16258 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
16260 + save_ifs="$IFS"; IFS=','
16261 + for flag in $args; do
16264 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16268 + arg="$arg $wl$flag"
16269 + compiler_flags="$compiler_flags $wl$flag"
16270 + linker_flags="$linker_flags $flag"
16273 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
16291 + # Some other compiler flag.
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"`
16297 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
16304 + # A standard object.
16305 + objs="$objs $arg"
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
16316 + # Read the .lo file
16317 + # If there is no directory component, then add one.
16319 + */* | *\\*) . $arg ;;
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
16331 + # Extract subdirectory from the argument.
16332 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
16333 + if test "X$xdir" = "X$arg"; then
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"
16349 + # If libtool objects are unsupported, then we need to preload.
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"
16362 + libobjs="$libobjs $pic_object"
16363 + arg="$pic_object"
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"
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"
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
16390 + # Extract subdirectory from the argument.
16391 + xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
16392 + if test "X$xdir" = "X$arg"; then
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"
16408 + deplibs="$deplibs $arg"
16409 + old_deplibs="$old_deplibs $arg"
16414 + # A libtool-controlled library.
16416 + if test "$prev" = dlfiles; then
16417 + # This library was specified with -dlopen.
16418 + dlfiles="$dlfiles $arg"
16420 + elif test "$prev" = dlprefiles; then
16421 + # The library was specified with -dlpreopen.
16422 + dlprefiles="$dlprefiles $arg"
16425 + deplibs="$deplibs $arg"
16430 + # Some other compiler argument.
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"`
16436 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
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"
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
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"
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\'\`
16471 + shlib_search_path=
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"
16480 + output_objdir="$output_objdir/$objdir"
16482 + # Create the object directory.
16483 + if test ! -d "$output_objdir"; then
16484 + $show "$mkdir $output_objdir"
16485 + $run $mkdir $output_objdir
16487 + if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
16488 + exit $exit_status
16492 + # Determine the type of output
16495 + $echo "$modename: you must specify an output file" 1>&2
16496 + $echo "$help" 1>&2
16497 + exit $EXIT_FAILURE
16499 + *.$libext) linkmode=oldlib ;;
16500 + *.lo | *.$objext) linkmode=obj ;;
16501 + *.la) linkmode=lib ;;
16502 + *) linkmode=prog ;; # Anything else should be a program.
16506 + *cygwin* | *mingw* | *pw32*)
16507 + # don't eliminate duplications in $postdeps and $predeps
16508 + duplicate_compiler_generated_deps=yes
16511 + duplicate_compiler_generated_deps=$duplicate_deps
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
16522 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
16525 + libs="$libs $deplib"
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).
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" ;;
16540 + pre_post_deps="$pre_post_deps $pre_post_dep"
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
16553 + passes="conv link"
16554 + for file in $dlfiles $dlprefiles; do
16558 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
16559 + exit $EXIT_FAILURE
16566 + finalize_deplibs=
16570 + passes="conv scan dlopen dlpreopen link"
16575 + for pass in $passes; do
16576 + if test "$linkmode,$pass" = "lib,link" ||
16577 + test "$linkmode,$pass" = "prog,scan"; then
16581 + if test "$linkmode" = prog; then
16583 + dlopen) libs="$dlfiles" ;;
16584 + dlpreopen) libs="$dlprefiles" ;;
16585 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
16588 + if test "$pass" = dlopen; then
16589 + # Collect dlpreopened libraries
16590 + save_deplibs="$deplibs"
16593 + for deplib in $libs; do
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"
16602 + compiler_flags="$compiler_flags $deplib"
16607 + if test "$linkmode" != lib && test "$linkmode" != prog; then
16608 + $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
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
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"
16632 + deplibs="$deplib $deplibs"
16633 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
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
16642 + if (${SED} -e '2q' $lib |
16643 + grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
16647 + */* | *\\*) . $lib ;;
16650 + for l in $old_library $library_names; do
16653 + if test "X$ll" = "X$old_library" ; then # only static version available
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"
16662 + deplibs="$deplib $deplibs"
16663 + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
16675 + case $linkmode in
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//'`
16683 + if test "$pass" = conv; then
16684 + deplibs="$deplib $deplibs"
16687 + if test "$pass" = scan; then
16688 + deplibs="$deplib $deplibs"
16690 + compile_deplibs="$deplib $compile_deplibs"
16691 + finalize_deplibs="$deplib $finalize_deplibs"
16693 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
16696 + $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
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
16707 + *) xrpath="$xrpath $dir" ;;
16710 + deplibs="$deplib $deplibs"
16713 + *.la) lib="$deplib" ;;
16715 + if test "$pass" = conv; then
16716 + deplibs="$deplib $deplibs"
16719 + case $linkmode in
16722 + case $deplibs_check_method in
16724 + set dummy $deplibs_check_method
16725 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
16726 + if eval $echo \"$deplib\" 2>/dev/null \
16728 + | $EGREP "$match_pattern_regex" > /dev/null; then
16736 + if test "$valid_a_lib" != yes; then
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."
16746 + $echo "*** Warning: Linking the shared library $output against the"
16747 + $echo "*** static library $deplib is not portable!"
16748 + deplibs="$deplib $deplibs"
16753 + if test "$pass" != link; then
16754 + deplibs="$deplib $deplibs"
16756 + compile_deplibs="$deplib $compile_deplibs"
16757 + finalize_deplibs="$deplib $finalize_deplibs"
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"
16774 + newdlfiles="$newdlfiles $deplib"
16783 + esac # case $deplib
16784 + if test "$found" = yes || test -f "$lib"; then :
16786 + $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
16787 + exit $EXIT_FAILURE
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 :
16793 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
16794 + exit $EXIT_FAILURE
16797 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
16798 + test "X$ladir" = "X$lib" && ladir="."
16806 + # If the library was installed with an old release of libtool,
16807 + # it will not redefine variables installed, or shouldnotlink
16813 + # Read the .la file
16815 + */* | *\\*) . $lib ;;
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"
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
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"
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" ;;
16845 + tmp_libs="$tmp_libs $deplib"
16847 + elif test "$linkmode" != prog && test "$linkmode" != lib; then
16848 + $echo "$modename: \`$lib' is not a convenience library" 1>&2
16849 + exit $EXIT_FAILURE
16852 + fi # $pass = conv
16855 + # Get the name of the library we link against.
16857 + for l in $old_library $library_names; do
16860 + if test -z "$linklib"; then
16861 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
16862 + exit $EXIT_FAILURE
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
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"
16880 + newdlfiles="$newdlfiles $lib"
16883 + fi # $pass = dlopen
16885 + # We need an absolute path.
16887 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
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"
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
16904 + absdir="$abs_ladir"
16905 + libdir="$abs_ladir"
16910 + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
16912 + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
16914 + absdir="$abs_ladir"
16915 + # Remove this search path later
16916 + notinst_path="$notinst_path $abs_ladir"
16918 + dir="$ladir/$objdir"
16919 + absdir="$abs_ladir/$objdir"
16920 + # Remove this search path later
16921 + notinst_path="$notinst_path $abs_ladir"
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
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"
16940 + newdlprefiles="$newdlprefiles $dir/$linklib"
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"
16952 + deplibs="$lib $deplibs" # used for prog,scan pass
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
16969 + for deplib in $dependency_libs; do
16971 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
16973 + # Need to link against all dependency_libs?
16974 + if test "$linkalldeplibs" = yes; then
16975 + deplibs="$deplib $deplibs"
16977 + # Need to hardcode shared library paths
16978 + # or/and link against static libraries
16979 + newdependency_libs="$deplib $newdependency_libs"
16981 + if test "X$duplicate_deps" = "Xyes" ; then
16982 + case "$tmp_libs " in
16983 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
16986 + tmp_libs="$tmp_libs $deplib"
16987 + done # for deplib
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
16999 + *" $absdir "*) ;;
17000 + *) temp_rpath="$temp_rpath $absdir" ;;
17004 + # Hardcode the library path.
17005 + # Skip directories that are in the system default run-time
17007 + case " $sys_lib_dlsearch_path " in
17008 + *" $absdir "*) ;;
17010 + case "$compile_rpath " in
17011 + *" $absdir "*) ;;
17012 + *) compile_rpath="$compile_rpath $absdir"
17016 + case " $sys_lib_dlsearch_path " in
17017 + *" $libdir "*) ;;
17019 + case "$finalize_rpath " in
17020 + *" $libdir "*) ;;
17021 + *) finalize_rpath="$finalize_rpath $libdir"
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
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
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"
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
17053 + if test "$linkmode" = prog; then
17054 + $echo "*** Warning: Linking the executable $output against the loadable module"
17056 + $echo "*** Warning: Linking the shared library $output against the loadable module"
17058 + $echo "*** $linklib is not portable!"
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
17065 + case " $sys_lib_dlsearch_path " in
17066 + *" $absdir "*) ;;
17068 + case "$compile_rpath " in
17069 + *" $absdir "*) ;;
17070 + *) compile_rpath="$compile_rpath $absdir"
17074 + case " $sys_lib_dlsearch_path " in
17075 + *" $libdir "*) ;;
17077 + case "$finalize_rpath " in
17078 + *" $libdir "*) ;;
17079 + *) finalize_rpath="$finalize_rpath $libdir"
17085 + if test -n "$old_archive_from_expsyms_cmds"; then
17086 + # figure out the soname
17087 + set dummy $library_names
17090 + libname=`eval \\$echo \"$libname_spec\"`
17091 + # use dlname if we got it. it's perfectly good, no?
17092 + if test -n "$dlname"; then
17094 + elif test -n "$soname_spec"; then
17097 + *cygwin* | mingw*)
17098 + major=`expr $current - $age`
17099 + versuffix="-$major"
17102 + eval soname=\"$soname_spec\"
17104 + soname="$realname"
17107 + # Make a new name for the extract_expsyms_cmds to use
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 :
17115 + $show "extracting exported symbol list from \`$soname'"
17116 + save_ifs="$IFS"; IFS='~'
17117 + cmds=$extract_expsyms_cmds
17118 + for cmd in $cmds; do
17120 + eval cmd=\"$cmd\"
17122 + $run eval "$cmd" || exit $?
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
17134 + eval cmd=\"$cmd\"
17136 + $run eval "$cmd" || exit $?
17140 + # make sure the library variables are pointing to the new library
17141 + dir=$output_objdir
17143 + fi # test -n "$old_archive_from_expsyms_cmds"
17145 + if test "$linkmode" = prog || test "$mode" != relink; then
17150 + case $hardcode_action in
17151 + immediate | unsupported)
17152 + if test "$hardcode_direct" = no; then
17153 + add="$dir/$linklib"
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" ;;
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
17167 + $echo "** And there doesn't seem to be a static archive available"
17168 + $echo "** The link will probably fail, sorry"
17170 + add="$dir/$old_library"
17174 + elif test "$hardcode_minus_L" = no; then
17176 + *-*-sunos*) add_shlibpath="$dir" ;;
17180 + elif test "$hardcode_shlibpath_var" = no; then
17181 + add_shlibpath="$dir"
17188 + if test "$hardcode_direct" = yes; then
17189 + add="$dir/$linklib"
17190 + elif test "$hardcode_minus_L" = yes; then
17192 + # Try looking first in the location we're being installed to.
17193 + if test -n "$inst_prefix_dir"; then
17196 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
17201 + elif test "$hardcode_shlibpath_var" = yes; then
17202 + add_shlibpath="$dir"
17208 + *) lib_linked=no ;;
17211 + if test "$lib_linked" != yes; then
17212 + $echo "$modename: configuration error: unsupported hardcode properties"
17213 + exit $EXIT_FAILURE
17216 + if test -n "$add_shlibpath"; then
17217 + case :$compile_shlibpath: in
17218 + *":$add_shlibpath:"*) ;;
17219 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
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"
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:" ;;
17239 + if test "$linkmode" = prog || test "$mode" = relink; then
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"
17249 + elif test "$hardcode_shlibpath_var" = yes; then
17250 + case :$finalize_shlibpath: in
17251 + *":$libdir:"*) ;;
17252 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
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"
17260 + add="$libdir/$linklib"
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
17269 + add_dir="$add_dir -L$inst_prefix_dir$libdir"
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"
17280 + test -n "$add_dir" && deplibs="$add_dir $deplibs"
17281 + test -n "$add" && deplibs="$add $deplibs"
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"
17293 + compile_deplibs="-l$name -L$dir $compile_deplibs"
17294 + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
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.
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
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."
17320 + if test "$build_old_libs" = no; then
17321 + build_libtool_libs=module
17322 + build_old_libs=yes
17324 + build_libtool_libs=no
17328 + deplibs="$dir/$old_library $deplibs"
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
17340 + for libdir in $dependency_libs; do
17342 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
17343 + case " $xrpath " in
17344 + *" $temp_xrpath "*) ;;
17345 + *) xrpath="$xrpath $temp_xrpath";;
17347 + *) temp_deplibs="$temp_deplibs $libdir";;
17350 + dependency_libs="$temp_deplibs"
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
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" ;;
17365 + tmp_libs="$tmp_libs $deplib"
17368 + if test "$link_all_deplibs" != no; then
17369 + # Add the search paths of all dependency libraries
17370 + for deplib in $dependency_libs; do
17372 + -L*) path="$deplib" ;;
17374 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
17375 + test "X$dir" = "X$deplib" && dir="."
17376 + # We need an absolute path.
17378 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
17380 + absdir=`cd "$dir" && pwd`
17381 + if test -z "$absdir"; then
17382 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
17387 + if grep "^installed=no" $deplib > /dev/null; then
17388 + path="$absdir/$objdir"
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
17395 + if test "$absdir" != "$libdir"; then
17396 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
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
17410 + if test -f "$path/$depdepl" ; then
17411 + depdepl="$path/$depdepl"
17413 + # do not add paths which are already there
17414 + case " $newlib_search_path " in
17416 + *) newlib_search_path="$newlib_search_path $path";;
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"
17444 + case " $deplibs " in
17446 + *) deplibs="$path $deplibs" ;;
17448 + case " $deplibs " in
17449 + *" $depdepl "*) ;;
17450 + *) deplibs="$depdepl $deplibs" ;;
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"
17463 + if test "$pass" != dlopen; then
17464 + if test "$pass" != conv; then
17465 + # Make sure lib_search_path contains only unique directories.
17467 + for dir in $newlib_search_path; do
17468 + case "$lib_search_path " in
17470 + *) lib_search_path="$lib_search_path $dir" ;;
17473 + newlib_search_path=
17476 + if test "$linkmode,$pass" != "prog,link"; then
17479 + vars="compile_deplibs finalize_deplibs"
17481 + for var in $vars dependency_libs; do
17482 + # Add libraries to $var in reverse order
17483 + eval tmp_libs=\"\$$var\"
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
17489 + #new_libs="$deplib $new_libs"
17490 + # Pragmatically, this seems to cause very few problems in
17493 + -L*) new_libs="$deplib $new_libs" ;;
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" ;;
17513 + case " $new_libs " in
17514 + *" $deplib "*) ;;
17515 + *) new_libs="$deplib $new_libs" ;;
17523 + for deplib in $new_libs; do
17526 + case " $tmp_libs " in
17527 + *" $deplib "*) ;;
17528 + *) tmp_libs="$tmp_libs $deplib" ;;
17531 + *) tmp_libs="$tmp_libs $deplib" ;;
17534 + eval $var=\"$tmp_libs\"
17537 + # Last step: remove runtime libs from dependency_libs
17538 + # (they stay in deplibs)
17540 + for i in $dependency_libs ; do
17541 + case " $predeps $postdeps $compiler_lib_search_path " in
17546 + if test -n "$i" ; then
17547 + tmp_libs="$tmp_libs $i"
17550 + dependency_libs=$tmp_libs
17552 + if test "$linkmode" = prog; then
17553 + dlfiles="$newdlfiles"
17554 + dlprefiles="$newdlprefiles"
17557 + case $linkmode in
17559 + if test -n "$deplibs"; then
17560 + $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
17563 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
17564 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
17567 + if test -n "$rpath"; then
17568 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
17571 + if test -n "$xrpath"; then
17572 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
17575 + if test -n "$vinfo"; then
17576 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
17579 + if test -n "$release"; then
17580 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
17583 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
17584 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
17587 + # Now set the variables for building old libraries.
17588 + build_libtool_libs=no
17589 + oldlibs="$output"
17590 + objs="$objs$old_deplibs"
17594 + # Make sure we only generate libraries of the form `libNAME.la'.
17595 + case $outputname in
17597 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
17598 + eval shared_ext=\"$shrext_cmds\"
17599 + eval libname=\"$libname_spec\"
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
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\"
17613 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
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
17624 + $echo "*** Warning: Linking the shared library $output against the non-libtool"
17625 + $echo "*** objects $objs is not portable!"
17626 + libobjs="$libobjs $objs"
17630 + if test "$dlself" != no; then
17631 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
17635 + if test "$#" -gt 2; then
17636 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
17638 + install_libdir="$2"
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
17652 + if test -n "$vinfo"; then
17653 + $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
17656 + if test -n "$release"; then
17657 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
17661 + # Parse the version information argument.
17662 + save_ifs="$IFS"; IFS=':'
17663 + set dummy $vinfo 0 0 0
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
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
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"
17694 + freebsd-aout|freebsd-elf|sunos)
17695 + current="$number_major"
17696 + revision="$number_minor"
17700 + current=`expr $number_major + $number_minor - 1`
17701 + age="$number_minor"
17702 + revision="$number_minor"
17713 + # Check that each of the things are valid numbers.
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]) ;;
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
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]) ;;
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
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]) ;;
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
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
17747 + # Calculate the version variables.
17751 + case $version_type in
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"
17765 + major=".$current"
17766 + versuffix=".$current.$revision";
17770 + major=".$current"
17771 + versuffix=".$current";
17774 + irix | nonstopux)
17775 + major=`expr $current - $age + 1`
17777 + case $version_type in
17778 + nonstopux) verstring_prefix=nonstopux ;;
17779 + *) verstring_prefix=sgi ;;
17781 + verstring="$verstring_prefix$major.$revision"
17783 + # Add in all the interfaces that we are compatible with.
17785 + while test "$loop" -ne 0; do
17786 + iface=`expr $revision - $loop`
17787 + loop=`expr $loop - 1`
17788 + verstring="$verstring_prefix$major.$iface:$verstring"
17791 + # Before this point, $major must not contain `.'.
17793 + versuffix="$major.$revision"
17797 + major=.`expr $current - $age`
17798 + versuffix="$major.$age.$revision"
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.
17808 + while test "$loop" -ne 0; do
17809 + iface=`expr $current - $loop`
17810 + loop=`expr $loop - 1`
17811 + verstring="$verstring:${iface}.0"
17814 + # Make executables depend on our current version.
17815 + verstring="$verstring:${current}.0"
17819 + major=".$current"
17820 + versuffix=".$current.$revision"
17824 + # Use '-' rather than '.', since we only want one
17825 + # extension on DOS 8.3 filesystems.
17826 + major=`expr $current - $age`
17827 + versuffix="-$major"
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
17837 + # Clear the version info if we defaulted, and they specified a release.
17838 + if test -z "$vinfo" && test -n "$release"; then
17840 + case $version_type in
17842 + # we can't check for "0.0" in archive_cmds due to quoting
17843 + # problems, so we reset it completely
17850 + if test "$need_version" = no; then
17857 + # Remove version info from name if versioning should be avoided
17858 + if test "$avoid_version" = yes && test "$need_version" = no; then
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
17872 + # Don't allow undefined symbols.
17873 + allow_undefined_flag="$no_undefined_flag"
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.
17881 + tempremovelist=`$echo "$output_objdir/*"`
17882 + for p in $tempremovelist; do
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
17893 + removelist="$removelist $p"
17898 + if test -n "$removelist"; then
17899 + $show "${rm}r $removelist"
17900 + $run ${rm}r $removelist
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`
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"`
17919 + if test -n "$xrpath"; then
17920 + # If the user specified any rpath flags, then add them.
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" ;;
17929 + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
17930 + dependency_libs="$temp_xrpath $dependency_libs"
17934 + # Make sure dlfiles contains only unique files that won't be dlpreopened
17935 + old_dlfiles="$dlfiles"
17937 + for lib in $old_dlfiles; do
17938 + case " $dlprefiles $dlfiles " in
17940 + *) dlfiles="$dlfiles $lib" ;;
17944 + # Make sure dlprefiles contains only unique files
17945 + old_dlprefiles="$dlprefiles"
17947 + for lib in $old_dlprefiles; do
17948 + case "$dlprefiles " in
17950 + *) dlprefiles="$dlprefiles $lib" ;;
17954 + if test "$build_libtool_libs" = yes; then
17955 + if test -n "$rpath"; then
17957 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
17958 + # these systems don't actually have a c library (as such)!
17960 + *-*-rhapsody* | *-*-darwin1.[012])
17961 + # Rhapsody C library is in the System framework
17962 + deplibs="$deplibs -framework System"
17965 + # Don't link with libc until the a.out ld.so is fixed.
17967 + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
17968 + # Do not include libc due to us having libc/libc_r.
17970 + *-*-sco3.2v5* | *-*-sco5v6*)
17971 + # Causes problems with __ctype
17973 + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
17974 + # Compiler inserts libc in the correct place for threads to work
17977 + # Add libc to deplibs on all other systems if necessary.
17978 + if test "$build_libtool_need_lc" = "yes"; then
17979 + deplibs="$deplibs -lc"
17985 + # Transform deplibs into only deplibs that can be linked in shared.
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?
17999 + case $deplibs_check_method in
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
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.
18014 + cat > conftest.c <<EOF
18015 + int main() { return 0; }
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
18028 + newdeplibs="$newdeplibs $i"
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
18038 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
18039 + newdeplibs="$newdeplibs $i"
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."
18052 + newdeplibs="$newdeplibs $i"
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
18063 + $LTCC $LTCFLAGS -o conftest conftest.c $i
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
18070 + newdeplibs="$newdeplibs $i"
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
18080 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
18081 + newdeplibs="$newdeplibs $i"
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."
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."
18102 + newdeplibs="$newdeplibs $i"
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
18117 + newdeplibs="$newdeplibs $a_deplib"
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
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,
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";;
18145 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
18147 + | $EGREP "$file_magic_regex" > /dev/null; then
18148 + newdeplibs="$newdeplibs $a_deplib"
18155 + if test -n "$a_deplib" ; then
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)"
18166 + $echo "*** with $libname and none of the candidates passed a file format test"
18167 + $echo "*** using a file magic. Last file checked: $potlib"
18171 + # Add a -L argument.
18172 + newdeplibs="$newdeplibs $a_deplib"
18174 + done # Gone through all deplibs.
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
18186 + newdeplibs="$newdeplibs $a_deplib"
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 \
18199 + | $EGREP "$match_pattern_regex" > /dev/null; then
18200 + newdeplibs="$newdeplibs $a_deplib"
18207 + if test -n "$a_deplib" ; then
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)"
18218 + $echo "*** with $libname and none of the candidates passed a file format test"
18219 + $echo "*** using a regex pattern. Last file checked: $potlib"
18223 + # Add a -L argument.
18224 + newdeplibs="$newdeplibs $a_deplib"
18226 + done # Gone through all deplibs.
18228 + none | unknown | *)
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,,"`
18238 + if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
18239 + | grep . >/dev/null; then
18241 + if test "X$deplibs_check_method" = "Xnone"; then
18242 + $echo "*** Warning: inter-library dependencies are not supported in this platform."
18244 + $echo "*** Warning: inter-library dependencies are not known to be supported."
18246 + $echo "*** All declared inter-library dependencies are being dropped."
18251 + versuffix=$versuffix_save
18252 + major=$major_save
18253 + release=$release_save
18254 + libname=$libname_save
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 /'`
18264 + if test "$droppeddeps" = yes; then
18265 + if test "$module" = yes; then
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
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."
18278 + if test "$build_old_libs" = no; then
18279 + oldlibs="$output_objdir/$libname.$libext"
18280 + build_libtool_libs=module
18281 + build_old_libs=yes
18283 + build_libtool_libs=no
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
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
18301 + build_libtool_libs=no
18306 + # Done checking deplibs!
18307 + deplibs=$newdeplibs
18311 + # move library search paths that coincide with paths to not yet
18312 + # installed libraries to the beginning of the library search list
18314 + for path in $notinst_path; do
18315 + case " $new_libs " in
18316 + *" -L$path/$objdir "*) ;;
18318 + case " $deplibs " in
18319 + *" -L$path/$objdir "*)
18320 + new_libs="$new_libs -L$path/$objdir" ;;
18325 + for deplib in $deplibs; do
18328 + case " $new_libs " in
18329 + *" $deplib "*) ;;
18330 + *) new_libs="$new_libs $deplib" ;;
18333 + *) new_libs="$new_libs $deplib" ;;
18336 + deplibs="$new_libs"
18339 + # All the library-specific variables (install_libdir is set above).
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=
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"
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"*)
18363 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18368 + eval flag=\"$hardcode_libdir_flag_spec\"
18369 + dep_rpath="$dep_rpath $flag"
18371 + elif test -n "$runpath_var"; then
18372 + case "$perm_rpath " in
18373 + *" $libdir "*) ;;
18374 + *) perm_rpath="$perm_rpath $libdir" ;;
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\"
18385 + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
18388 + if test -n "$runpath_var" && test -n "$perm_rpath"; then
18389 + # We should set the runpath_var.
18391 + for dir in $perm_rpath; do
18392 + rpath="$rpath$dir:"
18394 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
18396 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
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"
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
18412 + if test -n "$soname_spec"; then
18413 + eval soname=\"$soname_spec\"
18415 + soname="$realname"
18417 + if test -z "$dlname"; then
18421 + lib="$output_objdir/$realname"
18425 + linknames="$linknames $link"
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
18441 + eval cmd=\"$cmd\"
18442 + if len=`expr "X$cmd" : ".*"` &&
18443 + test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
18445 + $run eval "$cmd" || exit $?
18446 + skipped_export=false
18448 + # The command line is too long to execute in one step.
18449 + $show "using reloadable object file for export list..."
18451 + # Break out early, otherwise skipped_export may be
18452 + # set to false by a later but shorter cmd.
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"'
18466 + if test -n "$export_symbols" && test -n "$include_expsyms"; then
18467 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
18471 + for test_deplib in $deplibs; do
18472 + case " $convenience " in
18473 + *" $test_deplib "*) ;;
18475 + tmp_deplibs="$tmp_deplibs $test_deplib"
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\"
18486 + gentop="$output_objdir/${outputname}x"
18487 + generated="$generated $gentop"
18489 + func_extract_archives $gentop $convenience
18490 + libobjs="$libobjs $func_extract_archives_result"
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"
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 $?
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
18510 + eval test_cmds=\"$module_cmds\"
18511 + cmds=$module_cmds
18514 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
18515 + eval test_cmds=\"$archive_expsym_cmds\"
18516 + cmds=$archive_expsym_cmds
18518 + eval test_cmds=\"$archive_cmds\"
18519 + cmds=$archive_cmds
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
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
18539 + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
18540 + save_libobjs=$libobjs
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.
18553 + output=$output_objdir/$output_la-${k}.$objext
18554 + # Loop over the list of objects to be linked.
18555 + for obj in $save_libobjs
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"
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\"
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\"
18573 + last_robj=$output_objdir/$output_la-${k}.$objext
18575 + output=$output_objdir/$output_la-${k}.$objext
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
18591 + # Append the command to create the export file.
18592 + eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
18595 + # Set up a command to remove the reloadable object files
18596 + # after they are used.
18598 + while test "$i" -lt "$k"
18601 + delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
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
18611 + $run eval "$cmd" || exit $?
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\"
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
18630 + cmds=$module_cmds
18633 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
18634 + cmds=$archive_expsym_cmds
18636 + cmds=$archive_cmds
18640 + # Append the command to remove the reloadable object files
18641 + # to the just-reset $cmds.
18642 + eval cmds=\"\$cmds~\$rm $delfiles\"
18644 + save_ifs="$IFS"; IFS='~'
18645 + for cmd in $cmds; do
18647 + eval cmd=\"$cmd\"
18649 + $run eval "$cmd" || {
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)'
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"
18673 + exit $EXIT_SUCCESS
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 $?
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.
18693 + if test -n "$deplibs"; then
18694 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
18697 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
18698 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
18701 + if test -n "$rpath"; then
18702 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
18705 + if test -n "$xrpath"; then
18706 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
18709 + if test -n "$vinfo"; then
18710 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
18713 + if test -n "$release"; then
18714 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
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
18724 + obj=`$echo "X$output" | $Xsed -e "$lo2o"`
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=
18741 + # reload_cmds runs $LD directly, so let us get rid of
18742 + # -Wl from whole_archive_flag_spec
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\"
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"
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
18761 + cmds=$reload_cmds
18762 + save_ifs="$IFS"; IFS='~'
18763 + for cmd in $cmds; do
18765 + eval cmd=\"$cmd\"
18767 + $run eval "$cmd" || exit $?
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
18778 + exit $EXIT_SUCCESS
18781 + if test "$build_libtool_libs" != yes; then
18782 + if test -n "$gentop"; then
18783 + $show "${rm}r $gentop"
18784 + $run ${rm}r $gentop
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
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"
18798 + cmds=$reload_cmds
18799 + save_ifs="$IFS"; IFS='~'
18800 + for cmd in $cmds; do
18802 + eval cmd=\"$cmd\"
18804 + $run eval "$cmd" || exit $?
18809 + if test -n "$gentop"; then
18810 + $show "${rm}r $gentop"
18811 + $run ${rm}r $gentop
18814 + exit $EXIT_SUCCESS
18819 + *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
18821 + if test -n "$vinfo"; then
18822 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
18825 + if test -n "$release"; then
18826 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
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."
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 /'`
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"
18855 + # move library search paths that coincide with paths to not yet
18856 + # installed libraries to the beginning of the library search list
18858 + for path in $notinst_path; do
18859 + case " $new_libs " in
18860 + *" -L$path/$objdir "*) ;;
18862 + case " $compile_deplibs " in
18863 + *" -L$path/$objdir "*)
18864 + new_libs="$new_libs -L$path/$objdir" ;;
18869 + for deplib in $compile_deplibs; do
18872 + case " $new_libs " in
18873 + *" $deplib "*) ;;
18874 + *) new_libs="$new_libs $deplib" ;;
18877 + *) new_libs="$new_libs $deplib" ;;
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" ;;
18897 + # Now hardcode the library paths
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"
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"*)
18911 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18916 + eval flag=\"$hardcode_libdir_flag_spec\"
18917 + rpath="$rpath $flag"
18919 + elif test -n "$runpath_var"; then
18920 + case "$perm_rpath " in
18921 + *" $libdir "*) ;;
18922 + *) perm_rpath="$perm_rpath $libdir" ;;
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";;
18932 + case :$dllsearchpath: in
18933 + *":$testbindir:"*) ;;
18934 + *) dllsearchpath="$dllsearchpath:$testbindir";;
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\"
18945 + compile_rpath="$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"
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"*)
18960 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
18965 + eval flag=\"$hardcode_libdir_flag_spec\"
18966 + rpath="$rpath $flag"
18968 + elif test -n "$runpath_var"; then
18969 + case "$finalize_perm_rpath " in
18970 + *" $libdir "*) ;;
18971 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
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\"
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`
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"
18994 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
18998 + if test -n "$dlsyms"; then
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
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'"
19037 + if test -n "$exclude_expsyms"; then
19038 + $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
19039 + $run eval '$mv "$nlist"T "$nlist"'
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"'
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"'
19053 + *cygwin* | *mingw* )
19054 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
19055 + $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
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"'
19063 + *cygwin* | *mingw* )
19064 + $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
19065 + $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
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'"
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"
19087 + # Try sorting and uniquifying the output.
19088 + if grep -v "^: " < "$nlist" |
19089 + if sort -k 3 </dev/null >/dev/null 2>&1; then
19094 + uniq > "$nlist"S; then
19097 + grep -v "^: " < "$nlist" > "$nlist"S
19100 + if test -f "$nlist"S; then
19101 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
19103 + $echo '/* NONE */' >> "$output_objdir/$dlsyms"
19106 + $echo >> "$output_objdir/$dlsyms" "\
19108 +#undef lt_preloaded_symbols
19110 +#if defined (__STDC__) && __STDC__
19111 +# define lt_ptr void *
19113 +# define lt_ptr char *
19117 +/* The mapping between symbol names and symbols. */
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 */
19130 + $echo >> "$output_objdir/$dlsyms" "\
19137 + $echo >> "$output_objdir/$dlsyms" "\
19138 + const char *name;
19141 +lt_preloaded_symbols[] =
19145 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
19147 + $echo >> "$output_objdir/$dlsyms" "\
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;
19158 +#ifdef __cplusplus
19164 + pic_flag_for_symtable=
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";;
19177 + case "$compile_command " in
19178 + *" -static "*) ;;
19179 + *) pic_flag_for_symtable=" $pic_flag";;
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.
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}%"`
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}%"`
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}%"`
19209 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
19210 + exit $EXIT_FAILURE
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@%%"`
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"
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}"
19239 + exit $exit_status
19242 + if test -n "$shlibpath_var"; then
19243 + # We should set the shlibpath_var
19245 + for dir in $temp_rpath; do
19247 + [\\/]* | [A-Za-z]:[\\/]*)
19249 + rpath="$rpath$dir:"
19252 + # Relative path: add a thisdir entry.
19253 + rpath="$rpath\$thisdir/$dir:"
19257 + temp_rpath="$rpath"
19260 + if test -n "$compile_shlibpath$finalize_shlibpath"; then
19261 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
19263 + if test -n "$finalize_shlibpath"; then
19264 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
19269 + if test -n "$runpath_var"; then
19270 + if test -n "$perm_rpath"; then
19271 + # We should set the runpath_var.
19273 + for dir in $perm_rpath; do
19274 + rpath="$rpath$dir:"
19276 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
19278 + if test -n "$finalize_perm_rpath"; then
19279 + # We should set the runpath_var.
19281 + for dir in $finalize_perm_rpath; do
19282 + rpath="$rpath$dir:"
19284 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
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.
19295 + # Link the executable and exit
19296 + $show "$link_command"
19297 + $run eval "$link_command" || exit $?
19298 + exit $EXIT_SUCCESS
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
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'`
19314 + # fast_install is set to needless
19318 + link_command="$compile_var$compile_command$compile_rpath"
19319 + relink_command="$finalize_var$finalize_command$finalize_rpath"
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"
19344 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
19345 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
19348 + relink_command="(cd `pwd`; $relink_command)"
19349 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
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";;
19358 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
19360 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
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.
19368 + *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
19370 + # test for cygwin because mv fails w/o .exe extensions
19374 + outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
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.
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
19418 +# define LT_PATHMAX 1024
19421 +#ifndef DIR_SEPARATOR
19422 +# define DIR_SEPARATOR '/'
19423 +# define PATH_SEPARATOR ':'
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 '\\'
19432 +# ifndef PATH_SEPARATOR_2
19433 +# define PATH_SEPARATOR_2 ';'
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; } \
19455 +/* -DDEBUG is fairly common in CFLAGS. */
19457 +#if defined DEBUGWRAPPER
19458 +# define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
19460 +# define DEBUG(format, ...)
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, ...);
19474 +main (int argc, char *argv[])
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);
19485 + cat >> $cwrappersource <<EOF
19486 + newargz[0] = (char *) xstrdup("$SHELL");
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]);
19511 + cat >> $cwrappersource <<EOF
19512 + execv("$SHELL",(char const **)newargz);
19516 + cat >> $cwrappersource <<EOF
19517 + execv("$SHELL",newargz);
19522 + cat >> $cwrappersource <<"EOF"
19527 +xmalloc (size_t num)
19529 + void * p = (void *) malloc (num);
19531 + lt_fatal ("Memory exhausted");
19537 +xstrdup (const char *string)
19539 + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
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] == ':')
19554 + for (base = name; *name; name++)
19555 + if (IS_DIR_SEPARATOR (*name))
19561 +check_executable(const char * path)
19565 + DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
19566 + if ((!path) || (!*path))
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) ||
19575 +#if defined (S_IXGRP)
19576 + ((st.st_mode & S_IXGRP) == S_IXGRP) ||
19578 + ((st.st_mode & S_IXUSR) == S_IXUSR))
19585 +/* Searches for the full path of the wrapper. Returns
19586 + newly allocated full path name if found, NULL otherwise */
19588 +find_executable (const char* wrapper)
19590 + int has_slash = 0;
19592 + const char* p_next;
19593 + /* static buffer for getcwd */
19594 + char tmp[LT_PATHMAX + 1];
19596 + char* concat_name;
19598 + DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
19600 + if ((wrapper == NULL) || (*wrapper == '\0'))
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);
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)
19626 + for (p = wrapper; *p; p++)
19634 + /* no slashes; search PATH */
19635 + const char* path = getenv ("PATH");
19636 + if (path != NULL)
19638 + for (p = path; *p; p = p_next)
19642 + for (q = p; *q; q++)
19643 + if (IS_PATH_SEPARATOR(*q))
19646 + p_next = (*q == '\0' ? q : q + 1);
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);
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);
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)
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);
19720 +lt_fatal (const char *message, ...)
19723 + va_start (ap, message);
19724 + lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
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
19737 + trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
19739 + $echo > $output "\
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'
19767 + # When we are sourced in execute mode, \$file and \$echo are already set.
19768 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
19771 + # Make sure echo works.
19772 + if test \"X\$1\" = X--no-reexec; then
19773 + # Discard the --no-reexec flag, and continue.
19775 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
19776 + # Yippee, \$echo works!
19779 + # Restart under the correct shell, and then maybe \$echo will work.
19780 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
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\" ;;
19803 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
19804 + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
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\"
19826 + $rm \"\$progdir/\$file\"
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 :
19835 + $echo \"\$relink_command_output\" >&2
19836 + $rm \"\$progdir/\$file\"
19837 + exit $EXIT_FAILURE
19841 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
19842 + { $rm \"\$progdir/\$program\";
19843 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
19844 + $rm \"\$progdir/\$file\"
19847 + $echo >> $output "\
19848 + program='$outputname'
19849 + progdir=\"\$thisdir/$objdir\"
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
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
19879 + $echo >> $output "\
19880 + if test \"\$libtool_execute_magic\" != \"$magic\"; then
19881 + # Run the actual program with our arguments.
19884 + # Backslashes separate directories on plain windows
19885 + *-*-mingw | *-*-os2*)
19886 + $echo >> $output "\
19887 + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
19892 + $echo >> $output "\
19893 + exec \"\$progdir/\$program\" \${1+\"\$@\"}
19897 + $echo >> $output "\
19898 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
19899 + exit $EXIT_FAILURE
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
19912 + exit $EXIT_SUCCESS
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
19924 + if test "$build_libtool_libs" = module; then
19925 + oldobjs="$libobjs_save"
19926 + build_libtool_libs=no
19928 + oldobjs="$old_deplibs $non_pic_objects"
19930 + addlibs="$old_convenience"
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"
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
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
19953 + $echo "X$obj" | $Xsed -e 's%^.*/%%'
19954 + done | sort | sort -uc >/dev/null 2>&1); then
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"
19968 + if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
19969 + exit $exit_status
19973 + save_oldobjs=$oldobjs
19976 + for obj in $save_oldobjs
19978 + objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
19979 + case " $oldobjs " in
19980 + " ") oldobjs=$obj ;;
19981 + *[\ /]"$objbase "*)
19983 + # Make sure we don't pick an alternate name that also
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 ;;
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"
19997 + *) oldobjs="$oldobjs $obj" ;;
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
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
20014 + save_oldobjs=$oldobjs
20016 + # Is there a better way of finding the last object in the list?
20017 + for obj in $save_oldobjs
20021 + for obj in $save_oldobjs
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
20030 + # the above command should be used before it gets too long
20032 + if test "$obj" = "$last_oldobj" ; then
20033 + RANLIB=$save_RANLIB
20035 + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
20036 + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
20040 + RANLIB=$save_RANLIB
20042 + if test "X$oldobjs" = "X" ; then
20043 + eval cmds=\"\$concat_cmds\"
20045 + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
20049 + save_ifs="$IFS"; IFS='~'
20050 + for cmd in $cmds; do
20051 + eval cmd=\"$cmd\"
20054 + $run eval "$cmd" || exit $?
20059 + if test -n "$generated"; then
20060 + $show "${rm}r$generated"
20061 + $run ${rm}r$generated
20064 + # Now create the libtool archive.
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"
20078 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
20079 + relink_command="$var=\"$var_value\"; export $var; $relink_command"
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
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
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
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
20109 + newdependency_libs="$newdependency_libs $libdir/$name"
20111 + *) newdependency_libs="$newdependency_libs $deplib" ;;
20114 + dependency_libs="$newdependency_libs"
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
20123 + newdlfiles="$newdlfiles $libdir/$name"
20125 + dlfiles="$newdlfiles"
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
20134 + newdlprefiles="$newdlprefiles $libdir/$name"
20136 + dlprefiles="$newdlprefiles"
20139 + for lib in $dlfiles; do
20141 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
20142 + *) abs=`pwd`"/$lib" ;;
20144 + newdlfiles="$newdlfiles $abs"
20146 + dlfiles="$newdlfiles"
20148 + for lib in $dlprefiles; do
20150 + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
20151 + *) abs=`pwd`"/$lib" ;;
20153 + newdlprefiles="$newdlprefiles $abs"
20155 + dlprefiles="$newdlprefiles"
20158 + # place dlname in correct position for cygwin
20160 + case $host,$output,$installed,$module,$dlname in
20161 + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
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).
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.
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
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\""
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 $?
20212 + exit $EXIT_SUCCESS
20215 + # libtool install mode
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"`
20227 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
20231 + install_prog="$arg "
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"`
20243 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
20247 + install_prog="$install_prog$arg"
20249 + # We need to accept at least all the BSD install flags.
20259 + if test -n "$dest"; then
20260 + files="$files $dest"
20268 + case " $install_prog " in
20269 + *[\\\ /]cp\ *) ;;
20273 + -g | -m | -o) prev=$arg ;;
20281 + # If the previous option needed an argument, then skip it.
20282 + if test -n "$prev"; then
20291 + # Aesthetically quote the argument.
20292 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
20294 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
20298 + install_prog="$install_prog $arg"
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
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
20313 + if test -z "$files"; then
20314 + if test -z "$dest"; then
20315 + $echo "$modename: no file or destination specified" 1>&2
20317 + $echo "$modename: you must specify a destination" 1>&2
20319 + $echo "$help" 1>&2
20320 + exit $EXIT_FAILURE
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
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.
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
20345 + [\\/]* | [A-Za-z]:[\\/]*) ;;
20347 + for file in $files; do
20351 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
20352 + $echo "$help" 1>&2
20353 + exit $EXIT_FAILURE
20360 + # This variable tells wrapper scripts just to set variables rather
20361 + # than running their programs.
20362 + libtool_install_magic="$magic"
20367 + for file in $files; do
20369 + # Do each installation.
20372 + # Do the static libraries later.
20373 + staticlibs="$staticlibs $file"
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 :
20380 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
20381 + $echo "$help" 1>&2
20382 + exit $EXIT_FAILURE
20388 + # If there is no directory component, then add one.
20390 + */* | *\\*) . $file ;;
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" ;;
20401 + # Note the libdir as a future libdir.
20402 + case "$future_libdirs " in
20403 + *" $libdir "*) ;;
20404 + *) future_libdirs="$future_libdirs $libdir" ;;
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
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%"`
20431 + relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
20434 + $echo "$modename: warning: relinking \`$file'" 1>&2
20435 + $show "$relink_command"
20436 + if $run eval "$relink_command"; then :
20438 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
20439 + exit $EXIT_FAILURE
20443 + # See the names of the shared library.
20444 + set dummy $library_names
20445 + if test -n "$2"; then
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 $?
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.
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; }; })"
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
20481 + eval cmd=\"$cmd\"
20483 + $run eval "$cmd" || {
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)'
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"
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"
20514 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
20515 + destfile="$destdir/$destfile"
20518 + # Deduce the name of the destination old-style object file.
20519 + case $destfile in
20521 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
20524 + staticdest="$destfile"
20528 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
20529 + $echo "$help" 1>&2
20530 + exit $EXIT_FAILURE
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 $?
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 $?
20548 + exit $EXIT_SUCCESS
20552 + # Figure out destination file name, if it wasn't already specified.
20553 + if test -n "$destname"; then
20554 + destfile="$destdir/$destname"
20556 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
20557 + destfile="$destdir/$destfile"
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
20566 + if test ! -f "$file"; then
20567 + file=`$echo $file|${SED} 's,.exe$,,'`
20568 + stripped_ext=".exe"
20573 + # Do a test to see if this is really a libtool program.
20575 + *cygwin*|*mingw*)
20576 + wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
20582 + if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
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.
20593 + */* | *\\*) . ${wrapper} ;;
20594 + *) . ./${wrapper} ;;
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
20604 + for lib in $notinst_deplibs; do
20605 + # Check to see that each library is installed.
20607 + if test -f "$lib"; then
20608 + # If there is no directory component, then add one.
20610 + */* | *\\*) . $lib ;;
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
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.
20629 + */* | *\\*) . ${wrapper} ;;
20630 + *) . ./${wrapper} ;;
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 :
20645 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
20649 + file="$outputname"
20651 + $echo "$modename: warning: cannot relink \`$file'" 1>&2
20654 + # Install the binary that we compiled earlier.
20655 + file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
20659 + # remove .exe since cygwin /usr/bin/install will append another
20661 + case $install_prog,$host in
20662 + */usr/bin/install*,*cygwin*)
20663 + case $file:$destfile in
20668 + destfile=$destfile.exe
20671 + destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
20676 + $show "$install_prog$stripme $file $destfile"
20677 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
20678 + test -n "$outputname" && ${rm}r "$tmpdir"
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 $?
20697 + # Do each command in the postinstall commands.
20698 + cmds=$old_postinstall_cmds
20699 + save_ifs="$IFS"; IFS='~'
20700 + for cmd in $cmds; do
20702 + eval cmd=\"$cmd\"
20704 + $run eval "$cmd" || exit $?
20709 + if test -n "$future_libdirs"; then
20710 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
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'
20718 + exit $EXIT_SUCCESS
20722 + # libtool finish mode
20724 + modename="$modename: finish"
20725 + libdirs="$nonopt"
20728 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
20731 + libdirs="$libdirs $dir"
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
20741 + eval cmd=\"$cmd\"
20743 + $run eval "$cmd" || admincmds="$admincmds
20748 + if test -n "$finish_eval"; then
20749 + # Do the single finish_eval.
20750 + eval cmds=\"$finish_eval\"
20751 + $run eval "$cmds" || admincmds="$admincmds
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
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"
20774 + if test -n "$runpath_var"; then
20775 + $echo " - add LIBDIR to the \`$runpath_var' environment variable"
20776 + $echo " during linking"
20778 + if test -n "$hardcode_libdir_flag_spec"; then
20780 + eval flag=\"$hardcode_libdir_flag_spec\"
20782 + $echo " - use the \`$flag' linker flag"
20784 + if test -n "$admincmds"; then
20785 + $echo " - have your system administrator run these commands:$admincmds"
20787 + if test -f /etc/ld.so.conf; then
20788 + $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
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
20797 + # libtool execute mode
20799 + modename="$modename: execute"
20801 + # The first argument is the command name.
20803 + if test -z "$cmd"; then
20804 + $echo "$modename: you must specify a COMMAND" 1>&2
20806 + exit $EXIT_FAILURE
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
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 :
20823 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
20824 + $echo "$help" 1>&2
20825 + exit $EXIT_FAILURE
20828 + # Read the libtool library.
20832 + # If there is no directory component, then add one.
20834 + */* | *\\*) . $file ;;
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'"
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"
20851 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
20852 + exit $EXIT_FAILURE
20857 + # Just add the directory containing the .lo file.
20858 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
20859 + test "X$dir" = "X$file" && dir=.
20863 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
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\""
20876 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
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.
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.
20895 + */* | *\\*) . $file ;;
20899 + # Transform arg to wrapped name.
20900 + file="$progdir/$program"
20904 + # Quote arguments (to preserve shell metacharacters).
20905 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
20906 + args="$args \"$file\""
20909 + if test -z "$run"; then
20910 + if test -n "$shlibpath_var"; then
20911 + # Export the shlibpath_var.
20912 + eval "export $shlibpath_var"
20915 + # Restore saved environment variables
20916 + if test "${save_LC_ALL+set}" = set; then
20917 + LC_ALL="$save_LC_ALL"; export LC_ALL
20919 + if test "${save_LANG+set}" = set; then
20920 + LANG="$save_LANG"; export LANG
20923 + # Now prepare to actually exec the command.
20924 + exec_cmd="\$cmd$args"
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"
20931 + $echo "$cmd$args"
20932 + exit $EXIT_SUCCESS
20936 + # libtool clean and uninstall mode
20937 + clean | uninstall)
20938 + modename="$modename: $mode"
20944 + # This variable tells wrapper scripts just to set variables rather
20945 + # than running their programs.
20946 + libtool_install_magic="$magic"
20951 + -f) rm="$rm $arg"; rmforce=yes ;;
20952 + -*) rm="$rm $arg" ;;
20953 + *) files="$files $arg" ;;
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
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
20970 + objdir="$origobjdir"
20972 + objdir="$dir/$origobjdir"
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" ;;
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
20993 + elif test "$rmforce" = yes; then
21001 + # Possibly a libtool archive, so verify it.
21002 + if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
21005 + # Delete the libtool libraries and symlinks.
21006 + for n in $library_names; do
21007 + rmfiles="$rmfiles $objdir/$n"
21009 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
21013 + case " $library_names " in
21014 + # " " in the beginning catches empty $dlname
21015 + *" $dlname "*) ;;
21016 + *) rmfiles="$rmfiles $objdir/$dlname" ;;
21018 + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
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
21027 + eval cmd=\"$cmd\"
21030 + if test "$?" -ne 0 && test "$rmforce" != yes; then
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
21043 + eval cmd=\"$cmd\"
21046 + if test "$?" -ne 0 && test "$rmforce" != yes; then
21052 + # FIXME: should reinstall the best remaining shared library.
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
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"
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"
21080 + if test "$mode" = clean ; then
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"
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
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"
21102 + if test "X$noexename" != "X$name" ; then
21103 + rmfiles="$rmfiles $objdir/lt-${noexename}.c"
21109 + $show "$rm $rmfiles"
21110 + $run $rm $rmfiles || exit_status=1
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
21122 + exit $exit_status
21126 + $echo "$modename: you must specify a MODE" 1>&2
21127 + $echo "$generic_help" 1>&2
21128 + exit $EXIT_FAILURE
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
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.
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
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
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."
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'."
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'
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."
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."
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)."
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
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."
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
21325 +If FILE is a libtool library, all the files associated with it are deleted.
21326 +Otherwise, only FILE itself is deleted using RM."
21330 + $echo "$modename: invalid operation mode \`$mode'" 1>&2
21331 + $echo "$help" 1>&2
21332 + exit $EXIT_FAILURE
21337 +$echo "Try \`$modename --help' for more information about other modes."
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
21364 diff --git a/config/missing b/config/missing
21365 new file mode 100755
21366 index 0000000..894e786
21368 +++ b/config/missing
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"
21406 +# In the cases where this matters, `missing' is being run in the
21408 +if test -f configure.ac; then
21409 + configure_ac=configure.ac
21411 + configure_ac=configure.in
21414 +msg="missing on your system"
21418 + # Try to run requested program, and just exit if it succeeds.
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
21429 + msg="probably too old"
21433 + -h|--h|--he|--hel|--help)
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.
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>."
21462 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
21463 + echo "missing $scriptversion (GNU Automake)"
21468 + echo 1>&2 "$0: Unknown \`$1' option"
21469 + echo 1>&2 "Try \`$0 --help' for more information"
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
21480 + # Not GNU programs, they don't have --version.
21484 + if test -n "$run"; then
21485 + echo 1>&2 "ERROR: \`tar' requires --run"
21487 + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
21493 + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
21494 + # We have it, but it failed.
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.
21505 +# If it does not exist, or fails to run (possibly an outdated version),
21506 +# try to emulate it.
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."
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
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"
21535 + for f in $files; do
21537 + *:*) touch_files="$touch_files "`echo "$f" |
21538 + sed -e 's/^[^:]*://' -e 's/:.*//'`;;
21539 + *) touch_files="$touch_files $f.in";;
21542 + touch $touch_files
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
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
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
21569 + test -z "$file" || exec >$file
21570 + echo "#! /bin/sh"
21571 + echo "# Created by GNU Automake missing as a replacement of"
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
21590 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
21591 + if [ -f "$SRCFILE" ]; then
21592 + cp "$SRCFILE" y.tab.c
21594 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
21595 + if [ -f "$SRCFILE" ]; then
21596 + cp "$SRCFILE" y.tab.h
21601 + if [ ! -f y.tab.h ]; then
21604 + if [ ! -f y.tab.c ]; then
21605 + echo 'main() { return 0; }' >y.tab.c
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."
21616 + if [ $# -ne 1 ]; then
21617 + eval LASTARG="\${$#}"
21618 + case "$LASTARG" in
21620 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
21621 + if [ -f "$SRCFILE" ]; then
21622 + cp "$SRCFILE" lex.yy.c
21627 + if [ ! -f lex.yy.c ]; then
21628 + echo 'main() { return 0; }' >lex.yy.c
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'`
21643 + if [ -f "$file" ]; then
21646 + test -z "$file" || exec >$file
21647 + echo ".ab help2man is required to generate this page"
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
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
21678 + # We have already tried tar in the generic part.
21679 + # Look for gnutar/gtar before invocation to avoid ugly error
21681 + if (gnutar --version > /dev/null 2>&1); then
21682 + gnutar "$@" && exit 0
21684 + if (gtar --version > /dev/null 2>&1); then
21685 + gtar "$@" && exit 0
21689 + case "$firstarg" in
21691 + firstarg=`echo "$firstarg" | sed s/o//`
21692 + tar "$firstarg" "$@" && exit 0
21695 + case "$firstarg" in
21697 + firstarg=`echo "$firstarg" | sed s/h//`
21698 + tar "$firstarg" "$@" && exit 0
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."
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."
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: "$"
21730 diff --git a/configure b/configure
21731 index 35c9db5..30f498e 100755
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
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
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
21769 +# Work around bugs in pre-3.0 UWIN ksh.
21770 +$as_unset ENV MAIL MAILPATH
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
21784 + $as_unset $as_var
21788 +# Required to use basename.
21789 +if expr a : '\(a\)' >/dev/null 2>&1; then
21795 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
21796 + as_basename=basename
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 ||
21809 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
21810 + /^X\/\(\/\/\)$/{ s//\1/; q; }
21811 + /^X\/\(\/\).*/{ s//\1/; 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=';'
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.
21845 + *[\\/]* ) as_myself=$0 ;;
21846 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21847 +for as_dir in $PATH
21850 + test -z "$as_dir" && as_dir=.
21851 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
21865 + case $CONFIG_SHELL in
21867 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21868 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
21871 + test -z "$as_dir" && as_dir=.
21872 + for as_base in sh bash ksh sh5; do
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+"$@"}
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 |
21908 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
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.
21926 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
21927 + *c*,-n*) ECHO_N= ECHO_C='
21929 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
21930 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
21933 +if expr a : '\(a\)' >/dev/null 2>&1; then
21939 +rm -f conf$$ conf$$.exe 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
21950 +elif ln conf$$.file conf$$ 2>/dev/null; then
21955 +rm -f conf$$ conf$$.exe conf$$.file
21957 +if mkdir -p . 2>/dev/null; then
21960 + test -d ./-p && rmdir ./-p
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'"
21974 +# We need space, tab and new line, in precisely that order.
21984 +# Check that we are running under the correct shell.
21985 +SHELL=${CONFIG_SHELL-/bin/sh}
21988 +X*--fallback-echo)
21989 + # Remove one level of quotation (which was required for Make).
21990 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
21995 +if test "X$1" = X--no-reexec; then
21996 + # Discard the --no-reexec flag, and continue.
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!
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
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
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
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
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.
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+"$@"}
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"
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"
22098 + # maybe with a smaller string...
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
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+"$@"}
22114 + # Oops. We lost completely, so just stick with echo.
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.
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`
22145 +# Initializations.
22147 ac_default_prefix=/usr/local
22148 -# Any additions from configure.in:
22150 - --enable-shared build shared library using GNU libtool"
22152 - --enable-static build static library using GNU libtool"
22154 - --enable-maxmem[=N] enable use of temp files, set max mem usage to N MB"
22157 +ac_config_libobj_dir=.
22158 +cross_compiling=no
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.
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>
22183 +#if HAVE_SYS_STAT_H
22184 +# include <sys/stat.h>
22187 +# include <stdlib.h>
22188 +# include <stddef.h>
22190 +# if HAVE_STDLIB_H
22191 +# include <stdlib.h>
22195 +# if !STDC_HEADERS && HAVE_MEMORY_H
22196 +# include <memory.h>
22198 +# include <string.h>
22200 +#if HAVE_STRINGS_H
22201 +# include <strings.h>
22203 +#if HAVE_INTTYPES_H
22204 +# include <inttypes.h>
22206 +# if HAVE_STDINT_H
22207 +# include <stdint.h>
22211 +# include <unistd.h>
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'
22217 # Initialize some variables set by options.
22219 +ac_init_version=false
22220 # The variables have the same names as the options, with
22221 # dashes changed to underlines.
22223 -cache_file=./config.cache
22224 +cache_file=/dev/null
22231 program_prefix=NONE
22232 @@ -37,10 +482,15 @@ program_transform_name=s,x,x,
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.
22255 -MFLAGS= MAKEFLAGS=
22256 -# Maximum number of lines to put in a shell here document.
22257 -ac_max_here_lines=12
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
22270 - case "$ac_option" in
22271 - -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
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)
22283 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
22284 - bindir="$ac_optarg" ;;
22285 + bindir=$ac_optarg ;;
22287 -build | --build | --buil | --bui | --bu)
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)
22307 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
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; }
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; }
22334 - ac_feature=`echo $ac_feature| sed 's/-/_/g'`
22335 - case "$ac_option" in
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 ;;
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.
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.
22365 -Usage: configure [options] [host]
22366 -Options: [defaults in brackets after descriptions]
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
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
22383 - --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
22384 - --sharedstatedir=DIR modifiable architecture-independent data in DIR
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
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
22411 - if test -n "$ac_help"; then
22412 - echo "--enable and --with options recognized:$ac_help"
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)
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)
22439 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
22440 - infodir="$ac_optarg" ;;
22441 + infodir=$ac_optarg ;;
22443 -libdir | --libdir | --libdi | --libd)
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)
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.
22476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
22477 - | --no-cr | --no-c)
22478 + | --no-cr | --no-c | -n)
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)
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
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)
22540 -site=* | --site=* | --sit=*)
22541 - site="$ac_optarg" ;;
22542 + site=$ac_optarg ;;
22544 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
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)
22568 - -version | --version | --versio | --versi | --vers)
22569 - echo "configure generated by autoconf version 2.12"
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; }
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
22587 + case $ac_option in
22588 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
22589 *) ac_optarg=yes ;;
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; }
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" ;;
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; }; }
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; }
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
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; }
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}
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
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
22691 -exec 5>./config.log
22694 -This file contains any messages produced by compilers while
22695 -running configure, to aid debugging if configure makes a mistake.
22697 +# Be sure to have absolute paths.
22698 +for ac_var in exec_prefix prefix
22700 + eval ac_val=$`echo $ac_var`
22702 + [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
22703 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
22704 + { (exit 1); exit 1; }; };;
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=
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`
22726 + [\\/$]* | ?:[\\/]* ) ;;
22727 + *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
22728 + { (exit 1); exit 1; }; };;
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
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.
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
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.
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 ||
22786 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22787 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
22788 + /^X\(\/\/\)$/{ s//\1/; q; }
22789 + /^X\(\/\).*/{ s//\1/; q; }
22792 if test ! -r $srcdir/$ac_unique_file; then
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; }; }
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.
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.
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 \`..']
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
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]
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
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]
22937 +if test -n "$ac_init_help"; then
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
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.
22987 +if test "$ac_init_help" = "recursive"; then
22988 + # If there are subdirs, report their specific --help.
22990 + for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
22991 + test -d $ac_dir || continue
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'`
22999 + ac_dir_suffix= ac_top_builddir=
23003 + .) # No --srcdir option. We are building in place.
23005 + if test -z "$ac_top_builddir"; then
23008 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
23018 +# Do not use `cd foo && pwd` to compute absolute paths, because
23019 +# the directories may not exist.
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";;
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}.;;
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;;
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;;
23058 + # Check for guested configure; otherwise get Cygnus style configure.
23059 + if test -f $ac_srcdir/configure.gnu; then
23061 + $SHELL $ac_srcdir/configure.gnu --help=recursive
23062 + elif test -f $ac_srcdir/configure; then
23064 + $SHELL $ac_srcdir/configure --help=recursive
23065 + elif test -f $ac_srcdir/configure.ac ||
23066 + test -f $ac_srcdir/configure.in; then
23068 + $ac_configure --help
23070 + echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
23076 +test -n "$ac_init_help" && exit 0
23077 +if $ac_init_version; then
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.
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
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`
23122 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23123 +for as_dir in $PATH
23126 + test -z "$as_dir" && as_dir=.
23127 + echo "PATH: $as_dir"
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=
23151 +ac_must_keep_next=false
23152 +for ac_pass in 1 2
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)
23161 + *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
23162 + ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23165 + 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
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.
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 ;;
23180 + -* ) ac_must_keep_next=true ;;
23183 + ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
23184 + # Get rid of the leading space.
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.
23204 +## ---------------- ##
23205 +## Cache variables. ##
23206 +## ---------------- ##
23209 + # The following way of writing the cache mishandles newlines in values,
23212 + case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
23215 + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
23216 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
23220 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23227 +## ----------------- ##
23228 +## Output variables. ##
23229 +## ----------------- ##
23232 + for ac_var in $ac_subst_vars
23234 + eval ac_val=$`echo $ac_var`
23235 + echo "$ac_var='"'"'$ac_val'"'"'"
23239 + if test -n "$ac_subst_files"; then
23241 +## ------------- ##
23242 +## Output files. ##
23243 +## ------------- ##
23246 + for ac_var in $ac_subst_files
23248 + eval ac_val=$`echo $ac_var`
23249 + echo "$ac_var='"'"'$ac_val'"'"'"
23254 + if test -s confdefs.h; then
23261 + sed "/^$/d" confdefs.h | sort
23264 + test "$ac_signal" != 0 &&
23265 + echo "$as_me: caught signal $ac_signal"
23266 + echo "$as_me: exit $exit_status"
23268 + rm -f core *.core &&
23269 + rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
23270 + exit $exit_status
23272 +for ac_signal in 1 2 13 15; do
23273 + trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
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.
23282 +# Predefined preprocessor variables.
23284 +cat >>confdefs.h <<_ACEOF
23285 +#define PACKAGE_NAME "$PACKAGE_NAME"
23289 +cat >>confdefs.h <<_ACEOF
23290 +#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
23294 +cat >>confdefs.h <<_ACEOF
23295 +#define PACKAGE_VERSION "$PACKAGE_VERSION"
23299 +cat >>confdefs.h <<_ACEOF
23300 +#define PACKAGE_STRING "$PACKAGE_STRING"
23304 +cat >>confdefs.h <<_ACEOF
23305 +#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
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
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;;
23337 + { echo "$as_me:$LINENO: creating cache $cache_file" >&5
23338 +echo "$as_me: creating cache $cache_file" >&6;}
23342 +# Check that the precious variables saved in the cache have kept the same
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
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=: ;;
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=: ;;
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=:
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 ;;
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'" ;;
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; }; }
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.
23424 + [\\/]* | ?:[\\/]* ) ac_macro_dir=m4 ;;
23425 + *) ac_macro_dir=$srcdir/m4 ;;
23427 +if test -d "$ac_macro_dir"; then :
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.
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"
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"
23446 + elif test -f $ac_dir/shtool; then
23447 + ac_aux_dir=$ac_dir
23448 + ac_install_sh="$ac_aux_dir/shtool install -c"
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
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
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
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
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
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
23576 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23577 +for as_dir in $PATH
23580 + test -z "$as_dir" && as_dir=.
23581 + # Account for people who put trailing slashes in PATH elements.
23583 + ./ | .// | /cC/* | \
23584 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
23585 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
23603 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
23615 + if test "${ac_cv_path_install+set}" = set; then
23616 + INSTALL=$ac_cv_path_install
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
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
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`
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; }; }
23668 + test "$2" = conftest.file
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,$//
23693 +program_transform_name=`echo $program_transform_name | sed -f 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 "
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 --'
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
23730 + for d in ./-p ./--version;
23732 + test -d $d && rmdir $d
23734 + # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
23735 + if test -f "$ac_aux_dir/mkinstalldirs"; then
23736 + mkdir_p='$(mkinstalldirs)'
23738 + mkdir_p='$(install_sh) -d'
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
23752 + if test -n "$AWK"; then
23753 + ac_cv_prog_AWK="$AWK" # Let the user override the test.
23755 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23756 +for as_dir in $PATH
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
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
23776 + echo "$as_me:$LINENO: result: no" >&5
23777 +echo "${ECHO_T}no" >&6
23780 + test -n "$AWK" && break
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
23789 + cat >conftest.make <<\_ACEOF
23791 + @echo 'ac_maketemp="$(MAKE)"'
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
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
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=.
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'
23839 +# Define the identity of the package.
23844 +cat >>confdefs.h <<_ACEOF
23845 +#define PACKAGE "$PACKAGE"
23849 +cat >>confdefs.h <<_ACEOF
23850 +#define VERSION "$VERSION"
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
23884 + if test -n "$STRIP"; then
23885 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
23887 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23888 +for as_dir in $PATH
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
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
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
23922 + if test -n "$ac_ct_STRIP"; then
23923 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
23925 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23926 +for as_dir in $PATH
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
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
23947 + echo "$as_me:$LINENO: result: no" >&5
23948 +echo "${ECHO_T}no" >&6
23951 + STRIP=$ac_ct_STRIP
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
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
23982 + USE_MAINTAINER_MODE=no
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='#'
23992 + MAINTAINER_MODE_TRUE='#'
23993 + MAINTAINER_MODE_FALSE=
23996 + MAINT=$MAINTAINER_MODE_TRUE
24000 +# Check for programs
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
24014 + if test -n "$CC"; then
24015 + ac_cv_prog_CC="$CC" # Let the user override the test.
24017 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24018 +for as_dir in $PATH
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
24034 +if test -n "$CC"; then
24035 + echo "$as_me:$LINENO: result: $CC" >&5
24036 +echo "${ECHO_T}$CC" >&6
24038 + echo "$as_me:$LINENO: result: no" >&5
24039 +echo "${ECHO_T}no" >&6
24043 +if test -z "$ac_cv_prog_CC"; then
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
24056 + if test -n "$ac_ct_CC"; then
24057 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24059 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24060 +for as_dir in $PATH
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
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
24080 + echo "$as_me:$LINENO: result: no" >&5
24081 +echo "${ECHO_T}no" >&6
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
24098 if test -n "$CC"; then
24099 ac_cv_prog_CC="$CC" # Let the user override the test.
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"
24109 - IFS="$ac_save_ifs"
24110 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24111 +for as_dir in $PATH
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
24126 -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
24133 + echo "$as_me:$LINENO: result: no" >&5
24134 +echo "${ECHO_T}no" >&6
24138 +if test -z "$ac_cv_prog_CC"; then
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
24147 + if test -n "$ac_ct_CC"; then
24148 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24150 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24151 +for as_dir in $PATH
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
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
24171 + echo "$as_me:$LINENO: result: no" >&5
24172 +echo "${ECHO_T}no" >&6
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
24194 if test -n "$CC"; then
24195 ac_cv_prog_CC="$CC" # Let the user override the test.
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
24206 - ac_cv_prog_CC="cc"
24210 - IFS="$ac_save_ifs"
24211 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24212 +for as_dir in $PATH
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
24222 + ac_cv_prog_CC="cc"
24223 + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
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
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.
24239 - set dummy "$ac_dir/$ac_word" "$@"
24241 - ac_cv_prog_CC="$@"
24242 + ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
24247 -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
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
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
24272 + if test -n "$CC"; then
24273 + ac_cv_prog_CC="$CC" # Let the user override the test.
24275 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24276 +for as_dir in $PATH
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
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
24294 +if test -n "$CC"; then
24295 + echo "$as_me:$LINENO: result: $CC" >&5
24296 +echo "${ECHO_T}$CC" >&6
24298 + echo "$as_me:$LINENO: result: no" >&5
24299 +echo "${ECHO_T}no" >&6
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
24311 +if test -z "$CC"; then
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
24322 + if test -n "$ac_ct_CC"; then
24323 + ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
24325 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24326 +for as_dir in $PATH
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
24339 -cat > conftest.$ac_ext <<EOF
24340 -#line 625 "configure"
24341 -#include "confdefs.h"
24342 -main(){return(0);}
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
24356 + echo "$as_me:$LINENO: result: no" >&5
24357 +echo "${ECHO_T}no" >&6
24360 + test -n "$ac_ct_CC" && break
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
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
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
24392 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24393 + (exit $ac_status); }
24395 +cat >conftest.$ac_ext <<_ACEOF
24398 +cat confdefs.h >>conftest.$ac_ext
24399 +cat >>conftest.$ac_ext <<_ACEOF
24400 +/* end confdefs.h. */
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
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
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
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.
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
24435 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
24437 + conftest.$ac_ext )
24438 + # This is the source file.
24441 + # We found the default executable, but exeext='' is most
24442 + # certainly right.
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
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
24481 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 + (exit $ac_status); }; }; then
24483 + cross_compiling=no
24485 - ac_cv_prog_cc_cross=yes
24486 + if test "$cross_compiling" = maybe; then
24487 + cross_compiling=yes
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; }; }
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
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
24522 +for ac_file in conftest.exe conftest conftest.*; do
24523 + test -f "$ac_file" || continue
24525 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
24526 + *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
24527 + export ac_cv_exeext
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; }; }
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
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
24559 + cat >conftest.$ac_ext <<_ACEOF
24562 +cat confdefs.h >>conftest.$ac_ext
24563 +cat >>conftest.$ac_ext <<_ACEOF
24564 +/* end confdefs.h. */
24574 +rm -f conftest.o conftest.obj
24575 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24576 + (eval $ac_compile) 2>&5
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
24582 + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
24583 + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
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
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
24617 - cat > conftest.c <<EOF
24620 + cat >conftest.$ac_ext <<_ACEOF
24623 +cat confdefs.h >>conftest.$ac_ext
24624 +cat >>conftest.$ac_ext <<_ACEOF
24625 +/* end confdefs.h. */
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
24641 +rm -f conftest.$ac_objext
24642 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24643 + (eval $ac_compile) 2>conftest.er1
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
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
24661 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24662 + (exit $ac_status); }; }; then
24663 + ac_compiler_gnu=yes
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
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
24685 + cat >conftest.$ac_ext <<_ACEOF
24688 +cat confdefs.h >>conftest.$ac_ext
24689 +cat >>conftest.$ac_ext <<_ACEOF
24690 +/* end confdefs.h. */
24700 +rm -f conftest.$ac_objext
24701 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24702 + (eval $ac_compile) 2>conftest.er1
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
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
24720 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24721 + (exit $ac_status); }; }; then
24722 + ac_cv_prog_cc_g=yes
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
24743 + if test "$GCC" = yes; then
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
24754 + ac_cv_prog_cc_stdc=no
24756 +cat >conftest.$ac_ext <<_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)
24775 +static char *f (char * (*g) (char **, int), char **p, ...)
24780 + s = g (p, va_arg (v,int));
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
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);
24807 +return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
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
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
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
24842 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24843 + (exit $ac_status); }; }; then
24844 + ac_cv_prog_cc_stdc=$ac_arg
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
24855 +rm -f conftest.$ac_ext conftest.$ac_objext
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
24864 + echo "$as_me:$LINENO: result: none needed" >&5
24865 +echo "${ECHO_T}none needed" >&6 ;;
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" ;;
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
24881 +rm -f conftest.$ac_objext
24882 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24883 + (eval $ac_compile) 2>conftest.er1
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
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
24901 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902 + (exit $ac_status); }; }; then
24903 + for ac_declaration in \
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
24914 +cat confdefs.h >>conftest.$ac_ext
24915 +cat >>conftest.$ac_ext <<_ACEOF
24916 +/* end confdefs.h. */
24918 +#include <stdlib.h>
24927 +rm -f conftest.$ac_objext
24928 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24929 + (eval $ac_compile) 2>conftest.er1
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
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
24947 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24948 + (exit $ac_status); }; }; then
24951 + echo "$as_me: failed program was:" >&5
24952 +sed 's/^/| /' conftest.$ac_ext >&5
24956 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24957 + cat >conftest.$ac_ext <<_ACEOF
24960 +cat confdefs.h >>conftest.$ac_ext
24961 +cat >>conftest.$ac_ext <<_ACEOF
24962 +/* end confdefs.h. */
24972 +rm -f conftest.$ac_objext
24973 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24974 + (eval $ac_compile) 2>conftest.er1
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
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
24992 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 + (exit $ac_status); }; }; then
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
25003 +if test -n "$ac_declaration"; then
25004 + echo '#ifdef __cplusplus' >>confdefs.h
25005 + echo $ac_declaration >>confdefs.h
25006 + echo '#endif' >>confdefs.h
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
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'
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
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
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
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"
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
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
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
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
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
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`
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
25131 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
25172 + rm -rf conftest.dir
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='#'
25190 + am__fastdepCC_TRUE='#'
25191 + am__fastdepCC_FALSE=
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
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
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"
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>
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
25242 +cat confdefs.h >>conftest.$ac_ext
25243 +cat >>conftest.$ac_ext <<_ACEOF
25244 +/* end confdefs.h. */
25246 +# include <limits.h>
25248 +# include <assert.h>
25252 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25253 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
25269 +if test -z "$ac_cpp_err"; then
25272 - echo "$ac_err" >&5
25273 - echo "configure: failed program was:" >&5
25274 - cat conftest.$ac_ext >&5
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>
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.
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
25300 +cat confdefs.h >>conftest.$ac_ext
25301 +cat >>conftest.$ac_ext <<_ACEOF
25302 +/* end confdefs.h. */
25303 +#include <ac_nonexistent.h>
25305 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25306 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
25322 +if test -z "$ac_cpp_err"; then
25323 + # Broken: success on invalid input.
25326 + echo "$as_me: failed program was:" >&5
25327 +sed 's/^/| /' conftest.$ac_ext >&5
25329 + # Passes both tests.
25333 +rm -f conftest.err conftest.$ac_ext
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
25343 + ac_cv_prog_CPP=$CPP
25346 + CPP=$ac_cv_prog_CPP
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
25364 +cat confdefs.h >>conftest.$ac_ext
25365 +cat >>conftest.$ac_ext <<_ACEOF
25366 +/* end confdefs.h. */
25368 +# include <limits.h>
25370 +# include <assert.h>
25374 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25375 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
25391 +if test -z "$ac_cpp_err"; then
25394 - echo "$ac_err" >&5
25395 - echo "configure: failed program was:" >&5
25396 - cat conftest.$ac_ext >&5
25399 + echo "$as_me: failed program was:" >&5
25400 +sed 's/^/| /' conftest.$ac_ext >&5
25402 + # Broken: fails on valid input.
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
25413 +cat confdefs.h >>conftest.$ac_ext
25414 +cat >>conftest.$ac_ext <<_ACEOF
25415 +/* end confdefs.h. */
25416 +#include <ac_nonexistent.h>
25418 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25419 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
25436 - ac_cv_prog_CPP="$CPP"
25437 +if test -z "$ac_cpp_err"; then
25438 + # Broken: success on invalid input.
25441 + echo "$as_me: failed program was:" >&5
25442 +sed 's/^/| /' conftest.$ac_ext >&5
25444 + # Passes both tests.
25448 - CPP="$ac_cv_prog_CPP"
25449 +rm -f conftest.err conftest.$ac_ext
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
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
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
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
25502 + test -z "$as_dir" && as_dir=.
25503 + # Account for people who put trailing slashes in PATH elements.
25505 + ./ | .// | /cC/* | \
25506 + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
25507 + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
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
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.
25525 + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
25537 + if test "${ac_cv_path_install+set}" = set; then
25538 + INSTALL=$ac_cv_path_install
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
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
25564 + cat >conftest.make <<\_ACEOF
25566 + @echo 'ac_maketemp="$(MAKE)"'
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
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
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
25590 +if test "$LN_S" = "ln -s"; then
25591 + echo "$as_me:$LINENO: result: yes" >&5
25592 +echo "${ECHO_T}yes" >&6
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
25609 + cat >conftest.$ac_ext <<_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 */
25626 -if { (eval echo configure:765: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
25636 +rm -f conftest.$ac_objext
25637 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25638 + (eval $ac_compile) 2>conftest.er1
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
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
25656 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25657 + (exit $ac_status); }; }; then
25658 ijg_cv_have_prototypes=yes
25660 - echo "configure: failed program was:" >&5
25661 - cat conftest.$ac_ext >&5
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
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
25681 +cat >>confdefs.h <<\_ACEOF
25682 +#define HAVE_PROTOTYPES 1
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
25702 - cat > conftest.$ac_ext <<EOF
25703 -#line 797 "configure"
25704 -#include "confdefs.h"
25705 -#include <stddef.h>
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
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'
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
25728 - echo "$ac_err" >&5
25729 - echo "configure: failed program was:" >&5
25730 - cat conftest.$ac_ext >&5
25732 - eval "ac_cv_header_$ac_safe=no"
25733 + cat >conftest.$ac_ext <<_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>
25752 +rm -f conftest.$ac_objext
25753 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25754 + (eval $ac_compile) 2>conftest.er1
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
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
25772 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 + (exit $ac_status); }; }; then
25774 + ac_cv_header_stdc=yes
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
25788 +cat confdefs.h >>conftest.$ac_ext
25789 +cat >>conftest.$ac_ext <<_ACEOF
25790 +/* end confdefs.h. */
25791 +#include <string.h>
25794 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25795 + $EGREP "memchr" >/dev/null 2>&1; then
25798 + ac_cv_header_stdc=no
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
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
25814 +cat confdefs.h >>conftest.$ac_ext
25815 +cat >>conftest.$ac_ext <<_ACEOF
25816 +/* end confdefs.h. */
25817 +#include <stdlib.h>
25820 +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25821 + $EGREP "free" >/dev/null 2>&1; then
25824 - echo "$ac_t""no" 1>&6
25825 + ac_cv_header_stdc=no
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
25841 - cat > conftest.$ac_ext <<EOF
25842 -#line 833 "configure"
25843 -#include "confdefs.h"
25844 -#include <stdlib.h>
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
25851 - eval "ac_cv_header_$ac_safe=yes"
25852 + cat >conftest.$ac_ext <<_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))
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))
25870 +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25875 + for (i = 0; i < 256; i++)
25876 + if (XOR (islower (i), ISLOWER (i))
25877 + || toupper (i) != TOUPPER (i))
25882 +rm -f conftest$ac_exeext
25883 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25884 + (eval $ac_link) 2>&5
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
25891 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25892 + (exit $ac_status); }; }; then
25895 - echo "$ac_err" >&5
25896 - echo "configure: failed program was:" >&5
25897 - cat conftest.$ac_ext >&5
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
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
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
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
25946 + cat >conftest.$ac_ext <<_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>
25956 +rm -f conftest.$ac_objext
25957 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25958 + (eval $ac_compile) 2>conftest.er1
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
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
25976 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
25977 + (exit $ac_status); }; }; then
25978 + eval "$as_ac_Header=yes"
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
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
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
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>
26034 +rm -f conftest.$ac_objext
26035 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26036 + (eval $ac_compile) 2>conftest.er1
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
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
26054 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26055 + (exit $ac_status); }; }; then
26056 + ac_header_compiler=yes
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
26073 +cat confdefs.h >>conftest.$ac_ext
26074 +cat >>conftest.$ac_ext <<_ACEOF
26075 +/* end confdefs.h. */
26076 +#include <$ac_header>
26078 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26079 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
26095 +if test -z "$ac_cpp_err"; then
26096 + ac_header_preproc=yes
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
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
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;}
26131 +## ------------------------------------------ ##
26132 +## Report this to the AC_PACKAGE_NAME lists. ##
26133 +## ------------------------------------------ ##
26136 + sed "s/^/$as_me: WARNING: /" >&2
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
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
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
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
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>
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
26185 - eval "ac_cv_header_$ac_safe=yes"
26187 +rm -f conftest.$ac_objext
26188 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26189 + (eval $ac_compile) 2>conftest.er1
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
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
26207 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26208 + (exit $ac_status); }; }; then
26209 + ac_header_compiler=yes
26211 - echo "$ac_err" >&5
26212 - echo "configure: failed program was:" >&5
26213 - cat conftest.$ac_ext >&5
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
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
26232 +cat confdefs.h >>conftest.$ac_ext
26233 +cat >>conftest.$ac_ext <<_ACEOF
26234 +/* end confdefs.h. */
26235 +#include <string.h>
26237 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26238 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
26254 +if test -z "$ac_cpp_err"; then
26255 + ac_header_preproc=yes
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
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
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;}
26290 +## ------------------------------------------ ##
26291 +## Report this to the AC_PACKAGE_NAME lists. ##
26292 +## ------------------------------------------ ##
26295 + sed "s/^/$as_me: WARNING: /" >&2
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
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
26314 - echo "$ac_t""no" 1>&6
26315 -cat >> confdefs.h <<\EOF
26316 -#define NEED_BSD_STRINGS
26319 +cat >>confdefs.h <<\_ACEOF
26320 +#define NEED_BSD_STRINGS 1
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
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
26344 typedef size_t my_size_t;
26347 - my_size_t foovar;
26350 -if { (eval echo configure:923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26355 + my_size_t foovar;
26360 +rm -f conftest.$ac_objext
26361 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26362 + (eval $ac_compile) 2>conftest.er1
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
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
26380 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26381 + (exit $ac_status); }; }; then
26384 - echo "configure: failed program was:" >&5
26385 - cat conftest.$ac_ext >&5
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"
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
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
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>
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
26433 - eval "ac_cv_header_$ac_safe=yes"
26435 +rm -f conftest.$ac_objext
26436 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26437 + (eval $ac_compile) 2>conftest.er1
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
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
26455 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 + (exit $ac_status); }; }; then
26457 + ac_header_compiler=yes
26459 - echo "$ac_err" >&5
26460 - echo "configure: failed program was:" >&5
26461 - cat conftest.$ac_ext >&5
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
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
26480 +cat confdefs.h >>conftest.$ac_ext
26481 +cat >>conftest.$ac_ext <<_ACEOF
26482 +/* end confdefs.h. */
26483 +#include <sys/types.h>
26485 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26486 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
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
26507 +if test -z "$ac_cpp_err"; then
26508 + ac_header_preproc=yes
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
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
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;}
26546 +## ------------------------------------------ ##
26547 +## Report this to the AC_PACKAGE_NAME lists. ##
26548 +## ------------------------------------------ ##
26551 + sed "s/^/$as_me: WARNING: /" >&2
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
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
26571 +cat >conftest.$ac_ext <<_ACEOF
26574 +cat confdefs.h >>conftest.$ac_ext
26575 +cat >>conftest.$ac_ext <<_ACEOF
26576 +/* end confdefs.h. */
26577 #include <sys/types.h>
26580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26581 - egrep "size_t" >/dev/null 2>&1; then
26583 + $EGREP "size_t" >/dev/null 2>&1; then
26584 ijg_size_t_ok="size_t is in sys/types.h"
26592 - echo "$ac_t""no" 1>&6
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
26616 +cat confdefs.h >>conftest.$ac_ext
26617 +cat >>conftest.$ac_ext <<_ACEOF
26618 +/* end confdefs.h. */
26621 - unsigned char un_char;
26624 -if { (eval echo configure:1003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26626 - echo "$ac_t""yes" 1>&6
26627 -cat >> confdefs.h <<\EOF
26628 -#define HAVE_UNSIGNED_CHAR
26633 + unsigned char un_char;
26638 +rm -f conftest.$ac_objext
26639 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26640 + (eval $ac_compile) 2>conftest.er1
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
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
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
26668 - echo "configure: failed program was:" >&5
26669 - cat conftest.$ac_ext >&5
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
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
26690 +cat confdefs.h >>conftest.$ac_ext
26691 +cat >>conftest.$ac_ext <<_ACEOF
26692 +/* end confdefs.h. */
26695 - unsigned short un_short;
26698 -if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26700 - echo "$ac_t""yes" 1>&6
26701 -cat >> confdefs.h <<\EOF
26702 -#define HAVE_UNSIGNED_SHORT
26707 + unsigned short un_short;
26712 +rm -f conftest.$ac_objext
26713 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26714 + (eval $ac_compile) 2>conftest.er1
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
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
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
26742 - echo "configure: failed program was:" >&5
26743 - cat conftest.$ac_ext >&5
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
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
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 */
26778 -if { (eval echo configure:1072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26780 - echo "$ac_t""yes" 1>&6
26789 +rm -f conftest.$ac_objext
26790 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26791 + (eval $ac_compile) 2>conftest.er1
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
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
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
26814 - echo "configure: failed program was:" >&5
26815 - cat conftest.$ac_ext >&5
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
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
26843 - cat > conftest.$ac_ext <<EOF
26844 -#line 1093 "configure"
26845 -#include "confdefs.h"
26846 + cat >conftest.$ac_ext <<_ACEOF
26849 +cat confdefs.h >>conftest.$ac_ext
26850 +cat >>conftest.$ac_ext <<_ACEOF
26851 +/* end confdefs.h. */
26857 +/* FIXME: Include the comments suggested by Paul. */
26858 +#ifndef __cplusplus
26859 + /* Ultrix mips cc rejects this. */
26860 + typedef int charset[2];
26862 + /* SunOS 4.1.1 cc rejects this. */
26863 + char const *const *ccp;
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
26872 + const char *g = "string";
26873 + ccp = &g + (g ? g-g : 0);
26874 + /* HPUX 7.0 cc rejects these. */
26876 + p = (char**) ccp;
26877 + ccp = (char const *const *) p;
26878 + { /* SCO 3.2v4 cc rejects this. */
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;
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. */
26898 -ccp = (char const *const *) p;
26899 -{ /* SCO 3.2v4 cc rejects this. */
26901 - char const *s = 0 ? (char *) 0 : (char const *) 0;
26905 -{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26906 - int x[] = {25, 17};
26907 - const int *foo = &x[0];
26910 -{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26911 - typedef const int *iptr;
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;
26925 + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26926 + int x[] = {25, 17};
26927 + const int *foo = &x[0];
26930 + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26931 + typedef const int *iptr;
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;
26947 -if { (eval echo configure:1142: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
26953 +rm -f conftest.$ac_objext
26954 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26955 + (eval $ac_compile) 2>conftest.er1
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
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
26973 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
26974 + (exit $ac_status); }; }; then
26977 - echo "configure: failed program was:" >&5
26978 - cat conftest.$ac_ext >&5
26981 + echo "$as_me: failed program was:" >&5
26982 +sed 's/^/| /' conftest.$ac_ext >&5
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
26998 +cat >>confdefs.h <<\_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
27009 -cat > conftest.$ac_ext <<EOF
27010 -#line 1166 "configure"
27011 -#include "confdefs.h"
27012 +cat >conftest.$ac_ext <<_ACEOF
27015 +cat confdefs.h >>conftest.$ac_ext
27016 +cat >>conftest.$ac_ext <<_ACEOF
27017 +/* end confdefs.h. */
27023 } __inline__ int foo() { return 0; }
27024 int bar() { return foo();
27027 -if { (eval echo configure:1174: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27033 +rm -f conftest.$ac_objext
27034 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27035 + (eval $ac_compile) 2>conftest.er1
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
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
27053 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27054 + (exit $ac_status); }; }; then
27055 ijg_cv_inline="__inline__"
27057 - echo "configure: failed program was:" >&5
27058 - cat conftest.$ac_ext >&5
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
27067 +cat >conftest.$ac_ext <<_ACEOF
27070 +cat confdefs.h >>conftest.$ac_ext
27071 +cat >>conftest.$ac_ext <<_ACEOF
27072 +/* end confdefs.h. */
27077 } __inline int foo() { return 0; }
27078 int bar() { return foo();
27081 -if { (eval echo configure:1190: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27087 +rm -f conftest.$ac_objext
27088 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27089 + (eval $ac_compile) 2>conftest.er1
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
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
27107 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27108 + (exit $ac_status); }; }; then
27109 ijg_cv_inline="__inline"
27111 - echo "configure: failed program was:" >&5
27112 - cat conftest.$ac_ext >&5
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
27121 +cat >conftest.$ac_ext <<_ACEOF
27124 +cat confdefs.h >>conftest.$ac_ext
27125 +cat >>conftest.$ac_ext <<_ACEOF
27126 +/* end confdefs.h. */
27131 } inline int foo() { return 0; }
27132 int bar() { return foo();
27135 -if { (eval echo configure:1206: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27141 +rm -f conftest.$ac_objext
27142 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27143 + (eval $ac_compile) 2>conftest.er1
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
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
27161 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
27162 + (exit $ac_status); }; }; then
27163 ijg_cv_inline="inline"
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
27172 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27175 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
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
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;
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
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;
27211 -if { (eval echo configure:1233: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
27213 - echo "$ac_t""ok" 1>&6
27218 +rm -f conftest.$ac_objext
27219 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27220 + (eval $ac_compile) 2>conftest.er1
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
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
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
27243 - echo "configure: failed program was:" >&5
27244 - cat conftest.$ac_ext >&5
27246 - echo "$ac_t""broken" 1>&6
27247 -cat >> confdefs.h <<\EOF
27248 -#define INCOMPLETE_TYPES_BROKEN
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
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
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; }
27284 -if { (eval echo configure:1260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
27286 - echo "$ac_t""ok" 1>&6
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
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
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
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
27320 - echo "configure: failed program was:" >&5
27321 - cat conftest.$ac_ext >&5
27323 - echo "$ac_t""short" 1>&6
27324 -cat >> confdefs.h <<\EOF
27325 -#define NEED_SHORT_EXTERNAL_NAMES
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
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.
27350 - cat > conftest.$ac_ext <<EOF
27351 -#line 1282 "configure"
27352 -#include "confdefs.h"
27353 + cat >conftest.$ac_ext <<_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);
27368 exit(is_char_signed((int) signed_char_check));
27371 -if { (eval echo configure:1306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
27373 - echo "$ac_t""no" 1>&6
27374 -cat >> confdefs.h <<\EOF
27375 -#define CHAR_IS_UNSIGNED
27378 +rm -f conftest$ac_exeext
27379 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27380 + (eval $ac_link) 2>&5
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
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
27397 - echo "configure: failed program was:" >&5
27398 - cat conftest.$ac_ext >&5
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
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
27422 - cat > conftest.$ac_ext <<EOF
27423 -#line 1328 "configure"
27424 -#include "confdefs.h"
27425 + cat >conftest.$ac_ext <<_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 */
27440 exit(is_shifting_signed(-0x7F7E80B1L));
27443 -if { (eval echo configure:1358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
27445 - echo "$ac_t""no" 1>&6
27446 -cat >> confdefs.h <<\EOF
27447 -#define RIGHT_SHIFT_IS_UNSIGNED
27450 +rm -f conftest$ac_exeext
27451 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27452 + (eval $ac_link) 2>&5
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
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
27469 - echo "configure: failed program was:" >&5
27470 - cat conftest.$ac_ext >&5
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
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
27494 - cat > conftest.$ac_ext <<EOF
27495 -#line 1380 "configure"
27496 -#include "confdefs.h"
27497 + cat >conftest.$ac_ext <<_ACEOF
27500 +cat confdefs.h >>conftest.$ac_ext
27501 +cat >>conftest.$ac_ext <<_ACEOF
27502 +/* end confdefs.h. */
27507 if (fopen("conftestdata", "wb") != NULL)
27512 -if { (eval echo configure:1390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
27514 - echo "$ac_t""yes" 1>&6
27516 - echo "configure: failed program was:" >&5
27517 - cat conftest.$ac_ext >&5
27519 - echo "$ac_t""no" 1>&6
27520 -cat >> confdefs.h <<\EOF
27521 -#define DONT_USE_B_MODE
27524 +rm -f conftest$ac_exeext
27525 +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27526 + (eval $ac_link) 2>&5
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
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
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
27552 +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
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"
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 ;;
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
27584 + IFS="$lt_save_ifs"
27588 + enable_shared=yes
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 ;;
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
27608 + IFS="$lt_save_ifs"
27612 + enable_static=yes
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 ;;
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
27632 + IFS="$lt_save_ifs"
27636 + enable_fast_install=yes
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
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
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"
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
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
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
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
27722 - IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
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
27732 + # gcc leaves a trailing carriage return which upsets mingw
27733 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
27735 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
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%/%"`
27746 + test -z "$LD" && LD="$ac_prog"
27749 + # If it fails, then pretend we aren't using GCC.
27753 + # If it is relative, then search for the first ld in PATH.
27754 + with_gnu_ld=unknown
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
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
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/*) ;;
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
27793 + test "$with_gnu_ld" != yes && break
27798 + IFS="$lt_save_ifs"
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
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
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
27826 + lt_cv_prog_gnu_ld=no
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
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
27847 +*) reload_flag=" $reload_flag" ;;
27849 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
27852 + if test "$GCC" = yes; then
27853 + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
27855 + reload_cmds='$LD$reload_flag -o $output$reload_objs'
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
27865 + if test -n "$NM"; then
27866 + # Let the user override the test.
27867 + lt_cv_path_NM="$NM"
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"
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"
27890 + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
27892 + lt_cv_path_NM="$tmp_nm -p"
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
27904 + IFS="$lt_save_ifs"
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
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.
27934 + lt_cv_deplibs_check_method=pass_all
27938 + lt_cv_deplibs_check_method=pass_all
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
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'
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'
27960 +darwin* | rhapsody*)
27961 + lt_cv_deplibs_check_method=pass_all
27964 +freebsd* | kfreebsd*-gnu | dragonfly*)
27965 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
27966 + case $host_cpu in
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.*`
27976 + lt_cv_deplibs_check_method=pass_all
27981 + lt_cv_deplibs_check_method=pass_all
27984 +hpux10.20* | hpux11*)
27985 + lt_cv_file_magic_cmd=/usr/bin/file
27986 + case $host_cpu in
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
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
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
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)$'
28007 +irix5* | irix6* | nonstopux*)
28009 + *-32|*"-32 ") libmagic=32-bit;;
28010 + *-n32|*"-n32 ") libmagic=N32;;
28011 + *-64|*"-64 ") libmagic=64-bit;;
28012 + *) libmagic=never-match;;
28014 + lt_cv_deplibs_check_method=pass_all
28017 +# This must be Linux ELF.
28019 + lt_cv_deplibs_check_method=pass_all
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)$'
28026 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
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
28037 + lt_cv_deplibs_check_method=unknown
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)$'
28044 + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
28048 +osf3* | osf4* | osf5*)
28049 + lt_cv_deplibs_check_method=pass_all
28053 + lt_cv_deplibs_check_method=pass_all
28057 + case $host_vendor in
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*`
28063 + lt_cv_deplibs_check_method=pass_all
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 )'
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
28075 + lt_cv_deplibs_check_method=pass_all
28078 + lt_cv_deplibs_check_method=pass_all
28083 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
28084 + lt_cv_deplibs_check_method=pass_all
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.
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"
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.
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
28121 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 + (exit $ac_status); }; then
28123 + case `/usr/bin/file conftest.$ac_objext` in
28125 + HPUX_IA64_MODE="32"
28128 + HPUX_IA64_MODE="64"
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
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
28145 + LD="${LD-ld} -melf32bsmip"
28148 + LD="${LD-ld} -melf32bmipn32"
28151 + LD="${LD-ld} -melf64bmip"
28155 + case `/usr/bin/file conftest.$ac_objext` in
28157 + LD="${LD-ld} -32"
28160 + LD="${LD-ld} -n32"
28163 + LD="${LD-ld} -64"
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
28177 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28178 + (exit $ac_status); }; then
28179 + case `/usr/bin/file conftest.o` in
28183 + LD="${LD-ld} -m elf_i386"
28185 + ppc64-*linux*|powerpc64-*linux*)
28186 + LD="${LD-ld} -m elf32ppclinux"
28189 + LD="${LD-ld} -m elf_s390"
28192 + LD="${LD-ld} -m elf32_sparc"
28199 + LD="${LD-ld} -m elf_x86_64"
28201 + ppc*-*linux*|powerpc*-*linux*)
28202 + LD="${LD-ld} -m elf64ppc"
28205 + LD="${LD-ld} -m elf64_s390"
28208 + LD="${LD-ld} -m elf64_sparc"
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
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
28235 +cat confdefs.h >>conftest.$ac_ext
28236 +cat >>conftest.$ac_ext <<_ACEOF
28237 +/* end confdefs.h. */
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
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
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
28267 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28268 + (exit $ac_status); }; }; then
28269 + lt_cv_cc_needs_belf=yes
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
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"
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
28298 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28299 + (exit $ac_status); }; then
28300 + case `/usr/bin/file conftest.o` in
28302 + case $lt_cv_prog_gnu_ld in
28303 + yes*) LD="${LD-ld} -m elf64_sparc" ;;
28304 + *) LD="${LD-ld} -64" ;;
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
28321 + if test -n "$DLLTOOL"; then
28322 + ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
28324 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28325 +for as_dir in $PATH
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
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
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
28359 + if test -n "$ac_ct_DLLTOOL"; then
28360 + ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
28362 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28363 +for as_dir in $PATH
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
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
28384 + echo "$as_me:$LINENO: result: no" >&5
28385 +echo "${ECHO_T}no" >&6
28388 + DLLTOOL=$ac_ct_DLLTOOL
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
28401 + if test -n "$AS"; then
28402 + ac_cv_prog_AS="$AS" # Let the user override the test.
28404 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28405 +for as_dir in $PATH
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
28421 +if test -n "$AS"; then
28422 + echo "$as_me:$LINENO: result: $AS" >&5
28423 +echo "${ECHO_T}$AS" >&6
28425 + echo "$as_me:$LINENO: result: no" >&5
28426 +echo "${ECHO_T}no" >&6
28430 +if test -z "$ac_cv_prog_AS"; then
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
28439 + if test -n "$ac_ct_AS"; then
28440 + ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
28442 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28443 +for as_dir in $PATH
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
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
28464 + echo "$as_me:$LINENO: result: no" >&5
28465 +echo "${ECHO_T}no" >&6
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
28481 + if test -n "$OBJDUMP"; then
28482 + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
28484 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28485 +for as_dir in $PATH
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
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
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
28519 + if test -n "$ac_ct_OBJDUMP"; then
28520 + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
28522 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28523 +for as_dir in $PATH
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
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
28544 + echo "$as_me:$LINENO: result: no" >&5
28545 +echo "${ECHO_T}no" >&6
28548 + OBJDUMP=$ac_ct_OBJDUMP
28550 + OBJDUMP="$ac_cv_prog_OBJDUMP"
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
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
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>
28585 +rm -f conftest.$ac_objext
28586 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28587 + (eval $ac_compile) 2>conftest.er1
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
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
28605 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28606 + (exit $ac_status); }; }; then
28607 + ac_header_compiler=yes
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
28624 +cat confdefs.h >>conftest.$ac_ext
28625 +cat >>conftest.$ac_ext <<_ACEOF
28626 +/* end confdefs.h. */
28627 +#include <$ac_header>
28629 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28630 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
28646 +if test -z "$ac_cpp_err"; then
28647 + ac_header_preproc=yes
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
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
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;}
28682 +## ------------------------------------------ ##
28683 +## Report this to the AC_PACKAGE_NAME lists. ##
28684 +## ------------------------------------------ ##
28687 + sed "s/^/$as_me: WARNING: /" >&2
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
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
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
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
28725 + if test -n "$CXX"; then
28726 + ac_cv_prog_CXX="$CXX" # Let the user override the test.
28728 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28729 +for as_dir in $PATH
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
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
28749 + echo "$as_me:$LINENO: result: no" >&5
28750 +echo "${ECHO_T}no" >&6
28753 + test -n "$CXX" && break
28756 +if test -z "$CXX"; then
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
28767 + if test -n "$ac_ct_CXX"; then
28768 + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
28770 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28771 +for as_dir in $PATH
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
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
28791 + echo "$as_me:$LINENO: result: no" >&5
28792 +echo "${ECHO_T}no" >&6
28795 + test -n "$ac_ct_CXX" && break
28797 +test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
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
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
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
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
28828 + cat >conftest.$ac_ext <<_ACEOF
28831 +cat confdefs.h >>conftest.$ac_ext
28832 +cat >>conftest.$ac_ext <<_ACEOF
28833 +/* end confdefs.h. */
28846 +rm -f conftest.$ac_objext
28847 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28848 + (eval $ac_compile) 2>conftest.er1
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
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
28866 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867 + (exit $ac_status); }; }; then
28868 + ac_compiler_gnu=yes
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
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
28890 + cat >conftest.$ac_ext <<_ACEOF
28893 +cat confdefs.h >>conftest.$ac_ext
28894 +cat >>conftest.$ac_ext <<_ACEOF
28895 +/* end confdefs.h. */
28905 +rm -f conftest.$ac_objext
28906 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28907 + (eval $ac_compile) 2>conftest.er1
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
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
28925 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28926 + (exit $ac_status); }; }; then
28927 + ac_cv_prog_cxx_g=yes
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"
28947 + if test "$GXX" = yes; then
28953 +for ac_declaration in \
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
28964 +cat confdefs.h >>conftest.$ac_ext
28965 +cat >>conftest.$ac_ext <<_ACEOF
28966 +/* end confdefs.h. */
28968 +#include <stdlib.h>
28977 +rm -f conftest.$ac_objext
28978 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28979 + (eval $ac_compile) 2>conftest.er1
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
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
28997 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
28998 + (exit $ac_status); }; }; then
29001 + echo "$as_me: failed program was:" >&5
29002 +sed 's/^/| /' conftest.$ac_ext >&5
29006 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29007 + cat >conftest.$ac_ext <<_ACEOF
29010 +cat confdefs.h >>conftest.$ac_ext
29011 +cat >>conftest.$ac_ext <<_ACEOF
29012 +/* end confdefs.h. */
29022 +rm -f conftest.$ac_objext
29023 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29024 + (eval $ac_compile) 2>conftest.er1
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
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
29042 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29043 + (exit $ac_status); }; }; then
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
29053 +if test -n "$ac_declaration"; then
29054 + echo '#ifdef __cplusplus' >>confdefs.h
29055 + echo $ac_declaration >>confdefs.h
29056 + echo '#endif' >>confdefs.h
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
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
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
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
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`
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
29110 + echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
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
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
29151 + rm -rf conftest.dir
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='#'
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
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
29190 + # Double quotes because CXXCPP needs to be expanded
29191 + for CXXCPP in "$CXX -E" "/lib/cpp"
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
29205 +cat confdefs.h >>conftest.$ac_ext
29206 +cat >>conftest.$ac_ext <<_ACEOF
29207 +/* end confdefs.h. */
29209 +# include <limits.h>
29211 +# include <assert.h>
29215 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29216 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
29232 +if test -z "$ac_cpp_err"; then
29235 + echo "$as_me: failed program was:" >&5
29236 +sed 's/^/| /' conftest.$ac_ext >&5
29238 + # Broken: fails on valid input.
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
29248 +cat confdefs.h >>conftest.$ac_ext
29249 +cat >>conftest.$ac_ext <<_ACEOF
29250 +/* end confdefs.h. */
29251 +#include <ac_nonexistent.h>
29253 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29254 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
29270 +if test -z "$ac_cpp_err"; then
29271 + # Broken: success on invalid input.
29274 + echo "$as_me: failed program was:" >&5
29275 +sed 's/^/| /' conftest.$ac_ext >&5
29277 + # Passes both tests.
29281 +rm -f conftest.err conftest.$ac_ext
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
29291 + ac_cv_prog_CXXCPP=$CXXCPP
29294 + CXXCPP=$ac_cv_prog_CXXCPP
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
29312 +cat confdefs.h >>conftest.$ac_ext
29313 +cat >>conftest.$ac_ext <<_ACEOF
29314 +/* end confdefs.h. */
29316 +# include <limits.h>
29318 +# include <assert.h>
29322 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29323 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
29339 +if test -z "$ac_cpp_err"; then
29342 + echo "$as_me: failed program was:" >&5
29343 +sed 's/^/| /' conftest.$ac_ext >&5
29345 + # Broken: fails on valid input.
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
29355 +cat confdefs.h >>conftest.$ac_ext
29356 +cat >>conftest.$ac_ext <<_ACEOF
29357 +/* end confdefs.h. */
29358 +#include <ac_nonexistent.h>
29360 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29361 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
29377 +if test -z "$ac_cpp_err"; then
29378 + # Broken: success on invalid input.
29381 + echo "$as_me: failed program was:" >&5
29382 +sed 's/^/| /' conftest.$ac_ext >&5
29384 + # Passes both tests.
29388 +rm -f conftest.err conftest.$ac_ext
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
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; }; }
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
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
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
29426 + if test -n "$F77"; then
29427 + ac_cv_prog_F77="$F77" # Let the user override the test.
29429 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29430 +for as_dir in $PATH
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
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
29450 + echo "$as_me:$LINENO: result: no" >&5
29451 +echo "${ECHO_T}no" >&6
29454 + test -n "$F77" && break
29457 +if test -z "$F77"; then
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
29468 + if test -n "$ac_ct_F77"; then
29469 + ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
29471 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29472 +for as_dir in $PATH
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
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
29492 + echo "$as_me:$LINENO: result: no" >&5
29493 +echo "${ECHO_T}no" >&6
29496 + test -n "$ac_ct_F77" && break
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
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
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
29520 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 + (exit $ac_status); }
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
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
29533 + cat >conftest.$ac_ext <<_ACEOF
29541 +rm -f conftest.$ac_objext
29542 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29543 + (eval $ac_compile) 2>conftest.er1
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
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
29561 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29562 + (exit $ac_status); }; }; then
29563 + ac_compiler_gnu=yes
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
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
29586 +cat >conftest.$ac_ext <<_ACEOF
29591 +rm -f conftest.$ac_objext
29592 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29593 + (eval $ac_compile) 2>conftest.er1
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
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
29611 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29612 + (exit $ac_status); }; }; then
29613 + ac_cv_prog_f77_g=yes
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
29634 + if test "x$ac_cv_f77_compiler_gnu" = xyes; then
29641 +G77=`test $ac_compiler_gnu = yes && echo yes`
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
29659 + teststring="ABCD"
29661 + case $build_os in
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
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;
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;
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;
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`
29701 + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
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`
29709 + # We know the value 262144 and hardcode it with a safety zone (like BSD)
29710 + lt_cv_sys_max_cmd_len=196608
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 ;;
29727 + lt_cv_sys_max_cmd_len=102400
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/.*[ ]//'`
29734 + lt_cv_sys_max_cmd_len=32768
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
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
29749 + teststring=$teststring$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`
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
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
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.
29799 +cygwin* | mingw* | pw32*)
29800 + symcode='[ABCDGISTW]'
29802 +hpux*) # Its linker distinguishes data from code symbols
29803 + if test "$host_cpu" = ia64; then
29804 + symcode='[ABCDEGRST]'
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'"
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'"
29816 +irix* | nonstopux*)
29817 + symcode='[BCDEGRST]'
29820 + symcode='[BCDEGQRST]'
29831 +sysv5* | sco5v6* | unixware* | OpenUNIX*)
29835 + symcode='[DFNSTU]'
29839 +# Handle CRLF in mingw tool chain
29843 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
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]' ;;
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.
29866 + cat > conftest.$ac_ext <<EOF
29867 +#ifdef __cplusplus
29871 +void nm_test_func(){}
29872 +#ifdef __cplusplus
29875 +int main(){nm_test_var='a';nm_test_func();return(0);}
29878 + if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29879 + (eval $ac_compile) 2>&5
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
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"
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
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 *
29913 +# define lt_ptr_t char *
29917 +/* The mapping between symbol names and symbols. */
29919 + const char *name;
29920 + lt_ptr_t address;
29922 +lt_preloaded_symbols[] =
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
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
29943 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
29944 + (exit $ac_status); } && test -s conftest${ac_exeext}; then
29947 + LIBS="$lt_save_LIBS"
29948 + CFLAGS="$lt_save_CFLAGS"
29950 + echo "cannot find nm_test_func in $nlist" >&5
29953 + echo "cannot find nm_test_var in $nlist" >&5
29956 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
29959 + echo "$progname: failed program was:" >&5
29960 + cat conftest.$ac_ext >&5
29962 + rm -f conftest* conftst*
29964 + # Do not use the global_symbol_pipe unless it works.
29965 + if test "$pipe_works" = yes; then
29968 + lt_cv_sys_global_symbol_pipe=
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
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
29990 + rm -f .libs 2>/dev/null
29991 +mkdir .libs 2>/dev/null
29992 +if test -d .libs; then
29993 + lt_cv_objdir=.libs
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
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
30015 + export COLLECT_NAMES
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'
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').
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
30057 + if test -n "$AR"; then
30058 + ac_cv_prog_AR="$AR" # Let the user override the test.
30060 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30061 +for as_dir in $PATH
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
30077 +if test -n "$AR"; then
30078 + echo "$as_me:$LINENO: result: $AR" >&5
30079 +echo "${ECHO_T}$AR" >&6
30081 + echo "$as_me:$LINENO: result: no" >&5
30082 +echo "${ECHO_T}no" >&6
30086 +if test -z "$ac_cv_prog_AR"; then
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
30095 + if test -n "$ac_ct_AR"; then
30096 + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
30098 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30099 +for as_dir in $PATH
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
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
30120 + echo "$as_me:$LINENO: result: no" >&5
30121 +echo "${ECHO_T}no" >&6
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
30137 + if test -n "$RANLIB"; then
30138 + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
30140 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30141 +for as_dir in $PATH
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
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
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
30175 + if test -n "$ac_ct_RANLIB"; then
30176 + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
30178 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30179 +for as_dir in $PATH
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
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
30200 + echo "$as_me:$LINENO: result: no" >&5
30201 +echo "${ECHO_T}no" >&6
30204 + RANLIB=$ac_ct_RANLIB
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
30217 + if test -n "$STRIP"; then
30218 + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
30220 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30221 +for as_dir in $PATH
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
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
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
30255 + if test -n "$ac_ct_STRIP"; then
30256 + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
30258 +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30259 +for as_dir in $PATH
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
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
30280 + echo "$as_me:$LINENO: result: no" >&5
30281 +echo "${ECHO_T}no" >&6
30284 + STRIP=$ac_ct_STRIP
30286 + STRIP="$ac_cv_prog_STRIP"
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
30319 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
30322 + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
30325 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
30328 +for cc_temp in $compiler""; do
30330 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
30331 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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
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
30348 + case $MAGIC_CMD in
30349 +[\\/*] | ?:[\\/]*)
30350 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
30370 - ac_cv_path_install="$ac_dir/$ac_prog -c"
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
30390 + IFS="$lt_save_ifs"
30391 + MAGIC_CMD="$lt_save_MAGIC_CMD"
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
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
30412 + case $MAGIC_CMD in
30413 +[\\/*] | ?:[\\/]*)
30414 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
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
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
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
30452 + IFS="$lt_save_ifs"
30453 + MAGIC_CMD="$lt_save_MAGIC_CMD"
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
30463 + echo "$as_me:$LINENO: result: no" >&5
30464 +echo "${ECHO_T}no" >&6
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"
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"
30494 +test -z "$pic_mode" && pic_mode=default
30496 +# Use C for the default configuration in the libtool script
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.
30509 +# Object file extension for compiled C test sources.
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.
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`
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`
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
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)
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
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"
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'
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'
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'
30624 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
30625 + # PIC is the default for these OSes.
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'
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'
30641 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
30642 + # Instead, we relocate shared libraries at runtime.
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
30653 + if test -d /usr/nec; then
30654 + lt_prog_compiler_pic=-Kconform_pic
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
30666 + lt_prog_compiler_pic='-fPIC'
30672 + lt_prog_compiler_pic='-fPIC'
30676 + # PORTME Check for flag to pass linker flags through the system compiler.
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'
30684 + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
30688 + # PIC is the default on this platform
30689 + # Common symbols not allowed in MH_DYLIB files
30690 + case $cc_basename in
30692 + lt_prog_compiler_pic='-qnocommon'
30693 + lt_prog_compiler_wl='-Wl,'
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'
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
30713 + lt_prog_compiler_pic='+Z'
30716 + # Is there a better lt_prog_compiler_static that works with the bundled CC?
30717 + lt_prog_compiler_static='${wl}-a ${wl}archive'
30720 + irix5* | irix6* | nonstopux*)
30721 + lt_prog_compiler_wl='-Wl,'
30722 + # PIC (with -KPIC) is the default.
30723 + lt_prog_compiler_static='-non_shared'
30727 + lt_prog_compiler_pic='-KPIC'
30728 + lt_prog_compiler_static='-Bstatic'
30732 + case $cc_basename in
30734 + lt_prog_compiler_wl='-Wl,'
30735 + lt_prog_compiler_pic='-KPIC'
30736 + lt_prog_compiler_static='-static'
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'
30746 + lt_prog_compiler_wl='-Wl,'
30747 + # All Alpha code is PIC.
30748 + lt_prog_compiler_static='-non_shared'
30753 + osf3* | osf4* | osf5*)
30754 + lt_prog_compiler_wl='-Wl,'
30755 + # All OSF/1 code is PIC.
30756 + lt_prog_compiler_static='-non_shared'
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 ';;
30766 + lt_prog_compiler_wl='-Wl,';;
30771 + lt_prog_compiler_wl='-Qoption ld '
30772 + lt_prog_compiler_pic='-PIC'
30773 + lt_prog_compiler_static='-Bstatic'
30776 + sysv4 | sysv4.2uw2* | sysv4.3*)
30777 + lt_prog_compiler_wl='-Wl,'
30778 + lt_prog_compiler_pic='-KPIC'
30779 + lt_prog_compiler_static='-Bstatic'
30783 + if test -d /usr/nec ;then
30784 + lt_prog_compiler_pic='-Kconform_pic'
30785 + lt_prog_compiler_static='-Bstatic'
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'
30796 + lt_prog_compiler_wl='-Wl,'
30797 + lt_prog_compiler_can_build_shared=no
30801 + lt_prog_compiler_pic='-pic'
30802 + lt_prog_compiler_static='-Bstatic'
30806 + lt_prog_compiler_can_build_shared=no
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
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)
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
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
30860 + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
30863 + lt_prog_compiler_pic=
30864 + lt_prog_compiler_can_build_shared=no
30869 + # For platforms which do not support PIC, -DPIC is meaningless:
30871 + lt_prog_compiler_pic=
30874 + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
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
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
30903 + lt_prog_compiler_static_works=yes
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
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
30925 + lt_cv_prog_compiler_c_o=no
30926 + $rm -r conftest 2>/dev/null
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)
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
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
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
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
30978 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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
30997 + allow_undefined_flag=
30998 + enable_shared_with_static_runtimes=no
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
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
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
31035 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
31036 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
31041 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
31053 + # we just hope/assume this is gcc and not c89 (= MSVC++)
31062 + if test "$with_gnu_ld" = yes; then
31063 + # If archive_cmds runs LD, not CC, wlarc should be empty
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'
31076 + whole_archive_flag_spec=
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 ;;
31087 + # See if GNU ld supports shared libraries.
31089 + aix3* | aix4* | aix5*)
31090 + # On AIX/PPC, the GNU linker is very broken
31091 + if test "$host_cpu" != ia64; then
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.
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
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'
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;
31146 + echo EXPORTS > $output_objdir/$soname.def;
31147 + cat $export_symbols >> $output_objdir/$soname.def;
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'
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'
31171 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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'
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' ;;
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'
31202 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
31203 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
31212 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
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.
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'
31232 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
31233 + case `$LD -v 2>&1` in
31234 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
31260 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
31262 + hardcode_direct=yes
31263 + hardcode_shlibpath_var=no
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'
31276 + if test "$ld_shlibs" = no; then
31278 + hardcode_libdir_flag_spec=
31279 + export_dynamic_flag_spec=
31280 + whole_archive_flag_spec=
31283 + # PORTME fill in a description of your system's linker (not GNU ld)
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
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'
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'
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'
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
31330 + exp_sym_flag='-bexport'
31331 + no_entry_flag='-bnoentry'
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.
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
31353 + # We have reworked collect2
31354 + hardcode_direct=yes
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=
31367 + shared_flag='-shared'
31368 + if test "$aix_use_runtimelinking" = yes; then
31369 + shared_flag="$shared_flag "'${wl}-G'
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:
31378 + if test "$aix_use_runtimelinking" = yes; then
31379 + shared_flag='${wl}-G'
31381 + shared_flag='${wl}-bM:SRE'
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
31397 +cat confdefs.h >>conftest.$ac_ext
31398 +cat >>conftest.$ac_ext <<_ACEOF
31399 +/* end confdefs.h. */
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
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
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
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; }
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; }
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"
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"
31454 + # Determine the default libpath from the value encoded in an empty executable.
31455 + cat >conftest.$ac_ext <<_ACEOF
31458 +cat confdefs.h >>conftest.$ac_ext
31459 +cat >>conftest.$ac_ext <<_ACEOF
31460 +/* end confdefs.h. */
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
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
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
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; }
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; }
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'
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
31530 + export_dynamic_flag_spec=-rdynamic
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.
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
31554 + darwin* | rhapsody*)
31556 + rhapsody* | darwin1.[012])
31557 + allow_undefined_flag='${wl}-undefined ${wl}suppress'
31559 + *) # Darwin 1.3 on
31560 + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
31561 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
31563 + case ${MACOSX_DEPLOYMENT_TARGET} in
31565 + allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
31568 + allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
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}'
31588 + case $cc_basename in
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}'
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
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
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
31625 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
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
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
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'
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'
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'
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'
31661 + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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
31677 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
31678 + case $host_cpu in
31680 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31683 + archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31686 + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
31690 + case $host_cpu in
31692 + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
31695 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
31698 + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
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
31708 + hardcode_libdir_flag_spec_ld='+b $libdir'
31709 + hardcode_direct=no
31710 + hardcode_shlibpath_var=no
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
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'
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'
31731 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31732 + hardcode_libdir_separator=:
31733 + link_all_deplibs=yes
31737 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
31738 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
31740 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
31742 + hardcode_libdir_flag_spec='-R$libdir'
31743 + hardcode_direct=yes
31744 + hardcode_shlibpath_var=no
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
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'
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'
31770 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
31771 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
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'
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'
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'
31793 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
31794 + hardcode_libdir_separator=:
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'
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'
31811 + hardcode_libdir_separator=:
31815 + no_undefined_flag=' -z text'
31816 + if test "$GCC" = yes; then
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'
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'
31827 + hardcode_libdir_flag_spec='-R$libdir'
31828 + hardcode_shlibpath_var=no
31830 + solaris2.[0-5] | solaris2.[0-5].*) ;;
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?)
31839 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
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' ;;
31844 + link_all_deplibs=yes
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'
31853 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
31855 + hardcode_libdir_flag_spec='-L$libdir'
31856 + hardcode_direct=yes
31857 + hardcode_minus_L=yes
31858 + hardcode_shlibpath_var=no
31862 + case $host_vendor in
31864 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31865 + hardcode_direct=yes # is this really true???
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
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
31879 + runpath_var='LD_RUN_PATH'
31880 + hardcode_shlibpath_var=no
31884 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
31885 + hardcode_shlibpath_var=no
31886 + export_dynamic_flag_spec='-Bexport'
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
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'
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'
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
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'
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'
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
31951 - IFS="$ac_save_IFS"
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
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
31969 + # FIXME: we may have to deal with multi-command sequences.
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
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
31983 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
31984 + (exit $ac_status); } 2>conftest.err; then
31987 + libobjs=conftest.$ac_objext
31989 + wl=$lt_prog_compiler_wl
31990 + pic_flag=$lt_prog_compiler_pic
31991 + compiler_flags=-v
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
32001 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32002 + (exit $ac_status); }
32004 + archive_cmds_need_lc=no
32006 + archive_cmds_need_lc=yes
32008 + allow_undefined_flag=$lt_save_allow_undefined_flag
32010 + cat conftest.err 1>&5
32013 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
32014 +echo "${ECHO_T}$archive_cmds_need_lc" >&6
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'
32028 +postuninstall_cmds=
32032 +shlibpath_overrides_runpath=unknown
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'`
32045 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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
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'
32070 + version_type=linux
32071 + need_lib_prefix=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
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.
32090 + aix4 | aix4.[01] | aix4.[01].*)
32091 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
32093 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
32096 + can_build_shared=no
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}'
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'
32114 + shlibpath_var=LIBPATH
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'
32125 + library_names_spec='${libname}${shared_ext}'
32126 + dynamic_linker="$host_os ld.so"
32127 + shlibpath_var=LIBRARY_PATH
32131 + version_type=linux
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
32144 +cygwin* | mingw* | pw32*)
32145 + version_type=windows
32146 + shrext_cmds=".dll"
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~
32163 + shlibpath_overrides_runpath=yes
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"
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'`
32184 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
32195 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
32198 + dynamic_linker='Win32 ld.exe'
32199 + # FIXME: first we should search . and the directory the executable is in
32200 + shlibpath_var=PATH
32203 +darwin* | rhapsody*)
32204 + dynamic_linker="$host_os dyld"
32205 + version_type=darwin
32206 + need_lib_prefix=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"`
32217 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
32219 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
32223 + version_type=linux
32224 + need_lib_prefix=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
32232 + dynamic_linker=no
32236 + version_type=linux
32237 + need_lib_prefix=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'
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`
32254 + freebsd[123]*) objformat=aout ;;
32255 + *) objformat=elf ;;
32258 + version_type=freebsd-$objformat
32259 + case $version_type in
32261 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
32263 + need_lib_prefix=no
32266 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
32270 + shlibpath_var=LD_LIBRARY_PATH
32273 + shlibpath_overrides_runpath=yes
32275 + freebsd3.[01]* | freebsdelf3.[01]*)
32276 + shlibpath_overrides_runpath=yes
32277 + hardcode_into_libs=yes
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
32284 + freebsd*) # from 4.6 on
32285 + shlibpath_overrides_runpath=yes
32286 + hardcode_into_libs=yes
32292 + version_type=linux
32293 + need_lib_prefix=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
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
32307 + case $host_cpu in
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"
32319 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
32321 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
32343 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
32344 + postinstall_cmds='chmod 555 $lib'
32348 + version_type=linux
32349 + need_lib_prefix=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
32359 +irix5* | irix6* | nonstopux*)
32361 + nonstopux*) version_type=nonstopux ;;
32363 + if test "$lt_cv_prog_gnu_ld" = yes; then
32364 + version_type=linux
32366 + version_type=irix
32369 + need_lib_prefix=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}'
32374 + irix5* | nonstopux*)
32375 + libsuff= shlibsuff=
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;;
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
32396 +# No shared lib support for Linux oldld, aout, or coff.
32397 +linux*oldld* | linux*aout* | linux*coff*)
32398 + dynamic_linker=no
32401 +# This must be Linux ELF.
32403 + version_type=linux
32404 + need_lib_prefix=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"
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'
32432 + version_type=linux
32433 + need_lib_prefix=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'
32444 + version_type=sunos
32445 + need_lib_prefix=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'
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'
32456 + shlibpath_var=LD_LIBRARY_PATH
32457 + shlibpath_overrides_runpath=yes
32458 + hardcode_into_libs=yes
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
32469 + version_type=linux
32470 + need_lib_prefix=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
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.
32484 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
32485 + *) need_version=no ;;
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
32492 + openbsd2.[89] | openbsd2.[89].*)
32493 + shlibpath_overrides_runpath=no
32496 + shlibpath_overrides_runpath=yes
32500 + shlibpath_overrides_runpath=yes
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
32513 +osf3* | osf4* | osf5*)
32515 + need_lib_prefix=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"
32525 + version_type=linux
32526 + need_lib_prefix=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'
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
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
32556 + shlibpath_overrides_runpath=no
32557 + need_lib_prefix=no
32558 + export_dynamic_flag_spec='${wl}-Blargedynsym'
32559 + runpath_var=LD_RUN_PATH
32562 + need_lib_prefix=no
32565 + need_lib_prefix=no
32567 + shlibpath_overrides_runpath=no
32568 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
32582 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
32583 + version_type=freebsd-elf
32584 + need_lib_prefix=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
32594 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
32595 + shlibpath_overrides_runpath=yes
32598 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
32602 + sys_lib_dlsearch_path_spec='/usr/lib'
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
32613 + dynamic_linker=no
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
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
32647 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
32648 + hardcode_action=immediate
32651 + # We cannot hardcode anything, or else we can only hardcode existing
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
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
32683 +# FIXME - insert some real tests, host_os isn't really good enough
32686 + if test -n "$STRIP" ; then
32687 + striplib="$STRIP -x"
32688 + echo "$as_me:$LINENO: result: yes" >&5
32689 +echo "${ECHO_T}yes" >&6
32691 + echo "$as_me:$LINENO: result: no" >&5
32692 +echo "${ECHO_T}no" >&6
32696 + echo "$as_me:$LINENO: result: no" >&5
32697 +echo "${ECHO_T}no" >&6
32702 +if test "x$enable_dlopen" != xyes; then
32703 + enable_dlopen=unknown
32704 + enable_dlopen_self=unknown
32705 + enable_dlopen_self_static=unknown
32708 + lt_cv_dlopen_libs=
32712 + lt_cv_dlopen="load_add_on"
32713 + lt_cv_dlopen_libs=
32714 + lt_cv_dlopen_self=yes
32718 + lt_cv_dlopen="LoadLibrary"
32719 + lt_cv_dlopen_libs=
32723 + lt_cv_dlopen="dlopen"
32724 + lt_cv_dlopen_libs=
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
32734 + ac_check_lib_save_LIBS=$LIBS
32736 +cat >conftest.$ac_ext <<_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
32747 +/* We use char because int might match the return type of a gcc2
32748 + builtin and then its argument prototype would still apply. */
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
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
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
32778 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32779 + (exit $ac_status); }; }; then
32780 + ac_cv_lib_dl_dlopen=yes
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"
32797 + lt_cv_dlopen="dyld"
32798 + lt_cv_dlopen_libs=
32799 + lt_cv_dlopen_self=yes
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
32811 + cat >conftest.$ac_ext <<_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. */
32827 +# include <limits.h>
32829 +# include <assert.h>
32834 +/* Override any gcc2 internal prototype to avoid an error. */
32835 +#ifdef __cplusplus
32839 +/* We use char because int might match the return type of a gcc2
32840 + builtin and then its argument prototype would still apply. */
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)
32848 +char (*f) () = shl_load;
32850 +#ifdef __cplusplus
32857 +return f != shl_load;
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
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
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
32882 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32883 + (exit $ac_status); }; }; then
32884 + ac_cv_func_shl_load=yes
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"
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
32904 + ac_check_lib_save_LIBS=$LIBS
32905 +LIBS="-ldld $LIBS"
32906 +cat >conftest.$ac_ext <<_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
32917 +/* We use char because int might match the return type of a gcc2
32918 + builtin and then its argument prototype would still apply. */
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
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
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
32948 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
32949 + (exit $ac_status); }; }; then
32950 + ac_cv_lib_dld_shl_load=yes
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"
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
32971 + cat >conftest.$ac_ext <<_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. */
32987 +# include <limits.h>
32989 +# include <assert.h>
32994 +/* Override any gcc2 internal prototype to avoid an error. */
32995 +#ifdef __cplusplus
32999 +/* We use char because int might match the return type of a gcc2
33000 + builtin and then its argument prototype would still apply. */
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)
33008 +char (*f) () = dlopen;
33010 +#ifdef __cplusplus
33017 +return f != dlopen;
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
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
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
33042 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33043 + (exit $ac_status); }; }; then
33044 + ac_cv_func_dlopen=yes
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"
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
33064 + ac_check_lib_save_LIBS=$LIBS
33066 +cat >conftest.$ac_ext <<_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
33077 +/* We use char because int might match the return type of a gcc2
33078 + builtin and then its argument prototype would still apply. */
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
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
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
33108 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33109 + (exit $ac_status); }; }; then
33110 + ac_cv_lib_dl_dlopen=yes
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"
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
33131 + ac_check_lib_save_LIBS=$LIBS
33132 +LIBS="-lsvld $LIBS"
33133 +cat >conftest.$ac_ext <<_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
33144 +/* We use char because int might match the return type of a gcc2
33145 + builtin and then its argument prototype would still apply. */
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
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
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
33175 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176 + (exit $ac_status); }; }; then
33177 + ac_cv_lib_svld_dlopen=yes
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"
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
33198 + ac_check_lib_save_LIBS=$LIBS
33199 +LIBS="-ldld $LIBS"
33200 +cat >conftest.$ac_ext <<_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
33211 +/* We use char because int might match the return type of a gcc2
33212 + builtin and then its argument prototype would still apply. */
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
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
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
33242 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
33243 + (exit $ac_status); }; }; then
33244 + ac_cv_lib_dld_dld_link=yes
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"
33279 + if test "x$lt_cv_dlopen" != xno; then
33280 + enable_dlopen=yes
33285 + case $lt_cv_dlopen in
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
33301 + if test "$cross_compiling" = yes; then :
33302 + lt_cv_dlopen_self=cross
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"
33311 +#include <dlfcn.h>
33314 +#include <stdio.h>
33316 +#ifdef RTLD_GLOBAL
33317 +# define LT_DLGLOBAL RTLD_GLOBAL
33320 +# define LT_DLGLOBAL DL_GLOBAL
33322 +# define LT_DLGLOBAL 0
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
33330 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
33333 +# define LT_DLLAZY_OR_NOW DL_LAZY
33336 +# define LT_DLLAZY_OR_NOW RTLD_NOW
33339 +# define LT_DLLAZY_OR_NOW DL_NOW
33341 +# define LT_DLLAZY_OR_NOW 0
33348 +#ifdef __cplusplus
33349 +extern "C" void exit (int);
33352 +void fnord() { int i=42;}
33355 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33356 + int status = $lt_dlunknown;
33360 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
33361 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
33362 + /* dlclose (self); */
33365 + puts (dlerror ());
33370 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33371 + (eval $ac_link) 2>&5
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
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 ;;
33383 + # compilation failed
33384 + lt_cv_dlopen_self=no
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
33401 + if test "$cross_compiling" = yes; then :
33402 + lt_cv_dlopen_self_static=cross
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"
33411 +#include <dlfcn.h>
33414 +#include <stdio.h>
33416 +#ifdef RTLD_GLOBAL
33417 +# define LT_DLGLOBAL RTLD_GLOBAL
33420 +# define LT_DLGLOBAL DL_GLOBAL
33422 +# define LT_DLGLOBAL 0
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
33430 +# define LT_DLLAZY_OR_NOW RTLD_LAZY
33433 +# define LT_DLLAZY_OR_NOW DL_LAZY
33436 +# define LT_DLLAZY_OR_NOW RTLD_NOW
33439 +# define LT_DLLAZY_OR_NOW DL_NOW
33441 +# define LT_DLLAZY_OR_NOW 0
33448 +#ifdef __cplusplus
33449 +extern "C" void exit (int);
33452 +void fnord() { int i=42;}
33455 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
33456 + int status = $lt_dlunknown;
33460 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
33461 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
33462 + /* dlclose (self); */
33465 + puts (dlerror ());
33470 + if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33471 + (eval $ac_link) 2>&5
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
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 ;;
33483 + # compilation failed
33484 + lt_cv_dlopen_self_static=no
33491 +echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
33492 +echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
33495 + CPPFLAGS="$save_CPPFLAGS"
33496 + LDFLAGS="$save_LDFLAGS"
33497 + LIBS="$save_LIBS"
33501 + case $lt_cv_dlopen_self in
33502 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
33503 + *) enable_dlopen_self=unknown ;;
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 ;;
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.
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'
33536 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
33537 + test "$enable_shared" = yes && enable_static=no
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
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 \
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 \
33587 + postdep_objects \
33590 + compiler_lib_search_path \
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 \
33604 + module_expsym_cmds \
33605 + lt_cv_prog_compiler_c_o \
33606 + exclude_expsyms \
33607 + include_expsyms; do
33610 + old_archive_cmds | \
33611 + old_archive_from_new_cmds | \
33613 + archive_expsym_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\"\`\\\""
33626 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
33632 + *'\$0 --fallback-echo"')
33633 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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"
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.
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.
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.
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
33715 +# The build system.
33716 +build_alias=$build_alias
33718 +build_os=$build_os
33720 +# An echo program that does not interpret backslashes.
33725 +AR_FLAGS=$lt_AR_FLAGS
33730 +# LTCC compiler flags.
33731 +LTCFLAGS=$lt_LTCFLAGS
33733 +# A language-specific compiler.
33736 +# Is the compiler the GNU C compiler?
33742 +# The linker used to build libraries.
33745 +# Whether we need hard or soft links.
33748 +# A BSD-compatible nm program.
33751 +# A symbol stripping program
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.
33766 +# The name of the directory that contains temporary libtool files.
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").
33782 +# Shared library suffix (normally ".so").
33783 +shrext_cmds='$shrext_cmds'
33785 +# Executable file suffix (normally "").
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.
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
33872 +predep_objects=$lt_predep_objects
33874 +# Dependencies to place after the objects being linked to create a
33876 +postdep_objects=$lt_postdep_objects
33878 +# Dependencies to place before the objects being linked to create a
33880 +predeps=$lt_predeps
33882 +# Dependencies to place after the objects being linked to create a
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
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
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
34005 + export COLLECT_NAMES
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"
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"
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
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"
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;}
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;}
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;}
34063 + if test -z "$LTCFLAGS"; then
34064 + eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
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
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; }; }
34083 + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
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; }; }
34090 + # Update the list of available tags.
34091 + if test -n "$tagname"; then
34092 + echo appending configuration tag \"$tagname\" to $ofile
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
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
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=
34133 +compiler_lib_search_path_CXX=
34135 +# Source file extension for C++ test sources.
34138 +# Object file extension for compiled C++ test sources.
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.
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`
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`
34174 +# Allow CC to be a program name with arguments.
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
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
34189 + $as_unset lt_cv_path_LD
34191 +test -z "${LDCXX+set}" || LD=$LDCXX
34195 +for cc_temp in $compiler""; do
34197 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
34198 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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'
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
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
34232 + # gcc leaves a trailing carriage return which upsets mingw
34233 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
34235 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
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%/%"`
34246 + test -z "$LD" && LD="$ac_prog"
34249 + # If it fails, then pretend we aren't using GCC.
34253 + # If it is relative, then search for the first ld in PATH.
34254 + with_gnu_ld=unknown
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
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
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"
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
34286 + test "$with_gnu_ld" != yes && break
34291 - IFS="$ac_save_ifs"
34292 - test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
34293 + IFS="$lt_save_ifs"
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
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
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
34325 + lt_cv_prog_gnu_ld=no
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.
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)
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'
34361 + whole_archive_flag_spec_CXX=
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'
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"'
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
34397 + # FIXME: insert proper C++ library support
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'
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
34417 + aix_use_runtimelinking=yes
34425 + exp_sym_flag='-bexport'
34426 + no_entry_flag='-bnoentry'
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
34448 + # We have reworked collect2
34449 + hardcode_direct_CXX=yes
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=
34462 + shared_flag='-shared'
34463 + if test "$aix_use_runtimelinking" = yes; then
34464 + shared_flag="$shared_flag "'${wl}-G'
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:
34473 + if test "$aix_use_runtimelinking" = yes; then
34474 + shared_flag='${wl}-G'
34476 + shared_flag='${wl}-bM:SRE'
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
34492 +cat confdefs.h >>conftest.$ac_ext
34493 +cat >>conftest.$ac_ext <<_ACEOF
34494 +/* end confdefs.h. */
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
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
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
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; }
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; }
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"
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"
34550 + # Determine the default libpath from the value encoded in an empty executable.
34551 + cat >conftest.$ac_ext <<_ACEOF
34554 +cat confdefs.h >>conftest.$ac_ext
34555 +cat >>conftest.$ac_ext <<_ACEOF
34556 +/* end confdefs.h. */
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
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
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
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; }
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; }
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'
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'
34629 + case $cc_basename in
34631 + # FIXME: insert proper C++ library support
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;
34652 + echo EXPORTS > $output_objdir/$soname.def;
34653 + cat $export_symbols >> $output_objdir/$soname.def;
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'
34660 + darwin* | rhapsody*)
34662 + rhapsody* | darwin1.[012])
34663 + allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
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'
34669 + case ${MACOSX_DEPLOYMENT_TARGET} in
34671 + allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
34674 + allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
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
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'
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'
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}'
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}'
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}'
34707 + case $cc_basename in
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}'
34724 + case $cc_basename in
34726 + # FIXME: insert proper C++ library support
34730 + # Green Hills C++ Compiler
34731 + # FIXME: insert proper C++ library support
34735 + # FIXME: insert proper C++ library support
34741 + # C++ shared libraries reported to be fairly broken before switch to ELF
34745 + archive_cmds_need_lc_CXX=no
34747 + freebsd* | kfreebsd*-gnu | dragonfly*)
34748 + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
34750 + ld_shlibs_CXX=yes
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
34765 + # FIXME: insert proper C++ library support
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
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'
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'
34784 + # FIXME: insert proper C++ library support
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
34797 + hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
34800 + export_dynamic_flag_spec_CXX='${wl}-E'
34804 + case $host_cpu in
34806 + hardcode_direct_CXX=no
34807 + hardcode_shlibpath_var_CXX=no
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.
34817 + case $cc_basename in
34819 + # FIXME: insert proper C++ library support
34823 + case $host_cpu in
34825 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
34828 + archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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'
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
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'
34845 + if test "$GXX" = yes; then
34846 + if test $with_gnu_ld = no; then
34847 + case $host_cpu in
34849 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
34852 + archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
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'
34860 + # FIXME: insert proper C++ library support
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'
34881 + case $cc_basename in
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'
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'
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'
34900 + link_all_deplibs_CXX=yes
34903 + hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
34904 + hardcode_libdir_separator_CXX=:
34907 + case $cc_basename in
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
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'
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
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'
34944 + *) # Version 8.0 or newer
34946 + case $host_cpu in
34947 + ia64*) tmp_idyn=' -i_dynamic';;
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'
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'
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'
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
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'
34989 + # FIXME: insert proper C++ library support
34993 + # FIXME: insert proper C++ library support
34997 + case $cc_basename in
34999 + # FIXME: insert proper C++ library support
35003 + # FIXME: insert proper C++ library support
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'
35012 + hardcode_libdir_flag_spec_CXX='-R$libdir'
35013 + hardcode_direct_CXX=yes
35014 + hardcode_shlibpath_var_CXX=no
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::"'
35020 + # C++ shared libraries are fairly broken
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'
35033 + output_verbose_link_cmd='echo'
35036 + case $cc_basename in
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'
35054 + # Rational C++ 2.4.1
35055 + # FIXME: insert proper C++ library support
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
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'
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"'
35089 + # FIXME: insert proper C++ library support
35096 + case $cc_basename in
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'
35113 + # Rational C++ 2.4.1
35114 + # FIXME: insert proper C++ library support
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~
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
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'
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"'
35152 + # FIXME: insert proper C++ library support
35159 + # FIXME: insert proper C++ library support
35163 + case $cc_basename in
35166 + # FIXME: insert proper C++ library support
35171 + # FIXME: insert proper C++ library support
35175 + # FIXME: insert proper C++ library support
35181 + case $cc_basename in
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
35193 + solaris2.[0-5] | solaris2.[0-5].*) ;;
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
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'
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'
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'
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\""
35237 + # g++ 2.7 appears to require `-G' NOT `-shared' on this
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\""
35249 + hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
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
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'
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'
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
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
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'
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'
35309 + case $cc_basename in
35311 + # NonStop-UX NCC 3.20
35312 + # FIXME: insert proper C++ library support
35316 + # FIXME: insert proper C++ library support
35322 + # FIXME: insert proper C++ library support
35326 + # FIXME: insert proper C++ library support
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
35338 +cat > conftest.$ac_ext <<EOF
35342 + Foo (void) { a = 0; }
35348 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
35349 + (eval $ac_compile) 2>&5
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
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
35379 + if test "$pre_test_object_deps_done" = no; then
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}"
35388 + compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
35391 + # The "-l" case would never come before the object being
35392 + # linked, so don't bother handling this case.
35395 + if test -z "$postdeps_CXX"; then
35396 + postdeps_CXX="${prev}${p}"
35398 + postdeps_CXX="${postdeps_CXX} ${prev}${p}"
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
35411 + if test "$pre_test_object_deps_done" = no; then
35412 + if test -z "$predep_objects_CXX"; then
35413 + predep_objects_CXX="$p"
35415 + predep_objects_CXX="$predep_objects_CXX $p"
35418 + if test -z "$postdep_objects_CXX"; then
35419 + postdep_objects_CXX="$p"
35421 + postdep_objects_CXX="$postdep_objects_CXX $p"
35426 + *) ;; # Ignore the rest.
35432 + rm -f a.out a.exe
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
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=
35450 + case $cc_basename in
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'
35462 +case " $postdeps_CXX " in
35463 +*" -lc "*) archive_cmds_need_lc_CXX=no ;;
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'
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'
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'
35492 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
35493 + # PIC is the default for these OSes.
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'
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'
35506 + # DJGPP does not support shared libraries at all
35507 + lt_prog_compiler_pic_CXX=
35510 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
35511 + # Instead, we relocate shared libraries at runtime.
35514 + if test -d /usr/nec; then
35515 + lt_prog_compiler_pic_CXX=-Kconform_pic
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
35525 + lt_prog_compiler_pic_CXX='-fPIC'
35530 + lt_prog_compiler_pic_CXX='-fPIC'
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'
35541 + lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
35545 + case $cc_basename in
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"
35553 + # PIC is the default on this platform
35554 + # Common symbols not allowed in MH_DYLIB files
35555 + case $cc_basename in
35557 + lt_prog_compiler_pic_CXX='-qnocommon'
35558 + lt_prog_compiler_wl_CXX='-Wl,'
35563 + case $cc_basename in
35565 + lt_prog_compiler_pic_CXX='-KPIC'
35568 + # Green Hills C++ Compiler
35569 + lt_prog_compiler_pic_CXX='-pic'
35575 + freebsd* | kfreebsd*-gnu | dragonfly*)
35576 + # FreeBSD uses GNU C++
35578 + hpux9* | hpux10* | hpux11*)
35579 + case $cc_basename in
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'
35588 + lt_prog_compiler_wl_CXX='-Wl,'
35589 + lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
35590 + case $host_cpu in
35595 + lt_prog_compiler_pic_CXX='+Z'
35604 + # This is c89, which is MS Visual C++ (no shared libs)
35605 + # Anyone wants to do a port?
35607 + irix5* | irix6* | nonstopux*)
35608 + case $cc_basename in
35610 + lt_prog_compiler_wl_CXX='-Wl,'
35611 + lt_prog_compiler_static_CXX='-non_shared'
35612 + # CC pic flag -KPIC is the default.
35619 + case $cc_basename in
35621 + # KAI C++ Compiler
35622 + lt_prog_compiler_wl_CXX='--backend -Wl,'
35623 + lt_prog_compiler_pic_CXX='-fPIC'
35627 + lt_prog_compiler_wl_CXX='-Wl,'
35628 + lt_prog_compiler_pic_CXX='-KPIC'
35629 + lt_prog_compiler_static_CXX='-static'
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'
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'
35653 + case $cc_basename in
35655 + lt_prog_compiler_pic_CXX='-W c,exportall'
35663 + osf3* | osf4* | osf5*)
35664 + case $cc_basename in
35666 + lt_prog_compiler_wl_CXX='--backend -Wl,'
35669 + # Rational C++ 2.4.1
35670 + lt_prog_compiler_pic_CXX='-pic'
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'
35687 + case $cc_basename in
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 '
35695 + # Green Hills C++ Compiler
35696 + lt_prog_compiler_pic_CXX='-PIC'
35703 + case $cc_basename in
35706 + lt_prog_compiler_pic_CXX='-pic'
35707 + lt_prog_compiler_static_CXX='-Bstatic'
35711 + lt_prog_compiler_pic_CXX='-pic'
35718 + case $cc_basename in
35720 + # NonStop-UX NCC 3.20
35721 + lt_prog_compiler_pic_CXX='-KPIC'
35727 + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
35728 + case $cc_basename in
35730 + lt_prog_compiler_wl_CXX='-Wl,'
35731 + lt_prog_compiler_pic_CXX='-KPIC'
35732 + lt_prog_compiler_static_CXX='-Bstatic'
35739 + lt_prog_compiler_can_build_shared_CXX=no
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
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)
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
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
35793 + *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
35796 + lt_prog_compiler_pic_CXX=
35797 + lt_prog_compiler_can_build_shared_CXX=no
35802 + # For platforms which do not support PIC, -DPIC is meaningless:
35804 + lt_prog_compiler_pic_CXX=
35807 + lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
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
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
35836 + lt_prog_compiler_static_works_CXX=yes
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
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
35858 + lt_cv_prog_compiler_c_o_CXX=no
35859 + $rm -r conftest 2>/dev/null
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)
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
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
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
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
35911 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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'
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'
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'
35941 + export_symbols_cmds_CXX="$ltdll_cmds"
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'
35947 + export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
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
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
35966 + # FIXME: we may have to deal with multi-command sequences.
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
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
35980 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35981 + (exit $ac_status); } 2>conftest.err; then
35984 + libobjs=conftest.$ac_objext
35986 + wl=$lt_prog_compiler_wl_CXX
35987 + pic_flag=$lt_prog_compiler_pic_CXX
35988 + compiler_flags=-v
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
35998 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
35999 + (exit $ac_status); }
36001 + archive_cmds_need_lc_CXX=no
36003 + archive_cmds_need_lc_CXX=yes
36005 + allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
36007 + cat conftest.err 1>&5
36010 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
36011 +echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
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'
36025 +postuninstall_cmds=
36029 +shlibpath_overrides_runpath=unknown
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'`
36042 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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
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'
36065 + version_type=linux
36066 + need_lib_prefix=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
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.
36080 + aix4 | aix4.[01] | aix4.[01].*)
36081 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
36083 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
36086 + can_build_shared=no
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}'
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'
36104 + shlibpath_var=LIBPATH
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'
36115 + library_names_spec='${libname}${shared_ext}'
36116 + dynamic_linker="$host_os ld.so"
36117 + shlibpath_var=LIBRARY_PATH
36121 + version_type=linux
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
36134 +cygwin* | mingw* | pw32*)
36135 + version_type=windows
36136 + shrext_cmds=".dll"
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~
36153 + shlibpath_overrides_runpath=yes
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"
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'`
36174 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
36185 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
36188 + dynamic_linker='Win32 ld.exe'
36189 + # FIXME: first we should search . and the directory the executable is in
36190 + shlibpath_var=PATH
36193 +darwin* | rhapsody*)
36194 + dynamic_linker="$host_os dyld"
36195 + version_type=darwin
36196 + need_lib_prefix=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"`
36207 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
36209 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
36213 + version_type=linux
36214 + need_lib_prefix=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
36222 + dynamic_linker=no
36226 + version_type=linux
36227 + need_lib_prefix=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'
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`
36244 + freebsd[123]*) objformat=aout ;;
36245 + *) objformat=elf ;;
36248 + version_type=freebsd-$objformat
36249 + case $version_type in
36251 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
36253 + need_lib_prefix=no
36256 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
36260 + shlibpath_var=LD_LIBRARY_PATH
36263 + shlibpath_overrides_runpath=yes
36265 + freebsd3.[01]* | freebsdelf3.[01]*)
36266 + shlibpath_overrides_runpath=yes
36267 + hardcode_into_libs=yes
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
36274 + freebsd*) # from 4.6 on
36275 + shlibpath_overrides_runpath=yes
36276 + hardcode_into_libs=yes
36282 + version_type=linux
36283 + need_lib_prefix=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
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
36297 + case $host_cpu in
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"
36309 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
36311 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
36333 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
36334 + postinstall_cmds='chmod 555 $lib'
36338 + version_type=linux
36339 + need_lib_prefix=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
36349 +irix5* | irix6* | nonstopux*)
36351 + nonstopux*) version_type=nonstopux ;;
36353 + if test "$lt_cv_prog_gnu_ld" = yes; then
36354 + version_type=linux
36356 + version_type=irix
36359 + need_lib_prefix=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}'
36364 + irix5* | nonstopux*)
36365 + libsuff= shlibsuff=
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;;
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
36386 +# No shared lib support for Linux oldld, aout, or coff.
36387 +linux*oldld* | linux*aout* | linux*coff*)
36388 + dynamic_linker=no
36391 +# This must be Linux ELF.
36393 + version_type=linux
36394 + need_lib_prefix=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"
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'
36422 + version_type=linux
36423 + need_lib_prefix=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'
36434 + version_type=sunos
36435 + need_lib_prefix=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'
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'
36446 + shlibpath_var=LD_LIBRARY_PATH
36447 + shlibpath_overrides_runpath=yes
36448 + hardcode_into_libs=yes
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
36459 + version_type=linux
36460 + need_lib_prefix=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
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.
36474 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
36475 + *) need_version=no ;;
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
36482 + openbsd2.[89] | openbsd2.[89].*)
36483 + shlibpath_overrides_runpath=no
36486 + shlibpath_overrides_runpath=yes
36490 + shlibpath_overrides_runpath=yes
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
36503 +osf3* | osf4* | osf5*)
36505 + need_lib_prefix=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"
36515 + version_type=linux
36516 + need_lib_prefix=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'
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
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
36546 + shlibpath_overrides_runpath=no
36547 + need_lib_prefix=no
36548 + export_dynamic_flag_spec='${wl}-Blargedynsym'
36549 + runpath_var=LD_RUN_PATH
36552 + need_lib_prefix=no
36555 + need_lib_prefix=no
36557 + shlibpath_overrides_runpath=no
36558 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
36572 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
36573 + version_type=freebsd-elf
36574 + need_lib_prefix=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
36584 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
36585 + shlibpath_overrides_runpath=yes
36588 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
36592 + sys_lib_dlsearch_path_spec='/usr/lib'
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
36603 + dynamic_linker=no
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
36632 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
36633 + hardcode_action_CXX=immediate
36636 + # We cannot hardcode anything, or else we can only hardcode existing
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
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 \
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 \
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
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\"\`\\\""
36728 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
36734 + *'\$0 --fallback-echo"')
36735 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
36769 +# The build system.
36770 +build_alias=$build_alias
36772 +build_os=$build_os
36774 +# An echo program that does not interpret backslashes.
36779 +AR_FLAGS=$lt_AR_FLAGS
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?
36796 +# The linker used to build libraries.
36799 +# Whether we need hard or soft links.
36802 +# A BSD-compatible nm program.
36805 +# A symbol stripping program
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.
36820 +# The name of the directory that contains temporary libtool files.
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").
36836 +# Shared library suffix (normally ".so").
36837 +shrext_cmds='$shrext_cmds'
36839 +# Executable file suffix (normally "").
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.
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
36926 +predep_objects=$lt_predep_objects_CXX
36928 +# Dependencies to place after the objects being linked to create a
36930 +postdep_objects=$lt_postdep_objects_CXX
36932 +# Dependencies to place before the objects being linked to create a
36934 +predeps=$lt_predeps_CXX
36936 +# Dependencies to place after the objects being linked to create a
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
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
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"
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
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
37084 + if test -n "$F77" && test "X$F77" != "Xno"; then
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
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.
37114 +# Object file extension for compiled f77 test sources.
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.
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`
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`
37150 +# Allow CC to be a program name with arguments.
37155 +for cc_temp in $compiler""; do
37157 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37158 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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.
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'
37186 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
37187 + test "$enable_shared" = yes && enable_static=no
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
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'
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'
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'
37231 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
37232 + # PIC is the default for these OSes.
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'
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'
37248 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
37249 + # Instead, we relocate shared libraries at runtime.
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
37260 + if test -d /usr/nec; then
37261 + lt_prog_compiler_pic_F77=-Kconform_pic
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
37273 + lt_prog_compiler_pic_F77='-fPIC'
37279 + lt_prog_compiler_pic_F77='-fPIC'
37283 + # PORTME Check for flag to pass linker flags through the system compiler.
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'
37291 + lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
37295 + # PIC is the default on this platform
37296 + # Common symbols not allowed in MH_DYLIB files
37297 + case $cc_basename in
37299 + lt_prog_compiler_pic_F77='-qnocommon'
37300 + lt_prog_compiler_wl_F77='-Wl,'
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'
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
37320 + lt_prog_compiler_pic_F77='+Z'
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'
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'
37334 + lt_prog_compiler_pic_F77='-KPIC'
37335 + lt_prog_compiler_static_F77='-Bstatic'
37339 + case $cc_basename in
37341 + lt_prog_compiler_wl_F77='-Wl,'
37342 + lt_prog_compiler_pic_F77='-KPIC'
37343 + lt_prog_compiler_static_F77='-static'
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'
37353 + lt_prog_compiler_wl_F77='-Wl,'
37354 + # All Alpha code is PIC.
37355 + lt_prog_compiler_static_F77='-non_shared'
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'
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 ';;
37373 + lt_prog_compiler_wl_F77='-Wl,';;
37378 + lt_prog_compiler_wl_F77='-Qoption ld '
37379 + lt_prog_compiler_pic_F77='-PIC'
37380 + lt_prog_compiler_static_F77='-Bstatic'
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'
37390 + if test -d /usr/nec ;then
37391 + lt_prog_compiler_pic_F77='-Kconform_pic'
37392 + lt_prog_compiler_static_F77='-Bstatic'
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'
37403 + lt_prog_compiler_wl_F77='-Wl,'
37404 + lt_prog_compiler_can_build_shared_F77=no
37408 + lt_prog_compiler_pic_F77='-pic'
37409 + lt_prog_compiler_static_F77='-Bstatic'
37413 + lt_prog_compiler_can_build_shared_F77=no
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
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)
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
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
37467 + *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
37470 + lt_prog_compiler_pic_F77=
37471 + lt_prog_compiler_can_build_shared_F77=no
37476 + # For platforms which do not support PIC, -DPIC is meaningless:
37478 + lt_prog_compiler_pic_F77=
37481 + lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
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
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
37510 + lt_prog_compiler_static_works_F77=yes
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
37522 - LIBTOOL="./libtool"
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
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
37546 + lt_cv_prog_compiler_c_o_F77=no
37547 + $rm -r conftest 2>/dev/null
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)
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
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
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
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
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
37605 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
37616 - if test "x$LTSTATIC" = xno; then
37617 - disable_static="--disable-static"
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
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
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
37664 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
37665 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
37670 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
37682 + # we just hope/assume this is gcc and not c89 (= MSVC++)
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
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'
37705 + whole_archive_flag_spec_F77=
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 ;;
37716 + # See if GNU ld supports shared libraries.
37718 + aix3* | aix4* | aix5*)
37719 + # On AIX/PPC, the GNU linker is very broken
37720 + if test "$host_cpu" != ia64; then
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.
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
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'
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;
37775 + echo EXPORTS > $output_objdir/$soname.def;
37776 + cat $export_symbols >> $output_objdir/$soname.def;
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'
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'
37800 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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'
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' ;;
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'
37831 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
37832 + archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
37841 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
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.
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'
37861 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
37862 + case `$LD -v 2>&1` in
37863 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
37889 + archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
37891 + hardcode_direct_F77=yes
37892 + hardcode_shlibpath_var_F77=no
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'
37905 + if test "$ld_shlibs_F77" = no; then
37907 + hardcode_libdir_flag_spec_F77=
37908 + export_dynamic_flag_spec_F77=
37909 + whole_archive_flag_spec_F77=
37912 + # PORTME fill in a description of your system's linker (not GNU ld)
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
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'
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'
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'
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
37958 + exp_sym_flag='-bexport'
37959 + no_entry_flag='-bnoentry'
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
37981 + # We have reworked collect2
37982 + hardcode_direct_F77=yes
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=
37995 + shared_flag='-shared'
37996 + if test "$aix_use_runtimelinking" = yes; then
37997 + shared_flag="$shared_flag "'${wl}-G'
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:
38006 + if test "$aix_use_runtimelinking" = yes; then
38007 + shared_flag='${wl}-G'
38009 + shared_flag='${wl}-bM:SRE'
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
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
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
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
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; }
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; }
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"
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"
38072 + # Determine the default libpath from the value encoded in an empty executable.
38073 + cat >conftest.$ac_ext <<_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
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
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
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; }
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; }
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'
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
38138 + export_dynamic_flag_spec_F77=-rdynamic
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.
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
38162 + darwin* | rhapsody*)
38164 + rhapsody* | darwin1.[012])
38165 + allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
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'
38171 + case ${MACOSX_DEPLOYMENT_TARGET} in
38173 + allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
38176 + allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
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}'
38196 + case $cc_basename in
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}'
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
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
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
38233 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
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
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
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'
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'
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'
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'
38269 + archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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
38285 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
38286 + case $host_cpu in
38288 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38291 + archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
38294 + archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
38298 + case $host_cpu in
38300 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
38303 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
38306 + archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
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
38316 + hardcode_libdir_flag_spec_ld_F77='+b $libdir'
38317 + hardcode_direct_F77=no
38318 + hardcode_shlibpath_var_F77=no
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
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'
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'
38339 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
38340 + hardcode_libdir_separator_F77=:
38341 + link_all_deplibs_F77=yes
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
38348 + archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
38350 + hardcode_libdir_flag_spec_F77='-R$libdir'
38351 + hardcode_direct_F77=yes
38352 + hardcode_shlibpath_var_F77=no
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
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'
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'
38378 + archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
38379 + hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
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'
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'
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'
38401 + hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
38402 + hardcode_libdir_separator_F77=:
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'
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'
38419 + hardcode_libdir_separator_F77=:
38423 + no_undefined_flag_F77=' -z text'
38424 + if test "$GCC" = yes; then
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'
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'
38435 + hardcode_libdir_flag_spec_F77='-R$libdir'
38436 + hardcode_shlibpath_var_F77=no
38438 + solaris2.[0-5] | solaris2.[0-5].*) ;;
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?)
38447 + whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
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' ;;
38452 + link_all_deplibs_F77=yes
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'
38461 + archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
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
38470 + case $host_vendor in
38472 + archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
38473 + hardcode_direct_F77=yes # is this really true???
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
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
38487 + runpath_var='LD_RUN_PATH'
38488 + hardcode_shlibpath_var_F77=no
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'
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
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'
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'
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
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'
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'
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
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
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
38575 + # FIXME: we may have to deal with multi-command sequences.
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
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
38589 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38590 + (exit $ac_status); } 2>conftest.err; then
38593 + libobjs=conftest.$ac_objext
38595 + wl=$lt_prog_compiler_wl_F77
38596 + pic_flag=$lt_prog_compiler_pic_F77
38597 + compiler_flags=-v
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
38607 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
38608 + (exit $ac_status); }
38610 + archive_cmds_need_lc_F77=no
38612 + archive_cmds_need_lc_F77=yes
38614 + allow_undefined_flag_F77=$lt_save_allow_undefined_flag
38616 + cat conftest.err 1>&5
38619 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
38620 +echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
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'
38634 +postuninstall_cmds=
38638 +shlibpath_overrides_runpath=unknown
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'`
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
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
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'
38675 + version_type=linux
38676 + need_lib_prefix=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
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.
38690 + aix4 | aix4.[01] | aix4.[01].*)
38691 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
38693 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
38696 + can_build_shared=no
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}'
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'
38714 + shlibpath_var=LIBPATH
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'
38725 + library_names_spec='${libname}${shared_ext}'
38726 + dynamic_linker="$host_os ld.so"
38727 + shlibpath_var=LIBRARY_PATH
38731 + version_type=linux
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
38744 +cygwin* | mingw* | pw32*)
38745 + version_type=windows
38746 + shrext_cmds=".dll"
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~
38763 + shlibpath_overrides_runpath=yes
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"
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'`
38784 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
38795 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
38798 + dynamic_linker='Win32 ld.exe'
38799 + # FIXME: first we should search . and the directory the executable is in
38800 + shlibpath_var=PATH
38803 +darwin* | rhapsody*)
38804 + dynamic_linker="$host_os dyld"
38805 + version_type=darwin
38806 + need_lib_prefix=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"`
38817 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
38819 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
38823 + version_type=linux
38824 + need_lib_prefix=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
38832 + dynamic_linker=no
38836 + version_type=linux
38837 + need_lib_prefix=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'
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`
38854 + freebsd[123]*) objformat=aout ;;
38855 + *) objformat=elf ;;
38858 + version_type=freebsd-$objformat
38859 + case $version_type in
38861 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
38863 + need_lib_prefix=no
38866 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
38870 + shlibpath_var=LD_LIBRARY_PATH
38873 + shlibpath_overrides_runpath=yes
38875 + freebsd3.[01]* | freebsdelf3.[01]*)
38876 + shlibpath_overrides_runpath=yes
38877 + hardcode_into_libs=yes
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
38884 + freebsd*) # from 4.6 on
38885 + shlibpath_overrides_runpath=yes
38886 + hardcode_into_libs=yes
38892 + version_type=linux
38893 + need_lib_prefix=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
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
38907 + case $host_cpu in
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"
38919 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
38921 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
38943 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
38944 + postinstall_cmds='chmod 555 $lib'
38948 + version_type=linux
38949 + need_lib_prefix=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
38959 +irix5* | irix6* | nonstopux*)
38961 + nonstopux*) version_type=nonstopux ;;
38963 + if test "$lt_cv_prog_gnu_ld" = yes; then
38964 + version_type=linux
38966 + version_type=irix
38969 + need_lib_prefix=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}'
38974 + irix5* | nonstopux*)
38975 + libsuff= shlibsuff=
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;;
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
38996 +# No shared lib support for Linux oldld, aout, or coff.
38997 +linux*oldld* | linux*aout* | linux*coff*)
38998 + dynamic_linker=no
39001 +# This must be Linux ELF.
39003 + version_type=linux
39004 + need_lib_prefix=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"
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'
39032 + version_type=linux
39033 + need_lib_prefix=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'
39044 + version_type=sunos
39045 + need_lib_prefix=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'
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'
39056 + shlibpath_var=LD_LIBRARY_PATH
39057 + shlibpath_overrides_runpath=yes
39058 + hardcode_into_libs=yes
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
39069 + version_type=linux
39070 + need_lib_prefix=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
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.
39084 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
39085 + *) need_version=no ;;
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
39092 + openbsd2.[89] | openbsd2.[89].*)
39093 + shlibpath_overrides_runpath=no
39096 + shlibpath_overrides_runpath=yes
39100 + shlibpath_overrides_runpath=yes
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
39113 +osf3* | osf4* | osf5*)
39115 + need_lib_prefix=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"
39125 + version_type=linux
39126 + need_lib_prefix=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'
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
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
39156 + shlibpath_overrides_runpath=no
39157 + need_lib_prefix=no
39158 + export_dynamic_flag_spec='${wl}-Blargedynsym'
39159 + runpath_var=LD_RUN_PATH
39162 + need_lib_prefix=no
39165 + need_lib_prefix=no
39167 + shlibpath_overrides_runpath=no
39168 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
39182 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
39183 + version_type=freebsd-elf
39184 + need_lib_prefix=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
39194 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
39195 + shlibpath_overrides_runpath=yes
39198 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
39202 + sys_lib_dlsearch_path_spec='/usr/lib'
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
39213 + dynamic_linker=no
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
39242 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
39243 + hardcode_action_F77=immediate
39246 + # We cannot hardcode anything, or else we can only hardcode existing
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
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 \
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 \
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
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\"\`\\\""
39338 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
39344 + *'\$0 --fallback-echo"')
39345 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
39379 +# The build system.
39380 +build_alias=$build_alias
39382 +build_os=$build_os
39384 +# An echo program that does not interpret backslashes.
39389 +AR_FLAGS=$lt_AR_FLAGS
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?
39406 +# The linker used to build libraries.
39409 +# Whether we need hard or soft links.
39412 +# A BSD-compatible nm program.
39415 +# A symbol stripping program
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.
39430 +# The name of the directory that contains temporary libtool files.
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").
39446 +# Shared library suffix (normally ".so").
39447 +shrext_cmds='$shrext_cmds'
39449 +# Executable file suffix (normally "").
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.
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
39536 +predep_objects=$lt_predep_objects_F77
39538 +# Dependencies to place after the objects being linked to create a
39540 +postdep_objects=$lt_postdep_objects_F77
39542 +# Dependencies to place before the objects being linked to create a
39544 +predeps=$lt_predeps_F77
39546 +# Dependencies to place after the objects being linked to create a
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
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
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"
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
39685 + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
39689 +# Source file extension for Java test sources.
39692 +# Object file extension for compiled Java test sources.
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.
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`
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`
39728 +# Allow CC to be a program name with arguments.
39733 +for cc_temp in $compiler""; do
39735 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
39736 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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
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)
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
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"
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'
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'
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'
39829 + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
39830 + # PIC is the default for these OSes.
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'
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'
39846 + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
39847 + # Instead, we relocate shared libraries at runtime.
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
39858 + if test -d /usr/nec; then
39859 + lt_prog_compiler_pic_GCJ=-Kconform_pic
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
39871 + lt_prog_compiler_pic_GCJ='-fPIC'
39877 + lt_prog_compiler_pic_GCJ='-fPIC'
39881 + # PORTME Check for flag to pass linker flags through the system compiler.
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'
39889 + lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
39893 + # PIC is the default on this platform
39894 + # Common symbols not allowed in MH_DYLIB files
39895 + case $cc_basename in
39897 + lt_prog_compiler_pic_GCJ='-qnocommon'
39898 + lt_prog_compiler_wl_GCJ='-Wl,'
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'
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
39918 + lt_prog_compiler_pic_GCJ='+Z'
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'
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'
39932 + lt_prog_compiler_pic_GCJ='-KPIC'
39933 + lt_prog_compiler_static_GCJ='-Bstatic'
39937 + case $cc_basename in
39939 + lt_prog_compiler_wl_GCJ='-Wl,'
39940 + lt_prog_compiler_pic_GCJ='-KPIC'
39941 + lt_prog_compiler_static_GCJ='-static'
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'
39951 + lt_prog_compiler_wl_GCJ='-Wl,'
39952 + # All Alpha code is PIC.
39953 + lt_prog_compiler_static_GCJ='-non_shared'
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'
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 ';;
39971 + lt_prog_compiler_wl_GCJ='-Wl,';;
39976 + lt_prog_compiler_wl_GCJ='-Qoption ld '
39977 + lt_prog_compiler_pic_GCJ='-PIC'
39978 + lt_prog_compiler_static_GCJ='-Bstatic'
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'
39988 + if test -d /usr/nec ;then
39989 + lt_prog_compiler_pic_GCJ='-Kconform_pic'
39990 + lt_prog_compiler_static_GCJ='-Bstatic'
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'
40001 + lt_prog_compiler_wl_GCJ='-Wl,'
40002 + lt_prog_compiler_can_build_shared_GCJ=no
40006 + lt_prog_compiler_pic_GCJ='-pic'
40007 + lt_prog_compiler_static_GCJ='-Bstatic'
40011 + lt_prog_compiler_can_build_shared_GCJ=no
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
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)
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
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
40065 + *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
40068 + lt_prog_compiler_pic_GCJ=
40069 + lt_prog_compiler_can_build_shared_GCJ=no
40074 + # For platforms which do not support PIC, -DPIC is meaningless:
40076 + lt_prog_compiler_pic_GCJ=
40079 + lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
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
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
40108 + lt_prog_compiler_static_works_GCJ=yes
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
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
40130 + lt_cv_prog_compiler_c_o_GCJ=no
40131 + $rm -r conftest 2>/dev/null
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)
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
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
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
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
40183 + ln conftest.a conftest.b 2>/dev/null && hard_links=no
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;}
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
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
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
40240 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
40241 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
40246 +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
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
40258 + # we just hope/assume this is gcc and not c89 (= MSVC++)
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
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'
40281 + whole_archive_flag_spec_GCJ=
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 ;;
40292 + # See if GNU ld supports shared libraries.
40294 + aix3* | aix4* | aix5*)
40295 + # On AIX/PPC, the GNU linker is very broken
40296 + if test "$host_cpu" != ia64; then
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.
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
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'
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;
40351 + echo EXPORTS > $output_objdir/$soname.def;
40352 + cat $export_symbols >> $output_objdir/$soname.def;
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'
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'
40376 + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
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'
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' ;;
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'
40407 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
40408 + archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
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'
40417 + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
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.
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'
40437 + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
40438 + case `$LD -v 2>&1` in
40439 + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
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.
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'
40465 + archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
40467 + hardcode_direct_GCJ=yes
40468 + hardcode_shlibpath_var_GCJ=no
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'
40481 + if test "$ld_shlibs_GCJ" = no; then
40483 + hardcode_libdir_flag_spec_GCJ=
40484 + export_dynamic_flag_spec_GCJ=
40485 + whole_archive_flag_spec_GCJ=
40488 + # PORTME fill in a description of your system's linker (not GNU ld)
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
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'
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'
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'
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
40534 + exp_sym_flag='-bexport'
40535 + no_entry_flag='-bnoentry'
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
40557 + # We have reworked collect2
40558 + hardcode_direct_GCJ=yes
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=
40571 + shared_flag='-shared'
40572 + if test "$aix_use_runtimelinking" = yes; then
40573 + shared_flag="$shared_flag "'${wl}-G'
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:
40582 + if test "$aix_use_runtimelinking" = yes; then
40583 + shared_flag='${wl}-G'
40585 + shared_flag='${wl}-bM:SRE'
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
40601 +cat confdefs.h >>conftest.$ac_ext
40602 +cat >>conftest.$ac_ext <<_ACEOF
40603 +/* end confdefs.h. */
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
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
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
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; }
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; }
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"
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"
40658 + # Determine the default libpath from the value encoded in an empty executable.
40659 + cat >conftest.$ac_ext <<_ACEOF
40662 +cat confdefs.h >>conftest.$ac_ext
40663 +cat >>conftest.$ac_ext <<_ACEOF
40664 +/* end confdefs.h. */
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
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
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
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; }
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; }
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'
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
40734 + export_dynamic_flag_spec_GCJ=-rdynamic
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.
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
40758 + darwin* | rhapsody*)
40760 + rhapsody* | darwin1.[012])
40761 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
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'
40767 + case ${MACOSX_DEPLOYMENT_TARGET} in
40769 + allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
40772 + allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
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}'
40792 + case $cc_basename in
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}'
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
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
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
40829 + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
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
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
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'
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'
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'
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'
40865 + archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
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
40881 + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
40882 + case $host_cpu in
40884 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40887 + archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40890 + archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
40894 + case $host_cpu in
40896 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
40899 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
40902 + archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
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
40912 + hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
40913 + hardcode_direct_GCJ=no
40914 + hardcode_shlibpath_var_GCJ=no
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
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'
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'
40935 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
40936 + hardcode_libdir_separator_GCJ=:
40937 + link_all_deplibs_GCJ=yes
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
40944 + archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
40946 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
40947 + hardcode_direct_GCJ=yes
40948 + hardcode_shlibpath_var_GCJ=no
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
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'
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'
40974 + archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
40975 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
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'
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'
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'
40997 + hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
40998 + hardcode_libdir_separator_GCJ=:
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'
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'
41015 + hardcode_libdir_separator_GCJ=:
41019 + no_undefined_flag_GCJ=' -z text'
41020 + if test "$GCC" = yes; then
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'
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'
41031 + hardcode_libdir_flag_spec_GCJ='-R$libdir'
41032 + hardcode_shlibpath_var_GCJ=no
41034 + solaris2.[0-5] | solaris2.[0-5].*) ;;
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?)
41043 + whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
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' ;;
41048 + link_all_deplibs_GCJ=yes
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'
41057 + archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
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
41066 + case $host_vendor in
41068 + archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
41069 + hardcode_direct_GCJ=yes # is this really true???
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
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
41083 + runpath_var='LD_RUN_PATH'
41084 + hardcode_shlibpath_var_GCJ=no
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'
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
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'
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'
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
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'
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'
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
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
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
41171 + # FIXME: we may have to deal with multi-command sequences.
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
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
41185 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41186 + (exit $ac_status); } 2>conftest.err; then
41189 + libobjs=conftest.$ac_objext
41191 + wl=$lt_prog_compiler_wl_GCJ
41192 + pic_flag=$lt_prog_compiler_pic_GCJ
41193 + compiler_flags=-v
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
41203 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
41204 + (exit $ac_status); }
41206 + archive_cmds_need_lc_GCJ=no
41208 + archive_cmds_need_lc_GCJ=yes
41210 + allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
41212 + cat conftest.err 1>&5
41215 + echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
41216 +echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
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'
41230 +postuninstall_cmds=
41234 +shlibpath_overrides_runpath=unknown
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'`
41247 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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
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'
41270 + version_type=linux
41271 + need_lib_prefix=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
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.
41285 + aix4 | aix4.[01] | aix4.[01].*)
41286 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
41288 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
41291 + can_build_shared=no
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}'
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'
41309 + shlibpath_var=LIBPATH
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'
41320 + library_names_spec='${libname}${shared_ext}'
41321 + dynamic_linker="$host_os ld.so"
41322 + shlibpath_var=LIBRARY_PATH
41326 + version_type=linux
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
41339 +cygwin* | mingw* | pw32*)
41340 + version_type=windows
41341 + shrext_cmds=".dll"
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~
41358 + shlibpath_overrides_runpath=yes
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"
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'`
41379 + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
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}'
41390 + library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
41393 + dynamic_linker='Win32 ld.exe'
41394 + # FIXME: first we should search . and the directory the executable is in
41395 + shlibpath_var=PATH
41398 +darwin* | rhapsody*)
41399 + dynamic_linker="$host_os dyld"
41400 + version_type=darwin
41401 + need_lib_prefix=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"`
41412 + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
41414 + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
41418 + version_type=linux
41419 + need_lib_prefix=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
41427 + dynamic_linker=no
41431 + version_type=linux
41432 + need_lib_prefix=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'
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`
41449 + freebsd[123]*) objformat=aout ;;
41450 + *) objformat=elf ;;
41453 + version_type=freebsd-$objformat
41454 + case $version_type in
41456 + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
41458 + need_lib_prefix=no
41461 + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
41465 + shlibpath_var=LD_LIBRARY_PATH
41468 + shlibpath_overrides_runpath=yes
41470 + freebsd3.[01]* | freebsdelf3.[01]*)
41471 + shlibpath_overrides_runpath=yes
41472 + hardcode_into_libs=yes
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
41479 + freebsd*) # from 4.6 on
41480 + shlibpath_overrides_runpath=yes
41481 + hardcode_into_libs=yes
41487 + version_type=linux
41488 + need_lib_prefix=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
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
41502 + case $host_cpu in
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"
41514 + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
41516 + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
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
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'
41538 + # HP-UX runs *really* slowly unless shared libraries are mode 555.
41539 + postinstall_cmds='chmod 555 $lib'
41543 + version_type=linux
41544 + need_lib_prefix=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
41554 +irix5* | irix6* | nonstopux*)
41556 + nonstopux*) version_type=nonstopux ;;
41558 + if test "$lt_cv_prog_gnu_ld" = yes; then
41559 + version_type=linux
41561 + version_type=irix
41564 + need_lib_prefix=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}'
41569 + irix5* | nonstopux*)
41570 + libsuff= shlibsuff=
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;;
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
41591 +# No shared lib support for Linux oldld, aout, or coff.
41592 +linux*oldld* | linux*aout* | linux*coff*)
41593 + dynamic_linker=no
41596 +# This must be Linux ELF.
41598 + version_type=linux
41599 + need_lib_prefix=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"
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'
41627 + version_type=linux
41628 + need_lib_prefix=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'
41639 + version_type=sunos
41640 + need_lib_prefix=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'
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'
41651 + shlibpath_var=LD_LIBRARY_PATH
41652 + shlibpath_overrides_runpath=yes
41653 + hardcode_into_libs=yes
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
41664 + version_type=linux
41665 + need_lib_prefix=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
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.
41679 + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
41680 + *) need_version=no ;;
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
41687 + openbsd2.[89] | openbsd2.[89].*)
41688 + shlibpath_overrides_runpath=no
41691 + shlibpath_overrides_runpath=yes
41695 + shlibpath_overrides_runpath=yes
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
41708 +osf3* | osf4* | osf5*)
41710 + need_lib_prefix=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"
41720 + version_type=linux
41721 + need_lib_prefix=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'
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
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
41751 + shlibpath_overrides_runpath=no
41752 + need_lib_prefix=no
41753 + export_dynamic_flag_spec='${wl}-Blargedynsym'
41754 + runpath_var=LD_RUN_PATH
41757 + need_lib_prefix=no
41760 + need_lib_prefix=no
41762 + shlibpath_overrides_runpath=no
41763 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
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
41777 +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
41778 + version_type=freebsd-elf
41779 + need_lib_prefix=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
41789 + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
41790 + shlibpath_overrides_runpath=yes
41793 + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
41797 + sys_lib_dlsearch_path_spec='/usr/lib'
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
41808 + dynamic_linker=no
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
41837 + # We can link without hardcoding, and we can hardcode nonexisting dirs.
41838 + hardcode_action_GCJ=immediate
41841 + # We cannot hardcode anything, or else we can only hardcode existing
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
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 \
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 \
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
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\"\`\\\""
41933 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
41939 + *'\$0 --fallback-echo"')
41940 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
41974 +# The build system.
41975 +build_alias=$build_alias
41977 +build_os=$build_os
41979 +# An echo program that does not interpret backslashes.
41984 +AR_FLAGS=$lt_AR_FLAGS
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?
42001 +# The linker used to build libraries.
42004 +# Whether we need hard or soft links.
42007 +# A BSD-compatible nm program.
42010 +# A symbol stripping program
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.
42025 +# The name of the directory that contains temporary libtool files.
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").
42041 +# Shared library suffix (normally ".so").
42042 +shrext_cmds='$shrext_cmds'
42044 +# Executable file suffix (normally "").
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.
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
42131 +predep_objects=$lt_predep_objects_GCJ
42133 +# Dependencies to place after the objects being linked to create a
42135 +postdep_objects=$lt_postdep_objects_GCJ
42137 +# Dependencies to place before the objects being linked to create a
42139 +predeps=$lt_predeps_GCJ
42141 +# Dependencies to place after the objects being linked to create a
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
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
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"
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
42283 +# Source file extension for RC test sources.
42286 +# Object file extension for compiled RC test sources.
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.
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`
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`
42322 +# Allow CC to be a program name with arguments.
42324 +CC=${RC-"windres"}
42327 +for cc_temp in $compiler""; do
42329 + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
42330 + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
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
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 \
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 \
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 \
42392 + module_expsym_cmds_RC \
42393 + lt_cv_prog_compiler_c_o_RC \
42394 + exclude_expsyms_RC \
42395 + include_expsyms_RC; do
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\"\`\\\""
42414 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
42420 + *'\$0 --fallback-echo"')
42421 + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
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.
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
42455 +# The build system.
42456 +build_alias=$build_alias
42458 +build_os=$build_os
42460 +# An echo program that does not interpret backslashes.
42465 +AR_FLAGS=$lt_AR_FLAGS
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?
42482 +# The linker used to build libraries.
42485 +# Whether we need hard or soft links.
42488 +# A BSD-compatible nm program.
42491 +# A symbol stripping program
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.
42506 +# The name of the directory that contains temporary libtool files.
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").
42522 +# Shared library suffix (normally ".so").
42523 +shrext_cmds='$shrext_cmds'
42525 +# Executable file suffix (normally "").
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.
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
42612 +predep_objects=$lt_predep_objects_RC
42614 +# Dependencies to place after the objects being linked to create a
42616 +postdep_objects=$lt_postdep_objects_RC
42618 +# Dependencies to place before the objects being linked to create a
42620 +predeps=$lt_predeps_RC
42622 +# Dependencies to place after the objects being linked to create a
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
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
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"
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
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; }; }
42764 + # Append the new tag name to the list of available tags.
42765 + if test -n "$tagname" ; then
42766 + available_tags="$available_tags $tagname"
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"
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; }; }
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'
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"
42833 if test "x$MAXMEM" = xyes; then
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}
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
42861 +cat confdefs.h >>conftest.$ac_ext
42862 +cat >>conftest.$ac_ext <<_ACEOF
42863 +/* end confdefs.h. */
42866 - FILE * tfile = tmpfile();
42869 -if { (eval echo configure:1605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
42871 - echo "$ac_t""yes" 1>&6
42872 -MEMORYMGR='jmemansi.$(O)'
42876 + FILE * tfile = tmpfile();
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
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
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
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'
42907 - echo "configure: failed program was:" >&5
42908 - cat conftest.$ac_ext >&5
42910 - echo "$ac_t""no" 1>&6
42911 -MEMORYMGR='jmemname.$(O)'
42912 -cat >> confdefs.h <<\EOF
42913 -#define NEED_SIGNAL_CATCHER
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'
42928 - char fname[80]; mktemp(fname);
42931 -if { (eval echo configure:1629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
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
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
42945 +cat confdefs.h >>conftest.$ac_ext
42946 +cat >>conftest.$ac_ext <<_ACEOF
42947 +/* end confdefs.h. */
42952 + char fname[80]; mktemp(fname);
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
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
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
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
42982 - echo "configure: failed program was:" >&5
42983 - cat conftest.$ac_ext >&5
42985 - echo "$ac_t""no" 1>&6
42986 -cat >> confdefs.h <<\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
43001 +rm -f conftest.err conftest.$ac_objext \
43002 + conftest$ac_exeext conftest.$ac_ext
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
43021 -# Prepare to massage makefile.cfg correctly.
43022 -if test $ijg_cv_have_prototypes = yes; then
43026 +cat >>confdefs.h <<\_ACEOF
43027 +#define GIF_SUPPORTED 1
43031 +cat >>confdefs.h <<\_ACEOF
43032 +#define PPM_SUPPORTED 1
43036 +cat >>confdefs.h <<\_ACEOF
43037 +#define TARGA_SUPPORTED 1
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"
43048 - A2K_DEPS="ansi2knr"
43053 +# try to detect whether libpng is present
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
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
43071 +cat confdefs.h >>conftest.$ac_ext
43072 +cat >>conftest.$ac_ext <<_ACEOF
43073 +/* end confdefs.h. */
43074 +$ac_includes_default
43077 +rm -f conftest.$ac_objext
43078 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43079 + (eval $ac_compile) 2>conftest.er1
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
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
43097 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43098 + (exit $ac_status); }; }; then
43099 + ac_header_compiler=yes
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
43119 +cat confdefs.h >>conftest.$ac_ext
43120 +cat >>conftest.$ac_ext <<_ACEOF
43121 +/* end confdefs.h. */
43124 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43125 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
43142 +if test -z "$ac_cpp_err"; then
43143 + ac_header_preproc=yes
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
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
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
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;}
43181 +## ------------------------------------------ ##
43182 +## Report this to the AC_PACKAGE_NAME lists. ##
43183 +## ------------------------------------------ ##
43186 + sed "s/^/$as_me: WARNING: /" >&2
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
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
43206 - FORCE_INSTALL_LIB=""
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
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
43232 +cat confdefs.h >>conftest.$ac_ext
43233 +cat >>conftest.$ac_ext <<_ACEOF
43234 +/* end confdefs.h. */
43235 +$ac_includes_default
43238 +rm -f conftest.$ac_objext
43239 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
43240 + (eval $ac_compile) 2>conftest.er1
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
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
43258 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43259 + (exit $ac_status); }; }; then
43260 + ac_header_compiler=yes
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
43277 +cat confdefs.h >>conftest.$ac_ext
43278 +cat >>conftest.$ac_ext <<_ACEOF
43279 +/* end confdefs.h. */
43282 +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
43283 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
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
43299 +if test -z "$ac_cpp_err"; then
43300 + ac_header_preproc=yes
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
43312 +# So? What about this header?
43313 +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
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
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;}
43336 +## ------------------------------------------ ##
43337 +## Report this to the AC_PACKAGE_NAME lists. ##
43338 +## ------------------------------------------ ##
43341 + sed "s/^/$as_me: WARNING: /" >&2
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
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
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
43370 + ac_check_lib_save_LIBS=$LIBS
43372 +cat >conftest.$ac_ext <<_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
43383 +/* We use char because int might match the return type of a gcc2
43384 + builtin and then its argument prototype would still apply. */
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
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
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
43414 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43415 + (exit $ac_status); }; }; then
43416 + ac_cv_lib_z_deflate=yes
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
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
43448 + ac_check_lib_save_LIBS=$LIBS
43449 +LIBS="-lpng -lz -lm $LIBS"
43450 +cat >conftest.$ac_ext <<_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
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 ();
43467 +png_create_info_struct ();
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
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
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
43492 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
43493 + (exit $ac_status); }; }; then
43494 + ac_cv_lib_png_png_create_info_struct=yes
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
43516 +if test "x$with_png" = xyes ; then
43518 +cat >>confdefs.h <<\_ACEOF
43519 +#define PNG_SUPPORTED 1
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.
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.
43558 + case `(ac_space=' '; set | grep ac_space) 2>&1` in
43560 + # `set' does not quote correctly, so add quotes (double-quote
43561 + # substitution turns \\\\ into \\, and sed turns \\ into \).
43564 + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43567 + # `set' quotes correctly as required by POSIX, so do not add quotes.
43569 + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
43576 + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
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
43585 + echo "not updating unwritable cache $cache_file"
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/;
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}
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$//'`
43626 + ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
43627 + ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
43629 +LIBOBJS=$ac_libobjs
43631 -echo creating $CONFIG_STATUS
43632 -rm -f $CONFIG_STATUS
43633 -cat > $CONFIG_STATUS <<EOF
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
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]"
43689 +ac_cs_recheck=false
43690 +ac_cs_silent=false
43691 +SHELL=\${CONFIG_SHELL-$SHELL}
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
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
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
43719 +# Work around bugs in pre-3.0 UWIN ksh.
43720 +$as_unset ENV MAIL MAILPATH
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"
43738 - -help | --help | --hel | --he | --h)
43739 - echo "\$ac_cs_usage"; exit 0 ;;
43740 - *) echo "\$ac_cs_usage"; exit 1 ;;
43742 + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
43743 + eval $as_var=C; export $as_var
43745 + $as_unset $as_var
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
43758 -trap 'rm -fr `echo "Makefile:makefile.cfg jconfig.h:jconfig.cfg" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
43760 -cat >> $CONFIG_STATUS <<EOF
43761 +if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
43762 + as_basename=basename
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
43772 -s%@CFLAGS@%$CFLAGS%g
43773 -s%@CPPFLAGS@%$CPPFLAGS%g
43774 -s%@CXXFLAGS@%$CXXFLAGS%g
43776 -s%@LDFLAGS@%$LDFLAGS%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
43795 -s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
43796 -s%@INSTALL_DATA@%$INSTALL_DATA%g
43797 -s%@RANLIB@%$RANLIB%g
43798 -s%@LIBTOOL@%$LIBTOOL%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
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 ||
43821 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
43822 + /^X\/\(\/\/\)$/{ s//\1/; q; }
43823 + /^X\/\(\/\).*/{ s//\1/; 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.
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=';'
43855 - sed "${ac_end}q" conftest.subs > conftest.s$ac_file
43858 - if test ! -s conftest.s$ac_file; then
43859 - ac_more_lines=false
43860 - rm -f conftest.s$ac_file
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.
43873 + *[\\/]* ) as_myself=$0 ;;
43874 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43875 +for as_dir in $PATH
43878 + test -z "$as_dir" && as_dir=.
43879 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
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
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; }; }
43894 + case $CONFIG_SHELL in
43896 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43897 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43900 + test -z "$as_dir" && as_dir=.
43901 + for as_base in sh bash ksh sh5; do
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+"$@"}
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 |
43935 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
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.
43954 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
43955 + *c*,-n*) ECHO_N= ECHO_C='
43957 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
43958 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
43961 +if expr a : '\(a\)' >/dev/null 2>&1; then
43967 +rm -f conf$$ conf$$.exe 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
43976 - if test -z "$ac_sed_cmds"; then
43977 - ac_sed_cmds="sed -f conftest.s$ac_file"
43979 - ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
43981 - ac_file=`expr $ac_file + 1`
43983 - ac_end=`expr $ac_end + $ac_max_sed_cmds`
43986 +elif ln conf$$.file conf$$ 2>/dev/null; then
43991 +rm -f conf$$ conf$$.exe conf$$.file
43993 +if mkdir -p . 2>/dev/null; then
43996 + test -d ./-p && rmdir ./-p
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'"
44010 +# We need space, tab and new line, in precisely that order.
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
44026 + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
44027 +## Running $as_me. ##
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
44042 +echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
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
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:
44084 +Configuration headers:
44087 +Configuration commands:
44090 +Report bugs to <bug-autoconf@gnu.org>."
44093 +cat >>$CONFIG_STATUS <<_ACEOF
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."
44103 +INSTALL="$INSTALL"
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
44114 + ac_option=`expr "x$1" : 'x\([^=]*\)='`
44115 + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
44123 + *) # This is not an option, so the user has probably given explicit
44126 + ac_need_defaults=false;;
44129 + case $ac_option in
44130 + # Handling of the options.
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 ;;
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 )
44148 + --file | --fil | --fi | --f )
44150 + CONFIG_FILES="$CONFIG_FILES $ac_optarg"
44151 + ac_need_defaults=false;;
44152 + --header | --heade | --head | --hea )
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" ;;
44172 -if test -z "$ac_sed_cmds"; then
44175 +ac_configure_extra_args=
44177 +if $ac_cs_silent; then
44179 + ac_configure_extra_args="$ac_configure_extra_args --silent"
44183 -cat >> $CONFIG_STATUS <<EOF
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"}
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" ;;
44202 +cat >>$CONFIG_STATUS <<_ACEOF
44204 +# INIT-COMMANDS section.
44207 +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
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; }; };;
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'`
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.
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"
44266 + tmp=./confstat$$-$RANDOM
44267 + (umask 077 && mkdir $tmp)
44270 + echo "$me: cannot create a temporary directory in ." >&2
44271 + { (exit 1); exit 1; }
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
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
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
44372 +s,@LN_S@,$LN_S,;t t
44373 +s,@EGREP@,$EGREP,;t t
44374 +s,@ECHO@,$ECHO,;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
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
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
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
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.
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
44418 + sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
44420 + if test ! -s $tmp/subs.frag; then
44421 + ac_more_lines=false
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.
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"
44432 + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
44434 + ac_sed_frag=`expr $ac_sed_frag + 1`
44436 + ac_end=`expr $ac_end + $ac_max_sed_lines`
44439 + if test -z "$ac_sed_cmds"; then
44442 +fi # test -n "$CONFIG_FILES"
44444 - case "$ac_given_srcdir" in
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" ;;
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".
44457 + - | *:- | *:-:* ) # input from 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 ;;
44466 - case "$ac_given_INSTALL" in
44467 - [/$]*) INSTALL="$ac_given_INSTALL" ;;
44468 - *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
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; }
44483 + { if $as_mkdir_p; then
44484 + mkdir -p "$ac_dir"
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 ||
44497 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44498 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44499 + /^X\(\/\/\)$/{ s//\1/; q; }
44500 + /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
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'`
44515 + ac_dir_suffix= ac_top_builddir=
44519 + .) # No --srcdir option. We are building in place.
44521 + if test -z "$ac_top_builddir"; then
44524 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
44534 +# Do not use `cd foo && pwd` to compute absolute paths, because
44535 +# the directories may not exist.
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";;
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}.;;
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;;
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;;
44573 - echo creating "$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" ;;
44582 + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44583 + *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
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
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;}
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
44606 + configure_input="$ac_file. "
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
44613 + ac_file_inputs=`IFS=:
44614 + for f in $ac_file_in; do
44616 + -) echo $tmp/stdin ;;
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; }; }
44624 + if test -f "$f"; then
44627 + elif test -f "$srcdir/$f"; then
44629 + echo "$srcdir/$f"
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; }; }
44637 + done` || { (exit 1); exit 1; }
44639 +cat >>$CONFIG_STATUS <<_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
44658 + if test x"$ac_file" != x-; then
44659 + mv $tmp/out $ac_file
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'
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'
44688 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
44689 +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
44690 +ac_uB='$,\1#\2define\3'
44693 -# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
44694 -ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
44695 -ac_eB='$%\1#\2define\3'
44699 -if test "${CONFIG_HEADERS+set}" != set; then
44701 -cat >> $CONFIG_STATUS <<EOF
44702 - CONFIG_HEADERS="jconfig.h:jconfig.cfg"
44704 -cat >> $CONFIG_STATUS <<\EOF
44706 -for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
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" ;;
44716 + - | *:- | *:-:* ) # input from 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 ;;
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
44734 + ac_file_inputs=`IFS=:
44735 + for f in $ac_file_in; do
44737 + -) echo $tmp/stdin ;;
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.
44746 + if test -f "$f"; then
44749 + elif test -f "$srcdir/$f"; then
44751 + echo "$srcdir/$f"
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; }; }
44759 + done` || { (exit 1); exit 1; }
44760 + # Remove the trailing spaces.
44761 + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
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
44774 -s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
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
44799 +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
44801 +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
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
44816 +cat >>conftest.undefs <<\_ACEOF
44817 +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
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
44840 + sed -f $tmp/defines.sed $tmp/in >$tmp/out
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
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
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
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
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"
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
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
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
44915 + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
44917 + cat $tmp/in >>$tmp/config.h
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;}
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; }
44936 + { if $as_mkdir_p; then
44937 + mkdir -p "$ac_dir"
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 ||
44950 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
44951 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
44952 + /^X\(\/\/\)$/{ s//\1/; q; }
44953 + /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
44962 + mv $tmp/config.h $ac_file
44965 - mv conftest.h $ac_file
44967 + cat $tmp/config.h
44968 + rm -f $tmp/config.h
44971 +# Compute $ac_file's index in $config_headers.
44973 +for _am_header in $config_headers :; do
44974 + case $_am_header in
44975 + $ac_file | $ac_file:* )
44978 + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
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 ||
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
44995 +cat >>$CONFIG_STATUS <<\_ACEOF
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; }
45017 + { if $as_mkdir_p; then
45018 + mkdir -p "$ac_dir"
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 ||
45031 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45032 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45033 + /^X\(\/\/\)$/{ s//\1/; q; }
45034 + /^X\(\/\).*/{ s//\1/; q; }
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; }; }; }
45043 -cat >> $CONFIG_STATUS <<\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'`
45053 + ac_dir_suffix= ac_top_builddir=
45057 + .) # No --srcdir option. We are building in place.
45059 + if test -z "$ac_top_builddir"; then
45062 + ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
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 ;;
45072 +# Do not use `cd foo && pwd` to compute absolute paths, because
45073 +# the directories may not exist.
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";;
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}.;;
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;;
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;;
45112 + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
45113 +echo "$as_me: executing $ac_dest commands" >&6;}
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 ||
45132 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45133 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45134 + /^X\(\/\/\)$/{ s//\1/; q; }
45135 + /^X\(\/\).*/{ s//\1/; q; }
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
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 ||
45165 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45166 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45167 + /^X\(\/\/\)$/{ s//\1/; q; }
45168 + /^X\(\/\).*/{ s//\1/; q; }
45170 + { if $as_mkdir_p; then
45171 + mkdir -p $dirpart/$fdir
45173 + as_dir=$dirpart/$fdir
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 ||
45184 + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
45185 + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
45186 + /^X\(\/\/\)$/{ s//\1/; q; }
45187 + /^X\(\/\).*/{ s//\1/; q; }
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"
45204 +cat >>$CONFIG_STATUS <<\_ACEOF
45206 +{ (exit 0); exit 0; }
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
45224 + ac_config_status_args=
45225 + test "$silent" = yes &&
45226 + ac_config_status_args="$ac_config_status_args --quiet"
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
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
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
45279 +# Tests for Windows
45284 +dnl See if compiler supports prototypes.
45285 +AC_MSG_CHECKING(for function prototypes)
45286 +AC_CACHE_VAL(ijg_cv_have_prototypes,
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 */
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.])
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.
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)
45317 +#ifdef HAVE_STDDEF_H
45318 +#include <stddef.h>
45320 +#ifdef HAVE_STDLIB_H
45321 +#include <stdlib.h>
45323 +#include <stdio.h>
45324 +#ifdef NEED_BSD_STRINGS
45325 +#include <strings.h>
45327 +#include <string.h>
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)],
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.
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))
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))
45356 +AC_MSG_CHECKING(for type void)
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);
45363 +typedef void (*void_func) ();
45366 +#ifdef HAVE_PROTOTYPES /* check void function result */
45367 +void test3function (void_ptr arg1, void_func arg2)
45369 +void test3function (arg1, arg2)
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.])])
45382 +dnl check for non-broken inline under various spellings
45383 +AC_MSG_CHECKING(for 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)
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.])])
45407 +dnl run-time checks
45408 +AC_MSG_CHECKING(to see if char is signed)
45410 +#ifdef HAVE_PROTOTYPES
45411 +int is_char_signed (int arg)
45413 +int is_char_signed (arg)
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);
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.
45435 +AC_MSG_CHECKING(to see if right shift is signed)
45437 +#ifdef HAVE_PROTOTYPES
45438 +int is_shifting_signed (long arg)
45440 +int is_shifting_signed (arg)
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 */
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.))
45466 +AC_MSG_CHECKING(to see if fopen accepts b spec)
45468 +#include <stdio.h>
45470 + if (fopen("conftestdata", "wb") != NULL)
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
45481 +# Select memory manager depending on user input.
45482 +# If no "-enable-maxmem", use jmemnobs
45483 +MEMORYMGR='jmemnobs'
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
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)
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.
45525 +[ --with-png enable PNG support in cjpeg/djpeg],
45526 +[#], [with_png="maybe"])
45528 +# try to detect whether libpng is present
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])
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])
45558 +AC_OUTPUT([Makefile])
45559 diff --git a/exifautotran.sh b/exifautotran.sh
45560 new file mode 100755
45561 index 0000000..fd5105e
45563 +++ b/exifautotran.sh
45566 +# exifautotran [list of files]
45568 +# Transforms Exif files so that Orientation becomes 1
45573 + -v|--version) echo "exifautotran"; exit 0;;
45576 +exifautotran [list of files]
45578 +Transforms Exif files so that Orientation becomes 1
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="";;
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
45602 + jpegexiforient -1 "$i" > /dev/null
45606 diff --git a/jaricom.c b/jaricom.c
45607 new file mode 100755
45608 index 0000000..1a15bdf
45615 + * [IJG Copyright notice]
45617 + * This file holds place for arithmetic entropy codec tables.
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
45634 + * [IJG Copyright notice]
45636 + * This file holds place for arithmetic entropy encoding routines.
45639 +#define JPEG_INTERNALS
45640 +#include "jinclude.h"
45641 +#include "jpeglib.h"
45645 + * Module initialization routine for arithmetic entropy encoding.
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
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). */
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. */
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. */
45742 +/* Name of 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 */
45778 +/* Define to empty if `const' does not conform to ANSI C. */
45781 +/* Define 'void' as 'char' for archaic compilers that don't understand it. */
45783 diff --git a/jconfig_api.h.in b/jconfig_api.h.in
45784 new file mode 100755
45785 index 0000000..2d5d22e
45787 +++ b/jconfig_api.h.in
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. */
45824 +/* Define 'void' as 'char' for archaic compilers that don't understand it. */
45826 diff --git a/jdarith.c b/jdarith.c
45827 new file mode 100755
45828 index 0000000..13709f2
45835 + * [IJG Copyright notice]
45837 + * This file holds place for arithmetic entropy decoding routines.
45840 +#define JPEG_INTERNALS
45841 +#include "jinclude.h"
45842 +#include "jpeglib.h"
45846 + * Module initialization routine for arithmetic entropy decoding.
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
45858 +++ b/jpegexiforient.c
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
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
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
45893 + * 88 88 888888 888888
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 */
45912 +read_1_byte (void)
45918 + ERREXIT("Premature EOF in JPEG file");
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)
45931 + ERREXIT("Premature EOF in JPEG file");
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 */
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.
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;
45975 + while (argv[i][0] == '-') {
45976 + switch (argv[i][1]) {
45988 + set_flag = argv[i][1] - '0';
45991 + usage(); return 0;
45993 + if (++i >= argc) { usage(); return 0; }
45997 + if ((myfile = fopen(argv[i], "rb+")) == NULL) {
45998 + fprintf(stderr, "%s: can't open %s\n", progname, argv[i]);
46002 + if ((myfile = fopen(argv[i], "rb")) == NULL) {
46003 + fprintf(stderr, "%s: can't open %s\n", progname, argv[i]);
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)
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 */
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)
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)
46043 + else if (exif_data[0] == 0x4D && exif_data[1] == 0x4D)
46048 + /* Check Tag Mark */
46049 + if (is_motorola) {
46050 + if (exif_data[2] != 0) return 0;
46051 + if (exif_data[3] != 0x2A) return 0;
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];
46063 + offset += exif_data[7];
46065 + if (exif_data[7] != 0) return 0;
46066 + if (exif_data[6] != 0) return 0;
46067 + offset = exif_data[5];
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];
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;
46086 + /* Search for Orientation Tag in IFD0 */
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];
46093 + tagnum += exif_data[offset+1];
46095 + tagnum = exif_data[offset+1];
46097 + tagnum += exif_data[offset];
46099 + if (tagnum == 0x0112) break; /* found Orientation Tag */
46100 + if (--number_of_tags == 0) return 0;
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;
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);
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];
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 */
46145 + printf("%c", '0' + set_flag);
46147 + printf("%c\n", '0' + set_flag);
46152 diff --git a/ltconfig b/ltconfig
46153 deleted file mode 100755
46154 index 2347e69..0000000
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
46190 -if test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then :
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 :
46199 - # Oops. We have no working printf. Try to find a not-so-buggy 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
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%^.*/%%'`
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'
46231 -help="Try \`$progname --help' for more information."
46233 -# Global variables:
46234 -can_build_shared=yes
46236 -# All known linkers require a `.a' archive for static linking.
46251 -old_CFLAGS="$CFLAGS"
46252 -old_CPPFLAGS="$CPPFLAGS"
46256 -old_RANLIB="$RANLIB"
46258 -# Parse the command line options.
46263 - case "$option" in
46264 - -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
46268 - # If the previous option needs an argument, assign it.
46269 - if test -n "$prev"; then
46270 - eval "$prev=\$option"
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
46295 -HOST is the canonical host system name [default=guessed].
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 ;;
46317 - echo "$progname: unrecognized option \`$option'" 1>&2
46318 - echo "$help" 1>&2
46323 - if test -z "$ltmain"; then
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
46332 - echo "$progname: too many arguments" 1>&2
46333 - echo "$help" 1>&2
46339 -if test -z "$ltmain"; then
46340 - echo "$progname: you must specify a LTMAIN file" 1>&2
46341 - echo "$help" 1>&2
46345 -if test -f "$ltmain"; then :
46347 - echo "$progname: \`$ltmain' does not exist" 1>&2
46348 - echo "$help" 1>&2
46352 -# Quote any args containing shell metacharacters.
46357 - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
46358 - ltconfig_args="$ltconfig_args '$arg'" ;;
46359 - *) ltconfig_args="$ltconfig_args $arg" ;;
46363 -# A relevant subset of AC_INIT.
46365 -# File descriptor usage:
46366 -# 0 standard input
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
46378 -exec 5>>./config.log
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
46393 - ac_n=-n ac_c= ac_t=
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.
46409 - for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
46410 - if test -f $ac_dir/config.guess; then
46411 - ac_aux_dir=$ac_dir
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
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 :
46426 - echo "$progname: cannot run $ac_config_sub" 1>&2
46427 - echo "$help" 1>&2
46431 - echo $ac_n "checking host system type""... $ac_c" 1>&6
46434 - case "$host_alias" in
46436 - if host_alias=`$ac_config_guess`; then :
46438 - echo "$progname: cannot guess host type; you must specify one" 1>&2
46439 - echo "$help" 1>&2
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
46457 -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
46458 -case "$host_os" in
46460 -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
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
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
46474 - export COLLECT_NAMES
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
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
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
46519 - test -z "$dir" && dir=.
46520 - if test -f $dir/gcc; then
46527 - if test -n "$CC"; then
46528 - echo "$ac_t$CC" 1>&6
46530 - echo "$ac_t"no 1>&6
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}:"
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
46551 - if test $cc_rejected = yes; then
46552 - # We found a bogon in the path, so make sure we never use it.
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.
46560 - set dummy "$dir/cc" "$@"
46566 - if test -n "$CC"; then
46567 - echo "$ac_t$CC" 1>&6
46569 - echo "$ac_t"no 1>&6
46572 - if test -z "$CC"; then
46573 - echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
46578 - # Now see if the compiler is really GCC.
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
46584 - cat > conftest.c <<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
46593 - echo "$ac_t$with_gcc" 1>&6
46596 -# Allow CC to be a program name with arguments.
46600 -echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
46602 -special_shlib_compile_flags=
46607 -if test "$with_gcc" = yes; then
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.
46617 - # We can build DLLs from non-PIC.
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'
46630 - # PORTME Check for PIC flags for the system compiler.
46631 - case "$host_os" in
46633 - # All AIX code is PIC.
46634 - link_static_flag='-bnso -bI:/lib/syscalls.exp'
46637 - hpux9* | hpux10*)
46638 - # Is there a better link_static_flag that works with the bundled CC?
46640 - link_static_flag="${wl}-a ${wl}archive"
46646 - link_static_flag='-non_shared'
46647 - # PIC (with -KPIC) is the default.
46651 - # We can build DLLs from non-PIC.
46655 - # All OSF/1 code is PIC.
46657 - link_static_flag='-non_shared'
46662 - link_static_flag='-dn'
46663 - special_shlib_compile_flags='-belf'
46668 - link_static_flag='-Bstatic'
46674 - link_static_flag='-Bstatic'
46675 - wl='-Qoption ld '
46680 - link_static_flag='-Bstatic'
46686 - link_static_flag='-Bstatic'
46690 - can_build_shared=no
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
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
46717 - echo "$ac_t"yes 1>&6
46718 - pic_flag=" $pic_flag"
46721 - # Append any errors to the config.log.
46722 - cat conftest.err 1>&5
46723 - can_build_shared=no
46725 - echo "$ac_t"no 1>&6
46727 - CFLAGS="$save_CFLAGS"
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 :
46738 - echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
46739 - can_build_shared=no
46743 -echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
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
46752 - echo "$ac_t"none 1>&6
46753 - link_static_flag=
46755 -LDFLAGS="$save_LDFLAGS"
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
46762 - if ln -s X conftestdata 2>/dev/null; then
46768 - if test "$LN_S" = "ln -s"; then
46769 - echo "$ac_t"yes 1>&6
46771 - echo "$ac_t"no 1>&6
46775 -# Make sure LD is an absolute path.
46776 -if test -z "$LD"; then
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"
46789 - # If it fails, then pretend we are not using GCC.
46793 - # If it is relative, then search for the first ld in PATH.
46794 - with_gnu_ld=unknown
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
46801 - echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
46802 - echo "$progname:645: checking for non-GNU ld" >&5
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
46817 - test "$with_gnu_ld" != yes && break
46821 - IFS="$ac_save_ifs"
46824 - if test -n "$LD"; then
46825 - echo "$ac_t$LD" 1>&6
46827 - echo "$ac_t"no 1>&6
46830 - if test -z "$LD"; then
46831 - echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
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
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=
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
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
46867 - gnu_ld_acts_native=no
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
46883 - if test "$ld_shlibs" = yes; then
46884 - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
46885 - export_dynamic_flag_spec='${wl}--export-dynamic'
46888 - # PORTME fill in a description of your system's linker (not GNU ld)
46889 - case "$host_os" in
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
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
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
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
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
46928 - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
46930 - archive_cmds='$LD -Bshareable -o $lib$libobjs'
46931 - hardcode_direct=yes
46932 - hardcode_minus_L=yes
46933 - hardcode_shlibpath_var=no
46936 - # FreeBSD 3, at last, uses gcc -shared to do shared libraries.
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
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'
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'
46962 - archive_cmds='$LD -shared -o $lib -soname $soname -set_version $verstring$libobjs'
46963 - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
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
46975 - archive_cmds='$LD -Bshareable -o $lib$libobjs'
46976 - hardcode_libdir_flag_spec='-R$libdir'
46977 - hardcode_direct=yes
46978 - hardcode_shlibpath_var=no
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'
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=:
46997 - archive_cmds='$LD -G -o $lib$libobjs'
46998 - hardcode_direct=yes
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
47010 - hardcode_minus_L=yes
47016 - if test "$with_gcc" = yes; then
47017 - archive_cmds='$CC -shared -o $lib$libobjs'
47019 - archive_cmds='$LD -assert pure-text -Bstatic -o $lib$libobjs'
47022 - if test "$with_gnu_ld" = yes; then
47023 - export_dynamic_flag_spec='${wl}-export-dynamic'
47025 - hardcode_libdir_flag_spec='-L$libdir'
47026 - hardcode_direct=yes
47027 - hardcode_minus_L=yes
47028 - hardcode_shlibpath_var=no
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
47041 - can_build_shared=no
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
47050 - /* | [A-Za-z]:\\*) ;; # Let the user override the test with a path.
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"
47069 - IFS="$ac_save_ifs"
47070 - test -z "$NM" && NM=nm
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.
47091 -# Define system-specific variables.
47092 -case "$host_os" in
47094 - symcode='[BCDTU]'
47097 - # Cannot use undefined symbols on IRIX because inlined functions mess us up.
47098 - symcode='[BCDEGRST]'
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.
47116 -cat > conftest.c <<EOF
47117 -#ifdef __cplusplus
47121 -void nm_test_func(){}
47122 -#ifdef __cplusplus
47125 -main(){nm_test_var='a';nm_test_func();return(0);}
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
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
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 *
47161 -# define __ptr_t char *
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. */
47172 -dld_preloaded_symbols[] =
47175 - sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$nlist" >> conftest.c
47176 - cat <<\EOF >> conftest.c
47180 -#ifdef __cplusplus
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
47193 - echo "$progname: failed program was:" >&5
47194 - cat conftest.c >&5
47196 - LIBS="$save_LIBS"
47198 - echo "cannot find nm_test_func in $nlist" >&5
47201 - echo "cannot find nm_test_var in $nlist" >&5
47204 - echo "cannot run $global_symbol_pipe" >&5
47207 - echo "$progname: failed program was:" >&5
47208 - cat conftest.c >&5
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
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
47230 - # We can link without hardcoding, and we can hardcode nonexisting dirs.
47231 - hardcode_action=immediate
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
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
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.
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'
47259 -postuninstall_cmds=
47264 -dynamic_linker="$host_os ld.so"
47266 -echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
47267 -case "$host_os" in
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'
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'
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
47291 - version_type=sunos
47292 - library_names_spec='${libname}${release}.so.$versuffix'
47293 - shlibpath_var=LD_LIBRARY_PATH
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'
47310 - soname_spec='${libname}${release}.so'
47311 - library_names_spec='${libname}${release}.so.$versuffix $libname.so'
47312 - shlibpath_var=LD_LIBRARY_PATH
47315 -# No shared lib support for Linux oldld, aout, or coff.
47316 -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
47317 - dynamic_linker=no
47320 -# This must be Linux ELF.
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'
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' ;;
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
47347 - libname_spec='$name'
47348 - library_names_spec='$libname.dll $libname.a'
47349 - dynamic_linker='OS/2 ld.exe'
47350 - shlibpath_var=LIBPATH
47355 - soname_spec='${libname}${release}.so'
47356 - library_names_spec='${libname}${release}.so.$versuffix $libname.so'
47357 - shlibpath_var=LD_LIBRARY_PATH
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
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
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
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
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
47396 - dynamic_linker=no
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
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'
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
47433 - # MS-DOS does not allow filenames that begin with a dot.
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
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
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\"\`"
47462 - eval "$var=\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`"
47468 -trap "$rm $ofile; exit 1" 1 2 15
47469 -echo creating $ofile
47471 -cat <<EOF > $ofile
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.
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"
47539 -# The default C compiler.
47542 -# The linker used to build libraries.
47545 -# Whether we need hard or soft links.
47548 -# A BSD-compatible nm program.
47551 -# The name of the directory that contains temporary libtool files.
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.
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.
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
47645 -case "$host_os" in
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
47653 - export COLLECT_NAMES
47660 -# Append the ltmain.sh script.
47661 -cat "$ltmain" >> $ofile || (rm -f $ofile; exit 1)
47666 -# Local Variables:
47667 -# mode:shell-script
47668 -# sh-indentation:2
47670 diff --git a/ltmain.sh b/ltmain.sh
47671 deleted file mode 100755
47672 index e9350b3..0000000
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"
47711 -help="Try \`$progname --help' for more information."
47712 -magic="%%%MAGIC variable%%%"
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'
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
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
47741 -# Global variables.
47742 -mode=$default_mode
47751 -# Parse our command line options once, thoroughly.
47752 -while test $# -gt 0
47758 - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
47762 - # If the previous option needs an argument, assign it.
47763 - if test -n "$prev"; then
47766 - eval "$prev=\"\$$prev \$arg\""
47769 - eval "$prev=\$arg"
47778 - # Have we seen a non-optional argument yet?
47785 - echo "$PROGRAM (GNU $PACKAGE) $VERSION"
47794 - echo "host: $host"
47795 - if test "$build_libtool_libs" = yes; then
47796 - echo "enable shared libraries"
47798 - echo "disable shared libraries"
47800 - if test "$build_old_libs" = yes; then
47801 - echo "enable static libraries"
47803 - echo "disable static libraries"
47808 - --finish) mode="finish" ;;
47810 - --mode) prevopt="--mode" prev=mode ;;
47811 - --mode=*) mode="$optarg" ;;
47813 - --quiet | --silent)
47818 - prevopt="-dlopen"
47819 - prev=execute_dlfiles
47823 - $echo "$modename: unrecognized option \`$arg'" 1>&2
47824 - $echo "$help" 1>&2
47835 -if test -n "$prevopt"; then
47836 - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
47837 - $echo "$help" 1>&2
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*)
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
47876 - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
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
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.
47896 - # libtool compile mode
47898 - modename="$modename: compile"
47899 - # Get the compilation command and the source file.
47902 - srcfile="$nonopt"
47907 - # Accept any command-line options.
47910 - $echo "$modename: you cannot specify the output filename with \`-o'" 1>&2
47911 - $echo "$help" 1>&2
47916 - build_libtool_libs=no
47917 - build_old_libs=yes
47922 - # Accept the current argument as the source file.
47923 - lastarg="$srcfile"
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\""
47942 - # Add the previous argument to base_compile.
47943 - if test -z "$base_compile"; then
47944 - base_compile="$lastarg"
47946 - base_compile="$base_compile $lastarg"
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 ;;
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/'` ;;
47973 - $echo "$modename: cannot determine name of library object from \`$srcfile'" 1>&2
47978 - if test -z "$base_compile"; then
47979 - $echo "$modename: you must specify a compilation command" 1>&2
47980 - $echo "$help" 1>&2
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
47990 - trap "$run $rm $libobj; exit 1" 1 2 15
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 :
48002 - test -n "$obj" && $run $rm $obj
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
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'
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 :
48027 - $run $rm $obj $libobj
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 $?
48042 - # libtool link mode
48044 - modename="$modename: link"
48046 - allow_undefined=yes
48047 - compile_command="$CC"
48048 - finalize_command="$CC"
48050 - compile_shlibpath=
48051 - finalize_shlibpath=
48055 - export_dynamic=no
48056 - hardcode_libdirs=
48058 - link_against_libtool_libs=
48069 - # We need to know -static, to get the right output filenames.
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
48077 - build_libtool_libs=no
48078 - build_old_libs=yes
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.
48090 - # If the previous option needs an argument, assign it.
48091 - if test -n "$prev"; then
48094 - compile_command="$compile_command @OUTPUT@"
48095 - finalize_command="$finalize_command @OUTPUT@"
48100 - dlfiles|dlprefiles)
48102 - *.la | *.lo) ;; # We handle these cases below.
48104 - dlprefiles="$dlprefiles $arg"
48105 - test "$prev" = dlfiles && dlfiles="$dlfiles $arg"
48116 - rpath="$rpath $arg"
48121 - eval "$prev=\"\$arg\""
48132 - if test -n "$link_static_flag"; then
48133 - compile_command="$compile_command $link_static_flag"
48134 - finalize_command="$finalize_command $link_static_flag"
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
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\"
48164 - # Add the symbol object into the linking commands.
48165 - compile_command="$compile_command @SYMFILE@"
48166 - finalize_command="$finalize_command @SYMFILE@"
48171 - dir=`$echo "X$arg" | $Xsed -e 's%^-L\(.*\)$%\1%'`
48173 - /* | [A-Za-z]:\\*)
48174 - # Add the corresponding hardcode_libdir_flag, if it is not identical.
48177 - $echo "$modename: \`-L$dir' cannot specify a relative directory" 1>&2
48181 - deplibs="$deplibs $arg"
48184 - -l*) deplibs="$deplibs $arg" ;;
48187 - allow_undefined=no
48191 - -o) prev=output ;;
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"
48217 - # Some other compiler flag.
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"`
48223 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
48230 - # A standard object.
48231 - objs="$objs $arg"
48235 - # A library object.
48236 - if test "$prev" = dlfiles; then
48237 - dlfiles="$dlfiles $arg"
48238 - if test "$build_libtool_libs" = yes; then
48242 - # If libtool objects are unsupported, then we need to preload.
48247 - if test "$prev" = dlprefiles; then
48248 - # Preload the old-style object.
48249 - dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e 's/\.lo$/\.o/'`
48252 - libobjs="$libobjs $arg"
48256 - # A libtool-controlled 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 :
48266 - $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
48270 - # If there is no directory component, then add one.
48272 - */* | *\\*) . $arg ;;
48276 - if test -z "$libdir"; then
48277 - $echo "$modename: \`$arg' contains no -rpath information" 1>&2
48281 - # Get the name of the library we link against.
48283 - for l in $old_library $library_names; do
48287 - if test -z "$linklib"; then
48288 - $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
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
48298 - dir="$dir/$objdir"
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.
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"
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"
48324 - dlprefiles="$dlprefiles $dir/$linklib"
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
48335 - *) temp_rpath="$temp_rpath $dir" ;;
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@"
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"*)
48352 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
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"
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" ;;
48374 - case "$hardcode_action" in
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"
48387 - # We need an absolute path.
48389 - /* | [A-Za-z]:\\*) ;;
48391 - absdir=`cd "$dir" && pwd`
48392 - if test -z "$absdir"; then
48393 - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
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"
48411 - $echo "$modename: \`$hardcode_action' is an unknown hardcode action" 1>&2
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"
48425 - # We cannot seem to hardcode it, guess we'll fake it.
48426 - finalize_command="$finalize_command -L$libdir -l$name"
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
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"
48443 - compile_command="$compile_command -L$dir -l$name"
48444 - finalize_command="$finalize_command -L$dir -l$name"
48448 - # Add in any libraries that this one depends upon.
48449 - compile_command="$compile_command$dependency_libs"
48450 - finalize_command="$finalize_command$dependency_libs"
48454 - # Some other compiler argument.
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"`
48460 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
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"
48474 - if test -n "$prev"; then
48475 - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
48476 - $echo "$help" 1>&2
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
48488 - case "$output" in
48490 - $echo "$modename: you must specify an output file" 1>&2
48491 - $echo "$help" 1>&2
48496 - $echo "$modename: output file \`$output' must have no directory components" 1>&2
48501 - # Now set the variables for building old libraries.
48502 - build_libtool_libs=no
48503 - build_old_libs=yes
48505 - $show "$rm $oldlib"
48510 - # Make sure we only generate libraries of the form `libNAME.la'.
48511 - case "$output" in
48514 - $echo "$modename: libtool library \`$arg' must begin with \`lib'" 1>&2
48515 - $echo "$help" 1>&2
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).
48531 - if test -n "$objs"; then
48532 - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
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
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@%%"`
48549 - if test -z "$rpath"; then
48550 - $echo "$modename: you must specify an installation directory with \`-rpath'" 1>&2
48551 - $echo "$help" 1>&2
48556 - if test $# -gt 2; then
48557 - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
48559 - install_libdir="$2"
48561 - # Parse the version information argument.
48562 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=':'
48566 - if test -n "$5"; then
48567 - $echo "$modename: too many parameters to \`-version-info'" 1>&2
48568 - $echo "$help" 1>&2
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]*) ;;
48580 - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
48581 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
48586 - case "$revision" in
48587 - 0 | [1-9] | [1-9][0-9]*) ;;
48589 - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
48590 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
48596 - 0 | [1-9] | [1-9][0-9]*) ;;
48598 - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
48599 - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
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
48610 - # Calculate the version variables.
48611 - version_vars="version_type current age revision"
48612 - case "$version_type" in
48616 - version_vars="$version_vars major versuffix"
48617 - major=`expr $current - $age`
48618 - versuffix="$major.$age.$revision"
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.
48629 - while test $loop != 0; do
48630 - iface=`expr $current - $loop`
48631 - loop=`expr $loop - 1`
48632 - verstring="$verstring:${iface}.0"
48635 - # Make executables depend on our current version.
48636 - verstring="$verstring:${current}.0"
48640 - version_vars="$version_vars major versuffix"
48642 - versuffix="$current.$revision"
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
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}.*
48657 - $show "$mkdir $objdir"
48658 - $run $mkdir $objdir
48660 - if test $status -eq 0 || test -d $objdir; then :
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
48674 - # Don't allow undefined symbols.
48675 - allow_undefined_flag="$no_undefined_flag"
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
48689 - if test -n "$soname_spec"; then
48690 - eval soname=\"$soname_spec\"
48692 - soname="$realname"
48695 - lib="$objdir/$realname"
48698 - linknames="$linknames $link"
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
48710 - $run eval "$cmd" || exit $?
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 $?
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.
48727 - # Now set the variables for building old libraries.
48728 - oldlib="$objdir/$libname.a"
48732 - if test -n "$link_against_libtool_libs"; then
48733 - $echo "$modename: error: cannot link libtool libraries into reloadable objects" 1>&2
48737 - if test -n "$deplibs"; then
48738 - $echo "$modename: warning: \`-l' and \`-L' are ignored while creating objects" 1>&2
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@%%"`
48748 - if test -n "$rpath"; then
48749 - $echo "$modename: warning: \`-rpath' is ignored while creating objects" 1>&2
48752 - if test -n "$vinfo"; then
48753 - $echo "$modename: warning: \`-version-info' is ignored while creating objects" 1>&2
48756 - if test -n "$release"; then
48757 - $echo "$modename: warning: \`-release' is ignored while creating objects" 1>&2
48760 - case "$output" in
48762 - if test -n "$objs"; then
48763 - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
48767 - obj=`$echo "X$output" | $Xsed -e 's/\.lo$/.o/'`
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'`
48782 - eval cmds=\"$reload_cmds\"
48783 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
48784 - for cmd in $cmds; do
48787 - $run eval "$cmd" || exit $?
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 $?
48802 - if test -n "$pic_flag"; then
48803 - # Only do commands if we really have different PIC objects.
48804 - reload_objs="$libobjs"
48806 - eval cmds=\"$reload_cmds\"
48807 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
48808 - for cmd in $cmds; do
48811 - $run eval "$cmd" || exit $?
48815 - # Just create a symlink.
48816 - $show "$LN_S $obj $libobj"
48817 - $run $LN_S $obj $libobj || exit 1
48824 - if test -n "$vinfo"; then
48825 - $echo "$modename: warning: \`-version-info' is ignored while linking programs" 1>&2
48828 - if test -n "$release"; then
48829 - $echo "$modename: warning: \`-release' is ignored while creating objects" 1>&2
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@"
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"*)
48847 - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
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"
48860 - elif test -n "$runpath_var"; then
48861 - case "$perm_rpath " in
48862 - *" $libdir "*) ;;
48863 - *) perm_rpath="$perm_rpath $libdir" ;;
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"`
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/ $//'`
48881 - if test "$export_dynamic" = yes && test -n "$NM" && test -n "$global_symbol_pipe"; then
48882 - dlsyms="${output}S.c"
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"
48898 - $show "$mkdir $objdir"
48899 - $run $mkdir $objdir
48901 - if test $status -eq 0 || test -d $objdir; then :
48907 - for arg in $dlprefiles; do
48908 - $show "extracting global C symbols from \`$arg'"
48909 - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
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
48929 - case "$dlsyms" in
48932 - $echo > "$objdir/$dlsyms" "\
48933 -/* $dlsyms - symbol resolution table for \`$output' dlsym emulation. */
48934 -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION */
48936 -#ifdef __cplusplus
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"
48950 - echo '/* NONE */' >> "$objdir/$dlsyms"
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 *
48961 -# define __ptr_t char *
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. */
48972 -dld_preloaded_symbols[] =
48976 - if test -f "$nlist"; then
48977 - sed 's/^\(.*\) \(.*\)$/ {"\1", (__ptr_t) \&\2},/' < "$nlist" >> "$objdir/$dlsyms"
48980 - $echo >> "$objdir/$dlsyms" "\
48984 -#ifdef __cplusplus
48991 - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
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
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@%%"`
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"
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 :
49035 - $show "$mkdir $objdir"
49036 - $run $mkdir $objdir
49038 - if test $status -eq 0 || test -d $objdir; then :
49044 - if test -n "$shlibpath_var"; then
49045 - # We should set the shlibpath_var
49047 - for dir in $temp_rpath; do
49049 - /* | [A-Za-z]:\\*)
49051 - rpath="$rpath$dir:"
49054 - # Relative path: add a thisdir entry.
49055 - rpath="$rpath\$thisdir/$dir:"
49059 - temp_rpath="$rpath"
49062 - # Delete the old output file.
49065 - if test -n "$compile_shlibpath"; then
49066 - compile_command="$shlibpath_var=\"$compile_shlibpath\$$shlibpath_var\" $compile_command"
49068 - if test -n "$finalize_shlibpath"; then
49069 - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
49072 - if test -n "$runpath_var" && test -n "$perm_rpath"; then
49073 - # We should set the runpath_var.
49075 - for dir in $perm_rpath; do
49076 - rpath="$rpath$dir:"
49078 - compile_command="$runpath_var=\"$rpath\$$runpath_var\" $compile_command"
49079 - finalize_command="$runpath_var=\"$rpath\$$runpath_var\" $finalize_command"
49082 - case "$hardcode_action" in
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
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
49105 - trap "$rm $output; exit 1" 1 2 15
49107 - $echo > $output "\
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\"
49134 - # When we are sourced in execute mode, \$file and \$echo are already set.
49135 - if test \"\$libtool_execute_magic\" = \"$magic\"; then :
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\" ;;
49160 - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
49161 - file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\`
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
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\"
49194 - exec \$program \${1+\"\$@\"}
49196 - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
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
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\"
49223 - eval cmds=\"$old_archive_cmds\"
49225 - IFS="${IFS= }"; save_ifs="$IFS"; IFS=';'
49226 - for cmd in $cmds; do
49229 - $run eval "$cmd" || exit $?
49234 - # Now create the libtool archive.
49235 - case "$output" in
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).
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.
49263 -revision=$revision
49265 -# Directory that this library needs to be installed in:
49266 -libdir='$install_libdir'\
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
49279 - # libtool install mode
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"`
49289 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49293 - install_prog="$arg "
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"`
49305 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49309 - install_prog="$install_prog$arg"
49311 - # We need to accept at least all the BSD install flags.
49321 - if test -n "$dest"; then
49322 - files="$files $dest"
49340 - # If the previous option needed an argument, then skip it.
49341 - if test -n "$prev"; then
49350 - # Aesthetically quote the argument.
49351 - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
49353 - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
49357 - install_prog="$install_prog $arg"
49360 - if test -z "$install_prog"; then
49361 - $echo "$modename: you must specify an install program" 1>&2
49362 - $echo "$help" 1>&2
49366 - if test -n "$prev"; then
49367 - $echo "$modename: the \`$prev' option requires an argument" 1>&2
49368 - $echo "$help" 1>&2
49372 - if test -z "$files"; then
49373 - if test -z "$dest"; then
49374 - $echo "$modename: no file or destination specified" 1>&2
49376 - $echo "$modename: you must specify a destination" 1>&2
49378 - $echo "$help" 1>&2
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
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.
49397 - if test $# -gt 2; then
49398 - $echo "$modename: \`$dest' is not a directory" 1>&2
49399 - $echo "$help" 1>&2
49403 - case "$destdir" in
49404 - /* | [A-Za-z]:\\*) ;;
49406 - for file in $files; do
49410 - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
49411 - $echo "$help" 1>&2
49419 - # This variable tells wrapper scripts just to set variables rather
49420 - # than running their programs.
49421 - libtool_install_magic="$magic"
49426 - for file in $files; do
49428 - # Do each installation.
49431 - # Do the static libraries later.
49432 - staticlibs="$staticlibs $file"
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 :
49439 - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
49440 - $echo "$help" 1>&2
49446 - # If there is no directory component, then add one.
49448 - */* | *\\*) . $file ;;
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" ;;
49459 - # Note the libdir as a future libdir.
49460 - case "$future_libdirs " in
49461 - *" $libdir "*) ;;
49462 - *) future_libdirs="$future_libdirs $libdir" ;;
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
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.
49487 - rmcmd="$rmcmd $destdir/$linkname"
49492 - # ... and create new ones.
49495 - test "X$dlname" = "X$linkname" && dlname=
49496 - $show "(cd $destdir && $LN_S $realname $linkname)"
49497 - $run eval "(cd $destdir && $LN_S $realname $linkname)"
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 $?
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
49514 - $run eval "$cmd" || exit $?
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"
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"
49535 - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
49536 - destfile="$destdir/$destfile"
49539 - # Deduce the name of the destination old-style object file.
49540 - case "$destfile" in
49542 - staticdest=`$echo "X$destfile" | $Xsed -e 's/\.lo$/\.o/'`
49545 - staticdest="$destfile"
49549 - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
49550 - $echo "$help" 1>&2
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 $?
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 $?
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.
49580 - */* | *\\*) . $file ;;
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
49591 - for lib in $link_against_libtool_libs; do
49592 - # Check to see that each library is installed.
49594 - if test -f "$lib"; then
49595 - # If there is no directory component, then add one.
49597 - */* | *\\*) . $lib ;;
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 :
49606 - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
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 :
49617 - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
49620 - file="$objdir/$file"T
49622 - $echo "$modename: warning: cannot relink \`$file' on behalf of your buggy system linker" 1>&2
49625 - # Install the binary that we compiled earlier.
49626 - file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
49630 - $show "$install_prog$stripme $file $dest"
49631 - $run eval "$install_prog\$stripme \$file \$dest" || exit $?
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
49651 - $run eval "$cmd" || exit $?
49656 - if test -n "$future_libdirs"; then
49657 - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
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
49670 - # libtool finish mode
49672 - modename="$modename: finish"
49673 - libdirs="$nonopt"
49675 - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
49678 - libdirs="$libdirs $dir"
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
49693 - if test -n "$finish_eval"; then
49694 - # Do the single finish_eval.
49695 - eval cmds=\"$finish_eval\"
49696 - $run eval "$cmds"
49701 - echo "------------------------------------------------------------------------------"
49702 - echo "Libraries have been installed in:"
49703 - for libdir in $libdirs; do
49707 - echo "To link against installed libraries in a given directory, LIBDIR,"
49708 - echo "you must use the \`-LLIBDIR' flag during linking."
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"
49715 - if test -n "$runpath_var"; then
49716 - echo " - add LIBDIR to the \`$runpath_var' environment variable"
49717 - echo " during linking"
49719 - if test -n "$hardcode_libdir_flag_spec"; then
49721 - eval flag=\"$hardcode_libdir_flag_spec\"
49723 - echo " - use the \`$flag' linker flag"
49725 - if test -f /etc/ld.so.conf; then
49726 - echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
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 "------------------------------------------------------------------------------"
49735 - # libtool execute mode
49737 - modename="$modename: execute"
49739 - # The first argument is the command name.
49741 - if test -z "$cmd"; then
49742 - $echo "$modename: you must specify a COMMAND" 1>&2
49747 - # Handle -dlopen flags immediately.
49748 - for file in $execute_dlfiles; do
49749 - if test -f "$file"; then :
49751 - $echo "$modename: \`$file' is not a file" 1>&2
49752 - $echo "$help" 1>&2
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 :
49762 - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
49763 - $echo "$help" 1>&2
49767 - # Read the libtool library.
49771 - # If there is no directory component, then add one.
49773 - */* | *\\*) . $file ;;
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'"
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"
49790 - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
49796 - # Just add the directory containing the .lo file.
49797 - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
49798 - test "X$dir" = "X$file" && dir=.
49802 - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
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\""
49815 - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
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.
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.
49834 - */* | *\\*) . $file ;;
49838 - # Transform arg to wrapped name.
49839 - file="$progdir/$program"
49843 - # Quote arguments (to preserve shell metacharacters).
49844 - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
49845 - args="$args \"$file\""
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"
49858 - # Display what would be done.
49859 - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
49860 - $echo "export $shlibpath_var"
49861 - $echo "$cmd$args"
49866 - # libtool uninstall mode
49868 - modename="$modename: uninstall"
49875 - -*) rm="$rm $arg" ;;
49876 - *) files="$files $arg" ;;
49880 - if test -z "$rm"; then
49881 - $echo "$modename: you must specify an RM program" 1>&2
49882 - $echo "$help" 1>&2
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%^.*/%%'`
49895 - # Possibly a libtool archive, so verify it.
49896 - if (sed -e '2q' $file | egrep '^# Generated by ltmain\.sh') >/dev/null 2>&1; then
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=
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
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
49934 - # FIXME: should reinstall the best remaining shared library.
49939 - if test "$build_old_libs" = yes; then
49940 - oldobj=`$echo "X$name" | $Xsed -e 's/\.lo$/\.o/'`
49941 - rmfiles="$rmfiles $dir/$oldobj"
49943 - $show "$rm $rmfiles"
49944 - $run $rm $rmfiles
49948 - $show "$rm $rmfiles"
49949 - $run $rm $rmfiles
49957 - $echo "$modename: you must specify a MODE" 1>&2
49958 - $echo "$generic_help" 1>&2
49963 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
49964 - $echo "$generic_help" 1>&2
49966 -fi # test -z "$show_help"
49968 -# We need to display help for each of the modes.
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."
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'."
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'
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."
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."
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)."
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
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'
50095 -If OUTPUT-FILE ends in \`.lo' or \`.o', then a reloadable object file is
50096 -created, otherwise an executable program is created."
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
50109 -If FILE is a libtool library, all the files associated with it are deleted.
50110 -Otherwise, only FILE itself is deleted using RM."
50114 - $echo "$modename: invalid operation mode \`$mode'" 1>&2
50115 - $echo "$help" 1>&2
50121 -$echo "Try \`$modename --help' for more information about other modes."
50125 -# Local Variables:
50126 -# mode:shell-script
50127 -# sh-indentation:2