From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RBYYj-0003rH-DC for garchives@archives.gentoo.org; Wed, 05 Oct 2011 20:59:22 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1F56D21C277; Wed, 5 Oct 2011 20:56:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3286021C277 for ; Wed, 5 Oct 2011 20:56:56 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 203E61B4042 for ; Wed, 5 Oct 2011 20:56:55 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 6E09F80037 for ; Wed, 5 Oct 2011 20:56:54 +0000 (UTC) From: "Brian Dolbec" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Dolbec" Message-ID: <6bfebb6bd475f66039d3283e8262e9921d79b4e1.dol-sen@gentoo> Subject: [gentoo-commits] proj/layman:master commit in: src/, / X-VCS-Repository: proj/layman X-VCS-Files: COPYING INSTALL Makefile.in config.guess depcomp ltmain.sh missing src/Makefile.in X-VCS-Directories: src/ / X-VCS-Committer: dol-sen X-VCS-Committer-Name: Brian Dolbec X-VCS-Revision: 6bfebb6bd475f66039d3283e8262e9921d79b4e1 Date: Wed, 5 Oct 2011 20:56:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: e7bfb33bbc1e62a3fa3ce4e091dc4af6 commit: 6bfebb6bd475f66039d3283e8262e9921d79b4e1 Author: Detlev Casanova gmail com> AuthorDate: Sat Jul 17 09:51:16 2010 +0000 Commit: Brian Dolbec gmail com> CommitDate: Sat Jul 17 09:55:11 2010 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/layman.git;a=3D= commit;h=3D6bfebb6b Add missing files. --- COPYING | 1 + INSTALL | 365 +++ Makefile.in | 738 +++++ config.guess | 1517 ++++++++++ depcomp | 630 +++++ ltmain.sh | 8406 +++++++++++++++++++++++++++++++++++++++++++++++++= ++++++ missing | 376 +++ src/Makefile.in | 515 ++++ 8 files changed, 12548 insertions(+), 0 deletions(-) diff --git a/COPYING b/COPYING new file mode 120000 index 0000000..6168a39 --- /dev/null +++ b/COPYING @@ -0,0 +1 @@ +/usr/share/automake-1.11/COPYING \ No newline at end of file diff --git a/INSTALL b/INSTALL new file mode 100644 index 0000000..7d1c323 --- /dev/null +++ b/INSTALL @@ -0,0 +1,365 @@ +Installation Instructions +************************* + +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005, +2006, 2007, 2008, 2009 Free Software Foundation, Inc. + + Copying and distribution of this file, with or without modification, +are permitted in any medium without royalty provided the copyright +notice and this notice are preserved. This file is offered as-is, +without warranty of any kind. + +Basic Installation +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Briefly, the shell commands `./configure; make; make install' should +configure, build, and install this package. The following +more-detailed instructions are generic; see the `README' file for +instructions specific to this package. Some packages provide this +`INSTALL' file but do not implement all of the features documented +below. The lack of an optional feature in a given package is not +necessarily a bug. More recommendations for GNU packages can be found +in *note Makefile Conventions: (standards)Makefile Conventions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, and a +file `config.log' containing compiler output (useful mainly for +debugging `configure'). + + It can also use an optional file (typically called `config.cache' +and enabled with `--cache-file=3Dconfig.cache' or simply `-C') that save= s +the results of its tests to speed up reconfiguring. Caching is +disabled by default to prevent problems with accidental use of stale +cache files. + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If you are using the cache, and at +some point `config.cache' contains results you don't want to keep, you +may remove or edit it. + + The file `configure.ac' (or `configure.in') is used to create +`configure' by a program called `autoconf'. You need `configure.ac' if +you want to change it or regenerate `configure' using a newer version +of `autoconf'. + + The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. + + Running `configure' might take a while. While running, it prints + some messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package, generally using the just-built uninstalled binaries. + + 4. Type `make install' to install the programs and any data files and + documentation. When installing into a prefix owned by root, it is + recommended that the package be configured and built as a regular + user, and only the `make install' phase executed with root + privileges. + + 5. Optionally, type `make installcheck' to repeat any self-tests, but + this time using the binaries in their final installed location. + This target does not install anything. Running this target as a + regular user, particularly if the prior `make install' required + root privileges, verifies that the installation completed + correctly. + + 6. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + + 7. Often, you can also type `make uninstall' to remove the installed + files again. In practice, not all packages have tested that + uninstallation works correctly, even though it is required by the + GNU Coding Standards. + + 8. Some packages, particularly those that use Automake, provide `make + distcheck', which can by used by developers to test that all other + targets like `make install' and `make uninstall' work correctly. + This target is generally not run by end users. + +Compilers and Options +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. Run `./configure --help' +for details on some of the pertinent environment variables. + + You can give `configure' initial values for configuration parameters +by setting variables in the command line or in the environment. Here +is an example: + + ./configure CC=3Dc99 CFLAGS=3D-g LIBS=3D-lposix + + *Note Defining Variables::, for more details. + +Compiling For Multiple Architectures +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you can use GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. This +is known as a "VPATH" build. + + With a non-GNU `make', it is safer to compile the package for one +architecture at a time in the source code directory. After you have +installed the package for one architecture, use `make distclean' before +reconfiguring for another architecture. + + On MacOS X 10.5 and later systems, you can create libraries and +executables that work on multiple system types--known as "fat" or +"universal" binaries--by specifying multiple `-arch' options to the +compiler but only a single `-arch' option to the preprocessor. Like +this: + + ./configure CC=3D"gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64= " \ + CXX=3D"g++ -arch i386 -arch x86_64 -arch ppc -arch ppc6= 4" \ + CPP=3D"gcc -E" CXXCPP=3D"g++ -E" + + This is not guaranteed to produce working output in all cases, you +may have to build one architecture at a time and combine the results +using the `lipo' tool if you have problems. + +Installation Names +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + By default, `make install' installs the package's commands under +`/usr/local/bin', include files under `/usr/local/include', etc. You +can specify an installation prefix other than `/usr/local' by giving +`configure' the option `--prefix=3DPREFIX', where PREFIX must be an +absolute file name. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +pass the option `--exec-prefix=3DPREFIX' to `configure', the package use= s +PREFIX as the prefix for installing programs and libraries. +Documentation and other data files still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=3DDIR' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. In general, the +default for these options is expressed in terms of `${prefix}', so that +specifying just `--prefix' will affect all of the other directory +specifications that were not explicitly provided. + + The most portable way to affect installation locations is to pass the +correct locations to `configure'; however, many packages provide one or +both of the following shortcuts of passing variable assignments to the +`make install' command line to change installation locations without +having to reconfigure or recompile. + + The first method involves providing an override variable for each +affected directory. For example, `make install +prefix=3D/alternate/directory' will choose an alternate location for all +directory configuration variables that were expressed in terms of +`${prefix}'. Any directories that were specified during `configure', +but not in terms of `${prefix}', must each be overridden at install +time for the entire installation to be relocated. The approach of +makefile variable overrides for each directory variable is required by +the GNU Coding Standards, and ideally causes no recompilation. +However, some platforms have known limitations with the semantics of +shared libraries that end up requiring recompilation when using this +method, particularly noticeable in packages that use GNU Libtool. + + The second method involves providing the `DESTDIR' variable. For +example, `make install DESTDIR=3D/alternate/directory' will prepend +`/alternate/directory' before all installation names. The approach of +`DESTDIR' overrides is not required by the GNU Coding Standards, and +does not work on platforms that have drive letters. On the other hand, +it does better at avoiding recompilation issues, and works well even +when some directory options were not specified in terms of `${prefix}' +at `configure' time. + +Optional Features +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=3DPREFIX' or `--program-suffix=3DSUFFIX'. + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=3DDIR' and +`--x-libraries=3DDIR' to specify their locations. + + Some packages offer the ability to configure how verbose the +execution of `make' will be. For these packages, running `./configure +--enable-silent-rules' sets the default to minimal output, which can be +overridden with `make V=3D1'; while running `./configure +--disable-silent-rules' sets the default to verbose, which can be +overridden with `make V=3D0'. + +Particular systems +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + On HP-UX, the default C compiler is not ANSI C compatible. If GNU +CC is not installed, it is recommended to use the following options in +order to use an ANSI C compiler: + + ./configure CC=3D"cc -Ae -D_XOPEN_SOURCE=3D500" + +and if that doesn't work, install pre-built binaries of GCC for HP-UX. + + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot +parse its `' header file. The option `-nodtk' can be used as +a workaround. If GNU CC is not installed, it is therefore recommended +to try + + ./configure CC=3D"cc" + +and if that doesn't work, try + + ./configure CC=3D"cc -nodtk" + + On Solaris, don't put `/usr/ucb' early in your `PATH'. This +directory contains several dysfunctional programs; working variants of +these programs are available in `/usr/bin'. So, if you need `/usr/ucb' +in your `PATH', put it _after_ `/usr/bin'. + + On Haiku, software installed for all users goes in `/boot/common', +not `/usr/local'. It is recommended to use the following options: + + ./configure --prefix=3D/boot/common + +Specifying the System Type +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D + + There may be some features `configure' cannot figure out +automatically, but needs to determine by the type of machine the package +will run on. Usually, assuming the package is built to be run on the +_same_ architectures, `configure' can figure that out, but if it prints +a message saying it cannot guess the machine type, give it the +`--build=3DTYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name which has the form: + + CPU-COMPANY-SYSTEM + +where SYSTEM can have one of these forms: + + OS + KERNEL-OS + + See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the machine type. + + If you are _building_ compiler tools for cross-compiling, you should +use the option `--target=3DTYPE' to select the type of system they will +produce code for. + + If you want to _use_ a cross compiler, that generates code for a +platform different from the build platform, you should specify the +"host" platform (i.e., that on which the generated programs will +eventually be run) with `--host=3DTYPE'. + +Sharing Defaults +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Defining Variables +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + Variables not defined in a site shell script can be set in the +environment passed to `configure'. However, some packages may run +configure again during the build, and the customized values of these +variables may be lost. In order to avoid this problem, you should set +them in the `configure' command line, using `VAR=3Dvalue'. For example: + + ./configure CC=3D/usr/local2/bin/gcc + +causes the specified `gcc' to be used as the C compiler (unless it is +overridden in the site shell script). + +Unfortunately, this technique does not work for `CONFIG_SHELL' due to +an Autoconf bug. Until the bug is fixed you can use this workaround: + + CONFIG_SHELL=3D/bin/bash /bin/bash ./configure CONFIG_SHELL=3D/bin/= bash + +`configure' Invocation +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + + `configure' recognizes the following options to control how it +operates. + +`--help' +`-h' + Print a summary of all of the options to `configure', and exit. + +`--help=3Dshort' +`--help=3Drecursive' + Print a summary of the options unique to this package's + `configure', and exit. The `short' variant lists options used + only in the top level, while the `recursive' variant lists options + also present in any nested packages. + +`--version' +`-V' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`--cache-file=3DFILE' + Enable the cache: use and save the results of the tests in FILE, + traditionally `config.cache'. FILE defaults to `/dev/null' to + disable caching. + +`--config-cache' +`-C' + Alias for `--cache-file=3Dconfig.cache'. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=3DDIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--prefix=3DDIR' + Use DIR as the installation prefix. *note Installation Names:: + for more details, including other options available for fine-tuning + the installation locations. + +`--no-create' +`-n' + Run the configure checks, but stop before creating any output + files. + +`configure' also accepts some other, not widely useful, options. Run +`configure --help' for more details. + diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..f21ffe3 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,738 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + + +VPATH =3D @srcdir@ +pkgdatadir =3D $(datadir)/@PACKAGE@ +pkgincludedir =3D $(includedir)/@PACKAGE@ +pkglibdir =3D $(libdir)/@PACKAGE@ +pkglibexecdir =3D $(libexecdir)/@PACKAGE@ +am__cd =3D CDPATH=3D"$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA =3D $(install_sh) -c -m 644 +install_sh_PROGRAM =3D $(install_sh) -c +install_sh_SCRIPT =3D $(install_sh) -c +INSTALL_HEADER =3D $(INSTALL_DATA) +transform =3D $(program_transform_name) +NORMAL_INSTALL =3D : +PRE_INSTALL =3D : +POST_INSTALL =3D : +NORMAL_UNINSTALL =3D : +PRE_UNINSTALL =3D : +POST_UNINSTALL =3D : +build_triplet =3D @build@ +host_triplet =3D @host@ +subdir =3D . +DIST_COMMON =3D README $(am__configure_deps) $(layman_include_HEADERS) \ + $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + $(top_srcdir)/configure AUTHORS COPYING ChangeLog INSTALL NEWS \ + config.guess config.sub depcomp install-sh ltmain.sh missing +ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps =3D $(top_srcdir)/configure.ac +am__configure_deps =3D $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) = \ + $(ACLOCAL_M4) +am__CONFIG_DISTCLEAN_FILES =3D config.status config.cache config.log \ + configure.lineno config.status.lineno +mkinstalldirs =3D $(install_sh) -d +CONFIG_CLEAN_FILES =3D +CONFIG_CLEAN_VPATH_FILES =3D +am__vpath_adj_setup =3D srcdirstrip=3D`echo "$(srcdir)" | sed 's|.|.|g'`= ; +am__vpath_adj =3D case $$p in \ + $(srcdir)/*) f=3D`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=3D$$p;; \ + esac; +am__strip_dir =3D f=3D`echo $$p | sed -e 's|^.*/||'`; +am__install_max =3D 40 +am__nobase_strip_setup =3D \ + srcdirstrip=3D`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip =3D \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list =3D $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,'= | \ + $(AWK) 'BEGIN { files["."] =3D "" } { files[$$2] =3D files[$$2] " " $$= 1; \ + if (++n[$$2] =3D=3D $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] =3D 0; files[$$2] =3D "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list =3D \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__installdirs =3D "$(DESTDIR)$(libdir)" \ + "$(DESTDIR)$(layman_includedir)" +LTLIBRARIES =3D $(lib_LTLIBRARIES) +am__DEPENDENCIES_1 =3D +liblayman_la_DEPENDENCIES =3D $(am__DEPENDENCIES_1) +am__dirstamp =3D $(am__leading_dot)dirstamp +am_liblayman_la_OBJECTS =3D src/config.lo src/dict.lo src/interpreter.lo= \ + src/laymanapi.lo src/message.lo src/stringlist.lo +liblayman_la_OBJECTS =3D $(am_liblayman_la_OBJECTS) +DEFAULT_INCLUDES =3D -I.@am__isrc@ +depcomp =3D $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe =3D depfiles +am__mv =3D mv -f +COMPILE =3D $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)= \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE =3D $(LIBTOOL) --tag=3DCC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=3Dcompile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD =3D $(CC) +LINK =3D $(LIBTOOL) --tag=3DCC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=3Dlink $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES =3D $(liblayman_la_SOURCES) +DIST_SOURCES =3D $(liblayman_la_SOURCES) +HEADERS =3D $(layman_include_HEADERS) +ETAGS =3D etags +CTAGS =3D ctags +DISTFILES =3D $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +distdir =3D $(PACKAGE)-$(VERSION) +top_distdir =3D $(distdir) +am__remove_distdir =3D \ + { test ! -d "$(distdir)" \ + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ + && rm -fr "$(distdir)"; }; } +DIST_ARCHIVES =3D $(distdir).tar.gz +GZIP_ENV =3D --best +distuninstallcheck_listfiles =3D find . -type f -print +distcleancheck_listfiles =3D find . -type f -print +ACLOCAL =3D @ACLOCAL@ +AMTAR =3D @AMTAR@ +AR =3D @AR@ +AUTOCONF =3D @AUTOCONF@ +AUTOHEADER =3D @AUTOHEADER@ +AUTOMAKE =3D @AUTOMAKE@ +AWK =3D @AWK@ +CC =3D @CC@ +CCDEPMODE =3D @CCDEPMODE@ +CFLAGS =3D @CFLAGS@ +CPP =3D @CPP@ +CPPFLAGS =3D @CPPFLAGS@ +CYGPATH_W =3D @CYGPATH_W@ +DEFS =3D @DEFS@ +DEPDIR =3D @DEPDIR@ +DSYMUTIL =3D @DSYMUTIL@ +DUMPBIN =3D @DUMPBIN@ +ECHO_C =3D @ECHO_C@ +ECHO_N =3D @ECHO_N@ +ECHO_T =3D @ECHO_T@ +EGREP =3D @EGREP@ +EXEEXT =3D @EXEEXT@ +FGREP =3D @FGREP@ +GREP =3D @GREP@ +INSTALL =3D @INSTALL@ +INSTALL_DATA =3D @INSTALL_DATA@ +INSTALL_PROGRAM =3D @INSTALL_PROGRAM@ +INSTALL_SCRIPT =3D @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM =3D @INSTALL_STRIP_PROGRAM@ +LD =3D @LD@ +LDFLAGS =3D @LDFLAGS@ +LIBOBJS =3D @LIBOBJS@ +LIBS =3D @LIBS@ +LIBTOOL =3D @LIBTOOL@ +LIPO =3D @LIPO@ +LN_S =3D @LN_S@ +LTLIBOBJS =3D @LTLIBOBJS@ +MAKEINFO =3D @MAKEINFO@ +MKDIR_P =3D @MKDIR_P@ +NM =3D @NM@ +NMEDIT =3D @NMEDIT@ +OBJDUMP =3D @OBJDUMP@ +OBJEXT =3D @OBJEXT@ +OTOOL =3D @OTOOL@ +OTOOL64 =3D @OTOOL64@ +PACKAGE =3D @PACKAGE@ +PACKAGE_BUGREPORT =3D @PACKAGE_BUGREPORT@ +PACKAGE_NAME =3D @PACKAGE_NAME@ +PACKAGE_STRING =3D @PACKAGE_STRING@ +PACKAGE_TARNAME =3D @PACKAGE_TARNAME@ +PACKAGE_URL =3D @PACKAGE_URL@ +PACKAGE_VERSION =3D @PACKAGE_VERSION@ +PATH_SEPARATOR =3D @PATH_SEPARATOR@ +PYTHON_CFLAGS =3D @PYTHON_CFLAGS@ +PYTHON_LIBS =3D @PYTHON_LIBS@ +RANLIB =3D @RANLIB@ +SED =3D @SED@ +SET_MAKE =3D @SET_MAKE@ +SHELL =3D @SHELL@ +STRIP =3D @STRIP@ +VERSION =3D @VERSION@ +abs_builddir =3D @abs_builddir@ +abs_srcdir =3D @abs_srcdir@ +abs_top_builddir =3D @abs_top_builddir@ +abs_top_srcdir =3D @abs_top_srcdir@ +ac_ct_CC =3D @ac_ct_CC@ +ac_ct_DUMPBIN =3D @ac_ct_DUMPBIN@ +am__include =3D @am__include@ +am__leading_dot =3D @am__leading_dot@ +am__quote =3D @am__quote@ +am__tar =3D @am__tar@ +am__untar =3D @am__untar@ +bindir =3D @bindir@ +build =3D @build@ +build_alias =3D @build_alias@ +build_cpu =3D @build_cpu@ +build_os =3D @build_os@ +build_vendor =3D @build_vendor@ +builddir =3D @builddir@ +datadir =3D @datadir@ +datarootdir =3D @datarootdir@ +docdir =3D @docdir@ +dvidir =3D @dvidir@ +exec_prefix =3D @exec_prefix@ +host =3D @host@ +host_alias =3D @host_alias@ +host_cpu =3D @host_cpu@ +host_os =3D @host_os@ +host_vendor =3D @host_vendor@ +htmldir =3D @htmldir@ +includedir =3D @includedir@ +infodir =3D @infodir@ +install_sh =3D @install_sh@ +libdir =3D @libdir@ +libexecdir =3D @libexecdir@ +localedir =3D @localedir@ +localstatedir =3D @localstatedir@ +lt_ECHO =3D @lt_ECHO@ +mandir =3D @mandir@ +mkdir_p =3D @mkdir_p@ +oldincludedir =3D @oldincludedir@ +pdfdir =3D @pdfdir@ +prefix =3D @prefix@ +program_transform_name =3D @program_transform_name@ +psdir =3D @psdir@ +sbindir =3D @sbindir@ +sharedstatedir =3D @sharedstatedir@ +srcdir =3D @srcdir@ +sysconfdir =3D @sysconfdir@ +target_alias =3D @target_alias@ +top_build_prefix =3D @top_build_prefix@ +top_builddir =3D @top_builddir@ +top_srcdir =3D @top_srcdir@ +AUTOMAKE_OPTIONS =3D subdir-objects +ACLOCAL_AMFLAGS =3D ${ACLOCAL_FLAGS} +lib_LTLIBRARIES =3D liblayman.la +AM_CFLAGS =3D $(PYTHON_CFLAGS) --std=3Dc99 -W -Wall +liblayman_la_SOURCES =3D src/config.c src/dict.c src/interpreter.c src/l= aymanapi.c src/message.c src/stringlist.c +#src/tester.c +liblayman_la_LIBADD =3D $(PYTHON_LIBS) +layman_includedir =3D $(includedir)/layman +layman_include_HEADERS =3D src/config.h src/dict.h src/interpreter.h src= /laymanapi.h src/message.h src/stringlist.h +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +am--refresh: + @: +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \ + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \ + && exit 0; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + echo ' $(SHELL) ./config.status'; \ + $(SHELL) ./config.status;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depf= iles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_ma= ybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_D= EPENDENCIES) + $(SHELL) ./config.status --recheck + +$(top_srcdir)/configure: $(am__configure_deps) + $(am__cd) $(srcdir) && $(AUTOCONF) +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) +$(am__aclocal_m4_deps): +install-libLTLIBRARIES: $(lib_LTLIBRARIES) + @$(NORMAL_INSTALL) + test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)" + @list=3D'$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=3D; \ + list2=3D; for p in $$list; do \ + if test -f $$p; then \ + list2=3D"$$list2 $$p"; \ + else :; fi; \ + done; \ + test -z "$$list2" || { \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=3Dinstall= $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=3Dinstall $(INST= ALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \ + } + +uninstall-libLTLIBRARIES: + @$(NORMAL_UNINSTALL) + @list=3D'$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=3D; \ + for p in $$list; do \ + $(am__strip_dir) \ + echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=3Duninsta= ll rm -f '$(DESTDIR)$(libdir)/$$f'"; \ + $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=3Duninstall rm -= f "$(DESTDIR)$(libdir)/$$f"; \ + done + +clean-libLTLIBRARIES: + -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) + @list=3D'$(lib_LTLIBRARIES)'; for p in $$list; do \ + dir=3D"`echo $$p | sed -e 's|/[^/]*$$||'`"; \ + test "$$dir" !=3D "$$p" || dir=3D.; \ + echo "rm -f \"$${dir}/so_locations\""; \ + rm -f "$${dir}/so_locations"; \ + done +src/$(am__dirstamp): + @$(MKDIR_P) src + @: > src/$(am__dirstamp) +src/$(DEPDIR)/$(am__dirstamp): + @$(MKDIR_P) src/$(DEPDIR) + @: > src/$(DEPDIR)/$(am__dirstamp) +src/config.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/dict.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/interpreter.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/laymanapi.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/message.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +src/stringlist.lo: src/$(am__dirstamp) src/$(DEPDIR)/$(am__dirstamp) +liblayman.la: $(liblayman_la_OBJECTS) $(liblayman_la_DEPENDENCIES)=20 + $(LINK) -rpath $(libdir) $(liblayman_la_OBJECTS) $(liblayman_la_LIBADD)= $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + -rm -f src/config.$(OBJEXT) + -rm -f src/config.lo + -rm -f src/dict.$(OBJEXT) + -rm -f src/dict.lo + -rm -f src/interpreter.$(OBJEXT) + -rm -f src/interpreter.lo + -rm -f src/laymanapi.$(OBJEXT) + -rm -f src/laymanapi.lo + -rm -f src/message.$(OBJEXT) + -rm -f src/message.lo + -rm -f src/stringlist.$(OBJEXT) + -rm -f src/stringlist.lo + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/config.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/dict.Plo@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/interpreter.Plo@am__q= uote@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/laymanapi.Plo@am__quo= te@ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/message.Plo@am__quote= @ +@AMDEP_TRUE@@am__include@ @am__quote@src/$(DEPDIR)/stringlist.Plo@am__qu= ote@ + +.c.o: +@am__fastdepCC_TRUE@ depbase=3D`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|= \.o$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $= @ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source=3D'$<' object=3D'$@' libtool=3D= no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=3D$(DEPDIR) $(CCDEPMODE) $(depc= omp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ $< + +.c.obj: +@am__fastdepCC_TRUE@ depbase=3D`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|= \.obj$$||'`;\ +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $= @ `$(CYGPATH_W) '$<'` &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source=3D'$<' object=3D'$@' libtool=3D= no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=3D$(DEPDIR) $(CCDEPMODE) $(depc= omp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ depbase=3D`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|= \.lo$$||'`;\ +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o= $@ $< &&\ +@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source=3D'$<' object=3D'$@' libtool=3D= yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=3D$(DEPDIR) $(CCDEPMODE) $(depc= omp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + -rm -rf src/.libs src/_libs + +distclean-libtool: + -rm -f libtool config.lt +install-layman_includeHEADERS: $(layman_include_HEADERS) + @$(NORMAL_INSTALL) + test -z "$(layman_includedir)" || $(MKDIR_P) "$(DESTDIR)$(layman_includ= edir)" + @list=3D'$(layman_include_HEADERS)'; test -n "$(layman_includedir)" || = list=3D; \ + for p in $$list; do \ + if test -f "$$p"; then d=3D; else d=3D"$(srcdir)/"; fi; \ + echo "$$d$$p"; \ + done | $(am__base_list) | \ + while read files; do \ + echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(layman_includedir)'"; \ + $(INSTALL_HEADER) $$files "$(DESTDIR)$(layman_includedir)" || exit $$= ?; \ + done + +uninstall-layman_includeHEADERS: + @$(NORMAL_UNINSTALL) + @list=3D'$(layman_include_HEADERS)'; test -n "$(layman_includedir)" || = list=3D; \ + files=3D`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ + test -n "$$files" || exit 0; \ + echo " ( cd '$(DESTDIR)$(layman_includedir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(layman_includedir)" && rm -f $$files + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list=3D'$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] =3D 1; nonempty =3D 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=3D`pwd`; \ + list=3D'$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] =3D 1; nonempty =3D 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=3D$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list=3D'$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] =3D 1; nonempty =3D 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=3D`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + $(am__remove_distdir) + test -d "$(distdir)" || mkdir "$(distdir)" + @srcdirstrip=3D`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=3D`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; = \ + list=3D'$(DISTFILES)'; \ + dist_files=3D`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=3D.; else d=3D$(srcdir); = fi; \ + if test -d $$d/$$file; then \ + dir=3D`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {= } \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d !=3D $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {= } \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done + -test -n "$(am__skip_mode_fix)" \ + || find "$(distdir)" -type d ! -perm -755 \ + -exec chmod u+rwx,go+rx {} \; -o \ + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \ + || chmod -R a+r "$(distdir)" +dist-gzip: distdir + tardir=3D$(distdir) && $(am__tar) | GZIP=3D$(GZIP_ENV) gzip -c >$(distd= ir).tar.gz + $(am__remove_distdir) + +dist-bzip2: distdir + tardir=3D$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 + $(am__remove_distdir) + +dist-lzma: distdir + tardir=3D$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma + $(am__remove_distdir) + +dist-xz: distdir + tardir=3D$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz + $(am__remove_distdir) + +dist-tarZ: distdir + tardir=3D$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z + $(am__remove_distdir) + +dist-shar: distdir + shar $(distdir) | GZIP=3D$(GZIP_ENV) gzip -c >$(distdir).shar.gz + $(am__remove_distdir) + +dist-zip: distdir + -rm -f $(distdir).zip + zip -rq $(distdir).zip $(distdir) + $(am__remove_distdir) + +dist dist-all: distdir + tardir=3D$(distdir) && $(am__tar) | GZIP=3D$(GZIP_ENV) gzip -c >$(distd= ir).tar.gz + $(am__remove_distdir) + +# This target untars the dist file and tries a VPATH configuration. The= n +# it guarantees that the distribution is self-contained by making anothe= r +# tarfile. +distcheck: dist + case '$(DIST_ARCHIVES)' in \ + *.tar.gz*) \ + GZIP=3D$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\ + *.tar.bz2*) \ + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\ + *.tar.lzma*) \ + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\ + *.tar.xz*) \ + xz -dc $(distdir).tar.xz | $(am__untar) ;;\ + *.tar.Z*) \ + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ + *.shar.gz*) \ + GZIP=3D$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\ + *.zip*) \ + unzip $(distdir).zip ;;\ + esac + chmod -R a-w $(distdir); chmod a+w $(distdir) + mkdir $(distdir)/_build + mkdir $(distdir)/_inst + chmod a-w $(distdir) + test -d $(distdir)/_build || exit 0; \ + dc_install_base=3D`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\= /]:[\\/],/,'` \ + && dc_destdir=3D"$${TMPDIR-/tmp}/am-dc-$$$$/" \ + && am__cwd=3D`pwd` \ + && $(am__cd) $(distdir)/_build \ + && ../configure --srcdir=3D.. --prefix=3D"$$dc_install_base" \ + $(DISTCHECK_CONFIGURE_FLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir=3D"$$dc_install_bas= e" \ + distuninstallcheck \ + && chmod -R a-w "$$dc_install_base" \ + && ({ \ + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=3D"$$dc_destdir" install \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=3D"$$dc_destdir" uninstall \ + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR=3D"$$dc_destdir" \ + distuninstallcheck_dir=3D"$$dc_destdir" distuninstallcheck;= \ + } || { rm -rf "$$dc_destdir"; exit 1; }) \ + && rm -rf "$$dc_destdir" \ + && $(MAKE) $(AM_MAKEFLAGS) dist \ + && rm -rf $(DIST_ARCHIVES) \ + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \ + && cd "$$am__cwd" \ + || exit 1 + $(am__remove_distdir) + @(echo "$(distdir) archives ready for distribution: "; \ + list=3D'$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ + sed -e 1h -e 1s/./=3D/g -e 1p -e 1x -e '$$p' -e '$$x' +distuninstallcheck: + @$(am__cd) '$(distuninstallcheck_dir)' \ + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ + || { echo "ERROR: files left after uninstall:" ; \ + if test -n "$(DESTDIR)"; then \ + echo " (check DESTDIR support)"; \ + fi ; \ + $(distuninstallcheck_listfiles) ; \ + exit 1; } >&2 +distcleancheck: distclean + @if test '$(srcdir)' =3D . ; then \ + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ + exit 1 ; \ + fi + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ + || { echo "ERROR: files left in build directory after distclean:" ; \ + $(distcleancheck_listfiles) ; \ + exit 1; } >&2 +check-am: all-am +check: check-am +all-am: Makefile $(LTLIBRARIES) $(HEADERS) +installdirs: + for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(layman_includedir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=3D= -s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=3DSTRIPPROG=3D'$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . =3D "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm = -f $(CONFIG_CLEAN_VPATH_FILES) + -rm -f src/$(DEPDIR)/$(am__dirstamp) + -rm -f src/$(am__dirstamp) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ + mostlyclean-am + +distclean: distclean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf src/$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-libtool distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: install-layman_includeHEADERS + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-libLTLIBRARIES + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -f $(am__CONFIG_DISTCLEAN_FILES) + -rm -rf $(top_srcdir)/autom4te.cache + -rm -rf src/$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-layman_includeHEADERS uninstall-libLTLIBRARIES + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am am--refresh check check-am clean \ + clean-generic clean-libLTLIBRARIES clean-libtool ctags dist \ + dist-all dist-bzip2 dist-gzip dist-lzma dist-shar dist-tarZ \ + dist-xz dist-zip distcheck distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags \ + distcleancheck distdir distuninstallcheck dvi dvi-am html \ + html-am info info-am install install-am install-data \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-layman_includeHEADERS \ + install-libLTLIBRARIES install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ + installcheck-am installdirs maintainer-clean \ + maintainer-clean-generic mostlyclean mostlyclean-compile \ + mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ + tags uninstall uninstall-am uninstall-layman_includeHEADERS \ + uninstall-libLTLIBRARIES + + +#bin_PROGRAMS =3D tester + +#AM_CFLAGS =3D $(PYTHON_CFLAGS) --std=3Dc99 -W -Wall + +#tester_SOURCES =3D tester.c +#tester_LDADD =3D $(PYTHON_LIBS) -llayman + +#pkgconfigdir =3D $(libdir)/pkgconfig +#pkgconfig_DATA =3D layman.pc + +#dist_noinst_SCRIPTS =3D autogen.sh + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..bf48496 --- /dev/null +++ b/config.guess @@ -0,0 +1,1517 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 +# Free Software Foundation, Inc. + +timestamp=3D'2009-12-30' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + + +# Originally written by Per Bothner. Please send patches (context +# diff format) to and include a ChangeLog +# entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=3Dconfig.git;a=3Dblob_plain;f=3D= config.guess;hb=3DHEAD + +me=3D`echo "$0" | sed -e 's,.*/,,'` + +usage=3D"\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version=3D"\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, +2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free +Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is = NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO= SE." + +help=3D" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit ;; + --version | -v ) + echo "$version" ; exit ;; + --help | --h* | -h ) + echo "$usage"; exit ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# !=3D 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=3D' +trap "exitcode=3D\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/= null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2= 13 15 ; +: ${TMPDIR=3D/tmp} ; + { tmp=3D`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && te= st -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=3D$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdi= r $tmp) ; } || + { tmp=3D$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: cr= eating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit= 1 ; } ; +dummy=3D$tmp/dummy ; +tmpfiles=3D"$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD=3D"$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" =3D x ; then + CC_FOR_BUILD=3Dno_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=3D$CC ;; + ,*,*) CC_FOR_BUILD=3D$HOST_CC ;; +esac ; set_cc_for_build=3D ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD univ= erse. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=3D$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=3D`(uname -m) 2>/dev/null` || UNAME_MACHINE=3Dunknown +UNAME_RELEASE=3D`(uname -r) 2>/dev/null` || UNAME_RELEASE=3Dunknown +UNAME_SYSTEM=3D`(uname -s) 2>/dev/null` || UNAME_SYSTEM=3Dunknown +UNAME_VERSION=3D`(uname -v) 2>/dev/null` || UNAME_VERSION=3Dunknown + +case "${UNAME_SYSTEM}" in +Linux|GNU/*) + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include + #ifdef __UCLIBC__ + # ifdef __UCLIBC_CONFIG_VERSION__ + LIBC=3Duclibc __UCLIBC_CONFIG_VERSION__ + # else + LIBC=3Duclibc + # endif + #else + # ifdef __dietlibc__ + LIBC=3Ddietlibc + # else + LIBC=3Dgnu + # endif + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}= " in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl=3D"sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=3D`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=3Darmeb-unknown ;; + arm*) machine=3Darm-unknown ;; + sh3el) machine=3Dshl-unknown ;; + sh3eb) machine=3Dsh-unknown ;; + sh5el) machine=3Dsh5le-unknown ;; + *) machine=3D${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdao= ut). + # Return netbsd for either. FIX? + os=3Dnetbsd + else + os=3Dnetbsdelf + fi + ;; + *) + os=3Dnetbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release=3D'-gnu' + ;; + *) + release=3D`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit ;; + *:OpenBSD:*:*) + UNAME_MACHINE_ARCH=3D`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; + *:SolidBSD:*:*) + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} + exit ;; + macppc:MirBSD:*:*) + echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=3D`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=3D`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=3D`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*= \) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE=3D"alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE=3D"alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE=3D"alpha" ;; + "EV5 (21164)") + UNAME_MACHINE=3D"alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE=3D"alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE=3D"alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE=3D"alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE=3D"alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE=3D"alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE=3D"alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE=3D"alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE=3D"alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE=3D"alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE=3D"alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE=3D"alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]= //' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit ;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit ;; + arm:riscos:*:*|arm:RISCOS:*:*) + echo arm-unknown-riscos + exit ;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit ;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" =3D att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; + s390x:SunOS:*:*) + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]= *//'` + exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) + eval $set_cc_for_build + SUN_ARCH=3D"i386" + # If there is a compiler, see if it is configured for 64-bit objects. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. + # This test works for both compilers. + if [ "$CC_FOR_BUILD" !=3D 'no_compiler_found' ]; then + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS=3D $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + SUN_ARCH=3D"x86_64" + fi + fi + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=3D`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=3D`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/d= ev/null` + test "x${UNAME_RELEASE}" =3D "x" && UNAME_RELEASE=3D3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && + dummyarg=3D`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &= & + SYSTEM_NAME=3D`$dummy $dummyarg` && + { echo "$SYSTEM_NAME"; exit; } + echo mips-mips-riscos${UNAME_RELEASE} + exit ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=3D`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR =3D mc88100 ] || [ $UNAME_PROCESSOR =3D mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x =3D m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x =3D x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=3D`/usr/bin/oslevel` + else + IBM_REV=3D${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=3D`$dummy` + then + echo "$SYSTEM_NAME" + else + echo rs6000-ibm-aix3.2.5 + fi + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit ;; + *:AIX:*:[456]) + IBM_CPU_ID=3D`/usr/sbin/lsdev -C -c processor -S available | sed 1q | a= wk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; = then + IBM_ARCH=3Drs6000 + else + IBM_ARCH=3Dpowerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=3D`/usr/bin/oslevel` + else + IBM_REV=3D${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=3D`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=3Dm68000 ;; + 9000/[34]?? ) HP_ARCH=3Dm68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=3D`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=3D`/usr/bin/getconf SC_KERNEL_BITS 2>= /dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH=3D"hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH=3D"hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH=3D"hppa2.0n" ;; + 64) HP_ARCH=3D"hppa2.0w" ;; + '') HP_ARCH=3D"hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" =3D "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits =3D sysconf(_SC_KERNEL_BITS); + #endif + long cpu =3D sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS=3D $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARC= H=3D`$dummy` + test -z "$HP_ARCH" && HP_ARCH=3Dhppa + fi ;; + esac + if [ ${HP_ARCH} =3D "hppa2.0w" ] + then + eval $set_cc_for_build + + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler + # generating 64-bit code. GNU and HP use different nomenclature: + # + # $ CC_FOR_BUILD=3Dcc ./config.guess + # =3D> hppa2.0w-hp-hpux11.23 + # $ CC_FOR_BUILD=3D"cc +DA2.0w" ./config.guess + # =3D> hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS=3D $CC_FOR_BUILD -E - 2>/dev/null) | + grep -q __LP64__ + then + HP_ARCH=3D"hppa2.0w" + else + HP_ARCH=3D"hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit ;; + ia64:HP-UX:*:*) + HPUX_REV=3D`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu =3D sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=3D`$dummy` && + { echo "$SYSTEM_NAME"; exit; } + echo unknown-hitachi-hiuxwe2 + exit ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=3D`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijk= lmnopqrstuvwxyz'` + FUJITSU_SYS=3D`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcde= fghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=3D`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=3D`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcde= fghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=3D`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTU= VWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) + case ${UNAME_MACHINE} in + pc98) + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;= ; + amd64) + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`= ;; + *) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/= [-(].*//'` ;; + esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; + *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) + # uname -m includes "-pc" on this system. + echo ${UNAME_MACHINE}-mingw32 + exit ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; + *:Interix*:*) + case ${UNAME_MACHINE} in + x86) + echo i586-pc-interix${UNAME_RELEASE} + exit ;; + authenticamd | genuineintel | EM64T) + echo x86_64-unknown-interix${UNAME_RELEASE} + exit ;; + IA64) + echo ia64-unknown-interix${UNAME_RELEASE} + exit ;; + esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; + 8664:Windows_NT:*) + echo x86_64-pc-mks + exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//= '` + exit ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo = ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,'= | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} + exit ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=3Dalphaev5 ;; + EV56) UNAME_MACHINE=3Dalphaev56 ;; + PCA56) UNAME_MACHINE=3Dalphapca56 ;; + PCA57) UNAME_MACHINE=3Dalphapca56 ;; + EV6) UNAME_MACHINE=3Dalphaev6 ;; + EV67) UNAME_MACHINE=3Dalphaev67 ;; + EV68*) UNAME_MACHINE=3Dalphaev68 ;; + esac + objdump --private-headers /bin/sh | grep -q ld.so.1 + if test "$?" =3D 0 ; then LIBC=3D"gnulibc1" ; fi + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep -q __ARM_EABI__ + then + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + else + echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi + fi + exit ;; + avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + cris:Linux:*:*) + echo cris-axis-linux-${LIBC} + exit ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-${LIBC} + exit ;; + frv:Linux:*:*) + echo frv-unknown-linux-${LIBC} + exit ;; + i*86:Linux:*:*) + echo ${UNAME_MACHINE}-pc-linux-${LIBC} + exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef ${UNAME_MACHINE} + #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || def= ined(MIPSEL) + CPU=3D${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || def= ined(MIPSEB) + CPU=3D${UNAME_MACHINE} + #else + CPU=3D + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" !=3D x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } + ;; + or32:Linux:*:*) + echo or32-unknown-linux-${LIBC} + exit ;; + padre:Linux:*:*) + echo sparc-unknown-linux-${LIBC} + exit ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-${LIBC} + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; + PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; + *) echo hppa-unknown-linux-${LIBC} ;; + esac + exit ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-${LIBC} + exit ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-${LIBC} + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + vax:Linux:*:*) + echo ${UNAME_MACHINE}-dec-linux-${LIBC} + exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-${LIBC} + exit ;; + xtensa*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-${LIBC} + exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=3D`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit ;; + i*86:*:5:[678]*) + # UnixWare 7.x, OpenUNIX and OpenServer 6. + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=3Di486 ;; + *Pentium) UNAME_MACHINE=3Di586 ;; + *Pent*|*Celeron) UNAME_MACHINE=3Di686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAM= E_VERSION} + exit ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=3D`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=3D`(/bin/uname -X|grep Release|sed -e 's/.*=3D //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=3Di486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=3Di586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=3Di686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=3Di686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing a= bout + # the processor, so we play safe by assuming i586. + # Note: whatever this is, it MUST be the same as what config.sub + # prints for the "djgpp" host, or else GDB configury will decide that + # this is a cross-build. + echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; + 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 | SDS= 2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL=3D'' + test -r /etc/.relid \ + && OS_REL=3D.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.reli= d` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; + NCR*:*:4.2:* | MPRAS*:*:4.2:*) + OS_REL=3D'.3' + test -r /etc/.relid \ + && OS_REL=3D.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.= relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[= 02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=3D`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; + BePC:Haiku:*:*) # Haiku running on Intel PC compatible. + echo i586-pc-haiku + exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; + SX-7:SUPER-UX:*:*) + echo sx7-nec-superux${UNAME_RELEASE} + exit ;; + SX-8:SUPER-UX:*:*) + echo sx8-nec-superux${UNAME_RELEASE} + exit ;; + SX-8R:SUPER-UX:*:*) + echo sx8r-nec-superux${UNAME_RELEASE} + exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit ;; + *:Darwin:*:*) + UNAME_PROCESSOR=3D`uname -p` || UNAME_PROCESSOR=3Dunknown + case $UNAME_PROCESSOR in + i386) + eval $set_cc_for_build + if [ "$CC_FOR_BUILD" !=3D 'no_compiler_found' ]; then + if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ + (CCOPTS=3D $CC_FOR_BUILD -E - 2>/dev/null) | \ + grep IS_64BIT_ARCH >/dev/null + then + UNAME_PROCESSOR=3D"x86_64" + fi + fi ;; + unknown) UNAME_PROCESSOR=3Dpowerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=3D`uname -p` + if test "$UNAME_PROCESSOR" =3D "x86"; then + UNAME_PROCESSOR=3Di386 + UNAME_MACHINE=3Dpc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" =3D "386"; then + UNAME_MACHINE=3Di386 + else + UNAME_MACHINE=3D"$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's= /[-(].*//'` + exit ;; + *:*VMS:*:*) + UNAME_MACHINE=3D`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms ; exit ;; + I*) echo ia64-dec-vms ; exit ;; + V*) echo vax-dec-vms ; exit ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit ;; + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$/= /' + exit ;; + i*86:rdos:*:*) + echo ${UNAME_MACHINE}-pc-rdos + exit ;; + i*86:AROS:*:*) + echo ${UNAME_MACHINE}-pc-aros + exit ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION= }" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed= , + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix\n"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=3D`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/de= v/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) =3D=3D 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) =3D=3D 0) { /* XXX is V1 correct? *= / + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD =3D=3D 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD =3D=3D 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=3D`$dummy` &= & + { echo "$SYSTEM_NAME"; exit; } + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit ;; + c34*) + echo c34-convex-bsd + exit ;; + c38*) + echo c38-convex-bsd + exit ;; + c4*) + echo c4-convex-bsd + exit ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp =3D $timestamp + +uname -m =3D `(uname -m) 2>/dev/null || echo unknown` +uname -r =3D `(uname -r) 2>/dev/null || echo unknown` +uname -s =3D `(uname -s) 2>/dev/null || echo unknown` +uname -v =3D `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p =3D `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X =3D `(/bin/uname -X) 2>/dev/null` + +hostinfo =3D `(hostinfo) 2>/dev/null` +/bin/universe =3D `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k =3D `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch =3D `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel =3D `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo =3D `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE =3D ${UNAME_MACHINE} +UNAME_RELEASE =3D ${UNAME_RELEASE} +UNAME_SYSTEM =3D ${UNAME_SYSTEM} +UNAME_VERSION =3D ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp=3D'" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/depcomp b/depcomp new file mode 100755 index 0000000..df8eea7 --- /dev/null +++ b/depcomp @@ -0,0 +1,630 @@ +#! /bin/sh +# depcomp - compile a program generating dependencies as side-effects + +scriptversion=3D2009-04-28.21; # UTC + +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free +# Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Alexandre Oliva . + +case $1 in + '') + echo "$0: No command. Try \`$0 --help' for more information." 1>&2 + exit 1; + ;; + -h | --h*) + cat <<\EOF +Usage: depcomp [--help] [--version] PROGRAM [ARGS] + +Run PROGRAMS ARGS to compile a file, generating dependencies +as side-effects. + +Environment variables: + depmode Dependency tracking mode. + source Source file read by `PROGRAMS ARGS'. + object Object file output by `PROGRAMS ARGS'. + DEPDIR directory where to store dependencies. + depfile Dependency file to output. + tmpdepfile Temporary file to use when outputing dependencies. + libtool Whether libtool is used (yes/no). + +Report bugs to . +EOF + exit $? + ;; + -v | --v*) + echo "depcomp $scriptversion" + exit $? + ;; +esac + +if test -z "$depmode" || test -z "$source" || test -z "$object"; then + echo "depcomp: Variables source, object and depmode must be set" 1>&2 + exit 1 +fi + +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po. +depfile=3D${depfile-`echo "$object" | + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'= `} +tmpdepfile=3D${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`= } + +rm -f "$tmpdepfile" + +# Some modes work just like other modes, but use different flags. We +# parameterize here, but still list the modes in the big case below, +# to make depend.m4 easier to write. Note that we *cannot* use a case +# here, because this file can only contain one case statement. +if test "$depmode" =3D hp; then + # HP compiler uses -M and no extra arg. + gccflag=3D-M + depmode=3Dgcc +fi + +if test "$depmode" =3D dashXmstdout; then + # This is just like dashmstdout with a different argument. + dashmflag=3D-xM + depmode=3Ddashmstdout +fi + +cygpath_u=3D"cygpath -u -f -" +if test "$depmode" =3D msvcmsys; then + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u=3D"sed s,\\\\\\\\,/,g" + depmode=3Dmsvisualcpp +fi + +case "$depmode" in +gcc3) +## gcc 3 implements dependency tracking that does exactly what +## we want. Yay! Note: for some reason libtool 1.4 doesn't like +## it if -MD -MP comes after the -MF stuff. Hmm. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon +## the command line argument order; so add the flags where they +## appear in depend2.am. Note that the slowdown incurred here +## affects only configure: in makefiles, %FASTDEP% shortcuts this. + for arg + do + case $arg in + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;; + *) set fnord "$@" "$arg" ;; + esac + shift # fnord + shift # $arg + done + "$@" + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + mv "$tmpdepfile" "$depfile" + ;; + +gcc) +## There are various ways to get dependency output from gcc. Here's +## why we pick this rather obscure method: +## - Don't want to use -MD because we'd like the dependencies to end +## up in a subdir. Having to rename by hand is ugly. +## (We might end up doing this anyway to support other compilers.) +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like +## -MM, not -M (despite what the docs say). +## - Using -M directly means running the compiler twice (even worse +## than renaming). + if test -z "$gccflag"; then + gccflag=3D-MD, + fi + "$@" -Wp,"$gccflag$tmpdepfile" + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + echo "$object : \\" > "$depfile" + alpha=3DABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz +## The second -e expression handles DOS-style file names with drive lett= ers. + sed -e 's/^[^:]*: / /' \ + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" +## This next piece of magic avoids the `deleted header file' problem. +## The problem is that when a header file which appears in a .P file +## is deleted, the dependency causes make to die (because there is +## typically no way to rebuild the header). We avoid this by adding +## dummy dependencies for each header file. Too bad gcc doesn't do +## this for us directly. + tr ' ' ' +' < "$tmpdepfile" | +## Some versions of gcc put a space before the `:'. On the theory +## that the space means something, we add a space to the output as +## well. +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depf= ile" + rm -f "$tmpdepfile" + ;; + +hp) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +sgi) + if test "$libtool" =3D yes; then + "$@" "-Wp,-MDupdate,$tmpdepfile" + else + "$@" -MDupdate "$tmpdepfile" + fi + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other = files + echo "$object : \\" > "$depfile" + + # Clip off the initial element (the dependent). Don't try to be + # clever and replace this with sed code, as IRIX sed won't handle + # lines with more than a fixed number of characters (4096 in + # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines; + # the IRIX cc adds comments like `#:fec' to the end of the + # dependency line. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \ + tr ' +' ' ' >> "$depfile" + echo >> "$depfile" + + # The second pass generates a dummy entry for each header file. + tr ' ' ' +' < "$tmpdepfile" \ + | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \ + >> "$depfile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +aix) + # The C for AIX Compiler uses -M and outputs the dependencies + # in a .u file. In older versions, this file always lives in the + # current directory. Also, the AIX compiler puts `$object:' at the + # start of each line; $object doesn't have directory information. + # Version 6 uses the directory in both cases. + dir=3D`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" =3D "x$object" && dir=3D + base=3D`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//= '` + if test "$libtool" =3D yes; then + tmpdepfile1=3D$dir$base.u + tmpdepfile2=3D$base.u + tmpdepfile3=3D$dir.libs/$base.u + "$@" -Wc,-M + else + tmpdepfile1=3D$dir$base.u + tmpdepfile2=3D$dir$base.u + tmpdepfile3=3D$dir$base.u + "$@" -M + fi + stat=3D$? + + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + # Each line is of the form `foo.o: dependent.h'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depf= ile" + else + # The sourcefile does not contain any dependencies, so just + # store a dummy comment line, to avoid errors with the Makefile + # "include basename.Plo" scheme. + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +icc) + # Intel's C compiler understands `-MD -MF file'. However on + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c + # ICC 7.0 will fill foo.d with something like + # foo.o: sub/foo.c + # foo.o: sub/foo.h + # which is wrong. We want: + # sub/foo.o: sub/foo.c + # sub/foo.o: sub/foo.h + # sub/foo.c: + # sub/foo.h: + # ICC 7.1 will output + # foo.o: sub/foo.c sub/foo.h + # and will wrap long lines using \ : + # foo.o: sub/foo.c ... \ + # sub/foo.h ... \ + # ... + + "$@" -MD -MF "$tmpdepfile" + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile" + exit $stat + fi + rm -f "$depfile" + # Each line is of the form `foo.o: dependent.h', + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'. + # Do two passes, one to just change these to + # `$object: dependent.h' and one to simply `dependent.h:'. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile" + # Some versions of the HPUX 10.20 sed can't process this invocation + # correctly. Breaking it into two sed invocations is a workaround. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" | + sed -e 's/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +hp2) + # The "hp" stanza above does not work with aCC (C++) and HP's ia64 + # compilers, which have integrated preprocessors. The correct option + # to use with these is +Maked; it writes dependencies to a file named + # 'foo.d', which lands next to the object file, wherever that + # happens to be. + # Much of this is similar to the tru64 case; see comments there. + dir=3D`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" =3D "x$object" && dir=3D + base=3D`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//= '` + if test "$libtool" =3D yes; then + tmpdepfile1=3D$dir$base.d + tmpdepfile2=3D$dir.libs/$base.d + "$@" -Wc,+Maked + else + tmpdepfile1=3D$dir$base.d + tmpdepfile2=3D$dir$base.d + "$@" +Maked + fi + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile" + # Add `dependent.h:' lines. + sed -ne '2,${ + s/^ *// + s/ \\*$// + s/$/:/ + p + }' "$tmpdepfile" >> "$depfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" "$tmpdepfile2" + ;; + +tru64) + # The Tru64 compiler uses -MD to generate dependencies as a side + # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'= . + # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put + # dependencies in `foo.d' instead, so we check for that too. + # Subdirectories are respected. + dir=3D`echo "$object" | sed -e 's|/[^/]*$|/|'` + test "x$dir" =3D "x$object" && dir=3D + base=3D`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$/= /'` + + if test "$libtool" =3D yes; then + # With Tru64 cc, shared objects can also be used to make a + # static library. This mechanism is used in libtool 1.4 series to + # handle both shared and static libraries in a single compilation. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo= .d. + # + # With libtool 1.5 this exception was removed, and libtool now + # generates 2 separate objects for the 2 libraries. These two + # compilations output dependencies in $dir.libs/$base.o.d and + # in $dir$base.o.d. We have to check for both files, because + # one of the two compilations can be disabled. We should prefer + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is + # automatically cleaned when .libs/ is deleted, while ignoring + # the former would cause a distcleancheck panic. + tmpdepfile1=3D$dir.libs/$base.lo.d # libtool 1.4 + tmpdepfile2=3D$dir$base.o.d # libtool 1.5 + tmpdepfile3=3D$dir.libs/$base.o.d # libtool 1.5 + tmpdepfile4=3D$dir.libs/$base.d # Compaq CCC V6.2-504 + "$@" -Wc,-MD + else + tmpdepfile1=3D$dir$base.o.d + tmpdepfile2=3D$dir$base.d + tmpdepfile3=3D$dir$base.d + tmpdepfile4=3D$dir$base.d + "$@" -MD + fi + + stat=3D$? + if test $stat -eq 0; then : + else + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4" + exit $stat + fi + + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpd= epfile4" + do + test -f "$tmpdepfile" && break + done + if test -f "$tmpdepfile"; then + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile" + # That's a tab and a space in the []. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$de= pfile" + else + echo "#dummy" > "$depfile" + fi + rm -f "$tmpdepfile" + ;; + +#nosideeffect) + # This comment above is used by automake to tell side-effect + # dependency tracking mechanisms from slower ones. + +dashmstdout) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout, regardless of -o. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" =3D yes; then + while test "X$1" !=3D 'X--mode=3Dcompile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=3D" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + test -z "$dashmflag" && dashmflag=3D-M + # Require at least two characters before searching for `:' + # in the target name. This is to cope with DOS-style filenames: + # a dependency such as `c:/foo/bar' could be seen as target `c' otherw= ise. + "$@" $dashmflag | + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile= " + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + tr ' ' ' +' < "$tmpdepfile" | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depf= ile" + rm -f "$tmpdepfile" + ;; + +dashXmstdout) + # This case only exists to satisfy depend.m4. It is never actually + # run, as this mode is specially recognized in the preamble. + exit 1 + ;; + +makedepend) + "$@" || exit $? + # Remove any Libtool call + if test "$libtool" =3D yes; then + while test "X$1" !=3D 'X--mode=3Dcompile'; do + shift + done + shift + fi + # X makedepend + shift + cleared=3Dno eat=3Dno + for arg + do + case $cleared in + no) + set ""; shift + cleared=3Dyes ;; + esac + if test $eat =3D yes; then + eat=3Dno + continue + fi + case "$arg" in + -D*|-I*) + set fnord "$@" "$arg"; shift ;; + # Strip any option that makedepend may not understand. Remove + # the object too, otherwise makedepend will parse it as a source fil= e. + -arch) + eat=3Dyes ;; + -*|$object) + ;; + *) + set fnord "$@" "$arg"; shift ;; + esac + done + obj_suffix=3D`echo "$object" | sed 's/^.*\././'` + touch "$tmpdepfile" + ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@" + rm -f "$depfile" + cat < "$tmpdepfile" > "$depfile" + sed '1,2d' "$tmpdepfile" | tr ' ' ' +' | \ +## Some versions of the HPUX 10.20 sed can't process this invocation +## correctly. Breaking it into two sed invocations is a workaround. + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depf= ile" + rm -f "$tmpdepfile" "$tmpdepfile".bak + ;; + +cpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" =3D yes; then + while test "X$1" !=3D 'X--mode=3Dcompile'; do + shift + done + shift + fi + + # Remove `-o $object'. + IFS=3D" " + for arg + do + case $arg in + -o) + shift + ;; + $object) + shift + ;; + *) + set fnord "$@" "$arg" + shift # fnord + shift # $arg + ;; + esac + done + + "$@" -E | + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \ + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | + sed '$ s: \\$::' > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + cat < "$tmpdepfile" >> "$depfile" + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" + rm -f "$tmpdepfile" + ;; + +msvisualcpp) + # Important note: in order to support this mode, a compiler *must* + # always write the preprocessed file to stdout. + "$@" || exit $? + + # Remove the call to Libtool. + if test "$libtool" =3D yes; then + while test "X$1" !=3D 'X--mode=3Dcompile'; do + shift + done + shift + fi + + IFS=3D" " + for arg + do + case "$arg" in + -o) + shift + ;; + $object) + shift + ;; + "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI") + set fnord "$@" + shift + shift + ;; + *) + set fnord "$@" "$arg" + shift + shift + ;; + esac + done + "$@" -E 2>/dev/null | + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort = -u > "$tmpdepfile" + rm -f "$depfile" + echo "$object : \\" > "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "= $depfile" + echo " " >> "$depfile" + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$d= epfile" + rm -f "$tmpdepfile" + ;; + +msvcmsys) + # This case exists only to let depend.m4 do its work. It works by + # looking at the text of this script. This case will never be run, + # since it is checked for above. + exit 1 + ;; + +none) + exec "$@" + ;; + +*) + echo "Unknown depmode $depmode" 1>&2 + exit 1 + ;; +esac + +exit 0 + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=3D" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/ltmain.sh b/ltmain.sh new file mode 100755 index 0000000..a72f2fd --- /dev/null +++ b/ltmain.sh @@ -0,0 +1,8406 @@ +# Generated from ltmain.m4sh. + +# ltmain.sh (GNU libtool) 2.2.6b +# Written by Gordon Matzigkeit , 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 20= 06, 2007 2008 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There i= s NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PUR= POSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and e= xit +# --mode=3DMODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --tag=3DTAG use configuration variables from tag TAG +# -v, --verbose print informational messages (default) +# --version print version information +# -h, --help print short or long help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a pr= ogram +# finish complete the installation of libtool librarie= s +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. +# Try `$progname --help --mode=3DMODE' for a more detailed description o= f MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.2.6b +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to . + +PROGRAM=3Dltmain.sh +PACKAGE=3Dlibtool +VERSION=3D2.2.6b +TIMESTAMP=3D"" +package_revision=3D1.3017 + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=3D: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'=3D'"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac +fi +BIN_SH=3Dxpg4; export BIN_SH # for Tru64 +DUALCASE=3D1; export DUALCASE # for MKS sh + +# NLS nuisances: We save the old values to restore during execute mode. +# Only set LANG and LC_ALL to C if already set. +# These must not be set unconditionally because not all systems understa= nd +# e.g. LANG=3DC (notably SCO). +lt_user_locale=3D +lt_safe_locale=3D +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" =3D set; then + save_$lt_var=3D\$$lt_var + $lt_var=3DC + export $lt_var + lt_user_locale=3D\"$lt_var=3D\\\$save_\$lt_var; \$lt_user_locale\" + lt_safe_locale=3D\"$lt_var=3DC; \$lt_safe_locale\" + fi" +done + +$lt_unset CDPATH + + + + + +: ${CP=3D"cp -f"} +: ${ECHO=3D"echo"} +: ${EGREP=3D"/bin/grep -E"} +: ${FGREP=3D"/bin/grep -F"} +: ${GREP=3D"/bin/grep"} +: ${LN_S=3D"ln -s"} +: ${MAKE=3D"make"} +: ${MKDIR=3D"mkdir"} +: ${MV=3D"mv -f"} +: ${RM=3D"rm -f"} +: ${SED=3D"/bin/sed"} +: ${SHELL=3D"${CONFIG_SHELL-/bin/sh}"} +: ${Xsed=3D"$SED -e 1s/^X//"} + +# Global variables: +EXIT_SUCCESS=3D0 +EXIT_FAILURE=3D1 +EXIT_MISMATCH=3D63 # $? =3D 63 is used to indicate version mismatch to = missing. +EXIT_SKIP=3D77 # $? =3D 77 is used to indicate a skipped test to autom= ake. + +exit_status=3D$EXIT_SUCCESS + +# Make sure IFS has a sensible default +lt_nl=3D' +' +IFS=3D" $lt_nl" + +dirname=3D"s,/[^/]*$,," +basename=3D"s,^.*/,," + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{ + # Extract subdirectory from the argument. + func_dirname_result=3D`$ECHO "X${1}" | $Xsed -e "$dirname"` + if test "X$func_dirname_result" =3D "X${1}"; then + func_dirname_result=3D"${3}" + else + func_dirname_result=3D"$func_dirname_result${2}" + fi + func_basename_result=3D`$ECHO "X${1}" | $Xsed -e "$basename"` +} + +# Generated shell functions inserted here. + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath=3D"$0" + +# The name of this program: +# In the unlikely event $progname began with a '-', it would play havoc = with +# func_echo (imagine progname=3D-n), so we prepend ./ in that case: +func_dirname_and_basename "$progpath" +progname=3D$func_basename_result +case $progname in + -*) progname=3D./$progname ;; +esac + +# Make sure we have an absolute path for reexecution: +case $progpath in + [\\/]*|[A-Za-z]:\\*) ;; + *[\\/]*) + progdir=3D$func_dirname_result + progdir=3D`cd "$progdir" && pwd` + progpath=3D"$progdir/$progname" + ;; + *) + save_IFS=3D"$IFS" + IFS=3D: + for progdir in $PATH; do + IFS=3D"$save_IFS" + test -x "$progdir/$progname" && break + done + IFS=3D"$save_IFS" + test -n "$progdir" || progdir=3D`pwd` + progpath=3D"$progdir/$progname" + ;; +esac + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed=3D"${SED}"' -e 1s/^X//' +sed_quote_subst=3D's/\([`"$\\]\)/\\\1/g' + +# Same as above, but do not quote variable references. +double_quote_subst=3D's/\(["`\\]\)/\\\1/g' + +# Re-`\' parameter expansions in output of double_quote_subst that were +# `\'-ed in input to the same. If an odd number of `\' preceded a '$' +# in input to double_quote_subst, that '$' was protected from expansion. +# Since each input `\' is now two `\'s, look for any number of runs of +# four `\'s followed by two `\'s and then a '$'. `\' that '$'. +bs=3D'\\' +bs2=3D'\\\\' +bs4=3D'\\\\\\\\' +dollar=3D'\$' +sed_double_backslash=3D"\ + s/$bs4/&\\ +/g + s/^$bs2$dollar/$bs&/ + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g + s/\n//g" + +# Standard options: +opt_dry_run=3Dfalse +opt_help=3Dfalse +opt_quiet=3Dfalse +opt_verbose=3Dfalse +opt_warning=3D: + +# func_echo arg... +# Echo program name prefixed message, along with the current mode +# name if it has been set yet. +func_echo () +{ + $ECHO "$progname${mode+: }$mode: $*" +} + +# func_verbose arg... +# Echo program name prefixed message in verbose mode only. +func_verbose () +{ + $opt_verbose && func_echo ${1+"$@"} + + # A bug in bash halts the script if the last line of a function + # fails when set -e is in force, so we need another command to + # work around that: + : +} + +# func_error arg... +# Echo program name prefixed message to standard error. +func_error () +{ + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 +} + +# func_warning arg... +# Echo program name prefixed warning message to standard error. +func_warning () +{ + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"}= 1>&2 + + # bash bug again: + : +} + +# func_fatal_error arg... +# Echo program name prefixed message to standard error, and exit. +func_fatal_error () +{ + func_error ${1+"$@"} + exit $EXIT_FAILURE +} + +# func_fatal_help arg... +# Echo program name prefixed message to standard error, followed by +# a help hint, and exit. +func_fatal_help () +{ + func_error ${1+"$@"} + func_fatal_error "$help" +} +help=3D"Try \`$progname --help' for more information." ## default + + +# func_grep expression filename +# Check whether EXPRESSION matches any line of FILENAME, without output. +func_grep () +{ + $GREP "$1" "$2" >/dev/null 2>&1 +} + + +# func_mkdir_p directory-path +# Make sure the entire path to DIRECTORY-PATH is available. +func_mkdir_p () +{ + my_directory_path=3D"$1" + my_dir_list=3D + + if test -n "$my_directory_path" && test "$opt_dry_run" !=3D ":"; the= n + + # Protect directory names starting with `-' + case $my_directory_path in + -*) my_directory_path=3D"./$my_directory_path" ;; + esac + + # While some portion of DIR does not yet exist... + while test ! -d "$my_directory_path"; do + # ...make a list in topmost first order. Use a colon delimited + # list incase some portion of path contains whitespace. + my_dir_list=3D"$my_directory_path:$my_dir_list" + + # If the last portion added has no slash in it, the list is done + case $my_directory_path in */*) ;; *) break ;; esac + + # ...otherwise throw away the child directory and loop + my_directory_path=3D`$ECHO "X$my_directory_path" | $Xsed -e "$di= rname"` + done + my_dir_list=3D`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'` + + save_mkdir_p_IFS=3D"$IFS"; IFS=3D':' + for my_dir in $my_dir_list; do + IFS=3D"$save_mkdir_p_IFS" + # mkdir can fail with a `File exist' error if two processes + # try to create one of the directories concurrently. Don't + # stop in that case! + $MKDIR "$my_dir" 2>/dev/null || : + done + IFS=3D"$save_mkdir_p_IFS" + + # Bail out if we (or some other process) failed to create a direct= ory. + test -d "$my_directory_path" || \ + func_fatal_error "Failed to create \`$1'" + fi +} + + +# func_mktempdir [string] +# Make a temporary directory that won't clash with other running +# libtool processes, and avoids race conditions if possible. If +# given, STRING is the basename for that directory. +func_mktempdir () +{ + my_template=3D"${TMPDIR-/tmp}/${1-$progname}" + + if test "$opt_dry_run" =3D ":"; then + # Return a directory name, but don't create it in dry-run mode + my_tmpdir=3D"${my_template}-$$" + else + + # If mktemp works, use that first and foremost + my_tmpdir=3D`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null` + + if test ! -d "$my_tmpdir"; then + # Failing that, at least try and use $RANDOM to avoid a race + my_tmpdir=3D"${my_template}-${RANDOM-0}$$" + + save_mktempdir_umask=3D`umask` + umask 0077 + $MKDIR "$my_tmpdir" + umask $save_mktempdir_umask + fi + + # If we're not in dry-run mode, bomb out on failure + test -d "$my_tmpdir" || \ + func_fatal_error "cannot create temporary directory \`$my_tmpdir= '" + fi + + $ECHO "X$my_tmpdir" | $Xsed +} + + +# func_quote_for_eval arg +# Aesthetically quote ARG to be evaled later. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT +# is double-quoted, suitable for a subsequent eval, whereas +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters +# which are still active within double quotes backslashified. +func_quote_for_eval () +{ + case $1 in + *[\\\`\"\$]*) + func_quote_for_eval_unquoted_result=3D`$ECHO "X$1" | $Xsed -e "$sed_quo= te_subst"` ;; + *) + func_quote_for_eval_unquoted_result=3D"$1" ;; + esac + + case $func_quote_for_eval_unquoted_result in + # Double-quote args containing shell metacharacters to delay + # word splitting, command substitution and and variable + # expansion for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_for_eval_result=3D"\"$func_quote_for_eval_unquoted_re= sult\"" + ;; + *) + func_quote_for_eval_result=3D"$func_quote_for_eval_unquoted_resu= lt" + esac +} + + +# func_quote_for_expand arg +# Aesthetically quote ARG to be evaled later; same as above, +# but do not quote variable references. +func_quote_for_expand () +{ + case $1 in + *[\\\`\"]*) + my_arg=3D`$ECHO "X$1" | $Xsed \ + -e "$double_quote_subst" -e "$sed_double_backslash"` ;; + *) + my_arg=3D"$1" ;; + esac + + case $my_arg in + # Double-quote args containing shell metacharacters to delay + # word splitting and command substitution for a subsequent eval. + # Many Bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + my_arg=3D"\"$my_arg\"" + ;; + esac + + func_quote_for_expand_result=3D"$my_arg" +} + + +# func_show_eval cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. +func_show_eval () +{ + my_cmd=3D"$1" + my_fail_exp=3D"${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$my_cmd" + my_status=3D$? + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + +# func_show_eval_locale cmd [fail_exp] +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP +# is given, then evaluate it. Use the saved locale for evaluation. +func_show_eval_locale () +{ + my_cmd=3D"$1" + my_fail_exp=3D"${2-:}" + + ${opt_silent-false} || { + func_quote_for_expand "$my_cmd" + eval "func_echo $func_quote_for_expand_result" + } + + if ${opt_dry_run-false}; then :; else + eval "$lt_user_locale + $my_cmd" + my_status=3D$? + eval "$lt_safe_locale" + if test "$my_status" -eq 0; then :; else + eval "(exit $my_status); $my_fail_exp" + fi + fi +} + + + + + +# func_version +# Echo version message to standard output and exit. +func_version () +{ + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / { + s/^# // + s/^# *$// + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/ + p + }' < "$progpath" + exit $? +} + +# func_usage +# Echo short help message to standard output and exit. +func_usage () +{ + $SED -n '/^# Usage:/,/# -h/ { + s/^# // + s/^# *$// + s/\$progname/'$progname'/ + p + }' < "$progpath" + $ECHO + $ECHO "run \`$progname --help | more' for full usage" + exit $? +} + +# func_help +# Echo long help message to standard output and exit. +func_help () +{ + $SED -n '/^# Usage:/,/# Report bugs to/ { + s/^# // + s/^# *$// + s*\$progname*'$progname'* + s*\$host*'"$host"'* + s*\$SHELL*'"$SHELL"'* + s*\$LTCC*'"$LTCC"'* + s*\$LTCFLAGS*'"$LTCFLAGS"'* + s*\$LD*'"$LD"'* + s/\$with_gnu_ld/'"$with_gnu_ld"'/ + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ + p + }' < "$progpath" + exit $? +} + +# func_missing_arg argname +# Echo program name prefixed message to standard error and set global +# exit_cmd. +func_missing_arg () +{ + func_error "missing argument for $1" + exit_cmd=3Dexit +} + +exit_cmd=3D: + + + + + +# Check that we have a working $ECHO. +if test "X$1" =3D X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift +elif test "X$1" =3D X--fallback-echo; then + # Avoid inline document here, it may be left over + : +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" =3D 'X\t'; then + # Yippee, $ECHO works! + : +else + # Restart under the correct shell, and then maybe $ECHO will work. + exec $SHELL "$progpath" --no-reexec ${1+"$@"} +fi + +if test "X$1" =3D X--fallback-echo; then + # used as fallback echo + shift + cat </dev/null 2>&1; then + taglist=3D"$taglist $tagname" + + # Evaluate the configuration. Be careful to quote the path + # and the sed script, to avoid splitting on whitespace, but + # also don't use non-portable quotes within backquotes within + # quotes we have to do it in 2 steps: + extractedcf=3D`$SED -n -e "$sed_extractcf" < "$progpath"` + eval "$extractedcf" + else + func_error "ignoring unknown tag $tagname" + fi + ;; + esac +} + +# Parse options once, thoroughly. This comes as soon as possible in +# the script to make things like `libtool --version' happen quickly. +{ + + # Shorthand for --mode=3Dfoo, only valid as the first argument + case $1 in + clean|clea|cle|cl) + shift; set dummy --mode clean ${1+"$@"}; shift + ;; + compile|compil|compi|comp|com|co|c) + shift; set dummy --mode compile ${1+"$@"}; shift + ;; + execute|execut|execu|exec|exe|ex|e) + shift; set dummy --mode execute ${1+"$@"}; shift + ;; + finish|finis|fini|fin|fi|f) + shift; set dummy --mode finish ${1+"$@"}; shift + ;; + install|instal|insta|inst|ins|in|i) + shift; set dummy --mode install ${1+"$@"}; shift + ;; + link|lin|li|l) + shift; set dummy --mode link ${1+"$@"}; shift + ;; + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) + shift; set dummy --mode uninstall ${1+"$@"}; shift + ;; + esac + + # Parse non-mode specific arguments: + while test "$#" -gt 0; do + opt=3D"$1" + shift + + case $opt in + --config) func_config ;; + + --debug) preserve_args=3D"$preserve_args $opt" + func_echo "enabling shell trace mode" + opt_debug=3D'set -x' + $opt_debug + ;; + + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break + execute_dlfiles=3D"$execute_dlfiles $1" + shift + ;; + + --dry-run | -n) opt_dry_run=3D: ;; + --features) func_features ;; + --finish) mode=3D"finish" ;; + + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break + case $1 in + # Valid mode arguments: + clean) ;; + compile) ;; + execute) ;; + finish) ;; + install) ;; + link) ;; + relink) ;; + uninstall) ;; + + # Catch anything else as an error + *) func_error "invalid argument for $opt" + exit_cmd=3Dexit + break + ;; + esac + + mode=3D"$1" + shift + ;; + + --preserve-dup-deps) + opt_duplicate_deps=3D: ;; + + --quiet|--silent) preserve_args=3D"$preserve_args $opt" + opt_silent=3D: + ;; + + --verbose| -v) preserve_args=3D"$preserve_args $opt" + opt_silent=3Dfalse + ;; + + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break + preserve_args=3D"$preserve_args $opt $1" + func_enable_tag "$1" # tagname is set here + shift + ;; + + # Separate optargs to long options: + -dlopen=3D*|--mode=3D*|--tag=3D*) + func_opt_split "$opt" + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} + shift + ;; + + -\?|-h) func_usage ;; + --help) opt_help=3D: ;; + --version) func_version ;; + + -*) func_fatal_help "unrecognized option \`$opt'" ;; + + *) nonopt=3D"$opt" + break + ;; + esac + done + + + case $host in + *cygwin* | *mingw* | *pw32* | *cegcc*) + # don't eliminate duplications in $postdeps and $predeps + opt_duplicate_compiler_generated_deps=3D: + ;; + *) + opt_duplicate_compiler_generated_deps=3D$opt_duplicate_deps + ;; + esac + + # Having warned about all mis-specified options, bail out if + # anything was wrong. + $exit_cmd $EXIT_FAILURE +} + +# func_check_version_match +# Ensure that we are using m4 macros, and libtool script from the same +# release of libtool. +func_check_version_match () +{ + if test "$package_revision" !=3D "$macro_revision"; then + if test "$VERSION" !=3D "$macro_version"; then + if test -z "$macro_version"; then + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from an older release. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VER= SION +$progname: and run autoconf again. +_LT_EOF + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version= . +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VER= SION +$progname: and run autoconf again. +_LT_EOF + fi + else + cat >&2 <<_LT_EOF +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision = $package_revision, +$progname: but the definition of this LT_INIT comes from revision $macro= _revision. +$progname: You should recreate aclocal.m4 with macros from revision $pac= kage_revision +$progname: of $PACKAGE $VERSION and run autoconf again. +_LT_EOF + fi + + exit $EXIT_MISMATCH + fi +} + + +## ----------- ## +## Main. ## +## ----------- ## + +$opt_help || { + # Sanity checks first: + func_check_version_match + + if test "$build_libtool_libs" !=3D yes && test "$build_old_libs" !=3D = yes; then + func_fatal_configuration "not configured to build any kind of librar= y" + fi + + test -z "$mode" && func_fatal_error "error: you must specify a MODE." + + + # Darwin sucks + eval std_shrext=3D\"$shrext_cmds\" + + + # Only execute mode is allowed to have -dlopen flags. + if test -n "$execute_dlfiles" && test "$mode" !=3D execute; then + func_error "unrecognized option \`-dlopen'" + $ECHO "$help" 1>&2 + exit $EXIT_FAILURE + fi + + # Change the help message to a mode-specific one. + generic_help=3D"$help" + help=3D"Try \`$progname --help --mode=3D$mode' for more information." +} + + +# func_lalib_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_lalib_p () +{ + test -f "$1" && + $SED -e 4q "$1" 2>/dev/null \ + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1 +} + +# func_lalib_unsafe_p file +# True iff FILE is a libtool `.la' library or `.lo' object file. +# This function implements the same check as func_lalib_p without +# resorting to external programs. To this end, it redirects stdin and +# closes it afterwards, without saving the original file descriptor. +# As a safety measure, use it only where a negative result would be +# fatal anyway. Works if `file' does not exist. +func_lalib_unsafe_p () +{ + lalib_p=3Dno + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then + for lalib_p_l in 1 2 3 4 + do + read lalib_p_line + case "$lalib_p_line" in + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=3Dyes; break;; + esac + done + exec 0<&5 5<&- + fi + test "$lalib_p" =3D yes +} + +# func_ltwrapper_script_p file +# True iff FILE is a libtool wrapper script +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_script_p () +{ + func_lalib_p "$1" +} + +# func_ltwrapper_executable_p file +# True iff FILE is a libtool wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_executable_p () +{ + func_ltwrapper_exec_suffix=3D + case $1 in + *.exe) ;; + *) func_ltwrapper_exec_suffix=3D.exe ;; + esac + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1 +} + +# func_ltwrapper_scriptname file +# Assumes file is an ltwrapper_executable +# uses $file to determine the appropriate filename for a +# temporary ltwrapper_script. +func_ltwrapper_scriptname () +{ + func_ltwrapper_scriptname_result=3D"" + if func_ltwrapper_executable_p "$1"; then + func_dirname_and_basename "$1" "" "." + func_stripname '' '.exe' "$func_basename_result" + func_ltwrapper_scriptname_result=3D"$func_dirname_result/$objdir/${func= _stripname_result}_ltshwrapper" + fi +} + +# func_ltwrapper_p file +# True iff FILE is a libtool wrapper script or wrapper executable +# This function is only a basic sanity check; it will hardly flush out +# determined imposters. +func_ltwrapper_p () +{ + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1" +} + + +# func_execute_cmds commands fail_cmd +# Execute tilde-delimited COMMANDS. +# If FAIL_CMD is given, eval that upon failure. +# FAIL_CMD may read-access the current command in variable CMD! +func_execute_cmds () +{ + $opt_debug + save_ifs=3D$IFS; IFS=3D'~' + for cmd in $1; do + IFS=3D$save_ifs + eval cmd=3D\"$cmd\" + func_show_eval "$cmd" "${2-:}" + done + IFS=3D$save_ifs +} + + +# func_source file +# Source FILE, adding directory component if necessary. +# Note that it is not necessary on cygwin/mingw to append a dot to +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe +# behavior happens only for exec(3), not for open(2)! Also, sourcing +# `FILE.' does not work on cygwin managed mounts. +func_source () +{ + $opt_debug + case $1 in + */* | *\\*) . "$1" ;; + *) . "./$1" ;; + esac +} + + +# func_infer_tag arg +# Infer tagged configuration to use if any are available and +# if one wasn't chosen via the "--tag" command line option. +# Only attempt this if the compiler in the base compile +# command doesn't match the default compiler. +# arg is usually of the form 'gcc ...' +func_infer_tag () +{ + $opt_debug + if test -n "$available_tags" && test -z "$tagname"; then + CC_quoted=3D + for arg in $CC; do + func_quote_for_eval "$arg" + CC_quoted=3D"$CC_quoted $func_quote_for_eval_result" + done + case $@ in + # Blanks in the command may have been stripped by the calling shel= l, + # but not from the CC environment variable when configure was run. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_qu= oted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "= *) ;; + # Blanks at the start of $base_compile will cause this to fail + # if we don't check for them as well. + *) + for z in $available_tags; do + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/= null; then + # Evaluate the configuration. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# #= ## END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`" + CC_quoted=3D + for arg in $CC; do + # Double-quote args containing other shell metacharacters. + func_quote_for_eval "$arg" + CC_quoted=3D"$CC_quoted $func_quote_for_eval_result" + done + case "$@ " in + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_q= uoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` = "*) + # The compiler in the base compile command matches + # the one in the tagged configuration. + # Assume this is the tagged configuration we want. + tagname=3D$z + break + ;; + esac + fi + done + # If $tagname still isn't set, then no tagged configuration + # was found and let the user know that the "--tag" command + # line option must be used. + if test -z "$tagname"; then + func_echo "unable to infer tagged configuration" + func_fatal_error "specify a tag with \`--tag'" +# else +# func_verbose "using $tagname tagged configuration" + fi + ;; + esac + fi +} + + + +# func_write_libtool_object output_name pic_name nonpic_name +# Create a libtool object file (analogous to a ".la" file), +# but don't create it if we're doing a dry run. +func_write_libtool_object () +{ + write_libobj=3D${1} + if test "$build_libtool_libs" =3D yes; then + write_lobj=3D\'${2}\' + else + write_lobj=3Dnone + fi + + if test "$build_old_libs" =3D yes; then + write_oldobj=3D\'${3}\' + else + write_oldobj=3Dnone + fi + + $opt_dry_run || { + cat >${write_libobj}T <?"'"'"' &()|`$[]' \ + && func_warning "libobj name \`$libobj' may not contain shell spec= ial characters." + func_dirname_and_basename "$obj" "/" "" + objname=3D"$func_basename_result" + xdir=3D"$func_dirname_result" + lobj=3D${xdir}$objdir/$objname + + test -z "$base_compile" && \ + func_fatal_help "you must specify a compilation command" + + # Delete any leftover library objects. + if test "$build_old_libs" =3D yes; then + removelist=3D"$obj $lobj $libobj ${libobj}T" + else + removelist=3D"$lobj $libobj ${libobj}T" + fi + + # On Cygwin there's no "real" PIC flag so we must build both object = types + case $host_os in + cygwin* | mingw* | pw32* | os2* | cegcc*) + pic_mode=3Ddefault + ;; + esac + if test "$pic_mode" =3D no && test "$deplibs_check_method" !=3D pass= _all; then + # non-PIC code in shared libraries is not supported + pic_mode=3Ddefault + fi + + # Calculate the filename of the output object if compiler does + # not support -o with -c + if test "$compiler_c_o" =3D no; then + output_obj=3D`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]= *$%%'`.${objext} + lockfile=3D"$output_obj.lock" + else + output_obj=3D + need_locks=3Dno + lockfile=3D + fi + + # Lock this critical section if it is needed + # We use this script file to make the link, it avoids creating a new= file + if test "$need_locks" =3D yes; then + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do + func_echo "Waiting for $lockfile to be removed" + sleep 2 + done + elif test "$need_locks" =3D warn; then + if test -f "$lockfile"; then + $ECHO "\ +*** ERROR, $lockfile exists and contains: +`cat $lockfile 2>/dev/null` + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + removelist=3D"$removelist $output_obj" + $ECHO "$srcfile" > "$lockfile" + fi + + $opt_dry_run || $RM $removelist + removelist=3D"$removelist $lockfile" + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 + + if test -n "$fix_srcfile_path"; then + eval srcfile=3D\"$fix_srcfile_path\" + fi + func_quote_for_eval "$srcfile" + qsrcfile=3D$func_quote_for_eval_result + + # Only build a PIC object if we are building libtool libraries. + if test "$build_libtool_libs" =3D yes; then + # Without this assignment, base_compile gets emptied. + fbsd_hideous_sh_bug=3D$base_compile + + if test "$pic_mode" !=3D no; then + command=3D"$base_compile $qsrcfile $pic_flag" + else + # Don't build PIC code + command=3D"$base_compile $qsrcfile" + fi + + func_mkdir_p "$xdir$objdir" + + if test -z "$output_obj"; then + # Place PIC objects in $objdir + command=3D"$command -o $lobj" + fi + + func_show_eval_locale "$command" \ + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" =3D warn && + test "X`cat $lockfile 2>/dev/null`" !=3D "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed, then go on to compile the next o= ne + if test -n "$output_obj" && test "X$output_obj" !=3D "X$lobj"; the= n + func_show_eval '$MV "$output_obj" "$lobj"' \ + 'error=3D$?; $opt_dry_run || $RM $removelist; exit $error' + fi + + # Allow error messages only from the first compilation. + if test "$suppress_opt" =3D yes; then + suppress_output=3D' >/dev/null 2>&1' + fi + fi + + # Only build a position-dependent object if we build old libraries. + if test "$build_old_libs" =3D yes; then + if test "$pic_mode" !=3D yes; then + # Don't build PIC code + command=3D"$base_compile $qsrcfile$pie_flag" + else + command=3D"$base_compile $qsrcfile $pic_flag" + fi + if test "$compiler_c_o" =3D yes; then + command=3D"$command -o $obj" + fi + + # Suppress compiler output if we already did a PIC compilation. + command=3D"$command$suppress_output" + func_show_eval_locale "$command" \ + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' + + if test "$need_locks" =3D warn && + test "X`cat $lockfile 2>/dev/null`" !=3D "X$srcfile"; then + $ECHO "\ +*** ERROR, $lockfile contains: +`cat $lockfile 2>/dev/null` + +but it should contain: +$srcfile + +This indicates that another process is trying to use the same +temporary object file, and libtool could not work around it because +your compiler does not support \`-c' and \`-o' together. If you +repeat this compilation, it may succeed, by chance, but you had better +avoid parallel builds (make -j) in this platform, or get a better +compiler." + + $opt_dry_run || $RM $removelist + exit $EXIT_FAILURE + fi + + # Just move the object if needed + if test -n "$output_obj" && test "X$output_obj" !=3D "X$obj"; then + func_show_eval '$MV "$output_obj" "$obj"' \ + 'error=3D$?; $opt_dry_run || $RM $removelist; exit $error' + fi + fi + + $opt_dry_run || { + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname" + + # Unlock the critical section if it was locked + if test "$need_locks" !=3D no; then + removelist=3D$lockfile + $RM "$lockfile" + fi + } + + exit $EXIT_SUCCESS +} + +$opt_help || { +test "$mode" =3D compile && func_mode_compile ${1+"$@"} +} + +func_mode_help () +{ + # We need to display help for each of the modes. + case $mode in + "") + # Generic help is extracted from the usage comments + # at the start of this file. + func_help + ;; + + clean) + $ECHO \ +"Usage: $progname [OPTION]... --mode=3Dclean RM [RM-OPTION]... FILE... + +Remove files from the build directory. + +RM is the name of the program to use to delete files associated with eac= h FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be pa= ssed +to RM. + +If FILE is a libtool library, object or program, all the files associate= d +with it are deleted. Otherwise, only FILE itself is deleted using RM." + ;; + + compile) + $ECHO \ +"Usage: $progname [OPTION]... --mode=3Dcompile COMPILE-COMMAND... SOURCE= FILE + +Compile a source file into a libtool library object. + +This mode accepts the following additional options: + + -o OUTPUT-FILE set the output file name to OUTPUT-FILE + -no-suppress do not suppress compiler output for multiple passes + -prefer-pic try to building PIC objects only + -prefer-non-pic try to building non-PIC objects only + -shared do not build a \`.o' file suitable for static linkin= g + -static only build a \`.o' file suitable for static linking + +COMPILE-COMMAND is a command to be used in creating a \`standard' object= file +from the given SOURCEFILE. + +The output file name is determined by removing the directory component f= rom +SOURCEFILE, then substituting the C source code suffix \`.c' with the +library object suffix, \`.lo'." + ;; + + execute) + $ECHO \ +"Usage: $progname [OPTION]... --mode=3Dexecute COMMAND [ARGS]... + +Automatically set library path, then run a program. + +This mode accepts the following additional options: + + -dlopen FILE add the directory containing FILE to the library pat= h + +This mode sets the library path environment variable according to \`-dlo= pen' +flags. + +If any of the ARGS are libtool executable wrappers, then they are transl= ated +into their corresponding uninstalled binary, and any of their required l= ibrary +directories are added to the library path. + +Then, COMMAND is executed, with ARGS as arguments." + ;; + + finish) + $ECHO \ +"Usage: $progname [OPTION]... --mode=3Dfinish [LIBDIR]... + +Complete the installation of libtool libraries. + +Each LIBDIR is a directory that contains libtool libraries. + +The commands that this mode executes may require superuser privileges. = Use +the \`--dry-run' option if you just want to see what would be executed." + ;; + + install) + $ECHO \ +"Usage: $progname [OPTION]... --mode=3Dinstall INSTALL-COMMAND... + +Install executables or libraries. + +INSTALL-COMMAND is the installation command. The first component should= be +either the \`install' or \`cp' program. + +The following components of INSTALL-COMMAND are treated specially: + + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installa= tion + +The rest of the components are interpreted as arguments to that command = (only +BSD-compatible install options are recognized)." + ;; + + link) + $ECHO \ +"Usage: $progname [OPTION]... --mode=3Dlink LINK-COMMAND... + +Link object files or libraries together to form another library, or to +create an executable program. + +LINK-COMMAND is a command using the C compiler that you would use to cre= ate +a program from several object files. + +The following components of LINK-COMMAND are treated specially: + + -all-static do not do any dynamic linking at all + -avoid-version do not add a version suffix if possible + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runti= me + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_sym= bols + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with d= lsym(3) + -export-symbols SYMFILE + try to export only the symbols listed in SYMFILE + -export-symbols-regex REGEX + try to export only the symbols matching REGEX + -LLIBDIR search LIBDIR for required installed libraries + -lNAME OUTPUT-FILE requires the installed library libNAME + -module build a library that can dlopened + -no-fast-install disable the fast-install mode + -no-install link a not-installable executable + -no-undefined declare that a library does not refer to external sy= mbols + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects + -objectlist FILE Use a list of object files found in FILE to specify = objects + -precious-files-regex REGEX + don't remove output files matching REGEX + -release RELEASE specify package release information + -rpath LIBDIR the created library will eventually be installed in = LIBDIR + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libra= ries + -shared only do dynamic linking of libtool libraries + -shrext SUFFIX override the standard shared library file extension + -static do not do any dynamic linking of uninstalled libtool= libraries + -static-libtool-libs + do not do any dynamic linking of libtool libraries + -version-info CURRENT[:REVISION[:AGE]] + specify library version info [each variable defaults= to 0] + -weak LIBNAME declare that the target provides the LIBNAME interfa= ce + +All other options (arguments beginning with \`-') are ignored. + +Every other argument is treated as a filename. Files ending in \`.la' a= re +treated as uninstalled libtool libraries, other files are standard or li= brary +object files. + +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, +only library objects (\`.lo' files) may be specified, and \`-rpath' is +required, except when creating a convenience library. + +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is crea= ted +using \`ar' and \`ranlib', or on Windows using \`lib'. + +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object= file +is created, otherwise an executable program is created." + ;; + + uninstall) + $ECHO \ +"Usage: $progname [OPTION]... --mode=3Duninstall RM [RM-OPTION]... FILE.= .. + +Remove libraries from an installation directory. + +RM is the name of the program to use to delete files associated with eac= h FILE +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be pa= ssed +to RM. + +If FILE is a libtool library, all the files associated with it are delet= ed. +Otherwise, only FILE itself is deleted using RM." + ;; + + *) + func_fatal_help "invalid operation mode \`$mode'" + ;; + esac + + $ECHO + $ECHO "Try \`$progname --help' for more information about other mode= s." + + exit $? +} + + # Now that we've collected a possible --mode arg, show help if necessa= ry + $opt_help && func_mode_help + + +# func_mode_execute arg... +func_mode_execute () +{ + $opt_debug + # The first argument is the command name. + cmd=3D"$nonopt" + test -z "$cmd" && \ + func_fatal_help "you must specify a COMMAND" + + # Handle -dlopen flags immediately. + for file in $execute_dlfiles; do + test -f "$file" \ + || func_fatal_help "\`$file' is not a file" + + dir=3D + case $file in + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$lib' is not a valid libtool archive" + + # Read the libtool library. + dlname=3D + library_names=3D + func_source "$file" + + # Skip this library if it cannot be dlopened. + if test -z "$dlname"; then + # Warn if it was a shared library. + test -n "$library_names" && \ + func_warning "\`$file' was not linked with \`-export-dynamic'" + continue + fi + + func_dirname "$file" "" "." + dir=3D"$func_dirname_result" + + if test -f "$dir/$objdir/$dlname"; then + dir=3D"$dir/$objdir" + else + if test ! -f "$dir/$dlname"; then + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objd= ir'" + fi + fi + ;; + + *.lo) + # Just add the directory containing the .lo file. + func_dirname "$file" "" "." + dir=3D"$func_dirname_result" + ;; + + *) + func_warning "\`-dlopen' is ignored for non-libtool libraries and objec= ts" + continue + ;; + esac + + # Get the absolute pathname. + absdir=3D`cd "$dir" && pwd` + test -n "$absdir" && dir=3D"$absdir" + + # Now add the directory to shlibpath_var. + if eval "test -z \"\$$shlibpath_var\""; then + eval "$shlibpath_var=3D\"\$dir\"" + else + eval "$shlibpath_var=3D\"\$dir:\$$shlibpath_var\"" + fi + done + + # This variable tells wrapper scripts just to set shlibpath_var + # rather than running their programs. + libtool_execute_magic=3D"$magic" + + # Check if any of the arguments is a wrapper script. + args=3D + for file + do + case $file in + -*) ;; + *) + # Do a test to see if this is really a libtool program. + if func_ltwrapper_script_p "$file"; then + func_source "$file" + # Transform arg to wrapped name. + file=3D"$progdir/$program" + elif func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + func_source "$func_ltwrapper_scriptname_result" + # Transform arg to wrapped name. + file=3D"$progdir/$program" + fi + ;; + esac + # Quote arguments (to preserve shell metacharacters). + func_quote_for_eval "$file" + args=3D"$args $func_quote_for_eval_result" + done + + if test "X$opt_dry_run" =3D Xfalse; then + if test -n "$shlibpath_var"; then + # Export the shlibpath_var. + eval "export $shlibpath_var" + fi + + # Restore saved environment variables + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES + do + eval "if test \"\${save_$lt_var+set}\" =3D set; then + $lt_var=3D\$save_$lt_var; export $lt_var + else + $lt_unset $lt_var + fi" + done + + # Now prepare to actually exec the command. + exec_cmd=3D"\$cmd$args" + else + # Display what would be done. + if test -n "$shlibpath_var"; then + eval "\$ECHO \"\$shlibpath_var=3D\$$shlibpath_var\"" + $ECHO "export $shlibpath_var" + fi + $ECHO "$cmd$args" + exit $EXIT_SUCCESS + fi +} + +test "$mode" =3D execute && func_mode_execute ${1+"$@"} + + +# func_mode_finish arg... +func_mode_finish () +{ + $opt_debug + libdirs=3D"$nonopt" + admincmds=3D + + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then + for dir + do + libdirs=3D"$libdirs $dir" + done + + for libdir in $libdirs; do + if test -n "$finish_cmds"; then + # Do each command in the finish commands. + func_execute_cmds "$finish_cmds" 'admincmds=3D"$admincmds +'"$cmd"'"' + fi + if test -n "$finish_eval"; then + # Do the single finish_eval. + eval cmds=3D\"$finish_eval\" + $opt_dry_run || eval "$cmds" || admincmds=3D"$admincmds + $cmds" + fi + done + fi + + # Exit here if they wanted silent mode. + $opt_silent && exit $EXIT_SUCCESS + + $ECHO "X------------------------------------------------------------= ----------" | $Xsed + $ECHO "Libraries have been installed in:" + for libdir in $libdirs; do + $ECHO " $libdir" + done + $ECHO + $ECHO "If you ever happen to want to link against installed librarie= s" + $ECHO "in a given directory, LIBDIR, you must either use libtool, an= d" + $ECHO "specify the full pathname of the library, or use the \`-LLIBD= IR'" + $ECHO "flag during linking and do at least one of the following:" + if test -n "$shlibpath_var"; then + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variab= le" + $ECHO " during execution" + fi + if test -n "$runpath_var"; then + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable= " + $ECHO " during linking" + fi + if test -n "$hardcode_libdir_flag_spec"; then + libdir=3DLIBDIR + eval flag=3D\"$hardcode_libdir_flag_spec\" + + $ECHO " - use the \`$flag' linker flag" + fi + if test -n "$admincmds"; then + $ECHO " - have your system administrator run these commands:$adm= incmds" + fi + if test -f /etc/ld.so.conf; then + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld= .so.conf'" + fi + $ECHO + + $ECHO "See any operating system documentation about shared libraries= for" + case $host in + solaris2.[6789]|solaris2.1[0-9]) + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8)= manual" + $ECHO "pages." + ;; + *) + $ECHO "more information, such as the ld(1) and ld.so(8) manual p= ages." + ;; + esac + $ECHO "X------------------------------------------------------------= ----------" | $Xsed + exit $EXIT_SUCCESS +} + +test "$mode" =3D finish && func_mode_finish ${1+"$@"} + + +# func_mode_install arg... +func_mode_install () +{ + $opt_debug + # There may be an optional sh(1) argument at the beginning of + # install_prog (especially on Windows NT). + if test "$nonopt" =3D "$SHELL" || test "$nonopt" =3D /bin/sh || + # Allow the use of GNU shtool's install command. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then + # Aesthetically quote it. + func_quote_for_eval "$nonopt" + install_prog=3D"$func_quote_for_eval_result " + arg=3D$1 + shift + else + install_prog=3D + arg=3D$nonopt + fi + + # The real first argument should be the name of the installation pro= gram. + # Aesthetically quote it. + func_quote_for_eval "$arg" + install_prog=3D"$install_prog$func_quote_for_eval_result" + + # We need to accept at least all the BSD install flags. + dest=3D + files=3D + opts=3D + prev=3D + install_type=3D + isdir=3Dno + stripme=3D + for arg + do + if test -n "$dest"; then + files=3D"$files $dest" + dest=3D$arg + continue + fi + + case $arg in + -d) isdir=3Dyes ;; + -f) + case " $install_prog " in + *[\\\ /]cp\ *) ;; + *) prev=3D$arg ;; + esac + ;; + -g | -m | -o) + prev=3D$arg + ;; + -s) + stripme=3D" -s" + continue + ;; + -*) + ;; + *) + # If the previous option needed an argument, then skip it. + if test -n "$prev"; then + prev=3D + else + dest=3D$arg + continue + fi + ;; + esac + + # Aesthetically quote the argument. + func_quote_for_eval "$arg" + install_prog=3D"$install_prog $func_quote_for_eval_result" + done + + test -z "$install_prog" && \ + func_fatal_help "you must specify an install program" + + test -n "$prev" && \ + func_fatal_help "the \`$prev' option requires an argument" + + if test -z "$files"; then + if test -z "$dest"; then + func_fatal_help "no file or destination specified" + else + func_fatal_help "you must specify a destination" + fi + fi + + # Strip any trailing slash from the destination. + func_stripname '' '/' "$dest" + dest=3D$func_stripname_result + + # Check to see that the destination is a directory. + test -d "$dest" && isdir=3Dyes + if test "$isdir" =3D yes; then + destdir=3D"$dest" + destname=3D + else + func_dirname_and_basename "$dest" "" "." + destdir=3D"$func_dirname_result" + destname=3D"$func_basename_result" + + # Not a directory, so check to see that there is only one file spe= cified. + set dummy $files; shift + test "$#" -gt 1 && \ + func_fatal_help "\`$dest' is not a directory" + fi + case $destdir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + for file in $files; do + case $file in + *.lo) ;; + *) + func_fatal_help "\`$destdir' must be an absolute directory name" + ;; + esac + done + ;; + esac + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic=3D"$magic" + + staticlibs=3D + future_libdirs=3D + current_libdirs=3D + for file in $files; do + + # Do each installation. + case $file in + *.$libext) + # Do the static libraries later. + staticlibs=3D"$staticlibs $file" + ;; + + *.la) + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$file" \ + || func_fatal_help "\`$file' is not a valid libtool archive" + + library_names=3D + old_library=3D + relink_command=3D + func_source "$file" + + # Add the libdir to current_libdirs if it is the destination. + if test "X$destdir" =3D "X$libdir"; then + case "$current_libdirs " in + *" $libdir "*) ;; + *) current_libdirs=3D"$current_libdirs $libdir" ;; + esac + else + # Note the libdir as a future libdir. + case "$future_libdirs " in + *" $libdir "*) ;; + *) future_libdirs=3D"$future_libdirs $libdir" ;; + esac + fi + + func_dirname "$file" "/" "" + dir=3D"$func_dirname_result" + dir=3D"$dir$objdir" + + if test -n "$relink_command"; then + # Determine the prefix the user has applied to our future dir. + inst_prefix_dir=3D`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"` + + # Don't allow the user to place us outside of our expected + # location b/c this prevents finding dependent libraries that + # are installed to the same prefix. + # At present, this check doesn't affect windows .dll's that + # are installed into $libdir/../bin (currently, that works fine) + # but it's something to keep an eye on. + test "$inst_prefix_dir" =3D "$destdir" && \ + func_fatal_error "error: cannot install \`$file' to a directory not= ending in $libdir" + + if test -n "$inst_prefix_dir"; then + # Stick the inst_prefix_dir data into the link command. + relink_command=3D`$ECHO "X$relink_command" | $Xsed -e "s%@inst_pref= ix_dir@%-inst-prefix-dir $inst_prefix_dir%"` + else + relink_command=3D`$ECHO "X$relink_command" | $Xsed -e "s%@inst_pref= ix_dir@%%"` + fi + + func_warning "relinking \`$file'" + func_show_eval "$relink_command" \ + 'func_fatal_error "error: relink \`$file'\'' with the above command= before installing it"' + fi + + # See the names of the shared library. + set dummy $library_names; shift + if test -n "$1"; then + realname=3D"$1" + shift + + srcname=3D"$realname" + test -n "$relink_command" && srcname=3D"$realname"T + + # Install the shared library and build the symlinks. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \ + 'exit $?' + tstripme=3D"$stripme" + case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + case $realname in + *.dll.a) + tstripme=3D"" + ;; + esac + ;; + esac + if test -n "$tstripme" && test -n "$striplib"; then + func_show_eval "$striplib $destdir/$realname" 'exit $?' + fi + + if test "$#" -gt 0; then + # Delete the old symlinks, and create new ones. + # Try `ln -sf' first, because the `ln' binary might depend on + # the symlink we replace! Solaris /bin/ln does not understand -f, + # so we also need to try rm && ln -s. + for linkname + do + test "$linkname" !=3D "$realname" \ + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || {= $RM $linkname && $LN_S $realname $linkname; }; })" + done + fi + + # Do each command in the postinstall commands. + lib=3D"$destdir/$realname" + func_execute_cmds "$postinstall_cmds" 'exit $?' + fi + + # Install the pseudo-library for information purposes. + func_basename "$file" + name=3D"$func_basename_result" + instname=3D"$dir/$name"i + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' + + # Maybe install the static library, too. + test -n "$old_library" && staticlibs=3D"$staticlibs $dir/$old_library" + ;; + + *.lo) + # Install (i.e. copy) a libtool object. + + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=3D"$destdir/$destname" + else + func_basename "$file" + destfile=3D"$func_basename_result" + destfile=3D"$destdir/$destfile" + fi + + # Deduce the name of the destination old-style object file. + case $destfile in + *.lo) + func_lo2o "$destfile" + staticdest=3D$func_lo2o_result + ;; + *.$objext) + staticdest=3D"$destfile" + destfile=3D + ;; + *) + func_fatal_help "cannot copy a libtool object to \`$destfile'" + ;; + esac + + # Install the libtool object if requested. + test -n "$destfile" && \ + func_show_eval "$install_prog $file $destfile" 'exit $?' + + # Install the old object if enabled. + if test "$build_old_libs" =3D yes; then + # Deduce the name of the old-style object file. + func_lo2o "$file" + staticobj=3D$func_lo2o_result + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?' + fi + exit $EXIT_SUCCESS + ;; + + *) + # Figure out destination file name, if it wasn't already specified. + if test -n "$destname"; then + destfile=3D"$destdir/$destname" + else + func_basename "$file" + destfile=3D"$func_basename_result" + destfile=3D"$destdir/$destfile" + fi + + # If the file is missing, and there is a .exe on the end, strip it + # because it is most likely a libtool script we actually want to + # install + stripped_ext=3D"" + case $file in + *.exe) + if test ! -f "$file"; then + func_stripname '' '.exe' "$file" + file=3D$func_stripname_result + stripped_ext=3D".exe" + fi + ;; + esac + + # Do a test to see if this is really a libtool program. + case $host in + *cygwin* | *mingw*) + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + wrapper=3D$func_ltwrapper_scriptname_result + else + func_stripname '' '.exe' "$file" + wrapper=3D$func_stripname_result + fi + ;; + *) + wrapper=3D$file + ;; + esac + if func_ltwrapper_script_p "$wrapper"; then + notinst_deplibs=3D + relink_command=3D + + func_source "$wrapper" + + # Check the variables that should have been set. + test -z "$generated_by_libtool_version" && \ + func_fatal_error "invalid libtool wrapper script \`$wrapper'" + + finalize=3Dyes + for lib in $notinst_deplibs; do + # Check to see that each library is installed. + libdir=3D + if test -f "$lib"; then + func_source "$lib" + fi + libfile=3D"$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### test= suite: skip nested quoting test + if test -n "$libdir" && test ! -f "$libfile"; then + func_warning "\`$lib' has not been installed in \`$libdir'" + finalize=3Dno + fi + done + + relink_command=3D + func_source "$wrapper" + + outputname=3D + if test "$fast_install" =3D no && test -n "$relink_command"; then + $opt_dry_run || { + if test "$finalize" =3D yes; then + tmpdir=3D`func_mktempdir` + func_basename "$file$stripped_ext" + file=3D"$func_basename_result" + outputname=3D"$tmpdir/$file" + # Replace the output file specification. + relink_command=3D`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPU= T@%'"$outputname"'%g'` + + $opt_silent || { + func_quote_for_expand "$relink_command" + eval "func_echo $func_quote_for_expand_result" + } + if eval "$relink_command"; then : + else + func_error "error: relink \`$file' with the above command before ins= talling it" + $opt_dry_run || ${RM}r "$tmpdir" + continue + fi + file=3D"$outputname" + else + func_warning "cannot relink \`$file'" + fi + } + else + # Install the binary that we compiled earlier. + file=3D`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdi= r/\1%"` + fi + fi + + # remove .exe since cygwin /usr/bin/install will append another + # one anyway + case $install_prog,$host in + */usr/bin/install*,*cygwin*) + case $file:$destfile in + *.exe:*.exe) + # this is ok + ;; + *.exe:*) + destfile=3D$destfile.exe + ;; + *:*.exe) + func_stripname '' '.exe' "$destfile" + destfile=3D$func_stripname_result + ;; + esac + ;; + esac + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?' + $opt_dry_run || if test -n "$outputname"; then + ${RM}r "$tmpdir" + fi + ;; + esac + done + + for file in $staticlibs; do + func_basename "$file" + name=3D"$func_basename_result" + + # Set up the ranlib parameters. + oldlib=3D"$destdir/$name" + + func_show_eval "$install_prog \$file \$oldlib" 'exit $?' + + if test -n "$stripme" && test -n "$old_striplib"; then + func_show_eval "$old_striplib $oldlib" 'exit $?' + fi + + # Do each command in the postinstall commands. + func_execute_cmds "$old_postinstall_cmds" 'exit $?' + done + + test -n "$future_libdirs" && \ + func_warning "remember to run \`$progname --finish$future_libdirs'= " + + if test -n "$current_libdirs"; then + # Maybe just do a dry run. + $opt_dry_run && current_libdirs=3D" -n$current_libdirs" + exec_cmd=3D'$SHELL $progpath $preserve_args --finish$current_libdi= rs' + else + exit $EXIT_SUCCESS + fi +} + +test "$mode" =3D install && func_mode_install ${1+"$@"} + + +# func_generate_dlsyms outputname originator pic_p +# Extract symbols from dlprefiles and create ${outputname}S.o with +# a dlpreopen symbol table. +func_generate_dlsyms () +{ + $opt_debug + my_outputname=3D"$1" + my_originator=3D"$2" + my_pic_p=3D"${3-no}" + my_prefix=3D`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'` + my_dlsyms=3D + + if test -n "$dlfiles$dlprefiles" || test "$dlself" !=3D no; then + if test -n "$NM" && test -n "$global_symbol_pipe"; then + my_dlsyms=3D"${my_outputname}S.c" + else + func_error "not configured to extract global symbols from dlpreopened f= iles" + fi + fi + + if test -n "$my_dlsyms"; then + case $my_dlsyms in + "") ;; + *.c) + # Discover the nlist of each of the dlfiles. + nlist=3D"$output_objdir/${my_outputname}.nm" + + func_show_eval "$RM $nlist ${nlist}S ${nlist}T" + + # Parse the name list into a source file. + func_verbose "creating $output_objdir/$my_dlsyms" + + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\ +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emul= ation. */ +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */ + +#ifdef __cplusplus +extern \"C\" { +#endif + +/* External symbol declarations for the compiler. */\ +" + + if test "$dlself" =3D yes; then + func_verbose "generating symbol list for \`$output'" + + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist" + + # Add our own program objects to the symbol list. + progfiles=3D`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" |= $NL2SP` + for progfile in $progfiles; do + func_verbose "extracting global C symbols from \`$progfile'" + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlis= t'" + done + + if test -n "$exclude_expsyms"; then + $opt_dry_run || { + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + if test -n "$export_symbols_regex"; then + $opt_dry_run || { + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T' + eval '$MV "$nlist"T "$nlist"' + } + fi + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + export_symbols=3D"$output_objdir/$outputname.exp" + $opt_dry_run || { + $RM $export_symbols + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'= < "$nlist" > "$export_symbols"' + case $host in + *cygwin* | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$export_symbols" >> "$output_objdir/$outputna= me.def"' + ;; + esac + } + else + $opt_dry_run || { + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'= "' < "$export_symbols" > "$output_objdir/$outputname.exp"' + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nl= ist"T' + eval '$MV "$nlist"T "$nlist"' + case $host in + *cygwin | *mingw* | *cegcc* ) + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"' + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"' + ;; + esac + } + fi + fi + + for dlprefile in $dlprefiles; do + func_verbose "extracting global C symbols from \`$dlprefile'" + func_basename "$dlprefile" + name=3D"$func_basename_result" + $opt_dry_run || { + eval '$ECHO ": $name " >> "$nlist"' + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" + } + done + + $opt_dry_run || { + # Make sure we have at least an empty file. + test -f "$nlist" || : > "$nlist" + + if test -n "$exclude_expsyms"; then + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T + $MV "$nlist"T "$nlist" + fi + + # Try sorting and uniquifying the output. + if $GREP -v "^: " < "$nlist" | + if sort -k 3 /dev/null 2>&1; then + sort -k 3 + else + sort +2 + fi | + uniq > "$nlist"S; then + : + else + $GREP -v "^: " < "$nlist" > "$nlist"S + fi + + if test -f "$nlist"S; then + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_= dlsyms"' + else + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms" + fi + + $ECHO >> "$output_objdir/$my_dlsyms" "\ + +/* The mapping between symbol names and symbols. */ +typedef struct { + const char *name; + void *address; +} lt_dlsymlist; +" + case $host in + *cygwin* | *mingw* | *cegcc* ) + $ECHO >> "$output_objdir/$my_dlsyms" "\ +/* DATA imports from DLLs on WIN32 con't be const, because + runtime relocations are performed -- see ld's documentation + on pseudo-relocs. */" + lt_dlsym_const=3D ;; + *osf5*) + echo >> "$output_objdir/$my_dlsyms" "\ +/* This system does not cope well with relocations in const data */" + lt_dlsym_const=3D ;; + *) + lt_dlsym_const=3Dconst ;; + esac + + $ECHO >> "$output_objdir/$my_dlsyms" "\ +extern $lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[]; +$lt_dlsym_const lt_dlsymlist +lt_${my_prefix}_LTX_preloaded_symbols[] =3D +{\ + { \"$my_originator\", (void *) 0 }," + + case $need_lib_prefix in + no) + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objd= ir/$my_dlsyms" + ;; + *) + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$= output_objdir/$my_dlsyms" + ;; + esac + $ECHO >> "$output_objdir/$my_dlsyms" "\ + {0, (void *) 0} +}; + +/* This works around a problem in FreeBSD linker */ +#ifdef FREEBSD_WORKAROUND +static const void *lt_preloaded_setup() { + return lt_${my_prefix}_LTX_preloaded_symbols; +} +#endif + +#ifdef __cplusplus +} +#endif\ +" + } # !$opt_dry_run + + pic_flag_for_symtable=3D + case "$compile_command " in + *" -static "*) ;; + *) + case $host in + # compiling the symbol table file with pic_flag works around + # a FreeBSD bug that causes programs to crash when -lm is + # linked before any other PIC object. But we must not use + # pic_flag when linking with -static. The problem exists in + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) + pic_flag_for_symtable=3D" $pic_flag -DFREEBSD_WORKAROUND" ;; + *-*-hpux*) + pic_flag_for_symtable=3D" $pic_flag" ;; + *) + if test "X$my_pic_p" !=3D Xno; then + pic_flag_for_symtable=3D" $pic_flag" + fi + ;; + esac + ;; + esac + symtab_cflags=3D + for arg in $LTCFLAGS; do + case $arg in + -pie | -fpie | -fPIE) ;; + *) symtab_cflags=3D"$symtab_cflags $arg" ;; + esac + done + + # Now compile the dynamic symbol file. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin= _flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?' + + # Clean up the generated files. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "$= {nlist}T"' + + # Transform the symbol file into the correct name. + symfileobj=3D"$output_objdir/${my_outputname}S.$objext" + case $host in + *cygwin* | *mingw* | *cegcc* ) + if test -f "$output_objdir/$my_outputname.def"; then + compile_command=3D`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE= @%$output_objdir/$my_outputname.def $symfileobj%"` + finalize_command=3D`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFI= LE@%$output_objdir/$my_outputname.def $symfileobj%"` + else + compile_command=3D`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE= @%$symfileobj%"` + finalize_command=3D`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFI= LE@%$symfileobj%"` + fi + ;; + *) + compile_command=3D`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%= $symfileobj%"` + finalize_command=3D`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE= @%$symfileobj%"` + ;; + esac + ;; + *) + func_fatal_error "unknown suffix for \`$my_dlsyms'" + ;; + esac + else + # We keep going just in case the user didn't refer to + # lt_preloaded_symbols. The linker will fail if global_symbol_pip= e + # really was required. + + # Nullify the symbol file. + compile_command=3D`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFI= LE@%%"` + finalize_command=3D`$ECHO "X$finalize_command" | $Xsed -e "s% @SYM= FILE@%%"` + fi +} + +# func_win32_libid arg +# return the library type of file 'arg' +# +# Need a lot of goo to handle *both* DLLs and import libs +# Has to be a shell function in order to 'eat' the argument +# that is supplied when $file_magic_command is called. +func_win32_libid () +{ + $opt_debug + win32_libid_type=3D"unknown" + win32_fileres=3D`file -L $1 2>/dev/null` + case $win32_fileres in + *ar\ archive\ import\ library*) # definitely import + win32_libid_type=3D"x86 archive import" + ;; + *ar\ archive*) # could be an import, or static + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; = then + win32_nmres=3D`eval $NM -f posix -A $1 | + $SED -n -e ' + 1,100{ + / I /{ + s,.*,import, + p + q + } + }'` + case $win32_nmres in + import*) win32_libid_type=3D"x86 archive import";; + *) win32_libid_type=3D"x86 archive static";; + esac + fi + ;; + *DLL*) + win32_libid_type=3D"x86 DLL" + ;; + *executable*) # but shell scripts are "executable" too... + case $win32_fileres in + *MS\ Windows\ PE\ Intel*) + win32_libid_type=3D"x86 DLL" + ;; + esac + ;; + esac + $ECHO "$win32_libid_type" +} + + + +# func_extract_an_archive dir oldlib +func_extract_an_archive () +{ + $opt_debug + f_ex_an_ar_dir=3D"$1"; shift + f_ex_an_ar_oldlib=3D"$1" + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\= ")" 'exit $?' + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); t= hen + : + else + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_di= r/$f_ex_an_ar_oldlib" + fi +} + + +# func_extract_archives gentop oldlib ... +func_extract_archives () +{ + $opt_debug + my_gentop=3D"$1"; shift + my_oldlibs=3D${1+"$@"} + my_oldobjs=3D"" + my_xlib=3D"" + my_xabs=3D"" + my_xdir=3D"" + + for my_xlib in $my_oldlibs; do + # Extract the objects. + case $my_xlib in + [\\/]* | [A-Za-z]:[\\/]*) my_xabs=3D"$my_xlib" ;; + *) my_xabs=3D`pwd`"/$my_xlib" ;; + esac + func_basename "$my_xlib" + my_xlib=3D"$func_basename_result" + my_xlib_u=3D$my_xlib + while :; do + case " $extracted_archives " in + *" $my_xlib_u "*) + func_arith $extracted_serial + 1 + extracted_serial=3D$func_arith_result + my_xlib_u=3Dlt$extracted_serial-$my_xlib ;; + *) break ;; + esac + done + extracted_archives=3D"$extracted_archives $my_xlib_u" + my_xdir=3D"$my_gentop/$my_xlib_u" + + func_mkdir_p "$my_xdir" + + case $host in + *-darwin*) + func_verbose "Extracting $my_xabs" + # Do not bother doing anything if just a dry run + $opt_dry_run || { + darwin_orig_dir=3D`pwd` + cd $my_xdir || exit $? + darwin_archive=3D$my_xabs + darwin_curdir=3D`pwd` + darwin_base_archive=3D`basename "$darwin_archive"` + darwin_arches=3D`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Ar= chitectures 2>/dev/null || true` + if test -n "$darwin_arches"; then + darwin_arches=3D`$ECHO "$darwin_arches" | $SED -e 's/.*are://'` + darwin_arch=3D + func_verbose "$darwin_base_archive has multiple architectures $darw= in_arches" + for darwin_arch in $darwin_arches ; do + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}" + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}= -${darwin_arch}/${darwin_base_archive}" "${darwin_archive}" + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}" + func_extract_an_archive "`pwd`" "${darwin_base_archive}" + cd "$darwin_curdir" + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base= _archive}" + done # $darwin_arches + ## Okay now we've a bunch of thin objects, gotta fatten them= up :) + darwin_filelist=3D`find unfat-$$ -type f -name \*.o -print -o -name= \*.lo -print | $SED -e "$basename" | sort -u` + darwin_file=3D + darwin_files=3D + for darwin_file in $darwin_filelist; do + darwin_files=3D`find unfat-$$ -name $darwin_file -print | $NL2SP` + $LIPO -create -output "$darwin_file" $darwin_files + done # $darwin_filelist + $RM -rf unfat-$$ + cd "$darwin_orig_dir" + else + cd $darwin_orig_dir + func_extract_an_archive "$my_xdir" "$my_xabs" + fi # $darwin_arches + } # !$opt_dry_run + ;; + *) + func_extract_an_archive "$my_xdir" "$my_xabs" + ;; + esac + my_oldobjs=3D"$my_oldobjs "`find $my_xdir -name \*.$objext -print = -o -name \*.lo -print | $NL2SP` + done + + func_extract_archives_result=3D"$my_oldobjs" +} + + + +# func_emit_wrapper_part1 [arg=3Dno] +# +# Emit the first part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part1 () +{ + func_emit_wrapper_part1_arg1=3Dno + if test -n "$1" ; then + func_emit_wrapper_part1_arg1=3D$1 + fi + + $ECHO "\ +#! $SHELL + +# $output - temporary wrapper script for $objdir/$outputname +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# The $output program cannot be directly executed until all the libtool +# libraries that it depends on are installed. +# +# This wrapper script should never be moved out of the build directory. +# If it is, it will not operate correctly. + +# Sed substitution that helps us do robust quoting. It backslashifies +# metacharacters that are still active within double-quoted strings. +Xsed=3D'${SED} -e 1s/^X//' +sed_quote_subst=3D'$sed_quote_subst' + +# Be Bourne compatible +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=3D: + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which + # is contrary to our usage. Disable this feature. + alias -g '\${1+\"\$@\"}'=3D'\"\$@\"' + setopt NO_GLOB_SUBST +else + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac +fi +BIN_SH=3Dxpg4; export BIN_SH # for Tru64 +DUALCASE=3D1; export DUALCASE # for MKS sh + +# The HP-UX ksh and POSIX shell print the target directory to stdout +# if CDPATH is set. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH + +relink_command=3D\"$relink_command\" + +# This environment variable determines our operation mode. +if test \"\$libtool_install_magic\" =3D \"$magic\"; then + # install mode needs the following variables: + generated_by_libtool_version=3D'$macro_version' + notinst_deplibs=3D'$notinst_deplibs' +else + # When we are sourced in execute mode, \$file and \$ECHO are already s= et. + if test \"\$libtool_execute_magic\" !=3D \"$magic\"; then + ECHO=3D\"$qecho\" + file=3D\"\$0\" + # Make sure echo works. + if test \"X\$1\" =3D X--no-reexec; then + # Discard the --no-reexec flag, and continue. + shift + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" =3D 'X\t'; then + # Yippee, \$ECHO works! + : + else + # Restart under the correct shell, and then maybe \$ECHO will work= . + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} + fi + fi\ +" + $ECHO "\ + + # Find the directory that this script lives in. + thisdir=3D\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` + test \"x\$thisdir\" =3D \"x\$file\" && thisdir=3D. + + # Follow symbolic links until we get to the real thisdir. + file=3D\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\` + while test -n \"\$file\"; do + destdir=3D\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` + + # If there was a directory component, then change thisdir. + if test \"x\$destdir\" !=3D \"x\$file\"; then + case \"\$destdir\" in + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=3D\"\$destdir\" ;; + *) thisdir=3D\"\$thisdir/\$destdir\" ;; + esac + fi + + file=3D\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\` + file=3D\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\` + done +" +} +# end: func_emit_wrapper_part1 + +# func_emit_wrapper_part2 [arg=3Dno] +# +# Emit the second part of a libtool wrapper script on stdout. +# For more information, see the description associated with +# func_emit_wrapper(), below. +func_emit_wrapper_part2 () +{ + func_emit_wrapper_part2_arg1=3Dno + if test -n "$1" ; then + func_emit_wrapper_part2_arg1=3D$1 + fi + + $ECHO "\ + + # Usually 'no', except on cygwin/mingw when embedded into + # the cwrapper. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=3D$func_emit_wrapper_part2_arg1 + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" =3D \"yes\"; then + # special case for '.' + if test \"\$thisdir\" =3D \".\"; then + thisdir=3D\`pwd\` + fi + # remove .libs from thisdir + case \"\$thisdir\" in + *[\\\\/]$objdir ) thisdir=3D\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[= \\\\/][^\\\\/]*$%%'\` ;; + $objdir ) thisdir=3D. ;; + esac + fi + + # Try to get the absolute directory name. + absdir=3D\`cd \"\$thisdir\" && pwd\` + test -n \"\$absdir\" && thisdir=3D\"\$absdir\" +" + + if test "$fast_install" =3D yes; then + $ECHO "\ + program=3Dlt-'$outputname'$exeext + progdir=3D\"\$thisdir/$objdir\" + + if test ! -f \"\$progdir/\$program\" || + { file=3D\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program= \" 2>/dev/null | ${SED} 1q\`; \\ + test \"X\$file\" !=3D \"X\$progdir/\$program\"; }; then + + file=3D\"\$\$-\$program\" + + if test ! -d \"\$progdir\"; then + $MKDIR \"\$progdir\" + else + $RM \"\$progdir/\$file\" + fi" + + $ECHO "\ + + # relink executable if necessary + if test -n \"\$relink_command\"; then + if relink_command_output=3D\`eval \$relink_command 2>&1\`; then : + else + $ECHO \"\$relink_command_output\" >&2 + $RM \"\$progdir/\$file\" + exit 1 + fi + fi + + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || + { $RM \"\$progdir/\$program\"; + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; } + $RM \"\$progdir/\$file\" + fi" + else + $ECHO "\ + program=3D'$outputname' + progdir=3D\"\$thisdir/$objdir\" +" + fi + + $ECHO "\ + + if test -f \"\$progdir/\$program\"; then" + + # Export our shlibpath_var if we have one. + if test "$shlibpath_overrides_runpath" =3D yes && test -n "$shlibpath_v= ar" && test -n "$temp_rpath"; then + $ECHO "\ + # Add our own library path to $shlibpath_var + $shlibpath_var=3D\"$temp_rpath\$$shlibpath_var\" + + # Some systems cannot cope with colon-terminated $shlibpath_var + # The second colon is a workaround for a bug in BeOS R4 sed + $shlibpath_var=3D\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$= //'\` + + export $shlibpath_var +" + fi + + # fixup the dll searchpath if we need to. + if test -n "$dllsearchpath"; then + $ECHO "\ + # Add the dll search path components to the executable PATH + PATH=3D$dllsearchpath:\$PATH +" + fi + + $ECHO "\ + if test \"\$libtool_execute_magic\" !=3D \"$magic\"; then + # Run the actual program with our arguments. +" + case $host in + # Backslashes separate directories on plain windows + *-*-mingw | *-*-os2* | *-cegcc*) + $ECHO "\ + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"} +" + ;; + + *) + $ECHO "\ + exec \"\$progdir/\$program\" \${1+\"\$@\"} +" + ;; + esac + $ECHO "\ + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2 + exit 1 + fi + else + # The program doesn't exist. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2 + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2 + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2 + exit 1 + fi +fi\ +" +} +# end: func_emit_wrapper_part2 + + +# func_emit_wrapper [arg=3Dno] +# +# Emit a libtool wrapper script on stdout. +# Don't directly open a file because we may want to +# incorporate the script contents within a cygwin/mingw +# wrapper executable. Must ONLY be called from within +# func_mode_link because it depends on a number of variables +# set therein. +# +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR +# variable will take. If 'yes', then the emitted script +# will assume that the directory in which it is stored is +# the $objdir directory. This is a cygwin/mingw-specific +# behavior. +func_emit_wrapper () +{ + func_emit_wrapper_arg1=3Dno + if test -n "$1" ; then + func_emit_wrapper_arg1=3D$1 + fi + + # split this up so that func_emit_cwrapperexe_src + # can call each part independently. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}" + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}" +} + + +# func_to_host_path arg +# +# Convert paths to host format when used with build tools. +# Intended for use with "native" mingw (where libtool itself +# is running under the msys shell), or in the following cross- +# build environments: +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# where wine is equipped with the `winepath' executable. +# In the native mingw case, the (msys) shell automatically +# converts paths for any non-msys applications it launches, +# but that facility isn't available from inside the cwrapper. +# Similar accommodations are necessary for $host mingw and +# $build cygwin. Calling this function does no harm for other +# $host/$build combinations not listed above. +# +# ARG is the path (on $build) that should be converted to +# the proper representation for $host. The result is stored +# in $func_to_host_path_result. +func_to_host_path () +{ + func_to_host_path_result=3D"$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify=3D's|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + case $build in + *mingw* ) # actually, msys + # awkward: cmd appends spaces to result + lt_sed_strip_trailing_spaces=3D"s/[ ]*\$//" + func_to_host_path_tmp1=3D`( cmd //c echo "$1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || e= cho ""` + func_to_host_path_result=3D`echo "$func_to_host_path_tmp1" |= \ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_path_tmp1=3D`cygpath -w "$1"` + func_to_host_path_result=3D`echo "$func_to_host_path_tmp1" |= \ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # Unfortunately, winepath does not exit with a non-zero + # error code, so we are forced to check the contents of + # stdout. On the other hand, if the command is not + # found, the shell will set an exit code of 127 and print + # *an error message* to stdout. So we must check for both + # error code of zero AND non-empty stdout, which explains + # the odd construction: + func_to_host_path_tmp1=3D`winepath -w "$1" 2>/dev/null` + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; t= hen + func_to_host_path_result=3D`echo "$func_to_host_path_tmp1"= |\ + $SED -e "$lt_sed_naive_backslashify"` + else + # Allow warning below. + func_to_host_path_result=3D"" + fi + ;; + esac + if test -z "$func_to_host_path_result" ; then + func_error "Could not determine host path corresponding to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not wo= rk." + # Fallback: + func_to_host_path_result=3D"$1" + fi + ;; + esac + fi +} +# end: func_to_host_path + +# func_to_host_pathlist arg +# +# Convert pathlists to host format when used with build tools. +# See func_to_host_path(), above. This function supports the +# following $build/$host combinations (but does no harm for +# combinations not listed here): +# $build $host +# mingw (msys) mingw [e.g. native] +# cygwin mingw +# *nix + wine mingw +# +# Path separators are also converted from $build format to +# $host format. If ARG begins or ends with a path separator +# character, it is preserved (but converted to $host format) +# on output. +# +# ARG is a pathlist (on $build) that should be converted to +# the proper representation on $host. The result is stored +# in $func_to_host_pathlist_result. +func_to_host_pathlist () +{ + func_to_host_pathlist_result=3D"$1" + if test -n "$1" ; then + case $host in + *mingw* ) + lt_sed_naive_backslashify=3D's|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' + # Remove leading and trailing path separator characters from + # ARG. msys behavior is inconsistent here, cygpath turns them + # into '.;' and ';.', and winepath ignores them completely. + func_to_host_pathlist_tmp2=3D"$1" + # Once set for this call, this variable should not be + # reassigned. It is used in tha fallback case. + func_to_host_pathlist_tmp1=3D`echo "$func_to_host_pathlist_tmp2"= |\ + $SED -e 's|^:*||' -e 's|:*$||'` + case $build in + *mingw* ) # Actually, msys. + # Awkward: cmd appends spaces to result. + lt_sed_strip_trailing_spaces=3D"s/[ ]*\$//" + func_to_host_pathlist_tmp2=3D`( cmd //c echo "$func_to_host_= pathlist_tmp1" |\ + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || e= cho ""` + func_to_host_pathlist_result=3D`echo "$func_to_host_pathlist= _tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + *cygwin* ) + func_to_host_pathlist_tmp2=3D`cygpath -w -p "$func_to_host_p= athlist_tmp1"` + func_to_host_pathlist_result=3D`echo "$func_to_host_pathlist= _tmp2" |\ + $SED -e "$lt_sed_naive_backslashify"` + ;; + * ) + # unfortunately, winepath doesn't convert pathlists + func_to_host_pathlist_result=3D"" + func_to_host_pathlist_oldIFS=3D$IFS + IFS=3D: + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ;= do + IFS=3D$func_to_host_pathlist_oldIFS + if test -n "$func_to_host_pathlist_f" ; then + func_to_host_path "$func_to_host_pathlist_f" + if test -n "$func_to_host_path_result" ; then + if test -z "$func_to_host_pathlist_result" ; then + func_to_host_pathlist_result=3D"$func_to_host_path_r= esult" + else + func_to_host_pathlist_result=3D"$func_to_host_pathli= st_result;$func_to_host_path_result" + fi + fi + fi + IFS=3D: + done + IFS=3D$func_to_host_pathlist_oldIFS + ;; + esac + if test -z "$func_to_host_pathlist_result" ; then + func_error "Could not determine the host path(s) corresponding= to" + func_error " '$1'" + func_error "Continuing, but uninstalled executables may not wo= rk." + # Fallback. This may break if $1 contains DOS-style drive + # specifications. The fix is not to complicate the expression + # below, but for the user to provide a working wine installati= on + # with winepath so that path translation in the cross-to-mingw + # case works properly. + lt_replace_pathsep_nix_to_dos=3D"s|:|;|g" + func_to_host_pathlist_result=3D`echo "$func_to_host_pathlist_t= mp1" |\ + $SED -e "$lt_replace_pathsep_nix_to_dos"` + fi + # Now, add the leading and trailing path separators back + case "$1" in + :* ) func_to_host_pathlist_result=3D";$func_to_host_pathlist_r= esult" + ;; + esac + case "$1" in + *: ) func_to_host_pathlist_result=3D"$func_to_host_pathlist_re= sult;" + ;; + esac + ;; + esac + fi +} +# end: func_to_host_pathlist + +# func_emit_cwrapperexe_src +# emit the source code for a wrapper executable on stdout +# Must ONLY be called from within func_mode_link because +# it depends on a number of variable set therein. +func_emit_cwrapperexe_src () +{ + cat < +#include +#ifdef _MSC_VER +# include +# include +# include +# define setmode _setmode +#else +# include +# include +# ifdef __CYGWIN__ +# include +# define HAVE_SETENV +# ifdef __STRICT_ANSI__ +char *realpath (const char *, char *); +int putenv (char *); +int setenv (const char *, const char *, int); +# endif +# endif +#endif +#include +#include +#include +#include +#include +#include +#include +#include + +#if defined(PATH_MAX) +# define LT_PATHMAX PATH_MAX +#elif defined(MAXPATHLEN) +# define LT_PATHMAX MAXPATHLEN +#else +# define LT_PATHMAX 1024 +#endif + +#ifndef S_IXOTH +# define S_IXOTH 0 +#endif +#ifndef S_IXGRP +# define S_IXGRP 0 +#endif + +#ifdef _MSC_VER +# define S_IXUSR _S_IEXEC +# define stat _stat +# ifndef _INTPTR_T_DEFINED +# define intptr_t int +# endif +#endif + +#ifndef DIR_SEPARATOR +# define DIR_SEPARATOR '/' +# define PATH_SEPARATOR ':' +#endif + +#if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \ + defined (__OS2__) +# define HAVE_DOS_BASED_FILE_SYSTEM +# define FOPEN_WB "wb" +# ifndef DIR_SEPARATOR_2 +# define DIR_SEPARATOR_2 '\\' +# endif +# ifndef PATH_SEPARATOR_2 +# define PATH_SEPARATOR_2 ';' +# endif +#endif + +#ifndef DIR_SEPARATOR_2 +# define IS_DIR_SEPARATOR(ch) ((ch) =3D=3D DIR_SEPARATOR) +#else /* DIR_SEPARATOR_2 */ +# define IS_DIR_SEPARATOR(ch) \ + (((ch) =3D=3D DIR_SEPARATOR) || ((ch) =3D=3D DIR_SEPARATOR_2)) +#endif /* DIR_SEPARATOR_2 */ + +#ifndef PATH_SEPARATOR_2 +# define IS_PATH_SEPARATOR(ch) ((ch) =3D=3D PATH_SEPARATOR) +#else /* PATH_SEPARATOR_2 */ +# define IS_PATH_SEPARATOR(ch) ((ch) =3D=3D PATH_SEPARATOR_2) +#endif /* PATH_SEPARATOR_2 */ + +#ifdef __CYGWIN__ +# define FOPEN_WB "wb" +#endif + +#ifndef FOPEN_WB +# define FOPEN_WB "w" +#endif +#ifndef _O_BINARY +# define _O_BINARY 0 +#endif + +#define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type))= ) +#define XFREE(stale) do { \ + if (stale) { free ((void *) stale); stale =3D 0; } \ +} while (0) + +#undef LTWRAPPER_DEBUGPRINTF +#if defined DEBUGWRAPPER +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args +static void +ltwrapper_debugprintf (const char *fmt, ...) +{ + va_list args; + va_start (args, fmt); + (void) vfprintf (stderr, fmt, args); + va_end (args); +} +#else +# define LTWRAPPER_DEBUGPRINTF(args) +#endif + +const char *program_name =3D NULL; + +void *xmalloc (size_t num); +char *xstrdup (const char *string); +const char *base_name (const char *name); +char *find_executable (const char *wrapper); +char *chase_symlinks (const char *pathspec); +int make_executable (const char *path); +int check_executable (const char *path); +char *strendzap (char *str, const char *pat); +void lt_fatal (const char *message, ...); +void lt_setenv (const char *name, const char *value); +char *lt_extend_str (const char *orig_value, const char *add, int to_end= ); +void lt_opt_process_env_set (const char *arg); +void lt_opt_process_env_prepend (const char *arg); +void lt_opt_process_env_append (const char *arg); +int lt_split_name_value (const char *arg, char** name, char** value); +void lt_update_exe_path (const char *name, const char *value); +void lt_update_lib_path (const char *name, const char *value); + +static const char *script_text_part1 =3D +EOF + + func_emit_wrapper_part1 yes | + $SED -e 's/\([\\"]\)/\\\1/g' \ + -e 's/^/ "/' -e 's/$/\\n"/' + echo ";" + cat <"))); + for (i =3D 0; i < newargc; i++) + { + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz= [i] ? newargz[i] : ""))); + } + +EOF + + case $host_os in + mingw*) + cat <<"EOF" + /* execv doesn't actually work on mingw as expected on unix */ + rval =3D _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newarg= z); + if (rval =3D=3D -1) + { + /* failed to start process */ + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": er= rno =3D %d\n", lt_argv_zero, errno)); + return 127; + } + return rval; +EOF + ;; + *) + cat <<"EOF" + execv (lt_argv_zero, newargz); + return rval; /* =3D127, but avoids unused variable warning */ +EOF + ;; + esac + + cat <<"EOF" +} + +void * +xmalloc (size_t num) +{ + void *p =3D (void *) malloc (num); + if (!p) + lt_fatal ("Memory exhausted"); + + return p; +} + +char * +xstrdup (const char *string) +{ + return string ? strcpy ((char *) xmalloc (strlen (string) + 1), + string) : NULL; +} + +const char * +base_name (const char *name) +{ + const char *base; + +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + /* Skip over the disk name in MSDOS pathnames. */ + if (isalpha ((unsigned char) name[0]) && name[1] =3D=3D ':') + name +=3D 2; +#endif + + for (base =3D name; *name; name++) + if (IS_DIR_SEPARATOR (*name)) + base =3D name + 1; + return base; +} + +int +check_executable (const char *path) +{ + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if ((stat (path, &st) >=3D 0) + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH))) + return 1; + else + return 0; +} + +int +make_executable (const char *path) +{ + int rval =3D 0; + struct stat st; + + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n", + path ? (*path ? path : "EMPTY!") : "NULL!")); + if ((!path) || (!*path)) + return 0; + + if (stat (path, &st) >=3D 0) + { + rval =3D chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR); + } + return rval; +} + +/* Searches for the full path of the wrapper. Returns + newly allocated full path name if found, NULL otherwise + Does not chase symlinks, even on platforms that support them. +*/ +char * +find_executable (const char *wrapper) +{ + int has_slash =3D 0; + const char *p; + const char *p_next; + /* static buffer for getcwd */ + char tmp[LT_PATHMAX + 1]; + int tmp_len; + char *concat_name; + + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n", + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!")); + + if ((wrapper =3D=3D NULL) || (*wrapper =3D=3D '\0')) + return NULL; + + /* Absolute path? */ +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] =3D=3D ':') + { + concat_name =3D xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + else + { +#endif + if (IS_DIR_SEPARATOR (wrapper[0])) + { + concat_name =3D xstrdup (wrapper); + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } +#if defined (HAVE_DOS_BASED_FILE_SYSTEM) + } +#endif + + for (p =3D wrapper; *p; p++) + if (*p =3D=3D '/') + { + has_slash =3D 1; + break; + } + if (!has_slash) + { + /* no slashes; search PATH */ + const char *path =3D getenv ("PATH"); + if (path !=3D NULL) + { + for (p =3D path; *p; p =3D p_next) + { + const char *q; + size_t p_len; + for (q =3D p; *q; q++) + if (IS_PATH_SEPARATOR (*q)) + break; + p_len =3D q - p; + p_next =3D (*q =3D=3D '\0' ? q : q + 1); + if (p_len =3D=3D 0) + { + /* empty path: current directory */ + if (getcwd (tmp, LT_PATHMAX) =3D=3D NULL) + lt_fatal ("getcwd failed"); + tmp_len =3D strlen (tmp); + concat_name =3D + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] =3D '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + } + else + { + concat_name =3D + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, p, p_len); + concat_name[p_len] =3D '/'; + strcpy (concat_name + p_len + 1, wrapper); + } + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + } + } + /* not found in PATH; assume curdir */ + } + /* Relative path | not found in path: prepend cwd */ + if (getcwd (tmp, LT_PATHMAX) =3D=3D NULL) + lt_fatal ("getcwd failed"); + tmp_len =3D strlen (tmp); + concat_name =3D XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1); + memcpy (concat_name, tmp, tmp_len); + concat_name[tmp_len] =3D '/'; + strcpy (concat_name + tmp_len + 1, wrapper); + + if (check_executable (concat_name)) + return concat_name; + XFREE (concat_name); + return NULL; +} + +char * +chase_symlinks (const char *pathspec) +{ +#ifndef S_ISLNK + return xstrdup (pathspec); +#else + char buf[LT_PATHMAX]; + struct stat s; + char *tmp_pathspec =3D xstrdup (pathspec); + char *p; + int has_symlinks =3D 0; + while (strlen (tmp_pathspec) && !has_symlinks) + { + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\= n", + tmp_pathspec)); + if (lstat (tmp_pathspec, &s) =3D=3D 0) + { + if (S_ISLNK (s.st_mode) !=3D 0) + { + has_symlinks =3D 1; + break; + } + + /* search backwards for last DIR_SEPARATOR */ + p =3D tmp_pathspec + strlen (tmp_pathspec) - 1; + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + p--; + if ((p =3D=3D tmp_pathspec) && (!IS_DIR_SEPARATOR (*p))) + { + /* no more DIR_SEPARATORS left */ + break; + } + *p =3D '\0'; + } + else + { + char *errstr =3D strerror (errno); + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr); + } + } + XFREE (tmp_pathspec); + + if (!has_symlinks) + { + return xstrdup (pathspec); + } + + tmp_pathspec =3D realpath (pathspec, buf); + if (tmp_pathspec =3D=3D 0) + { + lt_fatal ("Could not follow symlinks for %s", pathspec); + } + return xstrdup (tmp_pathspec); +#endif +} + +char * +strendzap (char *str, const char *pat) +{ + size_t len, patlen; + + assert (str !=3D NULL); + assert (pat !=3D NULL); + + len =3D strlen (str); + patlen =3D strlen (pat); + + if (patlen <=3D len) + { + str +=3D len - patlen; + if (strcmp (str, pat) =3D=3D 0) + *str =3D '\0'; + } + return str; +} + +static void +lt_error_core (int exit_status, const char *mode, + const char *message, va_list ap) +{ + fprintf (stderr, "%s: %s: ", program_name, mode); + vfprintf (stderr, message, ap); + fprintf (stderr, ".\n"); + + if (exit_status >=3D 0) + exit (exit_status); +} + +void +lt_fatal (const char *message, ...) +{ + va_list ap; + va_start (ap, message); + lt_error_core (EXIT_FAILURE, "FATAL", message, ap); + va_end (ap); +} + +void +lt_setenv (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n", + (name ? name : ""), + (value ? value : ""))); + { +#ifdef HAVE_SETENV + /* always make a copy, for consistency with !HAVE_SETENV */ + char *str =3D xstrdup (value); + setenv (name, str, 1); +#else + int len =3D strlen (name) + 1 + strlen (value) + 1; + char *str =3D XMALLOC (char, len); + sprintf (str, "%s=3D%s", name, value); + if (putenv (str) !=3D EXIT_SUCCESS) + { + XFREE (str); + } +#endif + } +} + +char * +lt_extend_str (const char *orig_value, const char *add, int to_end) +{ + char *new_value; + if (orig_value && *orig_value) + { + int orig_value_len =3D strlen (orig_value); + int add_len =3D strlen (add); + new_value =3D XMALLOC (char, add_len + orig_value_len + 1); + if (to_end) + { + strcpy (new_value, orig_value); + strcpy (new_value + orig_value_len, add); + } + else + { + strcpy (new_value, add); + strcpy (new_value + add_len, orig_value); + } + } + else + { + new_value =3D xstrdup (add); + } + return new_value; +} + +int +lt_split_name_value (const char *arg, char** name, char** value) +{ + const char *p; + int len; + if (!arg || !*arg) + return 1; + + p =3D strchr (arg, (int)'=3D'); + + if (!p) + return 1; + + *value =3D xstrdup (++p); + + len =3D strlen (arg) - strlen (*value); + *name =3D XMALLOC (char, len); + strncpy (*name, arg, len-1); + (*name)[len - 1] =3D '\0'; + + return 0; +} + +void +lt_opt_process_env_set (const char *arg) +{ + char *name =3D NULL; + char *value =3D NULL; + + if (lt_split_name_value (arg, &name, &value) !=3D 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg); + } + + lt_setenv (name, value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_prepend (const char *arg) +{ + char *name =3D NULL; + char *value =3D NULL; + char *new_value =3D NULL; + + if (lt_split_name_value (arg, &name, &value) !=3D 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg); + } + + new_value =3D lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_opt_process_env_append (const char *arg) +{ + char *name =3D NULL; + char *value =3D NULL; + char *new_value =3D NULL; + + if (lt_split_name_value (arg, &name, &value) !=3D 0) + { + XFREE (name); + XFREE (value); + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg); + } + + new_value =3D lt_extend_str (getenv (name), value, 1); + lt_setenv (name, new_value); + XFREE (new_value); + XFREE (name); + XFREE (value); +} + +void +lt_update_exe_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepen= ding '%s'\n", + (name ? name : ""), + (value ? value : ""))); + + if (name && *name && value && *value) + { + char *new_value =3D lt_extend_str (getenv (name), value, 0); + /* some systems can't cope with a ':'-terminated path #' */ + int len =3D strlen (new_value); + while (((len =3D strlen (new_value)) > 0) && IS_PATH_SEPARATOR (ne= w_value[len-1])) + { + new_value[len-1] =3D '\0'; + } + lt_setenv (name, new_value); + XFREE (new_value); + } +} + +void +lt_update_lib_path (const char *name, const char *value) +{ + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepen= ding '%s'\n", + (name ? name : ""), + (value ? value : ""))); + + if (name && *name && value && *value) + { + char *new_value =3D lt_extend_str (getenv (name), value, 0); + lt_setenv (name, new_value); + XFREE (new_value); + } +} + + +EOF +} +# end: func_emit_cwrapperexe_src + +# func_mode_link arg... +func_mode_link () +{ + $opt_debug + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + # It is impossible to link a dll without this setting, and + # we shouldn't force the makefile maintainer to figure out + # which system we are compiling for in order to pass an extra + # flag for every libtool invocation. + # allow_undefined=3Dno + + # FIXME: Unfortunately, there are problems with the above when try= ing + # to make a dll which has undefined symbols, in which case not + # even a static library is built. For now, we need to specify + # -no-undefined on the libtool link line when we can be certain + # that all symbols are satisfied, otherwise we get a static librar= y. + allow_undefined=3Dyes + ;; + *) + allow_undefined=3Dyes + ;; + esac + libtool_args=3D$nonopt + base_compile=3D"$nonopt $@" + compile_command=3D$nonopt + finalize_command=3D$nonopt + + compile_rpath=3D + finalize_rpath=3D + compile_shlibpath=3D + finalize_shlibpath=3D + convenience=3D + old_convenience=3D + deplibs=3D + old_deplibs=3D + compiler_flags=3D + linker_flags=3D + dllsearchpath=3D + lib_search_path=3D`pwd` + inst_prefix_dir=3D + new_inherited_linker_flags=3D + + avoid_version=3Dno + dlfiles=3D + dlprefiles=3D + dlself=3Dno + export_dynamic=3Dno + export_symbols=3D + export_symbols_regex=3D + generated=3D + libobjs=3D + ltlibs=3D + module=3Dno + no_install=3Dno + objs=3D + non_pic_objects=3D + precious_files_regex=3D + prefer_static_libs=3Dno + preload=3Dno + prev=3D + prevarg=3D + release=3D + rpath=3D + xrpath=3D + perm_rpath=3D + temp_rpath=3D + thread_safe=3Dno + vinfo=3D + vinfo_number=3Dno + weak_libs=3D + single_module=3D"${wl}-single_module" + func_infer_tag $base_compile + + # We need to know -static, to get the right output filenames. + for arg + do + case $arg in + -shared) + test "$build_libtool_libs" !=3D yes && \ + func_fatal_configuration "can not build a shared library" + build_old_libs=3Dno + break + ;; + -all-static | -static | -static-libtool-libs) + case $arg in + -all-static) + if test "$build_libtool_libs" =3D yes && test -z "$link_static_flag";= then + func_warning "complete static linking is impossible in this configu= ration" + fi + if test -n "$link_static_flag"; then + dlopen_self=3D$dlopen_self_static + fi + prefer_static_libs=3Dyes + ;; + -static) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=3D$dlopen_self_static + fi + prefer_static_libs=3Dbuilt + ;; + -static-libtool-libs) + if test -z "$pic_flag" && test -n "$link_static_flag"; then + dlopen_self=3D$dlopen_self_static + fi + prefer_static_libs=3Dyes + ;; + esac + build_libtool_libs=3Dno + build_old_libs=3Dyes + break + ;; + esac + done + + # See if our shared archives depend on static archives. + test -n "$old_archive_from_new_cmds" && build_old_libs=3Dyes + + # Go through the arguments, transforming them on the way. + while test "$#" -gt 0; do + arg=3D"$1" + shift + func_quote_for_eval "$arg" + qarg=3D$func_quote_for_eval_unquoted_result + func_append libtool_args " $func_quote_for_eval_result" + + # If the previous option needs an argument, assign it. + if test -n "$prev"; then + case $prev in + output) + func_append compile_command " @OUTPUT@" + func_append finalize_command " @OUTPUT@" + ;; + esac + + case $prev in + dlfiles|dlprefiles) + if test "$preload" =3D no; then + # Add the symbol object into the linking commands. + func_append compile_command " @SYMFILE@" + func_append finalize_command " @SYMFILE@" + preload=3Dyes + fi + case $arg in + *.la | *.lo) ;; # We handle these cases below. + force) + if test "$dlself" =3D no; then + dlself=3Dneedless + export_dynamic=3Dyes + fi + prev=3D + continue + ;; + self) + if test "$prev" =3D dlprefiles; then + dlself=3Dyes + elif test "$prev" =3D dlfiles && test "$dlopen_self" !=3D yes; then + dlself=3Dyes + else + dlself=3Dneedless + export_dynamic=3Dyes + fi + prev=3D + continue + ;; + *) + if test "$prev" =3D dlfiles; then + dlfiles=3D"$dlfiles $arg" + else + dlprefiles=3D"$dlprefiles $arg" + fi + prev=3D + continue + ;; + esac + ;; + expsyms) + export_symbols=3D"$arg" + test -f "$arg" \ + || func_fatal_error "symbol file \`$arg' does not exist" + prev=3D + continue + ;; + expsyms_regex) + export_symbols_regex=3D"$arg" + prev=3D + continue + ;; + framework) + case $host in + *-*-darwin*) + case "$deplibs " in + *" $qarg.ltframework "*) ;; + *) deplibs=3D"$deplibs $qarg.ltframework" # this is fixed later + ;; + esac + ;; + esac + prev=3D + continue + ;; + inst_prefix) + inst_prefix_dir=3D"$arg" + prev=3D + continue + ;; + objectlist) + if test -f "$arg"; then + save_arg=3D$arg + moreargs=3D + for fil in `cat "$save_arg"` + do +# moreargs=3D"$moreargs $fil" + arg=3D$fil + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object=3D + non_pic_object=3D + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" =3D none && + test "$non_pic_object" =3D none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=3D"$func_dirname_result" + + if test "$pic_object" !=3D none; then + # Prepend the subdirectory the object is found in. + pic_object=3D"$xdir$pic_object" + + if test "$prev" =3D dlfiles; then + if test "$build_libtool_libs" =3D yes && test "$dlopen_support" =3D= yes; then + dlfiles=3D"$dlfiles $pic_object" + prev=3D + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=3Ddlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" =3D dlprefiles; then + # Preload the old-style object. + dlprefiles=3D"$dlprefiles $pic_object" + prev=3D + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg=3D"$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" !=3D none; then + # Prepend the subdirectory the object is found in. + non_pic_object=3D"$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" =3D none ; then + arg=3D"$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object=3D"$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=3D"$func_dirname_result" + + func_lo2o "$arg" + pic_object=3D$xdir$objdir/$func_lo2o_result + non_pic_object=3D$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + done + else + func_fatal_error "link input file \`$arg' does not exist" + fi + arg=3D$save_arg + prev=3D + continue + ;; + precious_regex) + precious_files_regex=3D"$arg" + prev=3D + continue + ;; + release) + release=3D"-$arg" + prev=3D + continue + ;; + rpath | xrpath) + # We need an absolute path. + case $arg in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + if test "$prev" =3D rpath; then + case "$rpath " in + *" $arg "*) ;; + *) rpath=3D"$rpath $arg" ;; + esac + else + case "$xrpath " in + *" $arg "*) ;; + *) xrpath=3D"$xrpath $arg" ;; + esac + fi + prev=3D + continue + ;; + shrext) + shrext_cmds=3D"$arg" + prev=3D + continue + ;; + weak) + weak_libs=3D"$weak_libs $arg" + prev=3D + continue + ;; + xcclinker) + linker_flags=3D"$linker_flags $qarg" + compiler_flags=3D"$compiler_flags $qarg" + prev=3D + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xcompiler) + compiler_flags=3D"$compiler_flags $qarg" + prev=3D + func_append compile_command " $qarg" + func_append finalize_command " $qarg" + continue + ;; + xlinker) + linker_flags=3D"$linker_flags $qarg" + compiler_flags=3D"$compiler_flags $wl$qarg" + prev=3D + func_append compile_command " $wl$qarg" + func_append finalize_command " $wl$qarg" + continue + ;; + *) + eval "$prev=3D\"\$arg\"" + prev=3D + continue + ;; + esac + fi # test -n "$prev" + + prevarg=3D"$arg" + + case $arg in + -all-static) + if test -n "$link_static_flag"; then + # See comment for -static flag below, for more details. + func_append compile_command " $link_static_flag" + func_append finalize_command " $link_static_flag" + fi + continue + ;; + + -allow-undefined) + # FIXME: remove this flag sometime in the future. + func_fatal_error "\`-allow-undefined' must not be used because it is th= e default" + ;; + + -avoid-version) + avoid_version=3Dyes + continue + ;; + + -dlopen) + prev=3Ddlfiles + continue + ;; + + -dlpreopen) + prev=3Ddlprefiles + continue + ;; + + -export-dynamic) + export_dynamic=3Dyes + continue + ;; + + -export-symbols | -export-symbols-regex) + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then + func_fatal_error "more than one -exported-symbols argument is not all= owed" + fi + if test "X$arg" =3D "X-export-symbols"; then + prev=3Dexpsyms + else + prev=3Dexpsyms_regex + fi + continue + ;; + + -framework) + prev=3Dframework + continue + ;; + + -inst-prefix-dir) + prev=3Dinst_prefix + continue + ;; + + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* + # so, if we see these flags be careful not to treat them like -L + -L[A-Z][A-Z]*:*) + case $with_gcc/$host in + no/*-*-irix* | /*-*-irix*) + func_append compile_command " $arg" + func_append finalize_command " $arg" + ;; + esac + continue + ;; + + -L*) + func_stripname '-L' '' "$arg" + dir=3D$func_stripname_result + if test -z "$dir"; then + if test "$#" -gt 0; then + func_fatal_error "require no space between \`-L' and \`$1'" + else + func_fatal_error "need path for \`-L' option" + fi + fi + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + absdir=3D`cd "$dir" && pwd` + test -z "$absdir" && \ + func_fatal_error "cannot determine absolute directory name of \`$di= r'" + dir=3D"$absdir" + ;; + esac + case "$deplibs " in + *" -L$dir "*) ;; + *) + deplibs=3D"$deplibs -L$dir" + lib_search_path=3D"$lib_search_path $dir" + ;; + esac + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=3D`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$dir:"*) ;; + ::) dllsearchpath=3D$dir;; + *) dllsearchpath=3D"$dllsearchpath:$dir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=3D$testbindir;; + *) dllsearchpath=3D"$dllsearchpath:$testbindir";; + esac + ;; + esac + continue + ;; + + -l*) + if test "X$arg" =3D "X-lc" || test "X$arg" =3D "X-lm"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*) + # These systems don't actually have a C or math library (as such) + continue + ;; + *-*-os2*) + # These systems don't actually have a C library (as such) + test "X$arg" =3D "X-lc" && continue + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + test "X$arg" =3D "X-lc" && continue + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C and math libraries are in the System framework + deplibs=3D"$deplibs System.ltframework" + continue + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + test "X$arg" =3D "X-lc" && continue + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + test "X$arg" =3D "X-lc" && continue + ;; + esac + elif test "X$arg" =3D "X-lc_r"; then + case $host in + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc_r directly, use -pthread flag. + continue + ;; + esac + fi + deplibs=3D"$deplibs $arg" + continue + ;; + + -module) + module=3Dyes + continue + ;; + + # Tru64 UNIX uses -model [arg] to determine the layout of C++ + # classes, name mangling, and exception handling. + # Darwin uses the -arch flag to determine output architecture. + -model|-arch|-isysroot) + compiler_flags=3D"$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + prev=3Dxcompiler + continue + ;; + + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-= threads) + compiler_flags=3D"$compiler_flags $arg" + func_append compile_command " $arg" + func_append finalize_command " $arg" + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) new_inherited_linker_flags=3D"$new_inherited_linker_flags $arg"= ;; + esac + continue + ;; + + -multi_module) + single_module=3D"${wl}-multi_module" + continue + ;; + + -no-fast-install) + fast_install=3Dno + continue + ;; + + -no-install) + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc= *) + # The PATH hackery in wrapper scripts is required on Windows + # and Darwin in order for the loader to find any dlls it needs. + func_warning "\`-no-install' is ignored for $host" + func_warning "assuming \`-no-fast-install' instead" + fast_install=3Dno + ;; + *) no_install=3Dyes ;; + esac + continue + ;; + + -no-undefined) + allow_undefined=3Dno + continue + ;; + + -objectlist) + prev=3Dobjectlist + continue + ;; + + -o) prev=3Doutput ;; + + -precious-files-regex) + prev=3Dprecious_regex + continue + ;; + + -release) + prev=3Drelease + continue + ;; + + -rpath) + prev=3Drpath + continue + ;; + + -R) + prev=3Dxrpath + continue + ;; + + -R*) + func_stripname '-R' '' "$arg" + dir=3D$func_stripname_result + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) ;; + *) + func_fatal_error "only absolute run-paths are allowed" + ;; + esac + case "$xrpath " in + *" $dir "*) ;; + *) xrpath=3D"$xrpath $dir" ;; + esac + continue + ;; + + -shared) + # The effects of -shared are defined in a previous loop. + continue + ;; + + -shrext) + prev=3Dshrext + continue + ;; + + -static | -static-libtool-libs) + # The effects of -static are defined in a previous loop. + # We used to do the same as -all-static on platforms that + # didn't have a PIC flag, but the assumption that the effects + # would be equivalent was wrong. It would break on at least + # Digital Unix and AIX. + continue + ;; + + -thread-safe) + thread_safe=3Dyes + continue + ;; + + -version-info) + prev=3Dvinfo + continue + ;; + + -version-number) + prev=3Dvinfo + vinfo_number=3Dyes + continue + ;; + + -weak) + prev=3Dweak + continue + ;; + + -Wc,*) + func_stripname '-Wc,' '' "$arg" + args=3D$func_stripname_result + arg=3D + save_ifs=3D"$IFS"; IFS=3D',' + for flag in $args; do + IFS=3D"$save_ifs" + func_quote_for_eval "$flag" + arg=3D"$arg $wl$func_quote_for_eval_result" + compiler_flags=3D"$compiler_flags $func_quote_for_eval_result" + done + IFS=3D"$save_ifs" + func_stripname ' ' '' "$arg" + arg=3D$func_stripname_result + ;; + + -Wl,*) + func_stripname '-Wl,' '' "$arg" + args=3D$func_stripname_result + arg=3D + save_ifs=3D"$IFS"; IFS=3D',' + for flag in $args; do + IFS=3D"$save_ifs" + func_quote_for_eval "$flag" + arg=3D"$arg $wl$func_quote_for_eval_result" + compiler_flags=3D"$compiler_flags $wl$func_quote_for_eval_result" + linker_flags=3D"$linker_flags $func_quote_for_eval_result" + done + IFS=3D"$save_ifs" + func_stripname ' ' '' "$arg" + arg=3D$func_stripname_result + ;; + + -Xcompiler) + prev=3Dxcompiler + continue + ;; + + -Xlinker) + prev=3Dxlinker + continue + ;; + + -XCClinker) + prev=3Dxcclinker + continue + ;; + + # -msg_* for osf cc + -msg_*) + func_quote_for_eval "$arg" + arg=3D"$func_quote_for_eval_result" + ;; + + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler + # -r[0-9][0-9]* specifies the processor on the SGI compiler + # -xarch=3D*, -xtarget=3D* enable 64-bit mode on the Sun compiler + # +DA*, +DD* enable 64-bit mode on the HP compiler + # -q* pass through compiler args for the IBM compiler + # -m*, -t[45]*, -txscale* pass through architecture-specific + # compiler args for GCC + # -F/path gives path to uninstalled frameworks, gcc on darwin + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for= GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=3D*|-xtarget=3D*|+DA*|+DD*|-q*= |-m*| \ + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) + func_quote_for_eval "$arg" + arg=3D"$func_quote_for_eval_result" + func_append compile_command " $arg" + func_append finalize_command " $arg" + compiler_flags=3D"$compiler_flags $arg" + continue + ;; + + # Some other compiler flag. + -* | +*) + func_quote_for_eval "$arg" + arg=3D"$func_quote_for_eval_result" + ;; + + *.$objext) + # A standard object. + objs=3D"$objs $arg" + ;; + + *.lo) + # A libtool-controlled object. + + # Check to see that this really is a libtool object. + if func_lalib_unsafe_p "$arg"; then + pic_object=3D + non_pic_object=3D + + # Read the .lo file + func_source "$arg" + + if test -z "$pic_object" || + test -z "$non_pic_object" || + test "$pic_object" =3D none && + test "$non_pic_object" =3D none; then + func_fatal_error "cannot find name of object for \`$arg'" + fi + + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=3D"$func_dirname_result" + + if test "$pic_object" !=3D none; then + # Prepend the subdirectory the object is found in. + pic_object=3D"$xdir$pic_object" + + if test "$prev" =3D dlfiles; then + if test "$build_libtool_libs" =3D yes && test "$dlopen_support" =3D= yes; then + dlfiles=3D"$dlfiles $pic_object" + prev=3D + continue + else + # If libtool objects are unsupported, then we need to preload. + prev=3Ddlprefiles + fi + fi + + # CHECK ME: I think I busted this. -Ossama + if test "$prev" =3D dlprefiles; then + # Preload the old-style object. + dlprefiles=3D"$dlprefiles $pic_object" + prev=3D + fi + + # A PIC object. + func_append libobjs " $pic_object" + arg=3D"$pic_object" + fi + + # Non-PIC object. + if test "$non_pic_object" !=3D none; then + # Prepend the subdirectory the object is found in. + non_pic_object=3D"$xdir$non_pic_object" + + # A standard non-PIC object + func_append non_pic_objects " $non_pic_object" + if test -z "$pic_object" || test "$pic_object" =3D none ; then + arg=3D"$non_pic_object" + fi + else + # If the PIC object exists, use it instead. + # $xdir was prepended to $pic_object above. + non_pic_object=3D"$pic_object" + func_append non_pic_objects " $non_pic_object" + fi + else + # Only an error if not doing a dry-run. + if $opt_dry_run; then + # Extract subdirectory from the argument. + func_dirname "$arg" "/" "" + xdir=3D"$func_dirname_result" + + func_lo2o "$arg" + pic_object=3D$xdir$objdir/$func_lo2o_result + non_pic_object=3D$xdir$func_lo2o_result + func_append libobjs " $pic_object" + func_append non_pic_objects " $non_pic_object" + else + func_fatal_error "\`$arg' is not a valid libtool object" + fi + fi + ;; + + *.$libext) + # An archive. + deplibs=3D"$deplibs $arg" + old_deplibs=3D"$old_deplibs $arg" + continue + ;; + + *.la) + # A libtool-controlled library. + + if test "$prev" =3D dlfiles; then + # This library was specified with -dlopen. + dlfiles=3D"$dlfiles $arg" + prev=3D + elif test "$prev" =3D dlprefiles; then + # The library was specified with -dlpreopen. + dlprefiles=3D"$dlprefiles $arg" + prev=3D + else + deplibs=3D"$deplibs $arg" + fi + continue + ;; + + # Some other compiler argument. + *) + # Unknown arguments in both finalize_command and compile_command need + # to be aesthetically quoted because they are evaled later. + func_quote_for_eval "$arg" + arg=3D"$func_quote_for_eval_result" + ;; + esac # arg + + # Now actually substitute the argument into the commands. + if test -n "$arg"; then + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + done # argument parsing loop + + test -n "$prev" && \ + func_fatal_help "the \`$prevarg' option requires an argument" + + if test "$export_dynamic" =3D yes && test -n "$export_dynamic_flag_s= pec"; then + eval arg=3D\"$export_dynamic_flag_spec\" + func_append compile_command " $arg" + func_append finalize_command " $arg" + fi + + oldlibs=3D + # calculate the name of the file, without its directory + func_basename "$output" + outputname=3D"$func_basename_result" + libobjs_save=3D"$libobjs" + + if test -n "$shlibpath_var"; then + # get the directories listed in $shlibpath_var + eval shlib_search_path=3D\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xse= d -e \'s/:/ /g\'\` + else + shlib_search_path=3D + fi + eval sys_lib_search_path=3D\"$sys_lib_search_path_spec\" + eval sys_lib_dlsearch_path=3D\"$sys_lib_dlsearch_path_spec\" + + func_dirname "$output" "/" "" + output_objdir=3D"$func_dirname_result$objdir" + # Create the object directory. + func_mkdir_p "$output_objdir" + + # Determine the type of output + case $output in + "") + func_fatal_help "you must specify an output file" + ;; + *.$libext) linkmode=3Doldlib ;; + *.lo | *.$objext) linkmode=3Dobj ;; + *.la) linkmode=3Dlib ;; + *) linkmode=3Dprog ;; # Anything else should be a program. + esac + + specialdeplibs=3D + + libs=3D + # Find all interdependent deplibs by searching for libraries + # that are linked more than once (e.g. -la -lb -la) + for deplib in $deplibs; do + if $opt_duplicate_deps ; then + case "$libs " in + *" $deplib "*) specialdeplibs=3D"$specialdeplibs $deplib" ;; + esac + fi + libs=3D"$libs $deplib" + done + + if test "$linkmode" =3D lib; then + libs=3D"$predeps $libs $compiler_lib_search_path $postdeps" + + # Compute libraries that are listed more than once in $predeps + # $postdeps and mark them as special (i.e., whose duplicates are + # not to be eliminated). + pre_post_deps=3D + if $opt_duplicate_compiler_generated_deps; then + for pre_post_dep in $predeps $postdeps; do + case "$pre_post_deps " in + *" $pre_post_dep "*) specialdeplibs=3D"$specialdeplibs $pre_post_deps= " ;; + esac + pre_post_deps=3D"$pre_post_deps $pre_post_dep" + done + fi + pre_post_deps=3D + fi + + deplibs=3D + newdependency_libs=3D + newlib_search_path=3D + need_relink=3Dno # whether we're linking any uninstalled libtool lib= raries + notinst_deplibs=3D # not-installed libtool libraries + notinst_path=3D # paths that contain not-installed libtool libraries + + case $linkmode in + lib) + passes=3D"conv dlpreopen link" + for file in $dlfiles $dlprefiles; do + case $file in + *.la) ;; + *) + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $= file" + ;; + esac + done + ;; + prog) + compile_deplibs=3D + finalize_deplibs=3D + alldeplibs=3Dno + newdlfiles=3D + newdlprefiles=3D + passes=3D"conv scan dlopen dlpreopen link" + ;; + *) passes=3D"conv" + ;; + esac + + for pass in $passes; do + # The preopen pass in lib mode reverses $deplibs; put it back here + # so that -L comes before libs that need it for instance... + if test "$linkmode,$pass" =3D "lib,link"; then + ## FIXME: Find the place where the list is rebuilt in the wrong + ## order, and fix it there properly + tmp_deplibs=3D + for deplib in $deplibs; do + tmp_deplibs=3D"$deplib $tmp_deplibs" + done + deplibs=3D"$tmp_deplibs" + fi + + if test "$linkmode,$pass" =3D "lib,link" || + test "$linkmode,$pass" =3D "prog,scan"; then + libs=3D"$deplibs" + deplibs=3D + fi + if test "$linkmode" =3D prog; then + case $pass in + dlopen) libs=3D"$dlfiles" ;; + dlpreopen) libs=3D"$dlprefiles" ;; + link) libs=3D"$deplibs %DEPLIBS% $dependency_libs" ;; + esac + fi + if test "$linkmode,$pass" =3D "lib,dlpreopen"; then + # Collect and forward deplibs of preopened libtool libs + for lib in $dlprefiles; do + # Ignore non-libtool-libs + dependency_libs=3D + case $lib in + *.la) func_source "$lib" ;; + esac + + # Collect preopened libtool deplibs, except any this library + # has declared as weak libs + for deplib in $dependency_libs; do + deplib_base=3D`$ECHO "X$deplib" | $Xsed -e "$basename"` + case " $weak_libs " in + *" $deplib_base "*) ;; + *) deplibs=3D"$deplibs $deplib" ;; + esac + done + done + libs=3D"$dlprefiles" + fi + if test "$pass" =3D dlopen; then + # Collect dlpreopened libraries + save_deplibs=3D"$deplibs" + deplibs=3D + fi + + for deplib in $libs; do + lib=3D + found=3Dno + case $deplib in + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threa= ds) + if test "$linkmode,$pass" =3D "prog,link"; then + compile_deplibs=3D"$deplib $compile_deplibs" + finalize_deplibs=3D"$deplib $finalize_deplibs" + else + compiler_flags=3D"$compiler_flags $deplib" + if test "$linkmode" =3D lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags=3D"$new_inherited_linker_flags $dep= lib" ;; + esac + fi + fi + continue + ;; + -l*) + if test "$linkmode" !=3D lib && test "$linkmode" !=3D prog; then + func_warning "\`-l' is ignored for archives/objects" + continue + fi + func_stripname '-l' '' "$deplib" + name=3D$func_stripname_result + if test "$linkmode" =3D lib; then + searchdirs=3D"$newlib_search_path $lib_search_path $compiler_lib_se= arch_dirs $sys_lib_search_path $shlib_search_path" + else + searchdirs=3D"$newlib_search_path $lib_search_path $sys_lib_search_= path $shlib_search_path" + fi + for searchdir in $searchdirs; do + for search_ext in .la $std_shrext .so .a; do + # Search the libtool library + lib=3D"$searchdir/lib${name}${search_ext}" + if test -f "$lib"; then + if test "$search_ext" =3D ".la"; then + found=3Dyes + else + found=3Dno + fi + break 2 + fi + done + done + if test "$found" !=3D yes; then + # deplib doesn't seem to be a libtool library + if test "$linkmode,$pass" =3D "prog,link"; then + compile_deplibs=3D"$deplib $compile_deplibs" + finalize_deplibs=3D"$deplib $finalize_deplibs" + else + deplibs=3D"$deplib $deplibs" + test "$linkmode" =3D lib && newdependency_libs=3D"$deplib $newdep= endency_libs" + fi + continue + else # deplib is a libtool library + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdli= b, + # We need to do some special things here, and not later. + if test "X$allow_libtool_libs_with_static_runtimes" =3D "Xyes" ; th= en + case " $predeps $postdeps " in + *" $deplib "*) + if func_lalib_p "$lib"; then + library_names=3D + old_library=3D + func_source "$lib" + for l in $old_library $library_names; do + ll=3D"$l" + done + if test "X$ll" =3D "X$old_library" ; then # only static version avai= lable + found=3Dno + func_dirname "$lib" "" "." + ladir=3D"$func_dirname_result" + lib=3D$ladir/$old_library + if test "$linkmode,$pass" =3D "prog,link"; then + compile_deplibs=3D"$deplib $compile_deplibs" + finalize_deplibs=3D"$deplib $finalize_deplibs" + else + deplibs=3D"$deplib $deplibs" + test "$linkmode" =3D lib && newdependency_libs=3D"$deplib $newde= pendency_libs" + fi + continue + fi + fi + ;; + *) ;; + esac + fi + fi + ;; # -l + *.ltframework) + if test "$linkmode,$pass" =3D "prog,link"; then + compile_deplibs=3D"$deplib $compile_deplibs" + finalize_deplibs=3D"$deplib $finalize_deplibs" + else + deplibs=3D"$deplib $deplibs" + if test "$linkmode" =3D lib ; then + case "$new_inherited_linker_flags " in + *" $deplib "*) ;; + * ) new_inherited_linker_flags=3D"$new_inherited_linker_flags $dep= lib" ;; + esac + fi + fi + continue + ;; + -L*) + case $linkmode in + lib) + deplibs=3D"$deplib $deplibs" + test "$pass" =3D conv && continue + newdependency_libs=3D"$deplib $newdependency_libs" + func_stripname '-L' '' "$deplib" + newlib_search_path=3D"$newlib_search_path $func_stripname_result" + ;; + prog) + if test "$pass" =3D conv; then + deplibs=3D"$deplib $deplibs" + continue + fi + if test "$pass" =3D scan; then + deplibs=3D"$deplib $deplibs" + else + compile_deplibs=3D"$deplib $compile_deplibs" + finalize_deplibs=3D"$deplib $finalize_deplibs" + fi + func_stripname '-L' '' "$deplib" + newlib_search_path=3D"$newlib_search_path $func_stripname_result" + ;; + *) + func_warning "\`-L' is ignored for archives/objects" + ;; + esac # linkmode + continue + ;; # -L + -R*) + if test "$pass" =3D link; then + func_stripname '-R' '' "$deplib" + dir=3D$func_stripname_result + # Make sure the xrpath contains only unique directories. + case "$xrpath " in + *" $dir "*) ;; + *) xrpath=3D"$xrpath $dir" ;; + esac + fi + deplibs=3D"$deplib $deplibs" + continue + ;; + *.la) lib=3D"$deplib" ;; + *.$libext) + if test "$pass" =3D conv; then + deplibs=3D"$deplib $deplibs" + continue + fi + case $linkmode in + lib) + # Linking convenience modules into shared libraries is allowed, + # but linking other static libraries is non-portable. + case " $dlpreconveniencelibs " in + *" $deplib "*) ;; + *) + valid_a_lib=3Dno + case $deplibs_check_method in + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=3D`expr "$deplibs_check_method" : "$1 \(.*\)"` + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \ + | $EGREP "$match_pattern_regex" > /dev/null; then + valid_a_lib=3Dyes + fi + ;; + pass_all) + valid_a_lib=3Dyes + ;; + esac + if test "$valid_a_lib" !=3D yes; then + $ECHO + $ECHO "*** Warning: Trying to link with static lib archive $deplib." + $ECHO "*** I have the capability to make that library automatically li= nk in when" + $ECHO "*** you link to this library. But I can only do this if you ha= ve a" + $ECHO "*** shared version of the library, which you do not appear to h= ave" + $ECHO "*** because the file extensions .$libext of this argument makes= me believe" + $ECHO "*** that it is just a static archive that I should not use here= ." + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the" + $ECHO "*** static library $deplib is not portable!" + deplibs=3D"$deplib $deplibs" + fi + ;; + esac + continue + ;; + prog) + if test "$pass" !=3D link; then + deplibs=3D"$deplib $deplibs" + else + compile_deplibs=3D"$deplib $compile_deplibs" + finalize_deplibs=3D"$deplib $finalize_deplibs" + fi + continue + ;; + esac # linkmode + ;; # *.$libext + *.lo | *.$objext) + if test "$pass" =3D conv; then + deplibs=3D"$deplib $deplibs" + elif test "$linkmode" =3D prog; then + if test "$pass" =3D dlpreopen || test "$dlopen_support" !=3D yes ||= test "$build_libtool_libs" =3D no; then + # If there is no dlopen support or we're linking statically, + # we need to preload. + newdlprefiles=3D"$newdlprefiles $deplib" + compile_deplibs=3D"$deplib $compile_deplibs" + finalize_deplibs=3D"$deplib $finalize_deplibs" + else + newdlfiles=3D"$newdlfiles $deplib" + fi + fi + continue + ;; + %DEPLIBS%) + alldeplibs=3Dyes + continue + ;; + esac # case $deplib + + if test "$found" =3D yes || test -f "$lib"; then : + else + func_fatal_error "cannot find the library \`$lib' or unhandled argume= nt \`$deplib'" + fi + + # Check to see that this really is a libtool archive. + func_lalib_unsafe_p "$lib" \ + || func_fatal_error "\`$lib' is not a valid libtool archive" + + func_dirname "$lib" "" "." + ladir=3D"$func_dirname_result" + + dlname=3D + dlopen=3D + dlpreopen=3D + libdir=3D + library_names=3D + old_library=3D + inherited_linker_flags=3D + # If the library was installed with an old release of libtool, + # it will not redefine variables installed, or shouldnotlink + installed=3Dyes + shouldnotlink=3Dno + avoidtemprpath=3D + + + # Read the .la file + func_source "$lib" + + # Convert "-framework foo" to "foo.ltframework" + if test -n "$inherited_linker_flags"; then + tmp_inherited_linker_flags=3D`$ECHO "X$inherited_linker_flags" | $Xse= d -e 's/-framework \([^ $]*\)/\1.ltframework/g'` + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do + case " $new_inherited_linker_flags " in + *" $tmp_inherited_linker_flag "*) ;; + *) new_inherited_linker_flags=3D"$new_inherited_linker_flags $tmp= _inherited_linker_flag";; + esac + done + fi + dependency_libs=3D`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\)= .ltframework% -framework \1%g'` + if test "$linkmode,$pass" =3D "lib,link" || + test "$linkmode,$pass" =3D "prog,scan" || + { test "$linkmode" !=3D prog && test "$linkmode" !=3D lib; }; then + test -n "$dlopen" && dlfiles=3D"$dlfiles $dlopen" + test -n "$dlpreopen" && dlprefiles=3D"$dlprefiles $dlpreopen" + fi + + if test "$pass" =3D conv; then + # Only check for convenience libraries + deplibs=3D"$lib $deplibs" + if test -z "$libdir"; then + if test -z "$old_library"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + # It is a libtool convenience library, so add in its objects. + convenience=3D"$convenience $ladir/$objdir/$old_library" + old_convenience=3D"$old_convenience $ladir/$objdir/$old_library" + elif test "$linkmode" !=3D prog && test "$linkmode" !=3D lib; then + func_fatal_error "\`$lib' is not a convenience library" + fi + tmp_libs=3D + for deplib in $dependency_libs; do + deplibs=3D"$deplib $deplibs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs=3D"$specialdeplibs $deplib" ;; + esac + fi + tmp_libs=3D"$tmp_libs $deplib" + done + continue + fi # $pass =3D conv + + + # Get the name of the library we link against. + linklib=3D + for l in $old_library $library_names; do + linklib=3D"$l" + done + if test -z "$linklib"; then + func_fatal_error "cannot find name of link library for \`$lib'" + fi + + # This library was specified with -dlopen. + if test "$pass" =3D dlopen; then + if test -z "$libdir"; then + func_fatal_error "cannot -dlopen a convenience library: \`$lib'" + fi + if test -z "$dlname" || + test "$dlopen_support" !=3D yes || + test "$build_libtool_libs" =3D no; then + # If there is no dlname, no dlopen support or we're linking + # statically, we need to preload. We also need to preload any + # dependent libraries so libltdl's deplib preloader doesn't + # bomb out in the load deplibs phase. + dlprefiles=3D"$dlprefiles $lib $dependency_libs" + else + newdlfiles=3D"$newdlfiles $lib" + fi + continue + fi # $pass =3D dlopen + + # We need an absolute path. + case $ladir in + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=3D"$ladir" ;; + *) + abs_ladir=3D`cd "$ladir" && pwd` + if test -z "$abs_ladir"; then + func_warning "cannot determine absolute directory name of \`$ladir'= " + func_warning "passing it literally to the linker, although it might= fail" + abs_ladir=3D"$ladir" + fi + ;; + esac + func_basename "$lib" + laname=3D"$func_basename_result" + + # Find the relevant object directory and library name. + if test "X$installed" =3D Xyes; then + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; the= n + func_warning "library \`$lib' was moved." + dir=3D"$ladir" + absdir=3D"$abs_ladir" + libdir=3D"$abs_ladir" + else + dir=3D"$libdir" + absdir=3D"$libdir" + fi + test "X$hardcode_automatic" =3D Xyes && avoidtemprpath=3Dyes + else + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linkli= b"; then + dir=3D"$ladir" + absdir=3D"$abs_ladir" + # Remove this search path later + notinst_path=3D"$notinst_path $abs_ladir" + else + dir=3D"$ladir/$objdir" + absdir=3D"$abs_ladir/$objdir" + # Remove this search path later + notinst_path=3D"$notinst_path $abs_ladir" + fi + fi # $installed =3D yes + func_stripname 'lib' '.la' "$laname" + name=3D$func_stripname_result + + # This library was specified with -dlpreopen. + if test "$pass" =3D dlpreopen; then + if test -z "$libdir" && test "$linkmode" =3D prog; then + func_fatal_error "only libraries may -dlpreopen a convenience libra= ry: \`$lib'" + fi + # Prefer using a static library (so that no silly _DYNAMIC symbols + # are required to link). + if test -n "$old_library"; then + newdlprefiles=3D"$newdlprefiles $dir/$old_library" + # Keep a list of preopened convenience libraries to check + # that they are being used correctly in the link pass. + test -z "$libdir" && \ + dlpreconveniencelibs=3D"$dlpreconveniencelibs $dir/$old_library" + # Otherwise, use the dlname, so that lt_dlopen finds it. + elif test -n "$dlname"; then + newdlprefiles=3D"$newdlprefiles $dir/$dlname" + else + newdlprefiles=3D"$newdlprefiles $dir/$linklib" + fi + fi # $pass =3D dlpreopen + + if test -z "$libdir"; then + # Link the convenience library + if test "$linkmode" =3D lib; then + deplibs=3D"$dir/$old_library $deplibs" + elif test "$linkmode,$pass" =3D "prog,link"; then + compile_deplibs=3D"$dir/$old_library $compile_deplibs" + finalize_deplibs=3D"$dir/$old_library $finalize_deplibs" + else + deplibs=3D"$lib $deplibs" # used for prog,scan pass + fi + continue + fi + + + if test "$linkmode" =3D prog && test "$pass" !=3D link; then + newlib_search_path=3D"$newlib_search_path $ladir" + deplibs=3D"$lib $deplibs" + + linkalldeplibs=3Dno + if test "$link_all_deplibs" !=3D no || test -z "$library_names" || + test "$build_libtool_libs" =3D no; then + linkalldeplibs=3Dyes + fi + + tmp_libs=3D + for deplib in $dependency_libs; do + case $deplib in + -L*) func_stripname '-L' '' "$deplib" + newlib_search_path=3D"$newlib_search_path $func_stripname_resu= lt" + ;; + esac + # Need to link against all dependency_libs? + if test "$linkalldeplibs" =3D yes; then + deplibs=3D"$deplib $deplibs" + else + # Need to hardcode shared library paths + # or/and link against static libraries + newdependency_libs=3D"$deplib $newdependency_libs" + fi + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs=3D"$specialdeplibs $deplib" ;; + esac + fi + tmp_libs=3D"$tmp_libs $deplib" + done # for deplib + continue + fi # $linkmode =3D prog... + + if test "$linkmode,$pass" =3D "prog,link"; then + if test -n "$library_names" && + { { test "$prefer_static_libs" =3D no || + test "$prefer_static_libs,$installed" =3D "built,yes"; } || + test -z "$old_library"; }; then + # We need to hardcode the library path + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then + # Make sure the rpath contains only unique directories. + case "$temp_rpath:" in + *"$absdir:"*) ;; + *) temp_rpath=3D"$temp_rpath$absdir:" ;; + esac + fi + + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath=3D"$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath=3D"$finalize_rpath $libdir" + esac + ;; + esac + fi # $linkmode,$pass =3D prog,link... + + if test "$alldeplibs" =3D yes && + { test "$deplibs_check_method" =3D pass_all || + { test "$build_libtool_libs" =3D yes && + test -n "$library_names"; }; }; then + # We only need to search for static libraries + continue + fi + fi + + link_static=3Dno # Whether the deplib will be linked statically + use_static_libs=3D$prefer_static_libs + if test "$use_static_libs" =3D built && test "$installed" =3D yes; then + use_static_libs=3Dno + fi + if test -n "$library_names" && + { test "$use_static_libs" =3D no || test -z "$old_library"; }; then + case $host in + *cygwin* | *mingw* | *cegcc*) + # No point in relinking DLLs because paths are not encoded + notinst_deplibs=3D"$notinst_deplibs $lib" + need_relink=3Dno + ;; + *) + if test "$installed" =3D no; then + notinst_deplibs=3D"$notinst_deplibs $lib" + need_relink=3Dyes + fi + ;; + esac + # This is a shared library + + # Warn about portability, can't link against -module's on some + # systems (darwin). Don't bleat about dlopened modules though! + dlopenmodule=3D"" + for dlpremoduletest in $dlprefiles; do + if test "X$dlpremoduletest" =3D "X$lib"; then + dlopenmodule=3D"$dlpremoduletest" + break + fi + done + if test -z "$dlopenmodule" && test "$shouldnotlink" =3D yes && test "= $pass" =3D link; then + $ECHO + if test "$linkmode" =3D prog; then + $ECHO "*** Warning: Linking the executable $output against the lo= adable module" + else + $ECHO "*** Warning: Linking the shared library $output against th= e loadable module" + fi + $ECHO "*** $linklib is not portable!" + fi + if test "$linkmode" =3D lib && + test "$hardcode_into_libs" =3D yes; then + # Hardcode the library path. + # Skip directories that are in the system default run-time + # search path. + case " $sys_lib_dlsearch_path " in + *" $absdir "*) ;; + *) + case "$compile_rpath " in + *" $absdir "*) ;; + *) compile_rpath=3D"$compile_rpath $absdir" + esac + ;; + esac + case " $sys_lib_dlsearch_path " in + *" $libdir "*) ;; + *) + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath=3D"$finalize_rpath $libdir" + esac + ;; + esac + fi + + if test -n "$old_archive_from_expsyms_cmds"; then + # figure out the soname + set dummy $library_names + shift + realname=3D"$1" + shift + libname=3D`eval "\\$ECHO \"$libname_spec\""` + # use dlname if we got it. it's perfectly good, no? + if test -n "$dlname"; then + soname=3D"$dlname" + elif test -n "$soname_spec"; then + # bleh windows + case $host in + *cygwin* | mingw* | *cegcc*) + func_arith $current - $age + major=3D$func_arith_result + versuffix=3D"-$major" + ;; + esac + eval soname=3D\"$soname_spec\" + else + soname=3D"$realname" + fi + + # Make a new name for the extract_expsyms_cmds to use + soroot=3D"$soname" + func_basename "$soroot" + soname=3D"$func_basename_result" + func_stripname 'lib' '.dll' "$soname" + newlib=3Dlibimp-$func_stripname_result.a + + # If the library has no export list, then create one now + if test -f "$output_objdir/$soname-def"; then : + else + func_verbose "extracting exported symbol list from \`$soname'" + func_execute_cmds "$extract_expsyms_cmds" 'exit $?' + fi + + # Create $newlib + if test -f "$output_objdir/$newlib"; then :; else + func_verbose "generating import library for \`$soname'" + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?' + fi + # make sure the library variables are pointing to the new library + dir=3D$output_objdir + linklib=3D$newlib + fi # test -n "$old_archive_from_expsyms_cmds" + + if test "$linkmode" =3D prog || test "$mode" !=3D relink; then + add_shlibpath=3D + add_dir=3D + add=3D + lib_linked=3Dyes + case $hardcode_action in + immediate | unsupported) + if test "$hardcode_direct" =3D no; then + add=3D"$dir/$linklib" + case $host in + *-*-sco3.2v5.0.[024]*) add_dir=3D"-L$dir" ;; + *-*-sysv4*uw2*) add_dir=3D"-L$dir" ;; + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \ + *-*-unixware7*) add_dir=3D"-L$dir" ;; + *-*-darwin* ) + # if the lib is a (non-dlopened) module then we can not + # link against it, someone is ignoring the earlier warnings + if /usr/bin/file -L $add 2> /dev/null | + $GREP ": [^:]* bundle" >/dev/null ; then + if test "X$dlopenmodule" !=3D "X$lib"; then + $ECHO "*** Warning: lib $linklib is a module, not a shared library" + if test -z "$old_library" ; then + $ECHO + $ECHO "*** And there doesn't seem to be a static archive available" + $ECHO "*** The link will probably fail, sorry" + else + add=3D"$dir/$old_library" + fi + elif test -n "$old_library"; then + add=3D"$dir/$old_library" + fi + fi + esac + elif test "$hardcode_minus_L" =3D no; then + case $host in + *-*-sunos*) add_shlibpath=3D"$dir" ;; + esac + add_dir=3D"-L$dir" + add=3D"-l$name" + elif test "$hardcode_shlibpath_var" =3D no; then + add_shlibpath=3D"$dir" + add=3D"-l$name" + else + lib_linked=3Dno + fi + ;; + relink) + if test "$hardcode_direct" =3D yes && + test "$hardcode_direct_absolute" =3D no; then + add=3D"$dir/$linklib" + elif test "$hardcode_minus_L" =3D yes; then + add_dir=3D"-L$dir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir=3D"$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add=3D"-l$name" + elif test "$hardcode_shlibpath_var" =3D yes; then + add_shlibpath=3D"$dir" + add=3D"-l$name" + else + lib_linked=3Dno + fi + ;; + *) lib_linked=3Dno ;; + esac + + if test "$lib_linked" !=3D yes; then + func_fatal_configuration "unsupported hardcode properties" + fi + + if test -n "$add_shlibpath"; then + case :$compile_shlibpath: in + *":$add_shlibpath:"*) ;; + *) compile_shlibpath=3D"$compile_shlibpath$add_shlibpath:" ;; + esac + fi + if test "$linkmode" =3D prog; then + test -n "$add_dir" && compile_deplibs=3D"$add_dir $compile_deplib= s" + test -n "$add" && compile_deplibs=3D"$add $compile_deplibs" + else + test -n "$add_dir" && deplibs=3D"$add_dir $deplibs" + test -n "$add" && deplibs=3D"$add $deplibs" + if test "$hardcode_direct" !=3D yes && + test "$hardcode_minus_L" !=3D yes && + test "$hardcode_shlibpath_var" =3D yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath=3D"$finalize_shlibpath$libdir:" ;; + esac + fi + fi + fi + + if test "$linkmode" =3D prog || test "$mode" =3D relink; then + add_shlibpath=3D + add_dir=3D + add=3D + # Finalize command for both is simple: just hardcode it. + if test "$hardcode_direct" =3D yes && + test "$hardcode_direct_absolute" =3D no; then + add=3D"$libdir/$linklib" + elif test "$hardcode_minus_L" =3D yes; then + add_dir=3D"-L$libdir" + add=3D"-l$name" + elif test "$hardcode_shlibpath_var" =3D yes; then + case :$finalize_shlibpath: in + *":$libdir:"*) ;; + *) finalize_shlibpath=3D"$finalize_shlibpath$libdir:" ;; + esac + add=3D"-l$name" + elif test "$hardcode_automatic" =3D yes; then + if test -n "$inst_prefix_dir" && + test -f "$inst_prefix_dir$libdir/$linklib" ; then + add=3D"$inst_prefix_dir$libdir/$linklib" + else + add=3D"$libdir/$linklib" + fi + else + # We cannot seem to hardcode it, guess we'll fake it. + add_dir=3D"-L$libdir" + # Try looking first in the location we're being installed to. + if test -n "$inst_prefix_dir"; then + case $libdir in + [\\/]*) + add_dir=3D"$add_dir -L$inst_prefix_dir$libdir" + ;; + esac + fi + add=3D"-l$name" + fi + + if test "$linkmode" =3D prog; then + test -n "$add_dir" && finalize_deplibs=3D"$add_dir $finalize_depl= ibs" + test -n "$add" && finalize_deplibs=3D"$add $finalize_deplibs" + else + test -n "$add_dir" && deplibs=3D"$add_dir $deplibs" + test -n "$add" && deplibs=3D"$add $deplibs" + fi + fi + elif test "$linkmode" =3D prog; then + # Here we assume that one of hardcode_direct or hardcode_minus_L + # is not unsupported. This is valid on all known static and + # shared platforms. + if test "$hardcode_direct" !=3D unsupported; then + test -n "$old_library" && linklib=3D"$old_library" + compile_deplibs=3D"$dir/$linklib $compile_deplibs" + finalize_deplibs=3D"$dir/$linklib $finalize_deplibs" + else + compile_deplibs=3D"-l$name -L$dir $compile_deplibs" + finalize_deplibs=3D"-l$name -L$dir $finalize_deplibs" + fi + elif test "$build_libtool_libs" =3D yes; then + # Not a shared library + if test "$deplibs_check_method" !=3D pass_all; then + # We're trying link a shared library against a static one + # but the system doesn't support it. + + # Just print a warning and add the library to dependency_libs so + # that the program can be linked against the static library. + $ECHO + $ECHO "*** Warning: This system can not link to static lib archive = $lib." + $ECHO "*** I have the capability to make that library automatically= link in when" + $ECHO "*** you link to this library. But I can only do this if you= have a" + $ECHO "*** shared version of the library, which you do not appear t= o have." + if test "$module" =3D yes; then + $ECHO "*** But as you try to build a module library, libtool will= still create " + $ECHO "*** a static module, that should work as long as the dlope= ning application" + $ECHO "*** is linked with the -dlopen flag to resolve symbols at = runtime." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to extrac= t symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtoo= l could" + $ECHO "*** not find such a program. So, this module is probably usele= ss." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" =3D no; then + build_libtool_libs=3Dmodule + build_old_libs=3Dyes + else + build_libtool_libs=3Dno + fi + fi + else + deplibs=3D"$dir/$old_library $deplibs" + link_static=3Dyes + fi + fi # link shared/static library? + + if test "$linkmode" =3D lib; then + if test -n "$dependency_libs" && + { test "$hardcode_into_libs" !=3D yes || + test "$build_old_libs" =3D yes || + test "$link_static" =3D yes; }; then + # Extract -R from dependency_libs + temp_deplibs=3D + for libdir in $dependency_libs; do + case $libdir in + -R*) func_stripname '-R' '' "$libdir" + temp_xrpath=3D$func_stripname_result + case " $xrpath " in + *" $temp_xrpath "*) ;; + *) xrpath=3D"$xrpath $temp_xrpath";; + esac;; + *) temp_deplibs=3D"$temp_deplibs $libdir";; + esac + done + dependency_libs=3D"$temp_deplibs" + fi + + newlib_search_path=3D"$newlib_search_path $absdir" + # Link against this library + test "$link_static" =3D no && newdependency_libs=3D"$abs_ladir/$lanam= e $newdependency_libs" + # ... and its dependency_libs + tmp_libs=3D + for deplib in $dependency_libs; do + newdependency_libs=3D"$deplib $newdependency_libs" + if $opt_duplicate_deps ; then + case "$tmp_libs " in + *" $deplib "*) specialdeplibs=3D"$specialdeplibs $deplib" ;; + esac + fi + tmp_libs=3D"$tmp_libs $deplib" + done + + if test "$link_all_deplibs" !=3D no; then + # Add the search paths of all dependency libraries + for deplib in $dependency_libs; do + case $deplib in + -L*) path=3D"$deplib" ;; + *.la) + func_dirname "$deplib" "" "." + dir=3D"$func_dirname_result" + # We need an absolute path. + case $dir in + [\\/]* | [A-Za-z]:[\\/]*) absdir=3D"$dir" ;; + *) + absdir=3D`cd "$dir" && pwd` + if test -z "$absdir"; then + func_warning "cannot determine absolute directory name of \`$dir'" + absdir=3D"$dir" + fi + ;; + esac + if $GREP "^installed=3Dno" $deplib > /dev/null; then + case $host in + *-*-darwin*) + depdepl=3D + eval deplibrary_names=3D`${SED} -n -e 's/^library_names=3D\(.*\)$/\1= /p' $deplib` + if test -n "$deplibrary_names" ; then + for tmp in $deplibrary_names ; do + depdepl=3D$tmp + done + if test -f "$absdir/$objdir/$depdepl" ; then + depdepl=3D"$absdir/$objdir/$depdepl" + darwin_install_name=3D`${OTOOL} -L $depdepl | awk '{if (NR =3D=3D= 2) {print $1;exit}}'` + if test -z "$darwin_install_name"; then + darwin_install_name=3D`${OTOOL64} -L $depdepl = | awk '{if (NR =3D=3D 2) {print $1;exit}}'` + fi + compiler_flags=3D"$compiler_flags ${wl}-dylib_file ${wl}${darwin= _install_name}:${depdepl}" + linker_flags=3D"$linker_flags -dylib_file ${darwin_install_name}= :${depdepl}" + path=3D + fi + fi + ;; + *) + path=3D"-L$absdir/$objdir" + ;; + esac + else + eval libdir=3D`${SED} -n -e 's/^libdir=3D\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + test "$absdir" !=3D "$libdir" && \ + func_warning "\`$deplib' seems to be moved" + + path=3D"-L$absdir" + fi + ;; + esac + case " $deplibs " in + *" $path "*) ;; + *) deplibs=3D"$path $deplibs" ;; + esac + done + fi # link_all_deplibs !=3D no + fi # linkmode =3D lib + done # for deplib in $libs + if test "$pass" =3D link; then + if test "$linkmode" =3D "prog"; then + compile_deplibs=3D"$new_inherited_linker_flags $compile_deplibs" + finalize_deplibs=3D"$new_inherited_linker_flags $finalize_deplibs" + else + compiler_flags=3D"$compiler_flags "`$ECHO "X $new_inherited_linker_fl= ags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + fi + fi + dependency_libs=3D"$newdependency_libs" + if test "$pass" =3D dlpreopen; then + # Link the dlpreopened libraries before other libraries + for deplib in $save_deplibs; do + deplibs=3D"$deplib $deplibs" + done + fi + if test "$pass" !=3D dlopen; then + if test "$pass" !=3D conv; then + # Make sure lib_search_path contains only unique directories. + lib_search_path=3D + for dir in $newlib_search_path; do + case "$lib_search_path " in + *" $dir "*) ;; + *) lib_search_path=3D"$lib_search_path $dir" ;; + esac + done + newlib_search_path=3D + fi + + if test "$linkmode,$pass" !=3D "prog,link"; then + vars=3D"deplibs" + else + vars=3D"compile_deplibs finalize_deplibs" + fi + for var in $vars dependency_libs; do + # Add libraries to $var in reverse order + eval tmp_libs=3D\"\$$var\" + new_libs=3D + for deplib in $tmp_libs; do + # FIXME: Pedantically, this is the right thing to do, so + # that some nasty dependency loop isn't accidentally + # broken: + #new_libs=3D"$deplib $new_libs" + # Pragmatically, this seems to cause very few problems in + # practice: + case $deplib in + -L*) new_libs=3D"$deplib $new_libs" ;; + -R*) ;; + *) + # And here is the reason: when a library appears more + # than once as an explicit dependence of a library, or + # is implicitly linked in more than once by the + # compiler, it is considered special, and multiple + # occurrences thereof are not removed. Compare this + # with having the same library being listed as a + # dependency of multiple other libraries: in this case, + # we know (pedantically, we assume) the library does not + # need to be listed more than once, so we keep only the + # last copy. This is not always right, but it is rare + # enough that we require users that really mean to play + # such unportable linking tricks to link the library + # using -Wl,-lname, so that libtool does not consider it + # for duplicate removal. + case " $specialdeplibs " in + *" $deplib "*) new_libs=3D"$deplib $new_libs" ;; + *) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs=3D"$deplib $new_libs" ;; + esac + ;; + esac + ;; + esac + done + tmp_libs=3D + for deplib in $new_libs; do + case $deplib in + -L*) + case " $tmp_libs " in + *" $deplib "*) ;; + *) tmp_libs=3D"$tmp_libs $deplib" ;; + esac + ;; + *) tmp_libs=3D"$tmp_libs $deplib" ;; + esac + done + eval $var=3D\"$tmp_libs\" + done # for var + fi + # Last step: remove runtime libs from dependency_libs + # (they stay in deplibs) + tmp_libs=3D + for i in $dependency_libs ; do + case " $predeps $postdeps $compiler_lib_search_path " in + *" $i "*) + i=3D"" + ;; + esac + if test -n "$i" ; then + tmp_libs=3D"$tmp_libs $i" + fi + done + dependency_libs=3D$tmp_libs + done # for pass + if test "$linkmode" =3D prog; then + dlfiles=3D"$newdlfiles" + fi + if test "$linkmode" =3D prog || test "$linkmode" =3D lib; then + dlprefiles=3D"$newdlprefiles" + fi + + case $linkmode in + oldlib) + if test -n "$dlfiles$dlprefiles" || test "$dlself" !=3D no; then + func_warning "\`-dlopen' is ignored for archives" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for archives" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for archives" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for archives" + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for archives" + + test -n "$release" && \ + func_warning "\`-release' is ignored for archives" + + test -n "$export_symbols$export_symbols_regex" && \ + func_warning "\`-export-symbols' is ignored for archives" + + # Now set the variables for building old libraries. + build_libtool_libs=3Dno + oldlibs=3D"$output" + objs=3D"$objs$old_deplibs" + ;; + + lib) + # Make sure we only generate libraries of the form `libNAME.la'. + case $outputname in + lib*) + func_stripname 'lib' '.la' "$outputname" + name=3D$func_stripname_result + eval shared_ext=3D\"$shrext_cmds\" + eval libname=3D\"$libname_spec\" + ;; + *) + test "$module" =3D no && \ + func_fatal_help "libtool library \`$output' must begin with \`lib'" + + if test "$need_lib_prefix" !=3D no; then + # Add the "lib" prefix for modules if required + func_stripname '' '.la' "$outputname" + name=3D$func_stripname_result + eval shared_ext=3D\"$shrext_cmds\" + eval libname=3D\"$libname_spec\" + else + func_stripname '' '.la' "$outputname" + libname=3D$func_stripname_result + fi + ;; + esac + + if test -n "$objs"; then + if test "$deplibs_check_method" !=3D pass_all; then + func_fatal_error "cannot build libtool library \`$output' from non-li= btool objects on this host:$objs" + else + $ECHO + $ECHO "*** Warning: Linking the shared library $output against the no= n-libtool" + $ECHO "*** objects $objs is not portable!" + libobjs=3D"$libobjs $objs" + fi + fi + + test "$dlself" !=3D no && \ + func_warning "\`-dlopen self' is ignored for libtool libraries" + + set dummy $rpath + shift + test "$#" -gt 1 && \ + func_warning "ignoring multiple \`-rpath's for a libtool library" + + install_libdir=3D"$1" + + oldlibs=3D + if test -z "$rpath"; then + if test "$build_libtool_libs" =3D yes; then + # Building a libtool convenience library. + # Some compilers have problems with a `.al' extension so + # convenience libraries should have the same extension an + # archive normally would. + oldlibs=3D"$output_objdir/$libname.$libext $oldlibs" + build_libtool_libs=3Dconvenience + build_old_libs=3Dyes + fi + + test -n "$vinfo" && \ + func_warning "\`-version-info/-version-number' is ignored for conveni= ence libraries" + + test -n "$release" && \ + func_warning "\`-release' is ignored for convenience libraries" + else + + # Parse the version information argument. + save_ifs=3D"$IFS"; IFS=3D':' + set dummy $vinfo 0 0 0 + shift + IFS=3D"$save_ifs" + + test -n "$7" && \ + func_fatal_help "too many parameters to \`-version-info'" + + # convert absolute version numbers to libtool ages + # this retains compatibility with .la files and attempts + # to make the code below a bit more comprehensible + + case $vinfo_number in + yes) + number_major=3D"$1" + number_minor=3D"$2" + number_revision=3D"$3" + # + # There are really only two kinds -- those that + # use the current revision as the major version + # and those that subtract age and use age as + # a minor version. But, then there is irix + # which has an extra 1 added just for fun + # + case $version_type in + darwin|linux|osf|windows|none) + func_arith $number_major + $number_minor + current=3D$func_arith_result + age=3D"$number_minor" + revision=3D"$number_revision" + ;; + freebsd-aout|freebsd-elf|sunos) + current=3D"$number_major" + revision=3D"$number_minor" + age=3D"0" + ;; + irix|nonstopux) + func_arith $number_major + $number_minor + current=3D$func_arith_result + age=3D"$number_minor" + revision=3D"$number_minor" + lt_irix_increment=3Dno + ;; + esac + ;; + no) + current=3D"$1" + revision=3D"$2" + age=3D"$3" + ;; + esac + + # Check that each of the things are valid numbers. + case $current in + 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]) ;; + *) + func_error "CURRENT \`$current' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $revision in + 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]) ;; + *) + func_error "REVISION \`$revision' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + case $age in + 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]) ;; + *) + func_error "AGE \`$age' must be a nonnegative integer" + func_fatal_error "\`$vinfo' is not valid version information" + ;; + esac + + if test "$age" -gt "$current"; then + func_error "AGE \`$age' is greater than the current interface number = \`$current'" + func_fatal_error "\`$vinfo' is not valid version information" + fi + + # Calculate the version variables. + major=3D + versuffix=3D + verstring=3D + case $version_type in + none) ;; + + darwin) + # Like Linux, but with the current version available in + # verstring for coding it into the library header + func_arith $current - $age + major=3D.$func_arith_result + versuffix=3D"$major.$age.$revision" + # Darwin ld doesn't like 0 for these options... + func_arith $current + 1 + minor_current=3D$func_arith_result + xlcverstring=3D"${wl}-compatibility_version ${wl}$minor_current ${wl}= -current_version ${wl}$minor_current.$revision" + verstring=3D"-compatibility_version $minor_current -current_version $= minor_current.$revision" + ;; + + freebsd-aout) + major=3D".$current" + versuffix=3D".$current.$revision"; + ;; + + freebsd-elf) + major=3D".$current" + versuffix=3D".$current" + ;; + + irix | nonstopux) + if test "X$lt_irix_increment" =3D "Xno"; then + func_arith $current - $age + else + func_arith $current - $age + 1 + fi + major=3D$func_arith_result + + case $version_type in + nonstopux) verstring_prefix=3Dnonstopux ;; + *) verstring_prefix=3Dsgi ;; + esac + verstring=3D"$verstring_prefix$major.$revision" + + # Add in all the interfaces that we are compatible with. + loop=3D$revision + while test "$loop" -ne 0; do + func_arith $revision - $loop + iface=3D$func_arith_result + func_arith $loop - 1 + loop=3D$func_arith_result + verstring=3D"$verstring_prefix$major.$iface:$verstring" + done + + # Before this point, $major must not contain `.'. + major=3D.$major + versuffix=3D"$major.$revision" + ;; + + linux) + func_arith $current - $age + major=3D.$func_arith_result + versuffix=3D"$major.$age.$revision" + ;; + + osf) + func_arith $current - $age + major=3D.$func_arith_result + versuffix=3D".$current.$age.$revision" + verstring=3D"$current.$age.$revision" + + # Add in all the interfaces that we are compatible with. + loop=3D$age + while test "$loop" -ne 0; do + func_arith $current - $loop + iface=3D$func_arith_result + func_arith $loop - 1 + loop=3D$func_arith_result + verstring=3D"$verstring:${iface}.0" + done + + # Make executables depend on our current version. + verstring=3D"$verstring:${current}.0" + ;; + + qnx) + major=3D".$current" + versuffix=3D".$current" + ;; + + sunos) + major=3D".$current" + versuffix=3D".$current.$revision" + ;; + + windows) + # Use '-' rather than '.', since we only want one + # extension on DOS 8.3 filesystems. + func_arith $current - $age + major=3D$func_arith_result + versuffix=3D"-$major" + ;; + + *) + func_fatal_configuration "unknown library version type \`$version_typ= e'" + ;; + esac + + # Clear the version info if we defaulted, and they specified a release. + if test -z "$vinfo" && test -n "$release"; then + major=3D + case $version_type in + darwin) + # we can't check for "0.0" in archive_cmds due to quoting + # problems, so we reset it completely + verstring=3D + ;; + *) + verstring=3D"0.0" + ;; + esac + if test "$need_version" =3D no; then + versuffix=3D + else + versuffix=3D".0.0" + fi + fi + + # Remove version info from name if versioning should be avoided + if test "$avoid_version" =3D yes && test "$need_version" =3D no; then + major=3D + versuffix=3D + verstring=3D"" + fi + + # Check to see if the archive will have undefined symbols. + if test "$allow_undefined" =3D yes; then + if test "$allow_undefined_flag" =3D unsupported; then + func_warning "undefined symbols not allowed in $host shared librari= es" + build_libtool_libs=3Dno + build_old_libs=3Dyes + fi + else + # Don't allow undefined symbols. + allow_undefined_flag=3D"$no_undefined_flag" + fi + + fi + + func_generate_dlsyms "$libname" "$libname" "yes" + libobjs=3D"$libobjs $symfileobj" + test "X$libobjs" =3D "X " && libobjs=3D + + if test "$mode" !=3D relink; then + # Remove our outputs, but don't remove object files since they + # may have been created when compiling PIC objects. + removelist=3D + tempremovelist=3D`$ECHO "$output_objdir/*"` + for p in $tempremovelist; do + case $p in + *.$objext | *.gcno) + ;; + $output_objdir/$outputname | $output_objdir/$libname.* | $output_ob= jdir/${libname}${release}.*) + if test "X$precious_files_regex" !=3D "X"; then + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1 + then + continue + fi + fi + removelist=3D"$removelist $p" + ;; + *) ;; + esac + done + test -n "$removelist" && \ + func_show_eval "${RM}r \$removelist" + fi + + # Now set the variables for building old libraries. + if test "$build_old_libs" =3D yes && test "$build_libtool_libs" !=3D= convenience ; then + oldlibs=3D"$oldlibs $output_objdir/$libname.$libext" + + # Transform .lo files to .o files. + oldobjs=3D"$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}= '$/d' -e "$lo2o" | $NL2SP` + fi + + # Eliminate all temporary directories. + #for path in $notinst_path; do + # lib_search_path=3D`$ECHO "X$lib_search_path " | $Xsed -e "s% $pa= th % %g"` + # deplibs=3D`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"` + # dependency_libs=3D`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$= path % %g"` + #done + + if test -n "$xrpath"; then + # If the user specified any rpath flags, then add them. + temp_xrpath=3D + for libdir in $xrpath; do + temp_xrpath=3D"$temp_xrpath -R$libdir" + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath=3D"$finalize_rpath $libdir" ;; + esac + done + if test "$hardcode_into_libs" !=3D yes || test "$build_old_libs" =3D ye= s; then + dependency_libs=3D"$temp_xrpath $dependency_libs" + fi + fi + + # Make sure dlfiles contains only unique files that won't be dlpre= opened + old_dlfiles=3D"$dlfiles" + dlfiles=3D + for lib in $old_dlfiles; do + case " $dlprefiles $dlfiles " in + *" $lib "*) ;; + *) dlfiles=3D"$dlfiles $lib" ;; + esac + done + + # Make sure dlprefiles contains only unique files + old_dlprefiles=3D"$dlprefiles" + dlprefiles=3D + for lib in $old_dlprefiles; do + case "$dlprefiles " in + *" $lib "*) ;; + *) dlprefiles=3D"$dlprefiles $lib" ;; + esac + done + + if test "$build_libtool_libs" =3D yes; then + if test -n "$rpath"; then + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc= *) + # these systems don't actually have a c library (as such)! + ;; + *-*-rhapsody* | *-*-darwin1.[012]) + # Rhapsody C library is in the System framework + deplibs=3D"$deplibs System.ltframework" + ;; + *-*-netbsd*) + # Don't link with libc until the a.out ld.so is fixed. + ;; + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + # Do not include libc due to us having libc/libc_r. + ;; + *-*-sco3.2v5* | *-*-sco5v6*) + # Causes problems with __ctype + ;; + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*) + # Compiler inserts libc in the correct place for threads to work + ;; + *) + # Add libc to deplibs on all other systems if necessary. + if test "$build_libtool_need_lc" =3D "yes"; then + deplibs=3D"$deplibs -lc" + fi + ;; + esac + fi + + # Transform deplibs into only deplibs that can be linked in shared. + name_save=3D$name + libname_save=3D$libname + release_save=3D$release + versuffix_save=3D$versuffix + major_save=3D$major + # I'm not sure if I'm treating the release correctly. I think + # release should show up in the -l (ie -lgmp5) so we don't want to + # add it in twice. Is that correct? + release=3D"" + versuffix=3D"" + major=3D"" + newdeplibs=3D + droppeddeps=3Dno + case $deplibs_check_method in + pass_all) + # Don't check for shared/static. Everything works. + # This might be a little naive. We might want to check + # whether the library exists or not. But this is on + # osf3 & osf4 and I'm not really sure... Just + # implementing what was already the behavior. + newdeplibs=3D$deplibs + ;; + test_compile) + # This code stresses the "libraries are programs" paradigm to its + # limits. Maybe even breaks it. We compile a program, linking it + # against the deplibs as a proxy for the library. Then we can check + # whether they linked in statically or dynamically with ldd. + $opt_dry_run || $RM conftest.c + cat > conftest.c </dev/null` + for potent_lib in $potential_libs; do + # Follow soft links. + if ls -lLd "$potent_lib" 2>/dev/null | + $GREP " -> " >/dev/null; then + continue + fi + # The statement above tries to avoid entering an + # endless loop below, in case of cyclic links. + # We might still enter an endless loop, since a link + # loop can be closed while we follow links, + # but so what? + potlib=3D"$potent_lib" + while test -h "$potlib" 2>/dev/null; do + potliblink=3D`ls -ld $potlib | ${SED} 's/.* -> //'` + case $potliblink in + [\\/]* | [A-Za-z]:[\\/]*) potlib=3D"$potliblink";; + *) potlib=3D`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; + esac + done + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | + $SED -e 10q | + $EGREP "$file_magic_regex" > /dev/null; then + newdeplibs=3D"$newdeplibs $a_deplib" + a_deplib=3D"" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=3Dyes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a= _deplib." + $ECHO "*** I have the capability to make that library automatically li= nk in when" + $ECHO "*** you link to this library. But I can only do this if you ha= ve a" + $ECHO "*** shared version of the library, which you do not appear to h= ave" + $ECHO "*** because I did check the linker path looking for a file star= ting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for file = magic test)" + else + $ECHO "*** with $libname and none of the candidates passed a file fo= rmat test" + $ECHO "*** using a file magic. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs=3D"$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + match_pattern*) + set dummy $deplibs_check_method; shift + match_pattern_regex=3D`expr "$deplibs_check_method" : "$1 \(.*\)"` + for a_deplib in $deplibs; do + case $a_deplib in + -l*) + func_stripname -l '' "$a_deplib" + name=3D$func_stripname_result + if test "X$allow_libtool_libs_with_static_runtimes" =3D "Xyes" ; = then + case " $predeps $postdeps " in + *" $a_deplib "*) + newdeplibs=3D"$newdeplibs $a_deplib" + a_deplib=3D"" + ;; + esac + fi + if test -n "$a_deplib" ; then + libname=3D`eval "\\$ECHO \"$libname_spec\""` + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do + potential_libs=3D`ls $i/$libname[.-]* 2>/dev/null` + for potent_lib in $potential_libs; do + potlib=3D"$potent_lib" # see symlink-check above in file_magic tes= t + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \ + $EGREP "$match_pattern_regex" > /dev/null; then + newdeplibs=3D"$newdeplibs $a_deplib" + a_deplib=3D"" + break 2 + fi + done + done + fi + if test -n "$a_deplib" ; then + droppeddeps=3Dyes + $ECHO + $ECHO "*** Warning: linker path does not have real file for library $a= _deplib." + $ECHO "*** I have the capability to make that library automatically li= nk in when" + $ECHO "*** you link to this library. But I can only do this if you ha= ve a" + $ECHO "*** shared version of the library, which you do not appear to h= ave" + $ECHO "*** because I did check the linker path looking for a file star= ting" + if test -z "$potlib" ; then + $ECHO "*** with $libname but no candidates were found. (...for regex= pattern test)" + else + $ECHO "*** with $libname and none of the candidates passed a file fo= rmat test" + $ECHO "*** using a regex pattern. Last file checked: $potlib" + fi + fi + ;; + *) + # Add a -L argument. + newdeplibs=3D"$newdeplibs $a_deplib" + ;; + esac + done # Gone through all deplibs. + ;; + none | unknown | *) + newdeplibs=3D"" + tmp_deplibs=3D`$ECHO "X $deplibs" | $Xsed \ + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'` + if test "X$allow_libtool_libs_with_static_runtimes" =3D "Xyes" ; then + for i in $predeps $postdeps ; do + # can't use Xsed below, because $i might contain '/' + tmp_deplibs=3D`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"` + done + fi + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' | + $GREP . >/dev/null; then + $ECHO + if test "X$deplibs_check_method" =3D "Xnone"; then + $ECHO "*** Warning: inter-library dependencies are not supported = in this platform." + else + $ECHO "*** Warning: inter-library dependencies are not known to b= e supported." + fi + $ECHO "*** All declared inter-library dependencies are being droppe= d." + droppeddeps=3Dyes + fi + ;; + esac + versuffix=3D$versuffix_save + major=3D$major_save + release=3D$release_save + libname=3D$libname_save + name=3D$name_save + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library with the System framework + newdeplibs=3D`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltfra= mework /'` + ;; + esac + + if test "$droppeddeps" =3D yes; then + if test "$module" =3D yes; then + $ECHO + $ECHO "*** Warning: libtool could not satisfy all declared inter-li= brary" + $ECHO "*** dependencies of module $libname. Therefore, libtool wil= l create" + $ECHO "*** a static module, that should work as long as the dlopeni= ng" + $ECHO "*** application is linked with the -dlopen flag." + if test -z "$global_symbol_pipe"; then + $ECHO + $ECHO "*** However, this would only work if libtool was able to e= xtract symbol" + $ECHO "*** lists from a program, using \`nm' or equivalent, but l= ibtool could" + $ECHO "*** not find such a program. So, this module is probably = useless." + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help." + fi + if test "$build_old_libs" =3D no; then + oldlibs=3D"$output_objdir/$libname.$libext" + build_libtool_libs=3Dmodule + build_old_libs=3Dyes + else + build_libtool_libs=3Dno + fi + else + $ECHO "*** The inter-library dependencies that have been dropped he= re will be" + $ECHO "*** automatically added whenever a program is linked with th= is library" + $ECHO "*** or is declared to -dlopen it." + + if test "$allow_undefined" =3D no; then + $ECHO + $ECHO "*** Since this library must not contain undefined symbols,= " + $ECHO "*** because either the platform does not support them or" + $ECHO "*** it was explicitly requested with -no-undefined," + $ECHO "*** libtool will only create a static version of it." + if test "$build_old_libs" =3D no; then + oldlibs=3D"$output_objdir/$libname.$libext" + build_libtool_libs=3Dmodule + build_old_libs=3Dyes + else + build_libtool_libs=3Dno + fi + fi + fi + fi + # Done checking deplibs! + deplibs=3D$newdeplibs + fi + # Time to change all our "foo.ltframework" stuff back to "-framewo= rk foo" + case $host in + *-*-darwin*) + newdeplibs=3D`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframe= work% -framework \1%g'` + new_inherited_linker_flags=3D`$ECHO "X $new_inherited_linker_flags" |= $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'` + deplibs=3D`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% = -framework \1%g'` + ;; + esac + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs=3D + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $deplibs " in + *" -L$path/$objdir "*) + new_libs=3D"$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs=3D"$new_libs $deplib" ;; + esac + ;; + *) new_libs=3D"$new_libs $deplib" ;; + esac + done + deplibs=3D"$new_libs" + + # All the library-specific variables (install_libdir is set above)= . + library_names=3D + old_library=3D + dlname=3D + + # Test again, we may have decided not to build it any more + if test "$build_libtool_libs" =3D yes; then + if test "$hardcode_into_libs" =3D yes; then + # Hardcode the library paths + hardcode_libdirs=3D + dep_rpath=3D + rpath=3D"$finalize_rpath" + test "$mode" !=3D relink && rpath=3D"$compile_rpath$rpath" + for libdir in $rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=3D"$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_sep= arator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs=3D"$hardcode_libdirs$hardcode_libdir_separator$li= bdir" + ;; + esac + fi + else + eval flag=3D\"$hardcode_libdir_flag_spec\" + dep_rpath=3D"$dep_rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath=3D"$perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=3D"$hardcode_libdirs" + if test -n "$hardcode_libdir_flag_spec_ld"; then + eval dep_rpath=3D\"$hardcode_libdir_flag_spec_ld\" + else + eval dep_rpath=3D\"$hardcode_libdir_flag_spec\" + fi + fi + if test -n "$runpath_var" && test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath=3D + for dir in $perm_rpath; do + rpath=3D"$rpath$dir:" + done + eval "$runpath_var=3D'$rpath\$$runpath_var'; export $runpath_var" + fi + test -n "$dep_rpath" && deplibs=3D"$dep_rpath $deplibs" + fi + + shlibpath=3D"$finalize_shlibpath" + test "$mode" !=3D relink && shlibpath=3D"$compile_shlibpath$shlibpath" + if test -n "$shlibpath"; then + eval "$shlibpath_var=3D'$shlibpath\$$shlibpath_var'; export $shlibpat= h_var" + fi + + # Get the real and link names of the library. + eval shared_ext=3D\"$shrext_cmds\" + eval library_names=3D\"$library_names_spec\" + set dummy $library_names + shift + realname=3D"$1" + shift + + if test -n "$soname_spec"; then + eval soname=3D\"$soname_spec\" + else + soname=3D"$realname" + fi + if test -z "$dlname"; then + dlname=3D$soname + fi + + lib=3D"$output_objdir/$realname" + linknames=3D + for link + do + linknames=3D"$linknames $link" + done + + # Use standard objects if they are pic + test -z "$pic_flag" && libobjs=3D`$ECHO "X$libobjs" | $SP2NL | $Xsed -e= "$lo2o" | $NL2SP` + test "X$libobjs" =3D "X " && libobjs=3D + + delfiles=3D + if test -n "$export_symbols" && test -n "$include_expsyms"; then + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" + export_symbols=3D"$output_objdir/$libname.uexp" + delfiles=3D"$delfiles $export_symbols" + fi + + orig_export_symbols=3D + case $host_os in + cygwin* | mingw* | cegcc*) + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then + # exporting using user supplied symfile + if test "x`$SED 1q $export_symbols`" !=3D xEXPORTS; then + # and it's NOT already a .def file. Must figure out + # which of the given symbols are data symbols and tag + # them as such. So, trigger use of export_symbols_cmds. + # export_symbols gets reassigned inside the "prepare + # the list of exported symbols" if statement, so the + # include_expsyms logic still works. + orig_export_symbols=3D"$export_symbols" + export_symbols=3D + always_export_symbols=3Dyes + fi + fi + ;; + esac + + # Prepare the list of exported symbols + if test -z "$export_symbols"; then + if test "$always_export_symbols" =3D yes || test -n "$export_symbols_= regex"; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols=3D"$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + cmds=3D$export_symbols_cmds + save_ifs=3D"$IFS"; IFS=3D'~' + for cmd in $cmds; do + IFS=3D"$save_ifs" + eval cmd=3D\"$cmd\" + func_len " $cmd" + len=3D$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; = then + func_show_eval "$cmd" 'exit $?' + skipped_export=3Dfalse + else + # The command line is too long to execute in one step. + func_verbose "using reloadable object file for export list..." + skipped_export=3D: + # Break out early, otherwise skipped_export may be + # set to false by a later but shorter cmd. + break + fi + done + IFS=3D"$save_ifs" + if test -n "$export_symbols_regex" && test "X$skipped_export" !=3D = "X:"; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbol= s" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + fi + + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols=3D"$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols=3D"$orig_export_= symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "= $tmp_export_symbols"' + fi + + if test "X$skipped_export" !=3D "X:" && test -n "$orig_export_symbols";= then + # The given exports_symbols file has to be filtered, so filter it. + func_verbose "filter symbol list for \`$libname.la' to tag DATA expor= ts" + # FIXME: $output_objdir/$libname.filter potentially contains lots of + # 's' commands which not all seds can handle. GNU sed should be fine + # though. Also, the filter scales superlinearly with the number of + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2= |,' < $export_symbols > $output_objdir/$libname.filter + delfiles=3D"$delfiles $export_symbols $output_objdir/$libname.filter" + export_symbols=3D$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export= _symbols > $export_symbols + fi + + tmp_deplibs=3D + for test_deplib in $deplibs; do + case " $convenience " in + *" $test_deplib "*) ;; + *) + tmp_deplibs=3D"$tmp_deplibs $test_deplib" + ;; + esac + done + deplibs=3D"$tmp_deplibs" + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec" && + test "$compiler_needs_object" =3D yes && + test -z "$libobjs"; then + # extract the archives, so we have objects to list. + # TODO: could optimize this to just extract one archive. + whole_archive_flag_spec=3D + fi + if test -n "$whole_archive_flag_spec"; then + save_libobjs=3D$libobjs + eval libobjs=3D\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" =3D "X " && libobjs=3D + else + gentop=3D"$output_objdir/${outputname}x" + generated=3D"$generated $gentop" + + func_extract_archives $gentop $convenience + libobjs=3D"$libobjs $func_extract_archives_result" + test "X$libobjs" =3D "X " && libobjs=3D + fi + fi + + if test "$thread_safe" =3D yes && test -n "$thread_safe_flag_spec"; the= n + eval flag=3D\"$thread_safe_flag_spec\" + linker_flags=3D"$linker_flags $flag" + fi + + # Make a backup of the uninstalled library when relinking + if test "$mode" =3D relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $= realname ${realname}U)' || exit $? + fi + + # Do each of the archive commands. + if test "$module" =3D yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + eval test_cmds=3D\"$module_expsym_cmds\" + cmds=3D$module_expsym_cmds + else + eval test_cmds=3D\"$module_cmds\" + cmds=3D$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then + eval test_cmds=3D\"$archive_expsym_cmds\" + cmds=3D$archive_expsym_cmds + else + eval test_cmds=3D\"$archive_cmds\" + cmds=3D$archive_cmds + fi + fi + + if test "X$skipped_export" !=3D "X:" && + func_len " $test_cmds" && + len=3D$func_len_result && + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + : + else + # The command line is too long to link in one step, link piecewise + # or, if using GNU ld and skipped_export is not :, use a linker + # script. + + # Save the value of $output and $libobjs because we want to + # use them later. If we have whole_archive_flag_spec, we + # want to use save_libobjs as it was before + # whole_archive_flag_spec was expanded, because we can't + # assume the linker understands whole_archive_flag_spec. + # This may have to be revisited, in case too many + # convenience libraries get linked in and end up exceeding + # the spec. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then + save_libobjs=3D$libobjs + fi + save_output=3D$output + output_la=3D`$ECHO "X$output" | $Xsed -e "$basename"` + + # Clear the reloadable object creation command queue and + # initialize k to one. + test_cmds=3D + concat_cmds=3D + objlist=3D + last_robj=3D + k=3D1 + + if test -n "$save_libobjs" && test "X$skipped_export" !=3D "X:" && te= st "$with_gnu_ld" =3D yes; then + output=3D${output_objdir}/${output_la}.lnkscript + func_verbose "creating GNU ld script: $output" + $ECHO 'INPUT (' > $output + for obj in $save_libobjs + do + $ECHO "$obj" >> $output + done + $ECHO ')' >> $output + delfiles=3D"$delfiles $output" + elif test -n "$save_libobjs" && test "X$skipped_export" !=3D "X:" && = test "X$file_list_spec" !=3D X; then + output=3D${output_objdir}/${output_la}.lnk + func_verbose "creating linker input file list: $output" + : > $output + set x $save_libobjs + shift + firstobj=3D + if test "$compiler_needs_object" =3D yes; then + firstobj=3D"$1 " + shift + fi + for obj + do + $ECHO "$obj" >> $output + done + delfiles=3D"$delfiles $output" + output=3D$firstobj\"$file_list_spec$output\" + else + if test -n "$save_libobjs"; then + func_verbose "creating reloadable object files..." + output=3D$output_objdir/$output_la-${k}.$objext + eval test_cmds=3D\"$reload_cmds\" + func_len " $test_cmds" + len0=3D$func_len_result + len=3D$len0 + + # Loop over the list of objects to be linked. + for obj in $save_libobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=3D$func_arith_result + if test "X$objlist" =3D X || + test "$len" -lt "$max_cmd_len"; then + func_append objlist " $obj" + else + # The command $test_cmds is almost too long, add a + # command to the queue. + if test "$k" -eq 1 ; then + # The first file doesn't have a previous command to add. + eval concat_cmds=3D\"$reload_cmds $objlist $last_robj\" + else + # All subsequent reloadable object files will link in + # the last one created. + eval concat_cmds=3D\"\$concat_cmds~$reload_cmds $objlist $last_rob= j~\$RM $last_robj\" + fi + last_robj=3D$output_objdir/$output_la-${k}.$objext + func_arith $k + 1 + k=3D$func_arith_result + output=3D$output_objdir/$output_la-${k}.$objext + objlist=3D$obj + func_len " $last_robj" + func_arith $len0 + $func_len_result + len=3D$func_arith_result + fi + done + # Handle the remaining objects by creating one last + # reloadable object file. All subsequent reloadable object + # files will link in the last one created. + test -z "$concat_cmds" || concat_cmds=3D$concat_cmds~ + eval concat_cmds=3D\"\${concat_cmds}$reload_cmds $objlist $last_r= obj\" + if test -n "$last_robj"; then + eval concat_cmds=3D\"\${concat_cmds}~\$RM $last_robj\" + fi + delfiles=3D"$delfiles $output" + + else + output=3D + fi + + if ${skipped_export-false}; then + func_verbose "generating symbol list for \`$libname.la'" + export_symbols=3D"$output_objdir/$libname.exp" + $opt_dry_run || $RM $export_symbols + libobjs=3D$output + # Append the command to create the export file. + test -z "$concat_cmds" || concat_cmds=3D$concat_cmds~ + eval concat_cmds=3D\"\$concat_cmds$export_symbols_cmds\" + if test -n "$last_robj"; then + eval concat_cmds=3D\"\$concat_cmds~\$RM $last_robj\" + fi + fi + + test -n "$save_libobjs" && + func_verbose "creating a temporary reloadable object file: $outpu= t" + + # Loop through the commands generated above and execute them. + save_ifs=3D"$IFS"; IFS=3D'~' + for cmd in $concat_cmds; do + IFS=3D"$save_ifs" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=3D$? + + # Restore the uninstalled library and exit + if test "$mode" =3D relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS=3D"$save_ifs" + + if test -n "$export_symbols_regex" && ${skipped_export-false}; then + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbol= s" > "${export_symbols}T"' + func_show_eval '$MV "${export_symbols}T" "$export_symbols"' + fi + fi + + if ${skipped_export-false}; then + if test -n "$export_symbols" && test -n "$include_expsyms"; then + tmp_export_symbols=3D"$export_symbols" + test -n "$orig_export_symbols" && tmp_export_symbols=3D"$orig_exp= ort_symbols" + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL = >> "$tmp_export_symbols"' + fi + + if test -n "$orig_export_symbols"; then + # The given exports_symbols file has to be filtered, so filter it= . + func_verbose "filter symbol list for \`$libname.la' to tag DATA e= xports" + # FIXME: $output_objdir/$libname.filter potentially contains lots= of + # 's' commands which not all seds can handle. GNU sed should be f= ine + # though. Also, the filter scales superlinearly with the number o= f + # global variables. join(1) would be nice here, but unfortunately + # isn't a blessed tool. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|= \1\2|,' < $export_symbols > $output_objdir/$libname.filter + delfiles=3D"$delfiles $export_symbols $output_objdir/$libname.fil= ter" + export_symbols=3D$output_objdir/$libname.def + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_ex= port_symbols > $export_symbols + fi + fi + + libobjs=3D$output + # Restore the value of output. + output=3D$save_output + + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then + eval libobjs=3D\"\$libobjs $whole_archive_flag_spec\" + test "X$libobjs" =3D "X " && libobjs=3D + fi + # Expand the library linking commands again to reset the + # value of $libobjs for piecewise linking. + + # Do each of the archive commands. + if test "$module" =3D yes && test -n "$module_cmds" ; then + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then + cmds=3D$module_expsym_cmds + else + cmds=3D$module_cmds + fi + else + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; the= n + cmds=3D$archive_expsym_cmds + else + cmds=3D$archive_cmds + fi + fi + fi + + if test -n "$delfiles"; then + # Append the command to remove temporary files to $cmds. + eval cmds=3D\"\$cmds~\$RM $delfiles\" + fi + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop=3D"$output_objdir/${outputname}x" + generated=3D"$generated $gentop" + + func_extract_archives $gentop $dlprefiles + libobjs=3D"$libobjs $func_extract_archives_result" + test "X$libobjs" =3D "X " && libobjs=3D + fi + + save_ifs=3D"$IFS"; IFS=3D'~' + for cmd in $cmds; do + IFS=3D"$save_ifs" + eval cmd=3D\"$cmd\" + $opt_silent || { + func_quote_for_expand "$cmd" + eval "func_echo $func_quote_for_expand_result" + } + $opt_dry_run || eval "$cmd" || { + lt_exit=3D$? + + # Restore the uninstalled library and exit + if test "$mode" =3D relink; then + ( cd "$output_objdir" && \ + $RM "${realname}T" && \ + $MV "${realname}U" "$realname" ) + fi + + exit $lt_exit + } + done + IFS=3D"$save_ifs" + + # Restore the uninstalled library and exit + if test "$mode" =3D relink; then + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $= realname ${realname}T && $MV ${realname}U $realname)' || exit $? + + if test -n "$convenience"; then + if test -z "$whole_archive_flag_spec"; then + func_show_eval '${RM}r "$gentop"' + fi + fi + + exit $EXIT_SUCCESS + fi + + # Create links to the real library. + for linkname in $linknames; do + if test "$realname" !=3D "$linkname"; then + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$= realname" "$linkname")' 'exit $?' + fi + done + + # If -module or -export-dynamic was specified, set the dlname. + if test "$module" =3D yes || test "$export_dynamic" =3D yes; then + # On all known operating systems, these are identical. + dlname=3D"$soname" + fi + fi + ;; + + obj) + if test -n "$dlfiles$dlprefiles" || test "$dlself" !=3D no; then + func_warning "\`-dlopen' is ignored for objects" + fi + + case " $deplibs" in + *\ -l* | *\ -L*) + func_warning "\`-l' and \`-L' are ignored for objects" ;; + esac + + test -n "$rpath" && \ + func_warning "\`-rpath' is ignored for objects" + + test -n "$xrpath" && \ + func_warning "\`-R' is ignored for objects" + + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for objects" + + test -n "$release" && \ + func_warning "\`-release' is ignored for objects" + + case $output in + *.lo) + test -n "$objs$old_deplibs" && \ + func_fatal_error "cannot build library object \`$output' from non-lib= tool objects" + + libobj=3D$output + func_lo2o "$libobj" + obj=3D$func_lo2o_result + ;; + *) + libobj=3D + obj=3D"$output" + ;; + esac + + # Delete the old objects. + $opt_dry_run || $RM $obj $libobj + + # Objects from convenience libraries. This assumes + # single-version convenience libraries. Whenever we create + # different ones for PIC/non-PIC, this we'll have to duplicate + # the extraction. + reload_conv_objs=3D + gentop=3D + # reload_cmds runs $LD directly, so let us get rid of + # -Wl from whole_archive_flag_spec and hope we can get by with + # turning comma into space.. + wl=3D + + if test -n "$convenience"; then + if test -n "$whole_archive_flag_spec"; then + eval tmp_whole_archive_flags=3D\"$whole_archive_flag_spec\" + reload_conv_objs=3D$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" |= $Xsed -e 's|,| |g'` + else + gentop=3D"$output_objdir/${obj}x" + generated=3D"$generated $gentop" + + func_extract_archives $gentop $convenience + reload_conv_objs=3D"$reload_objs $func_extract_archives_result" + fi + fi + + # Create the old-style object. + reload_objs=3D"$objs$old_deplibs "`$ECHO "X$libobjs" | $SP2NL | $X= sed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_c= onv_objs" ### testsuite: skip nested quoting test + + output=3D"$obj" + func_execute_cmds "$reload_cmds" 'exit $?' + + # Exit if we aren't doing a library object file. + if test -z "$libobj"; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + fi + + if test "$build_libtool_libs" !=3D yes; then + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + # Create an invalid libtool object if no PIC, so that we don't + # accidentally link it into a program. + # $show "echo timestamp > $libobj" + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $? + exit $EXIT_SUCCESS + fi + + if test -n "$pic_flag" || test "$pic_mode" !=3D default; then + # Only do commands if we really have different PIC objects. + reload_objs=3D"$libobjs $reload_conv_objs" + output=3D"$libobj" + func_execute_cmds "$reload_cmds" 'exit $?' + fi + + if test -n "$gentop"; then + func_show_eval '${RM}r "$gentop"' + fi + + exit $EXIT_SUCCESS + ;; + + prog) + case $host in + *cygwin*) func_stripname '' '.exe' "$output" + output=3D$func_stripname_result.exe;; + esac + test -n "$vinfo" && \ + func_warning "\`-version-info' is ignored for programs" + + test -n "$release" && \ + func_warning "\`-release' is ignored for programs" + + test "$preload" =3D yes \ + && test "$dlopen_support" =3D unknown \ + && test "$dlopen_self" =3D unknown \ + && test "$dlopen_self_static" =3D unknown && \ + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen suppo= rt." + + case $host in + *-*-rhapsody* | *-*-darwin1.[012]) + # On Rhapsody replace the C library is the System framework + compile_deplibs=3D`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / Syst= em.ltframework /'` + finalize_deplibs=3D`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / Sy= stem.ltframework /'` + ;; + esac + + case $host in + *-*-darwin*) + # Don't allow lazy linking, it breaks C++ global constructors + # But is supposedly fixed on 10.4 or later (yay!). + if test "$tagname" =3D CXX ; then + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in + 10.[0123]) + compile_command=3D"$compile_command ${wl}-bind_at_load" + finalize_command=3D"$finalize_command ${wl}-bind_at_load" + ;; + esac + fi + # Time to change all our "foo.ltframework" stuff back to "-framework fo= o" + compile_deplibs=3D`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\)= .ltframework% -framework \1%g'` + finalize_deplibs=3D`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*= \).ltframework% -framework \1%g'` + ;; + esac + + + # move library search paths that coincide with paths to not yet + # installed libraries to the beginning of the library search list + new_libs=3D + for path in $notinst_path; do + case " $new_libs " in + *" -L$path/$objdir "*) ;; + *) + case " $compile_deplibs " in + *" -L$path/$objdir "*) + new_libs=3D"$new_libs -L$path/$objdir" ;; + esac + ;; + esac + done + for deplib in $compile_deplibs; do + case $deplib in + -L*) + case " $new_libs " in + *" $deplib "*) ;; + *) new_libs=3D"$new_libs $deplib" ;; + esac + ;; + *) new_libs=3D"$new_libs $deplib" ;; + esac + done + compile_deplibs=3D"$new_libs" + + + compile_command=3D"$compile_command $compile_deplibs" + finalize_command=3D"$finalize_command $finalize_deplibs" + + if test -n "$rpath$xrpath"; then + # If the user specified any rpath flags, then add them. + for libdir in $rpath $xrpath; do + # This is the magic to use -rpath. + case "$finalize_rpath " in + *" $libdir "*) ;; + *) finalize_rpath=3D"$finalize_rpath $libdir" ;; + esac + done + fi + + # Now hardcode the library paths + rpath=3D + hardcode_libdirs=3D + for libdir in $compile_rpath $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=3D"$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_= separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs=3D"$hardcode_libdirs$hardcode_libdir_separator$libdir= " + ;; + esac + fi + else + eval flag=3D\"$hardcode_libdir_flag_spec\" + rpath=3D"$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$perm_rpath " in + *" $libdir "*) ;; + *) perm_rpath=3D"$perm_rpath $libdir" ;; + esac + fi + case $host in + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*) + testbindir=3D`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'` + case :$dllsearchpath: in + *":$libdir:"*) ;; + ::) dllsearchpath=3D$libdir;; + *) dllsearchpath=3D"$dllsearchpath:$libdir";; + esac + case :$dllsearchpath: in + *":$testbindir:"*) ;; + ::) dllsearchpath=3D$testbindir;; + *) dllsearchpath=3D"$dllsearchpath:$testbindir";; + esac + ;; + esac + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=3D"$hardcode_libdirs" + eval rpath=3D\" $hardcode_libdir_flag_spec\" + fi + compile_rpath=3D"$rpath" + + rpath=3D + hardcode_libdirs=3D + for libdir in $finalize_rpath; do + if test -n "$hardcode_libdir_flag_spec"; then + if test -n "$hardcode_libdir_separator"; then + if test -z "$hardcode_libdirs"; then + hardcode_libdirs=3D"$libdir" + else + # Just accumulate the unique libdirs. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_= separator in + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) + ;; + *) + hardcode_libdirs=3D"$hardcode_libdirs$hardcode_libdir_separator$libdir= " + ;; + esac + fi + else + eval flag=3D\"$hardcode_libdir_flag_spec\" + rpath=3D"$rpath $flag" + fi + elif test -n "$runpath_var"; then + case "$finalize_perm_rpath " in + *" $libdir "*) ;; + *) finalize_perm_rpath=3D"$finalize_perm_rpath $libdir" ;; + esac + fi + done + # Substitute the hardcoded libdirs into the rpath. + if test -n "$hardcode_libdir_separator" && + test -n "$hardcode_libdirs"; then + libdir=3D"$hardcode_libdirs" + eval rpath=3D\" $hardcode_libdir_flag_spec\" + fi + finalize_rpath=3D"$rpath" + + if test -n "$libobjs" && test "$build_old_libs" =3D yes; then + # Transform all the library objects into standard objects. + compile_command=3D`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o= " | $NL2SP` + finalize_command=3D`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo= 2o" | $NL2SP` + fi + + func_generate_dlsyms "$outputname" "@PROGRAM@" "no" + + # template prelinking step + if test -n "$prelink_cmds"; then + func_execute_cmds "$prelink_cmds" 'exit $?' + fi + + wrappers_required=3Dyes + case $host in + *cygwin* | *mingw* ) + if test "$build_libtool_libs" !=3D yes; then + wrappers_required=3Dno + fi + ;; + *cegcc) + # Disable wrappers for cegcc, we are cross compiling anyway. + wrappers_required=3Dno + ;; + *) + if test "$need_relink" =3D no || test "$build_libtool_libs" !=3D= yes; then + wrappers_required=3Dno + fi + ;; + esac + if test "$wrappers_required" =3D no; then + # Replace the output file specification. + compile_command=3D`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$= output"'%g'` + link_command=3D"$compile_command$compile_rpath" + + # We have no uninstalled library dependencies, so finalize right now. + exit_status=3D0 + func_show_eval "$link_command" 'exit_status=3D$?' + + # Delete the generated files. + if test -f "$output_objdir/${outputname}S.${objext}"; then + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' + fi + + exit $exit_status + fi + + if test -n "$compile_shlibpath$finalize_shlibpath"; then + compile_command=3D"$shlibpath_var=3D\"$compile_shlibpath$finalize_shlib= path\$$shlibpath_var\" $compile_command" + fi + if test -n "$finalize_shlibpath"; then + finalize_command=3D"$shlibpath_var=3D\"$finalize_shlibpath\$$shlibpath_= var\" $finalize_command" + fi + + compile_var=3D + finalize_var=3D + if test -n "$runpath_var"; then + if test -n "$perm_rpath"; then + # We should set the runpath_var. + rpath=3D + for dir in $perm_rpath; do + rpath=3D"$rpath$dir:" + done + compile_var=3D"$runpath_var=3D\"$rpath\$$runpath_var\" " + fi + if test -n "$finalize_perm_rpath"; then + # We should set the runpath_var. + rpath=3D + for dir in $finalize_perm_rpath; do + rpath=3D"$rpath$dir:" + done + finalize_var=3D"$runpath_var=3D\"$rpath\$$runpath_var\" " + fi + fi + + if test "$no_install" =3D yes; then + # We don't need to create a wrapper script. + link_command=3D"$compile_var$compile_command$compile_rpath" + # Replace the output file specification. + link_command=3D`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output= "'%g'` + # Delete the old output file. + $opt_dry_run || $RM $output + # Link the executable and exit + func_show_eval "$link_command" 'exit $?' + exit $EXIT_SUCCESS + fi + + if test "$hardcode_action" =3D relink; then + # Fast installation is not supported + link_command=3D"$compile_var$compile_command$compile_rpath" + relink_command=3D"$finalize_var$finalize_command$finalize_rpath" + + func_warning "this platform does not like uninstalled shared libraries" + func_warning "\`$output' will be relinked during installation" + else + if test "$fast_install" !=3D no; then + link_command=3D"$finalize_var$compile_command$finalize_rpath" + if test "$fast_install" =3D yes; then + relink_command=3D`$ECHO "X$compile_var$compile_command$compile_rpat= h" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` + else + # fast_install is set to needless + relink_command=3D + fi + else + link_command=3D"$compile_var$compile_command$compile_rpath" + relink_command=3D"$finalize_var$finalize_command$finalize_rpath" + fi + fi + + # Replace the output file specification. + link_command=3D`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$o= utput_objdir/$outputname"'%g'` + + # Delete the old output files. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_obj= dir/lt-$outputname + + func_show_eval "$link_command" 'exit $?' + + # Now create the wrapper script. + func_verbose "creating $output" + + # Quote the relink command for shipping. + if test -n "$relink_command"; then + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command=3D"{ test -z \"\${$var+set}\" || $lt_unset $var || {= $var=3D; export $var; }; }; $relink_command" + elif eval var_value=3D\$$var; test -z "$var_value"; then + relink_command=3D"$var=3D; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command=3D"$var=3D$func_quote_for_eval_result; export $var; = $relink_command" + fi + done + relink_command=3D"(cd `pwd`; $relink_command)" + relink_command=3D`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst= "` + fi + + # Quote $ECHO for shipping. + if test "X$ECHO" =3D "X$SHELL $progpath --fallback-echo"; then + case $progpath in + [\\/]* | [A-Za-z]:[\\/]*) qecho=3D"$SHELL $progpath --fallback-echo";; + *) qecho=3D"$SHELL `pwd`/$progpath --fallback-echo";; + esac + qecho=3D`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"` + else + qecho=3D`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"` + fi + + # Only actually do things if not in dry run mode. + $opt_dry_run || { + # win32 will think the script is a binary if it has + # a .exe suffix, so we strip it off here. + case $output in + *.exe) func_stripname '' '.exe' "$output" + output=3D$func_stripname_result ;; + esac + # test for cygwin because mv fails w/o .exe extensions + case $host in + *cygwin*) + exeext=3D.exe + func_stripname '' '.exe' "$outputname" + outputname=3D$func_stripname_result ;; + *) exeext=3D ;; + esac + case $host in + *cygwin* | *mingw* ) + func_dirname_and_basename "$output" "" "." + output_name=3D$func_basename_result + output_path=3D$func_dirname_result + cwrappersource=3D"$output_path/$objdir/lt-$output_name.c" + cwrapper=3D"$output_path/$output_name.exe" + $RM $cwrappersource $cwrapper + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15 + + func_emit_cwrapperexe_src > $cwrappersource + + # The wrapper executable is built using the $host compiler, + # because it contains $host paths and files. If cross- + # compiling, it, like the target executable, must be + # executed on the $host or under an emulation environment. + $opt_dry_run || { + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource + $STRIP $cwrapper + } + + # Now, create the wrapper script for func_source use: + func_ltwrapper_scriptname $cwrapper + $RM $func_ltwrapper_scriptname_result + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 = 2 15 + $opt_dry_run || { + # note: this script will not be executed, so do not chmod. + if test "x$build" =3D "x$host" ; then + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result + else + func_emit_wrapper no > $func_ltwrapper_scriptname_result + fi + } + ;; + * ) + $RM $output + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15 + + func_emit_wrapper no > $output + chmod +x $output + ;; + esac + } + exit $EXIT_SUCCESS + ;; + esac + + # See if we need to build an old-fashioned archive. + for oldlib in $oldlibs; do + + if test "$build_libtool_libs" =3D convenience; then + oldobjs=3D"$libobjs_save $symfileobj" + addlibs=3D"$convenience" + build_libtool_libs=3Dno + else + if test "$build_libtool_libs" =3D module; then + oldobjs=3D"$libobjs_save" + build_libtool_libs=3Dno + else + oldobjs=3D"$old_deplibs $non_pic_objects" + if test "$preload" =3D yes && test -f "$symfileobj"; then + oldobjs=3D"$oldobjs $symfileobj" + fi + fi + addlibs=3D"$old_convenience" + fi + + if test -n "$addlibs"; then + gentop=3D"$output_objdir/${outputname}x" + generated=3D"$generated $gentop" + + func_extract_archives $gentop $addlibs + oldobjs=3D"$oldobjs $func_extract_archives_result" + fi + + # Do each command in the archive commands. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_li= bs" =3D yes; then + cmds=3D$old_archive_from_new_cmds + else + + # Add any objects from preloaded convenience libraries + if test -n "$dlprefiles"; then + gentop=3D"$output_objdir/${outputname}x" + generated=3D"$generated $gentop" + + func_extract_archives $gentop $dlprefiles + oldobjs=3D"$oldobjs $func_extract_archives_result" + fi + + # POSIX demands no paths to be encoded in archives. We have + # to avoid creating archives with duplicate basenames if we + # might have to extract them afterwards, e.g., when creating a + # static archive out of a convenience library, or when linking + # the entirety of a libtool archive into another (currently + # not supported by libtool). + if (for obj in $oldobjs + do + func_basename "$obj" + $ECHO "$func_basename_result" + done | sort | sort -uc >/dev/null 2>&1); then + : + else + $ECHO "copying selected object files to avoid basename conflicts..." + gentop=3D"$output_objdir/${outputname}x" + generated=3D"$generated $gentop" + func_mkdir_p "$gentop" + save_oldobjs=3D$oldobjs + oldobjs=3D + counter=3D1 + for obj in $save_oldobjs + do + func_basename "$obj" + objbase=3D"$func_basename_result" + case " $oldobjs " in + " ") oldobjs=3D$obj ;; + *[\ /]"$objbase "*) + while :; do + # Make sure we don't pick an alternate name that also + # overlaps. + newobj=3Dlt$counter-$objbase + func_arith $counter + 1 + counter=3D$func_arith_result + case " $oldobjs " in + *[\ /]"$newobj "*) ;; + *) if test ! -f "$gentop/$newobj"; then break; fi ;; + esac + done + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newob= j" + oldobjs=3D"$oldobjs $gentop/$newobj" + ;; + *) oldobjs=3D"$oldobjs $obj" ;; + esac + done + fi + eval cmds=3D\"$old_archive_cmds\" + + func_len " $cmds" + len=3D$func_len_result + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then + cmds=3D$old_archive_cmds + else + # the command line is too long to link in one step, link in parts + func_verbose "using piecewise archive linking..." + save_RANLIB=3D$RANLIB + RANLIB=3D: + objlist=3D + concat_cmds=3D + save_oldobjs=3D$oldobjs + oldobjs=3D + # Is there a better way of finding the last object in the list? + for obj in $save_oldobjs + do + last_oldobj=3D$obj + done + eval test_cmds=3D\"$old_archive_cmds\" + func_len " $test_cmds" + len0=3D$func_len_result + len=3D$len0 + for obj in $save_oldobjs + do + func_len " $obj" + func_arith $len + $func_len_result + len=3D$func_arith_result + func_append objlist " $obj" + if test "$len" -lt "$max_cmd_len"; then + : + else + # the above command should be used before it gets too long + oldobjs=3D$objlist + if test "$obj" =3D "$last_oldobj" ; then + RANLIB=3D$save_RANLIB + fi + test -z "$concat_cmds" || concat_cmds=3D$concat_cmds~ + eval concat_cmds=3D\"\${concat_cmds}$old_archive_cmds\" + objlist=3D + len=3D$len0 + fi + done + RANLIB=3D$save_RANLIB + oldobjs=3D$objlist + if test "X$oldobjs" =3D "X" ; then + eval cmds=3D\"\$concat_cmds\" + else + eval cmds=3D\"\$concat_cmds~\$old_archive_cmds\" + fi + fi + fi + func_execute_cmds "$cmds" 'exit $?' + done + + test -n "$generated" && \ + func_show_eval "${RM}r$generated" + + # Now create the libtool archive. + case $output in + *.la) + old_library=3D + test "$build_old_libs" =3D yes && old_library=3D"$libname.$libext" + func_verbose "creating $output" + + # Preserve any variables that may affect compiler behavior + for var in $variables_saved_for_relink; do + if eval test -z \"\${$var+set}\"; then + relink_command=3D"{ test -z \"\${$var+set}\" || $lt_unset $var || { $= var=3D; export $var; }; }; $relink_command" + elif eval var_value=3D\$$var; test -z "$var_value"; then + relink_command=3D"$var=3D; export $var; $relink_command" + else + func_quote_for_eval "$var_value" + relink_command=3D"$var=3D$func_quote_for_eval_result; export $var; $r= elink_command" + fi + done + # Quote the link command for shipping. + relink_command=3D"(cd `pwd`; $SHELL $progpath $preserve_args --mod= e=3Drelink $libtool_args @inst_prefix_dir@)" + relink_command=3D`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_= subst"` + if test "$hardcode_automatic" =3D yes ; then + relink_command=3D + fi + + # Only create the output if not a dry run. + $opt_dry_run || { + for installed in no yes; do + if test "$installed" =3D yes; then + if test -z "$install_libdir"; then + break + fi + output=3D"$output_objdir/$outputname"i + # Replace all uninstalled libtool libraries with the installed ones + newdependency_libs=3D + for deplib in $dependency_libs; do + case $deplib in + *.la) + func_basename "$deplib" + name=3D"$func_basename_result" + eval libdir=3D`${SED} -n -e 's/^libdir=3D\(.*\)$/\1/p' $deplib` + test -z "$libdir" && \ + func_fatal_error "\`$deplib' is not a valid libtool archive" + newdependency_libs=3D"$newdependency_libs $libdir/$name" + ;; + *) newdependency_libs=3D"$newdependency_libs $deplib" ;; + esac + done + dependency_libs=3D"$newdependency_libs" + newdlfiles=3D + + for lib in $dlfiles; do + case $lib in + *.la) + func_basename "$lib" + name=3D"$func_basename_result" + eval libdir=3D`${SED} -n -e 's/^libdir=3D\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlfiles=3D"$newdlfiles $libdir/$name" + ;; + *) newdlfiles=3D"$newdlfiles $lib" ;; + esac + done + dlfiles=3D"$newdlfiles" + newdlprefiles=3D + for lib in $dlprefiles; do + case $lib in + *.la) + # Only pass preopened files to the pseudo-archive (for + # eventual linking with the app. that links it) if we + # didn't already link the preopened objects directly into + # the library: + func_basename "$lib" + name=3D"$func_basename_result" + eval libdir=3D`${SED} -n -e 's/^libdir=3D\(.*\)$/\1/p' $lib` + test -z "$libdir" && \ + func_fatal_error "\`$lib' is not a valid libtool archive" + newdlprefiles=3D"$newdlprefiles $libdir/$name" + ;; + esac + done + dlprefiles=3D"$newdlprefiles" + else + newdlfiles=3D + for lib in $dlfiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs=3D"$lib" ;; + *) abs=3D`pwd`"/$lib" ;; + esac + newdlfiles=3D"$newdlfiles $abs" + done + dlfiles=3D"$newdlfiles" + newdlprefiles=3D + for lib in $dlprefiles; do + case $lib in + [\\/]* | [A-Za-z]:[\\/]*) abs=3D"$lib" ;; + *) abs=3D`pwd`"/$lib" ;; + esac + newdlprefiles=3D"$newdlprefiles $abs" + done + dlprefiles=3D"$newdlprefiles" + fi + $RM $output + # place dlname in correct position for cygwin + tdlname=3D$dlname + case $host,$output,$installed,$module,$dlname in + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*l= ai,yes,no,*.dll) tdlname=3D../bin/$dlname ;; + esac + $ECHO > $output "\ +# $outputname - a libtool library file +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION +# +# Please DO NOT delete this file! +# It is necessary for linking the library. + +# The name that we can dlopen(3). +dlname=3D'$tdlname' + +# Names of this library. +library_names=3D'$library_names' + +# The name of the static archive. +old_library=3D'$old_library' + +# Linker flags that can not go in dependency_libs. +inherited_linker_flags=3D'$new_inherited_linker_flags' + +# Libraries that this one depends upon. +dependency_libs=3D'$dependency_libs' + +# Names of additional weak libraries provided by this library +weak_library_names=3D'$weak_libs' + +# Version information for $libname. +current=3D$current +age=3D$age +revision=3D$revision + +# Is this an already installed library? +installed=3D$installed + +# Should we warn about portability when linking against -modules? +shouldnotlink=3D$module + +# Files to dlopen/dlpreopen +dlopen=3D'$dlfiles' +dlpreopen=3D'$dlprefiles' + +# Directory that this library needs to be installed in: +libdir=3D'$install_libdir'" + if test "$installed" =3D no && test "$need_relink" =3D yes; then + $ECHO >> $output "\ +relink_command=3D\"$relink_command\"" + fi + done + } + + # Do a symbolic link so that the libtool archive can be found in + # LD_LIBRARY_PATH before the program is installed. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_= S "../$outputname" "$outputname" )' 'exit $?' + ;; + esac + exit $EXIT_SUCCESS +} + +{ test "$mode" =3D link || test "$mode" =3D relink; } && + func_mode_link ${1+"$@"} + + +# func_mode_uninstall arg... +func_mode_uninstall () +{ + $opt_debug + RM=3D"$nonopt" + files=3D + rmforce=3D + exit_status=3D0 + + # This variable tells wrapper scripts just to set variables rather + # than running their programs. + libtool_install_magic=3D"$magic" + + for arg + do + case $arg in + -f) RM=3D"$RM $arg"; rmforce=3Dyes ;; + -*) RM=3D"$RM $arg" ;; + *) files=3D"$files $arg" ;; + esac + done + + test -z "$RM" && \ + func_fatal_help "you must specify an RM program" + + rmdirs=3D + + origobjdir=3D"$objdir" + for file in $files; do + func_dirname "$file" "" "." + dir=3D"$func_dirname_result" + if test "X$dir" =3D X.; then + objdir=3D"$origobjdir" + else + objdir=3D"$dir/$origobjdir" + fi + func_basename "$file" + name=3D"$func_basename_result" + test "$mode" =3D uninstall && objdir=3D"$dir" + + # Remember objdir for removal later, being careful to avoid duplic= ates + if test "$mode" =3D clean; then + case " $rmdirs " in + *" $objdir "*) ;; + *) rmdirs=3D"$rmdirs $objdir" ;; + esac + fi + + # Don't error if the file doesn't exist and rm -f was used. + if { test -L "$file"; } >/dev/null 2>&1 || + { test -h "$file"; } >/dev/null 2>&1 || + test -f "$file"; then + : + elif test -d "$file"; then + exit_status=3D1 + continue + elif test "$rmforce" =3D yes; then + continue + fi + + rmfiles=3D"$file" + + case $name in + *.la) + # Possibly a libtool archive, so verify it. + if func_lalib_p "$file"; then + func_source $dir/$name + + # Delete the libtool libraries and symlinks. + for n in $library_names; do + rmfiles=3D"$rmfiles $objdir/$n" + done + test -n "$old_library" && rmfiles=3D"$rmfiles $objdir/$old_library" + + case "$mode" in + clean) + case " $library_names " in + # " " in the beginning catches empty $dlname + *" $dlname "*) ;; + *) rmfiles=3D"$rmfiles $objdir/$dlname" ;; + esac + test -n "$libdir" && rmfiles=3D"$rmfiles $objdir/$name $objdir/${na= me}i" + ;; + uninstall) + if test -n "$library_names"; then + # Do each command in the postuninstall commands. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" =3D yes = || exit_status=3D1' + fi + + if test -n "$old_library"; then + # Do each command in the old_postuninstall commands. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" =3D = yes || exit_status=3D1' + fi + # FIXME: should reinstall the best remaining shared library. + ;; + esac + fi + ;; + + *.lo) + # Possibly a libtool object, so verify it. + if func_lalib_p "$file"; then + + # Read the .lo file + func_source $dir/$name + + # Add PIC object to the list of files to remove. + if test -n "$pic_object" && + test "$pic_object" !=3D none; then + rmfiles=3D"$rmfiles $dir/$pic_object" + fi + + # Add non-PIC object to the list of files to remove. + if test -n "$non_pic_object" && + test "$non_pic_object" !=3D none; then + rmfiles=3D"$rmfiles $dir/$non_pic_object" + fi + fi + ;; + + *) + if test "$mode" =3D clean ; then + noexename=3D$name + case $file in + *.exe) + func_stripname '' '.exe' "$file" + file=3D$func_stripname_result + func_stripname '' '.exe' "$name" + noexename=3D$func_stripname_result + # $file with .exe has already been added to rmfiles, + # add $file without .exe + rmfiles=3D"$rmfiles $file" + ;; + esac + # Do a test to see if this is a libtool program. + if func_ltwrapper_p "$file"; then + if func_ltwrapper_executable_p "$file"; then + func_ltwrapper_scriptname "$file" + relink_command=3D + func_source $func_ltwrapper_scriptname_result + rmfiles=3D"$rmfiles $func_ltwrapper_scriptname_result" + else + relink_command=3D + func_source $dir/$noexename + fi + + # note $name still contains .exe if it was in $file originally + # as does the version of $file that was added into $rmfiles + rmfiles=3D"$rmfiles $objdir/$name $objdir/${name}S.${objext}" + if test "$fast_install" =3D yes && test -n "$relink_command"; then + rmfiles=3D"$rmfiles $objdir/lt-$name" + fi + if test "X$noexename" !=3D "X$name" ; then + rmfiles=3D"$rmfiles $objdir/lt-${noexename}.c" + fi + fi + fi + ;; + esac + func_show_eval "$RM $rmfiles" 'exit_status=3D1' + done + objdir=3D"$origobjdir" + + # Try to remove the ${objdir}s in the directories where we deleted f= iles + for dir in $rmdirs; do + if test -d "$dir"; then + func_show_eval "rmdir $dir >/dev/null 2>&1" + fi + done + + exit $exit_status +} + +{ test "$mode" =3D uninstall || test "$mode" =3D clean; } && + func_mode_uninstall ${1+"$@"} + +test -z "$mode" && { + help=3D"$generic_help" + func_fatal_help "you must specify a MODE" +} + +test -z "$exec_cmd" && \ + func_fatal_help "invalid operation mode \`$mode'" + +if test -n "$exec_cmd"; then + eval exec "$exec_cmd" + exit $EXIT_FAILURE +fi + +exit $exit_status + + +# The TAGs below are defined such that we never get into a situation +# in which we disable both kinds of libraries. Given conflicting +# choices, we go for a static library, that is the most portable, +# since we can't tell whether shared libraries were disabled because +# the user asked for that or because the platform doesn't support +# them. This is particularly important on AIX, because we don't +# support having both static and shared libraries enabled at the same +# time on that platform, so we default to a shared-only configuration. +# If a disable-shared tag is given, we'll fallback to a static-only +# configuration. But we'll never go from static-only to shared-only. + +# ### BEGIN LIBTOOL TAG CONFIG: disable-shared +build_libtool_libs=3Dno +build_old_libs=3Dyes +# ### END LIBTOOL TAG CONFIG: disable-shared + +# ### BEGIN LIBTOOL TAG CONFIG: disable-static +build_old_libs=3D`case $build_libtool_libs in yes) echo no;; *) echo yes= ;; esac` +# ### END LIBTOOL TAG CONFIG: disable-static + +# Local Variables: +# mode:shell-script +# sh-indentation:2 +# End: +# vi:sw=3D2 + diff --git a/missing b/missing new file mode 100755 index 0000000..28055d2 --- /dev/null +++ b/missing @@ -0,0 +1,376 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. + +scriptversion=3D2009-04-28.21; # UTC + +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, +# 2008, 2009 Free Software Foundation, Inc. +# Originally by Fran,cois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +run=3D: +sed_output=3D's/.* --output[ =3D]\([^ ]*\).*/\1/p' +sed_minuso=3D's/.* -o \([^ ]*\).*/\1/p' + +# In the cases where this matters, `missing' is being run in the +# srcdir already. +if test -f configure.ac; then + configure_ac=3Dconfigure.ac +else + configure_ac=3Dconfigure.in +fi + +msg=3D"missing on your system" + +case $1 in +--run) + # Try to run requested program, and just exit if it succeeds. + run=3D + shift + "$@" && exit 0 + # Exit code 63 means version mismatch. This often happens + # when the user try to use an ancient version of a tool on + # a file that requires a minimum version. In this case we + # we should proceed has if the program had been absent, or + # if --run hadn't been passed. + if test $? =3D 63; then + run=3D: + msg=3D"probably too old" + fi + ;; + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return a= n +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + --run try to run the given command, and emulate it if it fai= ls + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + autom4te touch the output file, or create a stub one + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + help2man touch the output file + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + tar try tar, gnutar, gtar, then tar without non-portable flag= s + yacc create \`y.tab.[ch]', if possible, from existing .[ch] + +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and +\`g' are ignored when checking the name. + +Send bug reports to ." + exit $? + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing $scriptversion (GNU Automake)" + exit $? + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + +esac + +# normalize program name to check for. +program=3D`echo "$1" | sed ' + s/^gnu-//; t + s/^gnu//; t + s/^g//; t'` + +# Now exit if we have it, but it failed. Also exit now if we +# don't have it and --version was passed (most likely to detect +# the program). This is about non-GNU programs, so use $1 not +# $program. +case $1 in + lex*|yacc*) + # Not GNU programs, they don't have --version. + ;; + + tar*) + if test -n "$run"; then + echo 1>&2 "ERROR: \`tar' requires --run" + exit 1 + elif test "x$2" =3D "x--version" || test "x$2" =3D "x--help"; then + exit 1 + fi + ;; + + *) + if test -z "$run" && ($1 --version) > /dev/null 2>&1; then + # We have it, but it failed. + exit 1 + elif test "x$2" =3D "x--version" || test "x$2" =3D "x--help"; then + # Could not run --version or --help. This is probably someone + # running `$TOOL --version' or `$TOOL --help' to check whether + # $TOOL exists and not knowing $TOOL uses missing. + exit 1 + fi + ;; +esac + +# If it does not exist, or fails to run (possibly an outdated version), +# try to emulate it. +case $program in + aclocal*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acinclude.m4' or \`${configure_ac}'. You might = want + to install the \`Automake' and \`Perl' packages. Grab them fro= m + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`${configure_ac}'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`acconfig.h' or \`${configure_ac}'. You might wa= nt + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=3D`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${con= figure_ac}` + test -z "$files" && files=3D"config.h" + touch_files=3D + for f in $files; do + case $f in + *:*) touch_files=3D"$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files=3D"$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`${configure_a= c}'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + autom4te*) + echo 1>&2 "\ +WARNING: \`$1' is needed, but is $msg. + You might have modified some files without having the + proper tools for further handling them. + You can get \`$1' as part of \`Autoconf' from any GNU + archive site." + + file=3D`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=3D`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo "#! /bin/sh" + echo "# Created by GNU Automake missing as a replacement of" + echo "# $ $@" + echo "exit 0" + chmod +x $file + exit 1 + fi + ;; + + bison*|yacc*) + echo 1>&2 "\ +WARNING: \`$1' $msg. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if test $# -ne 1; then + eval LASTARG=3D"\${$#}" + case $LASTARG in + *.y) + SRCFILE=3D`echo "$LASTARG" | sed 's/y$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=3D`echo "$LASTARG" | sed 's/y$/h/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if test ! -f y.tab.h; then + echo >y.tab.h + fi + if test ! -f y.tab.c; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex*|flex*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if test $# -ne 1; then + eval LASTARG=3D"\${$#}" + case $LASTARG in + *.l) + SRCFILE=3D`echo "$LASTARG" | sed 's/l$/c/'` + if test -f "$SRCFILE"; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if test ! -f lex.yy.c; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + help2man*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a dependency of a manual page. You may need the + \`Help2man' package in order for those modifications to take + effect. You can get \`Help2man' from any GNU archive site." + + file=3D`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=3D`echo "$*" | sed -n "$sed_minuso"` + if test -f "$file"; then + touch $file + else + test -z "$file" || exec >$file + echo ".ab help2man is required to generate this page" + exit $? + fi + ;; + + makeinfo*) + echo 1>&2 "\ +WARNING: \`$1' is $msg. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AI= X, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site= ." + # The file to touch is that specified with -o ... + file=3D`echo "$*" | sed -n "$sed_output"` + test -z "$file" && file=3D`echo "$*" | sed -n "$sed_minuso"` + if test -z "$file"; then + # ... or it is the one specified with @setfilename ... + infile=3D`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=3D`sed -n ' + /^@setfilename/{ + s/.* \([^ ]*\) *$/\1/ + p + q + }' $infile` + # ... or it is derived from the source name (dir/f.texi becomes f.= info) + test -z "$file" && file=3D`echo "$infile" | sed 's,.*/,,;s,.[^.]*$= ,,'`.info + fi + # If the file does not exist, the user really needs makeinfo; + # let's fail without touching anything. + test -f $file || exit 1 + touch $file + ;; + + tar*) + shift + + # We have already tried tar in the generic part. + # Look for gnutar/gtar before invocation to avoid ugly error + # messages. + if (gnutar --version > /dev/null 2>&1); then + gnutar "$@" && exit 0 + fi + if (gtar --version > /dev/null 2>&1); then + gtar "$@" && exit 0 + fi + firstarg=3D"$1" + if shift; then + case $firstarg in + *o*) + firstarg=3D`echo "$firstarg" | sed s/o//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + case $firstarg in + *h*) + firstarg=3D`echo "$firstarg" | sed s/h//` + tar "$firstarg" "$@" && exit 0 + ;; + esac + fi + + echo 1>&2 "\ +WARNING: I can't seem to be able to run \`tar' with the given arguments. + You may want to install GNU tar or Free paxutils, or check the + command line arguments." + exit 1 + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and is $msg. + You might have modified some files without having the + proper tools for further handling them. Check the \`README' fi= le, + it often tells you about the needed prerequisites for installin= g + this package. You may also peek at any GNU archive site, in ca= se + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=3D" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End: diff --git a/src/Makefile.in b/src/Makefile.in new file mode 100644 index 0000000..05ac4fb --- /dev/null +++ b/src/Makefile.in @@ -0,0 +1,515 @@ +# Makefile.in generated by automake 1.11.1 from Makefile.am. +# @configure_input@ + +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + +@SET_MAKE@ + +VPATH =3D @srcdir@ +pkgdatadir =3D $(datadir)/@PACKAGE@ +pkgincludedir =3D $(includedir)/@PACKAGE@ +pkglibdir =3D $(libdir)/@PACKAGE@ +pkglibexecdir =3D $(libexecdir)/@PACKAGE@ +am__cd =3D CDPATH=3D"$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd +install_sh_DATA =3D $(install_sh) -c -m 644 +install_sh_PROGRAM =3D $(install_sh) -c +install_sh_SCRIPT =3D $(install_sh) -c +INSTALL_HEADER =3D $(INSTALL_DATA) +transform =3D $(program_transform_name) +NORMAL_INSTALL =3D : +PRE_INSTALL =3D : +POST_INSTALL =3D : +NORMAL_UNINSTALL =3D : +PRE_UNINSTALL =3D : +POST_UNINSTALL =3D : +build_triplet =3D @build@ +host_triplet =3D @host@ +bin_PROGRAMS =3D tester$(EXEEXT) +subdir =3D src +DIST_COMMON =3D README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ + AUTHORS COPYING ChangeLog INSTALL NEWS +ACLOCAL_M4 =3D $(top_srcdir)/aclocal.m4 +am__aclocal_m4_deps =3D $(top_srcdir)/configure.ac +am__configure_deps =3D $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) = \ + $(ACLOCAL_M4) +mkinstalldirs =3D $(install_sh) -d +CONFIG_CLEAN_FILES =3D +CONFIG_CLEAN_VPATH_FILES =3D +am__installdirs =3D "$(DESTDIR)$(bindir)" +PROGRAMS =3D $(bin_PROGRAMS) +am_tester_OBJECTS =3D config.$(OBJEXT) dict.$(OBJEXT) \ + interpreter.$(OBJEXT) laymanapi.$(OBJEXT) message.$(OBJEXT) \ + stringlist.$(OBJEXT) tester.$(OBJEXT) +tester_OBJECTS =3D $(am_tester_OBJECTS) +am__DEPENDENCIES_1 =3D +tester_DEPENDENCIES =3D $(am__DEPENDENCIES_1) +DEFAULT_INCLUDES =3D -I.@am__isrc@ +depcomp =3D $(SHELL) $(top_srcdir)/depcomp +am__depfiles_maybe =3D depfiles +am__mv =3D mv -f +COMPILE =3D $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS)= \ + $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE =3D $(LIBTOOL) --tag=3DCC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=3Dcompile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD =3D $(CC) +LINK =3D $(LIBTOOL) --tag=3DCC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=3Dlink $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ +SOURCES =3D $(tester_SOURCES) +DIST_SOURCES =3D $(tester_SOURCES) +ETAGS =3D etags +CTAGS =3D ctags +DISTFILES =3D $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) +ACLOCAL =3D @ACLOCAL@ +AMTAR =3D @AMTAR@ +AR =3D @AR@ +AUTOCONF =3D @AUTOCONF@ +AUTOHEADER =3D @AUTOHEADER@ +AUTOMAKE =3D @AUTOMAKE@ +AWK =3D @AWK@ +CC =3D @CC@ +CCDEPMODE =3D @CCDEPMODE@ +CFLAGS =3D @CFLAGS@ +CPP =3D @CPP@ +CPPFLAGS =3D @CPPFLAGS@ +CYGPATH_W =3D @CYGPATH_W@ +DEFS =3D @DEFS@ +DEPDIR =3D @DEPDIR@ +DSYMUTIL =3D @DSYMUTIL@ +DUMPBIN =3D @DUMPBIN@ +ECHO_C =3D @ECHO_C@ +ECHO_N =3D @ECHO_N@ +ECHO_T =3D @ECHO_T@ +EGREP =3D @EGREP@ +EXEEXT =3D @EXEEXT@ +FGREP =3D @FGREP@ +GREP =3D @GREP@ +INSTALL =3D @INSTALL@ +INSTALL_DATA =3D @INSTALL_DATA@ +INSTALL_PROGRAM =3D @INSTALL_PROGRAM@ +INSTALL_SCRIPT =3D @INSTALL_SCRIPT@ +INSTALL_STRIP_PROGRAM =3D @INSTALL_STRIP_PROGRAM@ +LD =3D @LD@ +LDFLAGS =3D @LDFLAGS@ +LIBOBJS =3D @LIBOBJS@ +LIBS =3D @LIBS@ +LIBTOOL =3D @LIBTOOL@ +LIPO =3D @LIPO@ +LN_S =3D @LN_S@ +LTLIBOBJS =3D @LTLIBOBJS@ +MAKEINFO =3D @MAKEINFO@ +MKDIR_P =3D @MKDIR_P@ +NM =3D @NM@ +NMEDIT =3D @NMEDIT@ +OBJDUMP =3D @OBJDUMP@ +OBJEXT =3D @OBJEXT@ +OTOOL =3D @OTOOL@ +OTOOL64 =3D @OTOOL64@ +PACKAGE =3D @PACKAGE@ +PACKAGE_BUGREPORT =3D @PACKAGE_BUGREPORT@ +PACKAGE_NAME =3D @PACKAGE_NAME@ +PACKAGE_STRING =3D @PACKAGE_STRING@ +PACKAGE_TARNAME =3D @PACKAGE_TARNAME@ +PACKAGE_URL =3D @PACKAGE_URL@ +PACKAGE_VERSION =3D @PACKAGE_VERSION@ +PATH_SEPARATOR =3D @PATH_SEPARATOR@ +PYTHON_CFLAGS =3D @PYTHON_CFLAGS@ +PYTHON_LIBS =3D @PYTHON_LIBS@ +RANLIB =3D @RANLIB@ +SED =3D @SED@ +SET_MAKE =3D @SET_MAKE@ +SHELL =3D @SHELL@ +STRIP =3D @STRIP@ +VERSION =3D @VERSION@ +abs_builddir =3D @abs_builddir@ +abs_srcdir =3D @abs_srcdir@ +abs_top_builddir =3D @abs_top_builddir@ +abs_top_srcdir =3D @abs_top_srcdir@ +ac_ct_CC =3D @ac_ct_CC@ +ac_ct_DUMPBIN =3D @ac_ct_DUMPBIN@ +am__include =3D @am__include@ +am__leading_dot =3D @am__leading_dot@ +am__quote =3D @am__quote@ +am__tar =3D @am__tar@ +am__untar =3D @am__untar@ +bindir =3D @bindir@ +build =3D @build@ +build_alias =3D @build_alias@ +build_cpu =3D @build_cpu@ +build_os =3D @build_os@ +build_vendor =3D @build_vendor@ +builddir =3D @builddir@ +datadir =3D @datadir@ +datarootdir =3D @datarootdir@ +docdir =3D @docdir@ +dvidir =3D @dvidir@ +exec_prefix =3D @exec_prefix@ +host =3D @host@ +host_alias =3D @host_alias@ +host_cpu =3D @host_cpu@ +host_os =3D @host_os@ +host_vendor =3D @host_vendor@ +htmldir =3D @htmldir@ +includedir =3D @includedir@ +infodir =3D @infodir@ +install_sh =3D @install_sh@ +libdir =3D @libdir@ +libexecdir =3D @libexecdir@ +localedir =3D @localedir@ +localstatedir =3D @localstatedir@ +lt_ECHO =3D @lt_ECHO@ +mandir =3D @mandir@ +mkdir_p =3D @mkdir_p@ +oldincludedir =3D @oldincludedir@ +pdfdir =3D @pdfdir@ +prefix =3D @prefix@ +program_transform_name =3D @program_transform_name@ +psdir =3D @psdir@ +sbindir =3D @sbindir@ +sharedstatedir =3D @sharedstatedir@ +srcdir =3D @srcdir@ +sysconfdir =3D @sysconfdir@ +target_alias =3D @target_alias@ +top_build_prefix =3D @top_build_prefix@ +top_builddir =3D @top_builddir@ +top_srcdir =3D @top_srcdir@ +AM_CFLAGS =3D $(PYTHON_CFLAGS) --std=3Dc99 -W -Wall +tester_SOURCES =3D config.c dict.c interpreter.c laymanapi.c message.c s= tringlist.c tester.c config.h dict.h interpreter.h laymanapi.h message.h = stringlist.h +tester_LDADD =3D $(PYTHON_LIBS) +all: all-am + +.SUFFIXES: +.SUFFIXES: .c .lo .o .obj +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) + @for dep in $?; do \ + case '$(am__configure_deps)' in \ + *$$dep*) \ + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ + && { if test -f $@; then exit 0; else break; fi; }; \ + exit 1;; \ + esac; \ + done; \ + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \ + $(am__cd) $(top_srcdir) && \ + $(AUTOMAKE) --gnu src/Makefile +.PRECIOUS: Makefile +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status + @case '$?' in \ + *config.status*) \ + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ + *) \ + echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ = $(am__depfiles_maybe)'; \ + cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__d= epfiles_maybe);; \ + esac; + +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_D= EPENDENCIES) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh + +$(top_srcdir)/configure: $(am__configure_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(ACLOCAL_M4): $(am__aclocal_m4_deps) + cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh +$(am__aclocal_m4_deps): +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + test -z "$(bindir)" || $(MKDIR_P) "$(DESTDIR)$(bindir)" + @list=3D'$(bin_PROGRAMS)'; test -n "$(bindir)" || list=3D; \ + for p in $$list; do echo "$$p $$p"; done | \ + sed 's/$(EXEEXT)$$//' | \ + while read p p1; do if test -f $$p || test -f $$p1; \ + then echo "$$p"; echo "$$p"; else :; fi; \ + done | \ + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \ + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \ + sed 'N;N;N;s,\n, ,g' | \ + $(AWK) 'BEGIN { files["."] =3D ""; dirs["."] =3D 1 } \ + { d=3D$$3; if (dirs[d] !=3D 1) { print "d", d; dirs[d] =3D 1 } \ + if ($$2 =3D=3D $$4) files[d] =3D files[d] " " $$1; \ + else { print "f", $$3 "/" $$4, $$1; } } \ + END { for (d in files) print "f", d, files[d] }' | \ + while read type dir files; do \ + if test "$$dir" =3D .; then dir=3D; else dir=3D/$$dir; fi; \ + test -z "$$files" || { \ + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTO= OLFLAGS) --mode=3Dinstall $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)= $$dir'"; \ + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS= ) --mode=3Dinstall $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" = || exit $$?; \ + } \ + ; done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + @list=3D'$(bin_PROGRAMS)'; test -n "$(bindir)" || list=3D; \ + files=3D`for p in $$list; do echo "$$p"; done | \ + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \ + -e 's/$$/$(EXEEXT)/' `; \ + test -n "$$list" || exit 0; \ + echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \ + cd "$(DESTDIR)$(bindir)" && rm -f $$files + +clean-binPROGRAMS: + @list=3D'$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \ + echo " rm -f" $$list; \ + rm -f $$list || exit $$?; \ + test -n "$(EXEEXT)" || exit 0; \ + list=3D`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; = \ + echo " rm -f" $$list; \ + rm -f $$list +tester$(EXEEXT): $(tester_OBJECTS) $(tester_DEPENDENCIES)=20 + @rm -f tester$(EXEEXT) + $(LINK) $(tester_OBJECTS) $(tester_LDADD) $(LIBS) + +mostlyclean-compile: + -rm -f *.$(OBJEXT) + +distclean-compile: + -rm -f *.tab.c + +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/config.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dict.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/interpreter.Po@am__quot= e@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/laymanapi.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/message.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stringlist.Po@am__quote= @ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tester.Po@am__quote@ + +.c.o: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -= o $@ $< +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source=3D'$<' object=3D'$@' libtool=3D= no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=3D$(DEPDIR) $(CCDEPMODE) $(depc= omp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c $< + +.c.obj: +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -= o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source=3D'$<' object=3D'$@' libtool=3D= no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=3D$(DEPDIR) $(CCDEPMODE) $(depc= omp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` + +.c.lo: +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c= -o $@ $< +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo +@AMDEP_TRUE@@am__fastdepCC_FALSE@ source=3D'$<' object=3D'$@' libtool=3D= yes @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=3D$(DEPDIR) $(CCDEPMODE) $(depc= omp) @AMDEPBACKSLASH@ +@am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< + +mostlyclean-libtool: + -rm -f *.lo + +clean-libtool: + -rm -rf .libs _libs + +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) + list=3D'$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] =3D 1; nonempty =3D 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + mkid -fID $$unique +tags: TAGS + +TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + set x; \ + here=3D`pwd`; \ + list=3D'$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] =3D 1; nonempty =3D 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + shift; \ + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ + test -n "$$unique" || unique=3D$$empty_fix; \ + if test $$# -gt 0; then \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + "$$@" $$unique; \ + else \ + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ + $$unique; \ + fi; \ + fi +ctags: CTAGS +CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ + $(TAGS_FILES) $(LISP) + list=3D'$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + unique=3D`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | \ + $(AWK) '{ files[$$0] =3D 1; nonempty =3D 1; } \ + END { if (nonempty) { for (i in files) print i; }; }'`; \ + test -z "$(CTAGS_ARGS)$$unique" \ + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ + $$unique + +GTAGS: + here=3D`$(am__cd) $(top_builddir) && pwd` \ + && $(am__cd) $(top_srcdir) \ + && gtags -i $(GTAGS_ARGS) "$$here" + +distclean-tags: + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags + +distdir: $(DISTFILES) + @srcdirstrip=3D`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=3D`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; = \ + list=3D'$(DISTFILES)'; \ + dist_files=3D`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ + if test -f $$file || test -d $$file; then d=3D.; else d=3D$(srcdir); = fi; \ + if test -d $$d/$$file; then \ + dir=3D`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ + if test -d "$(distdir)/$$file"; then \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {= } \;; \ + fi; \ + if test -d $(srcdir)/$$file && test $$d !=3D $(srcdir); then \ + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {= } \;; \ + fi; \ + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ + else \ + test -f "$(distdir)/$$file" \ + || cp -p $$d/$$file "$(distdir)/$$file" \ + || exit 1; \ + fi; \ + done +check-am: all-am +check: check-am +all-am: Makefile $(PROGRAMS) +installdirs: + for dir in "$(DESTDIR)$(bindir)"; do \ + test -z "$$dir" || $(MKDIR_P) "$$dir"; \ + done +install: install-am +install-exec: install-exec-am +install-data: install-data-am +uninstall: uninstall-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am + +installcheck: installcheck-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" \ + install_sh_PROGRAM=3D"$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=3D= -s \ + `test -z '$(STRIP)' || \ + echo "INSTALL_PROGRAM_ENV=3DSTRIPPROG=3D'$(STRIP)'"` install +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) + -test . =3D "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm = -f $(CONFIG_CLEAN_VPATH_FILES) + +maintainer-clean-generic: + @echo "This command is intended for maintainers to use" + @echo "it deletes files that may require special tools to rebuild." +clean: clean-am + +clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am + +distclean: distclean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +distclean-am: clean-am distclean-compile distclean-generic \ + distclean-tags + +dvi: dvi-am + +dvi-am: + +html: html-am + +html-am: + +info: info-am + +info-am: + +install-data-am: + +install-dvi: install-dvi-am + +install-dvi-am: + +install-exec-am: install-binPROGRAMS + +install-html: install-html-am + +install-html-am: + +install-info: install-info-am + +install-info-am: + +install-man: + +install-pdf: install-pdf-am + +install-pdf-am: + +install-ps: install-ps-am + +install-ps-am: + +installcheck-am: + +maintainer-clean: maintainer-clean-am + -rm -rf ./$(DEPDIR) + -rm -f Makefile +maintainer-clean-am: distclean-am maintainer-clean-generic + +mostlyclean: mostlyclean-am + +mostlyclean-am: mostlyclean-compile mostlyclean-generic \ + mostlyclean-libtool + +pdf: pdf-am + +pdf-am: + +ps: ps-am + +ps-am: + +uninstall-am: uninstall-binPROGRAMS + +.MAKE: install-am install-strip + +.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \ + clean-generic clean-libtool ctags distclean distclean-compile \ + distclean-generic distclean-libtool distclean-tags distdir dvi \ + dvi-am html html-am info info-am install install-am \ + install-binPROGRAMS install-data install-data-am install-dvi \ + install-dvi-am install-exec install-exec-am install-html \ + install-html-am install-info install-info-am install-man \ + install-pdf install-pdf-am install-ps install-ps-am \ + install-strip installcheck installcheck-am installdirs \ + maintainer-clean maintainer-clean-generic mostlyclean \ + mostlyclean-compile mostlyclean-generic mostlyclean-libtool \ + pdf pdf-am ps ps-am tags uninstall uninstall-am \ + uninstall-binPROGRAMS + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: