Initial revision r-1_0_0

Mon Jan 24 14:34:29 2000 +0000

author
Lars J. Aas <larsa@sim.no>
date
Mon Jan 24 14:34:29 2000 +0000
changeset 0
2a938cdf2d75
child 1
01a641981b10

Initial revision

.cvsignore file | annotate | diff | revisions
AUTHORS file | annotate | diff | revisions
COPYING file | annotate | diff | revisions
CREDITS file | annotate | diff | revisions
ChangeLog.sh file | annotate | diff | revisions
INSTALL file | annotate | diff | revisions
LICENSE.GPL file | annotate | diff | revisions
LICENSE.QPL file | annotate | diff | revisions
Makefile.am file | annotate | diff | revisions
Makefile.in file | annotate | diff | revisions
NEWS file | annotate | diff | revisions
README file | annotate | diff | revisions
TODO file | annotate | diff | revisions
aclocal.m4 file | annotate | diff | revisions
autogen.sh file | annotate | diff | revisions
config.guess file | annotate | diff | revisions
config.h.in file | annotate | diff | revisions
config.sub file | annotate | diff | revisions
configure file | annotate | diff | revisions
configure.in file | annotate | diff | revisions
depcomp file | annotate | diff | revisions
install-sh file | annotate | diff | revisions
ltconfig file | annotate | diff | revisions
ltmain.sh file | annotate | diff | revisions
missing file | annotate | diff | revisions
mkinstalldirs file | annotate | diff | revisions
sogtk-config.in file | annotate | diff | revisions
src/Inventor/Gtk/Makefile.am file | annotate | diff | revisions
src/Inventor/Gtk/Makefile.in file | annotate | diff | revisions
src/Inventor/Gtk/SoGtk.cpp file | annotate | diff | revisions
src/Inventor/Gtk/SoGtk.h file | annotate | diff | revisions
src/Inventor/Gtk/SoGtkComponent.cpp file | annotate | diff | revisions
src/Inventor/Gtk/SoGtkComponent.h file | annotate | diff | revisions
src/Inventor/Gtk/SoGtkCursors.h file | annotate | diff | revisions
src/Inventor/Gtk/SoGtkGLWidget.cpp file | annotate | diff | revisions
src/Inventor/Gtk/SoGtkGLWidget.h file | annotate | diff | revisions
src/Inventor/Gtk/SoGtkRenderArea.cpp file | annotate | diff | revisions
src/Inventor/Gtk/SoGtkRenderArea.h file | annotate | diff | revisions
src/Inventor/Gtk/devices/Makefile.am file | annotate | diff | revisions
src/Inventor/Gtk/devices/Makefile.in file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkDevice.cpp file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkDevice.h file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkInputFocus.cpp file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkInputFocus.h file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkKeyboard.cpp file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkKeyboard.h file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkMouse.cpp file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkMouse.h file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkSpaceball.cpp file | annotate | diff | revisions
src/Inventor/Gtk/devices/SoGtkSpaceball.h file | annotate | diff | revisions
src/Inventor/Gtk/viewers/Makefile.am file | annotate | diff | revisions
src/Inventor/Gtk/viewers/Makefile.in file | annotate | diff | revisions
src/Inventor/Gtk/viewers/SoGtkExaminerViewer.cpp file | annotate | diff | revisions
src/Inventor/Gtk/viewers/SoGtkExaminerViewer.h file | annotate | diff | revisions
src/Inventor/Gtk/viewers/SoGtkFullViewer.cpp file | annotate | diff | revisions
src/Inventor/Gtk/viewers/SoGtkFullViewer.h file | annotate | diff | revisions
src/Inventor/Gtk/viewers/SoGtkViewer.cpp file | annotate | diff | revisions
src/Inventor/Gtk/viewers/SoGtkViewer.h file | annotate | diff | revisions
src/Inventor/Gtk/widgets/Makefile.am file | annotate | diff | revisions
src/Inventor/Gtk/widgets/Makefile.in file | annotate | diff | revisions
src/Inventor/Gtk/widgets/gtkthumbwheel.cpp file | annotate | diff | revisions
src/Inventor/Gtk/widgets/gtkthumbwheel.h file | annotate | diff | revisions
stamp-h.in file | annotate | diff | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/.cvsignore	Mon Jan 24 14:34:29 2000 +0000
     1.3 @@ -0,0 +1,1 @@
     1.4 +stuff
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/AUTHORS	Mon Jan 24 14:34:29 2000 +0000
     2.3 @@ -0,0 +1,5 @@
     2.4 +AUTHORS
     2.5 +=======
     2.6 +
     2.7 +Lars J. Aas <larsa@sim.no>
     2.8 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/COPYING	Mon Jan 24 14:34:29 2000 +0000
     3.3 @@ -0,0 +1,9 @@
     3.4 +COPYING
     3.5 +=======
     3.6 +
     3.7 +See the file LICENSE.QPL for the Q Public License, which applies to all
     3.8 +source files libSoGtk is built from.
     3.9 +
    3.10 +See the file LICENSE.GPL for the GNU General Public License, which applies
    3.11 +to the autoconf/automake/libtool setup used during the build process.
    3.12 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/CREDITS	Mon Jan 24 14:34:29 2000 +0000
     4.3 @@ -0,0 +1,15 @@
     4.4 +CREDITS
     4.5 +=======
     4.6 +
     4.7 +
     4.8 +INDIRECT
     4.9 +========
    4.10 +
    4.11 +The GTK+ Team
    4.12 +  - the GTK+ library family
    4.13 +    http://www.gtk.org/
    4.14 +
    4.15 +Janne Löf <jlof@mail.student.oulu.fi> 
    4.16 +  - the GtkGLArea widget library
    4.17 +    http://www.student.oulu.fi/~jlof/gtkglarea/
    4.18 +
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/ChangeLog.sh	Mon Jan 24 14:34:29 2000 +0000
     5.3 @@ -0,0 +1,46 @@
     5.4 +#!/bin/sh
     5.5 +############################################################################
     5.6 +#
     5.7 +#  gen-changelog is a wrapper-script for generating ChangeLog files
     5.8 +#  using the cvs2cl script.
     5.9 +#
    5.10 +
    5.11 +GUI=Gtk
    5.12 +cvs2cl=$HOME/store/cvs/cvs2cl/cvs2cl.pl
    5.13 +projectdir=$HOME/code/coin/src/So$GUI
    5.14 +headerfile=/tmp/So$GUI.header
    5.15 +
    5.16 +############################################################################
    5.17 +cat > $headerfile <<ENDOFHEADER
    5.18 +ChangeLog
    5.19 +=========
    5.20 +
    5.21 +This is the ChangeLog file for the So$GUI library.  This file is auto-
    5.22 +matically generated every night.  Entries are in reversed chronological
    5.23 +order.  See also the following ChangeLog files:
    5.24 +
    5.25 +  ./conf-macros/ChangeLog 
    5.26 +  ./src/Inventor/$GUI/common/ChangeLog
    5.27 +
    5.28 +See http://www.red-bean.com/~kfogel/cvs2cl.shtml for information about the
    5.29 +script, cvs2cl.pl, used to generate this file.
    5.30 +
    5.31 +============================================================================
    5.32 +ENDOFHEADER
    5.33 +############################################################################
    5.34 +
    5.35 +cd $projectdir
    5.36 +
    5.37 +# generate ChangeLog, but strip off uninteresting entries
    5.38 +cvs log | $cvs2cl --stdin --header $headerfile --separate-header --prune \
    5.39 +  --ignore 'ChangeLog$' \
    5.40 +  --ignore '(Makefile\.in|configure|aclocal\.m4|config\.sub|config\.guess)$' \
    5.41 +  --ignore '(ltconfig|ltmain\.sh|missing|mkinstalldirs|stamp-h.*|install-sh)$' \
    5.42 +  --ignore 'config\.h\.in$' \
    5.43 +  --ignore 'conf-macros/' \
    5.44 +  --ignore "src/Inventor/$GUI/common/"
    5.45 +
    5.46 +rm ChangeLog.bak $headerfile
    5.47 +
    5.48 +cvs commit -m "Automatic ChangeLog generation" ChangeLog
    5.49 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/INSTALL	Mon Jan 24 14:34:29 2000 +0000
     6.3 @@ -0,0 +1,182 @@
     6.4 +Basic Installation
     6.5 +==================
     6.6 +
     6.7 +   These are generic installation instructions.
     6.8 +
     6.9 +   The `configure' shell script attempts to guess correct values for
    6.10 +various system-dependent variables used during compilation.  It uses
    6.11 +those values to create a `Makefile' in each directory of the package.
    6.12 +It may also create one or more `.h' files containing system-dependent
    6.13 +definitions.  Finally, it creates a shell script `config.status' that
    6.14 +you can run in the future to recreate the current configuration, a file
    6.15 +`config.cache' that saves the results of its tests to speed up
    6.16 +reconfiguring, and a file `config.log' containing compiler output
    6.17 +(useful mainly for debugging `configure').
    6.18 +
    6.19 +   If you need to do unusual things to compile the package, please try
    6.20 +to figure out how `configure' could check whether to do them, and mail
    6.21 +diffs or instructions to the address given in the `README' so they can
    6.22 +be considered for the next release.  If at some point `config.cache'
    6.23 +contains results you don't want to keep, you may remove or edit it.
    6.24 +
    6.25 +   The file `configure.in' is used to create `configure' by a program
    6.26 +called `autoconf'.  You only need `configure.in' if you want to change
    6.27 +it or regenerate `configure' using a newer version of `autoconf'.
    6.28 +
    6.29 +The simplest way to compile this package is:
    6.30 +
    6.31 +  1. `cd' to the directory containing the package's source code and type
    6.32 +     `./configure' to configure the package for your system.  If you're
    6.33 +     using `csh' on an old version of System V, you might need to type
    6.34 +     `sh ./configure' instead to prevent `csh' from trying to execute
    6.35 +     `configure' itself.
    6.36 +
    6.37 +     Running `configure' takes awhile.  While running, it prints some
    6.38 +     messages telling which features it is checking for.
    6.39 +
    6.40 +  2. Type `make' to compile the package.
    6.41 +
    6.42 +  3. Optionally, type `make check' to run any self-tests that come with
    6.43 +     the package.
    6.44 +
    6.45 +  4. Type `make install' to install the programs and any data files and
    6.46 +     documentation.
    6.47 +
    6.48 +  5. You can remove the program binaries and object files from the
    6.49 +     source code directory by typing `make clean'.  To also remove the
    6.50 +     files that `configure' created (so you can compile the package for
    6.51 +     a different kind of computer), type `make distclean'.  There is
    6.52 +     also a `make maintainer-clean' target, but that is intended mainly
    6.53 +     for the package's developers.  If you use it, you may have to get
    6.54 +     all sorts of other programs in order to regenerate files that came
    6.55 +     with the distribution.
    6.56 +
    6.57 +Compilers and Options
    6.58 +=====================
    6.59 +
    6.60 +   Some systems require unusual options for compilation or linking that
    6.61 +the `configure' script does not know about.  You can give `configure'
    6.62 +initial values for variables by setting them in the environment.  Using
    6.63 +a Bourne-compatible shell, you can do that on the command line like
    6.64 +this:
    6.65 +     CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
    6.66 +
    6.67 +Or on systems that have the `env' program, you can do it like this:
    6.68 +     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
    6.69 +
    6.70 +Compiling For Multiple Architectures
    6.71 +====================================
    6.72 +
    6.73 +   You can compile the package for more than one kind of computer at the
    6.74 +same time, by placing the object files for each architecture in their
    6.75 +own directory.  To do this, you must use a version of `make' that
    6.76 +supports the `VPATH' variable, such as GNU `make'.  `cd' to the
    6.77 +directory where you want the object files and executables to go and run
    6.78 +the `configure' script.  `configure' automatically checks for the
    6.79 +source code in the directory that `configure' is in and in `..'.
    6.80 +
    6.81 +   If you have to use a `make' that does not supports the `VPATH'
    6.82 +variable, you have to compile the package for one architecture at a time
    6.83 +in the source code directory.  After you have installed the package for
    6.84 +one architecture, use `make distclean' before reconfiguring for another
    6.85 +architecture.
    6.86 +
    6.87 +Installation Names
    6.88 +==================
    6.89 +
    6.90 +   By default, `make install' will install the package's files in
    6.91 +`/usr/local/bin', `/usr/local/man', etc.  You can specify an
    6.92 +installation prefix other than `/usr/local' by giving `configure' the
    6.93 +option `--prefix=PATH'.
    6.94 +
    6.95 +   You can specify separate installation prefixes for
    6.96 +architecture-specific files and architecture-independent files.  If you
    6.97 +give `configure' the option `--exec-prefix=PATH', the package will use
    6.98 +PATH as the prefix for installing programs and libraries.
    6.99 +Documentation and other data files will still use the regular prefix.
   6.100 +
   6.101 +   In addition, if you use an unusual directory layout you can give
   6.102 +options like `--bindir=PATH' to specify different values for particular
   6.103 +kinds of files.  Run `configure --help' for a list of the directories
   6.104 +you can set and what kinds of files go in them.
   6.105 +
   6.106 +   If the package supports it, you can cause programs to be installed
   6.107 +with an extra prefix or suffix on their names by giving `configure' the
   6.108 +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
   6.109 +
   6.110 +Optional Features
   6.111 +=================
   6.112 +
   6.113 +   Some packages pay attention to `--enable-FEATURE' options to
   6.114 +`configure', where FEATURE indicates an optional part of the package.
   6.115 +They may also pay attention to `--with-PACKAGE' options, where PACKAGE
   6.116 +is something like `gnu-as' or `x' (for the X Window System).  The
   6.117 +`README' should mention any `--enable-' and `--with-' options that the
   6.118 +package recognizes.
   6.119 +
   6.120 +   For packages that use the X Window System, `configure' can usually
   6.121 +find the X include and library files automatically, but if it doesn't,
   6.122 +you can use the `configure' options `--x-includes=DIR' and
   6.123 +`--x-libraries=DIR' to specify their locations.
   6.124 +
   6.125 +Specifying the System Type
   6.126 +==========================
   6.127 +
   6.128 +   There may be some features `configure' can not figure out
   6.129 +automatically, but needs to determine by the type of host the package
   6.130 +will run on.  Usually `configure' can figure that out, but if it prints
   6.131 +a message saying it can not guess the host type, give it the
   6.132 +`--host=TYPE' option.  TYPE can either be a short name for the system
   6.133 +type, such as `sun4', or a canonical name with three fields:
   6.134 +     CPU-COMPANY-SYSTEM
   6.135 +
   6.136 +See the file `config.sub' for the possible values of each field.  If
   6.137 +`config.sub' isn't included in this package, then this package doesn't
   6.138 +need to know the host type.
   6.139 +
   6.140 +   If you are building compiler tools for cross-compiling, you can also
   6.141 +use the `--target=TYPE' option to select the type of system they will
   6.142 +produce code for and the `--build=TYPE' option to select the type of
   6.143 +system on which you are compiling the package.
   6.144 +
   6.145 +Sharing Defaults
   6.146 +================
   6.147 +
   6.148 +   If you want to set default values for `configure' scripts to share,
   6.149 +you can create a site shell script called `config.site' that gives
   6.150 +default values for variables like `CC', `cache_file', and `prefix'.
   6.151 +`configure' looks for `PREFIX/share/config.site' if it exists, then
   6.152 +`PREFIX/etc/config.site' if it exists.  Or, you can set the
   6.153 +`CONFIG_SITE' environment variable to the location of the site script.
   6.154 +A warning: not all `configure' scripts look for a site script.
   6.155 +
   6.156 +Operation Controls
   6.157 +==================
   6.158 +
   6.159 +   `configure' recognizes the following options to control how it
   6.160 +operates.
   6.161 +
   6.162 +`--cache-file=FILE'
   6.163 +     Use and save the results of the tests in FILE instead of
   6.164 +     `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
   6.165 +     debugging `configure'.
   6.166 +
   6.167 +`--help'
   6.168 +     Print a summary of the options to `configure', and exit.
   6.169 +
   6.170 +`--quiet'
   6.171 +`--silent'
   6.172 +`-q'
   6.173 +     Do not print messages saying which checks are being made.  To
   6.174 +     suppress all normal output, redirect it to `/dev/null' (any error
   6.175 +     messages will still be shown).
   6.176 +
   6.177 +`--srcdir=DIR'
   6.178 +     Look for the package's source code in directory DIR.  Usually
   6.179 +     `configure' can determine that directory automatically.
   6.180 +
   6.181 +`--version'
   6.182 +     Print the version of Autoconf used to generate the `configure'
   6.183 +     script, and exit.
   6.184 +
   6.185 +`configure' also accepts some other, not widely useful, options.
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/LICENSE.GPL	Mon Jan 24 14:34:29 2000 +0000
     7.3 @@ -0,0 +1,339 @@
     7.4 +		    GNU GENERAL PUBLIC LICENSE
     7.5 +		       Version 2, June 1991
     7.6 +
     7.7 + Copyright (C) 1989, 1991 Free Software Foundation, Inc.
     7.8 +                          675 Mass Ave, Cambridge, MA 02139, USA
     7.9 + Everyone is permitted to copy and distribute verbatim copies
    7.10 + of this license document, but changing it is not allowed.
    7.11 +
    7.12 +			    Preamble
    7.13 +
    7.14 +  The licenses for most software are designed to take away your
    7.15 +freedom to share and change it.  By contrast, the GNU General Public
    7.16 +License is intended to guarantee your freedom to share and change free
    7.17 +software--to make sure the software is free for all its users.  This
    7.18 +General Public License applies to most of the Free Software
    7.19 +Foundation's software and to any other program whose authors commit to
    7.20 +using it.  (Some other Free Software Foundation software is covered by
    7.21 +the GNU Library General Public License instead.)  You can apply it to
    7.22 +your programs, too.
    7.23 +
    7.24 +  When we speak of free software, we are referring to freedom, not
    7.25 +price.  Our General Public Licenses are designed to make sure that you
    7.26 +have the freedom to distribute copies of free software (and charge for
    7.27 +this service if you wish), that you receive source code or can get it
    7.28 +if you want it, that you can change the software or use pieces of it
    7.29 +in new free programs; and that you know you can do these things.
    7.30 +
    7.31 +  To protect your rights, we need to make restrictions that forbid
    7.32 +anyone to deny you these rights or to ask you to surrender the rights.
    7.33 +These restrictions translate to certain responsibilities for you if you
    7.34 +distribute copies of the software, or if you modify it.
    7.35 +
    7.36 +  For example, if you distribute copies of such a program, whether
    7.37 +gratis or for a fee, you must give the recipients all the rights that
    7.38 +you have.  You must make sure that they, too, receive or can get the
    7.39 +source code.  And you must show them these terms so they know their
    7.40 +rights.
    7.41 +
    7.42 +  We protect your rights with two steps: (1) copyright the software, and
    7.43 +(2) offer you this license which gives you legal permission to copy,
    7.44 +distribute and/or modify the software.
    7.45 +
    7.46 +  Also, for each author's protection and ours, we want to make certain
    7.47 +that everyone understands that there is no warranty for this free
    7.48 +software.  If the software is modified by someone else and passed on, we
    7.49 +want its recipients to know that what they have is not the original, so
    7.50 +that any problems introduced by others will not reflect on the original
    7.51 +authors' reputations.
    7.52 +
    7.53 +  Finally, any free program is threatened constantly by software
    7.54 +patents.  We wish to avoid the danger that redistributors of a free
    7.55 +program will individually obtain patent licenses, in effect making the
    7.56 +program proprietary.  To prevent this, we have made it clear that any
    7.57 +patent must be licensed for everyone's free use or not licensed at all.
    7.58 +
    7.59 +  The precise terms and conditions for copying, distribution and
    7.60 +modification follow.
    7.61 +
    7.62 +		    GNU GENERAL PUBLIC LICENSE
    7.63 +   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    7.64 +
    7.65 +  0. This License applies to any program or other work which contains
    7.66 +a notice placed by the copyright holder saying it may be distributed
    7.67 +under the terms of this General Public License.  The "Program", below,
    7.68 +refers to any such program or work, and a "work based on the Program"
    7.69 +means either the Program or any derivative work under copyright law:
    7.70 +that is to say, a work containing the Program or a portion of it,
    7.71 +either verbatim or with modifications and/or translated into another
    7.72 +language.  (Hereinafter, translation is included without limitation in
    7.73 +the term "modification".)  Each licensee is addressed as "you".
    7.74 +
    7.75 +Activities other than copying, distribution and modification are not
    7.76 +covered by this License; they are outside its scope.  The act of
    7.77 +running the Program is not restricted, and the output from the Program
    7.78 +is covered only if its contents constitute a work based on the
    7.79 +Program (independent of having been made by running the Program).
    7.80 +Whether that is true depends on what the Program does.
    7.81 +
    7.82 +  1. You may copy and distribute verbatim copies of the Program's
    7.83 +source code as you receive it, in any medium, provided that you
    7.84 +conspicuously and appropriately publish on each copy an appropriate
    7.85 +copyright notice and disclaimer of warranty; keep intact all the
    7.86 +notices that refer to this License and to the absence of any warranty;
    7.87 +and give any other recipients of the Program a copy of this License
    7.88 +along with the Program.
    7.89 +
    7.90 +You may charge a fee for the physical act of transferring a copy, and
    7.91 +you may at your option offer warranty protection in exchange for a fee.
    7.92 +
    7.93 +  2. You may modify your copy or copies of the Program or any portion
    7.94 +of it, thus forming a work based on the Program, and copy and
    7.95 +distribute such modifications or work under the terms of Section 1
    7.96 +above, provided that you also meet all of these conditions:
    7.97 +
    7.98 +    a) You must cause the modified files to carry prominent notices
    7.99 +    stating that you changed the files and the date of any change.
   7.100 +
   7.101 +    b) You must cause any work that you distribute or publish, that in
   7.102 +    whole or in part contains or is derived from the Program or any
   7.103 +    part thereof, to be licensed as a whole at no charge to all third
   7.104 +    parties under the terms of this License.
   7.105 +
   7.106 +    c) If the modified program normally reads commands interactively
   7.107 +    when run, you must cause it, when started running for such
   7.108 +    interactive use in the most ordinary way, to print or display an
   7.109 +    announcement including an appropriate copyright notice and a
   7.110 +    notice that there is no warranty (or else, saying that you provide
   7.111 +    a warranty) and that users may redistribute the program under
   7.112 +    these conditions, and telling the user how to view a copy of this
   7.113 +    License.  (Exception: if the Program itself is interactive but
   7.114 +    does not normally print such an announcement, your work based on
   7.115 +    the Program is not required to print an announcement.)
   7.116 +
   7.117 +These requirements apply to the modified work as a whole.  If
   7.118 +identifiable sections of that work are not derived from the Program,
   7.119 +and can be reasonably considered independent and separate works in
   7.120 +themselves, then this License, and its terms, do not apply to those
   7.121 +sections when you distribute them as separate works.  But when you
   7.122 +distribute the same sections as part of a whole which is a work based
   7.123 +on the Program, the distribution of the whole must be on the terms of
   7.124 +this License, whose permissions for other licensees extend to the
   7.125 +entire whole, and thus to each and every part regardless of who wrote it.
   7.126 +
   7.127 +Thus, it is not the intent of this section to claim rights or contest
   7.128 +your rights to work written entirely by you; rather, the intent is to
   7.129 +exercise the right to control the distribution of derivative or
   7.130 +collective works based on the Program.
   7.131 +
   7.132 +In addition, mere aggregation of another work not based on the Program
   7.133 +with the Program (or with a work based on the Program) on a volume of
   7.134 +a storage or distribution medium does not bring the other work under
   7.135 +the scope of this License.
   7.136 +
   7.137 +  3. You may copy and distribute the Program (or a work based on it,
   7.138 +under Section 2) in object code or executable form under the terms of
   7.139 +Sections 1 and 2 above provided that you also do one of the following:
   7.140 +
   7.141 +    a) Accompany it with the complete corresponding machine-readable
   7.142 +    source code, which must be distributed under the terms of Sections
   7.143 +    1 and 2 above on a medium customarily used for software interchange; or,
   7.144 +
   7.145 +    b) Accompany it with a written offer, valid for at least three
   7.146 +    years, to give any third party, for a charge no more than your
   7.147 +    cost of physically performing source distribution, a complete
   7.148 +    machine-readable copy of the corresponding source code, to be
   7.149 +    distributed under the terms of Sections 1 and 2 above on a medium
   7.150 +    customarily used for software interchange; or,
   7.151 +
   7.152 +    c) Accompany it with the information you received as to the offer
   7.153 +    to distribute corresponding source code.  (This alternative is
   7.154 +    allowed only for noncommercial distribution and only if you
   7.155 +    received the program in object code or executable form with such
   7.156 +    an offer, in accord with Subsection b above.)
   7.157 +
   7.158 +The source code for a work means the preferred form of the work for
   7.159 +making modifications to it.  For an executable work, complete source
   7.160 +code means all the source code for all modules it contains, plus any
   7.161 +associated interface definition files, plus the scripts used to
   7.162 +control compilation and installation of the executable.  However, as a
   7.163 +special exception, the source code distributed need not include
   7.164 +anything that is normally distributed (in either source or binary
   7.165 +form) with the major components (compiler, kernel, and so on) of the
   7.166 +operating system on which the executable runs, unless that component
   7.167 +itself accompanies the executable.
   7.168 +
   7.169 +If distribution of executable or object code is made by offering
   7.170 +access to copy from a designated place, then offering equivalent
   7.171 +access to copy the source code from the same place counts as
   7.172 +distribution of the source code, even though third parties are not
   7.173 +compelled to copy the source along with the object code.
   7.174 +
   7.175 +  4. You may not copy, modify, sublicense, or distribute the Program
   7.176 +except as expressly provided under this License.  Any attempt
   7.177 +otherwise to copy, modify, sublicense or distribute the Program is
   7.178 +void, and will automatically terminate your rights under this License.
   7.179 +However, parties who have received copies, or rights, from you under
   7.180 +this License will not have their licenses terminated so long as such
   7.181 +parties remain in full compliance.
   7.182 +
   7.183 +  5. You are not required to accept this License, since you have not
   7.184 +signed it.  However, nothing else grants you permission to modify or
   7.185 +distribute the Program or its derivative works.  These actions are
   7.186 +prohibited by law if you do not accept this License.  Therefore, by
   7.187 +modifying or distributing the Program (or any work based on the
   7.188 +Program), you indicate your acceptance of this License to do so, and
   7.189 +all its terms and conditions for copying, distributing or modifying
   7.190 +the Program or works based on it.
   7.191 +
   7.192 +  6. Each time you redistribute the Program (or any work based on the
   7.193 +Program), the recipient automatically receives a license from the
   7.194 +original licensor to copy, distribute or modify the Program subject to
   7.195 +these terms and conditions.  You may not impose any further
   7.196 +restrictions on the recipients' exercise of the rights granted herein.
   7.197 +You are not responsible for enforcing compliance by third parties to
   7.198 +this License.
   7.199 +
   7.200 +  7. If, as a consequence of a court judgment or allegation of patent
   7.201 +infringement or for any other reason (not limited to patent issues),
   7.202 +conditions are imposed on you (whether by court order, agreement or
   7.203 +otherwise) that contradict the conditions of this License, they do not
   7.204 +excuse you from the conditions of this License.  If you cannot
   7.205 +distribute so as to satisfy simultaneously your obligations under this
   7.206 +License and any other pertinent obligations, then as a consequence you
   7.207 +may not distribute the Program at all.  For example, if a patent
   7.208 +license would not permit royalty-free redistribution of the Program by
   7.209 +all those who receive copies directly or indirectly through you, then
   7.210 +the only way you could satisfy both it and this License would be to
   7.211 +refrain entirely from distribution of the Program.
   7.212 +
   7.213 +If any portion of this section is held invalid or unenforceable under
   7.214 +any particular circumstance, the balance of the section is intended to
   7.215 +apply and the section as a whole is intended to apply in other
   7.216 +circumstances.
   7.217 +
   7.218 +It is not the purpose of this section to induce you to infringe any
   7.219 +patents or other property right claims or to contest validity of any
   7.220 +such claims; this section has the sole purpose of protecting the
   7.221 +integrity of the free software distribution system, which is
   7.222 +implemented by public license practices.  Many people have made
   7.223 +generous contributions to the wide range of software distributed
   7.224 +through that system in reliance on consistent application of that
   7.225 +system; it is up to the author/donor to decide if he or she is willing
   7.226 +to distribute software through any other system and a licensee cannot
   7.227 +impose that choice.
   7.228 +
   7.229 +This section is intended to make thoroughly clear what is believed to
   7.230 +be a consequence of the rest of this License.
   7.231 +
   7.232 +  8. If the distribution and/or use of the Program is restricted in
   7.233 +certain countries either by patents or by copyrighted interfaces, the
   7.234 +original copyright holder who places the Program under this License
   7.235 +may add an explicit geographical distribution limitation excluding
   7.236 +those countries, so that distribution is permitted only in or among
   7.237 +countries not thus excluded.  In such case, this License incorporates
   7.238 +the limitation as if written in the body of this License.
   7.239 +
   7.240 +  9. The Free Software Foundation may publish revised and/or new versions
   7.241 +of the General Public License from time to time.  Such new versions will
   7.242 +be similar in spirit to the present version, but may differ in detail to
   7.243 +address new problems or concerns.
   7.244 +
   7.245 +Each version is given a distinguishing version number.  If the Program
   7.246 +specifies a version number of this License which applies to it and "any
   7.247 +later version", you have the option of following the terms and conditions
   7.248 +either of that version or of any later version published by the Free
   7.249 +Software Foundation.  If the Program does not specify a version number of
   7.250 +this License, you may choose any version ever published by the Free Software
   7.251 +Foundation.
   7.252 +
   7.253 +  10. If you wish to incorporate parts of the Program into other free
   7.254 +programs whose distribution conditions are different, write to the author
   7.255 +to ask for permission.  For software which is copyrighted by the Free
   7.256 +Software Foundation, write to the Free Software Foundation; we sometimes
   7.257 +make exceptions for this.  Our decision will be guided by the two goals
   7.258 +of preserving the free status of all derivatives of our free software and
   7.259 +of promoting the sharing and reuse of software generally.
   7.260 +
   7.261 +			    NO WARRANTY
   7.262 +
   7.263 +  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
   7.264 +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
   7.265 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
   7.266 +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
   7.267 +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
   7.268 +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
   7.269 +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
   7.270 +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
   7.271 +REPAIR OR CORRECTION.
   7.272 +
   7.273 +  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
   7.274 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
   7.275 +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
   7.276 +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
   7.277 +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
   7.278 +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
   7.279 +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
   7.280 +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
   7.281 +POSSIBILITY OF SUCH DAMAGES.
   7.282 +
   7.283 +		     END OF TERMS AND CONDITIONS
   7.284 +
   7.285 +	Appendix: How to Apply These Terms to Your New Programs
   7.286 +
   7.287 +  If you develop a new program, and you want it to be of the greatest
   7.288 +possible use to the public, the best way to achieve this is to make it
   7.289 +free software which everyone can redistribute and change under these terms.
   7.290 +
   7.291 +  To do so, attach the following notices to the program.  It is safest
   7.292 +to attach them to the start of each source file to most effectively
   7.293 +convey the exclusion of warranty; and each file should have at least
   7.294 +the "copyright" line and a pointer to where the full notice is found.
   7.295 +
   7.296 +    <one line to give the program's name and a brief idea of what it does.>
   7.297 +    Copyright (C) 19yy  <name of author>
   7.298 +
   7.299 +    This program is free software; you can redistribute it and/or modify
   7.300 +    it under the terms of the GNU General Public License as published by
   7.301 +    the Free Software Foundation; either version 2 of the License, or
   7.302 +    (at your option) any later version.
   7.303 +
   7.304 +    This program is distributed in the hope that it will be useful,
   7.305 +    but WITHOUT ANY WARRANTY; without even the implied warranty of
   7.306 +    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   7.307 +    GNU General Public License for more details.
   7.308 +
   7.309 +    You should have received a copy of the GNU General Public License
   7.310 +    along with this program; if not, write to the Free Software
   7.311 +    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   7.312 +
   7.313 +Also add information on how to contact you by electronic and paper mail.
   7.314 +
   7.315 +If the program is interactive, make it output a short notice like this
   7.316 +when it starts in an interactive mode:
   7.317 +
   7.318 +    Gnomovision version 69, Copyright (C) 19yy name of author
   7.319 +    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
   7.320 +    This is free software, and you are welcome to redistribute it
   7.321 +    under certain conditions; type `show c' for details.
   7.322 +
   7.323 +The hypothetical commands `show w' and `show c' should show the appropriate
   7.324 +parts of the General Public License.  Of course, the commands you use may
   7.325 +be called something other than `show w' and `show c'; they could even be
   7.326 +mouse-clicks or menu items--whatever suits your program.
   7.327 +
   7.328 +You should also get your employer (if you work as a programmer) or your
   7.329 +school, if any, to sign a "copyright disclaimer" for the program, if
   7.330 +necessary.  Here is a sample; alter the names:
   7.331 +
   7.332 +  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
   7.333 +  `Gnomovision' (which makes passes at compilers) written by James Hacker.
   7.334 +
   7.335 +  <signature of Ty Coon>, 1 April 1989
   7.336 +  Ty Coon, President of Vice
   7.337 +
   7.338 +This General Public License does not permit incorporating your program into
   7.339 +proprietary programs.  If your program is a subroutine library, you may
   7.340 +consider it more useful to permit linking proprietary applications with the
   7.341 +library.  If this is what you want to do, use the GNU Library General
   7.342 +Public License instead of this License.
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/LICENSE.QPL	Mon Jan 24 14:34:29 2000 +0000
     8.3 @@ -0,0 +1,114 @@
     8.4 +			     THE Q PUBLIC LICENSE
     8.5 +				  version 1.0
     8.6 +
     8.7 +		   Copyright (C) 1999 Troll Tech AS, Norway.
     8.8 +		       Everyone is permitted to copy and
     8.9 +		       distribute this license document.
    8.10 +
    8.11 +The intent of this license is to establish freedom to share and change the
    8.12 +software regulated by this license under the open source model.
    8.13 +
    8.14 +This license applies to any software containing a notice placed by the
    8.15 +copyright holder saying that it may be distributed under the terms of
    8.16 +the Q Public License version 1.0.  Such software is herein referred to as
    8.17 +the Software.  This license covers modification and distribution of the
    8.18 +Software, use of third-party application programs based on the Software,
    8.19 +and development of free software which uses the Software.
    8.20 +
    8.21 +
    8.22 +				 Granted Rights
    8.23 +
    8.24 +1. You are granted the non-exclusive rights set forth in this license
    8.25 +   provided you agree to and comply with any and all conditions in this
    8.26 +   license.  Whole or partial distribution of the Software, or software
    8.27 +   items that link with the Software, in any form signifies acceptance of
    8.28 +   this license.
    8.29 +
    8.30 +2. You may copy and distribute the Software in unmodified form provided
    8.31 +   that the entire package, including - but not restricted to - copyright,
    8.32 +   trademark notices and disclaimers, as released by the initial developer
    8.33 +   of the Software, is distributed.
    8.34 +
    8.35 +
    8.36 +
    8.37 +3. You may make modifications to the Software and distribute your
    8.38 +   modifications, in a form that is separate from the Software, such as
    8.39 +   patches. The following restrictions apply to modifications:
    8.40 +
    8.41 +
    8.42 +     a. Modifications must not alter or remove any copyright notices in
    8.43 +        the Software.
    8.44 +
    8.45 +     b. When modifications to the Software are released under this
    8.46 +        license, a non-exclusive royalty-free right is granted to the
    8.47 +        initial developer of the Software to distribute your modification
    8.48 +        in future versions of the Software provided such versions remain
    8.49 +        available under these terms in addition to any other license(s) of
    8.50 +        the initial developer.
    8.51 +
    8.52 +
    8.53 +4. You may distribute machine-executable forms of the Software or
    8.54 +   machine-executable forms of modified versions of the Software, provided
    8.55 +   that you meet these restrictions:
    8.56 +
    8.57 +     a. You must include this license document in the distribution.
    8.58 +
    8.59 +     b. You must ensure that all recipients of the machine-executable forms
    8.60 +        are also able to receive the complete machine-readable source code
    8.61 +        to the distributed Software, including all modifications, without
    8.62 +        any charge beyond the costs of data transfer, and place prominent
    8.63 +        notices in the distribution explaining this.
    8.64 +
    8.65 +     c. You must ensure that all modifications included in the
    8.66 +        machine-executable forms are available under the terms of this
    8.67 +        license.
    8.68 +
    8.69 +
    8.70 +5. You may use the original or modified versions of the Software to
    8.71 +   compile, link and run application programs legally developed by you
    8.72 +   or by others.
    8.73 +
    8.74 +
    8.75 +6. You may develop application programs, reusable components and other
    8.76 +   software items that link with the original or modified versions of the
    8.77 +   Software.  These items, when distributed, are subject to the following
    8.78 +   requirements:
    8.79 +
    8.80 +
    8.81 +     a. You must ensure that all recipients of machine-executable forms of
    8.82 +        these items are also able to receive and use the complete
    8.83 +        machine-readable source code to the items without any charge
    8.84 +        beyond the costs of data transfer.
    8.85 +
    8.86 +
    8.87 +     b. You must explicitly license all recipients of your items to use
    8.88 +        and re-distribute original and modified versions of the items in
    8.89 +        both machine-executable and source code forms. The recipients must
    8.90 +        be able to do so without any charges whatsoever, and they must be
    8.91 +        able to re-distribute to anyone they choose.
    8.92 +
    8.93 +
    8.94 +     c. If the items are not available to the general public, and the
    8.95 +        initial developer of the Software requests a copy of the items,
    8.96 +        then you must supply one.
    8.97 +
    8.98 +
    8.99 +
   8.100 +			    Limitations of Liability
   8.101 +
   8.102 +In no event shall the initial developers or copyright holders be liable
   8.103 +for any damages whatsoever, including - but not restricted to - lost
   8.104 +revenue or profits or other direct, indirect, special, incidental or
   8.105 +consequential damages, even if they have been advised of the possibility
   8.106 +of such damages, except to the extent invariable law, if any, provides
   8.107 +otherwise.
   8.108 +
   8.109 +			          No Warranty
   8.110 +
   8.111 +The Software and this license document are provided AS IS with NO WARRANTY
   8.112 +OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS
   8.113 +FOR A PARTICULAR PURPOSE.
   8.114 +                                 Choice of Law
   8.115 +
   8.116 +This license is governed by the Laws of Norway. Disputes shall be settled
   8.117 +by Oslo City Court.
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/Makefile.am	Mon Jan 24 14:34:29 2000 +0000
     9.3 @@ -0,0 +1,3 @@
     9.4 +
     9.5 +SUBDIRS = src/Inventor/Gtk examples
     9.6 +
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/Makefile.in	Mon Jan 24 14:34:29 2000 +0000
    10.3 @@ -0,0 +1,414 @@
    10.4 +# Makefile.in generated automatically by automake 1.4a from Makefile.am
    10.5 +
    10.6 +# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
    10.7 +# This Makefile.in is free software; the Free Software Foundation
    10.8 +# gives unlimited permission to copy and/or distribute it,
    10.9 +# with or without modifications, as long as this notice is preserved.
   10.10 +
   10.11 +# This program is distributed in the hope that it will be useful,
   10.12 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   10.13 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   10.14 +# PARTICULAR PURPOSE.
   10.15 +
   10.16 +SHELL = @SHELL@
   10.17 +
   10.18 +srcdir = @srcdir@
   10.19 +top_srcdir = @top_srcdir@
   10.20 +VPATH = @srcdir@
   10.21 +prefix = @prefix@
   10.22 +exec_prefix = @exec_prefix@
   10.23 +
   10.24 +bindir = @bindir@
   10.25 +sbindir = @sbindir@
   10.26 +libexecdir = @libexecdir@
   10.27 +datadir = @datadir@
   10.28 +sysconfdir = @sysconfdir@
   10.29 +sharedstatedir = @sharedstatedir@
   10.30 +localstatedir = @localstatedir@
   10.31 +libdir = @libdir@
   10.32 +infodir = @infodir@
   10.33 +mandir = @mandir@
   10.34 +includedir = @includedir@
   10.35 +oldincludedir = /usr/include
   10.36 +
   10.37 +DESTDIR =
   10.38 +
   10.39 +pkgdatadir = $(datadir)/@PACKAGE@
   10.40 +pkglibdir = $(libdir)/@PACKAGE@
   10.41 +pkgincludedir = $(includedir)/@PACKAGE@
   10.42 +
   10.43 +top_builddir = .
   10.44 +
   10.45 +ACLOCAL = @ACLOCAL@
   10.46 +AUTOCONF = @AUTOCONF@
   10.47 +AUTOMAKE = @AUTOMAKE@
   10.48 +AUTOHEADER = @AUTOHEADER@
   10.49 +
   10.50 +INSTALL = @INSTALL@
   10.51 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
   10.52 +INSTALL_DATA = @INSTALL_DATA@
   10.53 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
   10.54 +INSTALL_STRIP_FLAG =
   10.55 +transform = @program_transform_name@
   10.56 +
   10.57 +NORMAL_INSTALL = :
   10.58 +PRE_INSTALL = :
   10.59 +POST_INSTALL = :
   10.60 +NORMAL_UNINSTALL = :
   10.61 +PRE_UNINSTALL = :
   10.62 +POST_UNINSTALL = :
   10.63 +
   10.64 +@SET_MAKE@
   10.65 +host_alias = @host_alias@
   10.66 +host_triplet = @host@
   10.67 +AMDEP = @AMDEP@
   10.68 +AMTAR = @AMTAR@
   10.69 +AS = @AS@
   10.70 +AWK = @AWK@
   10.71 +CC = @CC@
   10.72 +CPP = @CPP@
   10.73 +CXX = @CXX@
   10.74 +CXXCPP = @CXXCPP@
   10.75 +DEPDIR = @DEPDIR@
   10.76 +DLLTOOL = @DLLTOOL@
   10.77 +GTKGL_CFLAGS = @GTKGL_CFLAGS@
   10.78 +GTKGL_LIBS = @GTKGL_LIBS@
   10.79 +GTK_CFLAGS = @GTK_CFLAGS@
   10.80 +GTK_CONFIG = @GTK_CONFIG@
   10.81 +GTK_LIBS = @GTK_LIBS@
   10.82 +LIBTOOL = @LIBTOOL@
   10.83 +LN_S = @LN_S@
   10.84 +LT_AGE = @LT_AGE@
   10.85 +LT_CURRENT = @LT_CURRENT@
   10.86 +LT_RELEASE = @LT_RELEASE@
   10.87 +LT_REVISION = @LT_REVISION@
   10.88 +MAINT = @MAINT@
   10.89 +MAKEINFO = @MAKEINFO@
   10.90 +OBJDUMP = @OBJDUMP@
   10.91 +PACKAGE = @PACKAGE@
   10.92 +RANLIB = @RANLIB@
   10.93 +SOGTK_BINARY_AGE = @SOGTK_BINARY_AGE@
   10.94 +SOGTK_EXTRA_CPPFLAGS = @SOGTK_EXTRA_CPPFLAGS@
   10.95 +SOGTK_EXTRA_LDFLAGS = @SOGTK_EXTRA_LDFLAGS@
   10.96 +SOGTK_EXTRA_LIBS = @SOGTK_EXTRA_LIBS@
   10.97 +SOGTK_INTERFACE_AGE = @SOGTK_INTERFACE_AGE@
   10.98 +SOGTK_MAJOR_VERSION = @SOGTK_MAJOR_VERSION@
   10.99 +SOGTK_MICRO_VERSION = @SOGTK_MICRO_VERSION@
  10.100 +SOGTK_MINOR_VERSION = @SOGTK_MINOR_VERSION@
  10.101 +SOGTK_VERSION = @SOGTK_VERSION@
  10.102 +VERSION = @VERSION@
  10.103 +install_sh = @install_sh@
  10.104 +sim_ac_conf_cmd = @sim_ac_conf_cmd@
  10.105 +
  10.106 +
  10.107 +SUBDIRS = src/Inventor/Gtk examples
  10.108 +subdir = .
  10.109 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  10.110 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  10.111 +CONFIG_HEADER = config.h
  10.112 +CONFIG_CLEAN_FILES =  sogtk-config
  10.113 +DIST_SOURCES = 
  10.114 +DIST_COMMON =  README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \
  10.115 +Makefile.am Makefile.in NEWS TODO aclocal.m4 config.guess config.h.in \
  10.116 +config.sub configure configure.in depcomp install-sh ltconfig ltmain.sh \
  10.117 +missing mkinstalldirs sogtk-config.in
  10.118 +
  10.119 +
  10.120 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  10.121 +
  10.122 +GZIP_ENV = --best
  10.123 +all: all-redirect
  10.124 +.SUFFIXES:
  10.125 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
  10.126 +	cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile
  10.127 +
  10.128 +Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
  10.129 +	cd $(top_builddir) \
  10.130 +	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  10.131 +
  10.132 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in 
  10.133 +	cd $(srcdir) && $(ACLOCAL)
  10.134 +
  10.135 +config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
  10.136 +	$(SHELL) ./config.status --recheck
  10.137 +$(srcdir)/configure: @MAINTAINER_MODE_TRUE@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
  10.138 +	cd $(srcdir) && $(AUTOCONF)
  10.139 +
  10.140 +config.h: stamp-h
  10.141 +	@if test ! -f $@; then \
  10.142 +		rm -f stamp-h; \
  10.143 +		$(MAKE) stamp-h; \
  10.144 +	else :; fi
  10.145 +stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status
  10.146 +	@rm -f stamp-h stamp-hT
  10.147 +	@echo timestamp > stamp-hT 2> /dev/null
  10.148 +	cd $(top_builddir) \
  10.149 +	  && CONFIG_FILES= CONFIG_HEADERS=config.h \
  10.150 +	     $(SHELL) ./config.status
  10.151 +	@mv stamp-hT stamp-h
  10.152 +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@$(srcdir)/./stamp-h.in
  10.153 +	@if test ! -f $@; then \
  10.154 +		rm -f $(srcdir)/./stamp-h.in; \
  10.155 +		$(MAKE) $(srcdir)/./stamp-h.in; \
  10.156 +	else :; fi
  10.157 +$(srcdir)/./stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 
  10.158 +	@rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT
  10.159 +	@echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null
  10.160 +	cd $(top_srcdir) && $(AUTOHEADER)
  10.161 +	@mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in
  10.162 +
  10.163 +mostlyclean-hdr:
  10.164 +
  10.165 +clean-hdr:
  10.166 +
  10.167 +distclean-hdr:
  10.168 +	-rm -f config.h
  10.169 +
  10.170 +maintainer-clean-hdr:
  10.171 +sogtk-config: $(top_builddir)/config.status sogtk-config.in
  10.172 +	cd $(top_builddir) && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
  10.173 +
  10.174 +# This directory's subdirectories are mostly independent; you can cd
  10.175 +# into them and run `make' without going through this Makefile.
  10.176 +# To change the values of `make' variables: instead of editing Makefiles,
  10.177 +# (1) if the variable is set in `config.status', edit `config.status'
  10.178 +#     (which will cause the Makefiles to be regenerated when you run `make');
  10.179 +# (2) otherwise, pass the desired values on the `make' command line.
  10.180 +
  10.181 +all-recursive install-data-recursive install-exec-recursive \
  10.182 +installdirs-recursive install-recursive uninstall-recursive  \
  10.183 +check-recursive installcheck-recursive info-recursive dvi-recursive:
  10.184 +	@set fnord $(MAKEFLAGS); amf=$$2; \
  10.185 +	dot_seen=no; \
  10.186 +	target=`echo $@ | sed s/-recursive//`; \
  10.187 +	list='$(SUBDIRS)'; for subdir in $$list; do \
  10.188 +	  echo "Making $$target in $$subdir"; \
  10.189 +	  if test "$$subdir" = "."; then \
  10.190 +	    dot_seen=yes; \
  10.191 +	    local_target="$$target-am"; \
  10.192 +	  else \
  10.193 +	    local_target="$$target"; \
  10.194 +	  fi; \
  10.195 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  10.196 +	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  10.197 +	done; \
  10.198 +	if test "$$dot_seen" = "no"; then \
  10.199 +	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  10.200 +	fi; test -z "$$fail"
  10.201 +
  10.202 +mostlyclean-recursive clean-recursive distclean-recursive \
  10.203 +maintainer-clean-recursive:
  10.204 +	@set fnord $(MAKEFLAGS); amf=$$2; \
  10.205 +	dot_seen=no; \
  10.206 +	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
  10.207 +	  rev="$$subdir $$rev"; \
  10.208 +	  if test "$$subdir" = "."; then dot_seen=yes; else :; fi; \
  10.209 +	done; \
  10.210 +	test "$$dot_seen" = "no" && rev=". $$rev"; \
  10.211 +	target=`echo $@ | sed s/-recursive//`; \
  10.212 +	for subdir in $$rev; do \
  10.213 +	  echo "Making $$target in $$subdir"; \
  10.214 +	  if test "$$subdir" = "."; then \
  10.215 +	    local_target="$$target-am"; \
  10.216 +	  else \
  10.217 +	    local_target="$$target"; \
  10.218 +	  fi; \
  10.219 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  10.220 +	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
  10.221 +	done && test -z "$$fail"
  10.222 +tags-recursive:
  10.223 +	list='$(SUBDIRS)'; for subdir in $$list; do \
  10.224 +	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  10.225 +	done
  10.226 +
  10.227 +tags: TAGS
  10.228 +
  10.229 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  10.230 +	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
  10.231 +	unique=`for i in $$list; do \
  10.232 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  10.233 +	  done | \
  10.234 +	  $(AWK) '    { files[$$0] = 1; } \
  10.235 +	       END { for (i in files) print i; }'`; \
  10.236 +	mkid -f$$here/ID $$unique $(LISP)
  10.237 +
  10.238 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  10.239 +		$(TAGS_FILES) $(LISP)
  10.240 +	tags=; \
  10.241 +	here=`pwd`; \
  10.242 +	list='$(SUBDIRS)'; for subdir in $$list; do \
  10.243 +   if test "$$subdir" = .; then :; else \
  10.244 +	    test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
  10.245 +   fi; \
  10.246 +	done; \
  10.247 +	list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
  10.248 +	unique=`for i in $$list; do \
  10.249 +	    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  10.250 +	  done | \
  10.251 +	  $(AWK) '    { files[$$0] = 1; } \
  10.252 +	       END { for (i in files) print i; }'`; \
  10.253 +	test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \
  10.254 +	  || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP)
  10.255 +
  10.256 +mostlyclean-tags:
  10.257 +
  10.258 +clean-tags:
  10.259 +
  10.260 +distclean-tags:
  10.261 +	-rm -f TAGS ID
  10.262 +
  10.263 +maintainer-clean-tags:
  10.264 +
  10.265 +distdir = $(PACKAGE)-$(VERSION)
  10.266 +top_distdir = $(distdir)
  10.267 +
  10.268 +
  10.269 +# This target untars the dist file and tries a VPATH configuration.  Then
  10.270 +# it guarantees that the distribution is self-contained by making another
  10.271 +# tarfile.
  10.272 +distcheck: dist
  10.273 +	-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
  10.274 +	GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
  10.275 +	chmod -R a-w $(distdir); chmod a+w $(distdir)
  10.276 +	mkdir $(distdir)/=build
  10.277 +	mkdir $(distdir)/=inst
  10.278 +	chmod a-w $(distdir)
  10.279 +	dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
  10.280 +	  && cd $(distdir)/=build \
  10.281 +	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
  10.282 +	  && $(MAKE) $(AM_MAKEFLAGS) \
  10.283 +	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
  10.284 +	  && $(MAKE) $(AM_MAKEFLAGS) check \
  10.285 +	  && $(MAKE) $(AM_MAKEFLAGS) install \
  10.286 +	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
  10.287 +	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
  10.288 +	  && test `find $$dc_install_base -type f -print | wc -l` -le 1 \
  10.289 +	  && $(MAKE) $(AM_MAKEFLAGS) dist \
  10.290 +	  && $(MAKE) $(AM_MAKEFLAGS) distclean \
  10.291 +	  && rm -f $(distdir).tar.gz \
  10.292 +	  && test `find . -type f -print | wc -l` -eq 0
  10.293 +	-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
  10.294 +	@banner="$(distdir).tar.gz is ready for distribution"; \
  10.295 +	dashes=`echo "$$banner" | sed s/./=/g`; \
  10.296 +	echo "$$dashes"; \
  10.297 +	echo "$$banner"; \
  10.298 +	echo "$$dashes"
  10.299 +dist: distdir
  10.300 +	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  10.301 +	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  10.302 +	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  10.303 +	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  10.304 +	|| chmod -R a+r $(distdir)
  10.305 +	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
  10.306 +	-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
  10.307 +dist-all: distdir
  10.308 +	-find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  10.309 +	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  10.310 +	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  10.311 +	  ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  10.312 +	|| chmod -R a+r $(distdir)
  10.313 +	$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c > $(distdir).tar.gz
  10.314 +	-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
  10.315 +distdir: $(DISTFILES)
  10.316 +	-chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
  10.317 +	mkdir $(distdir)
  10.318 +	@for file in $(DISTFILES); do \
  10.319 +	  d=$(srcdir); \
  10.320 +	  if test -d $$d/$$file; then \
  10.321 +	    cp -pR $$d/$$file $(distdir); \
  10.322 +	  else \
  10.323 +	    test -f $(distdir)/$$file \
  10.324 +	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  10.325 +	    || cp -p $$d/$$file $(distdir)/$$file || :; \
  10.326 +	  fi; \
  10.327 +	done
  10.328 +	for subdir in $(SUBDIRS); do \
  10.329 +	  if test "$$subdir" = .; then :; else \
  10.330 +	    test -d $(distdir)/$$subdir \
  10.331 +	    || mkdir $(distdir)/$$subdir \
  10.332 +	    || exit 1; \
  10.333 +	    (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
  10.334 +	      || exit 1; \
  10.335 +	  fi; \
  10.336 +	done
  10.337 +info-am:
  10.338 +info: info-recursive
  10.339 +dvi-am:
  10.340 +dvi: dvi-recursive
  10.341 +check-am: all-am
  10.342 +check: check-recursive
  10.343 +installcheck-am:
  10.344 +installcheck: installcheck-recursive
  10.345 +all-recursive-am: config.h
  10.346 +	$(MAKE) $(AM_MAKEFLAGS) all-recursive
  10.347 +
  10.348 +install-exec-am:
  10.349 +install-exec: install-exec-recursive
  10.350 +
  10.351 +install-data-am:
  10.352 +install-data: install-data-recursive
  10.353 +
  10.354 +install-am: all-am
  10.355 +	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
  10.356 +install: install-recursive
  10.357 +uninstall-am:
  10.358 +uninstall: uninstall-recursive
  10.359 +all-am: Makefile config.h
  10.360 +all-redirect: all-recursive-am
  10.361 +install-strip:
  10.362 +	$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
  10.363 +installdirs: installdirs-recursive
  10.364 +installdirs-am:
  10.365 +
  10.366 +
  10.367 +mostlyclean-generic:
  10.368 +
  10.369 +clean-generic:
  10.370 +
  10.371 +distclean-generic:
  10.372 +	-rm -f Makefile $(CONFIG_CLEAN_FILES)
  10.373 +	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
  10.374 +
  10.375 +maintainer-clean-generic:
  10.376 +	-rm -f Makefile.in
  10.377 +mostlyclean-am:  mostlyclean-hdr mostlyclean-tags mostlyclean-generic
  10.378 +
  10.379 +mostlyclean: mostlyclean-recursive
  10.380 +
  10.381 +clean-am:  clean-hdr clean-tags clean-generic mostlyclean-am
  10.382 +
  10.383 +clean: clean-recursive
  10.384 +
  10.385 +distclean-am:  distclean-hdr distclean-tags distclean-generic clean-am
  10.386 +	-rm -f libtool
  10.387 +
  10.388 +distclean: distclean-recursive
  10.389 +	-rm -f config.status
  10.390 +
  10.391 +maintainer-clean-am:  maintainer-clean-hdr maintainer-clean-tags \
  10.392 +		maintainer-clean-generic distclean-am
  10.393 +	@echo "This command is intended for maintainers to use;"
  10.394 +	@echo "it deletes files that may require special tools to rebuild."
  10.395 +
  10.396 +maintainer-clean: maintainer-clean-recursive
  10.397 +	-rm -f config.status
  10.398 +
  10.399 +.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \
  10.400 +install-recursive uninstall-recursive install-data-recursive \
  10.401 +uninstall-data-recursive install-exec-recursive \
  10.402 +uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
  10.403 +all-recursive check-recursive installcheck-recursive info-recursive \
  10.404 +dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
  10.405 +maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
  10.406 +distclean-tags clean-tags maintainer-clean-tags distdir info-am info \
  10.407 +dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \
  10.408 +install-exec-am install-exec install-data-am install-data install-am \
  10.409 +install uninstall-am uninstall all-redirect all-am all install-strip \
  10.410 +installdirs-am installdirs mostlyclean-generic distclean-generic \
  10.411 +clean-generic maintainer-clean-generic clean mostlyclean distclean \
  10.412 +maintainer-clean
  10.413 +
  10.414 +
  10.415 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
  10.416 +# Otherwise a system limit (for SysV at least) may be exceeded.
  10.417 +.NOEXPORT:
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/NEWS	Mon Jan 24 14:34:29 2000 +0000
    11.3 @@ -0,0 +1,8 @@
    11.4 +NEWS
    11.5 +====
    11.6 +
    11.7 +2000-01-15 larsa:
    11.8 +
    11.9 +	* SoGtk implementation started - needed to have something useful /
   11.10 +	  worthwhile to do while trying to get something else working...
   11.11 +
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/README	Mon Jan 24 14:34:29 2000 +0000
    12.3 @@ -0,0 +1,27 @@
    12.4 +README
    12.5 +======
    12.6 +
    12.7 +SoGtk is a library with GUI components for Open Inventor using GTK+,
    12.8 +developed for Coin, SIM's Open Inventor implementation.  You will find
    12.9 +Coin where you found SoGtk, at <URL:http://www.coin3d.org/coin.html>.
   12.10 +
   12.11 +To build SoGtk, you need the following libraries:
   12.12 +
   12.13 +  - GTK+ <URL:http://www.gtk.org/>.
   12.14 +  - The GtkGLArea widget <URL:http://www.student.oulu.fi/~jlof/gtkglarea/>.
   12.15 +  - An Open Inventor library (e.g. Coin).
   12.16 +
   12.17 +The current state of affairs is that the SoGtk component hierarchy is
   12.18 +developed down to (and only to) the SoGtkRenderArea component at this
   12.19 +point in time - to be picked up again at a later date.  With the
   12.20 +SoGtkRenderArea implemented, GTK+ users will be able to start using Coin
   12.21 +with GTK+ (in the Open Inventor way), and if needed implement the viewers
   12.22 +they need themselves by looking at the implementation of the SoQt and
   12.23 +SoBe libraries.  Those libraries will have a higher priority than SoGtk
   12.24 +until they are completed.
   12.25 +
   12.26 +Although you can contact the author directly, please use the coin-discuss
   12.27 +mailing-list for SoGtk-related questions.  Information on the coin mailing-
   12.28 +lists can be found on the support page at http://www.coin3d.org/coin.html
   12.29 +
   12.30 +  Lars J
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/TODO	Mon Jan 24 14:34:29 2000 +0000
    13.3 @@ -0,0 +1,6 @@
    13.4 +TODO
    13.5 +====
    13.6 +
    13.7 +* [20000117:larsa] consider implementing our own GL widget for GTK+ to avoid
    13.8 +  the somewhat inconvenient extra library dependency for GtkGLArea.
    13.9 +
    14.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    14.2 +++ b/aclocal.m4	Mon Jan 24 14:34:29 2000 +0000
    14.3 @@ -0,0 +1,1816 @@
    14.4 +dnl aclocal.m4 generated automatically by aclocal 1.4a
    14.5 +
    14.6 +dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
    14.7 +dnl This file is free software; the Free Software Foundation
    14.8 +dnl gives unlimited permission to copy and/or distribute it,
    14.9 +dnl with or without modifications, as long as this notice is preserved.
   14.10 +
   14.11 +dnl This program is distributed in the hope that it will be useful,
   14.12 +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
   14.13 +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
   14.14 +dnl PARTICULAR PURPOSE.
   14.15 +
   14.16 +# Do all the work for Automake.  This macro actually does too much --
   14.17 +# some checks are only needed if your package does certain things.
   14.18 +# But this isn't really a big deal.
   14.19 +
   14.20 +# serial 1
   14.21 +
   14.22 +dnl Usage:
   14.23 +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
   14.24 +
   14.25 +AC_DEFUN(AM_INIT_AUTOMAKE,
   14.26 +[AC_REQUIRE([AC_PROG_INSTALL])
   14.27 +dnl We require 2.13 because we rely on SHELL being computed by configure.
   14.28 +AC_PREREQ([2.13])
   14.29 +PACKAGE=[$1]
   14.30 +AC_SUBST(PACKAGE)
   14.31 +VERSION=[$2]
   14.32 +AC_SUBST(VERSION)
   14.33 +dnl test to see if srcdir already configured
   14.34 +if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
   14.35 +   test -f $srcdir/config.status; then
   14.36 +  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
   14.37 +fi
   14.38 +ifelse([$3],,
   14.39 +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
   14.40 +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
   14.41 +AC_REQUIRE([AM_SANITY_CHECK])
   14.42 +AC_REQUIRE([AC_ARG_PROGRAM])
   14.43 +AM_MISSING_PROG(ACLOCAL, aclocal)
   14.44 +AM_MISSING_PROG(AUTOCONF, autoconf)
   14.45 +AM_MISSING_PROG(AUTOMAKE, automake)
   14.46 +AM_MISSING_PROG(AUTOHEADER, autoheader)
   14.47 +AM_MISSING_PROG(MAKEINFO, makeinfo)
   14.48 +AM_MISSING_PROG(AMTAR, tar)
   14.49 +AM_MISSING_INSTALL_SH
   14.50 +dnl We need awk for the "check" target.  The system "awk" is bad on
   14.51 +dnl some platforms.
   14.52 +AC_REQUIRE([AC_PROG_AWK])
   14.53 +AC_REQUIRE([AC_PROG_MAKE_SET])
   14.54 +AC_REQUIRE([AM_DEP_TRACK])
   14.55 +AC_REQUIRE([AM_SET_DEPDIR])
   14.56 +ifdef([AC_PROVIDE_AC_PROG_CC], [AM_DEPENDENCIES(CC)], [
   14.57 +   define([AC_PROG_CC], defn([AC_PROG_CC])[AM_DEPENDENCIES(CC)])])
   14.58 +ifdef([AC_PROVIDE_AC_PROG_CXX], [AM_DEPENDENCIES(CXX)], [
   14.59 +   define([AC_PROG_CXX], defn([AC_PROG_CXX])[AM_DEPENDENCIES(CXX)])])
   14.60 +])
   14.61 +
   14.62 +#
   14.63 +# Check to make sure that the build environment is sane.
   14.64 +#
   14.65 +
   14.66 +AC_DEFUN(AM_SANITY_CHECK,
   14.67 +[AC_MSG_CHECKING([whether build environment is sane])
   14.68 +# Just in case
   14.69 +sleep 1
   14.70 +echo timestamp > conftestfile
   14.71 +# Do `set' in a subshell so we don't clobber the current shell's
   14.72 +# arguments.  Must try -L first in case configure is actually a
   14.73 +# symlink; some systems play weird games with the mod time of symlinks
   14.74 +# (eg FreeBSD returns the mod time of the symlink's containing
   14.75 +# directory).
   14.76 +if (
   14.77 +   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   14.78 +   if test "[$]*" = "X"; then
   14.79 +      # -L didn't work.
   14.80 +      set X `ls -t $srcdir/configure conftestfile`
   14.81 +   fi
   14.82 +   if test "[$]*" != "X $srcdir/configure conftestfile" \
   14.83 +      && test "[$]*" != "X conftestfile $srcdir/configure"; then
   14.84 +
   14.85 +      # If neither matched, then we have a broken ls.  This can happen
   14.86 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
   14.87 +      # broken ls alias from the environment.  This has actually
   14.88 +      # happened.  Such a system could not be considered "sane".
   14.89 +      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
   14.90 +alias in your environment])
   14.91 +   fi
   14.92 +
   14.93 +   test "[$]2" = conftestfile
   14.94 +   )
   14.95 +then
   14.96 +   # Ok.
   14.97 +   :
   14.98 +else
   14.99 +   AC_MSG_ERROR([newly created file is older than distributed files!
  14.100 +Check your system clock])
  14.101 +fi
  14.102 +rm -f conftest*
  14.103 +AC_MSG_RESULT(yes)])
  14.104 +
  14.105 +dnl AM_MISSING_PROG(NAME, PROGRAM)
  14.106 +AC_DEFUN(AM_MISSING_PROG, [
  14.107 +AC_REQUIRE([AM_MISSING_HAS_RUN])
  14.108 +$1=${$1-"${am_missing_run}$2"}
  14.109 +AC_SUBST($1)])
  14.110 +
  14.111 +dnl Like AM_MISSING_PROG, but only looks for install-sh.
  14.112 +dnl AM_MISSING_INSTALL_SH()
  14.113 +AC_DEFUN(AM_MISSING_INSTALL_SH, [
  14.114 +AC_REQUIRE([AM_MISSING_HAS_RUN])
  14.115 +if test -z "$install_sh"; then
  14.116 +   install_sh="$ac_aux_dir/install-sh"
  14.117 +   test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
  14.118 +   test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
  14.119 +   dnl FIXME: an evil hack: we remove the SHELL invocation from
  14.120 +   dnl install_sh because automake adds it back in.  Sigh.
  14.121 +   install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
  14.122 +fi
  14.123 +AC_SUBST(install_sh)])
  14.124 +
  14.125 +dnl AM_MISSING_HAS_RUN.
  14.126 +dnl Define MISSING if not defined so far and test if it supports --run.
  14.127 +dnl If it does, set am_missing_run to use it, otherwise, to nothing.
  14.128 +AC_DEFUN([AM_MISSING_HAS_RUN], [
  14.129 +test x"${MISSING+set}" = xset || \
  14.130 +  MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
  14.131 +dnl Use eval to expand $SHELL
  14.132 +if eval "$MISSING --run :"; then
  14.133 +  am_missing_run="$MISSING --run "
  14.134 +else
  14.135 +  am_missing_run=
  14.136 +  AC_MSG_WARN([`missing' script is too old or missing])
  14.137 +fi
  14.138 +])
  14.139 +
  14.140 +dnl See how the compiler implements dependency checking.
  14.141 +dnl Usage:
  14.142 +dnl AM_DEPENDENCIES(NAME)
  14.143 +dnl NAME is "CC", "CXX" or "OBJC".
  14.144 +
  14.145 +dnl We try a few techniques and use that to set a single cache variable.
  14.146 +
  14.147 +AC_DEFUN(AM_DEPENDENCIES,[
  14.148 +AC_REQUIRE([AM_SET_DEPDIR])
  14.149 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])
  14.150 +ifelse([$1],CC,[
  14.151 +AC_REQUIRE([AC_PROG_CC])
  14.152 +AC_REQUIRE([AC_PROG_CPP])
  14.153 +depcc="$CC"
  14.154 +depcpp="$CPP"],[$1],CXX,[
  14.155 +AC_REQUIRE([AC_PROG_CXX])
  14.156 +AC_REQUIRE([AC_PROG_CXXCPP])
  14.157 +depcc="$CXX"
  14.158 +depcpp="$CXXCPP"],[$1],OBJC,[
  14.159 +am_cv_OBJC_dependencies_compiler_type=gcc],[
  14.160 +AC_REQUIRE([AC_PROG_][$1])
  14.161 +depcc="$[$1]"
  14.162 +depcpp=""])
  14.163 +AC_MSG_CHECKING([dependency style of $depcc])
  14.164 +AC_CACHE_VAL(am_cv_[$1]_dependencies_compiler_type,[
  14.165 +if test -z "$AMDEP"; then
  14.166 +  echo '#include "conftest.h"' > conftest.c
  14.167 +  echo 'int i;' > conftest.h
  14.168 +
  14.169 +  am_cv_[$1]_dependencies_compiler_type=none
  14.170 +  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
  14.171 +    case "$depmode" in
  14.172 +    nosideeffect)
  14.173 +      # after this tag, mechanisms are not by side-effect, so they'll
  14.174 +      # only be used when explicitly requested
  14.175 +      if test "x$enable_dependency_tracking" = xyes; then
  14.176 +	continue
  14.177 +      else
  14.178 +	break
  14.179 +      fi
  14.180 +      ;;
  14.181 +    none) break ;;
  14.182 +    esac
  14.183 +    if depmode="$depmode" \
  14.184 +       source=conftest.c object=conftest.o \
  14.185 +       depfile=conftest.Po tmpdepfile=conftest.TPo \
  14.186 +       $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
  14.187 +       grep conftest.h conftest.Po > /dev/null 2>&1; then
  14.188 +      am_cv_[$1]_dependencies_compiler_type="$depmode"
  14.189 +      break
  14.190 +    fi
  14.191 +  done
  14.192 +
  14.193 +  rm -f conftest.*
  14.194 +else
  14.195 +  am_cv_[$1]_dependencies_compiler_type=none
  14.196 +fi
  14.197 +])
  14.198 +AC_MSG_RESULT($am_cv_[$1]_dependencies_compiler_type)
  14.199 +[$1]DEPMODE="depmode=$am_cv_[$1]_dependencies_compiler_type"
  14.200 +AC_SUBST([$1]DEPMODE)
  14.201 +])
  14.202 +
  14.203 +dnl Choose a directory name for dependency files.
  14.204 +dnl This macro is AC_REQUIREd in AM_DEPENDENCIES
  14.205 +
  14.206 +AC_DEFUN(AM_SET_DEPDIR,[
  14.207 +if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
  14.208 +  DEPDIR=.deps
  14.209 +else
  14.210 +  DEPDIR=_deps
  14.211 +fi
  14.212 +AC_SUBST(DEPDIR)
  14.213 +])
  14.214 +
  14.215 +AC_DEFUN(AM_DEP_TRACK,[
  14.216 +AC_ARG_ENABLE(dependency-tracking,
  14.217 +[  --disable-dependency-tracking Speeds up one-time builds
  14.218 +  --enable-dependency-tracking  Do not reject slow dependency extractors])
  14.219 +if test "x$enable_dependency_tracking" = xno; then
  14.220 +  AMDEP="#"
  14.221 +else
  14.222 +  am_depcomp="$ac_aux_dir/depcomp"
  14.223 +  if test ! -f "$am_depcomp"; then
  14.224 +    AMDEP="#"
  14.225 +  else
  14.226 +    AMDEP=
  14.227 +  fi
  14.228 +fi
  14.229 +AC_SUBST(AMDEP)
  14.230 +if test -z "$AMDEP"; then
  14.231 +  AMDEPBACKSLASH='\'
  14.232 +else
  14.233 +  AMDEPBACKSLASH=
  14.234 +fi
  14.235 +pushdef([subst], defn([AC_SUBST]))
  14.236 +subst(AMDEPBACKSLASH)
  14.237 +popdef([subst])
  14.238 +])
  14.239 +
  14.240 +dnl Generate code to set up dependency tracking.
  14.241 +dnl This macro should only be invoked once -- use via AC_REQUIRE.
  14.242 +dnl Usage:
  14.243 +dnl AM_OUTPUT_DEPENDENCY_COMMANDS
  14.244 +
  14.245 +dnl
  14.246 +dnl This code is only required when automatic dependency tracking
  14.247 +dnl is enabled.  FIXME.  This creates each `.P' file that we will
  14.248 +dnl need in order to bootstrap the dependency handling code.
  14.249 +AC_DEFUN(AM_OUTPUT_DEPENDENCY_COMMANDS,[
  14.250 +AC_OUTPUT_COMMANDS([
  14.251 +test x"$AMDEP" != x"" ||
  14.252 +for mf in $CONFIG_FILES; do
  14.253 +  case "$mf" in
  14.254 +  Makefile) dirpart=.;;
  14.255 +  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
  14.256 +  *) continue;;
  14.257 +  esac
  14.258 +  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
  14.259 +  # Extract the definition of DEP_FILES from the Makefile without
  14.260 +  # running `make'.
  14.261 +  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
  14.262 +  test -z "$DEPDIR" && continue
  14.263 +  # When using ansi2knr, U may be empty or an underscore; expand it
  14.264 +  U=`sed -n -e '/^U = / s///p' < "$mf"`
  14.265 +  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
  14.266 +  # We invoke sed twice because it is the simplest approach to
  14.267 +  # changing $(DEPDIR) to its actual value in the expansion.
  14.268 +  for file in `sed -n -e '
  14.269 +    /^DEP_FILES = .*\\\\$/ {
  14.270 +      s/^DEP_FILES = //
  14.271 +      :loop
  14.272 +	s/\\\\$//
  14.273 +	p
  14.274 +	n
  14.275 +	/\\\\$/ b loop
  14.276 +      p
  14.277 +    }
  14.278 +    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
  14.279 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  14.280 +    # Make sure the directory exists.
  14.281 +    test -f "$dirpart/$file" && continue
  14.282 +    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
  14.283 +    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
  14.284 +    # echo "creating $dirpart/$file"
  14.285 +    echo '# dummy' > "$dirpart/$file"
  14.286 +  done
  14.287 +done
  14.288 +], [AMDEP="$AMDEP"
  14.289 +ac_aux_dir="$ac_aux_dir"])])
  14.290 +
  14.291 +# Like AC_CONFIG_HEADER, but automatically create stamp file.
  14.292 +
  14.293 +AC_DEFUN(AM_CONFIG_HEADER,
  14.294 +[AC_PREREQ([2.12])
  14.295 +AC_CONFIG_HEADER([$1])
  14.296 +dnl When config.status generates a header, we must update the stamp-h file.
  14.297 +dnl This file resides in the same directory as the config header
  14.298 +dnl that is generated.  We must strip everything past the first ":",
  14.299 +dnl and everything past the last "/".
  14.300 +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl
  14.301 +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>,
  14.302 +<<test -z "<<$>>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>,
  14.303 +<<am_indx=1
  14.304 +for am_file in <<$1>>; do
  14.305 +  case " <<$>>CONFIG_HEADERS " in
  14.306 +  *" <<$>>am_file "*<<)>>
  14.307 +    echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx
  14.308 +    ;;
  14.309 +  esac
  14.310 +  am_indx=`expr "<<$>>am_indx" + 1`
  14.311 +done<<>>dnl>>)
  14.312 +changequote([,]))])
  14.313 +
  14.314 +
  14.315 +# serial 40 AC_PROG_LIBTOOL
  14.316 +AC_DEFUN(AC_PROG_LIBTOOL,
  14.317 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  14.318 +
  14.319 +# Save cache, so that ltconfig can load it
  14.320 +AC_CACHE_SAVE
  14.321 +
  14.322 +# Actually configure libtool.  ac_aux_dir is where install-sh is found.
  14.323 +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
  14.324 +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
  14.325 +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
  14.326 +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
  14.327 +${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
  14.328 +$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
  14.329 +|| AC_MSG_ERROR([libtool configure failed])
  14.330 +
  14.331 +# Reload cache, that may have been modified by ltconfig
  14.332 +AC_CACHE_LOAD
  14.333 +
  14.334 +# This can be used to rebuild libtool when needed
  14.335 +LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
  14.336 +
  14.337 +# Always use our own libtool.
  14.338 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  14.339 +AC_SUBST(LIBTOOL)dnl
  14.340 +
  14.341 +# Redirect the config.log output again, so that the ltconfig log is not
  14.342 +# clobbered by the next message.
  14.343 +exec 5>>./config.log
  14.344 +])
  14.345 +
  14.346 +AC_DEFUN(AC_LIBTOOL_SETUP,
  14.347 +[AC_PREREQ(2.13)dnl
  14.348 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
  14.349 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
  14.350 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  14.351 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  14.352 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  14.353 +AC_REQUIRE([AC_PROG_RANLIB])dnl
  14.354 +AC_REQUIRE([AC_PROG_CC])dnl
  14.355 +AC_REQUIRE([AC_PROG_LD])dnl
  14.356 +AC_REQUIRE([AC_PROG_NM])dnl
  14.357 +AC_REQUIRE([AC_PROG_LN_S])dnl
  14.358 +dnl
  14.359 +
  14.360 +case "$target" in
  14.361 +NONE) lt_target="$host" ;;
  14.362 +*) lt_target="$target" ;;
  14.363 +esac
  14.364 +
  14.365 +# Check for any special flags to pass to ltconfig.
  14.366 +libtool_flags="--cache-file=$cache_file"
  14.367 +test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
  14.368 +test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
  14.369 +test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
  14.370 +test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
  14.371 +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
  14.372 +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
  14.373 +[libtool_flags="$libtool_flags --enable-dlopen"])
  14.374 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  14.375 +[libtool_flags="$libtool_flags --enable-win32-dll"])
  14.376 +AC_ARG_ENABLE(libtool-lock,
  14.377 +  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
  14.378 +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
  14.379 +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
  14.380 +
  14.381 +# Some flags need to be propagated to the compiler or linker for good
  14.382 +# libtool support.
  14.383 +case "$lt_target" in
  14.384 +*-*-irix6*)
  14.385 +  # Find out which ABI we are using.
  14.386 +  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  14.387 +  if AC_TRY_EVAL(ac_compile); then
  14.388 +    case "`/usr/bin/file conftest.o`" in
  14.389 +    *32-bit*)
  14.390 +      LD="${LD-ld} -32"
  14.391 +      ;;
  14.392 +    *N32*)
  14.393 +      LD="${LD-ld} -n32"
  14.394 +      ;;
  14.395 +    *64-bit*)
  14.396 +      LD="${LD-ld} -64"
  14.397 +      ;;
  14.398 +    esac
  14.399 +  fi
  14.400 +  rm -rf conftest*
  14.401 +  ;;
  14.402 +
  14.403 +*-*-sco3.2v5*)
  14.404 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  14.405 +  SAVE_CFLAGS="$CFLAGS"
  14.406 +  CFLAGS="$CFLAGS -belf"
  14.407 +  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  14.408 +    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
  14.409 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  14.410 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  14.411 +    CFLAGS="$SAVE_CFLAGS"
  14.412 +  fi
  14.413 +  ;;
  14.414 +
  14.415 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  14.416 +[*-*-cygwin* | *-*-mingw*)
  14.417 +  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  14.418 +  AC_CHECK_TOOL(AS, as, false)
  14.419 +  AC_CHECK_TOOL(OBJDUMP, objdump, false)
  14.420 +  ;;
  14.421 +])
  14.422 +esac
  14.423 +])
  14.424 +
  14.425 +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  14.426 +AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  14.427 +
  14.428 +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  14.429 +AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  14.430 +
  14.431 +# AC_ENABLE_SHARED - implement the --enable-shared flag
  14.432 +# Usage: AC_ENABLE_SHARED[(DEFAULT)]
  14.433 +#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  14.434 +#   `yes'.
  14.435 +AC_DEFUN(AC_ENABLE_SHARED, [dnl
  14.436 +define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  14.437 +AC_ARG_ENABLE(shared,
  14.438 +changequote(<<, >>)dnl
  14.439 +<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  14.440 +changequote([, ])dnl
  14.441 +[p=${PACKAGE-default}
  14.442 +case "$enableval" in
  14.443 +yes) enable_shared=yes ;;
  14.444 +no) enable_shared=no ;;
  14.445 +*)
  14.446 +  enable_shared=no
  14.447 +  # Look at the argument we got.  We use all the common list separators.
  14.448 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  14.449 +  for pkg in $enableval; do
  14.450 +    if test "X$pkg" = "X$p"; then
  14.451 +      enable_shared=yes
  14.452 +    fi
  14.453 +  done
  14.454 +  IFS="$ac_save_ifs"
  14.455 +  ;;
  14.456 +esac],
  14.457 +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
  14.458 +])
  14.459 +
  14.460 +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  14.461 +AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  14.462 +AC_ENABLE_SHARED(no)])
  14.463 +
  14.464 +# AC_ENABLE_STATIC - implement the --enable-static flag
  14.465 +# Usage: AC_ENABLE_STATIC[(DEFAULT)]
  14.466 +#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  14.467 +#   `yes'.
  14.468 +AC_DEFUN(AC_ENABLE_STATIC, [dnl
  14.469 +define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  14.470 +AC_ARG_ENABLE(static,
  14.471 +changequote(<<, >>)dnl
  14.472 +<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  14.473 +changequote([, ])dnl
  14.474 +[p=${PACKAGE-default}
  14.475 +case "$enableval" in
  14.476 +yes) enable_static=yes ;;
  14.477 +no) enable_static=no ;;
  14.478 +*)
  14.479 +  enable_static=no
  14.480 +  # Look at the argument we got.  We use all the common list separators.
  14.481 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  14.482 +  for pkg in $enableval; do
  14.483 +    if test "X$pkg" = "X$p"; then
  14.484 +      enable_static=yes
  14.485 +    fi
  14.486 +  done
  14.487 +  IFS="$ac_save_ifs"
  14.488 +  ;;
  14.489 +esac],
  14.490 +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
  14.491 +])
  14.492 +
  14.493 +# AC_DISABLE_STATIC - set the default static flag to --disable-static
  14.494 +AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  14.495 +AC_ENABLE_STATIC(no)])
  14.496 +
  14.497 +
  14.498 +# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  14.499 +# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  14.500 +#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
  14.501 +#   `yes'.
  14.502 +AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
  14.503 +define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  14.504 +AC_ARG_ENABLE(fast-install,
  14.505 +changequote(<<, >>)dnl
  14.506 +<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  14.507 +changequote([, ])dnl
  14.508 +[p=${PACKAGE-default}
  14.509 +case "$enableval" in
  14.510 +yes) enable_fast_install=yes ;;
  14.511 +no) enable_fast_install=no ;;
  14.512 +*)
  14.513 +  enable_fast_install=no
  14.514 +  # Look at the argument we got.  We use all the common list separators.
  14.515 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  14.516 +  for pkg in $enableval; do
  14.517 +    if test "X$pkg" = "X$p"; then
  14.518 +      enable_fast_install=yes
  14.519 +    fi
  14.520 +  done
  14.521 +  IFS="$ac_save_ifs"
  14.522 +  ;;
  14.523 +esac],
  14.524 +enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  14.525 +])
  14.526 +
  14.527 +# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
  14.528 +AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  14.529 +AC_ENABLE_FAST_INSTALL(no)])
  14.530 +
  14.531 +# AC_PROG_LD - find the path to the GNU or non-GNU linker
  14.532 +AC_DEFUN(AC_PROG_LD,
  14.533 +[AC_ARG_WITH(gnu-ld,
  14.534 +[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
  14.535 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  14.536 +AC_REQUIRE([AC_PROG_CC])dnl
  14.537 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  14.538 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  14.539 +ac_prog=ld
  14.540 +if test "$ac_cv_prog_gcc" = yes; then
  14.541 +  # Check if gcc -print-prog-name=ld gives a path.
  14.542 +  AC_MSG_CHECKING([for ld used by GCC])
  14.543 +  ac_prog=`($CC -print-prog-name=ld) 2>&5`
  14.544 +  case "$ac_prog" in
  14.545 +    # Accept absolute paths.
  14.546 +changequote(,)dnl
  14.547 +    [\\/]* | [A-Za-z]:[\\/]*)
  14.548 +      re_direlt='/[^/][^/]*/\.\./'
  14.549 +changequote([,])dnl
  14.550 +      # Canonicalize the path of ld
  14.551 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  14.552 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  14.553 +	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  14.554 +      done
  14.555 +      test -z "$LD" && LD="$ac_prog"
  14.556 +      ;;
  14.557 +  "")
  14.558 +    # If it fails, then pretend we aren't using GCC.
  14.559 +    ac_prog=ld
  14.560 +    ;;
  14.561 +  *)
  14.562 +    # If it is relative, then search for the first ld in PATH.
  14.563 +    with_gnu_ld=unknown
  14.564 +    ;;
  14.565 +  esac
  14.566 +elif test "$with_gnu_ld" = yes; then
  14.567 +  AC_MSG_CHECKING([for GNU ld])
  14.568 +else
  14.569 +  AC_MSG_CHECKING([for non-GNU ld])
  14.570 +fi
  14.571 +AC_CACHE_VAL(ac_cv_path_LD,
  14.572 +[if test -z "$LD"; then
  14.573 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  14.574 +  for ac_dir in $PATH; do
  14.575 +    test -z "$ac_dir" && ac_dir=.
  14.576 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  14.577 +      ac_cv_path_LD="$ac_dir/$ac_prog"
  14.578 +      # Check to see if the program is GNU ld.  I'd rather use --version,
  14.579 +      # but apparently some GNU ld's only accept -v.
  14.580 +      # Break only if it was the GNU/non-GNU ld that we prefer.
  14.581 +      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  14.582 +	test "$with_gnu_ld" != no && break
  14.583 +      else
  14.584 +	test "$with_gnu_ld" != yes && break
  14.585 +      fi
  14.586 +    fi
  14.587 +  done
  14.588 +  IFS="$ac_save_ifs"
  14.589 +else
  14.590 +  ac_cv_path_LD="$LD" # Let the user override the test with a path.
  14.591 +fi])
  14.592 +LD="$ac_cv_path_LD"
  14.593 +if test -n "$LD"; then
  14.594 +  AC_MSG_RESULT($LD)
  14.595 +else
  14.596 +  AC_MSG_RESULT(no)
  14.597 +fi
  14.598 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  14.599 +AC_PROG_LD_GNU
  14.600 +])
  14.601 +
  14.602 +AC_DEFUN(AC_PROG_LD_GNU,
  14.603 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
  14.604 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  14.605 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  14.606 +  ac_cv_prog_gnu_ld=yes
  14.607 +else
  14.608 +  ac_cv_prog_gnu_ld=no
  14.609 +fi])
  14.610 +])
  14.611 +
  14.612 +# AC_PROG_NM - find the path to a BSD-compatible name lister
  14.613 +AC_DEFUN(AC_PROG_NM,
  14.614 +[AC_MSG_CHECKING([for BSD-compatible nm])
  14.615 +AC_CACHE_VAL(ac_cv_path_NM,
  14.616 +[if test -n "$NM"; then
  14.617 +  # Let the user override the test.
  14.618 +  ac_cv_path_NM="$NM"
  14.619 +else
  14.620 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  14.621 +  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  14.622 +    test -z "$ac_dir" && ac_dir=.
  14.623 +    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
  14.624 +      # Check to see if the nm accepts a BSD-compat flag.
  14.625 +      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  14.626 +      #   nm: unknown option "B" ignored
  14.627 +      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  14.628 +	ac_cv_path_NM="$ac_dir/nm -B"
  14.629 +	break
  14.630 +      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  14.631 +	ac_cv_path_NM="$ac_dir/nm -p"
  14.632 +	break
  14.633 +      else
  14.634 +	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
  14.635 +	continue # so that we can try to find one that supports BSD flags
  14.636 +      fi
  14.637 +    fi
  14.638 +  done
  14.639 +  IFS="$ac_save_ifs"
  14.640 +  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
  14.641 +fi])
  14.642 +NM="$ac_cv_path_NM"
  14.643 +AC_MSG_RESULT([$NM])
  14.644 +])
  14.645 +
  14.646 +# AC_CHECK_LIBM - check for math library
  14.647 +AC_DEFUN(AC_CHECK_LIBM,
  14.648 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  14.649 +LIBM=
  14.650 +case "$lt_target" in
  14.651 +*-*-beos* | *-*-cygwin*)
  14.652 +  # These system don't have libm
  14.653 +  ;;
  14.654 +*-ncr-sysv4.3*)
  14.655 +  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  14.656 +  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  14.657 +  ;;
  14.658 +*)
  14.659 +  AC_CHECK_LIB(m, main, LIBM="-lm")
  14.660 +  ;;
  14.661 +esac
  14.662 +])
  14.663 +
  14.664 +# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  14.665 +# the libltdl convenience library, adds --enable-ltdl-convenience to
  14.666 +# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
  14.667 +# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
  14.668 +# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
  14.669 +# '${top_builddir}/' (note the single quotes!) if your package is not
  14.670 +# flat, and, if you're not using automake, define top_builddir as
  14.671 +# appropriate in the Makefiles.
  14.672 +AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  14.673 +  case "$enable_ltdl_convenience" in
  14.674 +  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  14.675 +  "") enable_ltdl_convenience=yes
  14.676 +      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  14.677 +  esac
  14.678 +  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
  14.679 +  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  14.680 +])
  14.681 +
  14.682 +# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  14.683 +# the libltdl installable library, and adds --enable-ltdl-install to
  14.684 +# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
  14.685 +# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
  14.686 +# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
  14.687 +# '${top_builddir}/' (note the single quotes!) if your package is not
  14.688 +# flat, and, if you're not using automake, define top_builddir as
  14.689 +# appropriate in the Makefiles.
  14.690 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  14.691 +AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  14.692 +  AC_CHECK_LIB(ltdl, main,
  14.693 +  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  14.694 +  [if test x"$enable_ltdl_install" = xno; then
  14.695 +     AC_MSG_WARN([libltdl not installed, but installation disabled])
  14.696 +   else
  14.697 +     enable_ltdl_install=yes
  14.698 +   fi
  14.699 +  ])
  14.700 +  if test x"$enable_ltdl_install" = x"yes"; then
  14.701 +    ac_configure_args="$ac_configure_args --enable-ltdl-install"
  14.702 +    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
  14.703 +    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
  14.704 +  else
  14.705 +    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  14.706 +    LIBLTDL="-lltdl"
  14.707 +    INCLTDL=
  14.708 +  fi
  14.709 +])
  14.710 +
  14.711 +dnl old names
  14.712 +AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
  14.713 +AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
  14.714 +AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
  14.715 +AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
  14.716 +AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
  14.717 +AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
  14.718 +AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
  14.719 +
  14.720 +dnl This is just to silence aclocal about the macro not being used
  14.721 +ifelse([AC_DISABLE_FAST_INSTALL])dnl
  14.722 +
  14.723 +# Add --enable-maintainer-mode option to configure.
  14.724 +# From Jim Meyering
  14.725 +
  14.726 +# serial 1
  14.727 +
  14.728 +AC_DEFUN(AM_MAINTAINER_MODE,
  14.729 +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
  14.730 +  dnl maintainer-mode is disabled by default
  14.731 +  AC_ARG_ENABLE(maintainer-mode,
  14.732 +[  --enable-maintainer-mode enable make rules and dependencies not useful
  14.733 +                          (and sometimes confusing) to the casual installer],
  14.734 +      USE_MAINTAINER_MODE=$enableval,
  14.735 +      USE_MAINTAINER_MODE=no)
  14.736 +  AC_MSG_RESULT($USE_MAINTAINER_MODE)
  14.737 +  AM_CONDITIONAL(MAINTAINER_MODE, test $USE_MAINTAINER_MODE = yes)
  14.738 +  MAINT=$MAINTAINER_MODE_TRUE
  14.739 +  AC_SUBST(MAINT)dnl
  14.740 +]
  14.741 +)
  14.742 +
  14.743 +# Define a conditional.
  14.744 +
  14.745 +AC_DEFUN(AM_CONDITIONAL,
  14.746 +[AC_SUBST($1_TRUE)
  14.747 +AC_SUBST($1_FALSE)
  14.748 +if $2; then
  14.749 +  $1_TRUE=
  14.750 +  $1_FALSE='#'
  14.751 +else
  14.752 +  $1_TRUE='#'
  14.753 +  $1_FALSE=
  14.754 +fi])
  14.755 +
  14.756 +dnl Usage:
  14.757 +dnl  SIM_CHECK_DL([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  14.758 +dnl
  14.759 +dnl  Try to find the dynamic link loader library. If it is found, these
  14.760 +dnl  shell variables are set:
  14.761 +dnl
  14.762 +dnl    $sim_ac_dl_cppflags (extra flags the compiler needs for dl lib)
  14.763 +dnl    $sim_ac_dl_ldflags  (extra flags the linker needs for dl lib)
  14.764 +dnl    $sim_ac_dl_libs     (link libraries the linker needs for dl lib)
  14.765 +dnl
  14.766 +dnl  The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly.
  14.767 +dnl  In addition, the variable $sim_ac_dl_avail is set to "yes" if
  14.768 +dnl  the dynamic link loader library is found.
  14.769 +dnl
  14.770 +dnl
  14.771 +dnl Author: Morten Eriksen, <mortene@sim.no>.
  14.772 +dnl
  14.773 +dnl TODO:
  14.774 +dnl    * [mortene:20000122] make sure this work on MSWin (with
  14.775 +dnl      Cygwin installation)
  14.776 +dnl
  14.777 +
  14.778 +AC_DEFUN(SIM_CHECK_DL,[
  14.779 +dnl Autoconf is a developer tool, so don't bother to support older versions.
  14.780 +AC_PREREQ([2.14.1])
  14.781 +
  14.782 +AC_ARG_WITH(dl, AC_HELP_STRING([--with-dl=DIR], [include support for the dynamic link loader library [default=yes]]), , [with_dl=yes])
  14.783 +
  14.784 +sim_ac_dl_avail=no
  14.785 +
  14.786 +if test x"$with_dl" != xno; then
  14.787 +  if test x"$with_dl" != xyes; then
  14.788 +    sim_ac_dl_cppflags="-I${with_dl}/include"
  14.789 +    sim_ac_dl_ldflags="-L${with_dl}/lib"
  14.790 +  fi
  14.791 +  sim_ac_dl_libs="-ldl"
  14.792 +
  14.793 +  sim_ac_save_cppflags=$CPPFLAGS
  14.794 +  sim_ac_save_ldflags=$LDFLAGS
  14.795 +  sim_ac_save_libs=$LIBS
  14.796 +
  14.797 +  CPPFLAGS="$CPPFLAGS $sim_ac_dl_cppflags"
  14.798 +  LDFLAGS="$LDFLAGS $sim_ac_dl_ldflags"
  14.799 +  LIBS="$sim_ac_dl_libs $LIBS"
  14.800 +
  14.801 +  AC_CACHE_CHECK([whether the dynamic link loader library is available],
  14.802 +    sim_cv_lib_dl_avail,
  14.803 +    [AC_TRY_LINK([#include <dlfcn.h>],
  14.804 +                 [(void)dlopen(0L, 0);],
  14.805 +                 sim_cv_lib_dl_avail=yes,
  14.806 +                 sim_cv_lib_dl_avail=no)])
  14.807 +
  14.808 +  if test x"$sim_cv_lib_dl_avail" = xyes; then
  14.809 +    sim_ac_dl_avail=yes
  14.810 +    ifelse($1, , :, $1)
  14.811 +  else
  14.812 +    CPPFLAGS=$sim_ac_save_cppflags
  14.813 +    LDFLAGS=$sim_ac_save_ldflags
  14.814 +    LIBS=$sim_ac_save_libs
  14.815 +    ifelse($2, , :, $2)
  14.816 +  fi
  14.817 +fi
  14.818 +])
  14.819 +
  14.820 +dnl Usage:
  14.821 +dnl  SIM_CHECK_X11([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  14.822 +dnl
  14.823 +dnl  Try to find the X11 development system. If it is found, these
  14.824 +dnl  shell variables are set:
  14.825 +dnl
  14.826 +dnl    $sim_ac_x11_cppflags (extra flags the compiler needs for X11)
  14.827 +dnl    $sim_ac_x11_ldflags  (extra flags the linker needs for X11)
  14.828 +dnl    $sim_ac_x11_libs     (link libraries the linker needs for X11)
  14.829 +dnl
  14.830 +dnl  The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly.
  14.831 +dnl  In addition, the variable $sim_ac_x11_avail is set to "yes" if
  14.832 +dnl  the X11 development system is found.
  14.833 +dnl
  14.834 +dnl
  14.835 +dnl Author: Morten Eriksen, <mortene@sim.no>.
  14.836 +dnl
  14.837 +dnl TODO:
  14.838 +dnl    * [mortene:20000122] make sure this work on MSWin (with
  14.839 +dnl      Cygwin installation)
  14.840 +dnl
  14.841 +
  14.842 +AC_DEFUN(SIM_CHECK_X11,[
  14.843 +dnl Autoconf is a developer tool, so don't bother to support older versions.
  14.844 +AC_PREREQ([2.14.1])
  14.845 +
  14.846 +sim_ac_x11_avail=no
  14.847 +
  14.848 +AC_PATH_XTRA
  14.849 +
  14.850 +if test x"$no_x" != xyes; then
  14.851 +  #  *** DEBUG ***
  14.852 +  #  Keep this around, as it can be handy when testing on new systems.
  14.853 +  # echo "X_CFLAGS: $X_CFLAGS"
  14.854 +  # echo "X_PRE_LIBS: $X_PRE_LIBS"
  14.855 +  # echo "X_LIBS: $X_LIBS"
  14.856 +  # echo "X_EXTRA_LIBS: $X_EXTRA_LIBS"
  14.857 +  # echo
  14.858 +  # echo "CFLAGS: $CFLAGS"
  14.859 +  # echo "CPPFLAGS: $CPPFLAGS"
  14.860 +  # echo "CXXFLAGS: $CXXFLAGS"
  14.861 +  # echo "LDFLAGS: $LDFLAGS"
  14.862 +  # echo "LIBS: $LIBS"
  14.863 +  # exit 0
  14.864 +
  14.865 +  sim_ac_x11_cppflags="$X_CFLAGS"
  14.866 +  sim_ac_x11_ldflags="$X_LIBS"
  14.867 +  sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
  14.868 +
  14.869 +  sim_ac_save_cppflags=$CPPFLAGS
  14.870 +  sim_ac_save_ldflags=$LDFLAGS
  14.871 +  sim_ac_save_libs=$LIBS
  14.872 +
  14.873 +  CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
  14.874 +  LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
  14.875 +  LIBS="$sim_ac_x11_libs $LIBS"
  14.876 +
  14.877 +  AC_CACHE_CHECK([whether we can link against X11],
  14.878 +    sim_cv_lib_x11_avail,
  14.879 +    [AC_TRY_LINK([#include <X11/Xlib.h>],
  14.880 +                 [(void)XOpenDisplay(0L);],
  14.881 +                 sim_cv_lib_x11_avail=yes,
  14.882 +                 sim_cv_lib_x11_avail=no)])
  14.883 +
  14.884 +  if test x"$sim_cv_lib_x11_avail" = xyes; then
  14.885 +    sim_ac_x11_avail=yes
  14.886 +    ifelse($1, , :, $1)
  14.887 +  else
  14.888 +    CPPFLAGS=$sim_ac_save_cppflags
  14.889 +    LDFLAGS=$sim_ac_save_ldflags
  14.890 +    LIBS=$sim_ac_save_libs
  14.891 +    ifelse($2, , :, $2)
  14.892 +  fi
  14.893 +fi
  14.894 +])
  14.895 +
  14.896 +
  14.897 +dnl Usage:
  14.898 +dnl  SIM_CHECK_X11SHMEM([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  14.899 +dnl
  14.900 +dnl  Try to find the X11 shared memory extension. If it is found, this
  14.901 +dnl  shell variable is set:
  14.902 +dnl
  14.903 +dnl    $sim_ac_x11shmem_libs   (link libraries the linker needs for X11 Shm)
  14.904 +dnl
  14.905 +dnl  The LIBS flag will also be modified accordingly. In addition, the
  14.906 +dnl  variable $sim_ac_x11shmem_avail is set to "yes" if the X11 shared
  14.907 +dnl  memory extension is found.
  14.908 +dnl
  14.909 +dnl
  14.910 +dnl Author: Morten Eriksen, <mortene@sim.no>.
  14.911 +dnl
  14.912 +dnl TODO:
  14.913 +dnl    * [mortene:20000122] make sure this work on MSWin (with
  14.914 +dnl      Cygwin installation)
  14.915 +dnl
  14.916 +
  14.917 +AC_DEFUN(SIM_CHECK_X11SHMEM,[
  14.918 +dnl Autoconf is a developer tool, so don't bother to support older versions.
  14.919 +AC_PREREQ([2.14.1])
  14.920 +
  14.921 +sim_ac_x11shmem_avail=no
  14.922 +sim_ac_x11shmem_libs="-lXext"
  14.923 +sim_ac_save_libs=$LIBS
  14.924 +LIBS="$sim_ac_x11shmem_libs $LIBS"
  14.925 +
  14.926 +AC_CACHE_CHECK([whether the X11 shared memory extension is available],
  14.927 +  sim_cv_lib_x11shmem_avail,
  14.928 +  [AC_TRY_LINK([#include <X11/Xlib.h>
  14.929 +                #include <X11/extensions/XShm.h>],
  14.930 +               [(void)XShmQueryVersion(0L, 0L, 0L, 0L);],
  14.931 +               sim_cv_lib_x11shmem_avail=yes,
  14.932 +               sim_cv_lib_x11shmem_avail=no)])
  14.933 +
  14.934 +if test x"$sim_cv_lib_x11shmem_avail" = xyes; then
  14.935 +  sim_ac_x11shmem_avail=yes
  14.936 +  ifelse($1, , :, $1)
  14.937 +else
  14.938 +  LIBS=$sim_ac_save_libs
  14.939 +  ifelse($2, , :, $2)
  14.940 +fi
  14.941 +])
  14.942 +
  14.943 +
  14.944 +
  14.945 +
  14.946 +dnl Usage:
  14.947 +dnl  SIM_CHECK_X11MU([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  14.948 +dnl
  14.949 +dnl  Try to find the X11 miscellaneous utilities extension. If it is
  14.950 +dnl  found, this shell variable is set:
  14.951 +dnl
  14.952 +dnl    $sim_ac_x11mu_libs   (link libraries the linker needs for X11 MU)
  14.953 +dnl
  14.954 +dnl  The LIBS flag will also be modified accordingly. In addition, the
  14.955 +dnl  variable $sim_ac_x11mu_avail is set to "yes" if the X11 miscellaneous
  14.956 +dnl  utilities extension is found.
  14.957 +dnl
  14.958 +dnl
  14.959 +dnl Author: Morten Eriksen, <mortene@sim.no>.
  14.960 +dnl
  14.961 +dnl TODO:
  14.962 +dnl    * [mortene:20000122] make sure this work on MSWin (with
  14.963 +dnl      Cygwin installation)
  14.964 +dnl
  14.965 +
  14.966 +AC_DEFUN(SIM_CHECK_X11MU,[
  14.967 +dnl Autoconf is a developer tool, so don't bother to support older versions.
  14.968 +AC_PREREQ([2.14.1])
  14.969 +
  14.970 +sim_ac_x11mu_avail=no
  14.971 +sim_ac_x11mu_libs="-lXmu"
  14.972 +sim_ac_save_libs=$LIBS
  14.973 +LIBS="$sim_ac_x11mu_libs $LIBS"
  14.974 +
  14.975 +AC_CACHE_CHECK([whether the X11 miscellaneous utilities is available],
  14.976 +  sim_cv_lib_x11mu_avail,
  14.977 +  [AC_TRY_LINK([#include <X11/Xlib.h>
  14.978 +                #include <X11/Xmu/Xmu.h>
  14.979 +                #include <X11/Xmu/StdCmap.h>],
  14.980 +               [(void)XmuAllStandardColormaps(0L);],
  14.981 +               sim_cv_lib_x11mu_avail=yes,
  14.982 +               sim_cv_lib_x11mu_avail=no)])
  14.983 +
  14.984 +if test x"$sim_cv_lib_x11mu_avail" = xyes; then
  14.985 +  sim_ac_x11mu_avail=yes
  14.986 +  ifelse($1, , :, $1)
  14.987 +else
  14.988 +  LIBS=$sim_ac_save_libs
  14.989 +  ifelse($2, , :, $2)
  14.990 +fi
  14.991 +])
  14.992 +
  14.993 +dnl Usage:
  14.994 +dnl  SIM_CHECK_OPENGL([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
  14.995 +dnl
  14.996 +dnl  Try to find an OpenGL development system, either a native
  14.997 +dnl  implementation or the OpenGL-compatible Mesa libraries. If
  14.998 +dnl  it is found, these shell variables are set:
  14.999 +dnl
 14.1000 +dnl    $sim_ac_gl_cppflags (extra flags the compiler needs for OpenGL/Mesa)
 14.1001 +dnl    $sim_ac_gl_ldflags  (extra flags the linker needs for OpenGL/Mesa)
 14.1002 +dnl    $sim_ac_gl_libs     (link libraries the linker needs for OpenGL/Mesa)
 14.1003 +dnl
 14.1004 +dnl  The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly.
 14.1005 +dnl  In addition, the variable $sim_ac_gl_avail is set to "yes" if an
 14.1006 +dnl  OpenGL-compatible development system is found. If the OpenGL system
 14.1007 +dnl  found is the Mesa libraries, we will also set $sim_ac_gl_is_mesa to
 14.1008 +dnl  "yes".
 14.1009 +dnl
 14.1010 +dnl
 14.1011 +dnl Author: Morten Eriksen, <mortene@sim.no>.
 14.1012 +dnl
 14.1013 +dnl TODO:
 14.1014 +dnl    * [mortene:20000122] make sure this work on MSWin (with
 14.1015 +dnl      Cygwin installation)
 14.1016 +dnl
 14.1017 +
 14.1018 +AC_DEFUN(SIM_CHECK_OPENGL,[
 14.1019 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1020 +AC_PREREQ([2.14.1])
 14.1021 +
 14.1022 +AC_ARG_WITH(opengl, AC_HELP_STRING([--with-opengl=DIR], [OpenGL/Mesa installation directory]), , [with_opengl=yes])
 14.1023 +
 14.1024 +sim_ac_gl_avail=no
 14.1025 +sim_ac_gl_is_mesa=no
 14.1026 +
 14.1027 +if test x"$with_opengl" != xno; then
 14.1028 +  if test x"$with_opengl" != xyes; then
 14.1029 +    sim_ac_gl_cppflags="-I${with_opengl}/include"
 14.1030 +    sim_ac_gl_ldflags="-L${with_opengl}/lib"
 14.1031 +  fi
 14.1032 +
 14.1033 +  sim_ac_save_cppflags=$CPPFLAGS
 14.1034 +  sim_ac_save_ldflags=$LDFLAGS
 14.1035 +
 14.1036 +  CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
 14.1037 +  LDFLAGS="$LDFLAGS $sim_ac_gl_ldflags"
 14.1038 +
 14.1039 +  sim_ac_save_libs=$LIBS
 14.1040 +  sim_ac_gl_libs="-lMesaGLU -lMesaGL"
 14.1041 +  LIBS="$sim_ac_gl_libs $LIBS"
 14.1042 +
 14.1043 +  AC_CACHE_CHECK([whether OpenGL libraries with the Mesa prefix are available],
 14.1044 +    sim_cv_lib_mesa_avail,
 14.1045 +    [AC_TRY_LINK([#include <GL/gl.h>
 14.1046 +                  #include <GL/glu.h>],
 14.1047 +                 [glPointSize(1.0f); gluSphere(0L, 1.0, 1, 1);],
 14.1048 +                 sim_cv_lib_mesa_avail=yes,
 14.1049 +                 sim_cv_lib_mesa_avail=no)])
 14.1050 +
 14.1051 +  if test x"$sim_cv_lib_mesa_avail" = xyes; then
 14.1052 +    sim_ac_gl_is_mesa=yes
 14.1053 +    sim_ac_gl_avail=yes
 14.1054 +  else
 14.1055 +    sim_ac_gl_libs="-lGLU -lGL"
 14.1056 +    LIBS="$sim_ac_gl_libs $sim_ac_save_libs"
 14.1057 +
 14.1058 +    AC_CACHE_CHECK([whether OpenGL libraries are available],
 14.1059 +      sim_cv_lib_gl_avail,
 14.1060 +      [AC_TRY_LINK([#include <GL/gl.h>
 14.1061 +                    #include <GL/glu.h>],
 14.1062 +                   [glPointSize(1.0f); gluSphere(0L, 1.0, 1, 1);],
 14.1063 +                   sim_cv_lib_gl_avail=yes,
 14.1064 +                   sim_cv_lib_gl_avail=no)])
 14.1065 +
 14.1066 +    if test x"$sim_cv_lib_gl_avail" = xyes; then
 14.1067 +      sim_ac_gl_avail=yes
 14.1068 +      AC_CACHE_CHECK([whether OpenGL libraries actually are the Mesa libraries],
 14.1069 +        sim_cv_lib_gl_ismesa,
 14.1070 +        [AC_TRY_LINK([#include <GL/gl.h>
 14.1071 +                      #include <GL/glu.h>],
 14.1072 +                     [#ifndef MESA
 14.1073 +                      #error not mesa
 14.1074 +                      #endif],
 14.1075 +                     sim_cv_lib_gl_ismesa=yes,
 14.1076 +                     sim_cv_lib_gl_ismesa=no)])
 14.1077 +      if test x"$sim_cv_lib_gl_ismesa" = xyes; then
 14.1078 +        sim_ac_gl_is_mesa=yes
 14.1079 +      fi
 14.1080 +    fi
 14.1081 +  fi
 14.1082 +
 14.1083 +  if test x"$sim_ac_gl_avail" = xyes; then
 14.1084 +    ifelse($1, , :, $1)
 14.1085 +  else
 14.1086 +    CPPFLAGS=$sim_ac_save_cppflags
 14.1087 +    LDFLAGS=$sim_ac_save_ldflags
 14.1088 +    LIBS=$sim_ac_save_libs
 14.1089 +    ifelse($2, , :, $2)
 14.1090 +  fi
 14.1091 +fi
 14.1092 +])
 14.1093 +
 14.1094 +dnl Usage:
 14.1095 +dnl  SIM_CHECK_INVENTOR([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
 14.1096 +dnl
 14.1097 +dnl  Try to find the Open Inventor development system. If it is found, these
 14.1098 +dnl  shell variables are set:
 14.1099 +dnl
 14.1100 +dnl    $sim_ac_oiv_cppflags (extra flags the compiler needs for Inventor)
 14.1101 +dnl    $sim_ac_oiv_ldflags  (extra flags the linker needs for Inventor)
 14.1102 +dnl    $sim_ac_oiv_libs     (link libraries the linker needs for Inventor)
 14.1103 +dnl
 14.1104 +dnl  The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly.
 14.1105 +dnl  In addition, the variable $sim_ac_oiv_avail is set to "yes" if
 14.1106 +dnl  the Open Inventor development system is found.
 14.1107 +dnl
 14.1108 +dnl
 14.1109 +dnl Author: Morten Eriksen, <mortene@sim.no>.
 14.1110 +dnl
 14.1111 +dnl TODO:
 14.1112 +dnl    * [mortene:20000122] make sure this work on MSWin (with
 14.1113 +dnl      Cygwin installation)
 14.1114 +dnl
 14.1115 +
 14.1116 +AC_DEFUN(SIM_CHECK_INVENTOR,[
 14.1117 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1118 +AC_PREREQ([2.14.1])
 14.1119 +
 14.1120 +AC_ARG_WITH(inventor, AC_HELP_STRING([--with-inventor=DIR], [use the Open Inventor library [default=no]]), , [with_inventor=no])
 14.1121 +
 14.1122 +sim_ac_oiv_avail=no
 14.1123 +
 14.1124 +if test x"$with_inventor" != xno; then
 14.1125 +  if test x"$with_inventor" != xyes; then
 14.1126 +    sim_ac_oiv_cppflags="-I${with_inventor}/include"
 14.1127 +    sim_ac_oiv_ldflags="-L${with_inventor}/lib"
 14.1128 +  else
 14.1129 +    AC_MSG_CHECKING(value of the OIVHOME environment variable)
 14.1130 +    if test x"$OIVHOME" = x; then
 14.1131 +      AC_MSG_RESULT(empty)
 14.1132 +      AC_MSG_WARN(OIVHOME environment variable not set -- this might be an indication of a problem)
 14.1133 +    else
 14.1134 +      AC_MSG_RESULT($OIVHOME)
 14.1135 +      sim_ac_oiv_cppflags="-I$OIVHOME/include"
 14.1136 +      sim_ac_oiv_ldflags="-L$OIVHOME/lib"
 14.1137 +    fi
 14.1138 +  fi
 14.1139 +
 14.1140 +  sim_ac_oiv_libs="-lInventor -limage"
 14.1141 +
 14.1142 +  sim_ac_save_cppflags=$CPPFLAGS
 14.1143 +  sim_ac_save_ldflags=$LDFLAGS
 14.1144 +  sim_ac_save_libs=$LIBS
 14.1145 +
 14.1146 +  CPPFLAGS="$sim_ac_oiv_cppflags $CPPFLAGS"
 14.1147 +  LDFLAGS="$sim_ac_oiv_ldflags $LDFLAGS"
 14.1148 +  LIBS="$sim_ac_oiv_libs $LIBS"
 14.1149 +
 14.1150 +  AC_CACHE_CHECK([for Open Inventor developer kit],
 14.1151 +    sim_cv_lib_oiv_avail,
 14.1152 +    [AC_TRY_LINK([#include <Inventor/SoDB.h>],
 14.1153 +                 [SoDB::init();],
 14.1154 +                 sim_cv_lib_oiv_avail=yes,
 14.1155 +                 sim_cv_lib_oiv_avail=no)])
 14.1156 +
 14.1157 +  if test x"$sim_cv_lib_oiv_avail" = xyes; then
 14.1158 +    sim_ac_oiv_avail=yes
 14.1159 +    ifelse($1, , :, $1)
 14.1160 +  else
 14.1161 +    CPPFLAGS=$sim_ac_save_cppflags
 14.1162 +    LDFLAGS=$sim_ac_save_ldflags
 14.1163 +    LIBS=$sim_ac_save_libs
 14.1164 +    ifelse($2, , :, $2)
 14.1165 +  fi
 14.1166 +fi
 14.1167 +])
 14.1168 +
 14.1169 +dnl Usage:
 14.1170 +dnl  SIM_CHECK_COIN([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
 14.1171 +dnl
 14.1172 +dnl  Try to find the Coin library development system. If it is found,
 14.1173 +dnl  these shell variables are set:
 14.1174 +dnl
 14.1175 +dnl    $sim_ac_coin_cppflags (extra flags the compiler needs for Coin)
 14.1176 +dnl    $sim_ac_coin_ldflags  (extra flags the linker needs for Coin)
 14.1177 +dnl    $sim_ac_coin_libs     (link libraries the linker needs for Coin)
 14.1178 +dnl
 14.1179 +dnl  The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly.
 14.1180 +dnl  In addition, the variable $sim_ac_coin_avail is set to "yes"
 14.1181 +dnl  if the Coin development system is found.
 14.1182 +dnl
 14.1183 +dnl
 14.1184 +dnl Author: Morten Eriksen, <mortene@sim.no>.
 14.1185 +dnl
 14.1186 +dnl TODO:
 14.1187 +dnl    * [mortene:20000123] make sure this work on MSWin (with Cygwin
 14.1188 +dnl      installation)
 14.1189 +dnl
 14.1190 +
 14.1191 +AC_DEFUN(SIM_CHECK_COIN,[
 14.1192 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1193 +AC_PREREQ([2.14.1])
 14.1194 +
 14.1195 +AC_ARG_WITH(coin, AC_HELP_STRING([--with-coin=DIR], [set the prefix directory where Coin resides]), , [with_coin=yes])
 14.1196 +
 14.1197 +sim_ac_coin_avail=no
 14.1198 +
 14.1199 +if test x"$with_coin" != xno; then
 14.1200 +  sim_ac_path=$PATH
 14.1201 +  if test x"$with_coin" != xyes; then
 14.1202 +    sim_ac_path=${with_coin}/bin:$PATH
 14.1203 +  fi
 14.1204 +
 14.1205 +  AC_PATH_PROG(sim_ac_conf_cmd, coin-config, true, $sim_ac_path)
 14.1206 +
 14.1207 +  sim_ac_coin_cppflags=`$sim_ac_conf_cmd --cppflags`
 14.1208 +  sim_ac_coin_ldflags=`$sim_ac_conf_cmd --ldflags`
 14.1209 +  sim_ac_coin_libs=`$sim_ac_conf_cmd --libs`
 14.1210 +
 14.1211 +  sim_ac_save_cppflags=$CPPFLAGS
 14.1212 +  sim_ac_save_ldflags=$LDFLAGS
 14.1213 +  sim_ac_save_libs=$LIBS
 14.1214 +
 14.1215 +  CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags"
 14.1216 +  LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags"
 14.1217 +  LIBS="$sim_ac_coin_libs $LIBS"
 14.1218 +
 14.1219 +  AC_CACHE_CHECK([whether the Coin library is available],
 14.1220 +    sim_cv_lib_coin_avail,
 14.1221 +    [AC_TRY_LINK([#include <Inventor/SoDB.h>],
 14.1222 +                 [SoDB::init();],
 14.1223 +                 sim_cv_lib_coin_avail=yes,
 14.1224 +                 sim_cv_lib_coin_avail=no)])
 14.1225 +
 14.1226 +  if test x"$sim_cv_lib_coin_avail" = xyes; then
 14.1227 +    sim_ac_coin_avail=yes
 14.1228 +    ifelse($1, , :, $1)
 14.1229 +  else
 14.1230 +    CPPFLAGS=$sim_ac_save_cppflags
 14.1231 +    LDFLAGS=$sim_ac_save_ldflags
 14.1232 +    LIBS=$sim_ac_save_libs
 14.1233 +    ifelse($2, , :, $2)
 14.1234 +  fi
 14.1235 +fi
 14.1236 +])
 14.1237 +
 14.1238 +# Configure paths for GTK+
 14.1239 +# Owen Taylor     97-11-3
 14.1240 +
 14.1241 +dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
 14.1242 +dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS
 14.1243 +dnl
 14.1244 +AC_DEFUN(AM_PATH_GTK,
 14.1245 +[dnl 
 14.1246 +dnl Get the cflags and libraries from the gtk-config script
 14.1247 +dnl
 14.1248 +AC_ARG_WITH(gtk-prefix,[  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)],
 14.1249 +            gtk_config_prefix="$withval", gtk_config_prefix="")
 14.1250 +AC_ARG_WITH(gtk-exec-prefix,[  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)],
 14.1251 +            gtk_config_exec_prefix="$withval", gtk_config_exec_prefix="")
 14.1252 +AC_ARG_ENABLE(gtktest, [  --disable-gtktest       Do not try to compile and run a test GTK program],
 14.1253 +		    , enable_gtktest=yes)
 14.1254 +
 14.1255 +  for module in . $4
 14.1256 +  do
 14.1257 +      case "$module" in
 14.1258 +         gthread) 
 14.1259 +             gtk_config_args="$gtk_config_args gthread"
 14.1260 +         ;;
 14.1261 +      esac
 14.1262 +  done
 14.1263 +
 14.1264 +  if test x$gtk_config_exec_prefix != x ; then
 14.1265 +     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
 14.1266 +     if test x${GTK_CONFIG+set} != xset ; then
 14.1267 +        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
 14.1268 +     fi
 14.1269 +  fi
 14.1270 +  if test x$gtk_config_prefix != x ; then
 14.1271 +     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
 14.1272 +     if test x${GTK_CONFIG+set} != xset ; then
 14.1273 +        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
 14.1274 +     fi
 14.1275 +  fi
 14.1276 +
 14.1277 +  AC_PATH_PROG(GTK_CONFIG, gtk-config, no)
 14.1278 +  min_gtk_version=ifelse([$1], ,0.99.7,$1)
 14.1279 +  AC_MSG_CHECKING(for GTK - version >= $min_gtk_version)
 14.1280 +  no_gtk=""
 14.1281 +  if test "$GTK_CONFIG" = "no" ; then
 14.1282 +    no_gtk=yes
 14.1283 +  else
 14.1284 +    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
 14.1285 +    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
 14.1286 +    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
 14.1287 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
 14.1288 +    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
 14.1289 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
 14.1290 +    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
 14.1291 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
 14.1292 +    if test "x$enable_gtktest" = "xyes" ; then
 14.1293 +      ac_save_CFLAGS="$CFLAGS"
 14.1294 +      ac_save_LIBS="$LIBS"
 14.1295 +      CFLAGS="$CFLAGS $GTK_CFLAGS"
 14.1296 +      LIBS="$GTK_LIBS $LIBS"
 14.1297 +dnl
 14.1298 +dnl Now check if the installed GTK is sufficiently new. (Also sanity
 14.1299 +dnl checks the results of gtk-config to some extent
 14.1300 +dnl
 14.1301 +      rm -f conf.gtktest
 14.1302 +      AC_TRY_RUN([
 14.1303 +#include <gtk/gtk.h>
 14.1304 +#include <stdio.h>
 14.1305 +#include <stdlib.h>
 14.1306 +
 14.1307 +int 
 14.1308 +main ()
 14.1309 +{
 14.1310 +  int major, minor, micro;
 14.1311 +  char *tmp_version;
 14.1312 +
 14.1313 +  system ("touch conf.gtktest");
 14.1314 +
 14.1315 +  /* HP/UX 9 (%@#!) writes to sscanf strings */
 14.1316 +  tmp_version = g_strdup("$min_gtk_version");
 14.1317 +  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 14.1318 +     printf("%s, bad version string\n", "$min_gtk_version");
 14.1319 +     exit(1);
 14.1320 +   }
 14.1321 +
 14.1322 +  if ((gtk_major_version != $gtk_config_major_version) ||
 14.1323 +      (gtk_minor_version != $gtk_config_minor_version) ||
 14.1324 +      (gtk_micro_version != $gtk_config_micro_version))
 14.1325 +    {
 14.1326 +      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
 14.1327 +             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
 14.1328 +             gtk_major_version, gtk_minor_version, gtk_micro_version);
 14.1329 +      printf ("*** was found! If gtk-config was correct, then it is best\n");
 14.1330 +      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
 14.1331 +      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 14.1332 +      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 14.1333 +      printf("*** required on your system.\n");
 14.1334 +      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
 14.1335 +      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
 14.1336 +      printf("*** before re-running configure\n");
 14.1337 +    } 
 14.1338 +#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
 14.1339 +  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 14.1340 +	   (gtk_minor_version != GTK_MINOR_VERSION) ||
 14.1341 +           (gtk_micro_version != GTK_MICRO_VERSION))
 14.1342 +    {
 14.1343 +      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
 14.1344 +	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 14.1345 +      printf("*** library (version %d.%d.%d)\n",
 14.1346 +	     gtk_major_version, gtk_minor_version, gtk_micro_version);
 14.1347 +    }
 14.1348 +#endif /* defined (GTK_MAJOR_VERSION) ... */
 14.1349 +  else
 14.1350 +    {
 14.1351 +      if ((gtk_major_version > major) ||
 14.1352 +        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
 14.1353 +        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
 14.1354 +      {
 14.1355 +        return 0;
 14.1356 +       }
 14.1357 +     else
 14.1358 +      {
 14.1359 +        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
 14.1360 +               gtk_major_version, gtk_minor_version, gtk_micro_version);
 14.1361 +        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
 14.1362 +	       major, minor, micro);
 14.1363 +        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
 14.1364 +        printf("***\n");
 14.1365 +        printf("*** If you have already installed a sufficiently new version, this error\n");
 14.1366 +        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
 14.1367 +        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 14.1368 +        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
 14.1369 +        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
 14.1370 +        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 14.1371 +        printf("*** so that the correct libraries are found at run-time))\n");
 14.1372 +      }
 14.1373 +    }
 14.1374 +  return 1;
 14.1375 +}
 14.1376 +],, no_gtk=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
 14.1377 +       CFLAGS="$ac_save_CFLAGS"
 14.1378 +       LIBS="$ac_save_LIBS"
 14.1379 +     fi
 14.1380 +  fi
 14.1381 +  if test "x$no_gtk" = x ; then
 14.1382 +     AC_MSG_RESULT(yes)
 14.1383 +     ifelse([$2], , :, [$2])     
 14.1384 +  else
 14.1385 +     AC_MSG_RESULT(no)
 14.1386 +     if test "$GTK_CONFIG" = "no" ; then
 14.1387 +       echo "*** The gtk-config script installed by GTK could not be found"
 14.1388 +       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
 14.1389 +       echo "*** your path, or set the GTK_CONFIG environment variable to the"
 14.1390 +       echo "*** full path to gtk-config."
 14.1391 +     else
 14.1392 +       if test -f conf.gtktest ; then
 14.1393 +        :
 14.1394 +       else
 14.1395 +          echo "*** Could not run GTK test program, checking why..."
 14.1396 +          CFLAGS="$CFLAGS $GTK_CFLAGS"
 14.1397 +          LIBS="$LIBS $GTK_LIBS"
 14.1398 +          AC_TRY_LINK([
 14.1399 +#include <gtk/gtk.h>
 14.1400 +#include <stdio.h>
 14.1401 +],      [ return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); ],
 14.1402 +        [ echo "*** The test program compiled, but did not run. This usually means"
 14.1403 +          echo "*** that the run-time linker is not finding GTK or finding the wrong"
 14.1404 +          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
 14.1405 +          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 14.1406 +          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 14.1407 +          echo "*** is required on your system"
 14.1408 +	  echo "***"
 14.1409 +          echo "*** If you have an old version installed, it is best to remove it, although"
 14.1410 +          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 14.1411 +          echo "***"
 14.1412 +          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
 14.1413 +          echo "*** came with the system with the command"
 14.1414 +          echo "***"
 14.1415 +          echo "***    rpm --erase --nodeps gtk gtk-devel" ],
 14.1416 +        [ echo "*** The test program failed to compile or link. See the file config.log for the"
 14.1417 +          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
 14.1418 +          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
 14.1419 +          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" ])
 14.1420 +          CFLAGS="$ac_save_CFLAGS"
 14.1421 +          LIBS="$ac_save_LIBS"
 14.1422 +       fi
 14.1423 +     fi
 14.1424 +     GTK_CFLAGS=""
 14.1425 +     GTK_LIBS=""
 14.1426 +     ifelse([$3], , :, [$3])
 14.1427 +  fi
 14.1428 +  AC_SUBST(GTK_CFLAGS)
 14.1429 +  AC_SUBST(GTK_LIBS)
 14.1430 +  rm -f conf.gtktest
 14.1431 +])
 14.1432 +
 14.1433 +# configure paths for GtkGLArea
 14.1434 +#¤Janne Löf 1999-17-2
 14.1435 +
 14.1436 +
 14.1437 +# AM_PATH_GTKGL([ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]])
 14.1438 +AC_DEFUN(AM_PATH_GTKGL,
 14.1439 +[
 14.1440 +AC_REQUIRE([AM_PATH_GTK])
 14.1441 +AC_PROVIDE([AM_PATH_GTKGL])
 14.1442 +
 14.1443 +AC_ARG_WITH(gl-prefix,    [  --with-gl-prefix=PFX   Prefix where OpenGL or Mesa is installed],
 14.1444 + gl_prefix="$withval",
 14.1445 + gl_prefix="")
 14.1446 +
 14.1447 +AC_ARG_WITH(gtkgl-prefix, [  --with-gtkgl-prefix=PFX Prefix where GtkGLArea is installed],
 14.1448 + gtkgl_prefix="$withval",
 14.1449 + gtkgl_prefix="")
 14.1450 +
 14.1451 +
 14.1452 +
 14.1453 +if test x$gl_prefix != x ; then
 14.1454 + GL_CFLAGS="-I$gl_prefix/include"
 14.1455 + GL_LDOPTS="-L$gl_prefix/lib"
 14.1456 +else
 14.1457 + GL_CFLAGS=""
 14.1458 + GL_LDOPTS=""
 14.1459 +fi
 14.1460 +
 14.1461 +saved_LIBS="$LIBS"
 14.1462 +saved_CFLAGS="$CFLAGS"
 14.1463 +
 14.1464 +# test for plain OpenGL
 14.1465 +AC_MSG_CHECKING([GL])
 14.1466 +LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGLU -lGL"
 14.1467 +AC_TRY_LINK([#include <GL/gl.h>], [glBegin(GL_POLYGON);], have_GL=yes, have_GL=no)
 14.1468 +AC_MSG_RESULT($have_GL)
 14.1469 +
 14.1470 +if test x$have_GL = xyes; then
 14.1471 +
 14.1472 + GL_LIBS="-lGLU -lGL"
 14.1473 +
 14.1474 +else
 14.1475 +
 14.1476 + # test for Mesa
 14.1477 + AC_MSG_CHECKING([Mesa])
 14.1478 + LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL"
 14.1479 + AC_TRY_LINK( [char glBegin();] ,[glBegin(GL_POLYGON);], have_Mesa=yes, have_Mesa=no)
 14.1480 + AC_MSG_RESULT($have_Mesa)
 14.1481 +
 14.1482 + if test x$have_Mesa = xyes; then
 14.1483 +
 14.1484 +  GL_LIBS="-lMesaGLU -lMesaGL"
 14.1485 +
 14.1486 + else
 14.1487 +
 14.1488 +  # test for Mesa with threads
 14.1489 +  AC_MSG_CHECKING([Mesa with pthreads])
 14.1490 +  LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
 14.1491 +  AC_TRY_LINK([#include <GL/gl.h>], [glBegin(GL_POLYGON);], have_Mesa_pthread=yes, have_Mesa_pthread=no)
 14.1492 +  AC_MSG_RESULT($have_Mesa_pthread)
 14.1493 +
 14.1494 +  if test x$have_Mesa_pthread = xyes; then
 14.1495 +    
 14.1496 +    GL_LIBS="-lMesaGLU -lMesaGL -lpthread"
 14.1497 +
 14.1498 +  else
 14.1499 +
 14.1500 +   #all failed
 14.1501 +   LIBS="$saved_LIBS"
 14.1502 +   CFLAGS="$saved_CFLAGS"
 14.1503 +   GTKGL_LIBS=""
 14.1504 +   GTKGL_CFLAGS=""
 14.1505 +   ifelse([$2], , :, [$2])
 14.1506 +
 14.1507 +  fi
 14.1508 + fi
 14.1509 +fi
 14.1510 +
 14.1511 +
 14.1512 +if test x$gtkgl_prefix != x; then
 14.1513 + GTKGL_CFLAGS="-I$gtkgl_prefix/include"
 14.1514 + GTKGL_LDOPTS="-L$gtkgl_prefix/lib"
 14.1515 +else
 14.1516 + GTKGL_CFLAGS=""
 14.1517 + GTKGL_LDOPTS=""
 14.1518 +fi
 14.1519 +
 14.1520 +AC_MSG_CHECKING([GtkGLArea])
 14.1521 +LIBS="$save_LIBS -lgtkgl $GTK_LIBS $GL_LDOPTS $GL_LIBS $GTKGL_LDOPTS"
 14.1522 +AC_TRY_LINK([#include <gtkgl/gtkglarea.h>], [gtk_gl_area_new(0L);], have_gtkgl=yes, have_gtkgl=no)
 14.1523 +AC_MSG_RESULT($have_gtkgl)
 14.1524 +
 14.1525 +if test x$have_gtkgl = xyes; then
 14.1526 +
 14.1527 + LIBS="$saved_LIBS"
 14.1528 + CFLAGS="$saved_CFLAGS"
 14.1529 + GTKGL_CFLAGS="$GTKGL_CFLAGS $GL_CFLAGS"
 14.1530 + GTKGL_LIBS="$GTKGL_LDOPTS -lgtkgl $GL_LDOPTS $GL_LIBS"
 14.1531 + ifelse([$1], , :, [$1])
 14.1532 +
 14.1533 +else
 14.1534 +
 14.1535 + LIBS="$saved_LIBS"
 14.1536 + CFLAGS="$saved_CFLAGS"
 14.1537 + GTKGL_LIBS=""
 14.1538 + GTKGL_CFLAGS=""
 14.1539 + ifelse([$2], , :, [$2])
 14.1540 +
 14.1541 +fi
 14.1542 +
 14.1543 +AC_SUBST(GTKGL_CFLAGS)
 14.1544 +AC_SUBST(GTKGL_LIBS)
 14.1545 +
 14.1546 +])
 14.1547 +
 14.1548 +
 14.1549 +dnl  Let the user decide if compilation should be done in "debug mode".
 14.1550 +dnl  If compilation is not done in debug mode, all assert()'s in the code
 14.1551 +dnl  will be disabled.
 14.1552 +dnl
 14.1553 +dnl  Also sets enable_debug variable to either "yes" or "no", so the
 14.1554 +dnl  configure.in writer can add package-specific actions. Default is "yes".
 14.1555 +dnl
 14.1556 +dnl  Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX
 14.1557 +dnl  in the configure.in script.
 14.1558 +dnl
 14.1559 +dnl  Author: Morten Eriksen, <mortene@sim.no>.
 14.1560 +dnl
 14.1561 +
 14.1562 +AC_DEFUN(SIM_COMPILE_DEBUG,
 14.1563 +[
 14.1564 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1565 +AC_PREREQ([2.13])
 14.1566 +AC_ARG_ENABLE(debug,
 14.1567 +  [  --enable-debug          compile in debug mode [default=yes]],
 14.1568 +  [case "${enableval}" in
 14.1569 +    yes) enable_debug=yes ;;
 14.1570 +    no)  enable_debug=no ;;
 14.1571 +    *) AC_MSG_ERROR(bad value \"${enableval}\" for --enable-debug) ;;
 14.1572 +  esac],
 14.1573 +  enable_debug=yes)
 14.1574 +
 14.1575 +if test "x$enable_debug" = "xno"; then
 14.1576 +  CFLAGS="$CFLAGS -DNDEBUG"
 14.1577 +  CXXFLAGS="$CXXFLAGS -DNDEBUG"
 14.1578 +fi
 14.1579 +])
 14.1580 +
 14.1581 +dnl  Let the user decide if debug symbol information should be compiled
 14.1582 +dnl  in. The compiled libraries/executables will use a lot less space
 14.1583 +dnl  if stripped for their symbol information.
 14.1584 +dnl
 14.1585 +dnl  Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX
 14.1586 +dnl  in the configure.in script.
 14.1587 +dnl
 14.1588 +dnl  Author: Morten Eriksen, <mortene@sim.no>.
 14.1589 +dnl
 14.1590 +dnl  TODO:
 14.1591 +dnl    * [mortene:19991114] make this work with compilers other than gcc/g++
 14.1592 +dnl
 14.1593 +
 14.1594 +AC_DEFUN(SIM_DEBUGSYMBOLS,
 14.1595 +[
 14.1596 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1597 +AC_PREREQ([2.13])
 14.1598 +AC_ARG_ENABLE(symbols,
 14.1599 +  [  --enable-symbols        (GCC only) include symbol debug information
 14.1600 +                          [default=yes]],
 14.1601 +  [case "${enableval}" in
 14.1602 +    yes) enable_symbols=yes ;;
 14.1603 +    no)  enable_symbols=no ;;
 14.1604 +    *) AC_MSG_ERROR(bad value \"${enableval}\" for --enable-symbols) ;;
 14.1605 +  esac],
 14.1606 +  enable_symbols=yes)
 14.1607 +
 14.1608 +if test "x$enable_symbols" = "xno"; then
 14.1609 +  if test "x$GXX" = "xyes" || "x$GCC" = "xyes"; then
 14.1610 +    CFLAGS="`echo $CFLAGS | sed 's/-g//'`"
 14.1611 +    CXXFLAGS="`echo $CXXFLAGS | sed 's/-g//'`"
 14.1612 +  else
 14.1613 +    AC_MSG_WARN(--disable-symbols only has effect when using GNU gcc or g++)
 14.1614 +  fi
 14.1615 +fi
 14.1616 +])
 14.1617 +
 14.1618 +dnl  Let the user decide if RTTI should be compiled in. The compiled
 14.1619 +dnl  libraries/executables will use a lot less space if they don't
 14.1620 +dnl  contain RTTI.
 14.1621 +dnl
 14.1622 +dnl  Note: this macro must be placed after AC_PROG_CXX in the
 14.1623 +dnl  configure.in script.
 14.1624 +dnl
 14.1625 +dnl  Author: Morten Eriksen, <mortene@sim.no>.
 14.1626 +dnl
 14.1627 +dnl  TODO:
 14.1628 +dnl    * [mortene:19991114] make this work with compilers other than gcc/g++
 14.1629 +dnl
 14.1630 +
 14.1631 +AC_DEFUN(SIM_RTTI_SUPPORT,
 14.1632 +[
 14.1633 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1634 +AC_PREREQ([2.13])
 14.1635 +AC_ARG_ENABLE(rtti,
 14.1636 +  [  --enable-rtti           (g++ only) compile with RTTI [default=no]],
 14.1637 +  [case "${enableval}" in
 14.1638 +    yes) enable_rtti=yes ;;
 14.1639 +    no)  enable_rtti=no ;;
 14.1640 +    *) AC_MSG_ERROR(bad value \"${enableval}\" for --enable-rtti) ;;
 14.1641 +  esac],
 14.1642 +  enable_rtti=no)
 14.1643 +
 14.1644 +if test "x$enable_rtti" = "xno"; then
 14.1645 +  if test "x$GXX" = "xyes"; then
 14.1646 +    CXXFLAGS="$CXXFLAGS -fno-rtti"
 14.1647 +  fi
 14.1648 +else
 14.1649 +  if test "x$GXX" != "xyes"; then
 14.1650 +    AC_MSG_WARN(--enable-rtti only has effect when using GNU g++)
 14.1651 +  fi
 14.1652 +fi
 14.1653 +])
 14.1654 +
 14.1655 +dnl  Let the user decide if C++ exception handling should be compiled
 14.1656 +dnl  in. The compiled libraries/executables will use a lot less space
 14.1657 +dnl  if they have exception handling support.
 14.1658 +dnl
 14.1659 +dnl  Note: this macro must be placed after AC_PROG_CXX in the
 14.1660 +dnl  configure.in script.
 14.1661 +dnl
 14.1662 +dnl  Author: Morten Eriksen, <mortene@sim.no>.
 14.1663 +dnl
 14.1664 +dnl  TODO:
 14.1665 +dnl    * [mortene:19991114] make this work with compilers other than gcc/g++
 14.1666 +dnl
 14.1667 +
 14.1668 +AC_DEFUN(SIM_EXCEPTION_HANDLING,
 14.1669 +[
 14.1670 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1671 +AC_PREREQ([2.13])
 14.1672 +AC_ARG_ENABLE(exceptions,
 14.1673 +  [  --enable-exceptions     (g++ only) compile with exceptions [default=no]],
 14.1674 +  [case "${enableval}" in
 14.1675 +    yes) enable_exceptions=yes ;;
 14.1676 +    no)  enable_exceptions=no ;;
 14.1677 +    *) AC_MSG_ERROR(bad value \"${enableval}\" for --enable-exceptions) ;;
 14.1678 +  esac],
 14.1679 +  enable_exceptions=no)
 14.1680 +
 14.1681 +if test "x$enable_exceptions" = "xno"; then
 14.1682 +  if test "x$GXX" = "xyes"; then
 14.1683 +    unset _exception_flag
 14.1684 +    dnl This is for GCC >= 2.8
 14.1685 +    SIM_COMPILER_OPTION(-fno-exceptions, _exception_flag=-fno-exceptions)
 14.1686 +    if test "x$_exception_flag" = "x"; then
 14.1687 +      dnl For GCC versions < 2.8
 14.1688 +      SIM_COMPILER_OPTION(-fno-handle-exceptions, _exception_flag=-fno-handle-exceptions)
 14.1689 +    fi
 14.1690 +    if test "x$_exception_flag" = "x"; then
 14.1691 +      AC_MSG_WARN(couldn't find a valid option for avoiding exception handling)
 14.1692 +    else
 14.1693 +      CXXFLAGS="$CXXFLAGS $_exception_flag"
 14.1694 +    fi
 14.1695 +  fi
 14.1696 +else
 14.1697 +  if test "x$GXX" != "xyes"; then
 14.1698 +    AC_MSG_WARN(--enable-exceptions only has effect when using GNU g++)
 14.1699 +  fi
 14.1700 +fi
 14.1701 +])
 14.1702 +
 14.1703 +dnl  Use this file to store miscellaneous macros related to checking
 14.1704 +dnl  compiler features.
 14.1705 +dnl
 14.1706 +dnl  Author: Morten Eriksen, <mortene@sim.no>.
 14.1707 +dnl
 14.1708 +dnl  TODO:
 14.1709 +dnl
 14.1710 +dnl    * [mortene:19991125] make SIM_COMPILER_OPTION work with C compilers.
 14.1711 +dnl
 14.1712 +dnl    * [mortene:19991218] improve SIM_COMPILER_OPTION by catching
 14.1713 +dnl      and analyzing stderr (at least to see if there was any output
 14.1714 +dnl      there.)
 14.1715 +dnl
 14.1716 +
 14.1717 +
 14.1718 +dnl SIM_COMPILER_OPTION(OPTION-TO-TEST, ACTION-IF-TRUE [, ACTION-IF-FALSE])
 14.1719 +AC_DEFUN(SIM_COMPILER_OPTION,
 14.1720 +[
 14.1721 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1722 +AC_PREREQ([2.13])
 14.1723 +AC_MSG_CHECKING(whether $CXX accepts [$1])
 14.1724 +_save_cxxflags=$CXXFLAGS
 14.1725 +CXXFLAGS="$CXXFLAGS [$1]"
 14.1726 +AC_TRY_COMPILE( , , _accept_result=yes [$2], _accept_result=no [$3])
 14.1727 +AC_MSG_RESULT($_accept_result)
 14.1728 +CXXFLAGS=$_save_cxxflags
 14.1729 +unset _accept_result _save_cxxflags
 14.1730 +])
 14.1731 +
 14.1732 +dnl  Let the user decide if profiling code should be compiled
 14.1733 +dnl  in. The compiled libraries/executables will use a lot less space
 14.1734 +dnl  if they don't contain profiling code information, and they will also
 14.1735 +dnl  execute faster.
 14.1736 +dnl
 14.1737 +dnl  Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX
 14.1738 +dnl  in the configure.in script.
 14.1739 +dnl
 14.1740 +dnl  Author: Morten Eriksen, <mortene@sim.no>.
 14.1741 +dnl
 14.1742 +dnl  TODO:
 14.1743 +dnl    * [mortene:19991114] make this work with compilers other than gcc/g++
 14.1744 +dnl
 14.1745 +
 14.1746 +AC_DEFUN(SIM_PROFILING_SUPPORT,
 14.1747 +[
 14.1748 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1749 +AC_PREREQ([2.13])
 14.1750 +AC_ARG_ENABLE(profile,
 14.1751 +  [  --enable-profile        (GCC only) turn on inclusion of profiling code
 14.1752 +                          [default=no]],
 14.1753 +  [case "${enableval}" in
 14.1754 +    yes) enable_profile=yes ;;
 14.1755 +    no)  enable_profile=no ;;
 14.1756 +    *) AC_MSG_ERROR(bad value \"${enableval}\" for --enable-profile) ;;
 14.1757 +  esac],
 14.1758 +  enable_profile=no)
 14.1759 +
 14.1760 +if test "x$enable_profile" = "xyes"; then
 14.1761 +  if test "x$GXX" = "xyes" || test "x$GCC" = "xyes"; then
 14.1762 +    CFLAGS="$CFLAGS -pg"
 14.1763 +    CXXFLAGS="$CXXFLAGS -pg"
 14.1764 +    LDFLAGS="$LDFLAGS -pg"
 14.1765 +  else
 14.1766 +    AC_MSG_WARN(--enable-profile only has effect when using GNU gcc or g++)
 14.1767 +  fi
 14.1768 +fi
 14.1769 +])
 14.1770 +
 14.1771 +dnl  Let the user decide if compilation should be done with all compiler
 14.1772 +dnl  warnings turned on.
 14.1773 +dnl
 14.1774 +dnl  Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX
 14.1775 +dnl  in the configure.in script.
 14.1776 +dnl
 14.1777 +dnl  Author: Morten Eriksen, <mortene@sim.no>.
 14.1778 +dnl
 14.1779 +dnl  TODO:
 14.1780 +dnl    * [mortene:19991114] make this work with compilers other than gcc/g++
 14.1781 +dnl    * [mortene:19991114] find out how to get GCC's
 14.1782 +dnl      -Werror-implicit-function-declaration option to work as expected
 14.1783 +dnl    * [larsa:19991126] use -Wno-multichar under BeOS only (BeOS system
 14.1784 +dnl      header files emit lots of warnings due to multichar definitions)
 14.1785 +dnl
 14.1786 +
 14.1787 +
 14.1788 +dnl SIM_COMPILER_WARNINGS( )
 14.1789 +AC_DEFUN(SIM_COMPILER_WARNINGS,
 14.1790 +[
 14.1791 +dnl Autoconf is a developer tool, so don't bother to support older versions.
 14.1792 +AC_PREREQ([2.13])
 14.1793 +AC_ARG_ENABLE(warnings,
 14.1794 +  [  --enable-warnings       (GCC only) turn on warnings when compiling
 14.1795 +                          [default=yes]],
 14.1796 +  [case "${enableval}" in
 14.1797 +    yes) enable_warnings=yes ;;
 14.1798 +    no)  enable_warnings=no ;;
 14.1799 +    *) AC_MSG_ERROR(bad value \"${enableval}\" for --enable-warnings) ;;
 14.1800 +  esac],
 14.1801 +  enable_warnings=yes)
 14.1802 +
 14.1803 +if test "x$enable_warnings" = "xyes"; then
 14.1804 +  if test "x$GXX" = "xyes" || test "x$GCC" = "xyes"; then
 14.1805 +    SIM_COMPILER_OPTION(-Wno-multichar, _warn_flags=-Wno-multichar)
 14.1806 +    _warn_flags="-W -Wall -Wno-unused $_warn_flags"
 14.1807 +
 14.1808 +    CFLAGS="$CFLAGS $_warn_flags"
 14.1809 +    CXXFLAGS="$CXXFLAGS $_warn_flags"
 14.1810 +
 14.1811 +    unset _warn_flags
 14.1812 +  fi
 14.1813 +else
 14.1814 +  if test "x$GXX" != "xyes" && test "x$GCC" != "xyes"; then
 14.1815 +    AC_MSG_WARN(--enable-warnings only has effect when using GNU gcc or g++)
 14.1816 +  fi
 14.1817 +fi
 14.1818 +])
 14.1819 +
    15.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    15.2 +++ b/autogen.sh	Mon Jan 24 14:34:29 2000 +0000
    15.3 @@ -0,0 +1,84 @@
    15.4 +#!/bin/sh
    15.5 +
    15.6 +# Regenerate all files which are constructed by the autoconf, automake
    15.7 +# and libtool tool-chain. Note: only developers should need to use
    15.8 +# this script.
    15.9 +
   15.10 +# Author: Morten Eriksen, <mortene@sim.no>. Loosely based on Ralph
   15.11 +# Levien's script for Gnome.
   15.12 +
   15.13 +DIE=0
   15.14 +
   15.15 +GUI=Gtk
   15.16 +
   15.17 +PROJECT=So$GUI
   15.18 +
   15.19 +MACRODIR=conf-macros
   15.20 +SUBPROJECTS="$MACRODIR src/Inventor/$GUI/common"
   15.21 +
   15.22 +echo "Checking the installed configuration tools..."
   15.23 +
   15.24 +AUTOCONF_VER=2.14.1  # Autoconf from CVS.
   15.25 +if test -z "`autoconf --version | grep \" $AUTOCONF_VER\" 2> /dev/null`"; then
   15.26 +    echo
   15.27 +    echo "You must have autoconf version $AUTOCONF_VER installed to"
   15.28 +    echo "generate configure information and Makefiles for $PROJECT." 
   15.29 +#    echo "Get ftp://ftp.gnu.org/pub/gnu/autoconf-*.tar.gz"
   15.30 +    echo "Get autoconf from CVS: "
   15.31 +    echo "  cvs -d :pserver:anoncvs@anoncvs.cygnus.com:/cvs/autoconf co autoconf"
   15.32 +    DIE=1
   15.33 +fi
   15.34 +
   15.35 +LIBTOOL_VER=1.3.4  # Latest release of libtool
   15.36 +if test -z "`libtool --version | grep \" $LIBTOOL_VER \" 2> /dev/null`"; then
   15.37 +    echo
   15.38 +    echo "You must have libtool version $LIBTOOL_VER installed to"
   15.39 +    echo "generate configure information and Makefiles for $PROJECT." 
   15.40 +    echo "Get ftp://ftp.gnu.org/pub/gnu/libtool-*.tar.gz"
   15.41 +    DIE=1
   15.42 +fi
   15.43 +
   15.44 +AUTOMAKE_VER=1.4a  # Automake from CVS.
   15.45 +if test -z "`automake --version | grep \" $AUTOMAKE_VER\" 2> /dev/null`"; then
   15.46 +    echo
   15.47 +    echo "You must have automake version $AUTOMAKE_VER installed to"
   15.48 +    echo "generate configure information and Makefiles for $PROJECT." 
   15.49 +#    echo "Get ftp://ftp.gnu.org/pub/gnu/automake-*.tar.gz"
   15.50 +    echo "Get automake from CVS: "
   15.51 +    echo "  cvs -d :pserver:anoncvs@anoncvs.cygnus.com:/cvs/automake co automake"
   15.52 +    DIE=1
   15.53 +fi
   15.54 +
   15.55 +
   15.56 +for project in $SUBPROJECTS; do
   15.57 +  test -d $project || {
   15.58 +    echo
   15.59 +    echo "The CVS sub-project '$project' was not found."
   15.60 +    echo "It was probably added after you initially checked out $PROJECT."
   15.61 +    echo "Do a fresh 'cvs checkout' to correct this problem - the $PROJECT build system"
   15.62 +    echo "will probably not work properly otherwise.  For a fresh 'cvs checkout',"
   15.63 +    echo "run 'cvs -d :pserver:cvs@cvs.sim.no:/export/cvsroot co -P $PROJECT'."
   15.64 +    echo
   15.65 +  }
   15.66 +done
   15.67 +
   15.68 +if test "$DIE" -eq 1; then
   15.69 +        exit 1
   15.70 +fi
   15.71 +
   15.72 +
   15.73 +echo "Running aclocal (generating aclocal.m4)..."
   15.74 +aclocal -I $MACRODIR
   15.75 +
   15.76 +echo "Running autoheader (generating config.h.in)..."
   15.77 +autoheader
   15.78 +
   15.79 +echo "Running automake (generating the Makefile.in files)..."
   15.80 +echo "[ignore any \"directory should not contain '/'\" warning]"
   15.81 +automake
   15.82 +
   15.83 +echo "Running autoconf (generating ./configure and the Makefile files)..."
   15.84 +autoconf
   15.85 +
   15.86 +echo "Done: Now run './configure' and 'make install' to build $PROJECT."
   15.87 +
    16.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    16.2 +++ b/config.guess	Mon Jan 24 14:34:29 2000 +0000
    16.3 @@ -0,0 +1,1121 @@
    16.4 +#! /bin/sh
    16.5 +# Attempt to guess a canonical system name.
    16.6 +#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
    16.7 +#   Free Software Foundation, Inc.
    16.8 +#
    16.9 +# This file is free software; you can redistribute it and/or modify it
   16.10 +# under the terms of the GNU General Public License as published by
   16.11 +# the Free Software Foundation; either version 2 of the License, or
   16.12 +# (at your option) any later version.
   16.13 +#
   16.14 +# This program is distributed in the hope that it will be useful, but
   16.15 +# WITHOUT ANY WARRANTY; without even the implied warranty of
   16.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   16.17 +# General Public License for more details.
   16.18 +#
   16.19 +# You should have received a copy of the GNU General Public License
   16.20 +# along with this program; if not, write to the Free Software
   16.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   16.22 +#
   16.23 +# As a special exception to the GNU General Public License, if you
   16.24 +# distribute this file as part of a program that contains a
   16.25 +# configuration script generated by Autoconf, you may include it under
   16.26 +# the same distribution terms that you use for the rest of that program.
   16.27 +
   16.28 +# Written by Per Bothner <bothner@cygnus.com>.
   16.29 +# The master version of this file is at the FSF in /home/gd/gnu/lib.
   16.30 +# Please send patches to <autoconf-patches@gnu.org>.
   16.31 +#
   16.32 +# This script attempts to guess a canonical system name similar to
   16.33 +# config.sub.  If it succeeds, it prints the system name on stdout, and
   16.34 +# exits with 0.  Otherwise, it exits with 1.
   16.35 +#
   16.36 +# The plan is that this can be called by configure scripts if you
   16.37 +# don't specify an explicit system type (host/target name).
   16.38 +#
   16.39 +# Only a few systems have been added to this list; please add others
   16.40 +# (but try to keep the structure clean).
   16.41 +#
   16.42 +
   16.43 +# Use $HOST_CC if defined. $CC may point to a cross-compiler
   16.44 +if test x"$CC_FOR_BUILD" = x; then
   16.45 +  if test x"$HOST_CC" != x; then
   16.46 +    CC_FOR_BUILD="$HOST_CC"
   16.47 +  else
   16.48 +    if test x"$CC" != x; then
   16.49 +      CC_FOR_BUILD="$CC"
   16.50 +    else
   16.51 +      CC_FOR_BUILD=cc
   16.52 +    fi
   16.53 +  fi
   16.54 +fi
   16.55 +
   16.56 +
   16.57 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
   16.58 +# (ghazi@noc.rutgers.edu 8/24/94.)
   16.59 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
   16.60 +	PATH=$PATH:/.attbin ; export PATH
   16.61 +fi
   16.62 +
   16.63 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
   16.64 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
   16.65 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
   16.66 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
   16.67 +
   16.68 +dummy=dummy-$$
   16.69 +trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
   16.70 +
   16.71 +# Note: order is significant - the case branches are not exclusive.
   16.72 +
   16.73 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
   16.74 +    alpha:OSF1:*:*)
   16.75 +	if test $UNAME_RELEASE = "V4.0"; then
   16.76 +		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
   16.77 +	fi
   16.78 +	# A Vn.n version is a released version.
   16.79 +	# A Tn.n version is a released field test version.
   16.80 +	# A Xn.n version is an unreleased experimental baselevel.
   16.81 +	# 1.2 uses "1.2" for uname -r.
   16.82 +	cat <<EOF >$dummy.s
   16.83 +	.globl main
   16.84 +	.ent main
   16.85 +main:
   16.86 +	.frame \$30,0,\$26,0
   16.87 +	.prologue 0
   16.88 +	.long 0x47e03d80 # implver $0
   16.89 +	lda \$2,259
   16.90 +	.long 0x47e20c21 # amask $2,$1
   16.91 +	srl \$1,8,\$2
   16.92 +	sll \$2,2,\$2
   16.93 +	sll \$0,3,\$0
   16.94 +	addl \$1,\$0,\$0
   16.95 +	addl \$2,\$0,\$0
   16.96 +	ret \$31,(\$26),1
   16.97 +	.end main
   16.98 +EOF
   16.99 +	$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  16.100 +	if test "$?" = 0 ; then
  16.101 +		./$dummy
  16.102 +		case "$?" in
  16.103 +			7)
  16.104 +				UNAME_MACHINE="alpha"
  16.105 +				;;
  16.106 +			15)
  16.107 +				UNAME_MACHINE="alphaev5"
  16.108 +				;;
  16.109 +			14)
  16.110 +				UNAME_MACHINE="alphaev56"
  16.111 +				;;
  16.112 +			10)
  16.113 +				UNAME_MACHINE="alphapca56"
  16.114 +				;;
  16.115 +			16)
  16.116 +				UNAME_MACHINE="alphaev6"
  16.117 +				;;
  16.118 +		esac
  16.119 +	fi
  16.120 +	rm -f $dummy.s $dummy
  16.121 +	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  16.122 +	exit 0 ;;
  16.123 +    Alpha\ *:Windows_NT*:*)
  16.124 +	# How do we know it's Interix rather than the generic POSIX subsystem?
  16.125 +	# Should we change UNAME_MACHINE based on the output of uname instead
  16.126 +	# of the specific Alpha model?
  16.127 +	echo alpha-pc-interix
  16.128 +	exit 0 ;;
  16.129 +    21064:Windows_NT:50:3)
  16.130 +	echo alpha-dec-winnt3.5
  16.131 +	exit 0 ;;
  16.132 +    Amiga*:UNIX_System_V:4.0:*)
  16.133 +	echo m68k-cbm-sysv4
  16.134 +	exit 0;;
  16.135 +    amiga:NetBSD:*:*)
  16.136 +      echo m68k-cbm-netbsd${UNAME_RELEASE}
  16.137 +      exit 0 ;;
  16.138 +    amiga:OpenBSD:*:*)
  16.139 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
  16.140 +	exit 0 ;;
  16.141 +    *:[Aa]miga[Oo][Ss]:*:*)
  16.142 +	echo ${UNAME_MACHINE}-unknown-amigaos
  16.143 +	exit 0 ;;
  16.144 +    arc64:OpenBSD:*:*)
  16.145 +	echo mips64el-unknown-openbsd${UNAME_RELEASE}
  16.146 +	exit 0 ;;
  16.147 +    arc:OpenBSD:*:*)
  16.148 +	echo mipsel-unknown-openbsd${UNAME_RELEASE}
  16.149 +	exit 0 ;;
  16.150 +    hkmips:OpenBSD:*:*)
  16.151 +	echo mips-unknown-openbsd${UNAME_RELEASE}
  16.152 +	exit 0 ;;
  16.153 +    pmax:OpenBSD:*:*)
  16.154 +	echo mipsel-unknown-openbsd${UNAME_RELEASE}
  16.155 +	exit 0 ;;
  16.156 +    sgi:OpenBSD:*:*)
  16.157 +	echo mips-unknown-openbsd${UNAME_RELEASE}
  16.158 +	exit 0 ;;
  16.159 +    wgrisc:OpenBSD:*:*)
  16.160 +	echo mipsel-unknown-openbsd${UNAME_RELEASE}
  16.161 +	exit 0 ;;
  16.162 +    *:OS/390:*:*)
  16.163 +	echo i370-ibm-openedition
  16.164 +	exit 0 ;;
  16.165 +    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  16.166 +	echo arm-acorn-riscix${UNAME_RELEASE}
  16.167 +	exit 0;;
  16.168 +    arm32:NetBSD:*:*)
  16.169 +	echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  16.170 +	exit 0 ;;
  16.171 +    SR2?01:HI-UX/MPP:*:*)
  16.172 +	echo hppa1.1-hitachi-hiuxmpp
  16.173 +	exit 0;;
  16.174 +    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  16.175 +	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  16.176 +	if test "`(/bin/universe) 2>/dev/null`" = att ; then
  16.177 +		echo pyramid-pyramid-sysv3
  16.178 +	else
  16.179 +		echo pyramid-pyramid-bsd
  16.180 +	fi
  16.181 +	exit 0 ;;
  16.182 +    NILE*:*:*:dcosx)
  16.183 +	echo pyramid-pyramid-svr4
  16.184 +	exit 0 ;;
  16.185 +    sun4H:SunOS:5.*:*)
  16.186 +	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16.187 +	exit 0 ;;
  16.188 +    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  16.189 +	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16.190 +	exit 0 ;;
  16.191 +    i86pc:SunOS:5.*:*)
  16.192 +	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16.193 +	exit 0 ;;
  16.194 +    sun4*:SunOS:6*:*)
  16.195 +	# According to config.sub, this is the proper way to canonicalize
  16.196 +	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
  16.197 +	# it's likely to be more like Solaris than SunOS4.
  16.198 +	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16.199 +	exit 0 ;;
  16.200 +    sun4*:SunOS:*:*)
  16.201 +	case "`/usr/bin/arch -k`" in
  16.202 +	    Series*|S4*)
  16.203 +		UNAME_RELEASE=`uname -v`
  16.204 +		;;
  16.205 +	esac
  16.206 +	# Japanese Language versions have a version number like `4.1.3-JL'.
  16.207 +	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  16.208 +	exit 0 ;;
  16.209 +    sun3*:SunOS:*:*)
  16.210 +	echo m68k-sun-sunos${UNAME_RELEASE}
  16.211 +	exit 0 ;;
  16.212 +    sun*:*:4.2BSD:*)
  16.213 +	UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  16.214 +	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  16.215 +	case "`/bin/arch`" in
  16.216 +	    sun3)
  16.217 +		echo m68k-sun-sunos${UNAME_RELEASE}
  16.218 +		;;
  16.219 +	    sun4)
  16.220 +		echo sparc-sun-sunos${UNAME_RELEASE}
  16.221 +		;;
  16.222 +	esac
  16.223 +	exit 0 ;;
  16.224 +    aushp:SunOS:*:*)
  16.225 +	echo sparc-auspex-sunos${UNAME_RELEASE}
  16.226 +	exit 0 ;;
  16.227 +    atari*:NetBSD:*:*)
  16.228 +	echo m68k-atari-netbsd${UNAME_RELEASE}
  16.229 +	exit 0 ;;
  16.230 +    atari*:OpenBSD:*:*)
  16.231 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
  16.232 +	exit 0 ;;
  16.233 +    # The situation for MiNT is a little confusing.  The machine name
  16.234 +    # can be virtually everything (everything which is not
  16.235 +    # "atarist" or "atariste" at least should have a processor 
  16.236 +    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
  16.237 +    # to the lowercase version "mint" (or "freemint").  Finally
  16.238 +    # the system name "TOS" denotes a system which is actually not
  16.239 +    # MiNT.  But MiNT is downward compatible to TOS, so this should
  16.240 +    # be no problem.
  16.241 +    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  16.242 +        echo m68k-atari-mint${UNAME_RELEASE}
  16.243 +	exit 0 ;;
  16.244 +    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  16.245 +	echo m68k-atari-mint${UNAME_RELEASE}
  16.246 +        exit 0 ;;
  16.247 +    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  16.248 +        echo m68k-atari-mint${UNAME_RELEASE}
  16.249 +	exit 0 ;;
  16.250 +    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  16.251 +        echo m68k-milan-mint${UNAME_RELEASE}
  16.252 +        exit 0 ;;
  16.253 +    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  16.254 +        echo m68k-hades-mint${UNAME_RELEASE}
  16.255 +        exit 0 ;;
  16.256 +    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  16.257 +        echo m68k-unknown-mint${UNAME_RELEASE}
  16.258 +        exit 0 ;;
  16.259 +    sun3*:NetBSD:*:*)
  16.260 +	echo m68k-sun-netbsd${UNAME_RELEASE}
  16.261 +	exit 0 ;;
  16.262 +    sun3*:OpenBSD:*:*)
  16.263 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
  16.264 +	exit 0 ;;
  16.265 +    mac68k:NetBSD:*:*)
  16.266 +	echo m68k-apple-netbsd${UNAME_RELEASE}
  16.267 +	exit 0 ;;
  16.268 +    mac68k:OpenBSD:*:*)
  16.269 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
  16.270 +	exit 0 ;;
  16.271 +    mvme68k:OpenBSD:*:*)
  16.272 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
  16.273 +	exit 0 ;;
  16.274 +    mvme88k:OpenBSD:*:*)
  16.275 +	echo m88k-unknown-openbsd${UNAME_RELEASE}
  16.276 +	exit 0 ;;
  16.277 +    powerpc:machten:*:*)
  16.278 +	echo powerpc-apple-machten${UNAME_RELEASE}
  16.279 +	exit 0 ;;
  16.280 +    macppc:NetBSD:*:*)
  16.281 +        echo powerpc-apple-netbsd${UNAME_RELEASE}
  16.282 +        exit 0 ;;
  16.283 +    RISC*:Mach:*:*)
  16.284 +	echo mips-dec-mach_bsd4.3
  16.285 +	exit 0 ;;
  16.286 +    RISC*:ULTRIX:*:*)
  16.287 +	echo mips-dec-ultrix${UNAME_RELEASE}
  16.288 +	exit 0 ;;
  16.289 +    VAX*:ULTRIX*:*:*)
  16.290 +	echo vax-dec-ultrix${UNAME_RELEASE}
  16.291 +	exit 0 ;;
  16.292 +    2020:CLIX:*:* | 2430:CLIX:*:*)
  16.293 +	echo clipper-intergraph-clix${UNAME_RELEASE}
  16.294 +	exit 0 ;;
  16.295 +    mips:*:*:UMIPS | mips:*:*:RISCos)
  16.296 +	sed 's/^	//' << EOF >$dummy.c
  16.297 +#ifdef __cplusplus
  16.298 +	int main (int argc, char *argv[]) {
  16.299 +#else
  16.300 +	int main (argc, argv) int argc; char *argv[]; {
  16.301 +#endif
  16.302 +	#if defined (host_mips) && defined (MIPSEB)
  16.303 +	#if defined (SYSTYPE_SYSV)
  16.304 +	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
  16.305 +	#endif
  16.306 +	#if defined (SYSTYPE_SVR4)
  16.307 +	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
  16.308 +	#endif
  16.309 +	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
  16.310 +	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
  16.311 +	#endif
  16.312 +	#endif
  16.313 +	  exit (-1);
  16.314 +	}
  16.315 +EOF
  16.316 +	$CC_FOR_BUILD $dummy.c -o $dummy \
  16.317 +	  && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  16.318 +	  && rm $dummy.c $dummy && exit 0
  16.319 +	rm -f $dummy.c $dummy
  16.320 +	echo mips-mips-riscos${UNAME_RELEASE}
  16.321 +	exit 0 ;;
  16.322 +    Night_Hawk:Power_UNIX:*:*)
  16.323 +	echo powerpc-harris-powerunix
  16.324 +	exit 0 ;;
  16.325 +    m88k:CX/UX:7*:*)
  16.326 +	echo m88k-harris-cxux7
  16.327 +	exit 0 ;;
  16.328 +    m88k:*:4*:R4*)
  16.329 +	echo m88k-motorola-sysv4
  16.330 +	exit 0 ;;
  16.331 +    m88k:*:3*:R3*)
  16.332 +	echo m88k-motorola-sysv3
  16.333 +	exit 0 ;;
  16.334 +    AViiON:dgux:*:*)
  16.335 +        # DG/UX returns AViiON for all architectures
  16.336 +        UNAME_PROCESSOR=`/usr/bin/uname -p`
  16.337 +	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110]
  16.338 +	then
  16.339 +	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
  16.340 +	       [ ${TARGET_BINARY_INTERFACE}x = x ]
  16.341 +	    then
  16.342 +		echo m88k-dg-dgux${UNAME_RELEASE}
  16.343 +	    else
  16.344 +		echo m88k-dg-dguxbcs${UNAME_RELEASE}
  16.345 +	    fi
  16.346 +	else
  16.347 +	    echo i586-dg-dgux${UNAME_RELEASE}
  16.348 +	fi
  16.349 + 	exit 0 ;;
  16.350 +    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
  16.351 +	echo m88k-dolphin-sysv3
  16.352 +	exit 0 ;;
  16.353 +    M88*:*:R3*:*)
  16.354 +	# Delta 88k system running SVR3
  16.355 +	echo m88k-motorola-sysv3
  16.356 +	exit 0 ;;
  16.357 +    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  16.358 +	echo m88k-tektronix-sysv3
  16.359 +	exit 0 ;;
  16.360 +    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  16.361 +	echo m68k-tektronix-bsd
  16.362 +	exit 0 ;;
  16.363 +    *:IRIX*:*:*)
  16.364 +	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  16.365 +	exit 0 ;;
  16.366 +    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  16.367 +	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
  16.368 +	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
  16.369 +    i?86:AIX:*:*)
  16.370 +	echo i386-ibm-aix
  16.371 +	exit 0 ;;
  16.372 +    *:AIX:2:3)
  16.373 +	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  16.374 +		sed 's/^		//' << EOF >$dummy.c
  16.375 +		#include <sys/systemcfg.h>
  16.376 +
  16.377 +		main()
  16.378 +			{
  16.379 +			if (!__power_pc())
  16.380 +				exit(1);
  16.381 +			puts("powerpc-ibm-aix3.2.5");
  16.382 +			exit(0);
  16.383 +			}
  16.384 +EOF
  16.385 +		$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
  16.386 +		rm -f $dummy.c $dummy
  16.387 +		echo rs6000-ibm-aix3.2.5
  16.388 +	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  16.389 +		echo rs6000-ibm-aix3.2.4
  16.390 +	else
  16.391 +		echo rs6000-ibm-aix3.2
  16.392 +	fi
  16.393 +	exit 0 ;;
  16.394 +    *:AIX:*:4)
  16.395 +	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
  16.396 +	if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
  16.397 +		IBM_ARCH=rs6000
  16.398 +	else
  16.399 +		IBM_ARCH=powerpc
  16.400 +	fi
  16.401 +	if [ -x /usr/bin/oslevel ] ; then
  16.402 +		IBM_REV=`/usr/bin/oslevel`
  16.403 +	else
  16.404 +		IBM_REV=4.${UNAME_RELEASE}
  16.405 +	fi
  16.406 +	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  16.407 +	exit 0 ;;
  16.408 +    *:AIX:*:*)
  16.409 +	echo rs6000-ibm-aix
  16.410 +	exit 0 ;;
  16.411 +    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  16.412 +	echo romp-ibm-bsd4.4
  16.413 +	exit 0 ;;
  16.414 +    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC NetBSD and
  16.415 +	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
  16.416 +	exit 0 ;;                           # report: romp-ibm BSD 4.3
  16.417 +    *:BOSX:*:*)
  16.418 +	echo rs6000-bull-bosx
  16.419 +	exit 0 ;;
  16.420 +    DPX/2?00:B.O.S.:*:*)
  16.421 +	echo m68k-bull-sysv3
  16.422 +	exit 0 ;;
  16.423 +    9000/[34]??:4.3bsd:1.*:*)
  16.424 +	echo m68k-hp-bsd
  16.425 +	exit 0 ;;
  16.426 +    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  16.427 +	echo m68k-hp-bsd4.4
  16.428 +	exit 0 ;;
  16.429 +    9000/[34678]??:HP-UX:*:*)
  16.430 +	case "${UNAME_MACHINE}" in
  16.431 +	    9000/31? )            HP_ARCH=m68000 ;;
  16.432 +	    9000/[34]?? )         HP_ARCH=m68k ;;
  16.433 +	    9000/[678][0-9][0-9])
  16.434 +              sed 's/^              //' << EOF >$dummy.c
  16.435 +              #include <stdlib.h>
  16.436 +              #include <unistd.h>
  16.437 +
  16.438 +              int main ()
  16.439 +              {
  16.440 +              #if defined(_SC_KERNEL_BITS)
  16.441 +                  long bits = sysconf(_SC_KERNEL_BITS);
  16.442 +              #endif
  16.443 +                  long cpu  = sysconf (_SC_CPU_VERSION);
  16.444 +
  16.445 +                  switch (cpu)
  16.446 +              	{
  16.447 +              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
  16.448 +              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
  16.449 +              	case CPU_PA_RISC2_0:
  16.450 +              #if defined(_SC_KERNEL_BITS)
  16.451 +              	    switch (bits)
  16.452 +              		{
  16.453 +              		case 64: puts ("hppa2.0w"); break;
  16.454 +              		case 32: puts ("hppa2.0n"); break;
  16.455 +              		default: puts ("hppa2.0"); break;
  16.456 +              		} break;
  16.457 +              #else  /* !defined(_SC_KERNEL_BITS) */
  16.458 +              	    puts ("hppa2.0"); break;
  16.459 +              #endif
  16.460 +              	default: puts ("hppa1.0"); break;
  16.461 +              	}
  16.462 +                  exit (0);
  16.463 +              }
  16.464 +EOF
  16.465 +	(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
  16.466 +	rm -f $dummy.c $dummy
  16.467 +	esac
  16.468 +	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  16.469 +	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  16.470 +	exit 0 ;;
  16.471 +    3050*:HI-UX:*:*)
  16.472 +	sed 's/^	//' << EOF >$dummy.c
  16.473 +	#include <unistd.h>
  16.474 +	int
  16.475 +	main ()
  16.476 +	{
  16.477 +	  long cpu = sysconf (_SC_CPU_VERSION);
  16.478 +	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
  16.479 +	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
  16.480 +	     results, however.  */
  16.481 +	  if (CPU_IS_PA_RISC (cpu))
  16.482 +	    {
  16.483 +	      switch (cpu)
  16.484 +		{
  16.485 +		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
  16.486 +		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
  16.487 +		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
  16.488 +		  default: puts ("hppa-hitachi-hiuxwe2"); break;
  16.489 +		}
  16.490 +	    }
  16.491 +	  else if (CPU_IS_HP_MC68K (cpu))
  16.492 +	    puts ("m68k-hitachi-hiuxwe2");
  16.493 +	  else puts ("unknown-hitachi-hiuxwe2");
  16.494 +	  exit (0);
  16.495 +	}
  16.496 +EOF
  16.497 +	$CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
  16.498 +	rm -f $dummy.c $dummy
  16.499 +	echo unknown-hitachi-hiuxwe2
  16.500 +	exit 0 ;;
  16.501 +    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  16.502 +	echo hppa1.1-hp-bsd
  16.503 +	exit 0 ;;
  16.504 +    9000/8??:4.3bsd:*:*)
  16.505 +	echo hppa1.0-hp-bsd
  16.506 +	exit 0 ;;
  16.507 +    *9??*:MPE/iX:*:*)
  16.508 +	echo hppa1.0-hp-mpeix
  16.509 +	exit 0 ;;
  16.510 +    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  16.511 +	echo hppa1.1-hp-osf
  16.512 +	exit 0 ;;
  16.513 +    hp8??:OSF1:*:*)
  16.514 +	echo hppa1.0-hp-osf
  16.515 +	exit 0 ;;
  16.516 +    i?86:OSF1:*:*)
  16.517 +	if [ -x /usr/sbin/sysversion ] ; then
  16.518 +	    echo ${UNAME_MACHINE}-unknown-osf1mk
  16.519 +	else
  16.520 +	    echo ${UNAME_MACHINE}-unknown-osf1
  16.521 +	fi
  16.522 +	exit 0 ;;
  16.523 +    parisc*:Lites*:*:*)
  16.524 +	echo hppa1.1-hp-lites
  16.525 +	exit 0 ;;
  16.526 +    hppa*:OpenBSD:*:*)
  16.527 +	echo hppa-unknown-openbsd
  16.528 +	exit 0 ;;
  16.529 +    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  16.530 +	echo c1-convex-bsd
  16.531 +        exit 0 ;;
  16.532 +    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  16.533 +	if getsysinfo -f scalar_acc
  16.534 +	then echo c32-convex-bsd
  16.535 +	else echo c2-convex-bsd
  16.536 +	fi
  16.537 +        exit 0 ;;
  16.538 +    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  16.539 +	echo c34-convex-bsd
  16.540 +        exit 0 ;;
  16.541 +    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  16.542 +	echo c38-convex-bsd
  16.543 +        exit 0 ;;
  16.544 +    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  16.545 +	echo c4-convex-bsd
  16.546 +        exit 0 ;;
  16.547 +    CRAY*X-MP:*:*:*)
  16.548 +	echo xmp-cray-unicos
  16.549 +        exit 0 ;;
  16.550 +    CRAY*Y-MP:*:*:*)
  16.551 +	echo ymp-cray-unicos${UNAME_RELEASE}
  16.552 +	exit 0 ;;
  16.553 +    CRAY*[A-Z]90:*:*:*)
  16.554 +	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  16.555 +	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  16.556 +	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
  16.557 +	exit 0 ;;
  16.558 +    CRAY*TS:*:*:*)
  16.559 +	echo t90-cray-unicos${UNAME_RELEASE}
  16.560 +	exit 0 ;;
  16.561 +    CRAY*T3E:*:*:*)
  16.562 +	echo alpha-cray-unicosmk${UNAME_RELEASE}
  16.563 +	exit 0 ;;
  16.564 +    CRAY-2:*:*:*)
  16.565 +	echo cray2-cray-unicos
  16.566 +        exit 0 ;;
  16.567 +    F300:UNIX_System_V:*:*)
  16.568 +        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  16.569 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  16.570 +        echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  16.571 +        exit 0 ;;
  16.572 +    F301:UNIX_System_V:*:*)
  16.573 +       echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
  16.574 +       exit 0 ;;
  16.575 +    hp3[0-9][05]:NetBSD:*:*)
  16.576 +	echo m68k-hp-netbsd${UNAME_RELEASE}
  16.577 +	exit 0 ;;
  16.578 +    hp300:OpenBSD:*:*)
  16.579 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
  16.580 +	exit 0 ;;
  16.581 +    i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
  16.582 +	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  16.583 +	exit 0 ;;
  16.584 +    sparc*:BSD/OS:*:*)
  16.585 +	echo sparc-unknown-bsdi${UNAME_RELEASE}
  16.586 +	exit 0 ;;
  16.587 +    *:BSD/OS:*:*)
  16.588 +	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  16.589 +	exit 0 ;;
  16.590 +    *:FreeBSD:*:*)
  16.591 +	if test -x /usr/bin/objformat; then
  16.592 +	    if test "elf" = "`/usr/bin/objformat`"; then
  16.593 +		echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
  16.594 +		exit 0
  16.595 +	    fi
  16.596 +	fi
  16.597 +	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  16.598 +	exit 0 ;;
  16.599 +    *:NetBSD:*:*)
  16.600 +	echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
  16.601 +	exit 0 ;;
  16.602 +    *:OpenBSD:*:*)
  16.603 +	echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
  16.604 +	exit 0 ;;
  16.605 +    i*:CYGWIN*:*)
  16.606 +	echo ${UNAME_MACHINE}-pc-cygwin
  16.607 +	exit 0 ;;
  16.608 +    i*:MINGW*:*)
  16.609 +	echo ${UNAME_MACHINE}-pc-mingw32
  16.610 +	exit 0 ;;
  16.611 +    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  16.612 +	# How do we know it's Interix rather than the generic POSIX subsystem?
  16.613 +	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  16.614 +	# UNAME_MACHINE based on the output of uname instead of i386?
  16.615 +	echo i386-pc-interix
  16.616 +	exit 0 ;;
  16.617 +    i*:UWIN*:*)
  16.618 +	echo ${UNAME_MACHINE}-pc-uwin
  16.619 +	exit 0 ;;
  16.620 +    p*:CYGWIN*:*)
  16.621 +	echo powerpcle-unknown-cygwin
  16.622 +	exit 0 ;;
  16.623 +    prep*:SunOS:5.*:*)
  16.624 +	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  16.625 +	exit 0 ;;
  16.626 +    *:GNU:*:*)
  16.627 +	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  16.628 +	exit 0 ;;
  16.629 +    *:Linux:*:*)
  16.630 +
  16.631 +	# The BFD linker knows what the default object file format is, so
  16.632 +	# first see if it will tell us. cd to the root directory to prevent
  16.633 +	# problems with other programs or directories called `ld' in the path.
  16.634 +	ld_help_string=`cd /; ld --help 2>&1`
  16.635 +	ld_supported_emulations=`echo $ld_help_string \
  16.636 +			 | sed -ne '/supported emulations:/!d
  16.637 +				    s/[ 	][ 	]*/ /g
  16.638 +				    s/.*supported emulations: *//
  16.639 +				    s/ .*//
  16.640 +				    p'`
  16.641 +        case "$ld_supported_emulations" in
  16.642 +	  *ia64)
  16.643 +		echo "${UNAME_MACHINE}-unknown-linux"
  16.644 +		exit 0
  16.645 +		;;
  16.646 +	  i?86linux)
  16.647 +		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  16.648 +		exit 0
  16.649 +		;;
  16.650 +	  i?86coff)
  16.651 +		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  16.652 +		exit 0
  16.653 +		;;
  16.654 +	  sparclinux)
  16.655 +		echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
  16.656 +		exit 0
  16.657 +		;;
  16.658 +	  armlinux)
  16.659 +		echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
  16.660 +		exit 0
  16.661 +		;;
  16.662 +	  elf32arm*)
  16.663 +		echo "${UNAME_MACHINE}-unknown-linux-gnu"
  16.664 +		exit 0
  16.665 +		;;
  16.666 +	  armelf_linux*)
  16.667 +		echo "${UNAME_MACHINE}-unknown-linux-gnu"
  16.668 +		exit 0
  16.669 +		;;
  16.670 +	  m68klinux)
  16.671 +		echo "${UNAME_MACHINE}-unknown-linux-gnuaout"
  16.672 +		exit 0
  16.673 +		;;
  16.674 +	  elf32ppc)
  16.675 +		# Determine Lib Version
  16.676 +		cat >$dummy.c <<EOF
  16.677 +#include <features.h>
  16.678 +#if defined(__GLIBC__)
  16.679 +extern char __libc_version[];
  16.680 +extern char __libc_release[];
  16.681 +#endif
  16.682 +main(argc, argv)
  16.683 +     int argc;
  16.684 +     char *argv[];
  16.685 +{
  16.686 +#if defined(__GLIBC__)
  16.687 +  printf("%s %s\n", __libc_version, __libc_release);
  16.688 +#else
  16.689 +  printf("unkown\n");
  16.690 +#endif
  16.691 +  return 0;
  16.692 +}
  16.693 +EOF
  16.694 +		LIBC=""
  16.695 +		$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
  16.696 +		if test "$?" = 0 ; then
  16.697 +			./$dummy | grep 1\.99 > /dev/null
  16.698 +			if test "$?" = 0 ; then
  16.699 +				LIBC="libc1"
  16.700 +			fi
  16.701 +		fi	
  16.702 +		rm -f $dummy.c $dummy
  16.703 +		echo powerpc-unknown-linux-gnu${LIBC}
  16.704 +		exit 0
  16.705 +		;;
  16.706 +	esac
  16.707 +
  16.708 +	if test "${UNAME_MACHINE}" = "alpha" ; then
  16.709 +		sed 's/^	//'  <<EOF >$dummy.s
  16.710 +		.globl main
  16.711 +		.ent main
  16.712 +	main:
  16.713 +		.frame \$30,0,\$26,0
  16.714 +		.prologue 0
  16.715 +		.long 0x47e03d80 # implver $0
  16.716 +		lda \$2,259
  16.717 +		.long 0x47e20c21 # amask $2,$1
  16.718 +		srl \$1,8,\$2
  16.719 +		sll \$2,2,\$2
  16.720 +		sll \$0,3,\$0
  16.721 +		addl \$1,\$0,\$0
  16.722 +		addl \$2,\$0,\$0
  16.723 +		ret \$31,(\$26),1
  16.724 +		.end main
  16.725 +EOF
  16.726 +		LIBC=""
  16.727 +		$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
  16.728 +		if test "$?" = 0 ; then
  16.729 +			./$dummy
  16.730 +			case "$?" in
  16.731 +			7)
  16.732 +				UNAME_MACHINE="alpha"
  16.733 +				;;
  16.734 +			15)
  16.735 +				UNAME_MACHINE="alphaev5"
  16.736 +				;;
  16.737 +			14)
  16.738 +				UNAME_MACHINE="alphaev56"
  16.739 +				;;
  16.740 +			10)
  16.741 +				UNAME_MACHINE="alphapca56"
  16.742 +				;;
  16.743 +			16)
  16.744 +				UNAME_MACHINE="alphaev6"
  16.745 +				;;
  16.746 +			esac
  16.747 +
  16.748 +			objdump --private-headers $dummy | \
  16.749 +			  grep ld.so.1 > /dev/null
  16.750 +			if test "$?" = 0 ; then
  16.751 +				LIBC="libc1"
  16.752 +			fi
  16.753 +		fi
  16.754 +		rm -f $dummy.s $dummy
  16.755 +		echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
  16.756 +	elif test "${UNAME_MACHINE}" = "mips" ; then
  16.757 +	  cat >$dummy.c <<EOF
  16.758 +#ifdef __cplusplus
  16.759 +	int main (int argc, char *argv[]) {
  16.760 +#else
  16.761 +	int main (argc, argv) int argc; char *argv[]; {
  16.762 +#endif
  16.763 +#ifdef __MIPSEB__
  16.764 +  printf ("%s-unknown-linux-gnu\n", argv[1]);
  16.765 +#endif
  16.766 +#ifdef __MIPSEL__
  16.767 +  printf ("%sel-unknown-linux-gnu\n", argv[1]);
  16.768 +#endif
  16.769 +  return 0;
  16.770 +}
  16.771 +EOF
  16.772 +	  $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
  16.773 +	  rm -f $dummy.c $dummy
  16.774 +	else
  16.775 +	  # Either a pre-BFD a.out linker (linux-gnuoldld)
  16.776 +	  # or one that does not give us useful --help.
  16.777 +	  # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
  16.778 +	  # If ld does not provide *any* "supported emulations:"
  16.779 +	  # that means it is gnuoldld.
  16.780 +	  echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
  16.781 +	  test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
  16.782 +
  16.783 +	  case "${UNAME_MACHINE}" in
  16.784 +	  i?86)
  16.785 +	    VENDOR=pc;
  16.786 +	    ;;
  16.787 +	  *)
  16.788 +	    VENDOR=unknown;
  16.789 +	    ;;
  16.790 +	  esac
  16.791 +	  # Determine whether the default compiler is a.out or elf
  16.792 +	  cat >$dummy.c <<EOF
  16.793 +#include <features.h>
  16.794 +#ifdef __cplusplus
  16.795 +	int main (int argc, char *argv[]) {
  16.796 +#else
  16.797 +	int main (argc, argv) int argc; char *argv[]; {
  16.798 +#endif
  16.799 +#ifdef __ELF__
  16.800 +# ifdef __GLIBC__
  16.801 +#  if __GLIBC__ >= 2
  16.802 +    printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
  16.803 +#  else
  16.804 +    printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  16.805 +#  endif
  16.806 +# else
  16.807 +   printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
  16.808 +# endif
  16.809 +#else
  16.810 +  printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
  16.811 +#endif
  16.812 +  return 0;
  16.813 +}
  16.814 +EOF
  16.815 +	  $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
  16.816 +	  rm -f $dummy.c $dummy
  16.817 +	fi ;;
  16.818 +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
  16.819 +# are messed up and put the nodename in both sysname and nodename.
  16.820 +    i?86:DYNIX/ptx:4*:*)
  16.821 +	echo i386-sequent-sysv4
  16.822 +	exit 0 ;;
  16.823 +    i?86:UNIX_SV:4.2MP:2.*)
  16.824 +        # Unixware is an offshoot of SVR4, but it has its own version
  16.825 +        # number series starting with 2...
  16.826 +        # I am not positive that other SVR4 systems won't match this,
  16.827 +	# I just have to hope.  -- rms.
  16.828 +        # Use sysv4.2uw... so that sysv4* matches it.
  16.829 +	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  16.830 +	exit 0 ;;
  16.831 +    i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
  16.832 +	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  16.833 +	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  16.834 +		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
  16.835 +	else
  16.836 +		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  16.837 +	fi
  16.838 +	exit 0 ;;
  16.839 +    i?86:*:5:7*)
  16.840 +        # Fixed at (any) Pentium or better
  16.841 +        UNAME_MACHINE=i586
  16.842 +        if [ ${UNAME_SYSTEM} = "UnixWare" ] ; then
  16.843 +	    echo ${UNAME_MACHINE}-sco-sysv${UNAME_RELEASE}uw${UNAME_VERSION}
  16.844 +	else
  16.845 +	    echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
  16.846 +	fi
  16.847 +	exit 0 ;;
  16.848 +    i?86:*:3.2:*)
  16.849 +	if test -f /usr/options/cb.name; then
  16.850 +		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  16.851 +		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
  16.852 +	elif /bin/uname -X 2>/dev/null >/dev/null ; then
  16.853 +		UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
  16.854 +		(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
  16.855 +		(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
  16.856 +			&& UNAME_MACHINE=i586
  16.857 +		(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
  16.858 +			&& UNAME_MACHINE=i686
  16.859 +		(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
  16.860 +			&& UNAME_MACHINE=i686
  16.861 +		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
  16.862 +	else
  16.863 +		echo ${UNAME_MACHINE}-pc-sysv32
  16.864 +	fi
  16.865 +	exit 0 ;;
  16.866 +    pc:*:*:*)
  16.867 +        # uname -m prints for DJGPP always 'pc', but it prints nothing about
  16.868 +        # the processor, so we play safe by assuming i386.
  16.869 +	echo i386-pc-msdosdjgpp
  16.870 +        exit 0 ;;
  16.871 +    Intel:Mach:3*:*)
  16.872 +	echo i386-pc-mach3
  16.873 +	exit 0 ;;
  16.874 +    paragon:*:*:*)
  16.875 +	echo i860-intel-osf1
  16.876 +	exit 0 ;;
  16.877 +    i860:*:4.*:*) # i860-SVR4
  16.878 +	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  16.879 +	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  16.880 +	else # Add other i860-SVR4 vendors below as they are discovered.
  16.881 +	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
  16.882 +	fi
  16.883 +	exit 0 ;;
  16.884 +    mini*:CTIX:SYS*5:*)
  16.885 +	# "miniframe"
  16.886 +	echo m68010-convergent-sysv
  16.887 +	exit 0 ;;
  16.888 +    M68*:*:R3V[567]*:*)
  16.889 +	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  16.890 +    3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
  16.891 +	OS_REL=''
  16.892 +	test -r /etc/.relid \
  16.893 +	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  16.894 +	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  16.895 +	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  16.896 +	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  16.897 +	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  16.898 +    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  16.899 +        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  16.900 +          && echo i486-ncr-sysv4 && exit 0 ;;
  16.901 +    m68*:LynxOS:2.*:*)
  16.902 +	echo m68k-unknown-lynxos${UNAME_RELEASE}
  16.903 +	exit 0 ;;
  16.904 +    mc68030:UNIX_System_V:4.*:*)
  16.905 +	echo m68k-atari-sysv4
  16.906 +	exit 0 ;;
  16.907 +    i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
  16.908 +	echo i386-unknown-lynxos${UNAME_RELEASE}
  16.909 +	exit 0 ;;
  16.910 +    TSUNAMI:LynxOS:2.*:*)
  16.911 +	echo sparc-unknown-lynxos${UNAME_RELEASE}
  16.912 +	exit 0 ;;
  16.913 +    rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
  16.914 +	echo rs6000-unknown-lynxos${UNAME_RELEASE}
  16.915 +	exit 0 ;;
  16.916 +    SM[BE]S:UNIX_SV:*:*)
  16.917 +	echo mips-dde-sysv${UNAME_RELEASE}
  16.918 +	exit 0 ;;
  16.919 +    RM*:ReliantUNIX-*:*:*)
  16.920 +	echo mips-sni-sysv4
  16.921 +	exit 0 ;;
  16.922 +    RM*:SINIX-*:*:*)
  16.923 +	echo mips-sni-sysv4
  16.924 +	exit 0 ;;
  16.925 +    *:SINIX-*:*:*)
  16.926 +	if uname -p 2>/dev/null >/dev/null ; then
  16.927 +		UNAME_MACHINE=`(uname -p) 2>/dev/null`
  16.928 +		echo ${UNAME_MACHINE}-sni-sysv4
  16.929 +	else
  16.930 +		echo ns32k-sni-sysv
  16.931 +	fi
  16.932 +	exit 0 ;;
  16.933 +    PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  16.934 +                           # says <Richard.M.Bartel@ccMail.Census.GOV>
  16.935 +        echo i586-unisys-sysv4
  16.936 +        exit 0 ;;
  16.937 +    *:UNIX_System_V:4*:FTX*)
  16.938 +	# From Gerald Hewes <hewes@openmarket.com>.
  16.939 +	# How about differentiating between stratus architectures? -djm
  16.940 +	echo hppa1.1-stratus-sysv4
  16.941 +	exit 0 ;;
  16.942 +    *:*:*:FTX*)
  16.943 +	# From seanf@swdc.stratus.com.
  16.944 +	echo i860-stratus-sysv4
  16.945 +	exit 0 ;;
  16.946 +    mc68*:A/UX:*:*)
  16.947 +	echo m68k-apple-aux${UNAME_RELEASE}
  16.948 +	exit 0 ;;
  16.949 +    news*:NEWS-OS:*:6*)
  16.950 +	echo mips-sony-newsos6
  16.951 +	exit 0 ;;
  16.952 +    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  16.953 +	if [ -d /usr/nec ]; then
  16.954 +	        echo mips-nec-sysv${UNAME_RELEASE}
  16.955 +	else
  16.956 +	        echo mips-unknown-sysv${UNAME_RELEASE}
  16.957 +	fi
  16.958 +        exit 0 ;;
  16.959 +    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
  16.960 +	echo powerpc-be-beos
  16.961 +	exit 0 ;;
  16.962 +    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
  16.963 +	echo powerpc-apple-beos
  16.964 +	exit 0 ;;
  16.965 +    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
  16.966 +	echo i586-pc-beos
  16.967 +	exit 0 ;;
  16.968 +    SX-4:SUPER-UX:*:*)
  16.969 +	echo sx4-nec-superux${UNAME_RELEASE}
  16.970 +	exit 0 ;;
  16.971 +    SX-5:SUPER-UX:*:*)
  16.972 +	echo sx5-nec-superux${UNAME_RELEASE}
  16.973 +	exit 0 ;;
  16.974 +    Power*:Rhapsody:*:*)
  16.975 +	echo powerpc-apple-rhapsody${UNAME_RELEASE}
  16.976 +	exit 0 ;;
  16.977 +    *:Rhapsody:*:*)
  16.978 +	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  16.979 +	exit 0 ;;
  16.980 +    *:QNX:*:4*)
  16.981 +	echo i386-qnx-qnx${UNAME_VERSION}
  16.982 +	exit 0 ;;
  16.983 +esac
  16.984 +
  16.985 +#echo '(No uname command or uname output not recognized.)' 1>&2
  16.986 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
  16.987 +
  16.988 +cat >$dummy.c <<EOF
  16.989 +#ifdef _SEQUENT_
  16.990 +# include <sys/types.h>
  16.991 +# include <sys/utsname.h>
  16.992 +#endif
  16.993 +main ()
  16.994 +{
  16.995 +#if defined (sony)
  16.996 +#if defined (MIPSEB)
  16.997 +  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
  16.998 +     I don't know....  */
  16.999 +  printf ("mips-sony-bsd\n"); exit (0);
 16.1000 +#else
 16.1001 +#include <sys/param.h>
 16.1002 +  printf ("m68k-sony-newsos%s\n",
 16.1003 +#ifdef NEWSOS4
 16.1004 +          "4"
 16.1005 +#else
 16.1006 +	  ""
 16.1007 +#endif
 16.1008 +         ); exit (0);
 16.1009 +#endif
 16.1010 +#endif
 16.1011 +
 16.1012 +#if defined (__arm) && defined (__acorn) && defined (__unix)
 16.1013 +  printf ("arm-acorn-riscix"); exit (0);
 16.1014 +#endif
 16.1015 +
 16.1016 +#if defined (hp300) && !defined (hpux)
 16.1017 +  printf ("m68k-hp-bsd\n"); exit (0);
 16.1018 +#endif
 16.1019 +
 16.1020 +#if defined (NeXT)
 16.1021 +#if !defined (__ARCHITECTURE__)
 16.1022 +#define __ARCHITECTURE__ "m68k"
 16.1023 +#endif
 16.1024 +  int version;
 16.1025 +  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
 16.1026 +  if (version < 4)
 16.1027 +    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
 16.1028 +  else
 16.1029 +    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
 16.1030 +  exit (0);
 16.1031 +#endif
 16.1032 +
 16.1033 +#if defined (MULTIMAX) || defined (n16)
 16.1034 +#if defined (UMAXV)
 16.1035 +  printf ("ns32k-encore-sysv\n"); exit (0);
 16.1036 +#else
 16.1037 +#if defined (CMU)
 16.1038 +  printf ("ns32k-encore-mach\n"); exit (0);
 16.1039 +#else
 16.1040 +  printf ("ns32k-encore-bsd\n"); exit (0);
 16.1041 +#endif
 16.1042 +#endif
 16.1043 +#endif
 16.1044 +
 16.1045 +#if defined (__386BSD__)
 16.1046 +  printf ("i386-pc-bsd\n"); exit (0);
 16.1047 +#endif
 16.1048 +
 16.1049 +#if defined (sequent)
 16.1050 +#if defined (i386)
 16.1051 +  printf ("i386-sequent-dynix\n"); exit (0);
 16.1052 +#endif
 16.1053 +#if defined (ns32000)
 16.1054 +  printf ("ns32k-sequent-dynix\n"); exit (0);
 16.1055 +#endif
 16.1056 +#endif
 16.1057 +
 16.1058 +#if defined (_SEQUENT_)
 16.1059 +    struct utsname un;
 16.1060 +
 16.1061 +    uname(&un);
 16.1062 +
 16.1063 +    if (strncmp(un.version, "V2", 2) == 0) {
 16.1064 +	printf ("i386-sequent-ptx2\n"); exit (0);
 16.1065 +    }
 16.1066 +    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
 16.1067 +	printf ("i386-sequent-ptx1\n"); exit (0);
 16.1068 +    }
 16.1069 +    printf ("i386-sequent-ptx\n"); exit (0);
 16.1070 +
 16.1071 +#endif
 16.1072 +
 16.1073 +#if defined (vax)
 16.1074 +#if !defined (ultrix)
 16.1075 +  printf ("vax-dec-bsd\n"); exit (0);
 16.1076 +#else
 16.1077 +  printf ("vax-dec-ultrix\n"); exit (0);
 16.1078 +#endif
 16.1079 +#endif
 16.1080 +
 16.1081 +#if defined (alliant) && defined (i860)
 16.1082 +  printf ("i860-alliant-bsd\n"); exit (0);
 16.1083 +#endif
 16.1084 +
 16.1085 +  exit (1);
 16.1086 +}
 16.1087 +EOF
 16.1088 +
 16.1089 +$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
 16.1090 +rm -f $dummy.c $dummy
 16.1091 +
 16.1092 +# Apollos put the system type in the environment.
 16.1093 +
 16.1094 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
 16.1095 +
 16.1096 +# Convex versions that predate uname can use getsysinfo(1)
 16.1097 +
 16.1098 +if [ -x /usr/convex/getsysinfo ]
 16.1099 +then
 16.1100 +    case `getsysinfo -f cpu_type` in
 16.1101 +    c1*)
 16.1102 +	echo c1-convex-bsd
 16.1103 +	exit 0 ;;
 16.1104 +    c2*)
 16.1105 +	if getsysinfo -f scalar_acc
 16.1106 +	then echo c32-convex-bsd
 16.1107 +	else echo c2-convex-bsd
 16.1108 +	fi
 16.1109 +	exit 0 ;;
 16.1110 +    c34*)
 16.1111 +	echo c34-convex-bsd
 16.1112 +	exit 0 ;;
 16.1113 +    c38*)
 16.1114 +	echo c38-convex-bsd
 16.1115 +	exit 0 ;;
 16.1116 +    c4*)
 16.1117 +	echo c4-convex-bsd
 16.1118 +	exit 0 ;;
 16.1119 +    esac
 16.1120 +fi
 16.1121 +
 16.1122 +#echo '(Unable to guess system type)' 1>&2
 16.1123 +
 16.1124 +exit 1
    17.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    17.2 +++ b/config.h.in	Mon Jan 24 14:34:29 2000 +0000
    17.3 @@ -0,0 +1,31 @@
    17.4 +/* config.h.in.  Generated automatically from configure.in by autoheader.  */
    17.5 +
    17.6 +/* Define if you have the `dnet' library (-ldnet). */
    17.7 +#undef HAVE_LIBDNET
    17.8 +
    17.9 +/* Define if you have the `dnet_stub' library (-ldnet_stub). */
   17.10 +#undef HAVE_LIBDNET_STUB
   17.11 +
   17.12 +/* Define if you have the `ICE' library (-lICE). */
   17.13 +#undef HAVE_LIBICE
   17.14 +
   17.15 +/* Define if you have the `ipc' library (-lipc). */
   17.16 +#undef HAVE_LIBIPC
   17.17 +
   17.18 +/* Define if you have the `nsl' library (-lnsl). */
   17.19 +#undef HAVE_LIBNSL
   17.20 +
   17.21 +/* Define if you have the `posix' library (-lposix). */
   17.22 +#undef HAVE_LIBPOSIX
   17.23 +
   17.24 +/* Define if you have the `socket' library (-lsocket). */
   17.25 +#undef HAVE_LIBSOCKET
   17.26 +
   17.27 +/* Name of package */
   17.28 +#undef PACKAGE
   17.29 +
   17.30 +/* Version number of package */
   17.31 +#undef VERSION
   17.32 +
   17.33 +/* Define if the X Window System is missing or not being used. */
   17.34 +#undef X_DISPLAY_MISSING
    18.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    18.2 +++ b/config.sub	Mon Jan 24 14:34:29 2000 +0000
    18.3 @@ -0,0 +1,1232 @@
    18.4 +#! /bin/sh
    18.5 +# Configuration validation subroutine script, version 1.1.
    18.6 +#   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
    18.7 +# This file is (in principle) common to ALL GNU software.
    18.8 +# The presence of a machine in this file suggests that SOME GNU software
    18.9 +# can handle that machine.  It does not imply ALL GNU software can.
   18.10 +#
   18.11 +# This file is free software; you can redistribute it and/or modify
   18.12 +# it under the terms of the GNU General Public License as published by
   18.13 +# the Free Software Foundation; either version 2 of the License, or
   18.14 +# (at your option) any later version.
   18.15 +#
   18.16 +# This program is distributed in the hope that it will be useful,
   18.17 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   18.18 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   18.19 +# GNU General Public License for more details.
   18.20 +#
   18.21 +# You should have received a copy of the GNU General Public License
   18.22 +# along with this program; if not, write to the Free Software
   18.23 +# Foundation, Inc., 59 Temple Place - Suite 330,
   18.24 +# Boston, MA 02111-1307, USA.
   18.25 +
   18.26 +# As a special exception to the GNU General Public License, if you
   18.27 +# distribute this file as part of a program that contains a
   18.28 +# configuration script generated by Autoconf, you may include it under
   18.29 +# the same distribution terms that you use for the rest of that program.
   18.30 +
   18.31 +# Configuration subroutine to validate and canonicalize a configuration type.
   18.32 +# Supply the specified configuration type as an argument.
   18.33 +# If it is invalid, we print an error message on stderr and exit with code 1.
   18.34 +# Otherwise, we print the canonical config type on stdout and succeed.
   18.35 +
   18.36 +# This file is supposed to be the same for all GNU packages
   18.37 +# and recognize all the CPU types, system types and aliases
   18.38 +# that are meaningful with *any* GNU software.
   18.39 +# Each package is responsible for reporting which valid configurations
   18.40 +# it does not support.  The user should be able to distinguish
   18.41 +# a failure to support a valid configuration from a meaningless
   18.42 +# configuration.
   18.43 +
   18.44 +# The goal of this file is to map all the various variations of a given
   18.45 +# machine specification into a single specification in the form:
   18.46 +#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
   18.47 +# or in some cases, the newer four-part form:
   18.48 +#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
   18.49 +# It is wrong to echo any other type of specification.
   18.50 +
   18.51 +if [ x$1 = x ]
   18.52 +then
   18.53 +	echo Configuration name missing. 1>&2
   18.54 +	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
   18.55 +	echo "or     $0 ALIAS" 1>&2
   18.56 +	echo where ALIAS is a recognized configuration type. 1>&2
   18.57 +	exit 1
   18.58 +fi
   18.59 +
   18.60 +# First pass through any local machine types.
   18.61 +case $1 in
   18.62 +	*local*)
   18.63 +		echo $1
   18.64 +		exit 0
   18.65 +		;;
   18.66 +	*)
   18.67 +	;;
   18.68 +esac
   18.69 +
   18.70 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
   18.71 +# Here we must recognize all the valid KERNEL-OS combinations.
   18.72 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
   18.73 +case $maybe_os in
   18.74 +  linux-gnu*)
   18.75 +    os=-$maybe_os
   18.76 +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
   18.77 +    ;;
   18.78 +  *)
   18.79 +    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
   18.80 +    if [ $basic_machine != $1 ]
   18.81 +    then os=`echo $1 | sed 's/.*-/-/'`
   18.82 +    else os=; fi
   18.83 +    ;;
   18.84 +esac
   18.85 +
   18.86 +### Let's recognize common machines as not being operating systems so
   18.87 +### that things like config.sub decstation-3100 work.  We also
   18.88 +### recognize some manufacturers as not being operating systems, so we
   18.89 +### can provide default operating systems below.
   18.90 +case $os in
   18.91 +	-sun*os*)
   18.92 +		# Prevent following clause from handling this invalid input.
   18.93 +		;;
   18.94 +	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
   18.95 +	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
   18.96 +	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
   18.97 +	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
   18.98 +	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
   18.99 +	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  18.100 +	-apple)
  18.101 +		os=
  18.102 +		basic_machine=$1
  18.103 +		;;
  18.104 +	-sim | -cisco | -oki | -wec | -winbond)
  18.105 +		os=
  18.106 +		basic_machine=$1
  18.107 +		;;
  18.108 +	-scout)
  18.109 +		;;
  18.110 +	-wrs)
  18.111 +		os=-vxworks
  18.112 +		basic_machine=$1
  18.113 +		;;
  18.114 +	-hiux*)
  18.115 +		os=-hiuxwe2
  18.116 +		;;
  18.117 +	-sco5)
  18.118 +		os=-sco3.2v5
  18.119 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.120 +		;;
  18.121 +	-sco4)
  18.122 +		os=-sco3.2v4
  18.123 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.124 +		;;
  18.125 +	-sco3.2.[4-9]*)
  18.126 +		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
  18.127 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.128 +		;;
  18.129 +	-sco3.2v[4-9]*)
  18.130 +		# Don't forget version if it is 3.2v4 or newer.
  18.131 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.132 +		;;
  18.133 +	-sco*)
  18.134 +		os=-sco3.2v2
  18.135 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.136 +		;;
  18.137 +	-udk*)
  18.138 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.139 +		;;
  18.140 +	-isc)
  18.141 +		os=-isc2.2
  18.142 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.143 +		;;
  18.144 +	-clix*)
  18.145 +		basic_machine=clipper-intergraph
  18.146 +		;;
  18.147 +	-isc*)
  18.148 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  18.149 +		;;
  18.150 +	-lynx*)
  18.151 +		os=-lynxos
  18.152 +		;;
  18.153 +	-ptx*)
  18.154 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
  18.155 +		;;
  18.156 +	-windowsnt*)
  18.157 +		os=`echo $os | sed -e 's/windowsnt/winnt/'`
  18.158 +		;;
  18.159 +	-psos*)
  18.160 +		os=-psos
  18.161 +		;;
  18.162 +	-mint | -mint[0-9]*)
  18.163 +		basic_machine=m68k-atari
  18.164 +		os=-mint
  18.165 +		;;
  18.166 +esac
  18.167 +
  18.168 +# Decode aliases for certain CPU-COMPANY combinations.
  18.169 +case $basic_machine in
  18.170 +	# Recognize the basic CPU types without company name.
  18.171 +	# Some are omitted here because they have special meanings below.
  18.172 +	tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
  18.173 +		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
  18.174 +		| 580 | i960 | h8300 \
  18.175 +		| hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
  18.176 +		| alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
  18.177 +		| we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
  18.178 +		| 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
  18.179 +		| mips64orion | mips64orionel | mipstx39 | mipstx39el \
  18.180 +		| mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
  18.181 +		| mips64vr5000 | miprs64vr5000el | mcore \
  18.182 +		| sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
  18.183 +		| thumb | d10v | fr30)
  18.184 +		basic_machine=$basic_machine-unknown
  18.185 +		;;
  18.186 +	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
  18.187 +		;;
  18.188 +
  18.189 +	# We use `pc' rather than `unknown'
  18.190 +	# because (1) that's what they normally are, and
  18.191 +	# (2) the word "unknown" tends to confuse beginning users.
  18.192 +	i[34567]86)
  18.193 +	  basic_machine=$basic_machine-pc
  18.194 +	  ;;
  18.195 +	# Object if more than one company name word.
  18.196 +	*-*-*)
  18.197 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  18.198 +		exit 1
  18.199 +		;;
  18.200 +	# Recognize the basic CPU types with company name.
  18.201 +	# FIXME: clean up the formatting here.
  18.202 +	vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
  18.203 +	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
  18.204 +	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
  18.205 +	      | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
  18.206 +	      | xmp-* | ymp-* \
  18.207 +	      | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
  18.208 +	      | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
  18.209 +	      | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
  18.210 +	      | clipper-* | orion-* \
  18.211 +	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
  18.212 +	      | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
  18.213 +	      | mips64el-* | mips64orion-* | mips64orionel-* \
  18.214 +	      | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
  18.215 +	      | mipstx39-* | mipstx39el-* | mcore-* \
  18.216 +	      | f301-* | armv*-* | t3e-* \
  18.217 +	      | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
  18.218 +	      | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
  18.219 +		;;
  18.220 +	# Recognize the various machine names and aliases which stand
  18.221 +	# for a CPU type and a company and sometimes even an OS.
  18.222 +	386bsd)
  18.223 +		basic_machine=i386-unknown
  18.224 +		os=-bsd
  18.225 +		;;
  18.226 +	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
  18.227 +		basic_machine=m68000-att
  18.228 +		;;
  18.229 +	3b*)
  18.230 +		basic_machine=we32k-att
  18.231 +		;;
  18.232 +	a29khif)
  18.233 +		basic_machine=a29k-amd
  18.234 +		os=-udi
  18.235 +		;;
  18.236 +	adobe68k)
  18.237 +		basic_machine=m68010-adobe
  18.238 +		os=-scout
  18.239 +		;;
  18.240 +	alliant | fx80)
  18.241 +		basic_machine=fx80-alliant
  18.242 +		;;
  18.243 +	altos | altos3068)
  18.244 +		basic_machine=m68k-altos
  18.245 +		;;
  18.246 +	am29k)
  18.247 +		basic_machine=a29k-none
  18.248 +		os=-bsd
  18.249 +		;;
  18.250 +	amdahl)
  18.251 +		basic_machine=580-amdahl
  18.252 +		os=-sysv
  18.253 +		;;
  18.254 +	amiga | amiga-*)
  18.255 +		basic_machine=m68k-cbm
  18.256 +		;;
  18.257 +	amigaos | amigados)
  18.258 +		basic_machine=m68k-cbm
  18.259 +		os=-amigaos
  18.260 +		;;
  18.261 +	amigaunix | amix)
  18.262 +		basic_machine=m68k-cbm
  18.263 +		os=-sysv4
  18.264 +		;;
  18.265 +	apollo68)
  18.266 +		basic_machine=m68k-apollo
  18.267 +		os=-sysv
  18.268 +		;;
  18.269 +	apollo68bsd)
  18.270 +		basic_machine=m68k-apollo
  18.271 +		os=-bsd
  18.272 +		;;
  18.273 +	aux)
  18.274 +		basic_machine=m68k-apple
  18.275 +		os=-aux
  18.276 +		;;
  18.277 +	balance)
  18.278 +		basic_machine=ns32k-sequent
  18.279 +		os=-dynix
  18.280 +		;;
  18.281 +	convex-c1)
  18.282 +		basic_machine=c1-convex
  18.283 +		os=-bsd
  18.284 +		;;
  18.285 +	convex-c2)
  18.286 +		basic_machine=c2-convex
  18.287 +		os=-bsd
  18.288 +		;;
  18.289 +	convex-c32)
  18.290 +		basic_machine=c32-convex
  18.291 +		os=-bsd
  18.292 +		;;
  18.293 +	convex-c34)
  18.294 +		basic_machine=c34-convex
  18.295 +		os=-bsd
  18.296 +		;;
  18.297 +	convex-c38)
  18.298 +		basic_machine=c38-convex
  18.299 +		os=-bsd
  18.300 +		;;
  18.301 +	cray | ymp)
  18.302 +		basic_machine=ymp-cray
  18.303 +		os=-unicos
  18.304 +		;;
  18.305 +	cray2)
  18.306 +		basic_machine=cray2-cray
  18.307 +		os=-unicos
  18.308 +		;;
  18.309 +	[ctj]90-cray)
  18.310 +		basic_machine=c90-cray
  18.311 +		os=-unicos
  18.312 +		;;
  18.313 +	crds | unos)
  18.314 +		basic_machine=m68k-crds
  18.315 +		;;
  18.316 +	da30 | da30-*)
  18.317 +		basic_machine=m68k-da30
  18.318 +		;;
  18.319 +	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
  18.320 +		basic_machine=mips-dec
  18.321 +		;;
  18.322 +	delta | 3300 | motorola-3300 | motorola-delta \
  18.323 +	      | 3300-motorola | delta-motorola)
  18.324 +		basic_machine=m68k-motorola
  18.325 +		;;
  18.326 +	delta88)
  18.327 +		basic_machine=m88k-motorola
  18.328 +		os=-sysv3
  18.329 +		;;
  18.330 +	dpx20 | dpx20-*)
  18.331 +		basic_machine=rs6000-bull
  18.332 +		os=-bosx
  18.333 +		;;
  18.334 +	dpx2* | dpx2*-bull)
  18.335 +		basic_machine=m68k-bull
  18.336 +		os=-sysv3
  18.337 +		;;
  18.338 +	ebmon29k)
  18.339 +		basic_machine=a29k-amd
  18.340 +		os=-ebmon
  18.341 +		;;
  18.342 +	elxsi)
  18.343 +		basic_machine=elxsi-elxsi
  18.344 +		os=-bsd
  18.345 +		;;
  18.346 +	encore | umax | mmax)
  18.347 +		basic_machine=ns32k-encore
  18.348 +		;;
  18.349 +	es1800 | OSE68k | ose68k | ose | OSE)
  18.350 +		basic_machine=m68k-ericsson
  18.351 +		os=-ose
  18.352 +		;;
  18.353 +	fx2800)
  18.354 +		basic_machine=i860-alliant
  18.355 +		;;
  18.356 +	genix)
  18.357 +		basic_machine=ns32k-ns
  18.358 +		;;
  18.359 +	gmicro)
  18.360 +		basic_machine=tron-gmicro
  18.361 +		os=-sysv
  18.362 +		;;
  18.363 +	h3050r* | hiux*)
  18.364 +		basic_machine=hppa1.1-hitachi
  18.365 +		os=-hiuxwe2
  18.366 +		;;
  18.367 +	h8300hms)
  18.368 +		basic_machine=h8300-hitachi
  18.369 +		os=-hms
  18.370 +		;;
  18.371 +	h8300xray)
  18.372 +		basic_machine=h8300-hitachi
  18.373 +		os=-xray
  18.374 +		;;
  18.375 +	h8500hms)
  18.376 +		basic_machine=h8500-hitachi
  18.377 +		os=-hms
  18.378 +		;;
  18.379 +	harris)
  18.380 +		basic_machine=m88k-harris
  18.381 +		os=-sysv3
  18.382 +		;;
  18.383 +	hp300-*)
  18.384 +		basic_machine=m68k-hp
  18.385 +		;;
  18.386 +	hp300bsd)
  18.387 +		basic_machine=m68k-hp
  18.388 +		os=-bsd
  18.389 +		;;
  18.390 +	hp300hpux)
  18.391 +		basic_machine=m68k-hp
  18.392 +		os=-hpux
  18.393 +		;;
  18.394 +	hp3k9[0-9][0-9] | hp9[0-9][0-9])
  18.395 +		basic_machine=hppa1.0-hp
  18.396 +		;;
  18.397 +	hp9k2[0-9][0-9] | hp9k31[0-9])
  18.398 +		basic_machine=m68000-hp
  18.399 +		;;
  18.400 +	hp9k3[2-9][0-9])
  18.401 +		basic_machine=m68k-hp
  18.402 +		;;
  18.403 +	hp9k6[0-9][0-9] | hp6[0-9][0-9])
  18.404 +		basic_machine=hppa1.0-hp
  18.405 +		;;
  18.406 +	hp9k7[0-79][0-9] | hp7[0-79][0-9])
  18.407 +		basic_machine=hppa1.1-hp
  18.408 +		;;
  18.409 +	hp9k78[0-9] | hp78[0-9])
  18.410 +		# FIXME: really hppa2.0-hp
  18.411 +		basic_machine=hppa1.1-hp
  18.412 +		;;
  18.413 +	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
  18.414 +		# FIXME: really hppa2.0-hp
  18.415 +		basic_machine=hppa1.1-hp
  18.416 +		;;
  18.417 +	hp9k8[0-9][13679] | hp8[0-9][13679])
  18.418 +		basic_machine=hppa1.1-hp
  18.419 +		;;
  18.420 +	hp9k8[0-9][0-9] | hp8[0-9][0-9])
  18.421 +		basic_machine=hppa1.0-hp
  18.422 +		;;
  18.423 +	hppa-next)
  18.424 +		os=-nextstep3
  18.425 +		;;
  18.426 +	hppaosf)
  18.427 +		basic_machine=hppa1.1-hp
  18.428 +		os=-osf
  18.429 +		;;
  18.430 +	hppro)
  18.431 +		basic_machine=hppa1.1-hp
  18.432 +		os=-proelf
  18.433 +		;;
  18.434 +	i370-ibm* | ibm*)
  18.435 +		basic_machine=i370-ibm
  18.436 +		;;
  18.437 +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
  18.438 +	i[34567]86v32)
  18.439 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  18.440 +		os=-sysv32
  18.441 +		;;
  18.442 +	i[34567]86v4*)
  18.443 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  18.444 +		os=-sysv4
  18.445 +		;;
  18.446 +	i[34567]86v)
  18.447 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  18.448 +		os=-sysv
  18.449 +		;;
  18.450 +	i[34567]86sol2)
  18.451 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
  18.452 +		os=-solaris2
  18.453 +		;;
  18.454 +	i386mach)
  18.455 +		basic_machine=i386-mach
  18.456 +		os=-mach
  18.457 +		;;
  18.458 +	i386-vsta | vsta)
  18.459 +		basic_machine=i386-unknown
  18.460 +		os=-vsta
  18.461 +		;;
  18.462 +	i386-go32 | go32)
  18.463 +		basic_machine=i386-unknown
  18.464 +		os=-go32
  18.465 +		;;
  18.466 +	i386-mingw32 | mingw32)
  18.467 +		basic_machine=i386-unknown
  18.468 +		os=-mingw32
  18.469 +		;;
  18.470 +	i386-qnx | qnx)
  18.471 +		basic_machine=i386-qnx
  18.472 +		;;
  18.473 +	iris | iris4d)
  18.474 +		basic_machine=mips-sgi
  18.475 +		case $os in
  18.476 +		    -irix*)
  18.477 +			;;
  18.478 +		    *)
  18.479 +			os=-irix4
  18.480 +			;;
  18.481 +		esac
  18.482 +		;;
  18.483 +	isi68 | isi)
  18.484 +		basic_machine=m68k-isi
  18.485 +		os=-sysv
  18.486 +		;;
  18.487 +	m88k-omron*)
  18.488 +		basic_machine=m88k-omron
  18.489 +		;;
  18.490 +	magnum | m3230)
  18.491 +		basic_machine=mips-mips
  18.492 +		os=-sysv
  18.493 +		;;
  18.494 +	merlin)
  18.495 +		basic_machine=ns32k-utek
  18.496 +		os=-sysv
  18.497 +		;;
  18.498 +	miniframe)
  18.499 +		basic_machine=m68000-convergent
  18.500 +		;;
  18.501 +	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
  18.502 +		basic_machine=m68k-atari
  18.503 +		os=-mint
  18.504 +		;;
  18.505 +	mipsel*-linux*)
  18.506 +		basic_machine=mipsel-unknown
  18.507 +		os=-linux-gnu
  18.508 +		;;
  18.509 +	mips*-linux*)
  18.510 +		basic_machine=mips-unknown
  18.511 +		os=-linux-gnu
  18.512 +		;;
  18.513 +	mips3*-*)
  18.514 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
  18.515 +		;;
  18.516 +	mips3*)
  18.517 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  18.518 +		;;
  18.519 +	monitor)
  18.520 +		basic_machine=m68k-rom68k
  18.521 +		os=-coff
  18.522 +		;;
  18.523 +	msdos)
  18.524 +		basic_machine=i386-unknown
  18.525 +		os=-msdos
  18.526 +		;;
  18.527 +	mvs)
  18.528 +		basic_machine=i370-ibm
  18.529 +		os=-mvs
  18.530 +		;;
  18.531 +	ncr3000)
  18.532 +		basic_machine=i486-ncr
  18.533 +		os=-sysv4
  18.534 +		;;
  18.535 +	netbsd386)
  18.536 +		basic_machine=i386-unknown
  18.537 +		os=-netbsd
  18.538 +		;;
  18.539 +	netwinder)
  18.540 +		basic_machine=armv4l-rebel
  18.541 +		os=-linux
  18.542 +		;;
  18.543 +	news | news700 | news800 | news900)
  18.544 +		basic_machine=m68k-sony
  18.545 +		os=-newsos
  18.546 +		;;
  18.547 +	news1000)
  18.548 +		basic_machine=m68030-sony
  18.549 +		os=-newsos
  18.550 +		;;
  18.551 +	news-3600 | risc-news)
  18.552 +		basic_machine=mips-sony
  18.553 +		os=-newsos
  18.554 +		;;
  18.555 +	necv70)
  18.556 +		basic_machine=v70-nec
  18.557 +		os=-sysv
  18.558 +		;;
  18.559 +	next | m*-next )
  18.560 +		basic_machine=m68k-next
  18.561 +		case $os in
  18.562 +		    -nextstep* )
  18.563 +			;;
  18.564 +		    -ns2*)
  18.565 +		      os=-nextstep2
  18.566 +			;;
  18.567 +		    *)
  18.568 +		      os=-nextstep3
  18.569 +			;;
  18.570 +		esac
  18.571 +		;;
  18.572 +	nh3000)
  18.573 +		basic_machine=m68k-harris
  18.574 +		os=-cxux
  18.575 +		;;
  18.576 +	nh[45]000)
  18.577 +		basic_machine=m88k-harris
  18.578 +		os=-cxux
  18.579 +		;;
  18.580 +	nindy960)
  18.581 +		basic_machine=i960-intel
  18.582 +		os=-nindy
  18.583 +		;;
  18.584 +	mon960)
  18.585 +		basic_machine=i960-intel
  18.586 +		os=-mon960
  18.587 +		;;
  18.588 +	np1)
  18.589 +		basic_machine=np1-gould
  18.590 +		;;
  18.591 +	op50n-* | op60c-*)
  18.592 +		basic_machine=hppa1.1-oki
  18.593 +		os=-proelf
  18.594 +		;;
  18.595 +	OSE68000 | ose68000)
  18.596 +		basic_machine=m68000-ericsson
  18.597 +		os=-ose
  18.598 +		;;
  18.599 +	os68k)
  18.600 +		basic_machine=m68k-none
  18.601 +		os=-os68k
  18.602 +		;;
  18.603 +	pa-hitachi)
  18.604 +		basic_machine=hppa1.1-hitachi
  18.605 +		os=-hiuxwe2
  18.606 +		;;
  18.607 +	paragon)
  18.608 +		basic_machine=i860-intel
  18.609 +		os=-osf
  18.610 +		;;
  18.611 +	pbd)
  18.612 +		basic_machine=sparc-tti
  18.613 +		;;
  18.614 +	pbb)
  18.615 +		basic_machine=m68k-tti
  18.616 +		;;
  18.617 +        pc532 | pc532-*)
  18.618 +		basic_machine=ns32k-pc532
  18.619 +		;;
  18.620 +	pentium | p5 | k5 | k6 | nexen)
  18.621 +		basic_machine=i586-pc
  18.622 +		;;
  18.623 +	pentiumpro | p6 | 6x86)
  18.624 +		basic_machine=i686-pc
  18.625 +		;;
  18.626 +	pentiumii | pentium2)
  18.627 +		basic_machine=i786-pc
  18.628 +		;;
  18.629 +	pentium-* | p5-* | k5-* | k6-* | nexen-*)
  18.630 +		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
  18.631 +		;;
  18.632 +	pentiumpro-* | p6-* | 6x86-*)
  18.633 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
  18.634 +		;;
  18.635 +	pentiumii-* | pentium2-*)
  18.636 +		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
  18.637 +		;;
  18.638 +	pn)
  18.639 +		basic_machine=pn-gould
  18.640 +		;;
  18.641 +	power)	basic_machine=rs6000-ibm
  18.642 +		;;
  18.643 +	ppc)	basic_machine=powerpc-unknown
  18.644 +	        ;;
  18.645 +	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
  18.646 +		;;
  18.647 +	ppcle | powerpclittle | ppc-le | powerpc-little)
  18.648 +		basic_machine=powerpcle-unknown
  18.649 +	        ;;
  18.650 +	ppcle-* | powerpclittle-*)
  18.651 +		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
  18.652 +		;;
  18.653 +	ps2)
  18.654 +		basic_machine=i386-ibm
  18.655 +		;;
  18.656 +	rom68k)
  18.657 +		basic_machine=m68k-rom68k
  18.658 +		os=-coff
  18.659 +		;;
  18.660 +	rm[46]00)
  18.661 +		basic_machine=mips-siemens
  18.662 +		;;
  18.663 +	rtpc | rtpc-*)
  18.664 +		basic_machine=romp-ibm
  18.665 +		;;
  18.666 +	sa29200)
  18.667 +		basic_machine=a29k-amd
  18.668 +		os=-udi
  18.669 +		;;
  18.670 +	sequent)
  18.671 +		basic_machine=i386-sequent
  18.672 +		;;
  18.673 +	sh)
  18.674 +		basic_machine=sh-hitachi
  18.675 +		os=-hms
  18.676 +		;;
  18.677 +	sparclite-wrs)
  18.678 +		basic_machine=sparclite-wrs
  18.679 +		os=-vxworks
  18.680 +		;;
  18.681 +	sps7)
  18.682 +		basic_machine=m68k-bull
  18.683 +		os=-sysv2
  18.684 +		;;
  18.685 +	spur)
  18.686 +		basic_machine=spur-unknown
  18.687 +		;;
  18.688 +	st2000)
  18.689 +		basic_machine=m68k-tandem
  18.690 +		;;
  18.691 +	stratus)
  18.692 +		basic_machine=i860-stratus
  18.693 +		os=-sysv4
  18.694 +		;;
  18.695 +	sun2)
  18.696 +		basic_machine=m68000-sun
  18.697 +		;;
  18.698 +	sun2os3)
  18.699 +		basic_machine=m68000-sun
  18.700 +		os=-sunos3
  18.701 +		;;
  18.702 +	sun2os4)
  18.703 +		basic_machine=m68000-sun
  18.704 +		os=-sunos4
  18.705 +		;;
  18.706 +	sun3os3)
  18.707 +		basic_machine=m68k-sun
  18.708 +		os=-sunos3
  18.709 +		;;
  18.710 +	sun3os4)
  18.711 +		basic_machine=m68k-sun
  18.712 +		os=-sunos4
  18.713 +		;;
  18.714 +	sun4os3)
  18.715 +		basic_machine=sparc-sun
  18.716 +		os=-sunos3
  18.717 +		;;
  18.718 +	sun4os4)
  18.719 +		basic_machine=sparc-sun
  18.720 +		os=-sunos4
  18.721 +		;;
  18.722 +	sun4sol2)
  18.723 +		basic_machine=sparc-sun
  18.724 +		os=-solaris2
  18.725 +		;;
  18.726 +	sun3 | sun3-*)
  18.727 +		basic_machine=m68k-sun
  18.728 +		;;
  18.729 +	sun4)
  18.730 +		basic_machine=sparc-sun
  18.731 +		;;
  18.732 +	sun386 | sun386i | roadrunner)
  18.733 +		basic_machine=i386-sun
  18.734 +		;;
  18.735 +	symmetry)
  18.736 +		basic_machine=i386-sequent
  18.737 +		os=-dynix
  18.738 +		;;
  18.739 +	t3e)
  18.740 +		basic_machine=t3e-cray
  18.741 +		os=-unicos
  18.742 +		;;
  18.743 +	tx39)
  18.744 +		basic_machine=mipstx39-unknown
  18.745 +		;;
  18.746 +	tx39el)
  18.747 +		basic_machine=mipstx39el-unknown
  18.748 +		;;
  18.749 +	tower | tower-32)
  18.750 +		basic_machine=m68k-ncr
  18.751 +		;;
  18.752 +	udi29k)
  18.753 +		basic_machine=a29k-amd
  18.754 +		os=-udi
  18.755 +		;;
  18.756 +	ultra3)
  18.757 +		basic_machine=a29k-nyu
  18.758 +		os=-sym1
  18.759 +		;;
  18.760 +	v810 | necv810)
  18.761 +		basic_machine=v810-nec
  18.762 +		os=-none
  18.763 +		;;
  18.764 +	vaxv)
  18.765 +		basic_machine=vax-dec
  18.766 +		os=-sysv
  18.767 +		;;
  18.768 +	vms)
  18.769 +		basic_machine=vax-dec
  18.770 +		os=-vms
  18.771 +		;;
  18.772 +	vpp*|vx|vx-*)
  18.773 +               basic_machine=f301-fujitsu
  18.774 +               ;;
  18.775 +	vxworks960)
  18.776 +		basic_machine=i960-wrs
  18.777 +		os=-vxworks
  18.778 +		;;
  18.779 +	vxworks68)
  18.780 +		basic_machine=m68k-wrs
  18.781 +		os=-vxworks
  18.782 +		;;
  18.783 +	vxworks29k)
  18.784 +		basic_machine=a29k-wrs
  18.785 +		os=-vxworks
  18.786 +		;;
  18.787 +	w65*)
  18.788 +		basic_machine=w65-wdc
  18.789 +		os=-none
  18.790 +		;;
  18.791 +	w89k-*)
  18.792 +		basic_machine=hppa1.1-winbond
  18.793 +		os=-proelf
  18.794 +		;;
  18.795 +	xmp)
  18.796 +		basic_machine=xmp-cray
  18.797 +		os=-unicos
  18.798 +		;;
  18.799 +        xps | xps100)
  18.800 +		basic_machine=xps100-honeywell
  18.801 +		;;
  18.802 +	z8k-*-coff)
  18.803 +		basic_machine=z8k-unknown
  18.804 +		os=-sim
  18.805 +		;;
  18.806 +	none)
  18.807 +		basic_machine=none-none
  18.808 +		os=-none
  18.809 +		;;
  18.810 +
  18.811 +# Here we handle the default manufacturer of certain CPU types.  It is in
  18.812 +# some cases the only manufacturer, in others, it is the most popular.
  18.813 +	w89k)
  18.814 +		basic_machine=hppa1.1-winbond
  18.815 +		;;
  18.816 +	op50n)
  18.817 +		basic_machine=hppa1.1-oki
  18.818 +		;;
  18.819 +	op60c)
  18.820 +		basic_machine=hppa1.1-oki
  18.821 +		;;
  18.822 +	mips)
  18.823 +		if [ x$os = x-linux-gnu ]; then
  18.824 +			basic_machine=mips-unknown
  18.825 +		else
  18.826 +			basic_machine=mips-mips
  18.827 +		fi
  18.828 +		;;
  18.829 +	romp)
  18.830 +		basic_machine=romp-ibm
  18.831 +		;;
  18.832 +	rs6000)
  18.833 +		basic_machine=rs6000-ibm
  18.834 +		;;
  18.835 +	vax)
  18.836 +		basic_machine=vax-dec
  18.837 +		;;
  18.838 +	pdp11)
  18.839 +		basic_machine=pdp11-dec
  18.840 +		;;
  18.841 +	we32k)
  18.842 +		basic_machine=we32k-att
  18.843 +		;;
  18.844 +	sparc | sparcv9)
  18.845 +		basic_machine=sparc-sun
  18.846 +		;;
  18.847 +        cydra)
  18.848 +		basic_machine=cydra-cydrome
  18.849 +		;;
  18.850 +	orion)
  18.851 +		basic_machine=orion-highlevel
  18.852 +		;;
  18.853 +	orion105)
  18.854 +		basic_machine=clipper-highlevel
  18.855 +		;;
  18.856 +	mac | mpw | mac-mpw)
  18.857 +		basic_machine=m68k-apple
  18.858 +		;;
  18.859 +	pmac | pmac-mpw)
  18.860 +		basic_machine=powerpc-apple
  18.861 +		;;
  18.862 +	c4x*)
  18.863 +		basic_machine=c4x-none
  18.864 +		os=-coff
  18.865 +		;;
  18.866 +	*)
  18.867 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
  18.868 +		exit 1
  18.869 +		;;
  18.870 +esac
  18.871 +
  18.872 +# Here we canonicalize certain aliases for manufacturers.
  18.873 +case $basic_machine in
  18.874 +	*-digital*)
  18.875 +		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
  18.876 +		;;
  18.877 +	*-commodore*)
  18.878 +		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
  18.879 +		;;
  18.880 +	*)
  18.881 +		;;
  18.882 +esac
  18.883 +
  18.884 +# Decode manufacturer-specific aliases for certain operating systems.
  18.885 +
  18.886 +if [ x"$os" != x"" ]
  18.887 +then
  18.888 +case $os in
  18.889 +        # First match some system type aliases
  18.890 +        # that might get confused with valid system types.
  18.891 +	# -solaris* is a basic system type, with this one exception.
  18.892 +	-solaris1 | -solaris1.*)
  18.893 +		os=`echo $os | sed -e 's|solaris1|sunos4|'`
  18.894 +		;;
  18.895 +	-solaris)
  18.896 +		os=-solaris2
  18.897 +		;;
  18.898 +	-svr4*)
  18.899 +		os=-sysv4
  18.900 +		;;
  18.901 +	-unixware*)
  18.902 +		os=-sysv4.2uw
  18.903 +		;;
  18.904 +	-gnu/linux*)
  18.905 +		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
  18.906 +		;;
  18.907 +	# First accept the basic system types.
  18.908 +	# The portable systems comes first.
  18.909 +	# Each alternative MUST END IN A *, to match a version number.
  18.910 +	# -sysv* is not here because it comes later, after sysvr4.
  18.911 +	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  18.912 +	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  18.913 +	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  18.914 +	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  18.915 +	      | -aos* \
  18.916 +	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  18.917 +	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  18.918 +	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
  18.919 +	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  18.920 +	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  18.921 +	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  18.922 +	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  18.923 +	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
  18.924 +	      | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
  18.925 +	# Remember, each alternative MUST END IN *, to match a version number.
  18.926 +		;;
  18.927 +	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  18.928 +	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  18.929 +	      | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
  18.930 +		;;
  18.931 +	-mac*)
  18.932 +		os=`echo $os | sed -e 's|mac|macos|'`
  18.933 +		;;
  18.934 +	-linux*)
  18.935 +		os=`echo $os | sed -e 's|linux|linux-gnu|'`
  18.936 +		;;
  18.937 +	-sunos5*)
  18.938 +		os=`echo $os | sed -e 's|sunos5|solaris2|'`
  18.939 +		;;
  18.940 +	-sunos6*)
  18.941 +		os=`echo $os | sed -e 's|sunos6|solaris3|'`
  18.942 +		;;
  18.943 +	-opened*)
  18.944 +		os=-openedition
  18.945 +		;;
  18.946 +	-osfrose*)
  18.947 +		os=-osfrose
  18.948 +		;;
  18.949 +	-osf*)
  18.950 +		os=-osf
  18.951 +		;;
  18.952 +	-utek*)
  18.953 +		os=-bsd
  18.954 +		;;
  18.955 +	-dynix*)
  18.956 +		os=-bsd
  18.957 +		;;
  18.958 +	-acis*)
  18.959 +		os=-aos
  18.960 +		;;
  18.961 +	-386bsd)
  18.962 +		os=-bsd
  18.963 +		;;
  18.964 +	-ctix* | -uts*)
  18.965 +		os=-sysv
  18.966 +		;;
  18.967 +	-ns2 )
  18.968 +	        os=-nextstep2
  18.969 +		;;
  18.970 +	# Preserve the version number of sinix5.
  18.971 +	-sinix5.*)
  18.972 +		os=`echo $os | sed -e 's|sinix|sysv|'`
  18.973 +		;;
  18.974 +	-sinix*)
  18.975 +		os=-sysv4
  18.976 +		;;
  18.977 +	-triton*)
  18.978 +		os=-sysv3
  18.979 +		;;
  18.980 +	-oss*)
  18.981 +		os=-sysv3
  18.982 +		;;
  18.983 +        -qnx)
  18.984 +		os=-qnx4
  18.985 +		;;
  18.986 +	-svr4)
  18.987 +		os=-sysv4
  18.988 +		;;
  18.989 +	-svr3)
  18.990 +		os=-sysv3
  18.991 +		;;
  18.992 +	-sysvr4)
  18.993 +		os=-sysv4
  18.994 +		;;
  18.995 +	# This must come after -sysvr4.
  18.996 +	-sysv*)
  18.997 +		;;
  18.998 +	-ose*)
  18.999 +		os=-ose
 18.1000 +		;;
 18.1001 +	-es1800*)
 18.1002 +		os=-ose
 18.1003 +		;;
 18.1004 +	-xenix)
 18.1005 +		os=-xenix
 18.1006 +		;;
 18.1007 +        -*mint | -*MiNT)
 18.1008 +	        os=-mint
 18.1009 +		;;
 18.1010 +	-none)
 18.1011 +		;;
 18.1012 +	*)
 18.1013 +		# Get rid of the `-' at the beginning of $os.
 18.1014 +		os=`echo $os | sed 's/[^-]*-//'`
 18.1015 +		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
 18.1016 +		exit 1
 18.1017 +		;;
 18.1018 +esac
 18.1019 +else
 18.1020 +
 18.1021 +# Here we handle the default operating systems that come with various machines.
 18.1022 +# The value should be what the vendor currently ships out the door with their
 18.1023 +# machine or put another way, the most popular os provided with the machine.
 18.1024 +
 18.1025 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
 18.1026 +# "-sun"), then you have to tell the case statement up towards the top
 18.1027 +# that MANUFACTURER isn't an operating system.  Otherwise, code above
 18.1028 +# will signal an error saying that MANUFACTURER isn't an operating
 18.1029 +# system, and we'll never get to this point.
 18.1030 +
 18.1031 +case $basic_machine in
 18.1032 +	*-acorn)
 18.1033 +		os=-riscix1.2
 18.1034 +		;;
 18.1035 +	arm*-rebel)
 18.1036 +		os=-linux
 18.1037 +		;;
 18.1038 +	arm*-semi)
 18.1039 +		os=-aout
 18.1040 +		;;
 18.1041 +        pdp11-*)
 18.1042 +		os=-none
 18.1043 +		;;
 18.1044 +	*-dec | vax-*)
 18.1045 +		os=-ultrix4.2
 18.1046 +		;;
 18.1047 +	m68*-apollo)
 18.1048 +		os=-domain
 18.1049 +		;;
 18.1050 +	i386-sun)
 18.1051 +		os=-sunos4.0.2
 18.1052 +		;;
 18.1053 +	m68000-sun)
 18.1054 +		os=-sunos3
 18.1055 +		# This also exists in the configure program, but was not the
 18.1056 +		# default.
 18.1057 +		# os=-sunos4
 18.1058 +		;;
 18.1059 +	m68*-cisco)
 18.1060 +		os=-aout
 18.1061 +		;;
 18.1062 +	mips*-cisco)
 18.1063 +		os=-elf
 18.1064 +		;;
 18.1065 +	mips*-*)
 18.1066 +		os=-elf
 18.1067 +		;;
 18.1068 +	*-tti)	# must be before sparc entry or we get the wrong os.
 18.1069 +		os=-sysv3
 18.1070 +		;;
 18.1071 +	sparc-* | *-sun)
 18.1072 +		os=-sunos4.1.1
 18.1073 +		;;
 18.1074 +	*-be)
 18.1075 +		os=-beos
 18.1076 +		;;
 18.1077 +	*-ibm)
 18.1078 +		os=-aix
 18.1079 +		;;
 18.1080 +	*-wec)
 18.1081 +		os=-proelf
 18.1082 +		;;
 18.1083 +	*-winbond)
 18.1084 +		os=-proelf
 18.1085 +		;;
 18.1086 +	*-oki)
 18.1087 +		os=-proelf
 18.1088 +		;;
 18.1089 +	*-hp)
 18.1090 +		os=-hpux
 18.1091 +		;;
 18.1092 +	*-hitachi)
 18.1093 +		os=-hiux
 18.1094 +		;;
 18.1095 +	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
 18.1096 +		os=-sysv
 18.1097 +		;;
 18.1098 +	*-cbm)
 18.1099 +		os=-amigaos
 18.1100 +		;;
 18.1101 +	*-dg)
 18.1102 +		os=-dgux
 18.1103 +		;;
 18.1104 +	*-dolphin)
 18.1105 +		os=-sysv3
 18.1106 +		;;
 18.1107 +	m68k-ccur)
 18.1108 +		os=-rtu
 18.1109 +		;;
 18.1110 +	m88k-omron*)
 18.1111 +		os=-luna
 18.1112 +		;;
 18.1113 +	*-next )
 18.1114 +		os=-nextstep
 18.1115 +		;;
 18.1116 +	*-sequent)
 18.1117 +		os=-ptx
 18.1118 +		;;
 18.1119 +	*-crds)
 18.1120 +		os=-unos
 18.1121 +		;;
 18.1122 +	*-ns)
 18.1123 +		os=-genix
 18.1124 +		;;
 18.1125 +	i370-*)
 18.1126 +		os=-mvs
 18.1127 +		;;
 18.1128 +	*-next)
 18.1129 +		os=-nextstep3
 18.1130 +		;;
 18.1131 +        *-gould)
 18.1132 +		os=-sysv
 18.1133 +		;;
 18.1134 +        *-highlevel)
 18.1135 +		os=-bsd
 18.1136 +		;;
 18.1137 +	*-encore)
 18.1138 +		os=-bsd
 18.1139 +		;;
 18.1140 +        *-sgi)
 18.1141 +		os=-irix
 18.1142 +		;;
 18.1143 +        *-siemens)
 18.1144 +		os=-sysv4
 18.1145 +		;;
 18.1146 +	*-masscomp)
 18.1147 +		os=-rtu
 18.1148 +		;;
 18.1149 +	f301-fujitsu)
 18.1150 +		os=-uxpv
 18.1151 +		;;
 18.1152 +	*-rom68k)
 18.1153 +		os=-coff
 18.1154 +		;;
 18.1155 +	*-*bug)
 18.1156 +		os=-coff
 18.1157 +		;;
 18.1158 +	*-apple)
 18.1159 +		os=-macos
 18.1160 +		;;
 18.1161 +	*-atari*)
 18.1162 +		os=-mint
 18.1163 +		;;
 18.1164 +	*)
 18.1165 +		os=-none
 18.1166 +		;;
 18.1167 +esac
 18.1168 +fi
 18.1169 +
 18.1170 +# Here we handle the case where we know the os, and the CPU type, but not the
 18.1171 +# manufacturer.  We pick the logical manufacturer.
 18.1172 +vendor=unknown
 18.1173 +case $basic_machine in
 18.1174 +	*-unknown)
 18.1175 +		case $os in
 18.1176 +			-riscix*)
 18.1177 +				vendor=acorn
 18.1178 +				;;
 18.1179 +			-sunos*)
 18.1180 +				vendor=sun
 18.1181 +				;;
 18.1182 +			-aix*)
 18.1183 +				vendor=ibm
 18.1184 +				;;
 18.1185 +			-beos*)
 18.1186 +				vendor=be
 18.1187 +				;;
 18.1188 +			-hpux*)
 18.1189 +				vendor=hp
 18.1190 +				;;
 18.1191 +			-mpeix*)
 18.1192 +				vendor=hp
 18.1193 +				;;
 18.1194 +			-hiux*)
 18.1195 +				vendor=hitachi
 18.1196 +				;;
 18.1197 +			-unos*)
 18.1198 +				vendor=crds
 18.1199 +				;;
 18.1200 +			-dgux*)
 18.1201 +				vendor=dg
 18.1202 +				;;
 18.1203 +			-luna*)
 18.1204 +				vendor=omron
 18.1205 +				;;
 18.1206 +			-genix*)
 18.1207 +				vendor=ns
 18.1208 +				;;
 18.1209 +			-mvs* | -opened*)
 18.1210 +				vendor=ibm
 18.1211 +				;;
 18.1212 +			-ptx*)
 18.1213 +				vendor=sequent
 18.1214 +				;;
 18.1215 +			-vxsim* | -vxworks*)
 18.1216 +				vendor=wrs
 18.1217 +				;;
 18.1218 +			-aux*)
 18.1219 +				vendor=apple
 18.1220 +				;;
 18.1221 +			-hms*)
 18.1222 +				vendor=hitachi
 18.1223 +				;;
 18.1224 +			-mpw* | -macos*)
 18.1225 +				vendor=apple
 18.1226 +				;;
 18.1227 +			-*mint | -*MiNT)
 18.1228 +				vendor=atari
 18.1229 +				;;
 18.1230 +		esac
 18.1231 +		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
 18.1232 +		;;
 18.1233 +esac
 18.1234 +
 18.1235 +echo $basic_machine$os
    19.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    19.2 +++ b/configure	Mon Jan 24 14:34:29 2000 +0000
    19.3 @@ -0,0 +1,4816 @@
    19.4 +#! /bin/sh
    19.5 +# Guess values for system-dependent variables and create Makefiles.
    19.6 +# Generated automatically using Autoconf version 2.14.1 
    19.7 +# Copyright (C) 1992, 93, 94, 95, 96, 98, 1999 Free Software Foundation, Inc.
    19.8 +#
    19.9 +# This configure script is free software; the Free Software Foundation
   19.10 +# gives unlimited permission to copy, distribute and modify it.
   19.11 +
   19.12 +# Defaults:
   19.13 +ac_arg_with_help=
   19.14 +ac_arg_enable_help=
   19.15 +ac_arg_var_help=
   19.16 +ac_default_prefix=/usr/local
   19.17 +# Any additions from configure.in:
   19.18 +ac_arg_enable_help="$ac_arg_enable_help
   19.19 +  --disable-dependency-tracking Speeds up one-time builds
   19.20 +  --enable-dependency-tracking  Do not reject slow dependency extractors"
   19.21 +ac_arg_enable_help="$ac_arg_enable_help
   19.22 +  --enable-static[=PKGS]  build static libraries [default=no]"
   19.23 +ac_arg_enable_help="$ac_arg_enable_help
   19.24 +  --enable-maintainer-mode enable make rules and dependencies not useful
   19.25 +                          (and sometimes confusing) to the casual installer"
   19.26 +ac_arg_enable_help="$ac_arg_enable_help
   19.27 +  --enable-shared[=PKGS]  build shared libraries [default=yes]"
   19.28 +ac_arg_enable_help="$ac_arg_enable_help
   19.29 +  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
   19.30 +ac_arg_var_help="$ac_arg_var_help
   19.31 +  CFLAGS      Extra flags for the C compiler"
   19.32 +ac_arg_with_help="$ac_arg_with_help
   19.33 +  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
   19.34 +ac_arg_enable_help="$ac_arg_enable_help
   19.35 +  --disable-libtool-lock  avoid locking (might break parallel builds)"
   19.36 +ac_arg_with_help="$ac_arg_with_help
   19.37 +  --with-dl=DIR           include support for the dynamic link loader library
   19.38 +                          [default=yes]"
   19.39 +ac_arg_with_help="$ac_arg_with_help
   19.40 +  --with-x                use the X Window System"
   19.41 +ac_arg_with_help="$ac_arg_with_help
   19.42 +  --with-opengl=DIR       OpenGL/Mesa installation directory"
   19.43 +ac_arg_with_help="$ac_arg_with_help
   19.44 +  --with-inventor=DIR     use the Open Inventor library [default=no]"
   19.45 +ac_arg_with_help="$ac_arg_with_help
   19.46 +  --with-coin=DIR         set the prefix directory where Coin resides"
   19.47 +ac_arg_with_help="$ac_arg_with_help
   19.48 +  --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)"
   19.49 +ac_arg_with_help="$ac_arg_with_help
   19.50 +  --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
   19.51 +ac_arg_enable_help="$ac_arg_enable_help
   19.52 +  --disable-gtktest       Do not try to compile and run a test GTK program"
   19.53 +ac_arg_with_help="$ac_arg_with_help
   19.54 +  --with-gl-prefix=PFX   Prefix where OpenGL or Mesa is installed"
   19.55 +ac_arg_with_help="$ac_arg_with_help
   19.56 +  --with-gtkgl-prefix=PFX Prefix where GtkGLArea is installed"
   19.57 +ac_arg_enable_help="$ac_arg_enable_help
   19.58 +  --enable-debug          compile in debug mode [default=yes]"
   19.59 +ac_arg_enable_help="$ac_arg_enable_help
   19.60 +  --enable-symbols        (GCC only) include symbol debug information
   19.61 +                          [default=yes]"
   19.62 +ac_arg_enable_help="$ac_arg_enable_help
   19.63 +  --enable-rtti           (g++ only) compile with RTTI [default=no]"
   19.64 +ac_arg_enable_help="$ac_arg_enable_help
   19.65 +  --enable-exceptions     (g++ only) compile with exceptions [default=no]"
   19.66 +ac_arg_enable_help="$ac_arg_enable_help
   19.67 +  --enable-profile        (GCC only) turn on inclusion of profiling code
   19.68 +                          [default=no]"
   19.69 +ac_arg_enable_help="$ac_arg_enable_help
   19.70 +  --enable-warnings       (GCC only) turn on warnings when compiling
   19.71 +                          [default=yes]"
   19.72 +ac_arg_with_help="$ac_arg_with_help
   19.73 +  --with-examples         compile SoGtk example programs [default=yes]"
   19.74 +
   19.75 +# Initialize some variables set by options.
   19.76 +# The variables have the same names as the options, with
   19.77 +# dashes changed to underlines.
   19.78 +build=NONE
   19.79 +cache_file=./config.cache
   19.80 +exec_prefix=NONE
   19.81 +host=NONE
   19.82 +no_create=
   19.83 +nonopt=NONE
   19.84 +no_recursion=
   19.85 +prefix=NONE
   19.86 +program_prefix=NONE
   19.87 +program_suffix=NONE
   19.88 +program_transform_name=s,x,x,
   19.89 +silent=
   19.90 +site=
   19.91 +srcdir=
   19.92 +target=NONE
   19.93 +verbose=
   19.94 +x_includes=NONE
   19.95 +x_libraries=NONE
   19.96 +bindir='${exec_prefix}/bin'
   19.97 +sbindir='${exec_prefix}/sbin'
   19.98 +libexecdir='${exec_prefix}/libexec'
   19.99 +datadir='${prefix}/share'
  19.100 +sysconfdir='${prefix}/etc'
  19.101 +sharedstatedir='${prefix}/com'
  19.102 +localstatedir='${prefix}/var'
  19.103 +libdir='${exec_prefix}/lib'
  19.104 +includedir='${prefix}/include'
  19.105 +oldincludedir='/usr/include'
  19.106 +infodir='${prefix}/info'
  19.107 +mandir='${prefix}/man'
  19.108 +
  19.109 +# Initialize some other variables.
  19.110 +subdirs=
  19.111 +MFLAGS= MAKEFLAGS=
  19.112 +SHELL=${CONFIG_SHELL-/bin/sh}
  19.113 +# Maximum number of lines to put in a shell here document.
  19.114 +: ${ac_max_here_lines=48}
  19.115 +# Sed expression to map a string onto a valid sh and CPP variable names.
  19.116 +ac_tr_sh='sed -e y%*+%pp%;s%[^a-zA-Z0-9_]%_%g'
  19.117 +ac_tr_cpp='sed -e y%*abcdefghijklmnopqrstuvwxyz%PABCDEFGHIJKLMNOPQRSTUVWXYZ%;s%[^A-Z0-9_]%_%g'
  19.118 +
  19.119 +ac_prev=
  19.120 +for ac_option
  19.121 +do
  19.122 +  # If the previous option needs an argument, assign it.
  19.123 +  if test -n "$ac_prev"; then
  19.124 +    eval "$ac_prev=\$ac_option"
  19.125 +    ac_prev=
  19.126 +    continue
  19.127 +  fi
  19.128 +
  19.129 +  case "$ac_option" in
  19.130 +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  19.131 +  *) ac_optarg= ;;
  19.132 +  esac
  19.133 +
  19.134 +  # Accept the important Cygnus configure options, so we can diagnose typos.
  19.135 +
  19.136 +  case "$ac_option" in
  19.137 +
  19.138 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  19.139 +    ac_prev=bindir ;;
  19.140 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  19.141 +    bindir="$ac_optarg" ;;
  19.142 +
  19.143 +  -build | --build | --buil | --bui | --bu)
  19.144 +    ac_prev=build ;;
  19.145 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  19.146 +    build="$ac_optarg" ;;
  19.147 +
  19.148 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  19.149 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  19.150 +    ac_prev=cache_file ;;
  19.151 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  19.152 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  19.153 +    cache_file="$ac_optarg" ;;
  19.154 +
  19.155 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  19.156 +    ac_prev=datadir ;;
  19.157 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  19.158 +  | --da=*)
  19.159 +    datadir="$ac_optarg" ;;
  19.160 +
  19.161 +  -disable-* | --disable-*)
  19.162 +    ac_feature=`echo "$ac_option"|sed -e 's/-*disable-//'`
  19.163 +    # Reject names that are not valid shell variable names.
  19.164 +    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
  19.165 +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  19.166 +    fi
  19.167 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  19.168 +    eval "enable_${ac_feature}=no" ;;
  19.169 +
  19.170 +  -enable-* | --enable-*)
  19.171 +    ac_feature=`echo "$ac_option"|sed -e 's/-*enable-//' -e 's/=.*//'`
  19.172 +    # Reject names that are not valid shell variable names.
  19.173 +    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
  19.174 +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  19.175 +    fi
  19.176 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  19.177 +    case "$ac_option" in
  19.178 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  19.179 +      *) ac_optarg=yes ;;
  19.180 +    esac
  19.181 +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  19.182 +
  19.183 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  19.184 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  19.185 +  | --exec | --exe | --ex)
  19.186 +    ac_prev=exec_prefix ;;
  19.187 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  19.188 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  19.189 +  | --exec=* | --exe=* | --ex=*)
  19.190 +    exec_prefix="$ac_optarg" ;;
  19.191 +
  19.192 +  -gas | --gas | --ga | --g)
  19.193 +    # Obsolete; use --with-gas.
  19.194 +    with_gas=yes ;;
  19.195 +
  19.196 +  -help | --help | --hel | --he)
  19.197 +    # Omit some internal or obsolete options to make the list less imposing.
  19.198 +    # This message is too long to be a string in the A/UX 3.1 sh.
  19.199 +    cat <<\EOF
  19.200 +`configure' configures software source code packages to adapt to many kinds
  19.201 +of systems.
  19.202 +
  19.203 +Usage: configure [OPTION]... [VAR=VALUE]... [HOST]
  19.204 +
  19.205 +To safely assign special values to environment variables (e.g., CC,
  19.206 +CFLAGS...), give to `configure' the definition as VAR=VALUE.
  19.207 +
  19.208 +Defaults for the options are specified in brackets.
  19.209 +
  19.210 +Configuration:
  19.211 +  --cache-file=FILE       cache test results in FILE
  19.212 +  --help                  print this message
  19.213 +  --no-create             do not create output files
  19.214 +  --quiet, --silent       do not print \`checking...' messages
  19.215 +  --version               print the version of autoconf that created configure
  19.216 +
  19.217 +Directory and file names:
  19.218 +  --prefix=PREFIX         install architecture-independent files in PREFIX
  19.219 +                          [$ac_default_prefix]
  19.220 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  19.221 +                          [same as prefix]
  19.222 +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  19.223 +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  19.224 +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  19.225 +  --datadir=DIR           read-only architecture-independent data in DIR
  19.226 +                          [PREFIX/share]
  19.227 +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  19.228 +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  19.229 +                          [PREFIX/com]
  19.230 +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  19.231 +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  19.232 +  --includedir=DIR        C header files in DIR [PREFIX/include]
  19.233 +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  19.234 +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  19.235 +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  19.236 +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  19.237 +
  19.238 +Program names:
  19.239 +  --program-prefix=PREFIX prepend PREFIX to installed program names
  19.240 +  --program-suffix=SUFFIX append SUFFIX to installed program names
  19.241 +  --program-transform-name=PROGRAM
  19.242 +                          run sed PROGRAM on installed program names
  19.243 +
  19.244 +EOF
  19.245 +    cat <<\EOF
  19.246 +Host type:
  19.247 +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  19.248 +  --host=HOST             configure for HOST [guessed]
  19.249 +  --target=TARGET         configure for TARGET [TARGET=HOST]
  19.250 +
  19.251 +Features and packages:
  19.252 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  19.253 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  19.254 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  19.255 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  19.256 +  --x-includes=DIR        X include files are in DIR
  19.257 +  --x-libraries=DIR       X library files are in DIR
  19.258 +EOF
  19.259 +    test -n "$ac_arg_enable_help" && echo "
  19.260 +--enable options recognized:$ac_arg_enable_help"
  19.261 +    test -n "$ac_arg_with_help" && echo "
  19.262 +--with options recognized:$ac_arg_with_help"
  19.263 +    test -n "$ac_arg_var_help" && echo "
  19.264 +Some of the influent environment variables:$ac_arg_var_help"
  19.265 +    exit 0 ;;
  19.266 +
  19.267 +  -host | --host | --hos | --ho)
  19.268 +    ac_prev=host ;;
  19.269 +  -host=* | --host=* | --hos=* | --ho=*)
  19.270 +    host="$ac_optarg" ;;
  19.271 +
  19.272 +  -includedir | --includedir | --includedi | --included | --include \
  19.273 +  | --includ | --inclu | --incl | --inc)
  19.274 +    ac_prev=includedir ;;
  19.275 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  19.276 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  19.277 +    includedir="$ac_optarg" ;;
  19.278 +
  19.279 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  19.280 +    ac_prev=infodir ;;
  19.281 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  19.282 +    infodir="$ac_optarg" ;;
  19.283 +
  19.284 +  -libdir | --libdir | --libdi | --libd)
  19.285 +    ac_prev=libdir ;;
  19.286 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  19.287 +    libdir="$ac_optarg" ;;
  19.288 +
  19.289 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  19.290 +  | --libexe | --libex | --libe)
  19.291 +    ac_prev=libexecdir ;;
  19.292 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  19.293 +  | --libexe=* | --libex=* | --libe=*)
  19.294 +    libexecdir="$ac_optarg" ;;
  19.295 +
  19.296 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  19.297 +  | --localstate | --localstat | --localsta | --localst \
  19.298 +  | --locals | --local | --loca | --loc | --lo)
  19.299 +    ac_prev=localstatedir ;;
  19.300 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  19.301 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  19.302 +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  19.303 +    localstatedir="$ac_optarg" ;;
  19.304 +
  19.305 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  19.306 +    ac_prev=mandir ;;
  19.307 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  19.308 +    mandir="$ac_optarg" ;;
  19.309 +
  19.310 +  -nfp | --nfp | --nf)
  19.311 +    # Obsolete; use --without-fp.
  19.312 +    with_fp=no ;;
  19.313 +
  19.314 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  19.315 +  | --no-cr | --no-c)
  19.316 +    no_create=yes ;;
  19.317 +
  19.318 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  19.319 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  19.320 +    no_recursion=yes ;;
  19.321 +
  19.322 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  19.323 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  19.324 +  | --oldin | --oldi | --old | --ol | --o)
  19.325 +    ac_prev=oldincludedir ;;
  19.326 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  19.327 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  19.328 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  19.329 +    oldincludedir="$ac_optarg" ;;
  19.330 +
  19.331 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  19.332 +    ac_prev=prefix ;;
  19.333 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  19.334 +    prefix="$ac_optarg" ;;
  19.335 +
  19.336 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  19.337 +  | --program-pre | --program-pr | --program-p)
  19.338 +    ac_prev=program_prefix ;;
  19.339 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  19.340 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  19.341 +    program_prefix="$ac_optarg" ;;
  19.342 +
  19.343 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  19.344 +  | --program-suf | --program-su | --program-s)
  19.345 +    ac_prev=program_suffix ;;
  19.346 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  19.347 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  19.348 +    program_suffix="$ac_optarg" ;;
  19.349 +
  19.350 +  -program-transform-name | --program-transform-name \
  19.351 +  | --program-transform-nam | --program-transform-na \
  19.352 +  | --program-transform-n | --program-transform- \
  19.353 +  | --program-transform | --program-transfor \
  19.354 +  | --program-transfo | --program-transf \
  19.355 +  | --program-trans | --program-tran \
  19.356 +  | --progr-tra | --program-tr | --program-t)
  19.357 +    ac_prev=program_transform_name ;;
  19.358 +  -program-transform-name=* | --program-transform-name=* \
  19.359 +  | --program-transform-nam=* | --program-transform-na=* \
  19.360 +  | --program-transform-n=* | --program-transform-=* \
  19.361 +  | --program-transform=* | --program-transfor=* \
  19.362 +  | --program-transfo=* | --program-transf=* \
  19.363 +  | --program-trans=* | --program-tran=* \
  19.364 +  | --progr-tra=* | --program-tr=* | --program-t=*)
  19.365 +    program_transform_name="$ac_optarg" ;;
  19.366 +
  19.367 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  19.368 +  | -silent | --silent | --silen | --sile | --sil)
  19.369 +    silent=yes ;;
  19.370 +
  19.371 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  19.372 +    ac_prev=sbindir ;;
  19.373 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  19.374 +  | --sbi=* | --sb=*)
  19.375 +    sbindir="$ac_optarg" ;;
  19.376 +
  19.377 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  19.378 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  19.379 +  | --sharedst | --shareds | --shared | --share | --shar \
  19.380 +  | --sha | --sh)
  19.381 +    ac_prev=sharedstatedir ;;
  19.382 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  19.383 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  19.384 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  19.385 +  | --sha=* | --sh=*)
  19.386 +    sharedstatedir="$ac_optarg" ;;
  19.387 +
  19.388 +  -site | --site | --sit)
  19.389 +    ac_prev=site ;;
  19.390 +  -site=* | --site=* | --sit=*)
  19.391 +    site="$ac_optarg" ;;
  19.392 +
  19.393 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  19.394 +    ac_prev=srcdir ;;
  19.395 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  19.396 +    srcdir="$ac_optarg" ;;
  19.397 +
  19.398 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  19.399 +  | --syscon | --sysco | --sysc | --sys | --sy)
  19.400 +    ac_prev=sysconfdir ;;
  19.401 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  19.402 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  19.403 +    sysconfdir="$ac_optarg" ;;
  19.404 +
  19.405 +  -target | --target | --targe | --targ | --tar | --ta | --t)
  19.406 +    ac_prev=target ;;
  19.407 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  19.408 +    target="$ac_optarg" ;;
  19.409 +
  19.410 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  19.411 +    verbose=yes ;;
  19.412 +
  19.413 +  -version | --version | --versio | --versi | --vers)
  19.414 +    echo "configure generated by autoconf version 2.14.1"
  19.415 +    exit 0 ;;
  19.416 +
  19.417 +  -with-* | --with-*)
  19.418 +    ac_package=`echo "$ac_option"|sed -e 's/-*with-//' -e 's/=.*//'`
  19.419 +    # Reject names that are not valid shell variable names.
  19.420 +    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
  19.421 +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  19.422 +    fi
  19.423 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  19.424 +    case "$ac_option" in
  19.425 +      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  19.426 +      *) ac_optarg=yes ;;
  19.427 +    esac
  19.428 +    eval "with_${ac_package}='$ac_optarg'" ;;
  19.429 +
  19.430 +  -without-* | --without-*)
  19.431 +    ac_package=`echo "$ac_option"|sed -e 's/-*without-//'`
  19.432 +    # Reject names that are not valid shell variable names.
  19.433 +    if echo "$ac_feature" | grep '[^-a-zA-Z0-9_]' >/dev/null 2>&1; then
  19.434 +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  19.435 +    fi
  19.436 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  19.437 +    eval "with_${ac_package}=no" ;;
  19.438 +
  19.439 +  --x)
  19.440 +    # Obsolete; use --with-x.
  19.441 +    with_x=yes ;;
  19.442 +
  19.443 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  19.444 +  | --x-incl | --x-inc | --x-in | --x-i)
  19.445 +    ac_prev=x_includes ;;
  19.446 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  19.447 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  19.448 +    x_includes="$ac_optarg" ;;
  19.449 +
  19.450 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  19.451 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  19.452 +    ac_prev=x_libraries ;;
  19.453 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  19.454 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  19.455 +    x_libraries="$ac_optarg" ;;
  19.456 +
  19.457 +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  19.458 +    ;;
  19.459 +
  19.460 +  *=*)
  19.461 +    ac_envvar=`echo $ac_option|sed -e 's/=.*//'`
  19.462 +    # Reject names that are not valid shell variable names.
  19.463 +    if test -n "`echo $ac_envvar| sed 's/[_a-zA-Z0-9]//g'`"; then
  19.464 +      { echo "configure: error: $ac_envvar: invalid variable name" 1>&2; exit 1; }
  19.465 +    fi
  19.466 +    eval "${ac_envvar}='$ac_optarg'"
  19.467 +    export $ac_envvar ;;
  19.468 +
  19.469 +  *)
  19.470 +    if echo "$ac_feature" | grep '[^-a-zA-Z0-9.]' >/dev/null 2>&1; then
  19.471 +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  19.472 +    fi
  19.473 +    if test "x$nonopt" != xNONE; then
  19.474 +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  19.475 +    fi
  19.476 +    nonopt="$ac_option"
  19.477 +    ;;
  19.478 +
  19.479 +  esac
  19.480 +done
  19.481 +
  19.482 +if test -n "$ac_prev"; then
  19.483 +  { echo "configure: error: missing argument to --\`echo $ac_prev | sed 's/_/-/g'\`" 1>&2; exit 1; }
  19.484 +fi
  19.485 +
  19.486 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  19.487 +
  19.488 +# File descriptor usage:
  19.489 +# 0 standard input
  19.490 +# 1 file creation
  19.491 +# 2 errors and warnings
  19.492 +# 3 some systems may open it to /dev/tty
  19.493 +# 4 used on the Kubota Titan
  19.494 +# 6 checking for... messages and results
  19.495 +# 5 compiler messages saved in config.log
  19.496 +if test "$silent" = yes; then
  19.497 +  exec 6>/dev/null
  19.498 +else
  19.499 +  exec 6>&1
  19.500 +fi
  19.501 +exec 5>./config.log
  19.502 +
  19.503 +echo "\
  19.504 +This file contains any messages produced by compilers while
  19.505 +running configure, to aid debugging if configure makes a mistake.
  19.506 +" 1>&5
  19.507 +
  19.508 +# Strip out --no-create and --no-recursion so they do not pile up.
  19.509 +# Also quote any args containing shell meta-characters.
  19.510 +ac_configure_args=
  19.511 +for ac_arg
  19.512 +do
  19.513 +  case "$ac_arg" in
  19.514 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  19.515 +  | --no-cr | --no-c) ;;
  19.516 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  19.517 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  19.518 +  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  19.519 +  ac_arg=`echo "$ac_arg"|sed "s/'/'\\\\\\\\''/g"`
  19.520 +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  19.521 +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  19.522 +  esac
  19.523 +done
  19.524 +
  19.525 +# NLS nuisances.
  19.526 +# Only set these to C if already set.  These must not be set unconditionally
  19.527 +# because not all systems understand e.g. LANG=C (notably SCO).
  19.528 +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  19.529 +# Non-C LC_CTYPE values break the ctype check.
  19.530 +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  19.531 +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  19.532 +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  19.533 +if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  19.534 +
  19.535 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  19.536 +rm -rf conftest* confdefs.h
  19.537 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  19.538 +echo >confdefs.h
  19.539 +
  19.540 +# A filename unique to this package, relative to the directory that
  19.541 +# configure is in, which we can look for to find out if srcdir is correct.
  19.542 +ac_unique_file=src/Inventor/Gtk/SoGtk.h
  19.543 +
  19.544 +# Find the source files, if location was not specified.
  19.545 +if test -z "$srcdir"; then
  19.546 +  ac_srcdir_defaulted=yes
  19.547 +  # Try the directory containing this script, then its parent.
  19.548 +  ac_prog=$0
  19.549 +  ac_confdir=`echo "$ac_prog"|sed 's%/[^/][^/]*$%%'`
  19.550 +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  19.551 +  srcdir=$ac_confdir
  19.552 +  if test ! -r $srcdir/$ac_unique_file; then
  19.553 +    srcdir=..
  19.554 +  fi
  19.555 +else
  19.556 +  ac_srcdir_defaulted=no
  19.557 +fi
  19.558 +if test ! -r $srcdir/$ac_unique_file; then
  19.559 +  if test "$ac_srcdir_defaulted" = yes; then
  19.560 +    { echo "configure: error: cannot find sources in $ac_confdir or .." 1>&2; exit 1; }
  19.561 +  else
  19.562 +    { echo "configure: error: cannot find sources in $srcdir" 1>&2; exit 1; }
  19.563 +  fi
  19.564 +fi
  19.565 +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  19.566 +
  19.567 +# Prefer explicitly selected file to automatically selected ones.
  19.568 +if test -z "$CONFIG_SITE"; then
  19.569 +  if test "x$prefix" != xNONE; then
  19.570 +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  19.571 +  else
  19.572 +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  19.573 +  fi
  19.574 +fi
  19.575 +for ac_site_file in $CONFIG_SITE; do
  19.576 +  if test -r "$ac_site_file"; then
  19.577 +    echo "loading site script $ac_site_file"
  19.578 +    . "$ac_site_file"
  19.579 +  fi
  19.580 +done
  19.581 +
  19.582 +if test -r "$cache_file"; then
  19.583 +  echo "loading cache $cache_file"
  19.584 +      test -f "$cache_file" && . $cache_file
  19.585 +else
  19.586 +  echo "creating cache $cache_file"
  19.587 +  >$cache_file
  19.588 +fi
  19.589 +
  19.590 +ac_ext=c
  19.591 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19.592 +ac_cpp='$CPP $CPPFLAGS'
  19.593 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19.594 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19.595 +cross_compiling=$ac_cv_prog_cc_cross
  19.596 +
  19.597 +ac_exeext=
  19.598 +ac_objext=o
  19.599 +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  19.600 +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  19.601 +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  19.602 +    ac_n= ac_c='
  19.603 +' ac_t='	'
  19.604 +  else
  19.605 +    ac_n=-n ac_c= ac_t=
  19.606 +  fi
  19.607 +else
  19.608 +  ac_n= ac_c='\c' ac_t=
  19.609 +fi
  19.610 +
  19.611 +
  19.612 +
  19.613 +
  19.614 +for ac_prog in $CCC c++ g++ gpp CC cxx cc++ cl
  19.615 +do
  19.616 +# Extract the first word of "$ac_prog", so it can be a program name with args.
  19.617 +set dummy $ac_prog; ac_word=$2
  19.618 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
  19.619 +echo "configure:617: checking for $ac_word" 1>&5
  19.620 +if test "${ac_cv_prog_CXX+set}" = set; then
  19.621 +  echo $ac_n "(cached) $ac_c" 1>&6
  19.622 +else
  19.623 +  if test -n "$CXX"; then
  19.624 +  ac_cv_prog_CXX="$CXX" # Let the user override the test.
  19.625 +else
  19.626 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  19.627 +  ac_dummy="$PATH"
  19.628 +  for ac_dir in $ac_dummy; do
  19.629 +    test -z "$ac_dir" && ac_dir=.
  19.630 +    if test -f $ac_dir/$ac_word; then
  19.631 +      ac_cv_prog_CXX="$ac_prog"
  19.632 +      break
  19.633 +    fi
  19.634 +  done
  19.635 +  IFS="$ac_save_ifs"
  19.636 +fi
  19.637 +fi
  19.638 +CXX="$ac_cv_prog_CXX"
  19.639 +if test -n "$CXX"; then
  19.640 +  echo "$ac_t""$CXX" 1>&6
  19.641 +else
  19.642 +  echo "$ac_t""no" 1>&6
  19.643 +fi
  19.644 +
  19.645 +test -n "$CXX" && break
  19.646 +done
  19.647 +test -n "$CXX" || CXX="g++"
  19.648 +
  19.649 +
  19.650 +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works... $ac_c" 1>&6
  19.651 +echo "configure:649: checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
  19.652 +
  19.653 +ac_ext=C
  19.654 +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19.655 +ac_cpp='$CXXCPP $CPPFLAGS'
  19.656 +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19.657 +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19.658 +cross_compiling=$ac_cv_prog_cxx_cross
  19.659 +
  19.660 +cat >conftest.$ac_ext <<EOF
  19.661 +
  19.662 +#line 660 "configure"
  19.663 +#include "confdefs.h"
  19.664 +
  19.665 +int main(){return(0);}
  19.666 +EOF
  19.667 +if { (eval echo configure:665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  19.668 +  ac_cv_prog_cxx_works=yes
  19.669 +  # If we can't run a trivial program, we are probably using a cross compiler.
  19.670 +  if (./conftest; exit) 2>/dev/null; then
  19.671 +    ac_cv_prog_cxx_cross=no
  19.672 +  else
  19.673 +    ac_cv_prog_cxx_cross=yes
  19.674 +  fi
  19.675 +else
  19.676 +  echo "configure: failed program was:" >&5
  19.677 +  cat conftest.$ac_ext >&5
  19.678 +  ac_cv_prog_cxx_works=no
  19.679 +fi
  19.680 +rm -fr conftest*
  19.681 +ac_ext=c
  19.682 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19.683 +ac_cpp='$CPP $CPPFLAGS'
  19.684 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19.685 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19.686 +cross_compiling=$ac_cv_prog_cc_cross
  19.687 +
  19.688 +echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
  19.689 +if test $ac_cv_prog_cxx_works = no; then
  19.690 +  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
  19.691 +fi
  19.692 +echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ac_c" 1>&6
  19.693 +echo "configure:691: checking whether the C++ compiler ($CXX $CXXFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
  19.694 +echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
  19.695 +cross_compiling=$ac_cv_prog_cxx_cross
  19.696 +
  19.697 +echo $ac_n "checking whether we are using GNU C++... $ac_c" 1>&6
  19.698 +echo "configure:696: checking whether we are using GNU C++" 1>&5
  19.699 +if test "${ac_cv_prog_gxx+set}" = set; then
  19.700 +  echo $ac_n "(cached) $ac_c" 1>&6
  19.701 +else
  19.702 +  cat >conftest.C <<EOF
  19.703 +#ifdef __GNUC__
  19.704 +  yes;
  19.705 +#endif
  19.706 +EOF
  19.707 +if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:705: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  19.708 +  ac_cv_prog_gxx=yes
  19.709 +else
  19.710 +  ac_cv_prog_gxx=no
  19.711 +fi
  19.712 +fi
  19.713 +echo "$ac_t""$ac_cv_prog_gxx" 1>&6
  19.714 +
  19.715 +if test $ac_cv_prog_gxx = yes; then
  19.716 +  GXX=yes
  19.717 +else
  19.718 +  GXX=
  19.719 +fi
  19.720 +
  19.721 +ac_test_CXXFLAGS="${CXXFLAGS+set}"
  19.722 +ac_save_CXXFLAGS="$CXXFLAGS"
  19.723 +CXXFLAGS=
  19.724 +echo $ac_n "checking whether ${CXX-g++} accepts -g... $ac_c" 1>&6
  19.725 +echo "configure:723: checking whether ${CXX-g++} accepts -g" 1>&5
  19.726 +if test "${ac_cv_prog_cxx_g+set}" = set; then
  19.727 +  echo $ac_n "(cached) $ac_c" 1>&6
  19.728 +else
  19.729 +  echo 'void f(){}' >conftest.cc
  19.730 +if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
  19.731 +  ac_cv_prog_cxx_g=yes
  19.732 +else
  19.733 +  ac_cv_prog_cxx_g=no
  19.734 +fi
  19.735 +rm -f conftest*
  19.736 +
  19.737 +fi
  19.738 +echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
  19.739 +if test "$ac_test_CXXFLAGS" = set; then
  19.740 +  CXXFLAGS="$ac_save_CXXFLAGS"
  19.741 +elif test $ac_cv_prog_cxx_g = yes; then
  19.742 +  if test "$GXX" = yes; then
  19.743 +    CXXFLAGS="-g -O2"
  19.744 +  else
  19.745 +    CXXFLAGS="-g"
  19.746 +  fi
  19.747 +else
  19.748 +  if test "$GXX" = yes; then
  19.749 +    CXXFLAGS="-O2"
  19.750 +  else
  19.751 +    CXXFLAGS=
  19.752 +  fi
  19.753 +fi
  19.754 +
  19.755 +ac_ext=C
  19.756 +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  19.757 +ac_cpp='$CXXCPP $CPPFLAGS'
  19.758 +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  19.759 +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  19.760 +cross_compiling=$ac_cv_prog_cxx_cross
  19.761 +
  19.762 +
  19.763 +if test "x$GXX" != "xyes"; then
  19.764 +  echo "configure: warning: You are not using the GNU compiler -- other compilers are not well supported at the moment" 1>&2
  19.765 +fi
  19.766 +
  19.767 +
  19.768 +SOGTK_MAJOR_VERSION=0
  19.769 +SOGTK_MINOR_VERSION=8
  19.770 +SOGTK_MICRO_VERSION=0
  19.771 +SOGTK_INTERFACE_AGE=0
  19.772 +SOGTK_BINARY_AGE=0
  19.773 +SOGTK_VERSION=$SOGTK_MAJOR_VERSION.$SOGTK_MINOR_VERSION.$SOGTK_MICRO_VERSION
  19.774 +
  19.775 +
  19.776 +
  19.777 +
  19.778 +
  19.779 +
  19.780 +
  19.781 +
  19.782 +LT_RELEASE=$SOGTK_MAJOR_VERSION.$SOGTK_MINOR_VERSION
  19.783 +LT_CURRENT=`expr $SOGTK_MICRO_VERSION - $SOGTK_INTERFACE_AGE`
  19.784 +LT_REVISION=$SOGTK_INTERFACE_AGE
  19.785 +LT_AGE=`expr $SOGTK_BINARY_AGE - $SOGTK_INTERFACE_AGE`
  19.786 +
  19.787 +
  19.788 +
  19.789 +
  19.790 +
  19.791 +VERSION=$SOGTK_VERSION
  19.792 +
  19.793 +
  19.794 +
  19.795 +ac_aux_dir=
  19.796 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  19.797 +  if test -f $ac_dir/install-sh; then
  19.798 +    ac_aux_dir=$ac_dir
  19.799 +    ac_install_sh="$ac_aux_dir/install-sh -c"
  19.800 +    break
  19.801 +  elif test -f $ac_dir/install.sh; then
  19.802 +    ac_aux_dir=$ac_dir
  19.803 +    ac_install_sh="$ac_aux_dir/install.sh -c"
  19.804 +    break
  19.805 +  elif test -f $ac_dir/shtool; then
  19.806 +    ac_aux_dir=$ac_dir
  19.807 +    ac_install_sh="$ac_aux_dir/shtool install -c"
  19.808 +    break
  19.809 +  fi
  19.810 +done
  19.811 +if test -z "$ac_aux_dir"; then
  19.812 +  { echo "configure: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  19.813 +fi
  19.814 +ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  19.815 +ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  19.816 +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  19.817 +
  19.818 +# Find a good install program.  We prefer a C program (faster),
  19.819 +# so one script is as good as another.  But avoid the broken or
  19.820 +# incompatible versions:
  19.821 +# SysV /etc/install, /usr/sbin/install
  19.822 +# SunOS /usr/etc/install
  19.823 +# IRIX /sbin/install
  19.824 +# AIX /bin/install
  19.825 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  19.826 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  19.827 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  19.828 +# ./install, which can be erroneously created by make from ./install.sh.
  19.829 +echo $ac_n "checking for a BSD compatible install... $ac_c" 1>&6
  19.830 +echo "configure:828: checking for a BSD compatible install" 1>&5
  19.831 +if test -z "$INSTALL"; then
  19.832 +if test "${ac_cv_path_install+set}" = set; then
  19.833 +  echo $ac_n "(cached) $ac_c" 1>&6
  19.834 +else
  19.835 +    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  19.836 +  for ac_dir in $PATH; do
  19.837 +    # Account for people who put trailing slashes in PATH elements.
  19.838 +    case "$ac_dir/" in
  19.839 +    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  19.840 +    *)
  19.841 +      # OSF1 and SCO ODT 3.0 have their own names for install.
  19.842 +      # Don't use installbsd from OSF since it installs stuff as root
  19.843 +      # by default.
  19.844 +      for ac_prog in ginstall scoinst install; do
  19.845 +        if test -f $ac_dir/$ac_prog; then
  19.846 +	  if test $ac_prog = install &&
  19.847 +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  19.848 +	    # AIX install.  It has an incompatible calling convention.
  19.849 +	    :
  19.850 +	  elif test $ac_prog = install &&
  19.851 +	    grep pwplus $ac_dir/$ac_prog >/dev/null 2>&1; then
  19.852 +	    # program-specific install script used by HP pwplus--don't use.
  19.853 +	    :
  19.854 +	  else
  19.855 +	    ac_cv_path_install="$ac_dir/$ac_prog -c"
  19.856 +	    break 2
  19.857 +	  fi
  19.858 +	fi
  19.859 +      done
  19.860 +      ;;
  19.861 +    esac
  19.862 +  done
  19.863 +  IFS="$ac_save_IFS"
  19.864 +
  19.865 +fi
  19.866 +  if test "${ac_cv_path_install+set}" = set; then
  19.867 +    INSTALL="$ac_cv_path_install"
  19.868 +  else
  19.869 +    # As a last resort, use the slow shell script.  We don't cache a
  19.870 +    # path for INSTALL within a source directory, because that will
  19.871 +    # break other packages using the cache if that directory is
  19.872 +    # removed, or if the path is relative.
  19.873 +    INSTALL="$ac_install_sh"
  19.874 +  fi
  19.875 +fi
  19.876 +echo "$ac_t""$INSTALL" 1>&6
  19.877 +
  19.878 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  19.879 +# It thinks the first close brace ends the variable substitution.
  19.880 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  19.881 +
  19.882 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  19.883 +
  19.884 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  19.885 +
  19.886 +echo $ac_n "checking whether build environment is sane... $ac_c" 1>&6
  19.887 +echo "configure:885: checking whether build environment is sane" 1>&5
  19.888 +# Just in case
  19.889 +sleep 1
  19.890 +echo timestamp > conftestfile
  19.891 +# Do `set' in a subshell so we don't clobber the current shell's
  19.892 +# arguments.  Must try -L first in case configure is actually a
  19.893 +# symlink; some systems play weird games with the mod time of symlinks
  19.894 +# (eg FreeBSD returns the mod time of the symlink's containing
  19.895 +# directory).
  19.896 +if (
  19.897 +   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  19.898 +   if test "$*" = "X"; then
  19.899 +      # -L didn't work.
  19.900 +      set X `ls -t $srcdir/configure conftestfile`
  19.901 +   fi
  19.902 +   if test "$*" != "X $srcdir/configure conftestfile" \
  19.903 +      && test "$*" != "X conftestfile $srcdir/configure"; then
  19.904 +
  19.905 +      # If neither matched, then we have a broken ls.  This can happen
  19.906 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
  19.907 +      # broken ls alias from the environment.  This has actually
  19.908 +      # happened.  Such a system could not be considered "sane".
  19.909 +      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  19.910 +alias in your environment" 1>&2; exit 1; }
  19.911 +   fi
  19.912 +
  19.913 +   test "$2" = conftestfile
  19.914 +   )
  19.915 +then
  19.916 +   # Ok.
  19.917 +   :
  19.918 +else
  19.919 +   { echo "configure: error: newly created file is older than distributed files!
  19.920 +Check your system clock" 1>&2; exit 1; }
  19.921 +fi
  19.922 +rm -f conftest*
  19.923 +echo "$ac_t""yes" 1>&6
  19.924 +if test "$program_transform_name" = s,x,x,; then
  19.925 +  program_transform_name=
  19.926 +else
  19.927 +  # Double any \ or $.  echo might interpret backslashes.
  19.928 +  cat <<\EOF_SED >conftestsed
  19.929 +s,\\,\\\\,g; s,\$,$$,g
  19.930 +EOF_SED
  19.931 +  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  19.932 +  rm -f conftestsed
  19.933 +fi
  19.934 +test "$program_prefix" != NONE &&
  19.935 +  program_transform_name="s,^,${program_prefix},;$program_transform_name"
  19.936 +# Use a double $ so make ignores it.
  19.937 +test "$program_suffix" != NONE &&
  19.938 +  program_transform_name="s,\$\$,${program_suffix},;$program_transform_name"
  19.939 +
  19.940 +# sed with no file args requires a program.
  19.941 +test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  19.942 +
  19.943 +
  19.944 +test x"${MISSING+set}" = xset || \
  19.945 +  MISSING="\${SHELL} `CDPATH=: && cd $ac_aux_dir && pwd`/missing"
  19.946 +if eval "$MISSING --run :"; then
  19.947 +  am_missing_run="$MISSING --run "
  19.948 +else
  19.949 +  am_missing_run=
  19.950 +  echo "configure: warning: \`missing' script is too old or missing" 1>&2
  19.951 +fi
  19.952 +
  19.953 +for ac_prog in mawk gawk nawk awk
  19.954 +do
  19.955 +# Extract the first word of "$ac_prog", so it can be a program name with args.
  19.956 +set dummy $ac_prog; ac_word=$2
  19.957 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
  19.958 +echo "configure:956: checking for $ac_word" 1>&5
  19.959 +if test "${ac_cv_prog_AWK+set}" = set; then
  19.960 +  echo $ac_n "(cached) $ac_c" 1>&6
  19.961 +else
  19.962 +  if test -n "$AWK"; then
  19.963 +  ac_cv_prog_AWK="$AWK" # Let the user override the test.
  19.964 +else
  19.965 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  19.966 +  ac_dummy="$PATH"
  19.967 +  for ac_dir in $ac_dummy; do
  19.968 +    test -z "$ac_dir" && ac_dir=.
  19.969 +    if test -f $ac_dir/$ac_word; then
  19.970 +      ac_cv_prog_AWK="$ac_prog"
  19.971 +      break
  19.972 +    fi
  19.973 +  done
  19.974 +  IFS="$ac_save_ifs"
  19.975 +fi
  19.976 +fi
  19.977 +AWK="$ac_cv_prog_AWK"
  19.978 +if test -n "$AWK"; then
  19.979 +  echo "$ac_t""$AWK" 1>&6
  19.980 +else
  19.981 +  echo "$ac_t""no" 1>&6
  19.982 +fi
  19.983 +
  19.984 +test -n "$AWK" && break
  19.985 +done
  19.986 +
  19.987 +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}... $ac_c" 1>&6
  19.988 +echo "configure:986: checking whether ${MAKE-make} sets \${MAKE}" 1>&5
  19.989 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  19.990 +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  19.991 +  echo $ac_n "(cached) $ac_c" 1>&6
  19.992 +else
  19.993 +  cat >conftestmake <<\EOF
  19.994 +all:
  19.995 +	@echo 'ac_maketemp="${MAKE}"'
  19.996 +EOF
  19.997 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19.998 +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  19.999 +if test -n "$ac_maketemp"; then
 19.1000 +  eval ac_cv_prog_make_${ac_make}_set=yes
 19.1001 +else
 19.1002 +  eval ac_cv_prog_make_${ac_make}_set=no
 19.1003 +fi
 19.1004 +rm -f conftestmake
 19.1005 +fi
 19.1006 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 19.1007 +  echo "$ac_t""yes" 1>&6
 19.1008 +  SET_MAKE=
 19.1009 +else
 19.1010 +  echo "$ac_t""no" 1>&6
 19.1011 +  SET_MAKE="MAKE=${MAKE-make}"
 19.1012 +fi
 19.1013 +
 19.1014 +
 19.1015 +# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 19.1016 +if test "${enable_dependency_tracking+set}" = set; then
 19.1017 +  enableval="$enable_dependency_tracking"
 19.1018 +  :
 19.1019 +fi
 19.1020 +
 19.1021 +if test "x$enable_dependency_tracking" = xno; then
 19.1022 +  AMDEP="#"
 19.1023 +else
 19.1024 +  am_depcomp="$ac_aux_dir/depcomp"
 19.1025 +  if test ! -f "$am_depcomp"; then
 19.1026 +    AMDEP="#"
 19.1027 +  else
 19.1028 +    AMDEP=
 19.1029 +  fi
 19.1030 +fi
 19.1031 +
 19.1032 +if test -z "$AMDEP"; then
 19.1033 +  AMDEPBACKSLASH='\'
 19.1034 +else
 19.1035 +  AMDEPBACKSLASH=
 19.1036 +fi
 19.1037 +
 19.1038 +
 19.1039 +
 19.1040 +
 19.1041 +
 19.1042 +if test -d .deps || mkdir .deps 2> /dev/null || test -d .deps; then
 19.1043 +  DEPDIR=.deps
 19.1044 +else
 19.1045 +  DEPDIR=_deps
 19.1046 +fi
 19.1047 +
 19.1048 +
 19.1049 +
 19.1050 +
 19.1051 +echo $ac_n "checking how to run the C++ preprocessor... $ac_c" 1>&6
 19.1052 +echo "configure:1050: checking how to run the C++ preprocessor" 1>&5
 19.1053 +if test -z "$CXXCPP"; then
 19.1054 +if test "${ac_cv_prog_CXXCPP+set}" = set; then
 19.1055 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1056 +else
 19.1057 +  ac_ext=C
 19.1058 +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 19.1059 +ac_cpp='$CXXCPP $CPPFLAGS'
 19.1060 +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 19.1061 +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 19.1062 +cross_compiling=$ac_cv_prog_cxx_cross
 19.1063 +  CXXCPP="${CXX-g++} -E"
 19.1064 +  cat >conftest.$ac_ext <<EOF
 19.1065 +#line 1063 "configure"
 19.1066 +#include "confdefs.h"
 19.1067 +#include <stdlib.h>
 19.1068 +EOF
 19.1069 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 19.1070 +{ (eval echo configure:1068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 19.1071 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 19.1072 +if test -z "$ac_err"; then
 19.1073 +  :
 19.1074 +else
 19.1075 +  echo "$ac_err" >&5
 19.1076 +  echo "configure: failed program was:" >&5
 19.1077 +  cat conftest.$ac_ext >&5
 19.1078 +  rm -rf conftest*
 19.1079 +  CXXCPP=/lib/cpp
 19.1080 +fi
 19.1081 +rm -f conftest*
 19.1082 +  ac_cv_prog_CXXCPP="$CXXCPP"
 19.1083 +ac_ext=C
 19.1084 +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 19.1085 +ac_cpp='$CXXCPP $CPPFLAGS'
 19.1086 +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 19.1087 +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 19.1088 +cross_compiling=$ac_cv_prog_cxx_cross
 19.1089 +
 19.1090 +fi
 19.1091 +CXXCPP="$ac_cv_prog_CXXCPP"
 19.1092 +fi
 19.1093 +echo "$ac_t""$CXXCPP" 1>&6
 19.1094 +
 19.1095 +
 19.1096 +
 19.1097 +PACKAGE=libSoGtk
 19.1098 +
 19.1099 +VERSION=$VERSION
 19.1100 +
 19.1101 +if test "`CDPATH=: && cd $srcdir && pwd`" != "`pwd`" &&
 19.1102 +   test -f $srcdir/config.status; then
 19.1103 +  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
 19.1104 +fi
 19.1105 +cat >>confdefs.h <<EOF
 19.1106 +#define PACKAGE "$PACKAGE"
 19.1107 +EOF
 19.1108 +
 19.1109 +cat >>confdefs.h <<EOF
 19.1110 +#define VERSION "$VERSION"
 19.1111 +EOF
 19.1112 +
 19.1113 +
 19.1114 +
 19.1115 +
 19.1116 +
 19.1117 +ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
 19.1118 +
 19.1119 +
 19.1120 +
 19.1121 +AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 19.1122 +
 19.1123 +
 19.1124 +
 19.1125 +AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
 19.1126 +
 19.1127 +
 19.1128 +
 19.1129 +AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 19.1130 +
 19.1131 +
 19.1132 +
 19.1133 +MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 19.1134 +
 19.1135 +
 19.1136 +
 19.1137 +AMTAR=${AMTAR-"${am_missing_run}tar"}
 19.1138 +
 19.1139 +
 19.1140 +
 19.1141 +if test -z "$install_sh"; then
 19.1142 +   install_sh="$ac_aux_dir/install-sh"
 19.1143 +   test -f "$install_sh" || install_sh="$ac_aux_dir/install.sh"
 19.1144 +   test -f "$install_sh" || install_sh="${am_missing_run}${ac_auxdir}/install-sh"
 19.1145 +         install_sh="`echo $install_sh | sed -e 's/\${SHELL}//'`"
 19.1146 +fi
 19.1147 +
 19.1148 +
 19.1149 +
 19.1150 +
 19.1151 +
 19.1152 +
 19.1153 +   
 19.1154 +
 19.1155 +
 19.1156 +
 19.1157 +
 19.1158 +
 19.1159 +
 19.1160 +depcc="$CXX"
 19.1161 +depcpp="$CXXCPP"
 19.1162 +echo $ac_n "checking dependency style of $depcc... $ac_c" 1>&6
 19.1163 +echo "configure:1161: checking dependency style of $depcc" 1>&5
 19.1164 +if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 19.1165 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1166 +else
 19.1167 +  
 19.1168 +if test -z "$AMDEP"; then
 19.1169 +  echo '#include "conftest.h"' > conftest.c
 19.1170 +  echo 'int i;' > conftest.h
 19.1171 +
 19.1172 +  am_cv_CXX_dependencies_compiler_type=none
 19.1173 +  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
 19.1174 +    case "$depmode" in
 19.1175 +    nosideeffect)
 19.1176 +      # after this tag, mechanisms are not by side-effect, so they'll
 19.1177 +      # only be used when explicitly requested
 19.1178 +      if test "x$enable_dependency_tracking" = xyes; then
 19.1179 +	continue
 19.1180 +      else
 19.1181 +	break
 19.1182 +      fi
 19.1183 +      ;;
 19.1184 +    none) break ;;
 19.1185 +    esac
 19.1186 +    if depmode="$depmode" \
 19.1187 +       source=conftest.c object=conftest.o \
 19.1188 +       depfile=conftest.Po tmpdepfile=conftest.TPo \
 19.1189 +       $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
 19.1190 +       grep conftest.h conftest.Po > /dev/null 2>&1; then
 19.1191 +      am_cv_CXX_dependencies_compiler_type="$depmode"
 19.1192 +      break
 19.1193 +    fi
 19.1194 +  done
 19.1195 +
 19.1196 +  rm -f conftest.*
 19.1197 +else
 19.1198 +  am_cv_CXX_dependencies_compiler_type=none
 19.1199 +fi
 19.1200 +
 19.1201 +fi
 19.1202 +
 19.1203 +echo "$ac_t""$am_cv_CXX_dependencies_compiler_type" 1>&6
 19.1204 +CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
 19.1205 +
 19.1206 +
 19.1207 +
 19.1208 +
 19.1209 +
 19.1210 +
 19.1211 +
 19.1212 +
 19.1213 +# Check whether --enable-static or --disable-static was given.
 19.1214 +if test "${enable_static+set}" = set; then
 19.1215 +  enableval="$enable_static"
 19.1216 +  p=${PACKAGE-default}
 19.1217 +case "$enableval" in
 19.1218 +yes) enable_static=yes ;;
 19.1219 +no) enable_static=no ;;
 19.1220 +*)
 19.1221 +  enable_static=no
 19.1222 +  # Look at the argument we got.  We use all the common list separators.
 19.1223 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 19.1224 +  for pkg in $enableval; do
 19.1225 +    if test "X$pkg" = "X$p"; then
 19.1226 +      enable_static=yes
 19.1227 +    fi
 19.1228 +  done
 19.1229 +  IFS="$ac_save_ifs"
 19.1230 +  ;;
 19.1231 +esac
 19.1232 +else
 19.1233 +  enable_static=no
 19.1234 +fi
 19.1235 +
 19.1236 +
 19.1237 +echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles... $ac_c" 1>&6
 19.1238 +echo "configure:1236: checking whether to enable maintainer-specific portions of Makefiles" 1>&5
 19.1239 +    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 19.1240 +if test "${enable_maintainer_mode+set}" = set; then
 19.1241 +  enableval="$enable_maintainer_mode"
 19.1242 +  USE_MAINTAINER_MODE=$enableval
 19.1243 +else
 19.1244 +  USE_MAINTAINER_MODE=no
 19.1245 +fi
 19.1246 +
 19.1247 +  echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
 19.1248 +  
 19.1249 +
 19.1250 +if test $USE_MAINTAINER_MODE = yes; then
 19.1251 +  MAINTAINER_MODE_TRUE=
 19.1252 +  MAINTAINER_MODE_FALSE='#'
 19.1253 +else
 19.1254 +  MAINTAINER_MODE_TRUE='#'
 19.1255 +  MAINTAINER_MODE_FALSE=
 19.1256 +fi
 19.1257 +  MAINT=$MAINTAINER_MODE_TRUE
 19.1258 +  
 19.1259 +
 19.1260 +
 19.1261 +echo $ac_n "checking how to run the C preprocessor... $ac_c" 1>&6
 19.1262 +echo "configure:1260: checking how to run the C preprocessor" 1>&5
 19.1263 +# On Suns, sometimes $CPP names a directory.
 19.1264 +if test -n "$CPP" && test -d "$CPP"; then
 19.1265 +  CPP=
 19.1266 +fi
 19.1267 +if test -z "$CPP"; then
 19.1268 +if test "${ac_cv_prog_CPP+set}" = set; then
 19.1269 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1270 +else
 19.1271 +    # This must be in double quotes, not single quotes, because CPP may get
 19.1272 +  # substituted into the Makefile and "${CC-cc}" will confuse make.
 19.1273 +  CPP="${CC-cc} -E"
 19.1274 +  # On the NeXT, cc -E runs the code through the compiler's parser,
 19.1275 +  # not just through cpp.
 19.1276 +  cat >conftest.$ac_ext <<EOF
 19.1277 +#line 1275 "configure"
 19.1278 +#include "confdefs.h"
 19.1279 +#include <assert.h>
 19.1280 +Syntax Error
 19.1281 +EOF
 19.1282 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 19.1283 +{ (eval echo configure:1281: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 19.1284 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 19.1285 +if test -z "$ac_err"; then
 19.1286 +  :
 19.1287 +else
 19.1288 +  echo "$ac_err" >&5
 19.1289 +  echo "configure: failed program was:" >&5
 19.1290 +  cat conftest.$ac_ext >&5
 19.1291 +  rm -rf conftest*
 19.1292 +  CPP="${CC-cc} -E -traditional-cpp"
 19.1293 +  cat >conftest.$ac_ext <<EOF
 19.1294 +#line 1292 "configure"
 19.1295 +#include "confdefs.h"
 19.1296 +#include <assert.h>
 19.1297 +Syntax Error
 19.1298 +EOF
 19.1299 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 19.1300 +{ (eval echo configure:1298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 19.1301 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 19.1302 +if test -z "$ac_err"; then
 19.1303 +  :
 19.1304 +else
 19.1305 +  echo "$ac_err" >&5
 19.1306 +  echo "configure: failed program was:" >&5
 19.1307 +  cat conftest.$ac_ext >&5
 19.1308 +  rm -rf conftest*
 19.1309 +  CPP="${CC-cc} -nologo -E"
 19.1310 +  cat >conftest.$ac_ext <<EOF
 19.1311 +#line 1309 "configure"
 19.1312 +#include "confdefs.h"
 19.1313 +#include <assert.h>
 19.1314 +Syntax Error
 19.1315 +EOF
 19.1316 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 19.1317 +{ (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 19.1318 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 19.1319 +if test -z "$ac_err"; then
 19.1320 +  :
 19.1321 +else
 19.1322 +  echo "$ac_err" >&5
 19.1323 +  echo "configure: failed program was:" >&5
 19.1324 +  cat conftest.$ac_ext >&5
 19.1325 +  rm -rf conftest*
 19.1326 +  CPP=/lib/cpp
 19.1327 +fi
 19.1328 +rm -f conftest*
 19.1329 +fi
 19.1330 +rm -f conftest*
 19.1331 +fi
 19.1332 +rm -f conftest*
 19.1333 +  ac_cv_prog_CPP="$CPP"
 19.1334 +fi
 19.1335 +  CPP="$ac_cv_prog_CPP"
 19.1336 +else
 19.1337 +  ac_cv_prog_CPP="$CPP"
 19.1338 +fi
 19.1339 +echo "$ac_t""$CPP" 1>&6
 19.1340 +
 19.1341 +# Check whether --enable-shared or --disable-shared was given.
 19.1342 +if test "${enable_shared+set}" = set; then
 19.1343 +  enableval="$enable_shared"
 19.1344 +  p=${PACKAGE-default}
 19.1345 +case "$enableval" in
 19.1346 +yes) enable_shared=yes ;;
 19.1347 +no) enable_shared=no ;;
 19.1348 +*)
 19.1349 +  enable_shared=no
 19.1350 +  # Look at the argument we got.  We use all the common list separators.
 19.1351 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 19.1352 +  for pkg in $enableval; do
 19.1353 +    if test "X$pkg" = "X$p"; then
 19.1354 +      enable_shared=yes
 19.1355 +    fi
 19.1356 +  done
 19.1357 +  IFS="$ac_save_ifs"
 19.1358 +  ;;
 19.1359 +esac
 19.1360 +else
 19.1361 +  enable_shared=yes
 19.1362 +fi
 19.1363 +
 19.1364 +# Check whether --enable-fast-install or --disable-fast-install was given.
 19.1365 +if test "${enable_fast_install+set}" = set; then
 19.1366 +  enableval="$enable_fast_install"
 19.1367 +  p=${PACKAGE-default}
 19.1368 +case "$enableval" in
 19.1369 +yes) enable_fast_install=yes ;;
 19.1370 +no) enable_fast_install=no ;;
 19.1371 +*)
 19.1372 +  enable_fast_install=no
 19.1373 +  # Look at the argument we got.  We use all the common list separators.
 19.1374 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 19.1375 +  for pkg in $enableval; do
 19.1376 +    if test "X$pkg" = "X$p"; then
 19.1377 +      enable_fast_install=yes
 19.1378 +    fi
 19.1379 +  done
 19.1380 +  IFS="$ac_save_ifs"
 19.1381 +  ;;
 19.1382 +esac
 19.1383 +else
 19.1384 +  enable_fast_install=yes
 19.1385 +fi
 19.1386 +
 19.1387 +
 19.1388 +echo $ac_n "checking host system type... $ac_c" 1>&6
 19.1389 +echo "configure:1387: checking host system type" 1>&5
 19.1390 +if test "x$ac_cv_host" = "x" || (test "x$host" != "xNONE" && test "x$host" != "x$ac_cv_host_alias"); then
 19.1391 +
 19.1392 +# Make sure we can run config.sub.
 19.1393 +  if $ac_config_sub sun4 >/dev/null 2>&1; then :
 19.1394 +    else { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
 19.1395 +  fi
 19.1396 +
 19.1397 +  ac_cv_host_alias=$host
 19.1398 +  case "$ac_cv_host_alias" in
 19.1399 +  NONE)
 19.1400 +    case $nonopt in
 19.1401 +    NONE)
 19.1402 +      if ac_cv_host_alias=`$ac_config_guess`; then :
 19.1403 +      else { echo "configure: error: cannot guess host type; you must specify one" 1>&2; exit 1; }
 19.1404 +      fi ;;
 19.1405 +    *) ac_cv_host_alias=$nonopt ;;
 19.1406 +    esac ;;
 19.1407 +  esac
 19.1408 +
 19.1409 +  ac_cv_host=`$ac_config_sub $ac_cv_host_alias`
 19.1410 +  ac_cv_host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 19.1411 +  ac_cv_host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 19.1412 +  ac_cv_host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 19.1413 +else
 19.1414 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1415 +fi
 19.1416 +
 19.1417 +echo "$ac_t""$ac_cv_host" 1>&6
 19.1418 +
 19.1419 +host=$ac_cv_host
 19.1420 +host_alias=$ac_cv_host_alias
 19.1421 +host_cpu=$ac_cv_host_cpu
 19.1422 +host_vendor=$ac_cv_host_vendor
 19.1423 +host_os=$ac_cv_host_os
 19.1424 +
 19.1425 +
 19.1426 +
 19.1427 +
 19.1428 +
 19.1429 +echo $ac_n "checking build system type... $ac_c" 1>&6
 19.1430 +echo "configure:1428: checking build system type" 1>&5
 19.1431 +if test "x$ac_cv_build" = "x" || (test "x$build" != "xNONE" && test "x$build" != "x$ac_cv_build_alias"); then
 19.1432 +
 19.1433 +# Make sure we can run config.sub.
 19.1434 +  if $ac_config_sub sun4 >/dev/null 2>&1; then :
 19.1435 +    else { echo "configure: error: cannot run $ac_config_sub" 1>&2; exit 1; }
 19.1436 +  fi
 19.1437 +
 19.1438 +  ac_cv_build_alias=$build
 19.1439 +  case "$ac_cv_build_alias" in
 19.1440 +  NONE)
 19.1441 +    case $nonopt in
 19.1442 +    NONE)
 19.1443 +      ac_cv_build_alias=$host_alias ;;
 19.1444 +
 19.1445 +    *) ac_cv_build_alias=$nonopt ;;
 19.1446 +    esac ;;
 19.1447 +  esac
 19.1448 +
 19.1449 +  ac_cv_build=`$ac_config_sub $ac_cv_build_alias`
 19.1450 +  ac_cv_build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 19.1451 +  ac_cv_build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 19.1452 +  ac_cv_build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 19.1453 +else
 19.1454 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1455 +fi
 19.1456 +
 19.1457 +echo "$ac_t""$ac_cv_build" 1>&6
 19.1458 +
 19.1459 +build=$ac_cv_build
 19.1460 +build_alias=$ac_cv_build_alias
 19.1461 +build_cpu=$ac_cv_build_cpu
 19.1462 +build_vendor=$ac_cv_build_vendor
 19.1463 +build_os=$ac_cv_build_os
 19.1464 +
 19.1465 +
 19.1466 +
 19.1467 +
 19.1468 +# Extract the first word of "ranlib", so it can be a program name with args.
 19.1469 +set dummy ranlib; ac_word=$2
 19.1470 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
 19.1471 +echo "configure:1469: checking for $ac_word" 1>&5
 19.1472 +if test "${ac_cv_prog_RANLIB+set}" = set; then
 19.1473 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1474 +else
 19.1475 +  if test -n "$RANLIB"; then
 19.1476 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 19.1477 +else
 19.1478 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 19.1479 +  ac_dummy="$PATH"
 19.1480 +  for ac_dir in $ac_dummy; do
 19.1481 +    test -z "$ac_dir" && ac_dir=.
 19.1482 +    if test -f $ac_dir/$ac_word; then
 19.1483 +      ac_cv_prog_RANLIB="ranlib"
 19.1484 +      break
 19.1485 +    fi
 19.1486 +  done
 19.1487 +  IFS="$ac_save_ifs"
 19.1488 +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 19.1489 +fi
 19.1490 +fi
 19.1491 +RANLIB="$ac_cv_prog_RANLIB"
 19.1492 +if test -n "$RANLIB"; then
 19.1493 +  echo "$ac_t""$RANLIB" 1>&6
 19.1494 +else
 19.1495 +  echo "$ac_t""no" 1>&6
 19.1496 +fi
 19.1497 +
 19.1498 +case "${CFLAGS+set} $ac_configure_args" in
 19.1499 + *" CFLAGS="* );;
 19.1500 + "set "*) ac_configure_args="CFLAGS='$CFLAGS' $ac_configure_args";;
 19.1501 +esac
 19.1502 +
 19.1503 +  # Extract the first word of "gcc", so it can be a program name with args.
 19.1504 +set dummy gcc; ac_word=$2
 19.1505 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
 19.1506 +echo "configure:1504: checking for $ac_word" 1>&5
 19.1507 +if test "${ac_cv_prog_CC+set}" = set; then
 19.1508 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1509 +else
 19.1510 +  if test -n "$CC"; then
 19.1511 +  ac_cv_prog_CC="$CC" # Let the user override the test.
 19.1512 +else
 19.1513 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 19.1514 +  ac_dummy="$PATH"
 19.1515 +  for ac_dir in $ac_dummy; do
 19.1516 +    test -z "$ac_dir" && ac_dir=.
 19.1517 +    if test -f $ac_dir/$ac_word; then
 19.1518 +      ac_cv_prog_CC="gcc"
 19.1519 +      break
 19.1520 +    fi
 19.1521 +  done
 19.1522 +  IFS="$ac_save_ifs"
 19.1523 +fi
 19.1524 +fi
 19.1525 +CC="$ac_cv_prog_CC"
 19.1526 +if test -n "$CC"; then
 19.1527 +  echo "$ac_t""$CC" 1>&6
 19.1528 +else
 19.1529 +  echo "$ac_t""no" 1>&6
 19.1530 +fi
 19.1531 +
 19.1532 +  if test -z "$CC"; then
 19.1533 +    # Extract the first word of "cc", so it can be a program name with args.
 19.1534 +set dummy cc; ac_word=$2
 19.1535 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
 19.1536 +echo "configure:1534: checking for $ac_word" 1>&5
 19.1537 +if test "${ac_cv_prog_CC+set}" = set; then
 19.1538 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1539 +else
 19.1540 +  if test -n "$CC"; then
 19.1541 +  ac_cv_prog_CC="$CC" # Let the user override the test.
 19.1542 +else
 19.1543 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 19.1544 +  ac_prog_rejected=no
 19.1545 +  ac_dummy="$PATH"
 19.1546 +  for ac_dir in $ac_dummy; do
 19.1547 +    test -z "$ac_dir" && ac_dir=.
 19.1548 +    if test -f $ac_dir/$ac_word; then
 19.1549 +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 19.1550 +        ac_prog_rejected=yes
 19.1551 +	continue
 19.1552 +      fi
 19.1553 +      ac_cv_prog_CC="cc"
 19.1554 +      break
 19.1555 +    fi
 19.1556 +  done
 19.1557 +  IFS="$ac_save_ifs"
 19.1558 +if test $ac_prog_rejected = yes; then
 19.1559 +  # We found a bogon in the path, so make sure we never use it.
 19.1560 +  set dummy $ac_cv_prog_CC
 19.1561 +  shift
 19.1562 +  if test $# -gt 0; then
 19.1563 +    # We chose a different compiler from the bogus one.
 19.1564 +    # However, it has the same basename, so the bogon will be chosen
 19.1565 +    # first if we set CC to just the basename; use the full file name.
 19.1566 +    shift
 19.1567 +    set dummy "$ac_dir/$ac_word" "$@"
 19.1568 +    shift
 19.1569 +    ac_cv_prog_CC="$@"
 19.1570 +  fi
 19.1571 +fi
 19.1572 +fi
 19.1573 +fi
 19.1574 +CC="$ac_cv_prog_CC"
 19.1575 +if test -n "$CC"; then
 19.1576 +  echo "$ac_t""$CC" 1>&6
 19.1577 +else
 19.1578 +  echo "$ac_t""no" 1>&6
 19.1579 +fi
 19.1580 +
 19.1581 +    if test -z "$CC"; then
 19.1582 +      for ac_prog in cl
 19.1583 +do
 19.1584 +# Extract the first word of "$ac_prog", so it can be a program name with args.
 19.1585 +set dummy $ac_prog; ac_word=$2
 19.1586 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
 19.1587 +echo "configure:1585: checking for $ac_word" 1>&5
 19.1588 +if test "${ac_cv_prog_CC+set}" = set; then
 19.1589 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1590 +else
 19.1591 +  if test -n "$CC"; then
 19.1592 +  ac_cv_prog_CC="$CC" # Let the user override the test.
 19.1593 +else
 19.1594 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 19.1595 +  ac_dummy="$PATH"
 19.1596 +  for ac_dir in $ac_dummy; do
 19.1597 +    test -z "$ac_dir" && ac_dir=.
 19.1598 +    if test -f $ac_dir/$ac_word; then
 19.1599 +      ac_cv_prog_CC="$ac_prog"
 19.1600 +      break
 19.1601 +    fi
 19.1602 +  done
 19.1603 +  IFS="$ac_save_ifs"
 19.1604 +fi
 19.1605 +fi
 19.1606 +CC="$ac_cv_prog_CC"
 19.1607 +if test -n "$CC"; then
 19.1608 +  echo "$ac_t""$CC" 1>&6
 19.1609 +else
 19.1610 +  echo "$ac_t""no" 1>&6
 19.1611 +fi
 19.1612 +
 19.1613 +test -n "$CC" && break
 19.1614 +done
 19.1615 +
 19.1616 +    fi
 19.1617 +  fi
 19.1618 +
 19.1619 +
 19.1620 +test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 19.1621 +
 19.1622 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works... $ac_c" 1>&6
 19.1623 +echo "configure:1621: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) works" 1>&5
 19.1624 +
 19.1625 +ac_ext=c
 19.1626 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 19.1627 +ac_cpp='$CPP $CPPFLAGS'
 19.1628 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 19.1629 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 19.1630 +cross_compiling=$ac_cv_prog_cc_cross
 19.1631 +
 19.1632 +cat >conftest.$ac_ext <<EOF
 19.1633 +
 19.1634 +#line 1632 "configure"
 19.1635 +#include "confdefs.h"
 19.1636 +
 19.1637 +int main(){return(0);}
 19.1638 +EOF
 19.1639 +if { (eval echo configure:1637: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.1640 +  ac_cv_prog_cc_works=yes
 19.1641 +  # If we can't run a trivial program, we are probably using a cross compiler.
 19.1642 +  if (./conftest; exit) 2>/dev/null; then
 19.1643 +    ac_cv_prog_cc_cross=no
 19.1644 +  else
 19.1645 +    ac_cv_prog_cc_cross=yes
 19.1646 +  fi
 19.1647 +else
 19.1648 +  echo "configure: failed program was:" >&5
 19.1649 +  cat conftest.$ac_ext >&5
 19.1650 +  ac_cv_prog_cc_works=no
 19.1651 +fi
 19.1652 +rm -fr conftest*
 19.1653 +ac_ext=C
 19.1654 +# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 19.1655 +ac_cpp='$CXXCPP $CPPFLAGS'
 19.1656 +ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 19.1657 +ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 19.1658 +cross_compiling=$ac_cv_prog_cxx_cross
 19.1659 +
 19.1660 +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 19.1661 +if test $ac_cv_prog_cc_works = no; then
 19.1662 +  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 19.1663 +fi
 19.1664 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler... $ac_c" 1>&6
 19.1665 +echo "configure:1663: checking whether the C compiler ($CC $CFLAGS $CPPFLAGS $LDFLAGS) is a cross-compiler" 1>&5
 19.1666 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 19.1667 +cross_compiling=$ac_cv_prog_cc_cross
 19.1668 +
 19.1669 +echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
 19.1670 +echo "configure:1668: checking whether we are using GNU C" 1>&5
 19.1671 +if test "${ac_cv_prog_gcc+set}" = set; then
 19.1672 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1673 +else
 19.1674 +  cat >conftest.c <<EOF
 19.1675 +#ifdef __GNUC__
 19.1676 +  yes;
 19.1677 +#endif
 19.1678 +EOF
 19.1679 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1677: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 19.1680 +  ac_cv_prog_gcc=yes
 19.1681 +else
 19.1682 +  ac_cv_prog_gcc=no
 19.1683 +fi
 19.1684 +fi
 19.1685 +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 19.1686 +
 19.1687 +if test $ac_cv_prog_gcc = yes; then
 19.1688 +  GCC=yes
 19.1689 +else
 19.1690 +  GCC=
 19.1691 +fi
 19.1692 +
 19.1693 +ac_test_CFLAGS="${CFLAGS+set}"
 19.1694 +ac_save_CFLAGS="$CFLAGS"
 19.1695 +CFLAGS=
 19.1696 +echo $ac_n "checking whether ${CC-cc} accepts -g... $ac_c" 1>&6
 19.1697 +echo "configure:1695: checking whether ${CC-cc} accepts -g" 1>&5
 19.1698 +if test "${ac_cv_prog_cc_g+set}" = set; then
 19.1699 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1700 +else
 19.1701 +  echo 'void f(){}' >conftest.c
 19.1702 +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 19.1703 +  ac_cv_prog_cc_g=yes
 19.1704 +else
 19.1705 +  ac_cv_prog_cc_g=no
 19.1706 +fi
 19.1707 +rm -f conftest*
 19.1708 +
 19.1709 +fi
 19.1710 +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 19.1711 +if test "$ac_test_CFLAGS" = set; then
 19.1712 +  CFLAGS="$ac_save_CFLAGS"
 19.1713 +elif test $ac_cv_prog_cc_g = yes; then
 19.1714 +  if test "$GCC" = yes; then
 19.1715 +    CFLAGS="-g -O2"
 19.1716 +  else
 19.1717 +    CFLAGS="-g"
 19.1718 +  fi
 19.1719 +else
 19.1720 +  if test "$GCC" = yes; then
 19.1721 +    CFLAGS="-O2"
 19.1722 +  else
 19.1723 +    CFLAGS=
 19.1724 +  fi
 19.1725 +fi
 19.1726 +
 19.1727 +
 19.1728 +
 19.1729 +
 19.1730 +
 19.1731 +
 19.1732 +depcc="$CC"
 19.1733 +depcpp="$CPP"
 19.1734 +echo $ac_n "checking dependency style of $depcc... $ac_c" 1>&6
 19.1735 +echo "configure:1733: checking dependency style of $depcc" 1>&5
 19.1736 +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 19.1737 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1738 +else
 19.1739 +  
 19.1740 +if test -z "$AMDEP"; then
 19.1741 +  echo '#include "conftest.h"' > conftest.c
 19.1742 +  echo 'int i;' > conftest.h
 19.1743 +
 19.1744 +  am_cv_CC_dependencies_compiler_type=none
 19.1745 +  for depmode in `sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < "$am_depcomp"`; do
 19.1746 +    case "$depmode" in
 19.1747 +    nosideeffect)
 19.1748 +      # after this tag, mechanisms are not by side-effect, so they'll
 19.1749 +      # only be used when explicitly requested
 19.1750 +      if test "x$enable_dependency_tracking" = xyes; then
 19.1751 +	continue
 19.1752 +      else
 19.1753 +	break
 19.1754 +      fi
 19.1755 +      ;;
 19.1756 +    none) break ;;
 19.1757 +    esac
 19.1758 +    if depmode="$depmode" \
 19.1759 +       source=conftest.c object=conftest.o \
 19.1760 +       depfile=conftest.Po tmpdepfile=conftest.TPo \
 19.1761 +       $SHELL $am_depcomp $depcc -c conftest.c 2>/dev/null &&
 19.1762 +       grep conftest.h conftest.Po > /dev/null 2>&1; then
 19.1763 +      am_cv_CC_dependencies_compiler_type="$depmode"
 19.1764 +      break
 19.1765 +    fi
 19.1766 +  done
 19.1767 +
 19.1768 +  rm -f conftest.*
 19.1769 +else
 19.1770 +  am_cv_CC_dependencies_compiler_type=none
 19.1771 +fi
 19.1772 +
 19.1773 +fi
 19.1774 +
 19.1775 +echo "$ac_t""$am_cv_CC_dependencies_compiler_type" 1>&6
 19.1776 +CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
 19.1777 +
 19.1778 +
 19.1779 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
 19.1780 +if test "${with_gnu_ld+set}" = set; then
 19.1781 +  withval="$with_gnu_ld"
 19.1782 +  test "$withval" = no || with_gnu_ld=yes
 19.1783 +else
 19.1784 +  with_gnu_ld=no
 19.1785 +fi
 19.1786 +
 19.1787 +ac_prog=ld
 19.1788 +if test "$ac_cv_prog_gcc" = yes; then
 19.1789 +  # Check if gcc -print-prog-name=ld gives a path.
 19.1790 +  echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
 19.1791 +echo "configure:1789: checking for ld used by GCC" 1>&5
 19.1792 +  ac_prog=`($CC -print-prog-name=ld) 2>&5`
 19.1793 +  case "$ac_prog" in
 19.1794 +    # Accept absolute paths.
 19.1795 +    [\\/]* | [A-Za-z]:[\\/]*)
 19.1796 +      re_direlt='/[^/][^/]*/\.\./'
 19.1797 +      # Canonicalize the path of ld
 19.1798 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 19.1799 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 19.1800 +	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 19.1801 +      done
 19.1802 +      test -z "$LD" && LD="$ac_prog"
 19.1803 +      ;;
 19.1804 +  "")
 19.1805 +    # If it fails, then pretend we aren't using GCC.
 19.1806 +    ac_prog=ld
 19.1807 +    ;;
 19.1808 +  *)
 19.1809 +    # If it is relative, then search for the first ld in PATH.
 19.1810 +    with_gnu_ld=unknown
 19.1811 +    ;;
 19.1812 +  esac
 19.1813 +elif test "$with_gnu_ld" = yes; then
 19.1814 +  echo $ac_n "checking for GNU ld... $ac_c" 1>&6
 19.1815 +echo "configure:1813: checking for GNU ld" 1>&5
 19.1816 +else
 19.1817 +  echo $ac_n "checking for non-GNU ld... $ac_c" 1>&6
 19.1818 +echo "configure:1816: checking for non-GNU ld" 1>&5
 19.1819 +fi
 19.1820 +if test "${ac_cv_path_LD+set}" = set; then
 19.1821 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1822 +else
 19.1823 +  if test -z "$LD"; then
 19.1824 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 19.1825 +  for ac_dir in $PATH; do
 19.1826 +    test -z "$ac_dir" && ac_dir=.
 19.1827 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 19.1828 +      ac_cv_path_LD="$ac_dir/$ac_prog"
 19.1829 +      # Check to see if the program is GNU ld.  I'd rather use --version,
 19.1830 +      # but apparently some GNU ld's only accept -v.
 19.1831 +      # Break only if it was the GNU/non-GNU ld that we prefer.
 19.1832 +      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 19.1833 +	test "$with_gnu_ld" != no && break
 19.1834 +      else
 19.1835 +	test "$with_gnu_ld" != yes && break
 19.1836 +      fi
 19.1837 +    fi
 19.1838 +  done
 19.1839 +  IFS="$ac_save_ifs"
 19.1840 +else
 19.1841 +  ac_cv_path_LD="$LD" # Let the user override the test with a path.
 19.1842 +fi
 19.1843 +fi
 19.1844 +
 19.1845 +LD="$ac_cv_path_LD"
 19.1846 +if test -n "$LD"; then
 19.1847 +  echo "$ac_t""$LD" 1>&6
 19.1848 +else
 19.1849 +  echo "$ac_t""no" 1>&6
 19.1850 +fi
 19.1851 +test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 19.1852 +echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
 19.1853 +echo "configure:1851: checking if the linker ($LD) is GNU ld" 1>&5
 19.1854 +if test "${ac_cv_prog_gnu_ld+set}" = set; then
 19.1855 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1856 +else
 19.1857 +  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 19.1858 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 19.1859 +  ac_cv_prog_gnu_ld=yes
 19.1860 +else
 19.1861 +  ac_cv_prog_gnu_ld=no
 19.1862 +fi
 19.1863 +fi
 19.1864 +echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
 19.1865 +
 19.1866 +
 19.1867 +echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
 19.1868 +echo "configure:1866: checking for BSD-compatible nm" 1>&5
 19.1869 +if test "${ac_cv_path_NM+set}" = set; then
 19.1870 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1871 +else
 19.1872 +  if test -n "$NM"; then
 19.1873 +  # Let the user override the test.
 19.1874 +  ac_cv_path_NM="$NM"
 19.1875 +else
 19.1876 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 19.1877 +  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 19.1878 +    test -z "$ac_dir" && ac_dir=.
 19.1879 +    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
 19.1880 +      # Check to see if the nm accepts a BSD-compat flag.
 19.1881 +      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 19.1882 +      #   nm: unknown option "B" ignored
 19.1883 +      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 19.1884 +	ac_cv_path_NM="$ac_dir/nm -B"
 19.1885 +	break
 19.1886 +      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 19.1887 +	ac_cv_path_NM="$ac_dir/nm -p"
 19.1888 +	break
 19.1889 +      else
 19.1890 +	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
 19.1891 +	continue # so that we can try to find one that supports BSD flags
 19.1892 +      fi
 19.1893 +    fi
 19.1894 +  done
 19.1895 +  IFS="$ac_save_ifs"
 19.1896 +  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
 19.1897 +fi
 19.1898 +fi
 19.1899 +
 19.1900 +NM="$ac_cv_path_NM"
 19.1901 +echo "$ac_t""$NM" 1>&6
 19.1902 +
 19.1903 +echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
 19.1904 +echo "configure:1902: checking whether ln -s works" 1>&5
 19.1905 +if test "${ac_cv_prog_LN_S+set}" = set; then
 19.1906 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1907 +else
 19.1908 +  rm -f conftestdata
 19.1909 +if ln -s X conftestdata 2>/dev/null
 19.1910 +then
 19.1911 +  rm -f conftestdata
 19.1912 +  ac_cv_prog_LN_S="ln -s"
 19.1913 +else
 19.1914 +  ac_cv_prog_LN_S=ln
 19.1915 +fi
 19.1916 +fi
 19.1917 +LN_S="$ac_cv_prog_LN_S"
 19.1918 +if test "$ac_cv_prog_LN_S" = "ln -s"; then
 19.1919 +  echo "$ac_t""yes" 1>&6
 19.1920 +else
 19.1921 +  echo "$ac_t""no" 1>&6
 19.1922 +fi
 19.1923 +
 19.1924 +
 19.1925 +case "$target" in
 19.1926 +NONE) lt_target="$host" ;;
 19.1927 +*) lt_target="$target" ;;
 19.1928 +esac
 19.1929 +
 19.1930 +# Check for any special flags to pass to ltconfig.
 19.1931 +libtool_flags="--cache-file=$cache_file"
 19.1932 +test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
 19.1933 +test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
 19.1934 +test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
 19.1935 +test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
 19.1936 +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
 19.1937 +
 19.1938 +
 19.1939 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 19.1940 +if test "${enable_libtool_lock+set}" = set; then
 19.1941 +  enableval="$enable_libtool_lock"
 19.1942 +  :
 19.1943 +fi
 19.1944 +
 19.1945 +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
 19.1946 +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
 19.1947 +
 19.1948 +# Some flags need to be propagated to the compiler or linker for good
 19.1949 +# libtool support.
 19.1950 +case "$lt_target" in
 19.1951 +*-*-irix6*)
 19.1952 +  # Find out which ABI we are using.
 19.1953 +  echo '#line 1951 "configure"' > conftest.$ac_ext
 19.1954 +  if { (eval echo configure:1952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 19.1955 +    case "`/usr/bin/file conftest.o`" in
 19.1956 +    *32-bit*)
 19.1957 +      LD="${LD-ld} -32"
 19.1958 +      ;;
 19.1959 +    *N32*)
 19.1960 +      LD="${LD-ld} -n32"
 19.1961 +      ;;
 19.1962 +    *64-bit*)
 19.1963 +      LD="${LD-ld} -64"
 19.1964 +      ;;
 19.1965 +    esac
 19.1966 +  fi
 19.1967 +  rm -rf conftest*
 19.1968 +  ;;
 19.1969 +
 19.1970 +*-*-sco3.2v5*)
 19.1971 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 19.1972 +  SAVE_CFLAGS="$CFLAGS"
 19.1973 +  CFLAGS="$CFLAGS -belf"
 19.1974 +  echo $ac_n "checking whether the C compiler needs -belf... $ac_c" 1>&6
 19.1975 +echo "configure:1973: checking whether the C compiler needs -belf" 1>&5
 19.1976 +if test "${lt_cv_cc_needs_belf+set}" = set; then
 19.1977 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.1978 +else
 19.1979 +  cat >conftest.$ac_ext <<EOF
 19.1980 +#line 1978 "configure"
 19.1981 +#include "confdefs.h"
 19.1982 +
 19.1983 +int main() {
 19.1984 +
 19.1985 +; return 0; }
 19.1986 +EOF
 19.1987 +if { (eval echo configure:1985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.1988 +  rm -rf conftest*
 19.1989 +  lt_cv_cc_needs_belf=yes
 19.1990 +else
 19.1991 +  echo "configure: failed program was:" >&5
 19.1992 +  cat conftest.$ac_ext >&5
 19.1993 +  rm -rf conftest*
 19.1994 +  lt_cv_cc_needs_belf=no
 19.1995 +fi
 19.1996 +rm -f conftest*
 19.1997 +fi
 19.1998 +echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 19.1999 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 19.2000 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 19.2001 +    CFLAGS="$SAVE_CFLAGS"
 19.2002 +  fi
 19.2003 +  ;;
 19.2004 +
 19.2005 +
 19.2006 +esac
 19.2007 +
 19.2008 +
 19.2009 +# Save cache, so that ltconfig can load it
 19.2010 +cat >confcache <<\EOF
 19.2011 +# This file is a shell script that caches the results of configure
 19.2012 +# tests run on this system so they can be shared between configure
 19.2013 +# scripts and configure runs.  It is not useful on other systems.
 19.2014 +# If it contains results you don't want to keep, you may remove or edit it.
 19.2015 +#
 19.2016 +# By default, configure uses ./config.cache as the cache file,
 19.2017 +# creating it if it does not exist already.  You can give configure
 19.2018 +# the --cache-file=FILE option to use a different cache file; that is
 19.2019 +# what configure does when it calls configure scripts in
 19.2020 +# subdirectories, so they share the cache.
 19.2021 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
 19.2022 +# config.status only pays attention to the cache file if you give it the
 19.2023 +# --recheck option to rerun configure.
 19.2024 +#
 19.2025 +EOF
 19.2026 +# The following way of writing the cache mishandles newlines in values,
 19.2027 +# but we know of no workaround that is simple, portable, and efficient.
 19.2028 +# So, don't put newlines in cache variables' values.
 19.2029 +# Ultrix sh set writes to stderr and can't be redirected directly,
 19.2030 +# and sets the high bit in the cache file unless we assign to the vars.
 19.2031 +(set) 2>&1 |
 19.2032 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 19.2033 +  *ac_space=\ *)
 19.2034 +    # `set' does not quote correctly, so add quotes (double-quote substitution
 19.2035 +    # turns \\\\ into \\, and sed turns \\ into \).
 19.2036 +    sed -n \
 19.2037 +      -e "s/'/'\\\\''/g" \
 19.2038 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 19.2039 +    ;;
 19.2040 +  *)
 19.2041 +    # `set' quotes correctly as required by POSIX, so do not add quotes.
 19.2042 +    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 19.2043 +    ;;
 19.2044 +  esac >>confcache
 19.2045 +if cmp -s $cache_file confcache; then
 19.2046 +  :
 19.2047 +else
 19.2048 +  if test -w $cache_file; then
 19.2049 +    echo "updating cache $cache_file"
 19.2050 +    cat confcache >$cache_file
 19.2051 +  else
 19.2052 +    echo "not updating unwritable cache $cache_file"
 19.2053 +  fi
 19.2054 +fi
 19.2055 +rm -f confcache
 19.2056 +
 19.2057 +
 19.2058 +# Actually configure libtool.  ac_aux_dir is where install-sh is found.
 19.2059 +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
 19.2060 +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
 19.2061 +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
 19.2062 +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
 19.2063 +${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
 19.2064 +$libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
 19.2065 +|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
 19.2066 +
 19.2067 +# Reload cache, that may have been modified by ltconfig
 19.2068 +if test -r "$cache_file"; then
 19.2069 +  echo "loading cache $cache_file"
 19.2070 +      test -f "$cache_file" && . $cache_file
 19.2071 +else
 19.2072 +  echo "creating cache $cache_file"
 19.2073 +  >$cache_file
 19.2074 +fi
 19.2075 +
 19.2076 +
 19.2077 +# This can be used to rebuild libtool when needed
 19.2078 +LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
 19.2079 +
 19.2080 +# Always use our own libtool.
 19.2081 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 19.2082 +
 19.2083 +# Redirect the config.log output again, so that the ltconfig log is not
 19.2084 +# clobbered by the next message.
 19.2085 +exec 5>>./config.log
 19.2086 +
 19.2087 +
 19.2088 +
 19.2089 +SOGTK_EXTRA_CPPFLAGS=
 19.2090 +SOGTK_EXTRA_LDFLAGS=
 19.2091 +SOGTK_EXTRA_LIBS=
 19.2092 +
 19.2093 +
 19.2094 +
 19.2095 +
 19.2096 +
 19.2097 +
 19.2098 +
 19.2099 +if test x"$with_inventor" = xyes; then
 19.2100 +
 19.2101 +  
 19.2102 +
 19.2103 +
 19.2104 +# Check whether --with-dl or --without-dl was given.
 19.2105 +if test "${with_dl+set}" = set; then
 19.2106 +  withval="$with_dl"
 19.2107 +  :
 19.2108 +else
 19.2109 +  with_dl=yes
 19.2110 +fi
 19.2111 +
 19.2112 +
 19.2113 +sim_ac_dl_avail=no
 19.2114 +
 19.2115 +if test x"$with_dl" != xno; then
 19.2116 +  if test x"$with_dl" != xyes; then
 19.2117 +    sim_ac_dl_cppflags="-I${with_dl}/include"
 19.2118 +    sim_ac_dl_ldflags="-L${with_dl}/lib"
 19.2119 +  fi
 19.2120 +  sim_ac_dl_libs="-ldl"
 19.2121 +
 19.2122 +  sim_ac_save_cppflags=$CPPFLAGS
 19.2123 +  sim_ac_save_ldflags=$LDFLAGS
 19.2124 +  sim_ac_save_libs=$LIBS
 19.2125 +
 19.2126 +  CPPFLAGS="$CPPFLAGS $sim_ac_dl_cppflags"
 19.2127 +  LDFLAGS="$LDFLAGS $sim_ac_dl_ldflags"
 19.2128 +  LIBS="$sim_ac_dl_libs $LIBS"
 19.2129 +
 19.2130 +  echo $ac_n "checking whether the dynamic link loader library is available... $ac_c" 1>&6
 19.2131 +echo "configure:2129: checking whether the dynamic link loader library is available" 1>&5
 19.2132 +if test "${sim_cv_lib_dl_avail+set}" = set; then
 19.2133 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2134 +else
 19.2135 +  cat >conftest.$ac_ext <<EOF
 19.2136 +#line 2134 "configure"
 19.2137 +#include "confdefs.h"
 19.2138 +#include <dlfcn.h>
 19.2139 +int main() {
 19.2140 +(void)dlopen(0L, 0);
 19.2141 +; return 0; }
 19.2142 +EOF
 19.2143 +if { (eval echo configure:2141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2144 +  rm -rf conftest*
 19.2145 +  sim_cv_lib_dl_avail=yes
 19.2146 +else
 19.2147 +  echo "configure: failed program was:" >&5
 19.2148 +  cat conftest.$ac_ext >&5
 19.2149 +  rm -rf conftest*
 19.2150 +  sim_cv_lib_dl_avail=no
 19.2151 +fi
 19.2152 +rm -f conftest*
 19.2153 +fi
 19.2154 +echo "$ac_t""$sim_cv_lib_dl_avail" 1>&6
 19.2155 +
 19.2156 +  if test x"$sim_cv_lib_dl_avail" = xyes; then
 19.2157 +    sim_ac_dl_avail=yes
 19.2158 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_dl_cppflags"
 19.2159 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_dl_ldflags"
 19.2160 +    SOGTK_EXTRA_LIBS="$sim_ac_dl_libs $SOGTK_EXTRA_LIBS"
 19.2161 +  
 19.2162 +  else
 19.2163 +    CPPFLAGS=$sim_ac_save_cppflags
 19.2164 +    LDFLAGS=$sim_ac_save_ldflags
 19.2165 +    LIBS=$sim_ac_save_libs
 19.2166 +    :
 19.2167 +  fi
 19.2168 +fi
 19.2169 +
 19.2170 +
 19.2171 +  # If we find X, set shell vars x_includes and x_libraries to the
 19.2172 +# paths, otherwise set no_x=yes.
 19.2173 +# Uses ac_ vars as temps to allow command line to override cache and checks.
 19.2174 +# --without-x overrides everything else, but does not touch the cache.
 19.2175 +echo $ac_n "checking for X... $ac_c" 1>&6
 19.2176 +echo "configure:2174: checking for X" 1>&5
 19.2177 +
 19.2178 +# Check whether --with-x or --without-x was given.
 19.2179 +if test "${with_x+set}" = set; then
 19.2180 +  withval="$with_x"
 19.2181 +  :
 19.2182 +fi
 19.2183 +
 19.2184 +# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
 19.2185 +if test "x$with_x" = xno; then
 19.2186 +  # The user explicitly disabled X.
 19.2187 +  have_x=disabled
 19.2188 +else
 19.2189 +  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
 19.2190 +    # Both variables are already set.
 19.2191 +    have_x=yes
 19.2192 +  else
 19.2193 +if test "${ac_cv_have_x+set}" = set; then
 19.2194 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2195 +else
 19.2196 +  # One or both of the vars are not set, and there is no cached value.
 19.2197 +ac_x_includes=NO ac_x_libraries=NO
 19.2198 +rm -fr conftestdir
 19.2199 +if mkdir conftestdir; then
 19.2200 +  cd conftestdir
 19.2201 +  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
 19.2202 +  cat >Imakefile <<'EOF'
 19.2203 +acfindx:
 19.2204 +	@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 19.2205 +EOF
 19.2206 +  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 19.2207 +    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 19.2208 +    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 19.2209 +    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
 19.2210 +    for ac_extension in a so sl; do
 19.2211 +      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
 19.2212 +        test -f $ac_im_libdir/libX11.$ac_extension; then
 19.2213 +        ac_im_usrlibdir=$ac_im_libdir; break
 19.2214 +      fi
 19.2215 +    done
 19.2216 +    # Screen out bogus values from the imake configuration.  They are
 19.2217 +    # bogus both because they are the default anyway, and because
 19.2218 +    # using them would break gcc on systems where it needs fixed includes.
 19.2219 +    case "$ac_im_incroot" in
 19.2220 +	/usr/include) ;;
 19.2221 +	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
 19.2222 +    esac
 19.2223 +    case "$ac_im_usrlibdir" in
 19.2224 +	/usr/lib | /lib) ;;
 19.2225 +	*) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
 19.2226 +    esac
 19.2227 +  fi
 19.2228 +  cd ..
 19.2229 +  rm -fr conftestdir
 19.2230 +fi
 19.2231 +
 19.2232 +if test "$ac_x_includes" = NO; then
 19.2233 +  # Guess where to find include files, by looking for this one X11 .h file.
 19.2234 +  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
 19.2235 +
 19.2236 +  # First, try using that file with no special directory specified.
 19.2237 +cat >conftest.$ac_ext <<EOF
 19.2238 +#line 2236 "configure"
 19.2239 +#include "confdefs.h"
 19.2240 +#include <$x_direct_test_include>
 19.2241 +EOF
 19.2242 +ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 19.2243 +{ (eval echo configure:2241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 19.2244 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 19.2245 +if test -z "$ac_err"; then
 19.2246 +  rm -rf conftest*
 19.2247 +  # We can compile using X headers with no special include directory.
 19.2248 +ac_x_includes=
 19.2249 +else
 19.2250 +  echo "$ac_err" >&5
 19.2251 +  echo "configure: failed program was:" >&5
 19.2252 +  cat conftest.$ac_ext >&5
 19.2253 +  rm -rf conftest*
 19.2254 +  # Look for the header file in a standard set of common directories.
 19.2255 +# Check X11 before X11Rn because it is often a symlink to the current release.
 19.2256 +  for ac_dir in               \
 19.2257 +    /usr/X11/include          \
 19.2258 +    /usr/X11R6/include        \
 19.2259 +    /usr/X11R5/include        \
 19.2260 +    /usr/X11R4/include        \
 19.2261 +                              \
 19.2262 +    /usr/include/X11          \
 19.2263 +    /usr/include/X11R6        \
 19.2264 +    /usr/include/X11R5        \
 19.2265 +    /usr/include/X11R4        \
 19.2266 +                              \
 19.2267 +    /usr/local/X11/include    \
 19.2268 +    /usr/local/X11R6/include  \
 19.2269 +    /usr/local/X11R5/include  \
 19.2270 +    /usr/local/X11R4/include  \
 19.2271 +                              \
 19.2272 +    /usr/local/include/X11    \
 19.2273 +    /usr/local/include/X11R6  \
 19.2274 +    /usr/local/include/X11R5  \
 19.2275 +    /usr/local/include/X11R4  \
 19.2276 +                              \
 19.2277 +    /usr/X386/include         \
 19.2278 +    /usr/x386/include         \
 19.2279 +    /usr/XFree86/include/X11  \
 19.2280 +                              \
 19.2281 +    /usr/include              \
 19.2282 +    /usr/local/include        \
 19.2283 +    /usr/unsupported/include  \
 19.2284 +    /usr/athena/include       \
 19.2285 +    /usr/local/x11r5/include  \
 19.2286 +    /usr/lpp/Xamples/include  \
 19.2287 +                              \
 19.2288 +    /usr/openwin/include      \
 19.2289 +    /usr/openwin/share/include \
 19.2290 +    ; \
 19.2291 +  do
 19.2292 +    if test -r "$ac_dir/$x_direct_test_include"; then
 19.2293 +      ac_x_includes=$ac_dir
 19.2294 +      break
 19.2295 +    fi
 19.2296 +  done
 19.2297 +fi
 19.2298 +rm -f conftest*
 19.2299 +fi # $ac_x_includes = NO
 19.2300 +
 19.2301 +if test "$ac_x_libraries" = NO; then
 19.2302 +  # Check for the libraries.
 19.2303 +
 19.2304 +  test -z "$x_direct_test_library" && x_direct_test_library=Xt
 19.2305 +  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
 19.2306 +
 19.2307 +  # See if we find them without any special options.
 19.2308 +  # Don't add to $LIBS permanently.
 19.2309 +  ac_save_LIBS="$LIBS"
 19.2310 +  LIBS="-l$x_direct_test_library $LIBS"
 19.2311 +cat >conftest.$ac_ext <<EOF
 19.2312 +#line 2310 "configure"
 19.2313 +#include "confdefs.h"
 19.2314 +
 19.2315 +int main() {
 19.2316 +${x_direct_test_function}()
 19.2317 +; return 0; }
 19.2318 +EOF
 19.2319 +if { (eval echo configure:2317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2320 +  rm -rf conftest*
 19.2321 +  LIBS="$ac_save_LIBS"
 19.2322 +# We can link X programs with no special library path.
 19.2323 +ac_x_libraries=
 19.2324 +else
 19.2325 +  echo "configure: failed program was:" >&5
 19.2326 +  cat conftest.$ac_ext >&5
 19.2327 +  rm -rf conftest*
 19.2328 +  LIBS="$ac_save_LIBS"
 19.2329 +# First see if replacing the include by lib works.
 19.2330 +# Check X11 before X11Rn because it is often a symlink to the current release.
 19.2331 +for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
 19.2332 +    /usr/X11/lib          \
 19.2333 +    /usr/X11R6/lib        \
 19.2334 +    /usr/X11R5/lib        \
 19.2335 +    /usr/X11R4/lib        \
 19.2336 +                          \
 19.2337 +    /usr/lib/X11          \
 19.2338 +    /usr/lib/X11R6        \
 19.2339 +    /usr/lib/X11R5        \
 19.2340 +    /usr/lib/X11R4        \
 19.2341 +                          \
 19.2342 +    /usr/local/X11/lib    \
 19.2343 +    /usr/local/X11R6/lib  \
 19.2344 +    /usr/local/X11R5/lib  \
 19.2345 +    /usr/local/X11R4/lib  \
 19.2346 +                          \
 19.2347 +    /usr/local/lib/X11    \
 19.2348 +    /usr/local/lib/X11R6  \
 19.2349 +    /usr/local/lib/X11R5  \
 19.2350 +    /usr/local/lib/X11R4  \
 19.2351 +                          \
 19.2352 +    /usr/X386/lib         \
 19.2353 +    /usr/x386/lib         \
 19.2354 +    /usr/XFree86/lib/X11  \
 19.2355 +                          \
 19.2356 +    /usr/lib              \
 19.2357 +    /usr/local/lib        \
 19.2358 +    /usr/unsupported/lib  \
 19.2359 +    /usr/athena/lib       \
 19.2360 +    /usr/local/x11r5/lib  \
 19.2361 +    /usr/lpp/Xamples/lib  \
 19.2362 +    /lib/usr/lib/X11	  \
 19.2363 +                          \
 19.2364 +    /usr/openwin/lib      \
 19.2365 +    /usr/openwin/share/lib \
 19.2366 +    ; \
 19.2367 +do
 19.2368 +  for ac_extension in a so sl; do
 19.2369 +    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 19.2370 +      ac_x_libraries=$ac_dir
 19.2371 +      break 2
 19.2372 +    fi
 19.2373 +  done
 19.2374 +done
 19.2375 +fi
 19.2376 +rm -f conftest*
 19.2377 +fi # $ac_x_libraries = NO
 19.2378 +
 19.2379 +if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
 19.2380 +  # Didn't find X anywhere.  Cache the known absence of X.
 19.2381 +  ac_cv_have_x="have_x=no"
 19.2382 +else
 19.2383 +  # Record where we found X for the cache.
 19.2384 +  ac_cv_have_x="have_x=yes \
 19.2385 +	        ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
 19.2386 +fi
 19.2387 +fi
 19.2388 +  fi
 19.2389 +  eval "$ac_cv_have_x"
 19.2390 +fi # $with_x != no
 19.2391 +
 19.2392 +if test "$have_x" != yes; then
 19.2393 +  echo "$ac_t""$have_x" 1>&6
 19.2394 +  no_x=yes
 19.2395 +else
 19.2396 +  # If each of the values was on the command line, it overrides each guess.
 19.2397 +  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
 19.2398 +  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
 19.2399 +  # Update the cache value to reflect the command line values.
 19.2400 +  ac_cv_have_x="have_x=yes \
 19.2401 +		ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
 19.2402 +  echo "$ac_t""libraries $x_libraries" 1>&6
 19.2403 +fi
 19.2404 +
 19.2405 +
 19.2406 +
 19.2407 +
 19.2408 +sim_ac_x11_avail=no
 19.2409 +
 19.2410 +if test "$no_x" = yes; then
 19.2411 +  # Not all programs may use this symbol, but it does not hurt to define it.
 19.2412 +  cat >>confdefs.h <<\EOF
 19.2413 +#define X_DISPLAY_MISSING 1
 19.2414 +EOF
 19.2415 +
 19.2416 +  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
 19.2417 +else
 19.2418 +  if test -n "$x_includes"; then
 19.2419 +    X_CFLAGS="$X_CFLAGS -I$x_includes"
 19.2420 +  fi
 19.2421 +
 19.2422 +  # It would also be nice to do this for all -L options, not just this one.
 19.2423 +  if test -n "$x_libraries"; then
 19.2424 +    X_LIBS="$X_LIBS -L$x_libraries"
 19.2425 +    # For Solaris; some versions of Sun CC require a space after -R and
 19.2426 +    # others require no space.  Words are not sufficient . . . .
 19.2427 +    case "`(uname -sr) 2>/dev/null`" in
 19.2428 +    "SunOS 5"*)
 19.2429 +      echo $ac_n "checking whether -R must be followed by a space... $ac_c" 1>&6
 19.2430 +echo "configure:2428: checking whether -R must be followed by a space" 1>&5
 19.2431 +      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
 19.2432 +      cat >conftest.$ac_ext <<EOF
 19.2433 +#line 2431 "configure"
 19.2434 +#include "confdefs.h"
 19.2435 +
 19.2436 +int main() {
 19.2437 +
 19.2438 +; return 0; }
 19.2439 +EOF
 19.2440 +if { (eval echo configure:2438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2441 +  rm -rf conftest*
 19.2442 +  ac_R_nospace=yes
 19.2443 +else
 19.2444 +  echo "configure: failed program was:" >&5
 19.2445 +  cat conftest.$ac_ext >&5
 19.2446 +  rm -rf conftest*
 19.2447 +  ac_R_nospace=no
 19.2448 +fi
 19.2449 +rm -f conftest*
 19.2450 +      if test $ac_R_nospace = yes; then
 19.2451 +	echo "$ac_t""no" 1>&6
 19.2452 +	X_LIBS="$X_LIBS -R$x_libraries"
 19.2453 +      else
 19.2454 +	LIBS="$ac_xsave_LIBS -R $x_libraries"
 19.2455 +	cat >conftest.$ac_ext <<EOF
 19.2456 +#line 2454 "configure"
 19.2457 +#include "confdefs.h"
 19.2458 +
 19.2459 +int main() {
 19.2460 +
 19.2461 +; return 0; }
 19.2462 +EOF
 19.2463 +if { (eval echo configure:2461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2464 +  rm -rf conftest*
 19.2465 +  ac_R_space=yes
 19.2466 +else
 19.2467 +  echo "configure: failed program was:" >&5
 19.2468 +  cat conftest.$ac_ext >&5
 19.2469 +  rm -rf conftest*
 19.2470 +  ac_R_space=no
 19.2471 +fi
 19.2472 +rm -f conftest*
 19.2473 +	if test $ac_R_space = yes; then
 19.2474 +	  echo "$ac_t""yes" 1>&6
 19.2475 +	  X_LIBS="$X_LIBS -R $x_libraries"
 19.2476 +	else
 19.2477 +	  echo "$ac_t""neither works" 1>&6
 19.2478 +	fi
 19.2479 +      fi
 19.2480 +      LIBS="$ac_xsave_LIBS"
 19.2481 +    esac
 19.2482 +  fi
 19.2483 +
 19.2484 +  # Check for system-dependent libraries X programs must link with.
 19.2485 +  # Do this before checking for the system-independent R6 libraries
 19.2486 +  # (-lICE), since we may need -lsocket or whatever for X linking.
 19.2487 +
 19.2488 +  if test "$ISC" = yes; then
 19.2489 +    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
 19.2490 +  else
 19.2491 +    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
 19.2492 +    # libraries were built with DECnet support.  And karl@cs.umb.edu says
 19.2493 +    # the Alpha needs dnet_stub (dnet does not exist).
 19.2494 +    echo $ac_n "checking for dnet_ntoa in -ldnet... $ac_c" 1>&6
 19.2495 +echo "configure:2493: checking for dnet_ntoa in -ldnet" 1>&5
 19.2496 +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 19.2497 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2498 +else
 19.2499 +  ac_save_LIBS="$LIBS"
 19.2500 +LIBS="-ldnet  $LIBS"
 19.2501 +cat >conftest.$ac_ext <<EOF
 19.2502 +#line 2500 "configure"
 19.2503 +#include "confdefs.h"
 19.2504 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2505 +#ifdef __cplusplus
 19.2506 +extern "C"
 19.2507 +#endif
 19.2508 +/* We use char because int might match the return type of a gcc2
 19.2509 +    builtin and then its argument prototype would still apply.  */
 19.2510 +char dnet_ntoa();
 19.2511 +
 19.2512 +int main() {
 19.2513 +dnet_ntoa()
 19.2514 +; return 0; }
 19.2515 +EOF
 19.2516 +if { (eval echo configure:2514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2517 +  rm -rf conftest*
 19.2518 +  ac_cv_lib_dnet_dnet_ntoa=yes
 19.2519 +else
 19.2520 +  echo "configure: failed program was:" >&5
 19.2521 +  cat conftest.$ac_ext >&5
 19.2522 +  rm -rf conftest*
 19.2523 +  ac_cv_lib_dnet_dnet_ntoa=no
 19.2524 +fi
 19.2525 +rm -f conftest*
 19.2526 +LIBS="$ac_save_LIBS"
 19.2527 +fi
 19.2528 +echo "$ac_t""$ac_cv_lib_dnet_dnet_ntoa" 1>&6
 19.2529 +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
 19.2530 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
 19.2531 +fi
 19.2532 +
 19.2533 +    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
 19.2534 +      echo $ac_n "checking for dnet_ntoa in -ldnet_stub... $ac_c" 1>&6
 19.2535 +echo "configure:2533: checking for dnet_ntoa in -ldnet_stub" 1>&5
 19.2536 +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 19.2537 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2538 +else
 19.2539 +  ac_save_LIBS="$LIBS"
 19.2540 +LIBS="-ldnet_stub  $LIBS"
 19.2541 +cat >conftest.$ac_ext <<EOF
 19.2542 +#line 2540 "configure"
 19.2543 +#include "confdefs.h"
 19.2544 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2545 +#ifdef __cplusplus
 19.2546 +extern "C"
 19.2547 +#endif
 19.2548 +/* We use char because int might match the return type of a gcc2
 19.2549 +    builtin and then its argument prototype would still apply.  */
 19.2550 +char dnet_ntoa();
 19.2551 +
 19.2552 +int main() {
 19.2553 +dnet_ntoa()
 19.2554 +; return 0; }
 19.2555 +EOF
 19.2556 +if { (eval echo configure:2554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2557 +  rm -rf conftest*
 19.2558 +  ac_cv_lib_dnet_stub_dnet_ntoa=yes
 19.2559 +else
 19.2560 +  echo "configure: failed program was:" >&5
 19.2561 +  cat conftest.$ac_ext >&5
 19.2562 +  rm -rf conftest*
 19.2563 +  ac_cv_lib_dnet_stub_dnet_ntoa=no
 19.2564 +fi
 19.2565 +rm -f conftest*
 19.2566 +LIBS="$ac_save_LIBS"
 19.2567 +fi
 19.2568 +echo "$ac_t""$ac_cv_lib_dnet_stub_dnet_ntoa" 1>&6
 19.2569 +if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
 19.2570 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
 19.2571 +fi
 19.2572 +
 19.2573 +    fi
 19.2574 +
 19.2575 +    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
 19.2576 +    # to get the SysV transport functions.
 19.2577 +    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
 19.2578 +    # needs -lnsl.
 19.2579 +    # The nsl library prevents programs from opening the X display
 19.2580 +    # on Irix 5.2, according to dickey@clark.net.
 19.2581 +    echo $ac_n "checking for gethostbyname... $ac_c" 1>&6
 19.2582 +echo "configure:2580: checking for gethostbyname" 1>&5
 19.2583 +if test "${ac_cv_func_gethostbyname+set}" = set; then
 19.2584 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2585 +else
 19.2586 +  cat >conftest.$ac_ext <<EOF
 19.2587 +#line 2585 "configure"
 19.2588 +#include "confdefs.h"
 19.2589 +/* System header to define __stub macros and hopefully few prototypes,
 19.2590 +    which can conflict with char gethostbyname(); below.  */
 19.2591 +#include <assert.h>
 19.2592 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2593 +#ifdef __cplusplus
 19.2594 +extern "C"
 19.2595 +#endif
 19.2596 +/* We use char because int might match the return type of a gcc2
 19.2597 +    builtin and then its argument prototype would still apply.  */
 19.2598 +char gethostbyname();
 19.2599 +char (*f)();
 19.2600 +
 19.2601 +int main() {
 19.2602 +
 19.2603 +/* The GNU C library defines this for functions which it implements
 19.2604 +    to always fail with ENOSYS.  Some functions are actually named
 19.2605 +    something starting with __ and the normal name is an alias.  */
 19.2606 +#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 19.2607 +choke me
 19.2608 +#else
 19.2609 +f = gethostbyname;
 19.2610 +#endif
 19.2611 +
 19.2612 +; return 0; }
 19.2613 +EOF
 19.2614 +if { (eval echo configure:2612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2615 +  rm -rf conftest*
 19.2616 +  ac_cv_func_gethostbyname=yes
 19.2617 +else
 19.2618 +  echo "configure: failed program was:" >&5
 19.2619 +  cat conftest.$ac_ext >&5
 19.2620 +  rm -rf conftest*
 19.2621 +  ac_cv_func_gethostbyname=no
 19.2622 +fi
 19.2623 +rm -f conftest*
 19.2624 +fi
 19.2625 +echo "$ac_t""$ac_cv_func_gethostbyname" 1>&6
 19.2626 +
 19.2627 +    if test $ac_cv_func_gethostbyname = no; then
 19.2628 +      echo $ac_n "checking for gethostbyname in -lnsl... $ac_c" 1>&6
 19.2629 +echo "configure:2627: checking for gethostbyname in -lnsl" 1>&5
 19.2630 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 19.2631 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2632 +else
 19.2633 +  ac_save_LIBS="$LIBS"
 19.2634 +LIBS="-lnsl  $LIBS"
 19.2635 +cat >conftest.$ac_ext <<EOF
 19.2636 +#line 2634 "configure"
 19.2637 +#include "confdefs.h"
 19.2638 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2639 +#ifdef __cplusplus
 19.2640 +extern "C"
 19.2641 +#endif
 19.2642 +/* We use char because int might match the return type of a gcc2
 19.2643 +    builtin and then its argument prototype would still apply.  */
 19.2644 +char gethostbyname();
 19.2645 +
 19.2646 +int main() {
 19.2647 +gethostbyname()
 19.2648 +; return 0; }
 19.2649 +EOF
 19.2650 +if { (eval echo configure:2648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2651 +  rm -rf conftest*
 19.2652 +  ac_cv_lib_nsl_gethostbyname=yes
 19.2653 +else
 19.2654 +  echo "configure: failed program was:" >&5
 19.2655 +  cat conftest.$ac_ext >&5
 19.2656 +  rm -rf conftest*
 19.2657 +  ac_cv_lib_nsl_gethostbyname=no
 19.2658 +fi
 19.2659 +rm -f conftest*
 19.2660 +LIBS="$ac_save_LIBS"
 19.2661 +fi
 19.2662 +echo "$ac_t""$ac_cv_lib_nsl_gethostbyname" 1>&6
 19.2663 +if test $ac_cv_lib_nsl_gethostbyname = yes; then
 19.2664 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
 19.2665 +fi
 19.2666 +
 19.2667 +    fi
 19.2668 +
 19.2669 +    # lieder@skyler.mavd.honeywell.com says without -lsocket,
 19.2670 +    # socket/setsockopt and other routines are undefined under SCO ODT
 19.2671 +    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
 19.2672 +    # on later versions), says simon@lia.di.epfl.ch: it contains
 19.2673 +    # gethostby* variants that don't use the nameserver (or something).
 19.2674 +    # -lsocket must be given before -lnsl if both are needed.
 19.2675 +    # We assume that if connect needs -lnsl, so does gethostbyname.
 19.2676 +    echo $ac_n "checking for connect... $ac_c" 1>&6
 19.2677 +echo "configure:2675: checking for connect" 1>&5
 19.2678 +if test "${ac_cv_func_connect+set}" = set; then
 19.2679 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2680 +else
 19.2681 +  cat >conftest.$ac_ext <<EOF
 19.2682 +#line 2680 "configure"
 19.2683 +#include "confdefs.h"
 19.2684 +/* System header to define __stub macros and hopefully few prototypes,
 19.2685 +    which can conflict with char connect(); below.  */
 19.2686 +#include <assert.h>
 19.2687 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2688 +#ifdef __cplusplus
 19.2689 +extern "C"
 19.2690 +#endif
 19.2691 +/* We use char because int might match the return type of a gcc2
 19.2692 +    builtin and then its argument prototype would still apply.  */
 19.2693 +char connect();
 19.2694 +char (*f)();
 19.2695 +
 19.2696 +int main() {
 19.2697 +
 19.2698 +/* The GNU C library defines this for functions which it implements
 19.2699 +    to always fail with ENOSYS.  Some functions are actually named
 19.2700 +    something starting with __ and the normal name is an alias.  */
 19.2701 +#if defined (__stub_connect) || defined (__stub___connect)
 19.2702 +choke me
 19.2703 +#else
 19.2704 +f = connect;
 19.2705 +#endif
 19.2706 +
 19.2707 +; return 0; }
 19.2708 +EOF
 19.2709 +if { (eval echo configure:2707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2710 +  rm -rf conftest*
 19.2711 +  ac_cv_func_connect=yes
 19.2712 +else
 19.2713 +  echo "configure: failed program was:" >&5
 19.2714 +  cat conftest.$ac_ext >&5
 19.2715 +  rm -rf conftest*
 19.2716 +  ac_cv_func_connect=no
 19.2717 +fi
 19.2718 +rm -f conftest*
 19.2719 +fi
 19.2720 +echo "$ac_t""$ac_cv_func_connect" 1>&6
 19.2721 +
 19.2722 +    if test $ac_cv_func_connect = no; then
 19.2723 +      echo $ac_n "checking for connect in -lsocket... $ac_c" 1>&6
 19.2724 +echo "configure:2722: checking for connect in -lsocket" 1>&5
 19.2725 +if test "${ac_cv_lib_socket_connect+set}" = set; then
 19.2726 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2727 +else
 19.2728 +  ac_save_LIBS="$LIBS"
 19.2729 +LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
 19.2730 +cat >conftest.$ac_ext <<EOF
 19.2731 +#line 2729 "configure"
 19.2732 +#include "confdefs.h"
 19.2733 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2734 +#ifdef __cplusplus
 19.2735 +extern "C"
 19.2736 +#endif
 19.2737 +/* We use char because int might match the return type of a gcc2
 19.2738 +    builtin and then its argument prototype would still apply.  */
 19.2739 +char connect();
 19.2740 +
 19.2741 +int main() {
 19.2742 +connect()
 19.2743 +; return 0; }
 19.2744 +EOF
 19.2745 +if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2746 +  rm -rf conftest*
 19.2747 +  ac_cv_lib_socket_connect=yes
 19.2748 +else
 19.2749 +  echo "configure: failed program was:" >&5
 19.2750 +  cat conftest.$ac_ext >&5
 19.2751 +  rm -rf conftest*
 19.2752 +  ac_cv_lib_socket_connect=no
 19.2753 +fi
 19.2754 +rm -f conftest*
 19.2755 +LIBS="$ac_save_LIBS"
 19.2756 +fi
 19.2757 +echo "$ac_t""$ac_cv_lib_socket_connect" 1>&6
 19.2758 +if test $ac_cv_lib_socket_connect = yes; then
 19.2759 +  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
 19.2760 +fi
 19.2761 +
 19.2762 +    fi
 19.2763 +
 19.2764 +    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
 19.2765 +    echo $ac_n "checking for remove... $ac_c" 1>&6
 19.2766 +echo "configure:2764: checking for remove" 1>&5
 19.2767 +if test "${ac_cv_func_remove+set}" = set; then
 19.2768 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2769 +else
 19.2770 +  cat >conftest.$ac_ext <<EOF
 19.2771 +#line 2769 "configure"
 19.2772 +#include "confdefs.h"
 19.2773 +/* System header to define __stub macros and hopefully few prototypes,
 19.2774 +    which can conflict with char remove(); below.  */
 19.2775 +#include <assert.h>
 19.2776 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2777 +#ifdef __cplusplus
 19.2778 +extern "C"
 19.2779 +#endif
 19.2780 +/* We use char because int might match the return type of a gcc2
 19.2781 +    builtin and then its argument prototype would still apply.  */
 19.2782 +char remove();
 19.2783 +char (*f)();
 19.2784 +
 19.2785 +int main() {
 19.2786 +
 19.2787 +/* The GNU C library defines this for functions which it implements
 19.2788 +    to always fail with ENOSYS.  Some functions are actually named
 19.2789 +    something starting with __ and the normal name is an alias.  */
 19.2790 +#if defined (__stub_remove) || defined (__stub___remove)
 19.2791 +choke me
 19.2792 +#else
 19.2793 +f = remove;
 19.2794 +#endif
 19.2795 +
 19.2796 +; return 0; }
 19.2797 +EOF
 19.2798 +if { (eval echo configure:2796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2799 +  rm -rf conftest*
 19.2800 +  ac_cv_func_remove=yes
 19.2801 +else
 19.2802 +  echo "configure: failed program was:" >&5
 19.2803 +  cat conftest.$ac_ext >&5
 19.2804 +  rm -rf conftest*
 19.2805 +  ac_cv_func_remove=no
 19.2806 +fi
 19.2807 +rm -f conftest*
 19.2808 +fi
 19.2809 +echo "$ac_t""$ac_cv_func_remove" 1>&6
 19.2810 +
 19.2811 +    if test $ac_cv_func_remove = no; then
 19.2812 +      echo $ac_n "checking for remove in -lposix... $ac_c" 1>&6
 19.2813 +echo "configure:2811: checking for remove in -lposix" 1>&5
 19.2814 +if test "${ac_cv_lib_posix_remove+set}" = set; then
 19.2815 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2816 +else
 19.2817 +  ac_save_LIBS="$LIBS"
 19.2818 +LIBS="-lposix  $LIBS"
 19.2819 +cat >conftest.$ac_ext <<EOF
 19.2820 +#line 2818 "configure"
 19.2821 +#include "confdefs.h"
 19.2822 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2823 +#ifdef __cplusplus
 19.2824 +extern "C"
 19.2825 +#endif
 19.2826 +/* We use char because int might match the return type of a gcc2
 19.2827 +    builtin and then its argument prototype would still apply.  */
 19.2828 +char remove();
 19.2829 +
 19.2830 +int main() {
 19.2831 +remove()
 19.2832 +; return 0; }
 19.2833 +EOF
 19.2834 +if { (eval echo configure:2832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2835 +  rm -rf conftest*
 19.2836 +  ac_cv_lib_posix_remove=yes
 19.2837 +else
 19.2838 +  echo "configure: failed program was:" >&5
 19.2839 +  cat conftest.$ac_ext >&5
 19.2840 +  rm -rf conftest*
 19.2841 +  ac_cv_lib_posix_remove=no
 19.2842 +fi
 19.2843 +rm -f conftest*
 19.2844 +LIBS="$ac_save_LIBS"
 19.2845 +fi
 19.2846 +echo "$ac_t""$ac_cv_lib_posix_remove" 1>&6
 19.2847 +if test $ac_cv_lib_posix_remove = yes; then
 19.2848 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
 19.2849 +fi
 19.2850 +
 19.2851 +    fi
 19.2852 +
 19.2853 +    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
 19.2854 +    echo $ac_n "checking for shmat... $ac_c" 1>&6
 19.2855 +echo "configure:2853: checking for shmat" 1>&5
 19.2856 +if test "${ac_cv_func_shmat+set}" = set; then
 19.2857 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2858 +else
 19.2859 +  cat >conftest.$ac_ext <<EOF
 19.2860 +#line 2858 "configure"
 19.2861 +#include "confdefs.h"
 19.2862 +/* System header to define __stub macros and hopefully few prototypes,
 19.2863 +    which can conflict with char shmat(); below.  */
 19.2864 +#include <assert.h>
 19.2865 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2866 +#ifdef __cplusplus
 19.2867 +extern "C"
 19.2868 +#endif
 19.2869 +/* We use char because int might match the return type of a gcc2
 19.2870 +    builtin and then its argument prototype would still apply.  */
 19.2871 +char shmat();
 19.2872 +char (*f)();
 19.2873 +
 19.2874 +int main() {
 19.2875 +
 19.2876 +/* The GNU C library defines this for functions which it implements
 19.2877 +    to always fail with ENOSYS.  Some functions are actually named
 19.2878 +    something starting with __ and the normal name is an alias.  */
 19.2879 +#if defined (__stub_shmat) || defined (__stub___shmat)
 19.2880 +choke me
 19.2881 +#else
 19.2882 +f = shmat;
 19.2883 +#endif
 19.2884 +
 19.2885 +; return 0; }
 19.2886 +EOF
 19.2887 +if { (eval echo configure:2885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2888 +  rm -rf conftest*
 19.2889 +  ac_cv_func_shmat=yes
 19.2890 +else
 19.2891 +  echo "configure: failed program was:" >&5
 19.2892 +  cat conftest.$ac_ext >&5
 19.2893 +  rm -rf conftest*
 19.2894 +  ac_cv_func_shmat=no
 19.2895 +fi
 19.2896 +rm -f conftest*
 19.2897 +fi
 19.2898 +echo "$ac_t""$ac_cv_func_shmat" 1>&6
 19.2899 +
 19.2900 +    if test $ac_cv_func_shmat = no; then
 19.2901 +      echo $ac_n "checking for shmat in -lipc... $ac_c" 1>&6
 19.2902 +echo "configure:2900: checking for shmat in -lipc" 1>&5
 19.2903 +if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 19.2904 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2905 +else
 19.2906 +  ac_save_LIBS="$LIBS"
 19.2907 +LIBS="-lipc  $LIBS"
 19.2908 +cat >conftest.$ac_ext <<EOF
 19.2909 +#line 2907 "configure"
 19.2910 +#include "confdefs.h"
 19.2911 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2912 +#ifdef __cplusplus
 19.2913 +extern "C"
 19.2914 +#endif
 19.2915 +/* We use char because int might match the return type of a gcc2
 19.2916 +    builtin and then its argument prototype would still apply.  */
 19.2917 +char shmat();
 19.2918 +
 19.2919 +int main() {
 19.2920 +shmat()
 19.2921 +; return 0; }
 19.2922 +EOF
 19.2923 +if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2924 +  rm -rf conftest*
 19.2925 +  ac_cv_lib_ipc_shmat=yes
 19.2926 +else
 19.2927 +  echo "configure: failed program was:" >&5
 19.2928 +  cat conftest.$ac_ext >&5
 19.2929 +  rm -rf conftest*
 19.2930 +  ac_cv_lib_ipc_shmat=no
 19.2931 +fi
 19.2932 +rm -f conftest*
 19.2933 +LIBS="$ac_save_LIBS"
 19.2934 +fi
 19.2935 +echo "$ac_t""$ac_cv_lib_ipc_shmat" 1>&6
 19.2936 +if test $ac_cv_lib_ipc_shmat = yes; then
 19.2937 +  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
 19.2938 +fi
 19.2939 +
 19.2940 +    fi
 19.2941 +  fi
 19.2942 +
 19.2943 +  # Check for libraries that X11R6 Xt/Xaw programs need.
 19.2944 +  ac_save_LDFLAGS="$LDFLAGS"
 19.2945 +  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
 19.2946 +  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
 19.2947 +  # check for ICE first), but we must link in the order -lSM -lICE or
 19.2948 +  # we get undefined symbols.  So assume we have SM if we have ICE.
 19.2949 +  # These have to be linked with before -lX11, unlike the other
 19.2950 +  # libraries we check for below, so use a different variable.
 19.2951 +  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
 19.2952 +  echo $ac_n "checking for IceConnectionNumber in -lICE... $ac_c" 1>&6
 19.2953 +echo "configure:2951: checking for IceConnectionNumber in -lICE" 1>&5
 19.2954 +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 19.2955 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.2956 +else
 19.2957 +  ac_save_LIBS="$LIBS"
 19.2958 +LIBS="-lICE $X_EXTRA_LIBS $LIBS"
 19.2959 +cat >conftest.$ac_ext <<EOF
 19.2960 +#line 2958 "configure"
 19.2961 +#include "confdefs.h"
 19.2962 +/* Override any gcc2 internal prototype to avoid an error.  */
 19.2963 +#ifdef __cplusplus
 19.2964 +extern "C"
 19.2965 +#endif
 19.2966 +/* We use char because int might match the return type of a gcc2
 19.2967 +    builtin and then its argument prototype would still apply.  */
 19.2968 +char IceConnectionNumber();
 19.2969 +
 19.2970 +int main() {
 19.2971 +IceConnectionNumber()
 19.2972 +; return 0; }
 19.2973 +EOF
 19.2974 +if { (eval echo configure:2972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.2975 +  rm -rf conftest*
 19.2976 +  ac_cv_lib_ICE_IceConnectionNumber=yes
 19.2977 +else
 19.2978 +  echo "configure: failed program was:" >&5
 19.2979 +  cat conftest.$ac_ext >&5
 19.2980 +  rm -rf conftest*
 19.2981 +  ac_cv_lib_ICE_IceConnectionNumber=no
 19.2982 +fi
 19.2983 +rm -f conftest*
 19.2984 +LIBS="$ac_save_LIBS"
 19.2985 +fi
 19.2986 +echo "$ac_t""$ac_cv_lib_ICE_IceConnectionNumber" 1>&6
 19.2987 +if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
 19.2988 +  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
 19.2989 +fi
 19.2990 +
 19.2991 +  LDFLAGS="$ac_save_LDFLAGS"
 19.2992 +
 19.2993 +fi
 19.2994 +
 19.2995 +
 19.2996 +if test x"$no_x" != xyes; then
 19.2997 +  #  *** DEBUG ***
 19.2998 +  #  Keep this around, as it can be handy when testing on new systems.
 19.2999 +  # echo "X_CFLAGS: $X_CFLAGS"
 19.3000 +  # echo "X_PRE_LIBS: $X_PRE_LIBS"
 19.3001 +  # echo "X_LIBS: $X_LIBS"
 19.3002 +  # echo "X_EXTRA_LIBS: $X_EXTRA_LIBS"
 19.3003 +  # echo
 19.3004 +  # echo "CFLAGS: $CFLAGS"
 19.3005 +  # echo "CPPFLAGS: $CPPFLAGS"
 19.3006 +  # echo "CXXFLAGS: $CXXFLAGS"
 19.3007 +  # echo "LDFLAGS: $LDFLAGS"
 19.3008 +  # echo "LIBS: $LIBS"
 19.3009 +  # exit 0
 19.3010 +
 19.3011 +  sim_ac_x11_cppflags="$X_CFLAGS"
 19.3012 +  sim_ac_x11_ldflags="$X_LIBS"
 19.3013 +  sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
 19.3014 +
 19.3015 +  sim_ac_save_cppflags=$CPPFLAGS
 19.3016 +  sim_ac_save_ldflags=$LDFLAGS
 19.3017 +  sim_ac_save_libs=$LIBS
 19.3018 +
 19.3019 +  CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
 19.3020 +  LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
 19.3021 +  LIBS="$sim_ac_x11_libs $LIBS"
 19.3022 +
 19.3023 +  echo $ac_n "checking whether we can link against X11... $ac_c" 1>&6
 19.3024 +echo "configure:3022: checking whether we can link against X11" 1>&5
 19.3025 +if test "${sim_cv_lib_x11_avail+set}" = set; then
 19.3026 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3027 +else
 19.3028 +  cat >conftest.$ac_ext <<EOF
 19.3029 +#line 3027 "configure"
 19.3030 +#include "confdefs.h"
 19.3031 +#include <X11/Xlib.h>
 19.3032 +int main() {
 19.3033 +(void)XOpenDisplay(0L);
 19.3034 +; return 0; }
 19.3035 +EOF
 19.3036 +if { (eval echo configure:3034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3037 +  rm -rf conftest*
 19.3038 +  sim_cv_lib_x11_avail=yes
 19.3039 +else
 19.3040 +  echo "configure: failed program was:" >&5
 19.3041 +  cat conftest.$ac_ext >&5
 19.3042 +  rm -rf conftest*
 19.3043 +  sim_cv_lib_x11_avail=no
 19.3044 +fi
 19.3045 +rm -f conftest*
 19.3046 +fi
 19.3047 +echo "$ac_t""$sim_cv_lib_x11_avail" 1>&6
 19.3048 +
 19.3049 +  if test x"$sim_cv_lib_x11_avail" = xyes; then
 19.3050 +    sim_ac_x11_avail=yes
 19.3051 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_x11_cppflags"
 19.3052 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_x11_ldflags"
 19.3053 +    SOGTK_EXTRA_LIBS="$sim_ac_x11_libs $SOGTK_EXTRA_LIBS"
 19.3054 +  
 19.3055 +  else
 19.3056 +    CPPFLAGS=$sim_ac_save_cppflags
 19.3057 +    LDFLAGS=$sim_ac_save_ldflags
 19.3058 +    LIBS=$sim_ac_save_libs
 19.3059 +    :
 19.3060 +  fi
 19.3061 +fi
 19.3062 +
 19.3063 +
 19.3064 +  if test x"$sim_ac_x11_avail" = xyes; then
 19.3065 +    
 19.3066 +
 19.3067 +
 19.3068 +sim_ac_x11shmem_avail=no
 19.3069 +sim_ac_x11shmem_libs="-lXext"
 19.3070 +sim_ac_save_libs=$LIBS
 19.3071 +LIBS="$sim_ac_x11shmem_libs $LIBS"
 19.3072 +
 19.3073 +echo $ac_n "checking whether the X11 shared memory extension is available... $ac_c" 1>&6
 19.3074 +echo "configure:3072: checking whether the X11 shared memory extension is available" 1>&5
 19.3075 +if test "${sim_cv_lib_x11shmem_avail+set}" = set; then
 19.3076 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3077 +else
 19.3078 +  cat >conftest.$ac_ext <<EOF
 19.3079 +#line 3077 "configure"
 19.3080 +#include "confdefs.h"
 19.3081 +#include <X11/Xlib.h>
 19.3082 +                #include <X11/extensions/XShm.h>
 19.3083 +int main() {
 19.3084 +(void)XShmQueryVersion(0L, 0L, 0L, 0L);
 19.3085 +; return 0; }
 19.3086 +EOF
 19.3087 +if { (eval echo configure:3085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3088 +  rm -rf conftest*
 19.3089 +  sim_cv_lib_x11shmem_avail=yes
 19.3090 +else
 19.3091 +  echo "configure: failed program was:" >&5
 19.3092 +  cat conftest.$ac_ext >&5
 19.3093 +  rm -rf conftest*
 19.3094 +  sim_cv_lib_x11shmem_avail=no
 19.3095 +fi
 19.3096 +rm -f conftest*
 19.3097 +fi
 19.3098 +echo "$ac_t""$sim_cv_lib_x11shmem_avail" 1>&6
 19.3099 +
 19.3100 +if test x"$sim_cv_lib_x11shmem_avail" = xyes; then
 19.3101 +  sim_ac_x11shmem_avail=yes
 19.3102 +  SOGTK_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGTK_EXTRA_LIBS"
 19.3103 +    
 19.3104 +else
 19.3105 +  LIBS=$sim_ac_save_libs
 19.3106 +  :
 19.3107 +fi
 19.3108 +
 19.3109 +    
 19.3110 +
 19.3111 +
 19.3112 +sim_ac_x11mu_avail=no
 19.3113 +sim_ac_x11mu_libs="-lXmu"
 19.3114 +sim_ac_save_libs=$LIBS
 19.3115 +LIBS="$sim_ac_x11mu_libs $LIBS"
 19.3116 +
 19.3117 +echo $ac_n "checking whether the X11 miscellaneous utilities is available... $ac_c" 1>&6
 19.3118 +echo "configure:3116: checking whether the X11 miscellaneous utilities is available" 1>&5
 19.3119 +if test "${sim_cv_lib_x11mu_avail+set}" = set; then
 19.3120 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3121 +else
 19.3122 +  cat >conftest.$ac_ext <<EOF
 19.3123 +#line 3121 "configure"
 19.3124 +#include "confdefs.h"
 19.3125 +#include <X11/Xlib.h>
 19.3126 +                #include <X11/Xmu/Xmu.h>
 19.3127 +                #include <X11/Xmu/StdCmap.h>
 19.3128 +int main() {
 19.3129 +(void)XmuAllStandardColormaps(0L);
 19.3130 +; return 0; }
 19.3131 +EOF
 19.3132 +if { (eval echo configure:3130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3133 +  rm -rf conftest*
 19.3134 +  sim_cv_lib_x11mu_avail=yes
 19.3135 +else
 19.3136 +  echo "configure: failed program was:" >&5
 19.3137 +  cat conftest.$ac_ext >&5
 19.3138 +  rm -rf conftest*
 19.3139 +  sim_cv_lib_x11mu_avail=no
 19.3140 +fi
 19.3141 +rm -f conftest*
 19.3142 +fi
 19.3143 +echo "$ac_t""$sim_cv_lib_x11mu_avail" 1>&6
 19.3144 +
 19.3145 +if test x"$sim_cv_lib_x11mu_avail" = xyes; then
 19.3146 +  sim_ac_x11mu_avail=yes
 19.3147 +  SOGTK_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGTK_EXTRA_LIBS"
 19.3148 +    
 19.3149 +else
 19.3150 +  LIBS=$sim_ac_save_libs
 19.3151 +  :
 19.3152 +fi
 19.3153 +
 19.3154 +  fi
 19.3155 +
 19.3156 +  
 19.3157 +
 19.3158 +
 19.3159 +# Check whether --with-opengl or --without-opengl was given.
 19.3160 +if test "${with_opengl+set}" = set; then
 19.3161 +  withval="$with_opengl"
 19.3162 +  :
 19.3163 +else
 19.3164 +  with_opengl=yes
 19.3165 +fi
 19.3166 +
 19.3167 +
 19.3168 +sim_ac_gl_avail=no
 19.3169 +sim_ac_gl_is_mesa=no
 19.3170 +
 19.3171 +if test x"$with_opengl" != xno; then
 19.3172 +  if test x"$with_opengl" != xyes; then
 19.3173 +    sim_ac_gl_cppflags="-I${with_opengl}/include"
 19.3174 +    sim_ac_gl_ldflags="-L${with_opengl}/lib"
 19.3175 +  fi
 19.3176 +
 19.3177 +  sim_ac_save_cppflags=$CPPFLAGS
 19.3178 +  sim_ac_save_ldflags=$LDFLAGS
 19.3179 +
 19.3180 +  CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
 19.3181 +  LDFLAGS="$LDFLAGS $sim_ac_gl_ldflags"
 19.3182 +
 19.3183 +  sim_ac_save_libs=$LIBS
 19.3184 +  sim_ac_gl_libs="-lMesaGLU -lMesaGL"
 19.3185 +  LIBS="$sim_ac_gl_libs $LIBS"
 19.3186 +
 19.3187 +  echo $ac_n "checking whether OpenGL libraries with the Mesa prefix are available... $ac_c" 1>&6
 19.3188 +echo "configure:3186: checking whether OpenGL libraries with the Mesa prefix are available" 1>&5
 19.3189 +if test "${sim_cv_lib_mesa_avail+set}" = set; then
 19.3190 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3191 +else
 19.3192 +  cat >conftest.$ac_ext <<EOF
 19.3193 +#line 3191 "configure"
 19.3194 +#include "confdefs.h"
 19.3195 +#include <GL/gl.h>
 19.3196 +                  #include <GL/glu.h>
 19.3197 +int main() {
 19.3198 +glPointSize(1.0f); gluSphere(0L, 1.0, 1, 1);
 19.3199 +; return 0; }
 19.3200 +EOF
 19.3201 +if { (eval echo configure:3199: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3202 +  rm -rf conftest*
 19.3203 +  sim_cv_lib_mesa_avail=yes
 19.3204 +else
 19.3205 +  echo "configure: failed program was:" >&5
 19.3206 +  cat conftest.$ac_ext >&5
 19.3207 +  rm -rf conftest*
 19.3208 +  sim_cv_lib_mesa_avail=no
 19.3209 +fi
 19.3210 +rm -f conftest*
 19.3211 +fi
 19.3212 +echo "$ac_t""$sim_cv_lib_mesa_avail" 1>&6
 19.3213 +
 19.3214 +  if test x"$sim_cv_lib_mesa_avail" = xyes; then
 19.3215 +    sim_ac_gl_is_mesa=yes
 19.3216 +    sim_ac_gl_avail=yes
 19.3217 +  else
 19.3218 +    sim_ac_gl_libs="-lGLU -lGL"
 19.3219 +    LIBS="$sim_ac_gl_libs $sim_ac_save_libs"
 19.3220 +
 19.3221 +    echo $ac_n "checking whether OpenGL libraries are available... $ac_c" 1>&6
 19.3222 +echo "configure:3220: checking whether OpenGL libraries are available" 1>&5
 19.3223 +if test "${sim_cv_lib_gl_avail+set}" = set; then
 19.3224 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3225 +else
 19.3226 +  cat >conftest.$ac_ext <<EOF
 19.3227 +#line 3225 "configure"
 19.3228 +#include "confdefs.h"
 19.3229 +#include <GL/gl.h>
 19.3230 +                    #include <GL/glu.h>
 19.3231 +int main() {
 19.3232 +glPointSize(1.0f); gluSphere(0L, 1.0, 1, 1);
 19.3233 +; return 0; }
 19.3234 +EOF
 19.3235 +if { (eval echo configure:3233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3236 +  rm -rf conftest*
 19.3237 +  sim_cv_lib_gl_avail=yes
 19.3238 +else
 19.3239 +  echo "configure: failed program was:" >&5
 19.3240 +  cat conftest.$ac_ext >&5
 19.3241 +  rm -rf conftest*
 19.3242 +  sim_cv_lib_gl_avail=no
 19.3243 +fi
 19.3244 +rm -f conftest*
 19.3245 +fi
 19.3246 +echo "$ac_t""$sim_cv_lib_gl_avail" 1>&6
 19.3247 +
 19.3248 +    if test x"$sim_cv_lib_gl_avail" = xyes; then
 19.3249 +      sim_ac_gl_avail=yes
 19.3250 +      echo $ac_n "checking whether OpenGL libraries actually are the Mesa libraries... $ac_c" 1>&6
 19.3251 +echo "configure:3249: checking whether OpenGL libraries actually are the Mesa libraries" 1>&5
 19.3252 +if test "${sim_cv_lib_gl_ismesa+set}" = set; then
 19.3253 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3254 +else
 19.3255 +  cat >conftest.$ac_ext <<EOF
 19.3256 +#line 3254 "configure"
 19.3257 +#include "confdefs.h"
 19.3258 +#include <GL/gl.h>
 19.3259 +                      #include <GL/glu.h>
 19.3260 +int main() {
 19.3261 +#ifndef MESA
 19.3262 +                      #error not mesa
 19.3263 +                      #endif
 19.3264 +; return 0; }
 19.3265 +EOF
 19.3266 +if { (eval echo configure:3264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3267 +  rm -rf conftest*
 19.3268 +  sim_cv_lib_gl_ismesa=yes
 19.3269 +else
 19.3270 +  echo "configure: failed program was:" >&5
 19.3271 +  cat conftest.$ac_ext >&5
 19.3272 +  rm -rf conftest*
 19.3273 +  sim_cv_lib_gl_ismesa=no
 19.3274 +fi
 19.3275 +rm -f conftest*
 19.3276 +fi
 19.3277 +echo "$ac_t""$sim_cv_lib_gl_ismesa" 1>&6
 19.3278 +      if test x"$sim_cv_lib_gl_ismesa" = xyes; then
 19.3279 +        sim_ac_gl_is_mesa=yes
 19.3280 +      fi
 19.3281 +    fi
 19.3282 +  fi
 19.3283 +
 19.3284 +  if test x"$sim_ac_gl_avail" = xyes; then
 19.3285 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_gl_cppflags"
 19.3286 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_gl_ldflags"
 19.3287 +    SOGTK_EXTRA_LIBS="$sim_ac_gl_libs $SOGTK_EXTRA_LIBS"
 19.3288 +  
 19.3289 +  else
 19.3290 +    CPPFLAGS=$sim_ac_save_cppflags
 19.3291 +    LDFLAGS=$sim_ac_save_ldflags
 19.3292 +    LIBS=$sim_ac_save_libs
 19.3293 +    { echo "configure: error: needs an OpenGL-compatible development system installation" 1>&2; exit 1; }
 19.3294 +  fi
 19.3295 +fi
 19.3296 +
 19.3297 +
 19.3298 +  
 19.3299 +
 19.3300 +
 19.3301 +# Check whether --with-inventor or --without-inventor was given.
 19.3302 +if test "${with_inventor+set}" = set; then
 19.3303 +  withval="$with_inventor"
 19.3304 +  :
 19.3305 +else
 19.3306 +  with_inventor=no
 19.3307 +fi
 19.3308 +
 19.3309 +
 19.3310 +sim_ac_oiv_avail=no
 19.3311 +
 19.3312 +if test x"$with_inventor" != xno; then
 19.3313 +  if test x"$with_inventor" != xyes; then
 19.3314 +    sim_ac_oiv_cppflags="-I${with_inventor}/include"
 19.3315 +    sim_ac_oiv_ldflags="-L${with_inventor}/lib"
 19.3316 +  else
 19.3317 +    echo $ac_n "checking value of the OIVHOME environment variable... $ac_c" 1>&6
 19.3318 +echo "configure:3316: checking value of the OIVHOME environment variable" 1>&5
 19.3319 +    if test x"$OIVHOME" = x; then
 19.3320 +      echo "$ac_t""empty" 1>&6
 19.3321 +      echo "configure: warning: OIVHOME environment variable not set -- this might be an indication of a problem" 1>&2
 19.3322 +    else
 19.3323 +      echo "$ac_t""$OIVHOME" 1>&6
 19.3324 +      sim_ac_oiv_cppflags="-I$OIVHOME/include"
 19.3325 +      sim_ac_oiv_ldflags="-L$OIVHOME/lib"
 19.3326 +    fi
 19.3327 +  fi
 19.3328 +
 19.3329 +  sim_ac_oiv_libs="-lInventor -limage"
 19.3330 +
 19.3331 +  sim_ac_save_cppflags=$CPPFLAGS
 19.3332 +  sim_ac_save_ldflags=$LDFLAGS
 19.3333 +  sim_ac_save_libs=$LIBS
 19.3334 +
 19.3335 +  CPPFLAGS="$sim_ac_oiv_cppflags $CPPFLAGS"
 19.3336 +  LDFLAGS="$sim_ac_oiv_ldflags $LDFLAGS"
 19.3337 +  LIBS="$sim_ac_oiv_libs $LIBS"
 19.3338 +
 19.3339 +  echo $ac_n "checking for Open Inventor developer kit... $ac_c" 1>&6
 19.3340 +echo "configure:3338: checking for Open Inventor developer kit" 1>&5
 19.3341 +if test "${sim_cv_lib_oiv_avail+set}" = set; then
 19.3342 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3343 +else
 19.3344 +  cat >conftest.$ac_ext <<EOF
 19.3345 +#line 3343 "configure"
 19.3346 +#include "confdefs.h"
 19.3347 +#include <Inventor/SoDB.h>
 19.3348 +int main() {
 19.3349 +SoDB::init();
 19.3350 +; return 0; }
 19.3351 +EOF
 19.3352 +if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3353 +  rm -rf conftest*
 19.3354 +  sim_cv_lib_oiv_avail=yes
 19.3355 +else
 19.3356 +  echo "configure: failed program was:" >&5
 19.3357 +  cat conftest.$ac_ext >&5
 19.3358 +  rm -rf conftest*
 19.3359 +  sim_cv_lib_oiv_avail=no
 19.3360 +fi
 19.3361 +rm -f conftest*
 19.3362 +fi
 19.3363 +echo "$ac_t""$sim_cv_lib_oiv_avail" 1>&6
 19.3364 +
 19.3365 +  if test x"$sim_cv_lib_oiv_avail" = xyes; then
 19.3366 +    sim_ac_oiv_avail=yes
 19.3367 +    SOGTK_EXTRA_CPPFLAGS="$sim_ac_oiv_cppflags $SOGTK_EXTRA_CPPFLAGS"
 19.3368 +    SOGTK_EXTRA_LDFLAGS="$sim_ac_oiv_ldflags $SOGTK_EXTRA_LDFLAGS"
 19.3369 +    SOGTK_EXTRA_LIBS="$sim_ac_oiv_libs $SOGTK_EXTRA_LIBS"
 19.3370 +  
 19.3371 +  else
 19.3372 +    CPPFLAGS=$sim_ac_save_cppflags
 19.3373 +    LDFLAGS=$sim_ac_save_ldflags
 19.3374 +    LIBS=$sim_ac_save_libs
 19.3375 +    { echo "configure: error: couldn't compile and link against Open Inventor" 1>&2; exit 1; }
 19.3376 +  fi
 19.3377 +fi
 19.3378 +
 19.3379 +
 19.3380 +else
 19.3381 +
 19.3382 +  
 19.3383 +
 19.3384 +
 19.3385 +# Check whether --with-coin or --without-coin was given.
 19.3386 +if test "${with_coin+set}" = set; then
 19.3387 +  withval="$with_coin"
 19.3388 +  :
 19.3389 +else
 19.3390 +  with_coin=yes
 19.3391 +fi
 19.3392 +
 19.3393 +
 19.3394 +sim_ac_coin_avail=no
 19.3395 +
 19.3396 +if test x"$with_coin" != xno; then
 19.3397 +  sim_ac_path=$PATH
 19.3398 +  if test x"$with_coin" != xyes; then
 19.3399 +    sim_ac_path=${with_coin}/bin:$PATH
 19.3400 +  fi
 19.3401 +
 19.3402 +  # Extract the first word of "coin-config", so it can be a program name with args.
 19.3403 +set dummy coin-config; ac_word=$2
 19.3404 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
 19.3405 +echo "configure:3403: checking for $ac_word" 1>&5
 19.3406 +if test "${ac_cv_path_sim_ac_conf_cmd+set}" = set; then
 19.3407 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3408 +else
 19.3409 +  case "$sim_ac_conf_cmd" in
 19.3410 +  /* | ?:/*)
 19.3411 +  ac_cv_path_sim_ac_conf_cmd="$sim_ac_conf_cmd" # Let the user override the test with a path.
 19.3412 +  ;;
 19.3413 +  *)
 19.3414 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 19.3415 +  ac_dummy="$sim_ac_path"
 19.3416 +  for ac_dir in $ac_dummy; do
 19.3417 +    test -z "$ac_dir" && ac_dir=.
 19.3418 +    if test -f "$ac_dir/$ac_word"; then
 19.3419 +      ac_cv_path_sim_ac_conf_cmd="$ac_dir/$ac_word"
 19.3420 +      break
 19.3421 +    fi
 19.3422 +  done
 19.3423 +  IFS="$ac_save_ifs"
 19.3424 +  test -z "$ac_cv_path_sim_ac_conf_cmd" && ac_cv_path_sim_ac_conf_cmd="true"
 19.3425 +  ;;
 19.3426 +esac
 19.3427 +fi
 19.3428 +sim_ac_conf_cmd="$ac_cv_path_sim_ac_conf_cmd"
 19.3429 +if test -n "$sim_ac_conf_cmd"; then
 19.3430 +  echo "$ac_t""$sim_ac_conf_cmd" 1>&6
 19.3431 +else
 19.3432 +  echo "$ac_t""no" 1>&6
 19.3433 +fi
 19.3434 +
 19.3435 +
 19.3436 +  sim_ac_coin_cppflags=`$sim_ac_conf_cmd --cppflags`
 19.3437 +  sim_ac_coin_ldflags=`$sim_ac_conf_cmd --ldflags`
 19.3438 +  sim_ac_coin_libs=`$sim_ac_conf_cmd --libs`
 19.3439 +
 19.3440 +  sim_ac_save_cppflags=$CPPFLAGS
 19.3441 +  sim_ac_save_ldflags=$LDFLAGS
 19.3442 +  sim_ac_save_libs=$LIBS
 19.3443 +
 19.3444 +  CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags"
 19.3445 +  LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags"
 19.3446 +  LIBS="$sim_ac_coin_libs $LIBS"
 19.3447 +
 19.3448 +  echo $ac_n "checking whether the Coin library is available... $ac_c" 1>&6
 19.3449 +echo "configure:3447: checking whether the Coin library is available" 1>&5
 19.3450 +if test "${sim_cv_lib_coin_avail+set}" = set; then
 19.3451 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3452 +else
 19.3453 +  cat >conftest.$ac_ext <<EOF
 19.3454 +#line 3452 "configure"
 19.3455 +#include "confdefs.h"
 19.3456 +#include <Inventor/SoDB.h>
 19.3457 +int main() {
 19.3458 +SoDB::init();
 19.3459 +; return 0; }
 19.3460 +EOF
 19.3461 +if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3462 +  rm -rf conftest*
 19.3463 +  sim_cv_lib_coin_avail=yes
 19.3464 +else
 19.3465 +  echo "configure: failed program was:" >&5
 19.3466 +  cat conftest.$ac_ext >&5
 19.3467 +  rm -rf conftest*
 19.3468 +  sim_cv_lib_coin_avail=no
 19.3469 +fi
 19.3470 +rm -f conftest*
 19.3471 +fi
 19.3472 +echo "$ac_t""$sim_cv_lib_coin_avail" 1>&6
 19.3473 +
 19.3474 +  if test x"$sim_cv_lib_coin_avail" = xyes; then
 19.3475 +    sim_ac_coin_avail=yes
 19.3476 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_coin_cppflags"
 19.3477 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_coin_ldflags"
 19.3478 +    SOGTK_EXTRA_LIBS="$sim_ac_coin_libs $SOGTK_EXTRA_LIBS"
 19.3479 +  
 19.3480 +  else
 19.3481 +    CPPFLAGS=$sim_ac_save_cppflags
 19.3482 +    LDFLAGS=$sim_ac_save_ldflags
 19.3483 +    LIBS=$sim_ac_save_libs
 19.3484 +    { echo "configure: error: couldn't compile and link against Coin" 1>&2; exit 1; }
 19.3485 +  fi
 19.3486 +fi
 19.3487 +
 19.3488 +
 19.3489 +fi
 19.3490 +
 19.3491 +
 19.3492 +
 19.3493 +# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
 19.3494 +if test "${with_gtk_prefix+set}" = set; then
 19.3495 +  withval="$with_gtk_prefix"
 19.3496 +  gtk_config_prefix="$withval"
 19.3497 +else
 19.3498 +  gtk_config_prefix=""
 19.3499 +fi
 19.3500 +
 19.3501 +# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
 19.3502 +if test "${with_gtk_exec_prefix+set}" = set; then
 19.3503 +  withval="$with_gtk_exec_prefix"
 19.3504 +  gtk_config_exec_prefix="$withval"
 19.3505 +else
 19.3506 +  gtk_config_exec_prefix=""
 19.3507 +fi
 19.3508 +
 19.3509 +# Check whether --enable-gtktest or --disable-gtktest was given.
 19.3510 +if test "${enable_gtktest+set}" = set; then
 19.3511 +  enableval="$enable_gtktest"
 19.3512 +  :
 19.3513 +else
 19.3514 +  enable_gtktest=yes
 19.3515 +fi
 19.3516 +
 19.3517 +
 19.3518 +  for module in . 
 19.3519 +  do
 19.3520 +      case "$module" in
 19.3521 +         gthread) 
 19.3522 +             gtk_config_args="$gtk_config_args gthread"
 19.3523 +         ;;
 19.3524 +      esac
 19.3525 +  done
 19.3526 +
 19.3527 +  if test x$gtk_config_exec_prefix != x ; then
 19.3528 +     gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
 19.3529 +     if test x${GTK_CONFIG+set} != xset ; then
 19.3530 +        GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
 19.3531 +     fi
 19.3532 +  fi
 19.3533 +  if test x$gtk_config_prefix != x ; then
 19.3534 +     gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
 19.3535 +     if test x${GTK_CONFIG+set} != xset ; then
 19.3536 +        GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
 19.3537 +     fi
 19.3538 +  fi
 19.3539 +
 19.3540 +  # Extract the first word of "gtk-config", so it can be a program name with args.
 19.3541 +set dummy gtk-config; ac_word=$2
 19.3542 +echo $ac_n "checking for $ac_word... $ac_c" 1>&6
 19.3543 +echo "configure:3541: checking for $ac_word" 1>&5
 19.3544 +if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
 19.3545 +  echo $ac_n "(cached) $ac_c" 1>&6
 19.3546 +else
 19.3547 +  case "$GTK_CONFIG" in
 19.3548 +  /* | ?:/*)
 19.3549 +  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
 19.3550 +  ;;
 19.3551 +  *)
 19.3552 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 19.3553 +  ac_dummy="$PATH"
 19.3554 +  for ac_dir in $ac_dummy; do
 19.3555 +    test -z "$ac_dir" && ac_dir=.
 19.3556 +    if test -f "$ac_dir/$ac_word"; then
 19.3557 +      ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
 19.3558 +      break
 19.3559 +    fi
 19.3560 +  done
 19.3561 +  IFS="$ac_save_ifs"
 19.3562 +  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
 19.3563 +  ;;
 19.3564 +esac
 19.3565 +fi
 19.3566 +GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
 19.3567 +if test -n "$GTK_CONFIG"; then
 19.3568 +  echo "$ac_t""$GTK_CONFIG" 1>&6
 19.3569 +else
 19.3570 +  echo "$ac_t""no" 1>&6
 19.3571 +fi
 19.3572 +
 19.3573 +  min_gtk_version=1.2.6
 19.3574 +  echo $ac_n "checking for GTK - version >= $min_gtk_version... $ac_c" 1>&6
 19.3575 +echo "configure:3573: checking for GTK - version >= $min_gtk_version" 1>&5
 19.3576 +  no_gtk=""
 19.3577 +  if test "$GTK_CONFIG" = "no" ; then
 19.3578 +    no_gtk=yes
 19.3579 +  else
 19.3580 +    GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
 19.3581 +    GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
 19.3582 +    gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
 19.3583 +           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 19.3584 +    gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
 19.3585 +           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 19.3586 +    gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
 19.3587 +           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 19.3588 +    if test "x$enable_gtktest" = "xyes" ; then
 19.3589 +      ac_save_CFLAGS="$CFLAGS"
 19.3590 +      ac_save_LIBS="$LIBS"
 19.3591 +      CFLAGS="$CFLAGS $GTK_CFLAGS"
 19.3592 +      LIBS="$GTK_LIBS $LIBS"
 19.3593 +      rm -f conf.gtktest
 19.3594 +      if test "$cross_compiling" = yes; then
 19.3595 +  echo $ac_n "cross compiling; assumed OK... $ac_c"
 19.3596 +else
 19.3597 +  cat >conftest.$ac_ext <<EOF
 19.3598 +#line 3596 "configure"
 19.3599 +#include "confdefs.h"
 19.3600 +#ifdef __cplusplus
 19.3601 +extern "C" void exit(int);
 19.3602 +#endif
 19.3603 +
 19.3604 +#include <gtk/gtk.h>
 19.3605 +#include <stdio.h>
 19.3606 +#include <stdlib.h>
 19.3607 +
 19.3608 +int 
 19.3609 +main ()
 19.3610 +{
 19.3611 +  int major, minor, micro;
 19.3612 +  char *tmp_version;
 19.3613 +
 19.3614 +  system ("touch conf.gtktest");
 19.3615 +
 19.3616 +  /* HP/UX 9 (%@#!) writes to sscanf strings */
 19.3617 +  tmp_version = g_strdup("$min_gtk_version");
 19.3618 +  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 19.3619 +     printf("%s, bad version string\n", "$min_gtk_version");
 19.3620 +     exit(1);
 19.3621 +   }
 19.3622 +
 19.3623 +  if ((gtk_major_version != $gtk_config_major_version) ||
 19.3624 +      (gtk_minor_version != $gtk_config_minor_version) ||
 19.3625 +      (gtk_micro_version != $gtk_config_micro_version))
 19.3626 +    {
 19.3627 +      printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 
 19.3628 +             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
 19.3629 +             gtk_major_version, gtk_minor_version, gtk_micro_version);
 19.3630 +      printf ("*** was found! If gtk-config was correct, then it is best\n");
 19.3631 +      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
 19.3632 +      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 19.3633 +      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 19.3634 +      printf("*** required on your system.\n");
 19.3635 +      printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
 19.3636 +      printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
 19.3637 +      printf("*** before re-running configure\n");
 19.3638 +    } 
 19.3639 +#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
 19.3640 +  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
 19.3641 +	   (gtk_minor_version != GTK_MINOR_VERSION) ||
 19.3642 +           (gtk_micro_version != GTK_MICRO_VERSION))
 19.3643 +    {
 19.3644 +      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
 19.3645 +	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
 19.3646 +      printf("*** library (version %d.%d.%d)\n",
 19.3647 +	     gtk_major_version, gtk_minor_version, gtk_micro_version);
 19.3648 +    }
 19.3649 +#endif /* defined (GTK_MAJOR_VERSION) ... */
 19.3650 +  else
 19.3651 +    {
 19.3652 +      if ((gtk_major_version > major) ||
 19.3653 +        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
 19.3654 +        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
 19.3655 +      {
 19.3656 +        return 0;
 19.3657 +       }
 19.3658 +     else
 19.3659 +      {
 19.3660 +        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
 19.3661 +               gtk_major_version, gtk_minor_version, gtk_micro_version);
 19.3662 +        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
 19.3663 +	       major, minor, micro);
 19.3664 +        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
 19.3665 +        printf("***\n");
 19.3666 +        printf("*** If you have already installed a sufficiently new version, this error\n");
 19.3667 +        printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
 19.3668 +        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 19.3669 +        printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
 19.3670 +        printf("*** correct copy of gtk-config. (In this case, you will have to\n");
 19.3671 +        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 19.3672 +        printf("*** so that the correct libraries are found at run-time))\n");
 19.3673 +      }
 19.3674 +    }
 19.3675 +  return 1;
 19.3676 +}
 19.3677 +
 19.3678 +EOF
 19.3679 +if { (eval echo configure:3677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 19.3680 +then
 19.3681 +  :
 19.3682 +else
 19.3683 +  echo "configure: failed program was:" >&5
 19.3684 +  cat conftest.$ac_ext >&5
 19.3685 +  rm -fr conftest*
 19.3686 +  no_gtk=yes
 19.3687 +fi
 19.3688 +rm -fr conftest*
 19.3689 +fi
 19.3690 +
 19.3691 +       CFLAGS="$ac_save_CFLAGS"
 19.3692 +       LIBS="$ac_save_LIBS"
 19.3693 +     fi
 19.3694 +  fi
 19.3695 +  if test "x$no_gtk" = x ; then
 19.3696 +     echo "$ac_t""yes" 1>&6
 19.3697 +     :     
 19.3698 +  else
 19.3699 +     echo "$ac_t""no" 1>&6
 19.3700 +     if test "$GTK_CONFIG" = "no" ; then
 19.3701 +       echo "*** The gtk-config script installed by GTK could not be found"
 19.3702 +       echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
 19.3703 +       echo "*** your path, or set the GTK_CONFIG environment variable to the"
 19.3704 +       echo "*** full path to gtk-config."
 19.3705 +     else
 19.3706 +       if test -f conf.gtktest ; then
 19.3707 +        :
 19.3708 +       else
 19.3709 +          echo "*** Could not run GTK test program, checking why..."
 19.3710 +          CFLAGS="$CFLAGS $GTK_CFLAGS"
 19.3711 +          LIBS="$LIBS $GTK_LIBS"
 19.3712 +          cat >conftest.$ac_ext <<EOF
 19.3713 +#line 3711 "configure"
 19.3714 +#include "confdefs.h"
 19.3715 +
 19.3716 +#include <gtk/gtk.h>
 19.3717 +#include <stdio.h>
 19.3718 +
 19.3719 +int main() {
 19.3720 + return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 
 19.3721 +; return 0; }
 19.3722 +EOF
 19.3723 +if { (eval echo configure:3721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3724 +  rm -rf conftest*
 19.3725 +   echo "*** The test program compiled, but did not run. This usually means"
 19.3726 +          echo "*** that the run-time linker is not finding GTK or finding the wrong"
 19.3727 +          echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
 19.3728 +          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 19.3729 +          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 19.3730 +          echo "*** is required on your system"
 19.3731 +	  echo "***"
 19.3732 +          echo "*** If you have an old version installed, it is best to remove it, although"
 19.3733 +          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 19.3734 +          echo "***"
 19.3735 +          echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
 19.3736 +          echo "*** came with the system with the command"
 19.3737 +          echo "***"
 19.3738 +          echo "***    rpm --erase --nodeps gtk gtk-devel" 
 19.3739 +else
 19.3740 +  echo "configure: failed program was:" >&5
 19.3741 +  cat conftest.$ac_ext >&5
 19.3742 +  rm -rf conftest*
 19.3743 +   echo "*** The test program failed to compile or link. See the file config.log for the"
 19.3744 +          echo "*** exact error that occured. This usually means GTK was incorrectly installed"
 19.3745 +          echo "*** or that you have moved GTK since it was installed. In the latter case, you"
 19.3746 +          echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 
 19.3747 +fi
 19.3748 +rm -f conftest*
 19.3749 +          CFLAGS="$ac_save_CFLAGS"
 19.3750 +          LIBS="$ac_save_LIBS"
 19.3751 +       fi
 19.3752 +     fi
 19.3753 +     GTK_CFLAGS=""
 19.3754 +     GTK_LIBS=""
 19.3755 +     { echo "configure: error: Test for GTK+ failed.  See the file 'INSTALL' for help." 1>&2; exit 1; }
 19.3756 +  fi
 19.3757 +  
 19.3758 +  
 19.3759 +  rm -f conf.gtktest
 19.3760 +
 19.3761 +
 19.3762 +
 19.3763 +
 19.3764 +
 19.3765 +
 19.3766 +# Check whether --with-gl-prefix or --without-gl-prefix was given.
 19.3767 +if test "${with_gl_prefix+set}" = set; then
 19.3768 +  withval="$with_gl_prefix"
 19.3769 +  gl_prefix="$withval"
 19.3770 +else
 19.3771 +  gl_prefix=""
 19.3772 +fi
 19.3773 +
 19.3774 +
 19.3775 +# Check whether --with-gtkgl-prefix or --without-gtkgl-prefix was given.
 19.3776 +if test "${with_gtkgl_prefix+set}" = set; then
 19.3777 +  withval="$with_gtkgl_prefix"
 19.3778 +  gtkgl_prefix="$withval"
 19.3779 +else
 19.3780 +  gtkgl_prefix=""
 19.3781 +fi
 19.3782 +
 19.3783 +
 19.3784 +
 19.3785 +
 19.3786 +if test x$gl_prefix != x ; then
 19.3787 + GL_CFLAGS="-I$gl_prefix/include"
 19.3788 + GL_LDOPTS="-L$gl_prefix/lib"
 19.3789 +else
 19.3790 + GL_CFLAGS=""
 19.3791 + GL_LDOPTS=""
 19.3792 +fi
 19.3793 +
 19.3794 +saved_LIBS="$LIBS"
 19.3795 +saved_CFLAGS="$CFLAGS"
 19.3796 +
 19.3797 +# test for plain OpenGL
 19.3798 +echo $ac_n "checking GL... $ac_c" 1>&6
 19.3799 +echo "configure:3797: checking GL" 1>&5
 19.3800 +LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGLU -lGL"
 19.3801 +cat >conftest.$ac_ext <<EOF
 19.3802 +#line 3800 "configure"
 19.3803 +#include "confdefs.h"
 19.3804 +#include <GL/gl.h>
 19.3805 +int main() {
 19.3806 +glBegin(GL_POLYGON);
 19.3807 +; return 0; }
 19.3808 +EOF
 19.3809 +if { (eval echo configure:3807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3810 +  rm -rf conftest*
 19.3811 +  have_GL=yes
 19.3812 +else
 19.3813 +  echo "configure: failed program was:" >&5
 19.3814 +  cat conftest.$ac_ext >&5
 19.3815 +  rm -rf conftest*
 19.3816 +  have_GL=no
 19.3817 +fi
 19.3818 +rm -f conftest*
 19.3819 +echo "$ac_t""$have_GL" 1>&6
 19.3820 +
 19.3821 +if test x$have_GL = xyes; then
 19.3822 +
 19.3823 + GL_LIBS="-lGLU -lGL"
 19.3824 +
 19.3825 +else
 19.3826 +
 19.3827 + # test for Mesa
 19.3828 + echo $ac_n "checking Mesa... $ac_c" 1>&6
 19.3829 +echo "configure:3827: checking Mesa" 1>&5
 19.3830 + LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL"
 19.3831 + cat >conftest.$ac_ext <<EOF
 19.3832 +#line 3830 "configure"
 19.3833 +#include "confdefs.h"
 19.3834 +char glBegin(); 
 19.3835 +int main() {
 19.3836 +glBegin(GL_POLYGON);
 19.3837 +; return 0; }
 19.3838 +EOF
 19.3839 +if { (eval echo configure:3837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3840 +  rm -rf conftest*
 19.3841 +  have_Mesa=yes
 19.3842 +else
 19.3843 +  echo "configure: failed program was:" >&5
 19.3844 +  cat conftest.$ac_ext >&5
 19.3845 +  rm -rf conftest*
 19.3846 +  have_Mesa=no
 19.3847 +fi
 19.3848 +rm -f conftest*
 19.3849 + echo "$ac_t""$have_Mesa" 1>&6
 19.3850 +
 19.3851 + if test x$have_Mesa = xyes; then
 19.3852 +
 19.3853 +  GL_LIBS="-lMesaGLU -lMesaGL"
 19.3854 +
 19.3855 + else
 19.3856 +
 19.3857 +  # test for Mesa with threads
 19.3858 +  echo $ac_n "checking Mesa with pthreads... $ac_c" 1>&6
 19.3859 +echo "configure:3857: checking Mesa with pthreads" 1>&5
 19.3860 +  LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL -lpthread"
 19.3861 +  cat >conftest.$ac_ext <<EOF
 19.3862 +#line 3860 "configure"
 19.3863 +#include "confdefs.h"
 19.3864 +#include <GL/gl.h>
 19.3865 +int main() {
 19.3866 +glBegin(GL_POLYGON);
 19.3867 +; return 0; }
 19.3868 +EOF
 19.3869 +if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3870 +  rm -rf conftest*
 19.3871 +  have_Mesa_pthread=yes
 19.3872 +else
 19.3873 +  echo "configure: failed program was:" >&5
 19.3874 +  cat conftest.$ac_ext >&5
 19.3875 +  rm -rf conftest*
 19.3876 +  have_Mesa_pthread=no
 19.3877 +fi
 19.3878 +rm -f conftest*
 19.3879 +  echo "$ac_t""$have_Mesa_pthread" 1>&6
 19.3880 +
 19.3881 +  if test x$have_Mesa_pthread = xyes; then
 19.3882 +    
 19.3883 +    GL_LIBS="-lMesaGLU -lMesaGL -lpthread"
 19.3884 +
 19.3885 +  else
 19.3886 +
 19.3887 +   #all failed
 19.3888 +   LIBS="$saved_LIBS"
 19.3889 +   CFLAGS="$saved_CFLAGS"
 19.3890 +   GTKGL_LIBS=""
 19.3891 +   GTKGL_CFLAGS=""
 19.3892 +   { echo "configure: error: Test for GtkGLArea failed.  See the file 'INSTALL' for help." 1>&2; exit 1; }
 19.3893 +
 19.3894 +  fi
 19.3895 + fi
 19.3896 +fi
 19.3897 +
 19.3898 +
 19.3899 +if test x$gtkgl_prefix != x; then
 19.3900 + GTKGL_CFLAGS="-I$gtkgl_prefix/include"
 19.3901 + GTKGL_LDOPTS="-L$gtkgl_prefix/lib"
 19.3902 +else
 19.3903 + GTKGL_CFLAGS=""
 19.3904 + GTKGL_LDOPTS=""
 19.3905 +fi
 19.3906 +
 19.3907 +echo $ac_n "checking GtkGLArea... $ac_c" 1>&6
 19.3908 +echo "configure:3906: checking GtkGLArea" 1>&5
 19.3909 +LIBS="$save_LIBS -lgtkgl $GTK_LIBS $GL_LDOPTS $GL_LIBS $GTKGL_LDOPTS"
 19.3910 +cat >conftest.$ac_ext <<EOF
 19.3911 +#line 3909 "configure"
 19.3912 +#include "confdefs.h"
 19.3913 +#include <gtkgl/gtkglarea.h>
 19.3914 +int main() {
 19.3915 +gtk_gl_area_new(0L);
 19.3916 +; return 0; }
 19.3917 +EOF
 19.3918 +if { (eval echo configure:3916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 19.3919 +  rm -rf conftest*
 19.3920 +  have_gtkgl=yes
 19.3921 +else
 19.3922 +  echo "configure: failed program was:" >&5
 19.3923 +  cat conftest.$ac_ext >&5
 19.3924 +  rm -rf conftest*
 19.3925 +  have_gtkgl=no
 19.3926 +fi
 19.3927 +rm -f conftest*
 19.3928 +echo "$ac_t""$have_gtkgl" 1>&6
 19.3929 +
 19.3930 +if test x$have_gtkgl = xyes; then
 19.3931 +
 19.3932 + LIBS="$saved_LIBS"
 19.3933 + CFLAGS="$saved_CFLAGS"
 19.3934 + GTKGL_CFLAGS="$GTKGL_CFLAGS $GL_CFLAGS"
 19.3935 + GTKGL_LIBS="$GTKGL_LDOPTS -lgtkgl $GL_LDOPTS $GL_LIBS"
 19.3936 + :
 19.3937 +
 19.3938 +else
 19.3939 +
 19.3940 + LIBS="$saved_LIBS"
 19.3941 + CFLAGS="$saved_CFLAGS"
 19.3942 + GTKGL_LIBS=""
 19.3943 + GTKGL_CFLAGS=""
 19.3944 + { echo "configure: error: Test for GtkGLArea failed.  See the file 'INSTALL' for help." 1>&2; exit 1; }
 19.3945 +
 19.3946 +fi
 19.3947 +
 19.3948 +
 19.3949 +
 19.3950 +
 19.3951 +
 19.3952 +
 19.3953 +
 19.3954 +
 19.3955 +
 19.3956 +
 19.3957 +
 19.3958 +# Check whether --enable-debug or --disable-debug was given.
 19.3959 +if test "${enable_debug+set}" = set; then
 19.3960 +  enableval="$enable_debug"
 19.3961 +  case "${enableval}" in
 19.3962 +    yes) enable_debug=yes ;;
 19.3963 +    no)  enable_debug=no ;;
 19.3964 +    *) { echo "configure: error: bad value \"${enableval}\" for --enable-debug" 1>&2; exit 1; } ;;
 19.3965 +  esac
 19.3966 +else
 19.3967 +  enable_debug=yes
 19.3968 +fi
 19.3969 +
 19.3970 +
 19.3971 +if test "x$enable_debug" = "xno"; then
 19.3972 +  CFLAGS="$CFLAGS -DNDEBUG"
 19.3973 +  CXXFLAGS="$CXXFLAGS -DNDEBUG"
 19.3974 +fi
 19.3975 +
 19.3976 +if test $enable_debug = yes; then
 19.3977 +  CXXFLAGS="$CXXFLAGS -DSOGTK_DEBUG=1"
 19.3978 +else
 19.3979 +  CXXFLAGS="$CXXFLAGS -DSOGTK_DEBUG=0"
 19.3980 +fi
 19.3981 +
 19.3982 +
 19.3983 +
 19.3984 +# Check whether --enable-symbols or --disable-symbols was given.
 19.3985 +if test "${enable_symbols+set}" = set; then
 19.3986 +  enableval="$enable_symbols"
 19.3987 +  case "${enableval}" in
 19.3988 +    yes) enable_symbols=yes ;;
 19.3989 +    no)  enable_symbols=no ;;
 19.3990 +    *) { echo "configure: error: bad value \"${enableval}\" for --enable-symbols" 1>&2; exit 1; } ;;
 19.3991 +  esac
 19.3992 +else
 19.3993 +  enable_symbols=yes
 19.3994 +fi
 19.3995 +
 19.3996 +
 19.3997 +if test "x$enable_symbols" = "xno"; then
 19.3998 +  if test "x$GXX" = "xyes" || "x$GCC" = "xyes"; then
 19.3999 +    CFLAGS="`echo $CFLAGS | sed 's/-g//'`"
 19.4000 +    CXXFLAGS="`echo $CXXFLAGS | sed 's/-g//'`"
 19.4001 +  else
 19.4002 +    echo "configure: warning: --disable-symbols only has effect when using GNU gcc or g++" 1>&2
 19.4003 +  fi
 19.4004 +fi
 19.4005 +
 19.4006 +
 19.4007 +
 19.4008 +# Check whether --enable-rtti or --disable-rtti was given.
 19.4009 +if test "${enable_rtti+set}" = set; then
 19.4010 +  enableval="$enable_rtti"
 19.4011 +  case "${enableval}" in
 19.4012 +    yes) enable_rtti=yes ;;
 19.4013 +    no)  enable_rtti=no ;;
 19.4014 +    *) { echo "configure: error: bad value \"${enableval}\" for --enable-rtti" 1>&2; exit 1; } ;;
 19.4015 +  esac
 19.4016 +else
 19.4017 +  enable_rtti=no
 19.4018 +fi
 19.4019 +
 19.4020 +
 19.4021 +if test "x$enable_rtti" = "xno"; then
 19.4022 +  if test "x$GXX" = "xyes"; then
 19.4023 +    CXXFLAGS="$CXXFLAGS -fno-rtti"
 19.4024 +  fi
 19.4025 +else
 19.4026 +  if test "x$GXX" != "xyes"; then
 19.4027 +    echo "configure: warning: --enable-rtti only has effect when using GNU g++" 1>&2
 19.4028 +  fi
 19.4029 +fi
 19.4030 +
 19.4031 +
 19.4032 +
 19.4033 +# Check whether --enable-exceptions or --disable-exceptions was given.
 19.4034 +if test "${enable_exceptions+set}" = set; then
 19.4035 +  enableval="$enable_exceptions"
 19.4036 +  case "${enableval}" in
 19.4037 +    yes) enable_exceptions=yes ;;
 19.4038 +    no)  enable_exceptions=no ;;
 19.4039 +    *) { echo "configure: error: bad value \"${enableval}\" for --enable-exceptions" 1>&2; exit 1; } ;;
 19.4040 +  esac
 19.4041 +else
 19.4042 +  enable_exceptions=no
 19.4043 +fi
 19.4044 +
 19.4045 +
 19.4046 +if test "x$enable_exceptions" = "xno"; then
 19.4047 +  if test "x$GXX" = "xyes"; then
 19.4048 +    unset _exception_flag
 19.4049 +        
 19.4050 +
 19.4051 +echo $ac_n "checking whether $CXX accepts -fno-exceptions... $ac_c" 1>&6
 19.4052 +echo "configure:4050: checking whether $CXX accepts -fno-exceptions" 1>&5
 19.4053 +_save_cxxflags=$CXXFLAGS
 19.4054 +CXXFLAGS="$CXXFLAGS -fno-exceptions"
 19.4055 +cat >conftest.$ac_ext <<EOF
 19.4056 +#line 4054 "configure"
 19.4057 +#include "confdefs.h"
 19.4058 +
 19.4059 +int main() {
 19.4060 +
 19.4061 +; return 0; }
 19.4062 +EOF
 19.4063 +if { (eval echo configure:4061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 19.4064 +  rm -rf conftest*
 19.4065 +  _accept_result=yes _exception_flag=-fno-exceptions
 19.4066 +else
 19.4067 +  echo "configure: failed program was:" >&5
 19.4068 +  cat conftest.$ac_ext >&5
 19.4069 +  rm -rf conftest*
 19.4070 +  _accept_result=no 
 19.4071 +fi
 19.4072 +rm -f conftest*
 19.4073 +echo "$ac_t""$_accept_result" 1>&6
 19.4074 +CXXFLAGS=$_save_cxxflags
 19.4075 +unset _accept_result _save_cxxflags
 19.4076 +
 19.4077 +    if test "x$_exception_flag" = "x"; then
 19.4078 +            
 19.4079 +
 19.4080 +echo $ac_n "checking whether $CXX accepts -fno-handle-exceptions... $ac_c" 1>&6
 19.4081 +echo "configure:4079: checking whether $CXX accepts -fno-handle-exceptions" 1>&5
 19.4082 +_save_cxxflags=$CXXFLAGS
 19.4083 +CXXFLAGS="$CXXFLAGS -fno-handle-exceptions"
 19.4084 +cat >conftest.$ac_ext <<EOF
 19.4085 +#line 4083 "configure"
 19.4086 +#include "confdefs.h"
 19.4087 +
 19.4088 +int main() {
 19.4089 +
 19.4090 +; return 0; }
 19.4091 +EOF
 19.4092 +if { (eval echo configure:4090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 19.4093 +  rm -rf conftest*
 19.4094 +  _accept_result=yes _exception_flag=-fno-handle-exceptions
 19.4095 +else
 19.4096 +  echo "configure: failed program was:" >&5
 19.4097 +  cat conftest.$ac_ext >&5
 19.4098 +  rm -rf conftest*
 19.4099 +  _accept_result=no 
 19.4100 +fi
 19.4101 +rm -f conftest*
 19.4102 +echo "$ac_t""$_accept_result" 1>&6
 19.4103 +CXXFLAGS=$_save_cxxflags
 19.4104 +unset _accept_result _save_cxxflags
 19.4105 +
 19.4106 +    fi
 19.4107 +    if test "x$_exception_flag" = "x"; then
 19.4108 +      echo "configure: warning: couldn't find a valid option for avoiding exception handling" 1>&2
 19.4109 +    else
 19.4110 +      CXXFLAGS="$CXXFLAGS $_exception_flag"
 19.4111 +    fi
 19.4112 +  fi
 19.4113 +else
 19.4114 +  if test "x$GXX" != "xyes"; then
 19.4115 +    echo "configure: warning: --enable-exceptions only has effect when using GNU g++" 1>&2
 19.4116 +  fi
 19.4117 +fi
 19.4118 +
 19.4119 +
 19.4120 +
 19.4121 +# Check whether --enable-profile or --disable-profile was given.
 19.4122 +if test "${enable_profile+set}" = set; then
 19.4123 +  enableval="$enable_profile"
 19.4124 +  case "${enableval}" in
 19.4125 +    yes) enable_profile=yes ;;
 19.4126 +    no)  enable_profile=no ;;
 19.4127 +    *) { echo "configure: error: bad value \"${enableval}\" for --enable-profile" 1>&2; exit 1; } ;;
 19.4128 +  esac
 19.4129 +else
 19.4130 +  enable_profile=no
 19.4131 +fi
 19.4132 +
 19.4133 +
 19.4134 +if test "x$enable_profile" = "xyes"; then
 19.4135 +  if test "x$GXX" = "xyes" || test "x$GCC" = "xyes"; then
 19.4136 +    CFLAGS="$CFLAGS -pg"
 19.4137 +    CXXFLAGS="$CXXFLAGS -pg"
 19.4138 +    LDFLAGS="$LDFLAGS -pg"
 19.4139 +  else
 19.4140 +    echo "configure: warning: --enable-profile only has effect when using GNU gcc or g++" 1>&2
 19.4141 +  fi
 19.4142 +fi
 19.4143 +
 19.4144 +
 19.4145 +
 19.4146 +# Check whether --enable-warnings or --disable-warnings was given.
 19.4147 +if test "${enable_warnings+set}" = set; then
 19.4148 +  enableval="$enable_warnings"
 19.4149 +  case "${enableval}" in
 19.4150 +    yes) enable_warnings=yes ;;
 19.4151 +    no)  enable_warnings=no ;;
 19.4152 +    *) { echo "configure: error: bad value \"${enableval}\" for --enable-warnings" 1>&2; exit 1; } ;;
 19.4153 +  esac
 19.4154 +else
 19.4155 +  enable_warnings=yes
 19.4156 +fi
 19.4157 +
 19.4158 +
 19.4159 +if test "x$enable_warnings" = "xyes"; then
 19.4160 +  if test "x$GXX" = "xyes" || test "x$GCC" = "xyes"; then
 19.4161 +    
 19.4162 +
 19.4163 +echo $ac_n "checking whether $CXX accepts -Wno-multichar... $ac_c" 1>&6
 19.4164 +echo "configure:4162: checking whether $CXX accepts -Wno-multichar" 1>&5
 19.4165 +_save_cxxflags=$CXXFLAGS
 19.4166 +CXXFLAGS="$CXXFLAGS -Wno-multichar"
 19.4167 +cat >conftest.$ac_ext <<EOF
 19.4168 +#line 4166 "configure"
 19.4169 +#include "confdefs.h"
 19.4170 +
 19.4171 +int main() {
 19.4172 +
 19.4173 +; return 0; }
 19.4174 +EOF
 19.4175 +if { (eval echo configure:4173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 19.4176 +  rm -rf conftest*
 19.4177 +  _accept_result=yes _warn_flags=-Wno-multichar
 19.4178 +else
 19.4179 +  echo "configure: failed program was:" >&5
 19.4180 +  cat conftest.$ac_ext >&5
 19.4181 +  rm -rf conftest*
 19.4182 +  _accept_result=no 
 19.4183 +fi
 19.4184 +rm -f conftest*
 19.4185 +echo "$ac_t""$_accept_result" 1>&6
 19.4186 +CXXFLAGS=$_save_cxxflags
 19.4187 +unset _accept_result _save_cxxflags
 19.4188 +
 19.4189 +    _warn_flags="-W -Wall -Wno-unused $_warn_flags"
 19.4190 +
 19.4191 +    CFLAGS="$CFLAGS $_warn_flags"
 19.4192 +    CXXFLAGS="$CXXFLAGS $_warn_flags"
 19.4193 +
 19.4194 +    unset _warn_flags
 19.4195 +  fi
 19.4196 +else
 19.4197 +  if test "x$GXX" != "xyes" && test "x$GCC" != "xyes"; then
 19.4198 +    echo "configure: warning: --enable-warnings only has effect when using GNU gcc or g++" 1>&2
 19.4199 +  fi
 19.4200 +fi
 19.4201 +
 19.4202 +
 19.4203 +
 19.4204 +EXAMPLEMAKEFILES="
 19.4205 +	examples/Makefile
 19.4206 +	examples/test/Makefile
 19.4207 +"
 19.4208 +
 19.4209 +# Check whether --with-examples or --without-examples was given.
 19.4210 +if test "${with_examples+set}" = set; then
 19.4211 +  withval="$with_examples"
 19.4212 +  case "${withval}" in
 19.4213 +    yes) want_examples=yes ;;
 19.4214 +    no)  want_examples=no ;;
 19.4215 +    *) { echo "configure: error: bad value \"${withval}\" for --with-examples" 1>&2; exit 1; } ;;
 19.4216 +  esac
 19.4217 +else
 19.4218 +  want_examples=yes
 19.4219 +fi
 19.4220 +
 19.4221 +
 19.4222 +if test "x$want_examples" = "xno"; then
 19.4223 +  EXAMPLEMAKEFILES=""
 19.4224 +fi
 19.4225 +
 19.4226 +
 19.4227 +
 19.4228 +if test "x$want_examples" = "xyes"; then
 19.4229 +  BUILD_EXAMPLES_TRUE=
 19.4230 +  BUILD_EXAMPLES_FALSE='#'
 19.4231 +else
 19.4232 +  BUILD_EXAMPLES_TRUE='#'
 19.4233 +  BUILD_EXAMPLES_FALSE=
 19.4234 +fi
 19.4235 +
 19.4236 +
 19.4237 +test -d src || mkdir src
 19.4238 +test -d src/Inventor || mkdir src/Inventor
 19.4239 +test -d src/Inventor/Gtk || mkdir src/Inventor/Gtk
 19.4240 +
 19.4241 +trap '' 1 2 15
 19.4242 +cat >confcache <<\EOF
 19.4243 +# This file is a shell script that caches the results of configure
 19.4244 +# tests run on this system so they can be shared between configure
 19.4245 +# scripts and configure runs.  It is not useful on other systems.
 19.4246 +# If it contains results you don't want to keep, you may remove or edit it.
 19.4247 +#
 19.4248 +# By default, configure uses ./config.cache as the cache file,
 19.4249 +# creating it if it does not exist already.  You can give configure
 19.4250 +# the --cache-file=FILE option to use a different cache file; that is
 19.4251 +# what configure does when it calls configure scripts in
 19.4252 +# subdirectories, so they share the cache.
 19.4253 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
 19.4254 +# config.status only pays attention to the cache file if you give it the
 19.4255 +# --recheck option to rerun configure.
 19.4256 +#
 19.4257 +EOF
 19.4258 +# The following way of writing the cache mishandles newlines in values,
 19.4259 +# but we know of no workaround that is simple, portable, and efficient.
 19.4260 +# So, don't put newlines in cache variables' values.
 19.4261 +# Ultrix sh set writes to stderr and can't be redirected directly,
 19.4262 +# and sets the high bit in the cache file unless we assign to the vars.
 19.4263 +(set) 2>&1 |
 19.4264 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 19.4265 +  *ac_space=\ *)
 19.4266 +    # `set' does not quote correctly, so add quotes (double-quote substitution
 19.4267 +    # turns \\\\ into \\, and sed turns \\ into \).
 19.4268 +    sed -n \
 19.4269 +      -e "s/'/'\\\\''/g" \
 19.4270 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 19.4271 +    ;;
 19.4272 +  *)
 19.4273 +    # `set' quotes correctly as required by POSIX, so do not add quotes.
 19.4274 +    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 19.4275 +    ;;
 19.4276 +  esac >>confcache
 19.4277 +if cmp -s $cache_file confcache; then
 19.4278 +  :
 19.4279 +else
 19.4280 +  if test -w $cache_file; then
 19.4281 +    echo "updating cache $cache_file"
 19.4282 +    cat confcache >$cache_file
 19.4283 +  else
 19.4284 +    echo "not updating unwritable cache $cache_file"
 19.4285 +  fi
 19.4286 +fi
 19.4287 +rm -f confcache
 19.4288 +
 19.4289 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 19.4290 +
 19.4291 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
 19.4292 +# Let make expand exec_prefix.
 19.4293 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 19.4294 +
 19.4295 +# Any assignment to VPATH causes Sun make to only execute
 19.4296 +# the first set of double-colon rules, so remove it if not needed.
 19.4297 +# If there is a colon in the path, we need to keep it.
 19.4298 +if test "x$srcdir" = x.; then
 19.4299 +  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
 19.4300 +fi
 19.4301 +
 19.4302 +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 19.4303 +
 19.4304 +DEFS=-DHAVE_CONFIG_H
 19.4305 +
 19.4306 +
 19.4307 +# Without the "./", some shells look in PATH for config.status.
 19.4308 +: ${CONFIG_STATUS=./config.status}
 19.4309 +echo creating $CONFIG_STATUS
 19.4310 +cat >$CONFIG_STATUS <<EOF
 19.4311 +#! /bin/sh
 19.4312 +# Generated automatically by configure.
 19.4313 +# Run this file to recreate the current configuration.
 19.4314 +# This directory was configured as follows,
 19.4315 +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 19.4316 +#
 19.4317 +# $0 $ac_configure_args
 19.4318 +#
 19.4319 +# Compiler output produced by configure, useful for debugging
 19.4320 +# configure, is in ./config.log if it exists.
 19.4321 +
 19.4322 +# Files that config.status was made for.
 19.4323 +config_files="\\
 19.4324 +    sogtk-config Makefile src/Inventor/Gtk/Makefile
 19.4325 +    src/Inventor/Gtk/common/Makefile src/Inventor/Gtk/devices/Makefile
 19.4326 +    src/Inventor/Gtk/viewers/Makefile src/Inventor/Gtk/widgets/Makefile
 19.4327 +    examples/Makefile examples/widgets/Makefile examples/viewers/Makefile"
 19.4328 +config_headers="\\
 19.4329 +    config.h"
 19.4330 +
 19.4331 +ac_cs_usage="\\
 19.4332 +\\\`$CONFIG_STATUS' instantiates files from templates according to the
 19.4333 +current configuration.
 19.4334 +
 19.4335 +Usage: $CONFIG_STATUS [OPTIONS] FILE...
 19.4336 +
 19.4337 +  --recheck    Update $CONFIG_STATUS by reconfiguring in the same conditions
 19.4338 +  --version    Print the version of Autoconf and exit
 19.4339 +  --help       Display this help and exit
 19.4340 +
 19.4341 +Files to instantiate:
 19.4342 +  Configuration files:
 19.4343 +\$config_files
 19.4344 +  Configuration headers:
 19.4345 +\$config_headers
 19.4346 +
 19.4347 +Report bugs to <bug-autoconf@gnu.org>."
 19.4348 +
 19.4349 +ac_cs_version="\\
 19.4350 +$CONFIG_STATUS generated by autoconf version 2.14.1.
 19.4351 +Configured on host `(hostname || uname -n) 2>/dev/null | sed 1q` by running
 19.4352 +  $0 $ac_configure_args"
 19.4353 +
 19.4354 +# Root of the tmp file names.  Use pid to allow concurrent executions.
 19.4355 +ac_cs_root=cs\$\$
 19.4356 +ac_given_srcdir=$srcdir
 19.4357 +ac_given_INSTALL="$INSTALL"
 19.4358 +
 19.4359 +for ac_option
 19.4360 +do
 19.4361 +  case "\$ac_option" in
 19.4362 +  # Handling of the options.
 19.4363 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 19.4364 +    echo "running \${CONFIG_SHELL-/bin/sh} $0 `echo "$ac_configure_args" | sed 's/[\\"\`\$]/\\\\&/g'` --no-create --no-recursion"
 19.4365 +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 19.4366 +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 19.4367 +    echo "\$ac_cs_version"; exit 0 ;;
 19.4368 +  -help | --help | --hel | --he | --h)
 19.4369 +    echo "\$ac_cs_usage"; exit 0 ;;
 19.4370 +  # Handling of arguments.
 19.4371 +  'sogtk-config' ) CONFIG_FILES="\$CONFIG_FILES sogtk-config" ;;
 19.4372 +  'Makefile' ) CONFIG_FILES="\$CONFIG_FILES Makefile" ;;
 19.4373 +  'src/Inventor/Gtk/Makefile' ) CONFIG_FILES="\$CONFIG_FILES src/Inventor/Gtk/Makefile" ;;
 19.4374 +  'src/Inventor/Gtk/common/Makefile' ) CONFIG_FILES="\$CONFIG_FILES src/Inventor/Gtk/common/Makefile" ;;
 19.4375 +  'src/Inventor/Gtk/devices/Makefile' ) CONFIG_FILES="\$CONFIG_FILES src/Inventor/Gtk/devices/Makefile" ;;
 19.4376 +  'src/Inventor/Gtk/viewers/Makefile' ) CONFIG_FILES="\$CONFIG_FILES src/Inventor/Gtk/viewers/Makefile" ;;
 19.4377 +  'src/Inventor/Gtk/widgets/Makefile' ) CONFIG_FILES="\$CONFIG_FILES src/Inventor/Gtk/widgets/Makefile" ;;
 19.4378 +  'examples/Makefile' ) CONFIG_FILES="\$CONFIG_FILES examples/Makefile" ;;
 19.4379 +  'examples/widgets/Makefile' ) CONFIG_FILES="\$CONFIG_FILES examples/widgets/Makefile" ;;
 19.4380 +  'examples/viewers/Makefile' ) CONFIG_FILES="\$CONFIG_FILES examples/viewers/Makefile" ;;
 19.4381 +  'config.h' ) CONFIG_HEADERS="\$CONFIG_HEADERS config.h" ;;
 19.4382 +  # This is an error.
 19.4383 +  *) echo "$CONFIG_STATUS: invalid argument: \$ac_option"; exit 1 ;;
 19.4384 +  esac
 19.4385 +done
 19.4386 +
 19.4387 +EOF
 19.4388 +
 19.4389 +cat >>$CONFIG_STATUS <<EOF
 19.4390 +# If there were arguments and we reach this point, then the user
 19.4391 +# has specified the files to intantiate.  If there were no arguments,
 19.4392 +# then the files were specified by envvars.  Set only the envvar that
 19.4393 +# are not set.
 19.4394 +if test \$# = 0; then
 19.4395 +  : \${CONFIG_FILES="\$config_files"}
 19.4396 +  : \${CONFIG_HEADERS="\$config_headers"}
 19.4397 +fi
 19.4398 +
 19.4399 +# Remove all the CONFIG_FILES, and trap to remove the temp files.
 19.4400 +rm -fr \`echo "\$CONFIG_FILES" | sed "s/:[^ ]*//g"\`
 19.4401 +trap 'rm -fr \$ac_cs_root*; exit 1' 1 2 15
 19.4402 +
 19.4403 +EOF
 19.4404 +
 19.4405 +
 19.4406 +cat >>$CONFIG_STATUS <<EOF
 19.4407 +
 19.4408 +#
 19.4409 +# CONFIG_FILES section.
 19.4410 +#
 19.4411 +
 19.4412 +# Protect against being on the right side of a sed subst in config.status.
 19.4413 +sed 's/%@/@@/; s/@%/@@/; s/%;t t\$/@;t t/; /@;t t\$/s/[\\\\&%]/\\\\&/g;
 19.4414 + s/@@/%@/; s/@@/@%/; s/@;t t\$/%;t t/' >\$ac_cs_root.subs <<\\CEOF
 19.4415 +s%@SHELL@%$SHELL%;t t
 19.4416 +s%@CFLAGS@%$CFLAGS%;t t
 19.4417 +s%@CPPFLAGS@%$CPPFLAGS%;t t
 19.4418 +s%@CXXFLAGS@%$CXXFLAGS%;t t
 19.4419 +s%@FFLAGS@%$FFLAGS%;t t
 19.4420 +s%@DEFS@%$DEFS%;t t
 19.4421 +s%@LDFLAGS@%$LDFLAGS%;t t
 19.4422 +s%@LIBS@%$LIBS%;t t
 19.4423 +s%@exec_prefix@%$exec_prefix%;t t
 19.4424 +s%@prefix@%$prefix%;t t
 19.4425 +s%@program_transform_name@%$program_transform_name%;t t
 19.4426 +s%@bindir@%$bindir%;t t
 19.4427 +s%@sbindir@%$sbindir%;t t
 19.4428 +s%@libexecdir@%$libexecdir%;t t
 19.4429 +s%@datadir@%$datadir%;t t
 19.4430 +s%@sysconfdir@%$sysconfdir%;t t
 19.4431 +s%@sharedstatedir@%$sharedstatedir%;t t
 19.4432 +s%@localstatedir@%$localstatedir%;t t
 19.4433 +s%@libdir@%$libdir%;t t
 19.4434 +s%@includedir@%$includedir%;t t
 19.4435 +s%@oldincludedir@%$oldincludedir%;t t
 19.4436 +s%@infodir@%$infodir%;t t
 19.4437 +s%@mandir@%$mandir%;t t
 19.4438 +s%@CXX@%$CXX%;t t
 19.4439 +s%@SOGTK_MAJOR_VERSION@%$SOGTK_MAJOR_VERSION%;t t
 19.4440 +s%@SOGTK_MINOR_VERSION@%$SOGTK_MINOR_VERSION%;t t
 19.4441 +s%@SOGTK_MICRO_VERSION@%$SOGTK_MICRO_VERSION%;t t
 19.4442 +s%@SOGTK_VERSION@%$SOGTK_VERSION%;t t
 19.4443 +s%@SOGTK_INTERFACE_AGE@%$SOGTK_INTERFACE_AGE%;t t
 19.4444 +s%@SOGTK_BINARY_AGE@%$SOGTK_BINARY_AGE%;t t
 19.4445 +s%@LT_RELEASE@%$LT_RELEASE%;t t
 19.4446 +s%@LT_CURRENT@%$LT_CURRENT%;t t
 19.4447 +s%@LT_REVISION@%$LT_REVISION%;t t
 19.4448 +s%@LT_AGE@%$LT_AGE%;t t
 19.4449 +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%;t t
 19.4450 +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%;t t
 19.4451 +s%@INSTALL_DATA@%$INSTALL_DATA%;t t
 19.4452 +s%@PACKAGE@%$PACKAGE%;t t
 19.4453 +s%@VERSION@%$VERSION%;t t
 19.4454 +s%@ACLOCAL@%$ACLOCAL%;t t
 19.4455 +s%@AUTOCONF@%$AUTOCONF%;t t
 19.4456 +s%@AUTOMAKE@%$AUTOMAKE%;t t
 19.4457 +s%@AUTOHEADER@%$AUTOHEADER%;t t
 19.4458 +s%@MAKEINFO@%$MAKEINFO%;t t
 19.4459 +s%@AMTAR@%$AMTAR%;t t
 19.4460 +s%@install_sh@%$install_sh%;t t
 19.4461 +s%@AWK@%$AWK%;t t
 19.4462 +s%@SET_MAKE@%$SET_MAKE%;t t
 19.4463 +s%@AMDEP@%$AMDEP%;t t
 19.4464 +s%@AMDEPBACKSLASH@%$AMDEPBACKSLASH%;t t
 19.4465 +s%@DEPDIR@%$DEPDIR%;t t
 19.4466 +s%@CXXCPP@%$CXXCPP%;t t
 19.4467 +s%@CXXDEPMODE@%$CXXDEPMODE%;t t
 19.4468 +s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%;t t
 19.4469 +s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%;t t
 19.4470 +s%@MAINT@%$MAINT%;t t
 19.4471 +s%@host@%$host%;t t
 19.4472 +s%@host_alias@%$host_alias%;t t
 19.4473 +s%@host_cpu@%$host_cpu%;t t
 19.4474 +s%@host_vendor@%$host_vendor%;t t
 19.4475 +s%@host_os@%$host_os%;t t
 19.4476 +s%@build@%$build%;t t
 19.4477 +s%@build_alias@%$build_alias%;t t
 19.4478 +s%@build_cpu@%$build_cpu%;t t
 19.4479 +s%@build_vendor@%$build_vendor%;t t
 19.4480 +s%@build_os@%$build_os%;t t
 19.4481 +s%@RANLIB@%$RANLIB%;t t
 19.4482 +s%@CC@%$CC%;t t
 19.4483 +s%@CPP@%$CPP%;t t
 19.4484 +s%@CCDEPMODE@%$CCDEPMODE%;t t
 19.4485 +s%@LN_S@%$LN_S%;t t
 19.4486 +s%@LIBTOOL@%$LIBTOOL%;t t
 19.4487 +s%@SOGTK_EXTRA_CPPFLAGS@%$SOGTK_EXTRA_CPPFLAGS%;t t
 19.4488 +s%@SOGTK_EXTRA_LDFLAGS@%$SOGTK_EXTRA_LDFLAGS%;t t
 19.4489 +s%@SOGTK_EXTRA_LIBS@%$SOGTK_EXTRA_LIBS%;t t
 19.4490 +s%@X_CFLAGS@%$X_CFLAGS%;t t
 19.4491 +s%@X_PRE_LIBS@%$X_PRE_LIBS%;t t
 19.4492 +s%@X_LIBS@%$X_LIBS%;t t
 19.4493 +s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%;t t
 19.4494 +s%@sim_ac_conf_cmd@%$sim_ac_conf_cmd%;t t
 19.4495 +s%@GTK_CONFIG@%$GTK_CONFIG%;t t
 19.4496 +s%@GTK_CFLAGS@%$GTK_CFLAGS%;t t
 19.4497 +s%@GTK_LIBS@%$GTK_LIBS%;t t
 19.4498 +s%@GTKGL_CFLAGS@%$GTKGL_CFLAGS%;t t
 19.4499 +s%@GTKGL_LIBS@%$GTKGL_LIBS%;t t
 19.4500 +s%@BUILD_EXAMPLES_TRUE@%$BUILD_EXAMPLES_TRUE%;t t
 19.4501 +s%@BUILD_EXAMPLES_FALSE@%$BUILD_EXAMPLES_FALSE%;t t
 19.4502 +CEOF
 19.4503 +
 19.4504 +EOF
 19.4505 +
 19.4506 +cat >>$CONFIG_STATUS <<\EOF
 19.4507 +# Split the substitutions into bite-sized pieces for seds with
 19.4508 +# small command number limits, like on Digital OSF/1 and HP-UX.
 19.4509 +ac_max_sed_lines=48
 19.4510 +ac_sed_frag=1 # Number of current file.
 19.4511 +ac_beg=1 # First line for current file.
 19.4512 +ac_end=$ac_max_sed_lines # Line after last line for current file.
 19.4513 +ac_more_lines=:
 19.4514 +ac_sed_cmds=""
 19.4515 +while $ac_more_lines; do
 19.4516 +  if test $ac_beg -gt 1; then
 19.4517 +    sed "1,${ac_beg}d; ${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
 19.4518 +  else
 19.4519 +    sed "${ac_end}q" $ac_cs_root.subs >$ac_cs_root.sfrag
 19.4520 +  fi
 19.4521 +  if test ! -s $ac_cs_root.sfrag; then
 19.4522 +    ac_more_lines=false
 19.4523 +    rm -f $ac_cs_root.sfrag
 19.4524 +  else
 19.4525 +    # The purpose of the label and of the branching condition is to
 19.4526 +    # speed up the sed processing (if there are no `@' at all, there
 19.4527 +    # is no need to browse any of the substitutions).
 19.4528 +    # These are the two extra sed commands mentioned above.
 19.4529 +    (echo ':t
 19.4530 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $ac_cs_root.sfrag) >$ac_cs_root.s$ac_sed_frag
 19.4531 +    if test -z "$ac_sed_cmds"; then
 19.4532 +      ac_sed_cmds="sed -f $ac_cs_root.s$ac_sed_frag"
 19.4533 +    else
 19.4534 +      ac_sed_cmds="$ac_sed_cmds | sed -f $ac_cs_root.s$ac_sed_frag"
 19.4535 +    fi
 19.4536 +    ac_sed_frag=`expr $ac_sed_frag + 1`
 19.4537 +    ac_beg=$ac_end
 19.4538 +    ac_end=`expr $ac_end + $ac_max_sed_lines`
 19.4539 +  fi
 19.4540 +done
 19.4541 +if test -z "$ac_sed_cmds"; then
 19.4542 +  ac_sed_cmds=cat
 19.4543 +fi
 19.4544 +
 19.4545 +EOF
 19.4546 +
 19.4547 +cat >>$CONFIG_STATUS <<\EOF
 19.4548 +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 19.4549 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 19.4550 +  case "$ac_file" in
 19.4551 +  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 19.4552 +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 19.4553 +  *) ac_file_in="${ac_file}.in" ;;
 19.4554 +  esac
 19.4555 +
 19.4556 +  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 19.4557 +
 19.4558 +  # Remove last slash and all that follows it.  Not all systems have dirname.
 19.4559 +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 19.4560 +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 19.4561 +    # The file is in a subdirectory.
 19.4562 +    test ! -d "$ac_dir" && mkdir "$ac_dir"
 19.4563 +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 19.4564 +    # A "../" for each directory in $ac_dir_suffix.
 19.4565 +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 19.4566 +  else
 19.4567 +    ac_dir_suffix= ac_dots=
 19.4568 +  fi
 19.4569 +
 19.4570 +  case "$ac_given_srcdir" in
 19.4571 +  .)  srcdir=.
 19.4572 +      if test -z "$ac_dots"; then top_srcdir=.
 19.4573 +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 19.4574 +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 19.4575 +  *) # Relative path.
 19.4576 +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 19.4577 +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 19.4578 +  esac
 19.4579 +
 19.4580 +  case "$ac_given_INSTALL" in
 19.4581 +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 19.4582 +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 19.4583 +  esac
 19.4584 +
 19.4585 +  echo creating "$ac_file"
 19.4586 +  rm -f "$ac_file"
 19.4587 +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 19.4588 +  case "$ac_file" in
 19.4589 +  *[Mm]akefile*) ac_comsub="1i\\
 19.4590 +# $configure_input" ;;
 19.4591 +  *) ac_comsub= ;;
 19.4592 +  esac
 19.4593 +
 19.4594 +# Don't redirect the output to AC_FILE directly: use `mv' so that updating
 19.4595 +# is atomic, and doesn't need trapping.
 19.4596 +  ac_file_inputs=`echo $ac_file_in | sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 19.4597 +EOF
 19.4598 +cat >>$CONFIG_STATUS <<EOF
 19.4599 +  sed -e "$ac_comsub
 19.4600 +$ac_vpsub
 19.4601 +$extrasub
 19.4602 +EOF
 19.4603 +cat >>$CONFIG_STATUS <<\EOF
 19.4604 +:t
 19.4605 +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 19.4606 +s%@configure_input@%$configure_input%;t t
 19.4607 +s%@srcdir@%$srcdir%;t t
 19.4608 +s%@top_srcdir@%$top_srcdir%;t t
 19.4609 +s%@INSTALL@%$INSTALL%;t t
 19.4610 +" $ac_file_inputs | (eval "$ac_sed_cmds") >$ac_cs_root.out
 19.4611 +  mv $ac_cs_root.out $ac_file
 19.4612 +
 19.4613 +fi; done
 19.4614 +rm -f $ac_cs_root.s*
 19.4615 +EOF
 19.4616 +cat >>$CONFIG_STATUS <<\EOF
 19.4617 +
 19.4618 +#
 19.4619 +# CONFIG_HEADER section.
 19.4620 +#
 19.4621 +
 19.4622 +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 19.4623 +# NAME is the cpp macro being defined and VALUE is the value it is being given.
 19.4624 +#
 19.4625 +# ac_d sets the value in "#define NAME VALUE" lines.
 19.4626 +ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
 19.4627 +ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
 19.4628 +ac_dC='\3'
 19.4629 +ac_dD='%;t t'
 19.4630 +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 19.4631 +ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
 19.4632 +ac_uB='$%\1#\2define\3'
 19.4633 +ac_uC=' '
 19.4634 +ac_uD='%;t t'
 19.4635 +
 19.4636 +for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
 19.4637 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 19.4638 +  case "$ac_file" in
 19.4639 +  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 19.4640 +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 19.4641 +  *) ac_file_in="${ac_file}.in" ;;
 19.4642 +  esac
 19.4643 +
 19.4644 +  echo creating $ac_file
 19.4645 +
 19.4646 +  rm -f $ac_cs_root.frag $ac_cs_root.in $ac_cs_root.out
 19.4647 +  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 19.4648 +  # Remove the trailing spaces.
 19.4649 +  sed -e 's/[ 	]*$//' $ac_file_inputs >$ac_cs_root.in
 19.4650 +
 19.4651 +EOF
 19.4652 +
 19.4653 +# Transform confdefs.h into two sed scripts, `conftest.defines' and
 19.4654 +# `conftest.undefs', that substitutes the proper values into
 19.4655 +# config.h.in to produce config.h.  The first handles `#define'
 19.4656 +# templates, and the second `#undef' templates.
 19.4657 +# And first: Protect against being on the right side of a sed subst in
 19.4658 +# config.status.  Protect against being in an unquoted here document
 19.4659 +# in config.status.
 19.4660 +rm -f conftest.defines conftest.undefs
 19.4661 +cat >$ac_cs_root.hdr <<\EOF
 19.4662 +s/[\\&%]/\\&/g
 19.4663 +s%[\\$`]%\\&%g
 19.4664 +t clear
 19.4665 +: clear
 19.4666 +s%^[ 	]*#[ 	]*define[ 	][ 	]*\(\([^ 	(][^ 	(]*\)([^)]*)\)[ 	]*\(.*\)$%${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD}%gp
 19.4667 +t cleanup
 19.4668 +s%^[ 	]*#[ 	]*define[ 	][ 	]*\([^ 	][^ 	]*\)[ 	]*\(.*\)$%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
 19.4669 +: cleanup
 19.4670 +EOF
 19.4671 +# If some macros were called several times there might be several times
 19.4672 +# the same #defines, which is useless.  Nevertheless, we may not want to
 19.4673 +# sort them, since we want the *last* AC_DEFINE to be honored.
 19.4674 +uniq confdefs.h | sed -n -f $ac_cs_root.hdr >conftest.defines
 19.4675 +sed -e 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 19.4676 +rm -f $ac_cs_root.hdr
 19.4677 +
 19.4678 +# This sed command replaces #undef with comments.  This is necessary, for
 19.4679 +# example, in the case of _POSIX_SOURCE, which is predefined and required
 19.4680 +# on some systems where configure will not decide to define it.
 19.4681 +cat >>conftest.undefs <<\EOF
 19.4682 +s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
 19.4683 +EOF
 19.4684 +
 19.4685 +# Break up conftest.defines because some shells have a limit on the size
 19.4686 +# of here documents, and old seds have small limits too (100 cmds).
 19.4687 +echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 19.4688 +echo '  if egrep "^[ 	]*#[ 	]*define" $ac_cs_root.in >/dev/null; then' >>$CONFIG_STATUS
 19.4689 +rm -f conftest.tail
 19.4690 +while :
 19.4691 +do
 19.4692 +  ac_lines=`grep -c . conftest.defines`
 19.4693 +  # grep -c gives empty output for an empty file on some AIX systems.
 19.4694 +  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 19.4695 +  # Write a limited-size here document to $ac_cs_root.frag.
 19.4696 +  echo '  cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
 19.4697 +  echo ': t' >>$CONFIG_STATUS
 19.4698 +  echo '/^[ 	]*#[ 	]*define/!b' >>$CONFIG_STATUS
 19.4699 +  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 19.4700 +  echo 'CEOF
 19.4701 +  sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
 19.4702 +  rm -f $ac_cs_root.in
 19.4703 +  mv $ac_cs_root.out $ac_cs_root.in
 19.4704 +' >>$CONFIG_STATUS
 19.4705 +  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 19.4706 +  rm -f conftest.defines
 19.4707 +  mv conftest.tail conftest.defines
 19.4708 +done
 19.4709 +rm -f conftest.defines
 19.4710 +echo '  fi # egrep' >>$CONFIG_STATUS
 19.4711 +echo >>$CONFIG_STATUS
 19.4712 +
 19.4713 +# Break up conftest.undefs because some shells have a limit on the size
 19.4714 +# of here documents, and old seds have small limits too (100 cmds).
 19.4715 +echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 19.4716 +rm -f conftest.tail
 19.4717 +while :
 19.4718 +do
 19.4719 +  ac_lines=`grep -c . conftest.undefs`
 19.4720 +  # grep -c gives empty output for an empty file on some AIX systems.
 19.4721 +  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
 19.4722 +  # Write a limited-size here document to $ac_cs_root.frag.
 19.4723 +  echo '  cat >$ac_cs_root.frag <<CEOF' >>$CONFIG_STATUS
 19.4724 +  echo ': t' >>$CONFIG_STATUS
 19.4725 +  echo '/^[ 	]*#[ 	]*undef/!b' >>$CONFIG_STATUS
 19.4726 +  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 19.4727 +  echo 'CEOF
 19.4728 +  sed -f $ac_cs_root.frag $ac_cs_root.in >$ac_cs_root.out
 19.4729 +  rm -f $ac_cs_root.in
 19.4730 +  mv $ac_cs_root.out $ac_cs_root.in
 19.4731 +' >>$CONFIG_STATUS
 19.4732 +  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 19.4733 +  rm -f conftest.undefs
 19.4734 +  mv conftest.tail conftest.undefs
 19.4735 +done
 19.4736 +rm -f conftest.undefs
 19.4737 +
 19.4738 +cat >>$CONFIG_STATUS <<\EOF
 19.4739 +  rm -f $ac_cs_root.frag $ac_cs_root.h
 19.4740 +  echo "/* $ac_file.  Generated automatically by configure.  */" >$ac_cs_root.h
 19.4741 +  cat $ac_cs_root.in >>$ac_cs_root.h
 19.4742 +  rm -f $ac_cs_root.in
 19.4743 +  if cmp -s $ac_file $ac_cs_root.h 2>/dev/null; then
 19.4744 +    echo "$ac_file is unchanged"
 19.4745 +    rm -f $ac_cs_root.h
 19.4746 +  else
 19.4747 +    # Remove last slash and all that follows it.  Not all systems have dirname.
 19.4748 +      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 19.4749 +      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 19.4750 +      # The file is in a subdirectory.
 19.4751 +      test ! -d "$ac_dir" && mkdir "$ac_dir"
 19.4752 +    fi
 19.4753 +    rm -f $ac_file
 19.4754 +    mv $ac_cs_root.h $ac_file
 19.4755 +  fi
 19.4756 +fi; done
 19.4757 +EOF
 19.4758 +
 19.4759 +cat >>$CONFIG_STATUS <<EOF
 19.4760 +AMDEP="$AMDEP"
 19.4761 +ac_aux_dir="$ac_aux_dir"
 19.4762 +
 19.4763 +
 19.4764 +EOF
 19.4765 +cat >>$CONFIG_STATUS <<\EOF
 19.4766 +
 19.4767 +test x"$AMDEP" != x"" ||
 19.4768 +for mf in $CONFIG_FILES; do
 19.4769 +  case "$mf" in
 19.4770 +  Makefile) dirpart=.;;
 19.4771 +  */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
 19.4772 +  *) continue;;
 19.4773 +  esac
 19.4774 +  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 19.4775 +  # Extract the definition of DEP_FILES from the Makefile without
 19.4776 +  # running `make'.
 19.4777 +  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 19.4778 +  test -z "$DEPDIR" && continue
 19.4779 +  # When using ansi2knr, U may be empty or an underscore; expand it
 19.4780 +  U=`sed -n -e '/^U = / s///p' < "$mf"`
 19.4781 +  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 19.4782 +  # We invoke sed twice because it is the simplest approach to
 19.4783 +  # changing $(DEPDIR) to its actual value in the expansion.
 19.4784 +  for file in `sed -n -e '
 19.4785 +    /^DEP_FILES = .*\\\\$/ {
 19.4786 +      s/^DEP_FILES = //
 19.4787 +      :loop
 19.4788 +	s/\\\\$//
 19.4789 +	p
 19.4790 +	n
 19.4791 +	/\\\\$/ b loop
 19.4792 +      p
 19.4793 +    }
 19.4794 +    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 19.4795 +       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 19.4796 +    # Make sure the directory exists.
 19.4797 +    test -f "$dirpart/$file" && continue
 19.4798 +    fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
 19.4799 +    $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
 19.4800 +    # echo "creating $dirpart/$file"
 19.4801 +    echo '# dummy' > "$dirpart/$file"
 19.4802 +  done
 19.4803 +done
 19.4804 +
 19.4805 +test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
 19.4806 +
 19.4807 +	chmod a+x sogtk-config
 19.4808 +
 19.4809 +exit 0
 19.4810 +EOF
 19.4811 +chmod +x $CONFIG_STATUS
 19.4812 +rm -fr confdefs* $ac_clean_files
 19.4813 +trap 'exit 1' 1 2 15
 19.4814 +
 19.4815 +
 19.4816 +test "$no_create" = yes || $SHELL $CONFIG_STATUS || exit 1
 19.4817 +
 19.4818 +
 19.4819 +
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/configure.in	Mon Jan 24 14:34:29 2000 +0000
    20.3 @@ -0,0 +1,230 @@
    20.4 +dnl  This can be any file in the package.
    20.5 +AC_INIT(src/Inventor/Gtk/SoGtk.h)
    20.6 +
    20.7 +dnl  Locate C++ compiler and set C++ as the default compiler to run
    20.8 +dnl  in tests.
    20.9 +
   20.10 +AC_PROG_CXX
   20.11 +AC_LANG_CPLUSPLUS
   20.12 +
   20.13 +if test "x$GXX" != "xyes"; then
   20.14 +  AC_MSG_WARN(You are not using the GNU compiler -- other compilers are not well supported at the moment)
   20.15 +fi
   20.16 +
   20.17 +dnl *******************************************************************
   20.18 +dnl * Library version control.
   20.19 +dnl *******************************************************************
   20.20 +
   20.21 +dnl  Making releases:
   20.22 +dnl    SOGTK_MICRO_VERSION += 1;
   20.23 +dnl    SOGTK_INTERFACE_AGE += 1;
   20.24 +dnl    SOGTK_BINARY_AGE += 1;
   20.25 +dnl  if any functions have been added, set SOGTK_INTERFACE_AGE to 0.
   20.26 +dnl  if backwards compatibility has been broken,
   20.27 +dnl  set SOGTK_BINARY_AGE _and_ SOGTK_INTERFACE_AGE to 0.
   20.28 +dnl 
   20.29 +SOGTK_MAJOR_VERSION=0
   20.30 +SOGTK_MINOR_VERSION=8
   20.31 +SOGTK_MICRO_VERSION=0
   20.32 +SOGTK_INTERFACE_AGE=0
   20.33 +SOGTK_BINARY_AGE=0
   20.34 +SOGTK_VERSION=$SOGTK_MAJOR_VERSION.$SOGTK_MINOR_VERSION.$SOGTK_MICRO_VERSION
   20.35 +
   20.36 +AC_SUBST(SOGTK_MAJOR_VERSION)
   20.37 +AC_SUBST(SOGTK_MINOR_VERSION)
   20.38 +AC_SUBST(SOGTK_MICRO_VERSION)
   20.39 +AC_SUBST(SOGTK_VERSION)
   20.40 +AC_SUBST(SOGTK_INTERFACE_AGE)
   20.41 +AC_SUBST(SOGTK_BINARY_AGE)
   20.42 +
   20.43 +dnl  libtool versioning
   20.44 +LT_RELEASE=$SOGTK_MAJOR_VERSION.$SOGTK_MINOR_VERSION
   20.45 +LT_CURRENT=`expr $SOGTK_MICRO_VERSION - $SOGTK_INTERFACE_AGE`
   20.46 +LT_REVISION=$SOGTK_INTERFACE_AGE
   20.47 +LT_AGE=`expr $SOGTK_BINARY_AGE - $SOGTK_INTERFACE_AGE`
   20.48 +AC_SUBST(LT_RELEASE)
   20.49 +AC_SUBST(LT_CURRENT)
   20.50 +AC_SUBST(LT_REVISION)
   20.51 +AC_SUBST(LT_AGE)
   20.52 +
   20.53 +VERSION=$SOGTK_VERSION
   20.54 +
   20.55 +dnl  Not in use yet, should eventually use the same technique as in
   20.56 +dnl  include/Inventor/SbBasic.h.in.
   20.57 +dnl  AC_DEFINE_UNQUOTED(SOGTK_MAJOR_VERSION, $SOGTK_MAJOR_VERSION)
   20.58 +dnl  AC_DEFINE_UNQUOTED(SOGTK_MINOR_VERSION, $SOGTK_MINOR_VERSION)
   20.59 +dnl  AC_DEFINE_UNQUOTED(SOGTK_MICRO_VERSION, $SOGTK_MICRO_VERSION)
   20.60 +dnl  AC_DEFINE_UNQUOTED(SOGTK_VERSION, "$SOGTK_VERSION")
   20.61 +
   20.62 +dnl *******************************************************************
   20.63 +dnl * Miscellaneous options and initializations.
   20.64 +dnl *******************************************************************
   20.65 +
   20.66 +AM_INIT_AUTOMAKE(libSoGtk, $VERSION)
   20.67 +
   20.68 +dnl  File to cram results from the configure tests into.
   20.69 +AM_CONFIG_HEADER(config.h)
   20.70 +
   20.71 +dnl  Default to not building a static library.
   20.72 +dnl  Can be overridden by the user with --enable-static.
   20.73 +AM_DISABLE_STATIC
   20.74 +
   20.75 +dnl  Turn off default maintainer make-rules -- use ./autogen.sh instead.
   20.76 +AM_MAINTAINER_MODE
   20.77 +
   20.78 +dnl  Initialize libtool
   20.79 +AC_PROG_LIBTOOL
   20.80 +
   20.81 +
   20.82 +dnl  These are used for constructing the sogtk-config file.
   20.83 +SOGTK_EXTRA_CPPFLAGS=
   20.84 +SOGTK_EXTRA_LDFLAGS=
   20.85 +SOGTK_EXTRA_LIBS=
   20.86 +AC_SUBST(SOGTK_EXTRA_CPPFLAGS)
   20.87 +AC_SUBST(SOGTK_EXTRA_LDFLAGS)
   20.88 +AC_SUBST(SOGTK_EXTRA_LIBS)
   20.89 +
   20.90 +
   20.91 +dnl AC_PATH_XTRA
   20.92 +dnl if test "x$no_x" = "xyes"; then
   20.93 +dnl   AC_MSG_ERROR([X11 libraries couldn't be found! (use --x-includes and --x-libraries to locate them)])
   20.94 +dnl fi
   20.95 +
   20.96 +dnl ************************************************************************
   20.97 +
   20.98 +if test x"$with_inventor" = xyes; then
   20.99 +
  20.100 +  SIM_CHECK_DL([
  20.101 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_dl_cppflags"
  20.102 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_dl_ldflags"
  20.103 +    SOGTK_EXTRA_LIBS="$sim_ac_dl_libs $SOGTK_EXTRA_LIBS"
  20.104 +  ])
  20.105 +
  20.106 +  SIM_CHECK_X11([
  20.107 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_x11_cppflags"
  20.108 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_x11_ldflags"
  20.109 +    SOGTK_EXTRA_LIBS="$sim_ac_x11_libs $SOGTK_EXTRA_LIBS"
  20.110 +  ])
  20.111 +
  20.112 +  if test x"$sim_ac_x11_avail" = xyes; then
  20.113 +    SIM_CHECK_X11SHMEM([
  20.114 +      SOGTK_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGTK_EXTRA_LIBS"
  20.115 +    ])
  20.116 +    SIM_CHECK_X11MU([
  20.117 +      SOGTK_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGTK_EXTRA_LIBS"
  20.118 +    ])
  20.119 +  fi
  20.120 +
  20.121 +  SIM_CHECK_OPENGL([
  20.122 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_gl_cppflags"
  20.123 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_gl_ldflags"
  20.124 +    SOGTK_EXTRA_LIBS="$sim_ac_gl_libs $SOGTK_EXTRA_LIBS"
  20.125 +  ],AC_MSG_ERROR(needs an OpenGL-compatible development system installation))
  20.126 +
  20.127 +  SIM_CHECK_INVENTOR([
  20.128 +    SOGTK_EXTRA_CPPFLAGS="$sim_ac_oiv_cppflags $SOGTK_EXTRA_CPPFLAGS"
  20.129 +    SOGTK_EXTRA_LDFLAGS="$sim_ac_oiv_ldflags $SOGTK_EXTRA_LDFLAGS"
  20.130 +    SOGTK_EXTRA_LIBS="$sim_ac_oiv_libs $SOGTK_EXTRA_LIBS"
  20.131 +  ],AC_MSG_ERROR(couldn't compile and link against Open Inventor))
  20.132 +
  20.133 +else
  20.134 +
  20.135 +  SIM_CHECK_COIN([
  20.136 +    SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_coin_cppflags"
  20.137 +    SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_coin_ldflags"
  20.138 +    SOGTK_EXTRA_LIBS="$sim_ac_coin_libs $SOGTK_EXTRA_LIBS"
  20.139 +  ],AC_MSG_ERROR(couldn't compile and link against Coin))
  20.140 +
  20.141 +fi
  20.142 +
  20.143 +
  20.144 +dnl * Set up necessary stuff to use Open Inventor or Coin.
  20.145 +
  20.146 +dnl Check for GTK+
  20.147 +AM_PATH_GTK(1.2.6,,
  20.148 +  AC_MSG_ERROR(Test for GTK+ failed.  See the file 'INSTALL' for help.))
  20.149 +
  20.150 +dnl Check for GtkGLArea
  20.151 +AM_PATH_GTKGL(,
  20.152 +  AC_MSG_ERROR(Test for GtkGLArea failed.  See the file 'INSTALL' for help.))
  20.153 +
  20.154 +dnl SIM_CHECK_GTK([
  20.155 +dnl   SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_gtk_cppflags"
  20.156 +dnl   SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_gtk_ldflags"
  20.157 +dnl   SOGTK_EXTRA_LIBS="$sim_ac_gtk_libs $SOGTK_EXTRA_LIBS"
  20.158 +dnl ],AC_MSG_ERROR(can't compile and link against GTK+ development kit))
  20.159 +
  20.160 +dnl SIM_CHECK_GTKGL([
  20.161 +dnl   SOGTK_EXTRA_CPPFLAGS="$SOGTK_EXTRA_CPPFLAGS $sim_ac_gtkgl_cppflags"
  20.162 +dnl   SOGTK_EXTRA_LDFLAGS="$SOGTK_EXTRA_LDFLAGS $sim_ac_gtkgl_ldflags"
  20.163 +dnl   SOGTK_EXTRA_LIBS="$sim_ac_gtkgl_libs $SOGTK_EXTRA_LIBS"
  20.164 +dnl ],AC_MSG_ERROR(can't compile and link against the GtkGLArea extension library))
  20.165 +
  20.166 +dnl *******************************************************************
  20.167 +dnl * Compiler control.
  20.168 +dnl *******************************************************************
  20.169 +
  20.170 +SIM_COMPILE_DEBUG
  20.171 +if test $enable_debug = yes; then
  20.172 +  CXXFLAGS="$CXXFLAGS -DSOGTK_DEBUG=1"
  20.173 +else
  20.174 +  CXXFLAGS="$CXXFLAGS -DSOGTK_DEBUG=0"
  20.175 +fi
  20.176 +
  20.177 +SIM_DEBUGSYMBOLS
  20.178 +SIM_RTTI_SUPPORT
  20.179 +SIM_EXCEPTION_HANDLING
  20.180 +SIM_PROFILING_SUPPORT
  20.181 +SIM_COMPILER_WARNINGS
  20.182 +
  20.183 +dnl *******************************************************************
  20.184 +dnl * do we want to compile the example programs?
  20.185 +dnl *******************************************************************
  20.186 +
  20.187 +EXAMPLEMAKEFILES="
  20.188 +	examples/Makefile
  20.189 +	examples/test/Makefile
  20.190 +"
  20.191 +
  20.192 +AC_ARG_WITH(examples,
  20.193 +  [  --with-examples         compile SoGtk example programs [default=yes]],
  20.194 +  [case "${withval}" in
  20.195 +    yes) want_examples=yes ;;
  20.196 +    no)  want_examples=no ;;
  20.197 +    *) AC_MSG_ERROR(bad value \"${withval}\" for --with-examples) ;;
  20.198 +  esac],
  20.199 +  [want_examples=yes])
  20.200 +
  20.201 +if test "x$want_examples" = "xno"; then
  20.202 +  EXAMPLEMAKEFILES=""
  20.203 +fi
  20.204 +
  20.205 +AM_CONDITIONAL(BUILD_EXAMPLES, test "x$want_examples" = "xyes")
  20.206 +
  20.207 +dnl *******************************************************************
  20.208 +dnl * List all makefiles configure must automatically generate.
  20.209 +dnl *******************************************************************
  20.210 +dnl * while running autogen, $EXAMPLEMAKEFILES must be substituted for
  20.211 +dnl * makefile generation
  20.212 +
  20.213 +test -d src || mkdir src
  20.214 +test -d src/Inventor || mkdir src/Inventor
  20.215 +test -d src/Inventor/Gtk || mkdir src/Inventor/Gtk
  20.216 +
  20.217 +AC_OUTPUT([
  20.218 +	sogtk-config
  20.219 +	Makefile
  20.220 +	src/Inventor/Gtk/Makefile
  20.221 +	src/Inventor/Gtk/common/Makefile
  20.222 +	src/Inventor/Gtk/devices/Makefile
  20.223 +	src/Inventor/Gtk/viewers/Makefile
  20.224 +	src/Inventor/Gtk/widgets/Makefile
  20.225 +	examples/Makefile
  20.226 +	examples/widgets/Makefile
  20.227 +	examples/viewers/Makefile
  20.228 +],[
  20.229 +	chmod a+x sogtk-config
  20.230 +])
  20.231 +
  20.232 +dnl 	${EXAMPLEMAKEFILES}
  20.233 +
    21.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    21.2 +++ b/depcomp	Mon Jan 24 14:34:29 2000 +0000
    21.3 @@ -0,0 +1,269 @@
    21.4 +#! /bin/sh
    21.5 +
    21.6 +# depcomp - compile a program generating dependencies as side-effects
    21.7 +# Copyright (C) 1999 Free Software Foundation, Inc.
    21.8 +
    21.9 +# This program is free software; you can redistribute it and/or modify
   21.10 +# it under the terms of the GNU General Public License as published by
   21.11 +# the Free Software Foundation; either version 2, or (at your option)
   21.12 +# any later version.
   21.13 +
   21.14 +# This program is distributed in the hope that it will be useful,
   21.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
   21.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   21.17 +# GNU General Public License for more details.
   21.18 +
   21.19 +# You should have received a copy of the GNU General Public License
   21.20 +# along with this program; if not, write to the Free Software
   21.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   21.22 +# 02111-1307, USA.
   21.23 +
   21.24 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
   21.25 +
   21.26 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then
   21.27 +  echo "depcomp: Variables source, object and depmode must be set" 1>&2
   21.28 +  exit 1
   21.29 +fi
   21.30 +# `libtool' can also be set to `yes' or `no'.
   21.31 +
   21.32 +depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`}
   21.33 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
   21.34 +
   21.35 +rm -f "$tmpdepfile"
   21.36 +
   21.37 +# Some modes work just like other modes, but use different flags.  We
   21.38 +# parameterize here, but still list the modes in the big case below,
   21.39 +# to make depend.m4 easier to write.  Note that we *cannot* use a case
   21.40 +# here, because this file can only contain one case statement.
   21.41 +if test "$depmode" = hp; then
   21.42 +  # HP compiler uses -M and no extra arg.
   21.43 +  gccflag=-M
   21.44 +  depmode=gcc
   21.45 +fi
   21.46 +
   21.47 +if test "$depmode" = dashXmstdout; then
   21.48 +   # This is just like dashmstdout with a different argument.
   21.49 +   dashmflag=-xM
   21.50 +   depmode=dashmstdout
   21.51 +fi
   21.52 +
   21.53 +case "$depmode" in
   21.54 +gcc)
   21.55 +## There are various ways to get dependency output from gcc.  Here's
   21.56 +## why we pick this rather obscure method:
   21.57 +## - Don't want to use -MD because we'd like the dependencies to end
   21.58 +##   up in a subdir.  Having to rename by hand is ugly.
   21.59 +##   (We might end up doing this anyway to support other compilers.)
   21.60 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
   21.61 +##   -MM, not -M (despite what the docs say).
   21.62 +## - Using -M directly means running the compiler twice (even worse
   21.63 +##   than renaming).
   21.64 +  if test -z "$gccflag"; then
   21.65 +    gccflag=-MD,
   21.66 +  fi
   21.67 +  if "$@" -Wp,"$gccflag$tmpdepfile"; then :
   21.68 +  else
   21.69 +    stat=$?
   21.70 +    rm -f "$tmpdepfile"
   21.71 +    exit $stat
   21.72 +  fi
   21.73 +  rm -f "$depfile" 
   21.74 +  echo "$object : \\" > "$depfile"
   21.75 +  sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile"
   21.76 +## This next piece of magic avoids the `deleted header file' problem.
   21.77 +## The problem is that when a header file which appears in a .P file
   21.78 +## is deleted, the dependency causes make to die (because there is
   21.79 +## typically no way to rebuild the header).  We avoid this by adding
   21.80 +## dummy dependencies for each header file.  Too bad gcc doesn't do
   21.81 +## this for us directly.
   21.82 +  tr ' ' '
   21.83 +' < "$tmpdepfile" |
   21.84 +## Some versions of gcc put a space before the `:'.  On the theory
   21.85 +## that the space means something, we add a space to the output as
   21.86 +## well.
   21.87 +## Some versions of the HPUX 10.20 sed can't process this invocation
   21.88 +## correctly.  Breaking it into two sed invocations is a workaround.
   21.89 +    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
   21.90 +  rm -f "$tmpdepfile"
   21.91 +  ;;
   21.92 +
   21.93 +hp)
   21.94 +  # This case exists only to let depend.m4 do its work.  It works by
   21.95 +  # looking at the text of this script.  This case will never be run,
   21.96 +  # since it is checked for above.
   21.97 +  exit 1
   21.98 +  ;;
   21.99 +
  21.100 +dashmd)
  21.101 +  # The Java front end to gcc doesn't run cpp, so we can't use the -Wp
  21.102 +  # trick.  Instead we must use -M and then rename the resulting .d
  21.103 +  # file.  This is also the case for older versions of gcc, which
  21.104 +  # don't implement -Wp.
  21.105 +  if "$@" -MD; then :
  21.106 +  else
  21.107 +    stat=$?
  21.108 +    rm -f FIXME
  21.109 +    exit $stat
  21.110 +  fi
  21.111 +  FIXME: rewrite the file
  21.112 +  ;;
  21.113 +
  21.114 +sgi)
  21.115 +  if test "$libtool" = yes; then
  21.116 +    "$@" "-Wc,-MDupdate,$tmpdepfile"
  21.117 +  else
  21.118 +    "$@" -MDupdate "$tmpdepfile"
  21.119 +  fi
  21.120 +  stat=$?
  21.121 +  if test $stat -eq 0; then :
  21.122 +  else
  21.123 +    stat=$?
  21.124 +    rm -f "$tmpdepfile"
  21.125 +    exit $stat
  21.126 +  fi
  21.127 +  rm -f "$depfile" 
  21.128 +  echo "$object : \\" > "$depfile"
  21.129 +  sed 's/^[^:]*: / /' < "$tmpdepfile" >> "$depfile"
  21.130 +  tr ' ' '
  21.131 +' < "$tmpdepfile" | \
  21.132 +## Some versions of the HPUX 10.20 sed can't process this invocation
  21.133 +## correctly.  Breaking it into two sed invocations is a workaround.
  21.134 +    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  21.135 +  rm -f "$tmpdepfile"
  21.136 +  ;;
  21.137 +
  21.138 +#nosideeffect)
  21.139 +  # This comment above is used by automake to tell side-effect
  21.140 +  # dependency tracking mechanisms from slower ones.
  21.141 +
  21.142 +dashmstdout)
  21.143 +  # Important note: in order to support this mode, a compiler *must*
  21.144 +  # always write the proprocessed file to stdout, regardless of -o,
  21.145 +  # because we must use -o when running libtool.
  21.146 +  test -z "$dashmflag" && dashmflag=-M
  21.147 +  ( IFS=" "
  21.148 +    case " $* " in
  21.149 +    *" --mode=compile "*) # this is libtool, let us make it quiet
  21.150 +      for arg
  21.151 +      do # cycle over the arguments
  21.152 +        case "$arg" in
  21.153 +	"--mode=compile")
  21.154 +	  # insert --quiet before "--mode=compile"
  21.155 +	  set fnord "$@" --quiet
  21.156 +	  shift # fnord
  21.157 +	  ;;
  21.158 +	esac
  21.159 +	set fnord "$@" "$arg"
  21.160 +	shift # fnord
  21.161 +	shift # "$arg"
  21.162 +      done
  21.163 +      ;;
  21.164 +    esac
  21.165 +    "$@" $dashmflag | sed 's:^[^:]*\:[ 	]*:'"$object"'\: :' > "$tmpdepfile"
  21.166 +  ) &
  21.167 +  proc=$!
  21.168 +  "$@"
  21.169 +  stat=$?
  21.170 +  wait "$proc"
  21.171 +  if test "$stat" != 0; then exit $stat; fi
  21.172 +  rm -f "$depfile" 
  21.173 +  cat < "$tmpdepfile" > "$depfile"
  21.174 +  tr ' ' '
  21.175 +' < "$tmpdepfile" | \
  21.176 +## Some versions of the HPUX 10.20 sed can't process this invocation
  21.177 +## correctly.  Breaking it into two sed invocations is a workaround.
  21.178 +    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  21.179 +  rm -f "$tmpdepfile"
  21.180 +  ;;
  21.181 +
  21.182 +dashXmstdout)
  21.183 +  # This case only exists to satisfy depend.m4.  It is never actually
  21.184 +  # run, as this mode is specially recognized in the preamble.
  21.185 +  exit 1
  21.186 +  ;;
  21.187 +
  21.188 +makedepend)
  21.189 +  # X makedepend
  21.190 +  (
  21.191 +    shift
  21.192 +    cleared=no
  21.193 +    for arg in "$@"; do
  21.194 +      case $cleared in no)
  21.195 +        set ""; shift
  21.196 +	cleared=yes
  21.197 +      esac
  21.198 +      case "$arg" in
  21.199 +        -D*|-I*)
  21.200 +	  set fnord "$@" "$arg"; shift;;
  21.201 +	-*)
  21.202 +	  ;;
  21.203 +	*)
  21.204 +	  set fnord "$@" "$arg"; shift;;
  21.205 +      esac
  21.206 +    done
  21.207 +    obj_suffix="`echo $object | sed 's/^.*\././'`"
  21.208 +    touch "$tmpdepfile"
  21.209 +    ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@"
  21.210 +  ) &
  21.211 +  proc=$!
  21.212 +  "$@"
  21.213 +  stat=$?
  21.214 +  wait "$proc"
  21.215 +  if test "$stat" != 0; then exit $stat; fi
  21.216 +  rm -f "$depfile" 
  21.217 +  cat < "$tmpdepfile" > "$depfile"
  21.218 +  tail +3 "$tmpdepfile" | tr ' ' '
  21.219 +' | \
  21.220 +## Some versions of the HPUX 10.20 sed can't process this invocation
  21.221 +## correctly.  Breaking it into two sed invocations is a workaround.
  21.222 +    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
  21.223 +  rm -f "$tmpdepfile" "$tmpdepfile".bak
  21.224 +  ;;
  21.225 +
  21.226 +cpp)
  21.227 +  # Important note: in order to support this mode, a compiler *must*
  21.228 +  # always write the proprocessed file to stdout, regardless of -o,
  21.229 +  # because we must use -o when running libtool.
  21.230 +  ( IFS=" "
  21.231 +    case " $* " in
  21.232 +    *" --mode=compile "*)
  21.233 +      for arg
  21.234 +      do # cycle over the arguments
  21.235 +        case "$arg" in
  21.236 +	"--mode=compile")
  21.237 +	  # insert --quiet before "--mode=compile"
  21.238 +	  set fnord "$@" --quiet
  21.239 +	  shift # fnord
  21.240 +	  ;;
  21.241 +	esac
  21.242 +	set fnord "$@" "$arg"
  21.243 +	shift # fnord
  21.244 +	shift # "$arg"
  21.245 +      done
  21.246 +      ;;
  21.247 +    esac
  21.248 +    "$@" -E |
  21.249 +    sed -n '/^# [0-9][0-9]* "\([^"]*\)"/ s::'"$object"'\: \1:p' > "$tmpdepfile"
  21.250 +  ) &
  21.251 +  proc=$!
  21.252 +  "$@"
  21.253 +  stat=$?
  21.254 +  wait "$proc"
  21.255 +  if test "$stat" != 0; then exit $stat; fi
  21.256 +  rm -f "$depfile"
  21.257 +  cat < "$tmpdepfile" > "$depfile"
  21.258 +  sed < "$tmpdepfile" -e 's/^[^:]*: //' -e 's/$/ :/' >> "$depfile"
  21.259 +  rm -f "$tmpdepfile"
  21.260 +  ;;
  21.261 +
  21.262 +none)
  21.263 +  exec "$@"
  21.264 +  ;;
  21.265 +
  21.266 +*)
  21.267 +  echo "Unknown depmode $depmode" 1>&2
  21.268 +  exit 1
  21.269 +  ;;
  21.270 +esac
  21.271 +
  21.272 +exit 0
    22.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    22.2 +++ b/install-sh	Mon Jan 24 14:34:29 2000 +0000
    22.3 @@ -0,0 +1,251 @@
    22.4 +#!/bin/sh
    22.5 +#
    22.6 +# install - install a program, script, or datafile
    22.7 +# This comes from X11R5 (mit/util/scripts/install.sh).
    22.8 +#
    22.9 +# Copyright 1991 by the Massachusetts Institute of Technology
   22.10 +#
   22.11 +# Permission to use, copy, modify, distribute, and sell this software and its
   22.12 +# documentation for any purpose is hereby granted without fee, provided that
   22.13 +# the above copyright notice appear in all copies and that both that
   22.14 +# copyright notice and this permission notice appear in supporting
   22.15 +# documentation, and that the name of M.I.T. not be used in advertising or
   22.16 +# publicity pertaining to distribution of the software without specific,
   22.17 +# written prior permission.  M.I.T. makes no representations about the
   22.18 +# suitability of this software for any purpose.  It is provided "as is"
   22.19 +# without express or implied warranty.
   22.20 +#
   22.21 +# Calling this script install-sh is preferred over install.sh, to prevent
   22.22 +# `make' implicit rules from creating a file called install from it
   22.23 +# when there is no Makefile.
   22.24 +#
   22.25 +# This script is compatible with the BSD install script, but was written
   22.26 +# from scratch.  It can only install one file at a time, a restriction
   22.27 +# shared with many OS's install programs.
   22.28 +
   22.29 +
   22.30 +# set DOITPROG to echo to test this script
   22.31 +
   22.32 +# Don't use :- since 4.3BSD and earlier shells don't like it.
   22.33 +doit="${DOITPROG-}"
   22.34 +
   22.35 +
   22.36 +# put in absolute paths if you don't have them in your path; or use env. vars.
   22.37 +
   22.38 +mvprog="${MVPROG-mv}"
   22.39 +cpprog="${CPPROG-cp}"
   22.40 +chmodprog="${CHMODPROG-chmod}"
   22.41 +chownprog="${CHOWNPROG-chown}"
   22.42 +chgrpprog="${CHGRPPROG-chgrp}"
   22.43 +stripprog="${STRIPPROG-strip}"
   22.44 +rmprog="${RMPROG-rm}"
   22.45 +mkdirprog="${MKDIRPROG-mkdir}"
   22.46 +
   22.47 +transformbasename=""
   22.48 +transform_arg=""
   22.49 +instcmd="$mvprog"
   22.50 +chmodcmd="$chmodprog 0755"
   22.51 +chowncmd=""
   22.52 +chgrpcmd=""
   22.53 +stripcmd=""
   22.54 +rmcmd="$rmprog -f"
   22.55 +mvcmd="$mvprog"
   22.56 +src=""
   22.57 +dst=""
   22.58 +dir_arg=""
   22.59 +
   22.60 +while [ x"$1" != x ]; do
   22.61 +    case $1 in
   22.62 +	-c) instcmd="$cpprog"
   22.63 +	    shift
   22.64 +	    continue;;
   22.65 +
   22.66 +	-d) dir_arg=true
   22.67 +	    shift
   22.68 +	    continue;;
   22.69 +
   22.70 +	-m) chmodcmd="$chmodprog $2"
   22.71 +	    shift
   22.72 +	    shift
   22.73 +	    continue;;
   22.74 +
   22.75 +	-o) chowncmd="$chownprog $2"
   22.76 +	    shift
   22.77 +	    shift
   22.78 +	    continue;;
   22.79 +
   22.80 +	-g) chgrpcmd="$chgrpprog $2"
   22.81 +	    shift
   22.82 +	    shift
   22.83 +	    continue;;
   22.84 +
   22.85 +	-s) stripcmd="$stripprog"
   22.86 +	    shift
   22.87 +	    continue;;
   22.88 +
   22.89 +	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
   22.90 +	    shift
   22.91 +	    continue;;
   22.92 +
   22.93 +	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
   22.94 +	    shift
   22.95 +	    continue;;
   22.96 +
   22.97 +	*)  if [ x"$src" = x ]
   22.98 +	    then
   22.99 +		src=$1
  22.100 +	    else
  22.101 +		# this colon is to work around a 386BSD /bin/sh bug
  22.102 +		:
  22.103 +		dst=$1
  22.104 +	    fi
  22.105 +	    shift
  22.106 +	    continue;;
  22.107 +    esac
  22.108 +done
  22.109 +
  22.110 +if [ x"$src" = x ]
  22.111 +then
  22.112 +	echo "install:	no input file specified"
  22.113 +	exit 1
  22.114 +else
  22.115 +	true
  22.116 +fi
  22.117 +
  22.118 +if [ x"$dir_arg" != x ]; then
  22.119 +	dst=$src
  22.120 +	src=""
  22.121 +	
  22.122 +	if [ -d $dst ]; then
  22.123 +		instcmd=:
  22.124 +		chmodcmd=""
  22.125 +	else
  22.126 +		instcmd=mkdir
  22.127 +	fi
  22.128 +else
  22.129 +
  22.130 +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  22.131 +# might cause directories to be created, which would be especially bad 
  22.132 +# if $src (and thus $dsttmp) contains '*'.
  22.133 +
  22.134 +	if [ -f $src -o -d $src ]
  22.135 +	then
  22.136 +		true
  22.137 +	else
  22.138 +		echo "install:  $src does not exist"
  22.139 +		exit 1
  22.140 +	fi
  22.141 +	
  22.142 +	if [ x"$dst" = x ]
  22.143 +	then
  22.144 +		echo "install:	no destination specified"
  22.145 +		exit 1
  22.146 +	else
  22.147 +		true
  22.148 +	fi
  22.149 +
  22.150 +# If destination is a directory, append the input filename; if your system
  22.151 +# does not like double slashes in filenames, you may need to add some logic
  22.152 +
  22.153 +	if [ -d $dst ]
  22.154 +	then
  22.155 +		dst="$dst"/`basename $src`
  22.156 +	else
  22.157 +		true
  22.158 +	fi
  22.159 +fi
  22.160 +
  22.161 +## this sed command emulates the dirname command
  22.162 +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  22.163 +
  22.164 +# Make sure that the destination directory exists.
  22.165 +#  this part is taken from Noah Friedman's mkinstalldirs script
  22.166 +
  22.167 +# Skip lots of stat calls in the usual case.
  22.168 +if [ ! -d "$dstdir" ]; then
  22.169 +defaultIFS='	
  22.170 +'
  22.171 +IFS="${IFS-${defaultIFS}}"
  22.172 +
  22.173 +oIFS="${IFS}"
  22.174 +# Some sh's can't handle IFS=/ for some reason.
  22.175 +IFS='%'
  22.176 +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  22.177 +IFS="${oIFS}"
  22.178 +
  22.179 +pathcomp=''
  22.180 +
  22.181 +while [ $# -ne 0 ] ; do
  22.182 +	pathcomp="${pathcomp}${1}"
  22.183 +	shift
  22.184 +
  22.185 +	if [ ! -d "${pathcomp}" ] ;
  22.186 +        then
  22.187 +		$mkdirprog "${pathcomp}"
  22.188 +	else
  22.189 +		true
  22.190 +	fi
  22.191 +
  22.192 +	pathcomp="${pathcomp}/"
  22.193 +done
  22.194 +fi
  22.195 +
  22.196 +if [ x"$dir_arg" != x ]
  22.197 +then
  22.198 +	$doit $instcmd $dst &&
  22.199 +
  22.200 +	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
  22.201 +	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
  22.202 +	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
  22.203 +	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
  22.204 +else
  22.205 +
  22.206 +# If we're going to rename the final executable, determine the name now.
  22.207 +
  22.208 +	if [ x"$transformarg" = x ] 
  22.209 +	then
  22.210 +		dstfile=`basename $dst`
  22.211 +	else
  22.212 +		dstfile=`basename $dst $transformbasename | 
  22.213 +			sed $transformarg`$transformbasename
  22.214 +	fi
  22.215 +
  22.216 +# don't allow the sed command to completely eliminate the filename
  22.217 +
  22.218 +	if [ x"$dstfile" = x ] 
  22.219 +	then
  22.220 +		dstfile=`basename $dst`
  22.221 +	else
  22.222 +		true
  22.223 +	fi
  22.224 +
  22.225 +# Make a temp file name in the proper directory.
  22.226 +
  22.227 +	dsttmp=$dstdir/#inst.$$#
  22.228 +
  22.229 +# Move or copy the file name to the temp name
  22.230 +
  22.231 +	$doit $instcmd $src $dsttmp &&
  22.232 +
  22.233 +	trap "rm -f ${dsttmp}" 0 &&
  22.234 +
  22.235 +# and set any options; do chmod last to preserve setuid bits
  22.236 +
  22.237 +# If any of these fail, we abort the whole thing.  If we want to
  22.238 +# ignore errors from any of these, just make sure not to ignore
  22.239 +# errors from the above "$doit $instcmd $src $dsttmp" command.
  22.240 +
  22.241 +	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
  22.242 +	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
  22.243 +	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
  22.244 +	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
  22.245 +
  22.246 +# Now rename the file to the real destination.
  22.247 +
  22.248 +	$doit $rmcmd -f $dstdir/$dstfile &&
  22.249 +	$doit $mvcmd $dsttmp $dstdir/$dstfile 
  22.250 +
  22.251 +fi &&
  22.252 +
  22.253 +
  22.254 +exit 0
    23.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    23.2 +++ b/ltconfig	Mon Jan 24 14:34:29 2000 +0000
    23.3 @@ -0,0 +1,3078 @@
    23.4 +#! /bin/sh
    23.5 +
    23.6 +# ltconfig - Create a system-specific libtool.
    23.7 +# Copyright (C) 1996-1999 Free Software Foundation, Inc.
    23.8 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    23.9 +#
   23.10 +# This file is free software; you can redistribute it and/or modify it
   23.11 +# under the terms of the GNU General Public License as published by
   23.12 +# the Free Software Foundation; either version 2 of the License, or
   23.13 +# (at your option) any later version.
   23.14 +#
   23.15 +# This program is distributed in the hope that it will be useful, but
   23.16 +# WITHOUT ANY WARRANTY; without even the implied warranty of
   23.17 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   23.18 +# General Public License for more details.
   23.19 +#
   23.20 +# You should have received a copy of the GNU General Public License
   23.21 +# along with this program; if not, write to the Free Software
   23.22 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   23.23 +#
   23.24 +# As a special exception to the GNU General Public License, if you
   23.25 +# distribute this file as part of a program that contains a
   23.26 +# configuration script generated by Autoconf, you may include it under
   23.27 +# the same distribution terms that you use for the rest of that program.
   23.28 +
   23.29 +# A lot of this script is taken from autoconf-2.10.
   23.30 +
   23.31 +# Check that we are running under the correct shell.
   23.32 +SHELL=${CONFIG_SHELL-/bin/sh}
   23.33 +echo=echo
   23.34 +if test "X$1" = X--no-reexec; then
   23.35 +  # Discard the --no-reexec flag, and continue.
   23.36 +  shift
   23.37 +elif test "X$1" = X--fallback-echo; then
   23.38 +  # Avoid inline document here, it may be left over
   23.39 +  :
   23.40 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
   23.41 +  # Yippee, $echo works!
   23.42 +  :
   23.43 +else
   23.44 +  # Restart under the correct shell.
   23.45 +  exec "$SHELL" "$0" --no-reexec ${1+"$@"}
   23.46 +fi
   23.47 +
   23.48 +if test "X$1" = X--fallback-echo; then
   23.49 +  # used as fallback echo
   23.50 +  shift
   23.51 +  cat <<EOF
   23.52 +$*
   23.53 +EOF
   23.54 +  exit 0
   23.55 +fi
   23.56 +
   23.57 +# Find the correct PATH separator.  Usually this is `:', but
   23.58 +# DJGPP uses `;' like DOS.
   23.59 +if test "X${PATH_SEPARATOR+set}" != Xset; then
   23.60 +  UNAME=${UNAME-`uname 2>/dev/null`}
   23.61 +  case X$UNAME in
   23.62 +    *-DOS) PATH_SEPARATOR=';' ;;
   23.63 +    *)     PATH_SEPARATOR=':' ;;
   23.64 +  esac
   23.65 +fi
   23.66 +
   23.67 +# The HP-UX ksh and POSIX shell print the target directory to stdout
   23.68 +# if CDPATH is set.
   23.69 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   23.70 +
   23.71 +if test "X${echo_test_string+set}" != Xset; then
   23.72 +  # find a string as large as possible, as long as the shell can cope with it
   23.73 +  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
   23.74 +    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   23.75 +    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   23.76 +       echo_test_string="`eval $cmd`" &&
   23.77 +       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
   23.78 +      break
   23.79 +    fi
   23.80 +  done
   23.81 +fi
   23.82 +
   23.83 +if test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
   23.84 +   test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
   23.85 +  # The Solaris, AIX, and Digital Unix default echo programs unquote
   23.86 +  # backslashes.  This makes it impossible to quote backslashes using
   23.87 +  #   echo "$something" | sed 's/\\/\\\\/g'
   23.88 +  #
   23.89 +  # So, first we look for a working echo in the user's PATH.
   23.90 +
   23.91 +  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   23.92 +  for dir in $PATH /usr/ucb; do
   23.93 +    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   23.94 +       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   23.95 +       test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   23.96 +      echo="$dir/echo"
   23.97 +      break
   23.98 +    fi
   23.99 +  done
  23.100 +  IFS="$save_ifs"
  23.101 +
  23.102 +  if test "X$echo" = Xecho; then
  23.103 +    # We didn't find a better echo, so look for alternatives.
  23.104 +    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  23.105 +       test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  23.106 +      # This shell has a builtin print -r that does the trick.
  23.107 +      echo='print -r'
  23.108 +    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  23.109 +	 test "X$CONFIG_SHELL" != X/bin/ksh; then
  23.110 +      # If we have ksh, try running ltconfig again with it.
  23.111 +      ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
  23.112 +      export ORIGINAL_CONFIG_SHELL
  23.113 +      CONFIG_SHELL=/bin/ksh
  23.114 +      export CONFIG_SHELL
  23.115 +      exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
  23.116 +    else
  23.117 +      # Try using printf.
  23.118 +      echo='printf "%s\n"'
  23.119 +      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  23.120 +	 test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  23.121 +	# Cool, printf works
  23.122 +	:
  23.123 +      elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
  23.124 +	   test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  23.125 +	CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL"
  23.126 +	export CONFIG_SHELL
  23.127 +	SHELL="$CONFIG_SHELL"
  23.128 +	export SHELL
  23.129 +	echo="$CONFIG_SHELL $0 --fallback-echo"
  23.130 +      elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
  23.131 +	   test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  23.132 +	echo="$CONFIG_SHELL $0 --fallback-echo"
  23.133 +      else
  23.134 +	# maybe with a smaller string...
  23.135 +	prev=:
  23.136 +
  23.137 +	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  23.138 +	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
  23.139 +	    break
  23.140 +	  fi
  23.141 +	  prev="$cmd"
  23.142 +	done
  23.143 +
  23.144 +	if test "$prev" != 'sed 50q "$0"'; then
  23.145 +	  echo_test_string=`eval $prev`
  23.146 +	  export echo_test_string
  23.147 +	  exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
  23.148 +	else
  23.149 +	  # Oops.  We lost completely, so just stick with echo.
  23.150 +	  echo=echo
  23.151 +	fi
  23.152 +      fi
  23.153 +    fi
  23.154 +  fi
  23.155 +fi
  23.156 +
  23.157 +# Sed substitution that helps us do robust quoting.  It backslashifies
  23.158 +# metacharacters that are still active within double-quoted strings.
  23.159 +Xsed='sed -e s/^X//'
  23.160 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  23.161 +
  23.162 +# Same as above, but do not quote variable references.
  23.163 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  23.164 +
  23.165 +# Sed substitution to delay expansion of an escaped shell variable in a
  23.166 +# double_quote_subst'ed string.
  23.167 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  23.168 +
  23.169 +# The name of this program.
  23.170 +progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
  23.171 +
  23.172 +# Constants:
  23.173 +PROGRAM=ltconfig
  23.174 +PACKAGE=libtool
  23.175 +VERSION=1.3.4
  23.176 +TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
  23.177 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  23.178 +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  23.179 +rm="rm -f"
  23.180 +
  23.181 +help="Try \`$progname --help' for more information."
  23.182 +
  23.183 +# Global variables:
  23.184 +default_ofile=libtool
  23.185 +can_build_shared=yes
  23.186 +enable_shared=yes
  23.187 +# All known linkers require a `.a' archive for static linking (except M$VC,
  23.188 +# which needs '.lib').
  23.189 +enable_static=yes
  23.190 +enable_fast_install=yes
  23.191 +enable_dlopen=unknown
  23.192 +enable_win32_dll=no
  23.193 +ltmain=
  23.194 +silent=
  23.195 +srcdir=
  23.196 +ac_config_guess=
  23.197 +ac_config_sub=
  23.198 +host=
  23.199 +nonopt=
  23.200 +ofile="$default_ofile"
  23.201 +verify_host=yes
  23.202 +with_gcc=no
  23.203 +with_gnu_ld=no
  23.204 +need_locks=yes
  23.205 +ac_ext=c
  23.206 +objext=o
  23.207 +libext=a
  23.208 +exeext=
  23.209 +cache_file=
  23.210 +
  23.211 +old_AR="$AR"
  23.212 +old_CC="$CC"
  23.213 +old_CFLAGS="$CFLAGS"
  23.214 +old_CPPFLAGS="$CPPFLAGS"
  23.215 +old_LDFLAGS="$LDFLAGS"
  23.216 +old_LD="$LD"
  23.217 +old_LN_S="$LN_S"
  23.218 +old_LIBS="$LIBS"
  23.219 +old_NM="$NM"
  23.220 +old_RANLIB="$RANLIB"
  23.221 +old_DLLTOOL="$DLLTOOL"
  23.222 +old_OBJDUMP="$OBJDUMP"
  23.223 +old_AS="$AS"
  23.224 +
  23.225 +# Parse the command line options.
  23.226 +args=
  23.227 +prev=
  23.228 +for option
  23.229 +do
  23.230 +  case "$option" in
  23.231 +  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  23.232 +  *) optarg= ;;
  23.233 +  esac
  23.234 +
  23.235 +  # If the previous option needs an argument, assign it.
  23.236 +  if test -n "$prev"; then
  23.237 +    eval "$prev=\$option"
  23.238 +    prev=
  23.239 +    continue
  23.240 +  fi
  23.241 +
  23.242 +  case "$option" in
  23.243 +  --help) cat <<EOM
  23.244 +Usage: $progname [OPTION]... [HOST [LTMAIN]]
  23.245 +
  23.246 +Generate a system-specific libtool script.
  23.247 +
  23.248 +    --debug                enable verbose shell tracing
  23.249 +    --disable-shared       do not build shared libraries
  23.250 +    --disable-static       do not build static libraries
  23.251 +    --disable-fast-install do not optimize for fast installation
  23.252 +    --enable-dlopen        enable dlopen support
  23.253 +    --enable-win32-dll     enable building dlls on win32 hosts
  23.254 +    --help                 display this help and exit
  23.255 +    --no-verify            do not verify that HOST is a valid host type
  23.256 +-o, --output=FILE          specify the output file [default=$default_ofile]
  23.257 +    --quiet                same as \`--silent'
  23.258 +    --silent               do not print informational messages
  23.259 +    --srcdir=DIR           find \`config.guess' in DIR
  23.260 +    --version              output version information and exit
  23.261 +    --with-gcc             assume that the GNU C compiler will be used
  23.262 +    --with-gnu-ld          assume that the C compiler uses the GNU linker
  23.263 +    --disable-lock         disable file locking
  23.264 +    --cache-file=FILE      configure cache file
  23.265 +
  23.266 +LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
  23.267 +that provides basic libtool functionality.
  23.268 +
  23.269 +HOST is the canonical host system name [default=guessed].
  23.270 +EOM
  23.271 +  exit 0
  23.272 +  ;;
  23.273 +
  23.274 +  --debug)
  23.275 +    echo "$progname: enabling shell trace mode"
  23.276 +    set -x
  23.277 +    ;;
  23.278 +
  23.279 +  --disable-shared) enable_shared=no ;;
  23.280 +
  23.281 +  --disable-static) enable_static=no ;;
  23.282 +
  23.283 +  --disable-fast-install) enable_fast_install=no ;;
  23.284 +
  23.285 +  --enable-dlopen) enable_dlopen=yes ;;
  23.286 +
  23.287 +  --enable-win32-dll) enable_win32_dll=yes ;;
  23.288 +
  23.289 +  --quiet | --silent) silent=yes ;;
  23.290 +
  23.291 +  --srcdir) prev=srcdir ;;
  23.292 +  --srcdir=*) srcdir="$optarg" ;;
  23.293 +
  23.294 +  --no-verify) verify_host=no ;;
  23.295 +
  23.296 +  --output | -o) prev=ofile ;;
  23.297 +  --output=*) ofile="$optarg" ;;
  23.298 +
  23.299 +  --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
  23.300 +
  23.301 +  --with-gcc) with_gcc=yes ;;
  23.302 +  --with-gnu-ld) with_gnu_ld=yes ;;
  23.303 +
  23.304 +  --disable-lock) need_locks=no ;;
  23.305 +
  23.306 +  --cache-file=*) cache_file="$optarg" ;;
  23.307 +
  23.308 +  -*)
  23.309 +    echo "$progname: unrecognized option \`$option'" 1>&2
  23.310 +    echo "$help" 1>&2
  23.311 +    exit 1
  23.312 +    ;;
  23.313 +
  23.314 +  *)
  23.315 +    if test -z "$ltmain"; then
  23.316 +      ltmain="$option"
  23.317 +    elif test -z "$host"; then
  23.318 +# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
  23.319 +#      if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
  23.320 +#        echo "$progname: warning \`$option' is not a valid host type" 1>&2
  23.321 +#      fi
  23.322 +      host="$option"
  23.323 +    else
  23.324 +      echo "$progname: too many arguments" 1>&2
  23.325 +      echo "$help" 1>&2
  23.326 +      exit 1
  23.327 +    fi ;;
  23.328 +  esac
  23.329 +done
  23.330 +
  23.331 +if test -z "$ltmain"; then
  23.332 +  echo "$progname: you must specify a LTMAIN file" 1>&2
  23.333 +  echo "$help" 1>&2
  23.334 +  exit 1
  23.335 +fi
  23.336 +
  23.337 +if test ! -f "$ltmain"; then
  23.338 +  echo "$progname: \`$ltmain' does not exist" 1>&2
  23.339 +  echo "$help" 1>&2
  23.340 +  exit 1
  23.341 +fi
  23.342 +
  23.343 +# Quote any args containing shell metacharacters.
  23.344 +ltconfig_args=
  23.345 +for arg
  23.346 +do
  23.347 +  case "$arg" in
  23.348 +  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  23.349 +  ltconfig_args="$ltconfig_args '$arg'" ;;
  23.350 +  *) ltconfig_args="$ltconfig_args $arg" ;;
  23.351 +  esac
  23.352 +done
  23.353 +
  23.354 +# A relevant subset of AC_INIT.
  23.355 +
  23.356 +# File descriptor usage:
  23.357 +# 0 standard input
  23.358 +# 1 file creation
  23.359 +# 2 errors and warnings
  23.360 +# 3 some systems may open it to /dev/tty
  23.361 +# 4 used on the Kubota Titan
  23.362 +# 5 compiler messages saved in config.log
  23.363 +# 6 checking for... messages and results
  23.364 +if test "$silent" = yes; then
  23.365 +  exec 6>/dev/null
  23.366 +else
  23.367 +  exec 6>&1
  23.368 +fi
  23.369 +exec 5>>./config.log
  23.370 +
  23.371 +# NLS nuisances.
  23.372 +# Only set LANG and LC_ALL to C if already set.
  23.373 +# These must not be set unconditionally because not all systems understand
  23.374 +# e.g. LANG=C (notably SCO).
  23.375 +if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
  23.376 +if test "X${LANG+set}"   = Xset; then LANG=C;   export LANG;   fi
  23.377 +
  23.378 +if test -n "$cache_file" && test -r "$cache_file"; then
  23.379 +  echo "loading cache $cache_file within ltconfig"
  23.380 +  . $cache_file
  23.381 +fi
  23.382 +
  23.383 +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  23.384 +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  23.385 +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  23.386 +    ac_n= ac_c='
  23.387 +' ac_t='	'
  23.388 +  else
  23.389 +    ac_n=-n ac_c= ac_t=
  23.390 +  fi
  23.391 +else
  23.392 +  ac_n= ac_c='\c' ac_t=
  23.393 +fi
  23.394 +
  23.395 +if test -z "$srcdir"; then
  23.396 +  # Assume the source directory is the same one as the path to LTMAIN.
  23.397 +  srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
  23.398 +  test "$srcdir" = "$ltmain" && srcdir=.
  23.399 +fi
  23.400 +
  23.401 +trap "$rm conftest*; exit 1" 1 2 15
  23.402 +if test "$verify_host" = yes; then
  23.403 +  # Check for config.guess and config.sub.
  23.404 +  ac_aux_dir=
  23.405 +  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  23.406 +    if test -f $ac_dir/config.guess; then
  23.407 +      ac_aux_dir=$ac_dir
  23.408 +      break
  23.409 +    fi
  23.410 +  done
  23.411 +  if test -z "$ac_aux_dir"; then
  23.412 +    echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
  23.413 +    echo "$help" 1>&2
  23.414 +    exit 1
  23.415 +  fi
  23.416 +  ac_config_guess=$ac_aux_dir/config.guess
  23.417 +  ac_config_sub=$ac_aux_dir/config.sub
  23.418 +
  23.419 +  # Make sure we can run config.sub.
  23.420 +  if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
  23.421 +  else
  23.422 +    echo "$progname: cannot run $ac_config_sub" 1>&2
  23.423 +    echo "$help" 1>&2
  23.424 +    exit 1
  23.425 +  fi
  23.426 +
  23.427 +  echo $ac_n "checking host system type""... $ac_c" 1>&6
  23.428 +
  23.429 +  host_alias=$host
  23.430 +  case "$host_alias" in
  23.431 +  "")
  23.432 +    if host_alias=`$SHELL $ac_config_guess`; then :
  23.433 +    else
  23.434 +      echo "$progname: cannot guess host type; you must specify one" 1>&2
  23.435 +      echo "$help" 1>&2
  23.436 +      exit 1
  23.437 +    fi ;;
  23.438 +  esac
  23.439 +  host=`$SHELL $ac_config_sub $host_alias`
  23.440 +  echo "$ac_t$host" 1>&6
  23.441 +
  23.442 +  # Make sure the host verified.
  23.443 +  test -z "$host" && exit 1
  23.444 +
  23.445 +elif test -z "$host"; then
  23.446 +  echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
  23.447 +  echo "$help" 1>&2
  23.448 +  exit 1
  23.449 +else
  23.450 +  host_alias=$host
  23.451 +fi
  23.452 +
  23.453 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  23.454 +case "$host_os" in
  23.455 +linux-gnu*) ;;
  23.456 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  23.457 +esac
  23.458 +
  23.459 +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  23.460 +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  23.461 +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  23.462 +
  23.463 +case "$host_os" in
  23.464 +aix3*)
  23.465 +  # AIX sometimes has problems with the GCC collect2 program.  For some
  23.466 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
  23.467 +  # vanish in a puff of smoke.
  23.468 +  if test "X${COLLECT_NAMES+set}" != Xset; then
  23.469 +    COLLECT_NAMES=
  23.470 +    export COLLECT_NAMES
  23.471 +  fi
  23.472 +  ;;
  23.473 +esac
  23.474 +
  23.475 +# Determine commands to create old-style static archives.
  23.476 +old_archive_cmds='$AR cru $oldlib$oldobjs'
  23.477 +old_postinstall_cmds='chmod 644 $oldlib'
  23.478 +old_postuninstall_cmds=
  23.479 +
  23.480 +# Set a sane default for `AR'.
  23.481 +test -z "$AR" && AR=ar
  23.482 +
  23.483 +# Set a sane default for `OBJDUMP'.
  23.484 +test -z "$OBJDUMP" && OBJDUMP=objdump
  23.485 +
  23.486 +# If RANLIB is not set, then run the test.
  23.487 +if test "${RANLIB+set}" != "set"; then
  23.488 +  result=no
  23.489 +
  23.490 +  echo $ac_n "checking for ranlib... $ac_c" 1>&6
  23.491 +  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  23.492 +  for dir in $PATH; do
  23.493 +    test -z "$dir" && dir=.
  23.494 +    if test -f $dir/ranlib || test -f $dir/ranlib$ac_exeext; then
  23.495 +      RANLIB="ranlib"
  23.496 +      result="ranlib"
  23.497 +      break
  23.498 +    fi
  23.499 +  done
  23.500 +  IFS="$save_ifs"
  23.501 +
  23.502 +  echo "$ac_t$result" 1>&6
  23.503 +fi
  23.504 +
  23.505 +if test -n "$RANLIB"; then
  23.506 +  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23.507 +  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  23.508 +fi
  23.509 +
  23.510 +# Set sane defaults for `DLLTOOL', `OBJDUMP', and `AS', used on cygwin.
  23.511 +test -z "$DLLTOOL" && DLLTOOL=dlltool
  23.512 +test -z "$OBJDUMP" && OBJDUMP=objdump
  23.513 +test -z "$AS" && AS=as
  23.514 +
  23.515 +# Check to see if we are using GCC.
  23.516 +if test "$with_gcc" != yes || test -z "$CC"; then
  23.517 +  # If CC is not set, then try to find GCC or a usable CC.
  23.518 +  if test -z "$CC"; then
  23.519 +    echo $ac_n "checking for gcc... $ac_c" 1>&6
  23.520 +    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  23.521 +    for dir in $PATH; do
  23.522 +      test -z "$dir" && dir=.
  23.523 +      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
  23.524 +	CC="gcc"
  23.525 +	break
  23.526 +      fi
  23.527 +    done
  23.528 +    IFS="$save_ifs"
  23.529 +
  23.530 +    if test -n "$CC"; then
  23.531 +      echo "$ac_t$CC" 1>&6
  23.532 +    else
  23.533 +      echo "$ac_t"no 1>&6
  23.534 +    fi
  23.535 +  fi
  23.536 +
  23.537 +  # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
  23.538 +  if test -z "$CC"; then
  23.539 +    echo $ac_n "checking for cc... $ac_c" 1>&6
  23.540 +    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  23.541 +    cc_rejected=no
  23.542 +    for dir in $PATH; do
  23.543 +      test -z "$dir" && dir=.
  23.544 +      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
  23.545 +	if test "$dir/cc" = "/usr/ucb/cc"; then
  23.546 +	  cc_rejected=yes
  23.547 +	  continue
  23.548 +	fi
  23.549 +	CC="cc"
  23.550 +	break
  23.551 +      fi
  23.552 +    done
  23.553 +    IFS="$save_ifs"
  23.554 +    if test $cc_rejected = yes; then
  23.555 +      # We found a bogon in the path, so make sure we never use it.
  23.556 +      set dummy $CC
  23.557 +      shift
  23.558 +      if test $# -gt 0; then
  23.559 +	# We chose a different compiler from the bogus one.
  23.560 +	# However, it has the same name, so the bogon will be chosen
  23.561 +	# first if we set CC to just the name; use the full file name.
  23.562 +	shift
  23.563 +	set dummy "$dir/cc" "$@"
  23.564 +	shift
  23.565 +	CC="$@"
  23.566 +      fi
  23.567 +    fi
  23.568 +
  23.569 +    if test -n "$CC"; then
  23.570 +      echo "$ac_t$CC" 1>&6
  23.571 +    else
  23.572 +      echo "$ac_t"no 1>&6
  23.573 +    fi
  23.574 +
  23.575 +    if test -z "$CC"; then
  23.576 +      echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
  23.577 +      exit 1
  23.578 +    fi
  23.579 +  fi
  23.580 +
  23.581 +  # Now see if the compiler is really GCC.
  23.582 +  with_gcc=no
  23.583 +  echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
  23.584 +  echo "$progname:581: checking whether we are using GNU C" >&5
  23.585 +
  23.586 +  $rm conftest.c
  23.587 +  cat > conftest.c <<EOF
  23.588 +#ifdef __GNUC__
  23.589 +  yes;
  23.590 +#endif
  23.591 +EOF
  23.592 +  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  23.593 +    with_gcc=yes
  23.594 +  fi
  23.595 +  $rm conftest.c
  23.596 +  echo "$ac_t$with_gcc" 1>&6
  23.597 +fi
  23.598 +
  23.599 +# Allow CC to be a program name with arguments.
  23.600 +set dummy $CC
  23.601 +compiler="$2"
  23.602 +
  23.603 +echo $ac_n "checking for object suffix... $ac_c" 1>&6
  23.604 +$rm conftest*
  23.605 +echo 'int i = 1;' > conftest.c
  23.606 +echo "$progname:603: checking for object suffix" >& 5
  23.607 +if { (eval echo $progname:604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
  23.608 +  # Append any warnings to the config.log.
  23.609 +  cat conftest.err 1>&5
  23.610 +
  23.611 +  for ac_file in conftest.*; do
  23.612 +    case $ac_file in
  23.613 +    *.c) ;;
  23.614 +    *) objext=`echo $ac_file | sed -e s/conftest.//` ;;
  23.615 +    esac
  23.616 +  done
  23.617 +else
  23.618 +  cat conftest.err 1>&5
  23.619 +  echo "$progname: failed program was:" >&5
  23.620 +  cat conftest.c >&5
  23.621 +fi
  23.622 +$rm conftest*
  23.623 +echo "$ac_t$objext" 1>&6
  23.624 +
  23.625 +echo $ac_n "checking for executable suffix... $ac_c" 1>&6
  23.626 +if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
  23.627 +  echo $ac_n "(cached) $ac_c" 1>&6
  23.628 +else
  23.629 +  ac_cv_exeext="no"
  23.630 +  $rm conftest*
  23.631 +  echo 'main () { return 0; }' > conftest.c
  23.632 +  echo "$progname:629: checking for executable suffix" >& 5
  23.633 +  if { (eval echo $progname:630: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
  23.634 +    # Append any warnings to the config.log.
  23.635 +    cat conftest.err 1>&5
  23.636 +
  23.637 +    for ac_file in conftest.*; do
  23.638 +      case $ac_file in
  23.639 +      *.c | *.err | *.$objext ) ;;
  23.640 +      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
  23.641 +      esac
  23.642 +    done
  23.643 +  else
  23.644 +    cat conftest.err 1>&5
  23.645 +    echo "$progname: failed program was:" >&5
  23.646 +    cat conftest.c >&5
  23.647 +  fi
  23.648 +  $rm conftest*
  23.649 +fi
  23.650 +if test "X$ac_cv_exeext" = Xno; then
  23.651 +  exeext=""
  23.652 +else
  23.653 +  exeext="$ac_cv_exeext"
  23.654 +fi
  23.655 +echo "$ac_t$ac_cv_exeext" 1>&6
  23.656 +
  23.657 +echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
  23.658 +pic_flag=
  23.659 +special_shlib_compile_flags=
  23.660 +wl=
  23.661 +link_static_flag=
  23.662 +no_builtin_flag=
  23.663 +
  23.664 +if test "$with_gcc" = yes; then
  23.665 +  wl='-Wl,'
  23.666 +  link_static_flag='-static'
  23.667 +
  23.668 +  case "$host_os" in
  23.669 +  beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  23.670 +    # PIC is the default for these OSes.
  23.671 +    ;;
  23.672 +  aix*)
  23.673 +    # Below there is a dirty hack to force normal static linking with -ldl
  23.674 +    # The problem is because libdl dynamically linked with both libc and
  23.675 +    # libC (AIX C++ library), which obviously doesn't included in libraries
  23.676 +    # list by gcc. This cause undefined symbols with -static flags.
  23.677 +    # This hack allows C programs to be linked with "-static -ldl", but
  23.678 +    # we not sure about C++ programs.
  23.679 +    link_static_flag="$link_static_flag ${wl}-lC"
  23.680 +    ;;
  23.681 +  cygwin* | mingw* | os2*)
  23.682 +    # We can build DLLs from non-PIC.
  23.683 +    ;;
  23.684 +  amigaos*)
  23.685 +    # FIXME: we need at least 68020 code to build shared libraries, but
  23.686 +    # adding the `-m68020' flag to GCC prevents building anything better,
  23.687 +    # like `-m68040'.
  23.688 +    pic_flag='-m68020 -resident32 -malways-restore-a4'
  23.689 +    ;;
  23.690 +  sysv4*MP*)
  23.691 +    if test -d /usr/nec; then
  23.692 +       pic_flag=-Kconform_pic
  23.693 +    fi
  23.694 +    ;;
  23.695 +  *)
  23.696 +    pic_flag='-fPIC'
  23.697 +    ;;
  23.698 +  esac
  23.699 +else
  23.700 +  # PORTME Check for PIC flags for the system compiler.
  23.701 +  case "$host_os" in
  23.702 +  aix3* | aix4*)
  23.703 +    # All AIX code is PIC.
  23.704 +    link_static_flag='-bnso -bI:/lib/syscalls.exp'
  23.705 +    ;;
  23.706 +
  23.707 +  hpux9* | hpux10* | hpux11*)
  23.708 +    # Is there a better link_static_flag that works with the bundled CC?
  23.709 +    wl='-Wl,'
  23.710 +    link_static_flag="${wl}-a ${wl}archive"
  23.711 +    pic_flag='+Z'
  23.712 +    ;;
  23.713 +
  23.714 +  irix5* | irix6*)
  23.715 +    wl='-Wl,'
  23.716 +    link_static_flag='-non_shared'
  23.717 +    # PIC (with -KPIC) is the default.
  23.718 +    ;;
  23.719 +
  23.720 +  cygwin* | mingw* | os2*)
  23.721 +    # We can build DLLs from non-PIC.
  23.722 +    ;;
  23.723 +
  23.724 +  osf3* | osf4* | osf5*)
  23.725 +    # All OSF/1 code is PIC.
  23.726 +    wl='-Wl,'
  23.727 +    link_static_flag='-non_shared'
  23.728 +    ;;
  23.729 +
  23.730 +  sco3.2v5*)
  23.731 +    pic_flag='-Kpic'
  23.732 +    link_static_flag='-dn'
  23.733 +    special_shlib_compile_flags='-belf'
  23.734 +    ;;
  23.735 +
  23.736 +  solaris*)
  23.737 +    pic_flag='-KPIC'
  23.738 +    link_static_flag='-Bstatic'
  23.739 +    wl='-Wl,'
  23.740 +    ;;
  23.741 +
  23.742 +  sunos4*)
  23.743 +    pic_flag='-PIC'
  23.744 +    link_static_flag='-Bstatic'
  23.745 +    wl='-Qoption ld '
  23.746 +    ;;
  23.747 +
  23.748 +  sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  23.749 +    pic_flag='-KPIC'
  23.750 +    link_static_flag='-Bstatic'
  23.751 +    wl='-Wl,'
  23.752 +    ;;
  23.753 +
  23.754 +  uts4*)
  23.755 +    pic_flag='-pic'
  23.756 +    link_static_flag='-Bstatic'
  23.757 +    ;;
  23.758 +  sysv4*MP*)
  23.759 +    if test -d /usr/nec ;then
  23.760 +      pic_flag='-Kconform_pic'
  23.761 +      link_static_flag='-Bstatic'
  23.762 +    fi
  23.763 +    ;;
  23.764 +  *)
  23.765 +    can_build_shared=no
  23.766 +    ;;
  23.767 +  esac
  23.768 +fi
  23.769 +
  23.770 +if test -n "$pic_flag"; then
  23.771 +  echo "$ac_t$pic_flag" 1>&6
  23.772 +
  23.773 +  # Check to make sure the pic_flag actually works.
  23.774 +  echo $ac_n "checking if $compiler PIC flag $pic_flag works... $ac_c" 1>&6
  23.775 +  $rm conftest*
  23.776 +  echo "int some_variable = 0;" > conftest.c
  23.777 +  save_CFLAGS="$CFLAGS"
  23.778 +  CFLAGS="$CFLAGS $pic_flag -DPIC"
  23.779 +  echo "$progname:776: checking if $compiler PIC flag $pic_flag works" >&5
  23.780 +  if { (eval echo $progname:777: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
  23.781 +    # Append any warnings to the config.log.
  23.782 +    cat conftest.err 1>&5
  23.783 +    
  23.784 +    case "$host_os" in
  23.785 +    hpux9* | hpux10* | hpux11*)
  23.786 +      # On HP-UX, both CC and GCC only warn that PIC is supported... then they
  23.787 +      # create non-PIC objects.  So, if there were any warnings, we assume that
  23.788 +      # PIC is not supported.
  23.789 +      if test -s conftest.err; then
  23.790 +	echo "$ac_t"no 1>&6
  23.791 +	can_build_shared=no
  23.792 +	pic_flag=
  23.793 +      else
  23.794 +	echo "$ac_t"yes 1>&6
  23.795 +	pic_flag=" $pic_flag"
  23.796 +      fi
  23.797 +      ;;
  23.798 +    *)
  23.799 +      echo "$ac_t"yes 1>&6
  23.800 +      pic_flag=" $pic_flag"
  23.801 +      ;;
  23.802 +    esac
  23.803 +  else
  23.804 +    # Append any errors to the config.log.
  23.805 +    cat conftest.err 1>&5
  23.806 +    can_build_shared=no
  23.807 +    pic_flag=
  23.808 +    echo "$ac_t"no 1>&6
  23.809 +  fi
  23.810 +  CFLAGS="$save_CFLAGS"
  23.811 +  $rm conftest*
  23.812 +else
  23.813 +  echo "$ac_t"none 1>&6
  23.814 +fi
  23.815 +
  23.816 +# Check to see if options -o and -c are simultaneously supported by compiler
  23.817 +echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
  23.818 +$rm -r conftest 2>/dev/null
  23.819 +mkdir conftest
  23.820 +cd conftest
  23.821 +$rm conftest*
  23.822 +echo "int some_variable = 0;" > conftest.c
  23.823 +mkdir out
  23.824 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  23.825 +# that will create temporary files in the current directory regardless of
  23.826 +# the output directory.  Thus, making CWD read-only will cause this test
  23.827 +# to fail, enabling locking or at least warning the user not to do parallel
  23.828 +# builds.
  23.829 +chmod -w .
  23.830 +save_CFLAGS="$CFLAGS"
  23.831 +CFLAGS="$CFLAGS -o out/conftest2.o"
  23.832 +echo "$progname:829: checking if $compiler supports -c -o file.o" >&5
  23.833 +if { (eval echo $progname:830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
  23.834 +
  23.835 +  # The compiler can only warn and ignore the option if not recognized
  23.836 +  # So say no if there are warnings
  23.837 +    if test -s out/conftest.err; then
  23.838 +      echo "$ac_t"no 1>&6
  23.839 +      compiler_c_o=no
  23.840 +    else
  23.841 +      echo "$ac_t"yes 1>&6
  23.842 +      compiler_c_o=yes
  23.843 +    fi
  23.844 +else
  23.845 +  # Append any errors to the config.log.
  23.846 +  cat out/conftest.err 1>&5
  23.847 +  compiler_c_o=no
  23.848 +  echo "$ac_t"no 1>&6
  23.849 +fi
  23.850 +CFLAGS="$save_CFLAGS"
  23.851 +chmod u+w .
  23.852 +$rm conftest* out/*
  23.853 +rmdir out
  23.854 +cd ..
  23.855 +rmdir conftest
  23.856 +$rm -r conftest 2>/dev/null
  23.857 +
  23.858 +if test x"$compiler_c_o" = x"yes"; then
  23.859 +  # Check to see if we can write to a .lo
  23.860 +  echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6
  23.861 +  $rm conftest*
  23.862 +  echo "int some_variable = 0;" > conftest.c
  23.863 +  save_CFLAGS="$CFLAGS"
  23.864 +  CFLAGS="$CFLAGS -c -o conftest.lo"
  23.865 +  echo "$progname:862: checking if $compiler supports -c -o file.lo" >&5
  23.866 +if { (eval echo $progname:863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
  23.867 +
  23.868 +    # The compiler can only warn and ignore the option if not recognized
  23.869 +    # So say no if there are warnings
  23.870 +      if test -s conftest.err; then
  23.871 +	echo "$ac_t"no 1>&6
  23.872 +	compiler_o_lo=no
  23.873 +      else
  23.874 +	echo "$ac_t"yes 1>&6
  23.875 +	compiler_o_lo=yes
  23.876 +      fi
  23.877 +  else
  23.878 +    # Append any errors to the config.log.
  23.879 +    cat conftest.err 1>&5
  23.880 +    compiler_o_lo=no
  23.881 +    echo "$ac_t"no 1>&6
  23.882 +  fi
  23.883 +  CFLAGS="$save_CFLAGS"
  23.884 +  $rm conftest*
  23.885 +else
  23.886 +  compiler_o_lo=no
  23.887 +fi
  23.888 +
  23.889 +# Check to see if we can do hard links to lock some files if needed
  23.890 +hard_links="nottested"
  23.891 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
  23.892 +  # do not overwrite the value of need_locks provided by the user
  23.893 +  echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6
  23.894 +  hard_links=yes
  23.895 +  $rm conftest*
  23.896 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23.897 +  touch conftest.a
  23.898 +  ln conftest.a conftest.b 2>&5 || hard_links=no
  23.899 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
  23.900 +  echo "$ac_t$hard_links" 1>&6
  23.901 +  $rm conftest*
  23.902 +  if test "$hard_links" = no; then
  23.903 +    echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2
  23.904 +    need_locks=warn
  23.905 +  fi
  23.906 +else
  23.907 +  need_locks=no
  23.908 +fi
  23.909 +
  23.910 +if test "$with_gcc" = yes; then
  23.911 +  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  23.912 +  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6
  23.913 +  $rm conftest*
  23.914 +  echo "int some_variable = 0;" > conftest.c
  23.915 +  save_CFLAGS="$CFLAGS"
  23.916 +  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
  23.917 +  echo "$progname:914: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  23.918 +  if { (eval echo $progname:915: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
  23.919 +
  23.920 +    # The compiler can only warn and ignore the option if not recognized
  23.921 +    # So say no if there are warnings
  23.922 +      if test -s conftest.err; then
  23.923 +	echo "$ac_t"no 1>&6
  23.924 +	compiler_rtti_exceptions=no
  23.925 +      else
  23.926 +	echo "$ac_t"yes 1>&6
  23.927 +	compiler_rtti_exceptions=yes
  23.928 +      fi
  23.929 +  else
  23.930 +    # Append any errors to the config.log.
  23.931 +    cat conftest.err 1>&5
  23.932 +    compiler_rtti_exceptions=no
  23.933 +    echo "$ac_t"no 1>&6
  23.934 +  fi
  23.935 +  CFLAGS="$save_CFLAGS"
  23.936 +  $rm conftest*
  23.937 +
  23.938 +  if test "$compiler_rtti_exceptions" = "yes"; then
  23.939 +    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  23.940 +  else
  23.941 +    no_builtin_flag=' -fno-builtin'
  23.942 +  fi
  23.943 +  
  23.944 +fi
  23.945 +
  23.946 +# Check for any special shared library compilation flags.
  23.947 +if test -n "$special_shlib_compile_flags"; then
  23.948 +  echo "$progname: warning: \`$CC' requires \`$special_shlib_compile_flags' to build shared libraries" 1>&2
  23.949 +  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$special_shlib_compile_flags[ 	]" >/dev/null; then :
  23.950 +  else
  23.951 +    echo "$progname: add \`$special_shlib_compile_flags' to the CC or CFLAGS env variable and reconfigure" 1>&2
  23.952 +    can_build_shared=no
  23.953 +  fi
  23.954 +fi
  23.955 +
  23.956 +echo $ac_n "checking if $compiler static flag $link_static_flag works... $ac_c" 1>&6
  23.957 +$rm conftest*
  23.958 +echo 'main(){return(0);}' > conftest.c
  23.959 +save_LDFLAGS="$LDFLAGS"
  23.960 +LDFLAGS="$LDFLAGS $link_static_flag"
  23.961 +echo "$progname:958: checking if $compiler static flag $link_static_flag works" >&5
  23.962 +if { (eval echo $progname:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  23.963 +  echo "$ac_t$link_static_flag" 1>&6
  23.964 +else
  23.965 +  echo "$ac_t"none 1>&6
  23.966 +  link_static_flag=
  23.967 +fi
  23.968 +LDFLAGS="$save_LDFLAGS"
  23.969 +$rm conftest*
  23.970 +
  23.971 +if test -z "$LN_S"; then
  23.972 +  # Check to see if we can use ln -s, or we need hard links.
  23.973 +  echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
  23.974 +  $rm conftest.dat
  23.975 +  if ln -s X conftest.dat 2>/dev/null; then
  23.976 +    $rm conftest.dat
  23.977 +    LN_S="ln -s"
  23.978 +  else
  23.979 +    LN_S=ln
  23.980 +  fi
  23.981 +  if test "$LN_S" = "ln -s"; then
  23.982 +    echo "$ac_t"yes 1>&6
  23.983 +  else
  23.984 +    echo "$ac_t"no 1>&6
  23.985 +  fi
  23.986 +fi
  23.987 +
  23.988 +# Make sure LD is an absolute path.
  23.989 +if test -z "$LD"; then
  23.990 +  ac_prog=ld
  23.991 +  if test "$with_gcc" = yes; then
  23.992 +    # Check if gcc -print-prog-name=ld gives a path.
  23.993 +    echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
  23.994 +    echo "$progname:991: checking for ld used by GCC" >&5
  23.995 +    ac_prog=`($CC -print-prog-name=ld) 2>&5`
  23.996 +    case "$ac_prog" in
  23.997 +    # Accept absolute paths.
  23.998 +    [\\/]* | [A-Za-z]:[\\/]*)
  23.999 +      re_direlt='/[^/][^/]*/\.\./'
 23.1000 +      # Canonicalize the path of ld
 23.1001 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 23.1002 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 23.1003 +	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 23.1004 +      done
 23.1005 +      test -z "$LD" && LD="$ac_prog"
 23.1006 +      ;;
 23.1007 +    "")
 23.1008 +      # If it fails, then pretend we are not using GCC.
 23.1009 +      ac_prog=ld
 23.1010 +      ;;
 23.1011 +    *)
 23.1012 +      # If it is relative, then search for the first ld in PATH.
 23.1013 +      with_gnu_ld=unknown
 23.1014 +      ;;
 23.1015 +    esac
 23.1016 +  elif test "$with_gnu_ld" = yes; then
 23.1017 +    echo $ac_n "checking for GNU ld... $ac_c" 1>&6
 23.1018 +    echo "$progname:1015: checking for GNU ld" >&5
 23.1019 +  else
 23.1020 +    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 23.1021 +    echo "$progname:1018: checking for non-GNU ld" >&5
 23.1022 +  fi
 23.1023 +
 23.1024 +  if test -z "$LD"; then
 23.1025 +    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 23.1026 +    for ac_dir in $PATH; do
 23.1027 +      test -z "$ac_dir" && ac_dir=.
 23.1028 +      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 23.1029 +	LD="$ac_dir/$ac_prog"
 23.1030 +	# Check to see if the program is GNU ld.  I'd rather use --version,
 23.1031 +	# but apparently some GNU ld's only accept -v.
 23.1032 +	# Break only if it was the GNU/non-GNU ld that we prefer.
 23.1033 +	if "$LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 23.1034 +	  test "$with_gnu_ld" != no && break
 23.1035 +	else
 23.1036 +	  test "$with_gnu_ld" != yes && break
 23.1037 +	fi
 23.1038 +      fi
 23.1039 +    done
 23.1040 +    IFS="$ac_save_ifs"
 23.1041 +  fi
 23.1042 +
 23.1043 +  if test -n "$LD"; then
 23.1044 +    echo "$ac_t$LD" 1>&6
 23.1045 +  else
 23.1046 +    echo "$ac_t"no 1>&6
 23.1047 +  fi
 23.1048 +
 23.1049 +  if test -z "$LD"; then
 23.1050 +    echo "$progname: error: no acceptable ld found in \$PATH" 1>&2
 23.1051 +    exit 1
 23.1052 +  fi
 23.1053 +fi
 23.1054 +
 23.1055 +# Check to see if it really is or is not GNU ld.
 23.1056 +echo $ac_n "checking if the linker ($LD) is GNU ld... $ac_c" 1>&6
 23.1057 +# I'd rather use --version here, but apparently some GNU ld's only accept -v.
 23.1058 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 23.1059 +  with_gnu_ld=yes
 23.1060 +else
 23.1061 +  with_gnu_ld=no
 23.1062 +fi
 23.1063 +echo "$ac_t$with_gnu_ld" 1>&6
 23.1064 +
 23.1065 +# See if the linker supports building shared libraries.
 23.1066 +echo $ac_n "checking whether the linker ($LD) supports shared libraries... $ac_c" 1>&6
 23.1067 +
 23.1068 +allow_undefined_flag=
 23.1069 +no_undefined_flag=
 23.1070 +need_lib_prefix=unknown
 23.1071 +need_version=unknown
 23.1072 +# when you set need_version to no, make sure it does not cause -set_version
 23.1073 +# flags to be left without arguments
 23.1074 +archive_cmds=
 23.1075 +archive_expsym_cmds=
 23.1076 +old_archive_from_new_cmds=
 23.1077 +export_dynamic_flag_spec=
 23.1078 +whole_archive_flag_spec=
 23.1079 +thread_safe_flag_spec=
 23.1080 +hardcode_libdir_flag_spec=
 23.1081 +hardcode_libdir_separator=
 23.1082 +hardcode_direct=no
 23.1083 +hardcode_minus_L=no
 23.1084 +hardcode_shlibpath_var=unsupported
 23.1085 +runpath_var=
 23.1086 +always_export_symbols=no
 23.1087 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 23.1088 +# include_expsyms should be a list of space-separated symbols to be *always*
 23.1089 +# included in the symbol list
 23.1090 +include_expsyms=
 23.1091 +# exclude_expsyms can be an egrep regular expression of symbols to exclude
 23.1092 +# it will be wrapped by ` (' and `)$', so one must not match beginning or
 23.1093 +# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 23.1094 +# as well as any symbol that contains `d'.
 23.1095 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 23.1096 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 23.1097 +# platforms (ab)use it in PIC code, but their linkers get confused if
 23.1098 +# the symbol is explicitly referenced.  Since portable code cannot
 23.1099 +# rely on this symbol name, it's probably fine to never include it in
 23.1100 +# preloaded symbol tables.
 23.1101 +
 23.1102 +case "$host_os" in
 23.1103 +cygwin* | mingw*)
 23.1104 +  # FIXME: the MSVC++ port hasn't been tested in a loooong time
 23.1105 +  # When not using gcc, we currently assume that we are using
 23.1106 +  # Microsoft Visual C++.
 23.1107 +  if test "$with_gcc" != yes; then
 23.1108 +    with_gnu_ld=no
 23.1109 +  fi
 23.1110 +  ;;
 23.1111 +
 23.1112 +esac
 23.1113 +
 23.1114 +ld_shlibs=yes
 23.1115 +if test "$with_gnu_ld" = yes; then
 23.1116 +  # If archive_cmds runs LD, not CC, wlarc should be empty
 23.1117 +  wlarc='${wl}'
 23.1118 +
 23.1119 +  # See if GNU ld supports shared libraries.
 23.1120 +  case "$host_os" in
 23.1121 +  aix3* | aix4*)
 23.1122 +    # On AIX, the GNU linker is very broken
 23.1123 +    ld_shlibs=no
 23.1124 +    cat <<EOF 1>&2
 23.1125 +
 23.1126 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 23.1127 +*** to be unable to reliably create shared libraries on AIX.
 23.1128 +*** Therefore, libtool is disabling shared libraries support.  If you
 23.1129 +*** really care for shared libraries, you may want to modify your PATH
 23.1130 +*** so that a non-GNU linker is found, and then restart.
 23.1131 +
 23.1132 +EOF
 23.1133 +    ;;
 23.1134 +
 23.1135 +  amigaos*)
 23.1136 +    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
 23.1137 +    hardcode_libdir_flag_spec='-L$libdir'
 23.1138 +    hardcode_minus_L=yes
 23.1139 +
 23.1140 +    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 23.1141 +    # that the semantics of dynamic libraries on AmigaOS, at least up
 23.1142 +    # to version 4, is to share data among multiple programs linked
 23.1143 +    # with the same dynamic library.  Since this doesn't match the
 23.1144 +    # behavior of shared libraries on other platforms, we can use
 23.1145 +    # them.
 23.1146 +    ld_shlibs=no
 23.1147 +    ;;
 23.1148 +
 23.1149 +  beos*)
 23.1150 +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 23.1151 +      allow_undefined_flag=unsupported
 23.1152 +      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 23.1153 +      # support --undefined.  This deserves some investigation.  FIXME
 23.1154 +      archive_cmds='$CC -nostart $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
 23.1155 +    else
 23.1156 +      ld_shlibs=no
 23.1157 +    fi
 23.1158 +    ;;
 23.1159 +
 23.1160 +  cygwin* | mingw*)
 23.1161 +    # hardcode_libdir_flag_spec is actually meaningless, as there is
 23.1162 +    # no search path for DLLs.
 23.1163 +    hardcode_libdir_flag_spec='-L$libdir'
 23.1164 +    allow_undefined_flag=unsupported
 23.1165 +    always_export_symbols=yes
 23.1166 +
 23.1167 +    # Extract the symbol export list from an `--export-all' def file,
 23.1168 +    # then regenerate the def file from the symbol export list, so that
 23.1169 +    # the compiled dll only exports the symbol export list.
 23.1170 +    export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
 23.1171 +      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
 23.1172 +      $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
 23.1173 +      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols'
 23.1174 +
 23.1175 +    archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
 23.1176 +      _lt_hint=1;
 23.1177 +      for symbol in `cat $export_symbols`; do
 23.1178 +	echo "	\$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
 23.1179 +	_lt_hint=`expr 1 + \$_lt_hint`;
 23.1180 +      done~
 23.1181 +      test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
 23.1182 +      test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
 23.1183 +      $CC -Wl,--base-file,$objdir/$soname-base -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
 23.1184 +      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
 23.1185 +      $CC -Wl,--base-file,$objdir/$soname-base $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts~
 23.1186 +      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --def $objdir/$soname-def --base-file $objdir/$soname-base --output-exp $objdir/$soname-exp~
 23.1187 +      $CC $objdir/$soname-exp -Wl,--dll -nostartfiles -Wl,-e,__cygwin_dll_entry@12 -o $lib $objdir/$soname-ltdll.$objext $libobjs $deplibs $linkopts'
 23.1188 +
 23.1189 +      old_archive_from_new_cmds='$DLLTOOL --as=$AS --dllname $soname --def $objdir/$soname-def --output-lib $objdir/$libname.a' 
 23.1190 +    ;;
 23.1191 +
 23.1192 +  netbsd*)
 23.1193 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 23.1194 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
 23.1195 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 23.1196 +    else
 23.1197 +      archive_cmds='$LD -Bshareable $libobjs $deplibs $linkopts -o $lib'
 23.1198 +      # can we support soname and/or expsyms with a.out? -oliva
 23.1199 +    fi
 23.1200 +    ;;
 23.1201 +
 23.1202 +  solaris* | sysv5*)
 23.1203 +    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 23.1204 +      ld_shlibs=no
 23.1205 +      cat <<EOF 1>&2
 23.1206 +
 23.1207 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 23.1208 +*** create shared libraries on Solaris systems.  Therefore, libtool
 23.1209 +*** is disabling shared libraries support.  We urge you to upgrade GNU
 23.1210 +*** binutils to release 2.9.1 or newer.  Another option is to modify
 23.1211 +*** your PATH or compiler configuration so that the native linker is
 23.1212 +*** used, and then restart.
 23.1213 +
 23.1214 +EOF
 23.1215 +    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 23.1216 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
 23.1217 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 23.1218 +    else
 23.1219 +      ld_shlibs=no
 23.1220 +    fi
 23.1221 +    ;;      
 23.1222 +
 23.1223 +  sunos4*)
 23.1224 +    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linkopts'
 23.1225 +    wlarc=
 23.1226 +    hardcode_direct=yes
 23.1227 +    hardcode_shlibpath_var=no
 23.1228 +    ;;
 23.1229 +
 23.1230 +  *)
 23.1231 +    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 23.1232 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
 23.1233 +      archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 23.1234 +    else
 23.1235 +      ld_shlibs=no
 23.1236 +    fi
 23.1237 +    ;;
 23.1238 +  esac
 23.1239 +
 23.1240 +  if test "$ld_shlibs" = yes; then
 23.1241 +    runpath_var=LD_RUN_PATH
 23.1242 +    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 23.1243 +    export_dynamic_flag_spec='${wl}--export-dynamic'
 23.1244 +    case $host_os in
 23.1245 +    cygwin* | mingw*)
 23.1246 +      # dlltool doesn't understand --whole-archive et. al.
 23.1247 +      whole_archive_flag_spec=
 23.1248 +      ;;
 23.1249 +    *)
 23.1250 +      # ancient GNU ld didn't support --whole-archive et. al.
 23.1251 +      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 23.1252 +        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 23.1253 +      else
 23.1254 +        whole_archive_flag_spec=
 23.1255 +      fi
 23.1256 +      ;;
 23.1257 +    esac
 23.1258 +  fi
 23.1259 +else
 23.1260 +  # PORTME fill in a description of your system's linker (not GNU ld)
 23.1261 +  case "$host_os" in
 23.1262 +  aix3*)
 23.1263 +    allow_undefined_flag=unsupported
 23.1264 +    always_export_symbols=yes
 23.1265 +    archive_expsym_cmds='$LD -o $objdir/$soname $libobjs $deplibs $linkopts -bE:$export_symbols -T512 -H512 -bM:SRE~$AR cru $lib $objdir/$soname'
 23.1266 +    # Note: this linker hardcodes the directories in LIBPATH if there
 23.1267 +    # are no directories specified by -L.
 23.1268 +    hardcode_minus_L=yes
 23.1269 +    if test "$with_gcc" = yes && test -z "$link_static_flag"; then
 23.1270 +      # Neither direct hardcoding nor static linking is supported with a
 23.1271 +      # broken collect2.
 23.1272 +      hardcode_direct=unsupported
 23.1273 +    fi
 23.1274 +    ;;
 23.1275 +
 23.1276 +  aix4*)
 23.1277 +    hardcode_libdir_flag_spec='${wl}-b ${wl}nolibpath ${wl}-b ${wl}libpath:$libdir:/usr/lib:/lib'
 23.1278 +    hardcode_libdir_separator=':'
 23.1279 +    if test "$with_gcc" = yes; then
 23.1280 +      collect2name=`${CC} -print-prog-name=collect2`
 23.1281 +      if test -f "$collect2name" && \
 23.1282 +	 strings "$collect2name" | grep resolve_lib_name >/dev/null
 23.1283 +      then
 23.1284 +	# We have reworked collect2
 23.1285 +	hardcode_direct=yes
 23.1286 +      else
 23.1287 +	# We have old collect2
 23.1288 +	hardcode_direct=unsupported
 23.1289 +	# It fails to find uninstalled libraries when the uninstalled
 23.1290 +	# path is not listed in the libpath.  Setting hardcode_minus_L
 23.1291 +	# to unsupported forces relinking
 23.1292 +	hardcode_minus_L=yes
 23.1293 +	hardcode_libdir_flag_spec='-L$libdir'
 23.1294 +	hardcode_libdir_separator=
 23.1295 +      fi
 23.1296 +      shared_flag='-shared'
 23.1297 +    else
 23.1298 +      shared_flag='${wl}-bM:SRE'
 23.1299 +      hardcode_direct=yes
 23.1300 +    fi
 23.1301 +    allow_undefined_flag=' ${wl}-berok'
 23.1302 +    archive_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bexpall ${wl}-bnoentry${allow_undefined_flag}'
 23.1303 +    archive_expsym_cmds="\$CC $shared_flag"' -o $objdir/$soname $libobjs $deplibs $linkopts ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}'
 23.1304 +    case "$host_os" in aix4.[01]|aix4.[01].*)
 23.1305 +      # According to Greg Wooledge, -bexpall is only supported from AIX 4.2 on
 23.1306 +      always_export_symbols=yes ;;
 23.1307 +    esac
 23.1308 +   ;;
 23.1309 +
 23.1310 +  amigaos*)
 23.1311 +    archive_cmds='$rm $objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $objdir/a2ixlibrary.data~$AR cru $lib $libobjs~$RANLIB $lib~(cd $objdir && a2ixlibrary -32)'
 23.1312 +    hardcode_libdir_flag_spec='-L$libdir'
 23.1313 +    hardcode_minus_L=yes
 23.1314 +    # see comment about different semantics on the GNU ld section
 23.1315 +    ld_shlibs=no
 23.1316 +    ;;
 23.1317 +
 23.1318 +  cygwin* | mingw*)
 23.1319 +    # When not using gcc, we currently assume that we are using
 23.1320 +    # Microsoft Visual C++.
 23.1321 +    # hardcode_libdir_flag_spec is actually meaningless, as there is
 23.1322 +    # no search path for DLLs.
 23.1323 +    hardcode_libdir_flag_spec=' '
 23.1324 +    allow_undefined_flag=unsupported
 23.1325 +    # Tell ltmain to make .lib files, not .a files.
 23.1326 +    libext=lib
 23.1327 +    # FIXME: Setting linknames here is a bad hack.
 23.1328 +    archive_cmds='$CC -o $lib $libobjs $linkopts `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 23.1329 +    # The linker will automatically build a .lib file if we build a DLL.
 23.1330 +    old_archive_from_new_cmds='true'
 23.1331 +    # FIXME: Should let the user specify the lib program.
 23.1332 +    old_archive_cmds='lib /OUT:$oldlib$oldobjs'
 23.1333 +    fix_srcfile_path='`cygpath -w $srcfile`'
 23.1334 +    ;;
 23.1335 +
 23.1336 +  freebsd1*)
 23.1337 +    ld_shlibs=no
 23.1338 +    ;;
 23.1339 +
 23.1340 +  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 23.1341 +  # support.  Future versions do this automatically, but an explicit c++rt0.o
 23.1342 +  # does not break anything, and helps significantly (at the cost of a little
 23.1343 +  # extra space).
 23.1344 +  freebsd2.2*)
 23.1345 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts /usr/lib/c++rt0.o'
 23.1346 +    hardcode_libdir_flag_spec='-R$libdir'
 23.1347 +    hardcode_direct=yes
 23.1348 +    hardcode_shlibpath_var=no
 23.1349 +    ;;
 23.1350 +
 23.1351 +  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 23.1352 +  freebsd2*)
 23.1353 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
 23.1354 +    hardcode_direct=yes
 23.1355 +    hardcode_minus_L=yes
 23.1356 +    hardcode_shlibpath_var=no
 23.1357 +    ;;
 23.1358 +
 23.1359 +  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 23.1360 +  freebsd*)
 23.1361 +    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $linkopts'
 23.1362 +    hardcode_libdir_flag_spec='-R$libdir'
 23.1363 +    hardcode_direct=yes
 23.1364 +    hardcode_shlibpath_var=no
 23.1365 +    ;;
 23.1366 +
 23.1367 +  hpux9* | hpux10* | hpux11*)
 23.1368 +    case "$host_os" in
 23.1369 +    hpux9*) archive_cmds='$rm $objdir/$soname~$LD -b +b $install_libdir -o $objdir/$soname $libobjs $deplibs $linkopts~test $objdir/$soname = $lib || mv $objdir/$soname $lib' ;;
 23.1370 +    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linkopts' ;;
 23.1371 +    esac
 23.1372 +    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 23.1373 +    hardcode_libdir_separator=:
 23.1374 +    hardcode_direct=yes
 23.1375 +    hardcode_minus_L=yes # Not in the search PATH, but as the default
 23.1376 +			 # location of the library.
 23.1377 +    export_dynamic_flag_spec='${wl}-E'
 23.1378 +    ;;
 23.1379 +
 23.1380 +  irix5* | irix6*)
 23.1381 +    if test "$with_gcc" = yes; then
 23.1382 +      archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 23.1383 +    else
 23.1384 +      archive_cmds='$LD -shared $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 23.1385 +    fi
 23.1386 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 23.1387 +    hardcode_libdir_separator=:
 23.1388 +    ;;
 23.1389 +
 23.1390 +  netbsd*)
 23.1391 +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 23.1392 +      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'  # a.out
 23.1393 +    else
 23.1394 +      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linkopts'      # ELF
 23.1395 +    fi
 23.1396 +    hardcode_libdir_flag_spec='${wl}-R$libdir'
 23.1397 +    hardcode_direct=yes
 23.1398 +    hardcode_shlibpath_var=no
 23.1399 +    ;;
 23.1400 +
 23.1401 +  openbsd*)
 23.1402 +    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linkopts'
 23.1403 +    hardcode_libdir_flag_spec='-R$libdir'
 23.1404 +    hardcode_direct=yes
 23.1405 +    hardcode_shlibpath_var=no
 23.1406 +    ;;
 23.1407 +
 23.1408 +  os2*)
 23.1409 +    hardcode_libdir_flag_spec='-L$libdir'
 23.1410 +    hardcode_minus_L=yes
 23.1411 +    allow_undefined_flag=unsupported
 23.1412 +    archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $objdir/$libname.def~$echo DATA >> $objdir/$libname.def~$echo " SINGLE NONSHARED" >> $objdir/$libname.def~$echo EXPORTS >> $objdir/$libname.def~emxexp $libobjs >> $objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $linkopts $objdir/$libname.def'
 23.1413 +    old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
 23.1414 +    ;;
 23.1415 +
 23.1416 +  osf3*)
 23.1417 +    if test "$with_gcc" = yes; then
 23.1418 +      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 23.1419 +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 23.1420 +    else
 23.1421 +      allow_undefined_flag=' -expect_unresolved \*'
 23.1422 +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 23.1423 +    fi
 23.1424 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 23.1425 +    hardcode_libdir_separator=:
 23.1426 +    ;;
 23.1427 +
 23.1428 +  osf4* | osf5*)  # As osf3* with the addition of the -msym flag
 23.1429 +    if test "$with_gcc" = yes; then
 23.1430 +      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 23.1431 +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 23.1432 +    else
 23.1433 +      allow_undefined_flag=' -expect_unresolved \*'
 23.1434 +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 23.1435 +    fi
 23.1436 +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 23.1437 +    hardcode_libdir_separator=:
 23.1438 +    ;;
 23.1439 +
 23.1440 +  sco3.2v5*)
 23.1441 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1442 +    hardcode_shlibpath_var=no
 23.1443 +    runpath_var=LD_RUN_PATH
 23.1444 +    hardcode_runpath_var=yes
 23.1445 +    ;;
 23.1446 +
 23.1447 +  solaris*)
 23.1448 +    no_undefined_flag=' -z text'
 23.1449 +    # $CC -shared without GNU ld will not create a library from C++
 23.1450 +    # object files and a static libstdc++, better avoid it by now
 23.1451 +    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1452 +    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 23.1453 +		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
 23.1454 +    hardcode_libdir_flag_spec='-R$libdir'
 23.1455 +    hardcode_shlibpath_var=no
 23.1456 +    case "$host_os" in
 23.1457 +    solaris2.[0-5] | solaris2.[0-5].*) ;;
 23.1458 +    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 23.1459 +      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 23.1460 +    esac
 23.1461 +    ;;
 23.1462 +
 23.1463 +  sunos4*)
 23.1464 +    archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linkopts'
 23.1465 +    hardcode_libdir_flag_spec='-L$libdir'
 23.1466 +    hardcode_direct=yes
 23.1467 +    hardcode_minus_L=yes
 23.1468 +    hardcode_shlibpath_var=no
 23.1469 +    ;;
 23.1470 +
 23.1471 +  sysv4)
 23.1472 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1473 +    runpath_var='LD_RUN_PATH'
 23.1474 +    hardcode_shlibpath_var=no
 23.1475 +    hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
 23.1476 +    ;;  
 23.1477 +
 23.1478 +  sysv4.3*)
 23.1479 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1480 +    hardcode_shlibpath_var=no
 23.1481 +    export_dynamic_flag_spec='-Bexport'
 23.1482 +    ;;
 23.1483 +
 23.1484 +  sysv5*)
 23.1485 +    no_undefined_flag=' -z text'
 23.1486 +    # $CC -shared without GNU ld will not create a library from C++
 23.1487 +    # object files and a static libstdc++, better avoid it by now
 23.1488 +    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1489 +    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 23.1490 +		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
 23.1491 +    hardcode_libdir_flag_spec=
 23.1492 +    hardcode_shlibpath_var=no
 23.1493 +    runpath_var='LD_RUN_PATH'
 23.1494 +    ;;
 23.1495 +
 23.1496 +  uts4*)
 23.1497 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1498 +    hardcode_libdir_flag_spec='-L$libdir'
 23.1499 +    hardcode_shlibpath_var=no
 23.1500 +    ;;
 23.1501 +
 23.1502 +  dgux*)
 23.1503 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1504 +    hardcode_libdir_flag_spec='-L$libdir'
 23.1505 +    hardcode_shlibpath_var=no
 23.1506 +    ;;
 23.1507 +
 23.1508 +  sysv4*MP*)
 23.1509 +    if test -d /usr/nec; then
 23.1510 +      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1511 +      hardcode_shlibpath_var=no
 23.1512 +      runpath_var=LD_RUN_PATH
 23.1513 +      hardcode_runpath_var=yes
 23.1514 +      ld_shlibs=yes
 23.1515 +    fi
 23.1516 +    ;;
 23.1517 +
 23.1518 +  sysv4.2uw2*)
 23.1519 +    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
 23.1520 +    hardcode_direct=yes
 23.1521 +    hardcode_minus_L=no
 23.1522 +    hardcode_shlibpath_var=no
 23.1523 +    hardcode_runpath_var=yes
 23.1524 +    runpath_var=LD_RUN_PATH
 23.1525 +    ;;
 23.1526 +
 23.1527 +  unixware7*)
 23.1528 +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
 23.1529 +    runpath_var='LD_RUN_PATH'
 23.1530 +    hardcode_shlibpath_var=no
 23.1531 +    ;;
 23.1532 +
 23.1533 +  *)
 23.1534 +    ld_shlibs=no
 23.1535 +    ;;
 23.1536 +  esac
 23.1537 +fi
 23.1538 +echo "$ac_t$ld_shlibs" 1>&6
 23.1539 +test "$ld_shlibs" = no && can_build_shared=no
 23.1540 +
 23.1541 +if test -z "$NM"; then
 23.1542 +  echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
 23.1543 +  case "$NM" in
 23.1544 +  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
 23.1545 +  *)
 23.1546 +    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 23.1547 +    for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
 23.1548 +      test -z "$ac_dir" && ac_dir=.
 23.1549 +      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
 23.1550 +	# Check to see if the nm accepts a BSD-compat flag.
 23.1551 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
 23.1552 +	#   nm: unknown option "B" ignored
 23.1553 +	if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 23.1554 +	  NM="$ac_dir/nm -B"
 23.1555 +	  break
 23.1556 +	elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 23.1557 +	  NM="$ac_dir/nm -p"
 23.1558 +	  break
 23.1559 +	else
 23.1560 +	  NM=${NM="$ac_dir/nm"} # keep the first match, but
 23.1561 +	  continue # so that we can try to find one that supports BSD flags
 23.1562 +	fi
 23.1563 +      fi
 23.1564 +    done
 23.1565 +    IFS="$ac_save_ifs"
 23.1566 +    test -z "$NM" && NM=nm
 23.1567 +    ;;
 23.1568 +  esac
 23.1569 +  echo "$ac_t$NM" 1>&6
 23.1570 +fi
 23.1571 +
 23.1572 +# Check for command to grab the raw symbol name followed by C symbol from nm.
 23.1573 +echo $ac_n "checking command to parse $NM output... $ac_c" 1>&6
 23.1574 +
 23.1575 +# These are sane defaults that work on at least a few old systems.
 23.1576 +# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 23.1577 +
 23.1578 +# Character class describing NM global symbol codes.
 23.1579 +symcode='[BCDEGRST]'
 23.1580 +
 23.1581 +# Regexp to match symbols that can be accessed directly from C.
 23.1582 +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 23.1583 +
 23.1584 +# Transform the above into a raw symbol and a C symbol.
 23.1585 +symxfrm='\1 \2\3 \3'
 23.1586 +
 23.1587 +# Transform an extracted symbol line into a proper C declaration
 23.1588 +global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 23.1589 +
 23.1590 +# Define system-specific variables.
 23.1591 +case "$host_os" in
 23.1592 +aix*)
 23.1593 +  symcode='[BCDT]'
 23.1594 +  ;;
 23.1595 +cygwin* | mingw*)
 23.1596 +  symcode='[ABCDGISTW]'
 23.1597 +  ;;
 23.1598 +hpux*) # Its linker distinguishes data from code symbols
 23.1599 +  global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
 23.1600 +  ;;
 23.1601 +irix*)
 23.1602 +  symcode='[BCDEGRST]'
 23.1603 +  ;;
 23.1604 +solaris*)
 23.1605 +  symcode='[BDT]'
 23.1606 +  ;;
 23.1607 +sysv4)
 23.1608 +  symcode='[DFNSTU]'
 23.1609 +  ;;
 23.1610 +esac
 23.1611 +
 23.1612 +# If we're using GNU nm, then use its standard symbol codes.
 23.1613 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 23.1614 +  symcode='[ABCDGISTW]'
 23.1615 +fi
 23.1616 +
 23.1617 +# Try without a prefix undercore, then with it.
 23.1618 +for ac_symprfx in "" "_"; do
 23.1619 +
 23.1620 +  # Write the raw and C identifiers.
 23.1621 +  global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode\)[ 	][ 	]*\($ac_symprfx\)$sympat$/$symxfrm/p'"
 23.1622 +
 23.1623 +  # Check to see that the pipe works correctly.
 23.1624 +  pipe_works=no
 23.1625 +  $rm conftest*
 23.1626 +  cat > conftest.c <<EOF
 23.1627 +#ifdef __cplusplus
 23.1628 +extern "C" {
 23.1629 +#endif
 23.1630 +char nm_test_var;
 23.1631 +void nm_test_func(){}
 23.1632 +#ifdef __cplusplus
 23.1633 +}
 23.1634 +#endif
 23.1635 +main(){nm_test_var='a';nm_test_func();return(0);}
 23.1636 +EOF
 23.1637 +
 23.1638 +  echo "$progname:1635: checking if global_symbol_pipe works" >&5
 23.1639 +  if { (eval echo $progname:1636: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
 23.1640 +    # Now try to grab the symbols.
 23.1641 +    nlist=conftest.nm
 23.1642 +    if { echo "$progname:1639: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
 23.1643 +
 23.1644 +      # Try sorting and uniquifying the output.
 23.1645 +      if sort "$nlist" | uniq > "$nlist"T; then
 23.1646 +	mv -f "$nlist"T "$nlist"
 23.1647 +      else
 23.1648 +	rm -f "$nlist"T
 23.1649 +      fi
 23.1650 +
 23.1651 +      # Make sure that we snagged all the symbols we need.
 23.1652 +      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 23.1653 +	if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 23.1654 +	  cat <<EOF > conftest.c
 23.1655 +#ifdef __cplusplus
 23.1656 +extern "C" {
 23.1657 +#endif
 23.1658 +
 23.1659 +EOF
 23.1660 +	  # Now generate the symbol file.
 23.1661 +	  eval "$global_symbol_to_cdecl"' < "$nlist" >> conftest.c'
 23.1662 +
 23.1663 +	  cat <<EOF >> conftest.c
 23.1664 +#if defined (__STDC__) && __STDC__
 23.1665 +# define lt_ptr_t void *
 23.1666 +#else
 23.1667 +# define lt_ptr_t char *
 23.1668 +# define const
 23.1669 +#endif
 23.1670 +
 23.1671 +/* The mapping between symbol names and symbols. */
 23.1672 +const struct {
 23.1673 +  const char *name;
 23.1674 +  lt_ptr_t address;
 23.1675 +}
 23.1676 +lt_preloaded_symbols[] =
 23.1677 +{
 23.1678 +EOF
 23.1679 +	  sed 's/^. \(.*\) \(.*\)$/  {"\2", (lt_ptr_t) \&\2},/' < "$nlist" >> conftest.c
 23.1680 +	  cat <<\EOF >> conftest.c
 23.1681 +  {0, (lt_ptr_t) 0}
 23.1682 +};
 23.1683 +
 23.1684 +#ifdef __cplusplus
 23.1685 +}
 23.1686 +#endif
 23.1687 +EOF
 23.1688 +	  # Now try linking the two files.
 23.1689 +	  mv conftest.$objext conftstm.$objext
 23.1690 +	  save_LIBS="$LIBS"
 23.1691 +	  save_CFLAGS="$CFLAGS"
 23.1692 +	  LIBS="conftstm.$objext"
 23.1693 +	  CFLAGS="$CFLAGS$no_builtin_flag"
 23.1694 +	  if { (eval echo $progname:1691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 23.1695 +	    pipe_works=yes
 23.1696 +	  else
 23.1697 +	    echo "$progname: failed program was:" >&5
 23.1698 +	    cat conftest.c >&5
 23.1699 +	  fi
 23.1700 +	  LIBS="$save_LIBS"
 23.1701 +	else
 23.1702 +	  echo "cannot find nm_test_func in $nlist" >&5
 23.1703 +	fi
 23.1704 +      else
 23.1705 +	echo "cannot find nm_test_var in $nlist" >&5
 23.1706 +      fi
 23.1707 +    else
 23.1708 +      echo "cannot run $global_symbol_pipe" >&5
 23.1709 +    fi
 23.1710 +  else
 23.1711 +    echo "$progname: failed program was:" >&5
 23.1712 +    cat conftest.c >&5
 23.1713 +  fi
 23.1714 +  $rm conftest* conftst*
 23.1715 +
 23.1716 +  # Do not use the global_symbol_pipe unless it works.
 23.1717 +  if test "$pipe_works" = yes; then
 23.1718 +    break
 23.1719 +  else
 23.1720 +    global_symbol_pipe=
 23.1721 +  fi
 23.1722 +done
 23.1723 +if test "$pipe_works" = yes; then
 23.1724 +  echo "${ac_t}ok" 1>&6
 23.1725 +else
 23.1726 +  echo "${ac_t}failed" 1>&6
 23.1727 +fi
 23.1728 +
 23.1729 +if test -z "$global_symbol_pipe"; then
 23.1730 +  global_symbol_to_cdecl=
 23.1731 +fi
 23.1732 +
 23.1733 +# Check hardcoding attributes.
 23.1734 +echo $ac_n "checking how to hardcode library paths into programs... $ac_c" 1>&6
 23.1735 +hardcode_action=
 23.1736 +if test -n "$hardcode_libdir_flag_spec" || \
 23.1737 +   test -n "$runpath_var"; then
 23.1738 +
 23.1739 +  # We can hardcode non-existant directories.
 23.1740 +  if test "$hardcode_direct" != no &&
 23.1741 +     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 23.1742 +     # have to relink, otherwise we might link with an installed library
 23.1743 +     # when we should be linking with a yet-to-be-installed one
 23.1744 +     ## test "$hardcode_shlibpath_var" != no &&
 23.1745 +     test "$hardcode_minus_L" != no; then
 23.1746 +    # Linking always hardcodes the temporary library directory.
 23.1747 +    hardcode_action=relink
 23.1748 +  else
 23.1749 +    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 23.1750 +    hardcode_action=immediate
 23.1751 +  fi
 23.1752 +else
 23.1753 +  # We cannot hardcode anything, or else we can only hardcode existing
 23.1754 +  # directories.
 23.1755 +  hardcode_action=unsupported
 23.1756 +fi
 23.1757 +echo "$ac_t$hardcode_action" 1>&6
 23.1758 +
 23.1759 +
 23.1760 +reload_flag=
 23.1761 +reload_cmds='$LD$reload_flag -o $output$reload_objs'
 23.1762 +echo $ac_n "checking for $LD option to reload object files... $ac_c" 1>&6
 23.1763 +# PORTME Some linkers may need a different reload flag.
 23.1764 +reload_flag='-r'
 23.1765 +echo "$ac_t$reload_flag" 1>&6
 23.1766 +test -n "$reload_flag" && reload_flag=" $reload_flag"
 23.1767 +
 23.1768 +# PORTME Fill in your ld.so characteristics
 23.1769 +library_names_spec=
 23.1770 +libname_spec='lib$name'
 23.1771 +soname_spec=
 23.1772 +postinstall_cmds=
 23.1773 +postuninstall_cmds=
 23.1774 +finish_cmds=
 23.1775 +finish_eval=
 23.1776 +shlibpath_var=
 23.1777 +shlibpath_overrides_runpath=unknown
 23.1778 +version_type=none
 23.1779 +dynamic_linker="$host_os ld.so"
 23.1780 +sys_lib_dlsearch_path_spec="/lib /usr/lib"
 23.1781 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 23.1782 +file_magic_cmd=
 23.1783 +file_magic_test_file=
 23.1784 +deplibs_check_method='unknown'
 23.1785 +# Need to set the preceding variable on all platforms that support
 23.1786 +# interlibrary dependencies.
 23.1787 +# 'none' -- dependencies not supported.
 23.1788 +# `unknown' -- same as none, but documents that we really don't know.
 23.1789 +# 'pass_all' -- all dependencies passed with no checks.
 23.1790 +# 'test_compile' -- check by making test program.
 23.1791 +# 'file_magic [regex]' -- check by looking for files in library path
 23.1792 +# which responds to the $file_magic_cmd with a given egrep regex.
 23.1793 +# If you have `file' or equivalent on your system and you're not sure
 23.1794 +# whether `pass_all' will *always* work, you probably want this one.
 23.1795 +echo $ac_n "checking dynamic linker characteristics... $ac_c" 1>&6
 23.1796 +case "$host_os" in
 23.1797 +aix3*)
 23.1798 +  version_type=linux
 23.1799 +  library_names_spec='${libname}${release}.so$versuffix $libname.a'
 23.1800 +  shlibpath_var=LIBPATH
 23.1801 +
 23.1802 +  # AIX has no versioning support, so we append a major version to the name.
 23.1803 +  soname_spec='${libname}${release}.so$major'
 23.1804 +  ;;
 23.1805 +
 23.1806 +aix4*)
 23.1807 +  version_type=linux
 23.1808 +  # AIX has no versioning support, so currently we can not hardcode correct
 23.1809 +  # soname into executable. Probably we can add versioning support to
 23.1810 +  # collect2, so additional links can be useful in future.
 23.1811 +  # We preserve .a as extension for shared libraries though AIX4.2
 23.1812 +  # and later linker supports .so
 23.1813 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.a'
 23.1814 +  shlibpath_var=LIBPATH
 23.1815 +  deplibs_check_method=pass_all
 23.1816 +  ;;
 23.1817 +
 23.1818 +amigaos*)
 23.1819 +  library_names_spec='$libname.ixlibrary $libname.a'
 23.1820 +  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 23.1821 +  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
 23.1822 +  ;;
 23.1823 +
 23.1824 +beos*)
 23.1825 +  library_names_spec='${libname}.so'
 23.1826 +  dynamic_linker="$host_os ld.so"
 23.1827 +  shlibpath_var=LIBRARY_PATH
 23.1828 +  deplibs_check_method=pass_all
 23.1829 +  lt_cv_dlopen="load_add_on"
 23.1830 +  lt_cv_dlopen_libs=
 23.1831 +  lt_cv_dlopen_self=yes
 23.1832 +  ;;
 23.1833 +
 23.1834 +bsdi4*)
 23.1835 +  version_type=linux
 23.1836 +  need_version=no
 23.1837 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 23.1838 +  soname_spec='${libname}${release}.so$major'
 23.1839 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 23.1840 +  shlibpath_var=LD_LIBRARY_PATH
 23.1841 +  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 23.1842 +  file_magic_cmd=/usr/bin/file
 23.1843 +  file_magic_test_file=/shlib/libc.so
 23.1844 +  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 23.1845 +  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 23.1846 +  export_dynamic_flag_spec=-rdynamic
 23.1847 +  # the default ld.so.conf also contains /usr/contrib/lib and
 23.1848 +  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 23.1849 +  # libtool to hard-code these into programs
 23.1850 +  ;;
 23.1851 +
 23.1852 +cygwin* | mingw*)
 23.1853 +  version_type=windows
 23.1854 +  need_version=no
 23.1855 +  need_lib_prefix=no
 23.1856 +  if test "$with_gcc" = yes; then
 23.1857 +    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.a'
 23.1858 +  else
 23.1859 +    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 23.1860 +  fi
 23.1861 +  dynamic_linker='Win32 ld.exe'
 23.1862 +  deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 23.1863 +  file_magic_cmd='${OBJDUMP} -f'
 23.1864 +  # FIXME: first we should search . and the directory the executable is in
 23.1865 +  shlibpath_var=PATH
 23.1866 +  lt_cv_dlopen="LoadLibrary"
 23.1867 +  lt_cv_dlopen_libs=
 23.1868 +  ;;
 23.1869 +
 23.1870 +freebsd1*)
 23.1871 +  dynamic_linker=no
 23.1872 +  ;;
 23.1873 +  
 23.1874 +freebsd*)
 23.1875 +  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 23.1876 +  version_type=freebsd-$objformat
 23.1877 +  case "$version_type" in
 23.1878 +    freebsd-elf*)
 23.1879 +      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 23.1880 +      file_magic_cmd=/usr/bin/file
 23.1881 +      file_magic_test_file=`echo /usr/lib/libc.so*`
 23.1882 +      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 23.1883 +      need_version=no
 23.1884 +      need_lib_prefix=no
 23.1885 +      ;;
 23.1886 +    freebsd-*)
 23.1887 +      deplibs_check_method=unknown
 23.1888 +      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 23.1889 +      need_version=yes
 23.1890 +      ;;
 23.1891 +  esac
 23.1892 +  shlibpath_var=LD_LIBRARY_PATH
 23.1893 +  case "$host_os" in
 23.1894 +  freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
 23.1895 +    shlibpath_overrides_runpath=yes
 23.1896 +    ;;
 23.1897 +  *) # from 3.2 on
 23.1898 +    shlibpath_overrides_runpath=no
 23.1899 +    ;;
 23.1900 +  esac
 23.1901 +  ;;
 23.1902 +
 23.1903 +gnu*)
 23.1904 +  version_type=linux
 23.1905 +  need_lib_prefix=no
 23.1906 +  need_version=no
 23.1907 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 23.1908 +  soname_spec='${libname}${release}.so$major'
 23.1909 +  shlibpath_var=LD_LIBRARY_PATH
 23.1910 +  ;;
 23.1911 +
 23.1912 +hpux9* | hpux10* | hpux11*)
 23.1913 +  # Give a soname corresponding to the major version so that dld.sl refuses to
 23.1914 +  # link against other versions.
 23.1915 +  dynamic_linker="$host_os dld.sl"
 23.1916 +  version_type=sunos
 23.1917 +  need_lib_prefix=no
 23.1918 +  need_version=no
 23.1919 +  shlibpath_var=SHLIB_PATH
 23.1920 +  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 23.1921 +  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 23.1922 +  soname_spec='${libname}${release}.sl$major'
 23.1923 +  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 23.1924 +  postinstall_cmds='chmod 555 $lib'
 23.1925 +  ;;
 23.1926 +
 23.1927 +irix5* | irix6*)
 23.1928 +  version_type=irix
 23.1929 +  need_lib_prefix=no
 23.1930 +  need_version=no
 23.1931 +  soname_spec='${libname}${release}.so.$major'
 23.1932 +  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
 23.1933 +  case "$host_os" in
 23.1934 +  irix5*)
 23.1935 +    libsuff= shlibsuff=
 23.1936 +    # this will be overridden with pass_all, but let us keep it just in case
 23.1937 +    deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 23.1938 +    ;;
 23.1939 +  *)
 23.1940 +    case "$LD" in # libtool.m4 will add one of these switches to LD
 23.1941 +    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 23.1942 +    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 23.1943 +    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 23.1944 +    *) libsuff= shlibsuff= libmagic=never-match;;
 23.1945 +    esac
 23.1946 +    ;;
 23.1947 +  esac
 23.1948 +  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 23.1949 +  shlibpath_overrides_runpath=no
 23.1950 +  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 23.1951 +  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 23.1952 +  file_magic_cmd=/usr/bin/file
 23.1953 +  file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 23.1954 +  deplibs_check_method='pass_all'
 23.1955 +  ;;
 23.1956 +
 23.1957 +# No shared lib support for Linux oldld, aout, or coff.
 23.1958 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 23.1959 +  dynamic_linker=no
 23.1960 +  ;;
 23.1961 +
 23.1962 +# This must be Linux ELF.
 23.1963 +linux-gnu*)
 23.1964 +  version_type=linux
 23.1965 +  need_lib_prefix=no
 23.1966 +  need_version=no
 23.1967 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 23.1968 +  soname_spec='${libname}${release}.so$major'
 23.1969 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 23.1970 +  shlibpath_var=LD_LIBRARY_PATH
 23.1971 +  shlibpath_overrides_runpath=no
 23.1972 +  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 23.1973 +  file_magic_cmd=/usr/bin/file
 23.1974 +  file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 23.1975 +
 23.1976 +  if test -f /lib/ld.so.1; then
 23.1977 +    dynamic_linker='GNU ld.so'
 23.1978 +  else
 23.1979 +    # Only the GNU ld.so supports shared libraries on MkLinux.
 23.1980 +    case "$host_cpu" in
 23.1981 +    powerpc*) dynamic_linker=no ;;
 23.1982 +    *) dynamic_linker='Linux ld.so' ;;
 23.1983 +    esac
 23.1984 +  fi
 23.1985 +  ;;
 23.1986 +
 23.1987 +netbsd*)
 23.1988 +  version_type=sunos
 23.1989 +  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 23.1990 +    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 23.1991 +    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 23.1992 +    dynamic_linker='NetBSD (a.out) ld.so'
 23.1993 +  else
 23.1994 +    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 23.1995 +    soname_spec='${libname}${release}.so$major'
 23.1996 +    dynamic_linker='NetBSD ld.elf_so'
 23.1997 +  fi
 23.1998 +  shlibpath_var=LD_LIBRARY_PATH
 23.1999 +  ;;
 23.2000 +
 23.2001 +openbsd*)
 23.2002 +  version_type=sunos
 23.2003 +  if test "$with_gnu_ld" = yes; then
 23.2004 +    need_lib_prefix=no
 23.2005 +    need_version=no
 23.2006 +  fi
 23.2007 +  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 23.2008 +  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 23.2009 +  shlibpath_var=LD_LIBRARY_PATH
 23.2010 +  ;;
 23.2011 +
 23.2012 +os2*)
 23.2013 +  libname_spec='$name'
 23.2014 +  need_lib_prefix=no
 23.2015 +  library_names_spec='$libname.dll $libname.a'
 23.2016 +  dynamic_linker='OS/2 ld.exe'
 23.2017 +  shlibpath_var=LIBPATH
 23.2018 +  ;;
 23.2019 +
 23.2020 +osf3* | osf4* | osf5*)
 23.2021 +  version_type=osf
 23.2022 +  need_version=no
 23.2023 +  soname_spec='${libname}${release}.so'
 23.2024 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 23.2025 +  shlibpath_var=LD_LIBRARY_PATH
 23.2026 +  # this will be overridden with pass_all, but let us keep it just in case
 23.2027 +  deplibs_check_method='file_magic COFF format alpha shared library'
 23.2028 +  file_magic_cmd=/usr/bin/file
 23.2029 +  file_magic_test_file=/shlib/libc.so
 23.2030 +  deplibs_check_method='pass_all'
 23.2031 +  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 23.2032 +  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 23.2033 +  ;;
 23.2034 +
 23.2035 +sco3.2v5*)
 23.2036 +  version_type=osf
 23.2037 +  soname_spec='${libname}${release}.so$major'
 23.2038 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 23.2039 +  shlibpath_var=LD_LIBRARY_PATH
 23.2040 +  ;;
 23.2041 +
 23.2042 +solaris*)
 23.2043 +  version_type=linux
 23.2044 +  need_lib_prefix=no
 23.2045 +  need_version=no
 23.2046 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 23.2047 +  soname_spec='${libname}${release}.so$major'
 23.2048 +  shlibpath_var=LD_LIBRARY_PATH
 23.2049 +  shlibpath_overrides_runpath=yes
 23.2050 +  # ldd complains unless libraries are executable
 23.2051 +  postinstall_cmds='chmod +x $lib'
 23.2052 +  deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib"
 23.2053 +  file_magic_cmd=/usr/bin/file
 23.2054 +  file_magic_test_file=/lib/libc.so
 23.2055 +  ;;
 23.2056 +
 23.2057 +sunos4*)
 23.2058 +  version_type=sunos
 23.2059 +  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 23.2060 +  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 23.2061 +  shlibpath_var=LD_LIBRARY_PATH
 23.2062 +  shlibpath_overrides_runpath=yes
 23.2063 +  if test "$with_gnu_ld" = yes; then
 23.2064 +    need_lib_prefix=no
 23.2065 +  fi
 23.2066 +  need_version=yes
 23.2067 +  ;;
 23.2068 +
 23.2069 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 23.2070 +  version_type=linux
 23.2071 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 23.2072 +  soname_spec='${libname}${release}.so$major'
 23.2073 +  shlibpath_var=LD_LIBRARY_PATH
 23.2074 +  case "$host_vendor" in
 23.2075 +    ncr)
 23.2076 +      deplibs_check_method='pass_all'
 23.2077 +      ;;
 23.2078 +    motorola)
 23.2079 +      need_lib_prefix=no
 23.2080 +      need_version=no
 23.2081 +      shlibpath_overrides_runpath=no
 23.2082 +      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 23.2083 +      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 23.2084 +      file_magic_cmd=/usr/bin/file
 23.2085 +      file_magic_test_file=`echo /usr/lib/libc.so*`
 23.2086 +      ;;
 23.2087 +  esac
 23.2088 +  ;;
 23.2089 +
 23.2090 +uts4*)
 23.2091 +  version_type=linux
 23.2092 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 23.2093 +  soname_spec='${libname}${release}.so$major'
 23.2094 +  shlibpath_var=LD_LIBRARY_PATH
 23.2095 +  ;;
 23.2096 +
 23.2097 +dgux*)
 23.2098 +  version_type=linux
 23.2099 +  need_lib_prefix=no
 23.2100 +  need_version=no
 23.2101 +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 23.2102 +  soname_spec='${libname}${release}.so$major'
 23.2103 +  shlibpath_var=LD_LIBRARY_PATH
 23.2104 +  ;;
 23.2105 +
 23.2106 +sysv4*MP*)
 23.2107 +  if test -d /usr/nec ;then
 23.2108 +    version_type=linux
 23.2109 +    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 23.2110 +    soname_spec='$libname.so.$major'
 23.2111 +    shlibpath_var=LD_LIBRARY_PATH
 23.2112 +  fi
 23.2113 +  ;;
 23.2114 +
 23.2115 +*)
 23.2116 +  dynamic_linker=no
 23.2117 +  ;;
 23.2118 +esac
 23.2119 +echo "$ac_t$dynamic_linker" 1>&6
 23.2120 +test "$dynamic_linker" = no && can_build_shared=no
 23.2121 +
 23.2122 +# Report the final consequences.
 23.2123 +echo "checking if libtool supports shared libraries... $can_build_shared" 1>&6
 23.2124 +
 23.2125 +# Only try to build win32 dlls if AC_LIBTOOL_WIN32_DLL was used in
 23.2126 +# configure.in, otherwise build static only libraries.
 23.2127 +case "$host_os" in
 23.2128 +cygwin* | mingw* | os2*)
 23.2129 +  if test x$can_build_shared = xyes; then
 23.2130 +    test x$enable_win32_dll = xno && can_build_shared=no
 23.2131 +    echo "checking if package supports dlls... $can_build_shared" 1>&6
 23.2132 +  fi
 23.2133 +;;
 23.2134 +esac
 23.2135 +
 23.2136 +if test -n "$file_magic_test_file" && test -n "$file_magic_cmd"; then
 23.2137 +  case "$deplibs_check_method" in
 23.2138 +  "file_magic "*)
 23.2139 +    file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 23.2140 +    if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 23.2141 +       egrep "$file_magic_regex" > /dev/null; then
 23.2142 +      :
 23.2143 +    else
 23.2144 +      cat <<EOF 1>&2
 23.2145 +
 23.2146 +*** Warning: the command libtool uses to detect shared libraries,
 23.2147 +*** $file_magic_cmd, produces output that libtool cannot recognize.
 23.2148 +*** The result is that libtool may fail to recognize shared libraries
 23.2149 +*** as such.  This will affect the creation of libtool libraries that
 23.2150 +*** depend on shared libraries, but programs linked with such libtool
 23.2151 +*** libraries will work regardless of this problem.  Nevertheless, you
 23.2152 +*** may want to report the problem to your system manager and/or to
 23.2153 +*** bug-libtool@gnu.org
 23.2154 +
 23.2155 +EOF
 23.2156 +    fi ;;
 23.2157 +  esac
 23.2158 +fi
 23.2159 +
 23.2160 +echo $ac_n "checking whether to build shared libraries... $ac_c" 1>&6
 23.2161 +test "$can_build_shared" = "no" && enable_shared=no
 23.2162 +
 23.2163 +# On AIX, shared libraries and static libraries use the same namespace, and
 23.2164 +# are all built from PIC.
 23.2165 +case "$host_os" in
 23.2166 +aix3*)
 23.2167 +  test "$enable_shared" = yes && enable_static=no
 23.2168 +  if test -n "$RANLIB"; then
 23.2169 +    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 23.2170 +    postinstall_cmds='$RANLIB $lib'
 23.2171 +  fi
 23.2172 +  ;;
 23.2173 +
 23.2174 +aix4*)
 23.2175 +  test "$enable_shared" = yes && enable_static=no
 23.2176 +  ;;
 23.2177 +esac
 23.2178 +
 23.2179 +echo "$ac_t$enable_shared" 1>&6
 23.2180 +
 23.2181 +# Make sure either enable_shared or enable_static is yes.
 23.2182 +test "$enable_shared" = yes || enable_static=yes
 23.2183 +
 23.2184 +echo "checking whether to build static libraries... $enable_static" 1>&6
 23.2185 +
 23.2186 +if test "$hardcode_action" = relink; then
 23.2187 +  # Fast installation is not supported
 23.2188 +  enable_fast_install=no
 23.2189 +elif test "$shlibpath_overrides_runpath" = yes ||
 23.2190 +     test "$enable_shared" = no; then
 23.2191 +  # Fast installation is not necessary
 23.2192 +  enable_fast_install=needless
 23.2193 +fi
 23.2194 +
 23.2195 +echo $ac_n "checking for objdir... $ac_c" 1>&6
 23.2196 +rm -f .libs 2>/dev/null
 23.2197 +mkdir .libs 2>/dev/null
 23.2198 +if test -d .libs; then
 23.2199 +  objdir=.libs
 23.2200 +else
 23.2201 +  # MS-DOS does not allow filenames that begin with a dot.
 23.2202 +  objdir=_libs
 23.2203 +fi
 23.2204 +rmdir .libs 2>/dev/null
 23.2205 +echo "$ac_t$objdir" 1>&6
 23.2206 +
 23.2207 +if test "x$enable_dlopen" != xyes; then
 23.2208 +  enable_dlopen=unknown
 23.2209 +  enable_dlopen_self=unknown
 23.2210 +  enable_dlopen_self_static=unknown
 23.2211 +else
 23.2212 +if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
 23.2213 +  lt_cv_dlopen=no lt_cv_dlopen_libs=
 23.2214 +echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 23.2215 +echo "$progname:2212: checking for dlopen in -ldl" >&5
 23.2216 +ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 23.2217 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 23.2218 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2219 +else
 23.2220 +  ac_save_LIBS="$LIBS"
 23.2221 +LIBS="-ldl  $LIBS"
 23.2222 +cat > conftest.$ac_ext <<EOF
 23.2223 +#line 2220 "ltconfig"
 23.2224 +/* Override any gcc2 internal prototype to avoid an error.  */
 23.2225 +/* We use char because int might match the return type of a gcc2
 23.2226 +    builtin and then its argument prototype would still apply.  */
 23.2227 +#ifdef __cplusplus
 23.2228 +extern "C"
 23.2229 +#endif
 23.2230 +char dlopen();
 23.2231 +
 23.2232 +int main() {
 23.2233 +dlopen()
 23.2234 +; return 0; }
 23.2235 +EOF
 23.2236 +if { (eval echo $progname:2233: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 23.2237 +  rm -rf conftest*
 23.2238 +  eval "ac_cv_lib_$ac_lib_var=yes"
 23.2239 +else
 23.2240 +  echo "$progname: failed program was:" >&5
 23.2241 +  cat conftest.$ac_ext >&5
 23.2242 +  rm -rf conftest*
 23.2243 +  eval "ac_cv_lib_$ac_lib_var=no"
 23.2244 +fi
 23.2245 +rm -f conftest*
 23.2246 +LIBS="$ac_save_LIBS"
 23.2247 +
 23.2248 +fi
 23.2249 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 23.2250 +  echo "$ac_t""yes" 1>&6
 23.2251 +  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 23.2252 +else
 23.2253 +  echo "$ac_t""no" 1>&6
 23.2254 +echo $ac_n "checking for dlopen""... $ac_c" 1>&6
 23.2255 +echo "$progname:2252: checking for dlopen" >&5
 23.2256 +if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
 23.2257 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2258 +else
 23.2259 +  cat > conftest.$ac_ext <<EOF
 23.2260 +#line 2257 "ltconfig"
 23.2261 +/* System header to define __stub macros and hopefully few prototypes,
 23.2262 +    which can conflict with char dlopen(); below.  */
 23.2263 +#include <assert.h>
 23.2264 +/* Override any gcc2 internal prototype to avoid an error.  */
 23.2265 +/* We use char because int might match the return type of a gcc2
 23.2266 +    builtin and then its argument prototype would still apply.  */
 23.2267 +#ifdef __cplusplus
 23.2268 +extern "C"
 23.2269 +#endif
 23.2270 +char dlopen();
 23.2271 +
 23.2272 +int main() {
 23.2273 +
 23.2274 +/* The GNU C library defines this for functions which it implements
 23.2275 +    to always fail with ENOSYS.  Some functions are actually named
 23.2276 +    something starting with __ and the normal name is an alias.  */
 23.2277 +#if defined (__stub_dlopen) || defined (__stub___dlopen)
 23.2278 +choke me
 23.2279 +#else
 23.2280 +dlopen();
 23.2281 +#endif
 23.2282 +
 23.2283 +; return 0; }
 23.2284 +EOF
 23.2285 +if { (eval echo $progname:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 23.2286 +  rm -rf conftest*
 23.2287 +  eval "ac_cv_func_dlopen=yes"
 23.2288 +else
 23.2289 +  echo "$progname: failed program was:" >&5
 23.2290 +  cat conftest.$ac_ext >&5
 23.2291 +  rm -rf conftest*
 23.2292 +  eval "ac_cv_func_dlopen=no"
 23.2293 +fi
 23.2294 +rm -f conftest*
 23.2295 +fi
 23.2296 +if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
 23.2297 +  echo "$ac_t""yes" 1>&6
 23.2298 +  lt_cv_dlopen="dlopen"
 23.2299 +else
 23.2300 +  echo "$ac_t""no" 1>&6
 23.2301 +echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
 23.2302 +echo "$progname:2299: checking for dld_link in -ldld" >&5
 23.2303 +ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
 23.2304 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 23.2305 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2306 +else
 23.2307 +  ac_save_LIBS="$LIBS"
 23.2308 +LIBS="-ldld  $LIBS"
 23.2309 +cat > conftest.$ac_ext <<EOF
 23.2310 +#line 2307 "ltconfig"
 23.2311 +/* Override any gcc2 internal prototype to avoid an error.  */
 23.2312 +/* We use char because int might match the return type of a gcc2
 23.2313 +    builtin and then its argument prototype would still apply.  */
 23.2314 +#ifdef __cplusplus
 23.2315 +extern "C"
 23.2316 +#endif
 23.2317 +char dld_link();
 23.2318 +
 23.2319 +int main() {
 23.2320 +dld_link()
 23.2321 +; return 0; }
 23.2322 +EOF
 23.2323 +if { (eval echo $progname:2320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 23.2324 +  rm -rf conftest*
 23.2325 +  eval "ac_cv_lib_$ac_lib_var=yes"
 23.2326 +else
 23.2327 +  echo "$progname: failed program was:" >&5
 23.2328 +  cat conftest.$ac_ext >&5
 23.2329 +  rm -rf conftest*
 23.2330 +  eval "ac_cv_lib_$ac_lib_var=no"
 23.2331 +fi
 23.2332 +rm -f conftest*
 23.2333 +LIBS="$ac_save_LIBS"
 23.2334 +
 23.2335 +fi
 23.2336 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 23.2337 +  echo "$ac_t""yes" 1>&6
 23.2338 +  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
 23.2339 +else
 23.2340 +  echo "$ac_t""no" 1>&6
 23.2341 +echo $ac_n "checking for shl_load""... $ac_c" 1>&6
 23.2342 +echo "$progname:2339: checking for shl_load" >&5
 23.2343 +if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
 23.2344 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2345 +else
 23.2346 +  cat > conftest.$ac_ext <<EOF
 23.2347 +#line 2344 "ltconfig"
 23.2348 +/* System header to define __stub macros and hopefully few prototypes,
 23.2349 +    which can conflict with char shl_load(); below.  */
 23.2350 +#include <assert.h>
 23.2351 +/* Override any gcc2 internal prototype to avoid an error.  */
 23.2352 +/* We use char because int might match the return type of a gcc2
 23.2353 +    builtin and then its argument prototype would still apply.  */
 23.2354 +#ifdef __cplusplus
 23.2355 +extern "C"
 23.2356 +#endif
 23.2357 +char shl_load();
 23.2358 +
 23.2359 +int main() {
 23.2360 +
 23.2361 +/* The GNU C library defines this for functions which it implements
 23.2362 +    to always fail with ENOSYS.  Some functions are actually named
 23.2363 +    something starting with __ and the normal name is an alias.  */
 23.2364 +#if defined (__stub_shl_load) || defined (__stub___shl_load)
 23.2365 +choke me
 23.2366 +#else
 23.2367 +shl_load();
 23.2368 +#endif
 23.2369 +
 23.2370 +; return 0; }
 23.2371 +EOF
 23.2372 +if { (eval echo $progname:2369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 23.2373 +  rm -rf conftest*
 23.2374 +  eval "ac_cv_func_shl_load=yes"
 23.2375 +else
 23.2376 +  echo "$progname: failed program was:" >&5
 23.2377 +  cat conftest.$ac_ext >&5
 23.2378 +  rm -rf conftest*
 23.2379 +  eval "ac_cv_func_shl_load=no"
 23.2380 +fi
 23.2381 +rm -f conftest*
 23.2382 +fi
 23.2383 +
 23.2384 +if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
 23.2385 +  echo "$ac_t""yes" 1>&6
 23.2386 +  lt_cv_dlopen="shl_load"
 23.2387 +else
 23.2388 +  echo "$ac_t""no" 1>&6
 23.2389 +echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
 23.2390 +echo "$progname:2387: checking for shl_load in -ldld" >&5
 23.2391 +ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
 23.2392 +if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 23.2393 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2394 +else
 23.2395 +  ac_save_LIBS="$LIBS"
 23.2396 +LIBS="-ldld  $LIBS"
 23.2397 +cat > conftest.$ac_ext <<EOF
 23.2398 +#line 2395 "ltconfig"
 23.2399 +#include "confdefs.h"
 23.2400 +/* Override any gcc2 internal prototype to avoid an error.  */
 23.2401 +/* We use char because int might match the return type of a gcc2
 23.2402 +    builtin and then its argument prototype would still apply.  */
 23.2403 +#ifdef __cplusplus
 23.2404 +extern "C"
 23.2405 +#endif
 23.2406 +char shl_load();
 23.2407 +
 23.2408 +int main() {
 23.2409 +shl_load()
 23.2410 +; return 0; }
 23.2411 +EOF
 23.2412 +if { (eval echo $progname:2409: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 23.2413 +  rm -rf conftest*
 23.2414 +  eval "ac_cv_lib_$ac_lib_var=yes"
 23.2415 +else
 23.2416 +  echo "$progname: failed program was:" >&5
 23.2417 +  cat conftest.$ac_ext >&5
 23.2418 +  rm -rf conftest*
 23.2419 +  eval "ac_cv_lib_$ac_lib_var=no"
 23.2420 +fi
 23.2421 +rm -f conftest*
 23.2422 +LIBS="$ac_save_LIBS"
 23.2423 +
 23.2424 +fi
 23.2425 +if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 23.2426 +  echo "$ac_t""yes" 1>&6
 23.2427 +  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
 23.2428 +else
 23.2429 +  echo "$ac_t""no" 1>&6
 23.2430 +fi
 23.2431 +
 23.2432 +
 23.2433 +fi
 23.2434 +
 23.2435 +    
 23.2436 +fi
 23.2437 +
 23.2438 +  
 23.2439 +fi
 23.2440 +
 23.2441 +
 23.2442 +fi
 23.2443 +
 23.2444 +fi
 23.2445 +
 23.2446 +  if test "x$lt_cv_dlopen" != xno; then
 23.2447 +    enable_dlopen=yes
 23.2448 +  fi
 23.2449 +
 23.2450 +  case "$lt_cv_dlopen" in
 23.2451 +  dlopen)
 23.2452 +for ac_hdr in dlfcn.h; do
 23.2453 +ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 23.2454 +echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 23.2455 +echo "$progname:2452: checking for $ac_hdr" >&5
 23.2456 +if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 23.2457 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2458 +else
 23.2459 +  cat > conftest.$ac_ext <<EOF
 23.2460 +#line 2457 "ltconfig"
 23.2461 +#include <$ac_hdr>
 23.2462 +int fnord = 0;
 23.2463 +EOF
 23.2464 +ac_try="$ac_compile >/dev/null 2>conftest.out"
 23.2465 +{ (eval echo $progname:2462: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 23.2466 +ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 23.2467 +if test -z "$ac_err"; then
 23.2468 +  rm -rf conftest*
 23.2469 +  eval "ac_cv_header_$ac_safe=yes"
 23.2470 +else
 23.2471 +  echo "$ac_err" >&5
 23.2472 +  echo "$progname: failed program was:" >&5
 23.2473 +  cat conftest.$ac_ext >&5
 23.2474 +  rm -rf conftest*
 23.2475 +  eval "ac_cv_header_$ac_safe=no"
 23.2476 +fi
 23.2477 +rm -f conftest*
 23.2478 +fi
 23.2479 +if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 23.2480 +  echo "$ac_t""yes" 1>&6
 23.2481 +else
 23.2482 +  echo "$ac_t""no" 1>&6
 23.2483 +fi
 23.2484 +done
 23.2485 +
 23.2486 +    if test "x$ac_cv_header_dlfcn_h" = xyes; then
 23.2487 +      CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 23.2488 +    fi
 23.2489 +    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 23.2490 +    LIBS="$lt_cv_dlopen_libs $LIBS"
 23.2491 +
 23.2492 +  echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
 23.2493 +echo "$progname:2490: checking whether a program can dlopen itself" >&5
 23.2494 +if test "${lt_cv_dlopen_self+set}" = set; then
 23.2495 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2496 +else
 23.2497 +  if test "$cross_compiling" = yes; then
 23.2498 +    lt_cv_dlopen_self=cross
 23.2499 +  else
 23.2500 +    cat > conftest.c <<EOF
 23.2501 +#line 2498 "ltconfig"
 23.2502 +
 23.2503 +#if HAVE_DLFCN_H
 23.2504 +#include <dlfcn.h>
 23.2505 +#endif
 23.2506 +
 23.2507 +#include <stdio.h>
 23.2508 +
 23.2509 +#ifdef RTLD_GLOBAL
 23.2510 +# define LTDL_GLOBAL	RTLD_GLOBAL
 23.2511 +#else
 23.2512 +# ifdef DL_GLOBAL
 23.2513 +#  define LTDL_GLOBAL	DL_GLOBAL
 23.2514 +# else
 23.2515 +#  define LTDL_GLOBAL	0
 23.2516 +# endif
 23.2517 +#endif
 23.2518 +
 23.2519 +/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
 23.2520 +   find out it does not work in some platform. */
 23.2521 +#ifndef LTDL_LAZY_OR_NOW
 23.2522 +# ifdef RTLD_LAZY
 23.2523 +#  define LTDL_LAZY_OR_NOW	RTLD_LAZY
 23.2524 +# else
 23.2525 +#  ifdef DL_LAZY
 23.2526 +#   define LTDL_LAZY_OR_NOW	DL_LAZY
 23.2527 +#  else
 23.2528 +#   ifdef RTLD_NOW
 23.2529 +#    define LTDL_LAZY_OR_NOW	RTLD_NOW
 23.2530 +#   else
 23.2531 +#    ifdef DL_NOW
 23.2532 +#     define LTDL_LAZY_OR_NOW	DL_NOW
 23.2533 +#    else
 23.2534 +#     define LTDL_LAZY_OR_NOW	0
 23.2535 +#    endif
 23.2536 +#   endif
 23.2537 +#  endif
 23.2538 +# endif
 23.2539 +#endif
 23.2540 +
 23.2541 +fnord() { int i=42;}
 23.2542 +main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
 23.2543 +    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
 23.2544 +	       if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
 23.2545 +
 23.2546 +EOF
 23.2547 +if { (eval echo $progname:2544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 23.2548 +then
 23.2549 +  lt_cv_dlopen_self=yes
 23.2550 +else
 23.2551 +  echo "$progname: failed program was:" >&5
 23.2552 +  cat conftest.$ac_ext >&5
 23.2553 +  rm -fr conftest*
 23.2554 +  lt_cv_dlopen_self=no
 23.2555 +fi
 23.2556 +rm -fr conftest*
 23.2557 +fi
 23.2558 +
 23.2559 +fi
 23.2560 +
 23.2561 +echo "$ac_t""$lt_cv_dlopen_self" 1>&6
 23.2562 +
 23.2563 +  if test "$lt_cv_dlopen_self" = yes; then
 23.2564 +    LDFLAGS="$LDFLAGS $link_static_flag"
 23.2565 +  echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
 23.2566 +echo "$progname:2563: checking whether a statically linked program can dlopen itself" >&5
 23.2567 +if test "${lt_cv_dlopen_self_static+set}" = set; then
 23.2568 +  echo $ac_n "(cached) $ac_c" 1>&6
 23.2569 +else
 23.2570 +  if test "$cross_compiling" = yes; then
 23.2571 +    lt_cv_dlopen_self_static=cross
 23.2572 +  else
 23.2573 +    cat > conftest.c <<EOF
 23.2574 +#line 2571 "ltconfig"
 23.2575 +
 23.2576 +#if HAVE_DLFCN_H
 23.2577 +#include <dlfcn.h>
 23.2578 +#endif
 23.2579 +
 23.2580 +#include <stdio.h>
 23.2581 +
 23.2582 +#ifdef RTLD_GLOBAL
 23.2583 +# define LTDL_GLOBAL	RTLD_GLOBAL
 23.2584 +#else
 23.2585 +# ifdef DL_GLOBAL
 23.2586 +#  define LTDL_GLOBAL	DL_GLOBAL
 23.2587 +# else
 23.2588 +#  define LTDL_GLOBAL	0
 23.2589 +# endif
 23.2590 +#endif
 23.2591 +
 23.2592 +/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
 23.2593 +   find out it does not work in some platform. */
 23.2594 +#ifndef LTDL_LAZY_OR_NOW
 23.2595 +# ifdef RTLD_LAZY
 23.2596 +#  define LTDL_LAZY_OR_NOW	RTLD_LAZY
 23.2597 +# else
 23.2598 +#  ifdef DL_LAZY
 23.2599 +#   define LTDL_LAZY_OR_NOW	DL_LAZY
 23.2600 +#  else
 23.2601 +#   ifdef RTLD_NOW
 23.2602 +#    define LTDL_LAZY_OR_NOW	RTLD_NOW
 23.2603 +#   else
 23.2604 +#    ifdef DL_NOW
 23.2605 +#     define LTDL_LAZY_OR_NOW	DL_NOW
 23.2606 +#    else
 23.2607 +#     define LTDL_LAZY_OR_NOW	0
 23.2608 +#    endif
 23.2609 +#   endif
 23.2610 +#  endif
 23.2611 +# endif
 23.2612 +#endif
 23.2613 +
 23.2614 +fnord() { int i=42;}
 23.2615 +main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
 23.2616 +    if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
 23.2617 +    if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
 23.2618 +
 23.2619 +EOF
 23.2620 +if { (eval echo $progname:2617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 23.2621 +then
 23.2622 +  lt_cv_dlopen_self_static=yes
 23.2623 +else
 23.2624 +  echo "$progname: failed program was:" >&5
 23.2625 +  cat conftest.$ac_ext >&5
 23.2626 +  rm -fr conftest*
 23.2627 +  lt_cv_dlopen_self_static=no
 23.2628 +fi
 23.2629 +rm -fr conftest*
 23.2630 +fi
 23.2631 +
 23.2632 +fi
 23.2633 +
 23.2634 +echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
 23.2635 +fi
 23.2636 +    ;;
 23.2637 +  esac
 23.2638 +
 23.2639 +  case "$lt_cv_dlopen_self" in
 23.2640 +  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 23.2641 +  *) enable_dlopen_self=unknown ;;
 23.2642 +  esac
 23.2643 +
 23.2644 +  case "$lt_cv_dlopen_self_static" in
 23.2645 +  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 23.2646 +  *) enable_dlopen_self_static=unknown ;;
 23.2647 +  esac
 23.2648 +fi
 23.2649 +
 23.2650 +# Copy echo and quote the copy, instead of the original, because it is
 23.2651 +# used later.
 23.2652 +ltecho="$echo"
 23.2653 +if test "X$ltecho" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 23.2654 +   ltecho="$CONFIG_SHELL \$0 --fallback-echo"
 23.2655 +fi
 23.2656 +LTSHELL="$SHELL"
 23.2657 +
 23.2658 +LTCONFIG_VERSION="$VERSION"
 23.2659 +
 23.2660 +# Only quote variables if we're using ltmain.sh.
 23.2661 +case "$ltmain" in
 23.2662 +*.sh)
 23.2663 +  # Now quote all the things that may contain metacharacters.
 23.2664 +  for var in ltecho old_CC old_CFLAGS old_CPPFLAGS \
 23.2665 +    old_LD old_LDFLAGS old_LIBS \
 23.2666 +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS \
 23.2667 +    AR CC LD LN_S NM LTSHELL LTCONFIG_VERSION \
 23.2668 +    reload_flag reload_cmds wl \
 23.2669 +    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
 23.2670 +    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
 23.2671 +    library_names_spec soname_spec \
 23.2672 +    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
 23.2673 +    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds postuninstall_cmds \
 23.2674 +    file_magic_cmd export_symbols_cmds deplibs_check_method allow_undefined_flag no_undefined_flag \
 23.2675 +    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
 23.2676 +    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 23.2677 +    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 23.2678 +    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 23.2679 +
 23.2680 +    case "$var" in
 23.2681 +    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 23.2682 +    old_postinstall_cmds | old_postuninstall_cmds | \
 23.2683 +    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
 23.2684 +    postinstall_cmds | postuninstall_cmds | \
 23.2685 +    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 23.2686 +      # Double-quote double-evaled strings.
 23.2687 +      eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 23.2688 +      ;;
 23.2689 +    *)
 23.2690 +      eval "$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 23.2691 +      ;;
 23.2692 +    esac
 23.2693 +  done
 23.2694 +
 23.2695 +  case "$ltecho" in
 23.2696 +  *'\$0 --fallback-echo"')
 23.2697 +    ltecho=`$echo "X$ltecho" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 23.2698 +    ;;
 23.2699 +  esac
 23.2700 +
 23.2701 +  trap "$rm \"$ofile\"; exit 1" 1 2 15
 23.2702 +  echo "creating $ofile"
 23.2703 +  $rm "$ofile"
 23.2704 +  cat <<EOF > "$ofile"
 23.2705 +#! $SHELL
 23.2706 +
 23.2707 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 23.2708 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 23.2709 +# NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
 23.2710 +#
 23.2711 +# Copyright (C) 1996-1999 Free Software Foundation, Inc.
 23.2712 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 23.2713 +#
 23.2714 +# This program is free software; you can redistribute it and/or modify
 23.2715 +# it under the terms of the GNU General Public License as published by
 23.2716 +# the Free Software Foundation; either version 2 of the License, or
 23.2717 +# (at your option) any later version.
 23.2718 +#
 23.2719 +# This program is distributed in the hope that it will be useful, but
 23.2720 +# WITHOUT ANY WARRANTY; without even the implied warranty of
 23.2721 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 23.2722 +# General Public License for more details.
 23.2723 +#
 23.2724 +# You should have received a copy of the GNU General Public License
 23.2725 +# along with this program; if not, write to the Free Software
 23.2726 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 23.2727 +#
 23.2728 +# As a special exception to the GNU General Public License, if you
 23.2729 +# distribute this file as part of a program that contains a
 23.2730 +# configuration script generated by Autoconf, you may include it under
 23.2731 +# the same distribution terms that you use for the rest of that program.
 23.2732 +
 23.2733 +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 23.2734 +Xsed="sed -e s/^X//"
 23.2735 +
 23.2736 +# The HP-UX ksh and POSIX shell print the target directory to stdout
 23.2737 +# if CDPATH is set.
 23.2738 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 23.2739 +
 23.2740 +### BEGIN LIBTOOL CONFIG
 23.2741 +EOF
 23.2742 +  cfgfile="$ofile"
 23.2743 +  ;;
 23.2744 +
 23.2745 +*)
 23.2746 +  # Double-quote the variables that need it (for aesthetics).
 23.2747 +  for var in old_CC old_CFLAGS old_CPPFLAGS \
 23.2748 +    old_LD old_LDFLAGS old_LIBS \
 23.2749 +    old_NM old_RANLIB old_LN_S old_DLLTOOL old_OBJDUMP old_AS; do
 23.2750 +    eval "$var=\\\"\$var\\\""
 23.2751 +  done
 23.2752 +
 23.2753 +  # Just create a config file.
 23.2754 +  cfgfile="$ofile.cfg"
 23.2755 +  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 23.2756 +  echo "creating $cfgfile"
 23.2757 +  $rm "$cfgfile"
 23.2758 +  cat <<EOF > "$cfgfile"
 23.2759 +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Libtool configuration file.
 23.2760 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 23.2761 +EOF
 23.2762 +  ;;
 23.2763 +esac
 23.2764 +
 23.2765 +cat <<EOF >> "$cfgfile"
 23.2766 +# Libtool was configured as follows, on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 23.2767 +#
 23.2768 +# CC=$old_CC CFLAGS=$old_CFLAGS CPPFLAGS=$old_CPPFLAGS \\
 23.2769 +# LD=$old_LD LDFLAGS=$old_LDFLAGS LIBS=$old_LIBS \\
 23.2770 +# NM=$old_NM RANLIB=$old_RANLIB LN_S=$old_LN_S \\
 23.2771 +# DLLTOOL=$old_DLLTOOL OBJDUMP=$old_OBJDUMP AS=$old_AS \\
 23.2772 +#   $0$ltconfig_args
 23.2773 +#
 23.2774 +# Compiler and other test output produced by $progname, useful for
 23.2775 +# debugging $progname, is in ./config.log if it exists.
 23.2776 +
 23.2777 +# The version of $progname that generated this script.
 23.2778 +LTCONFIG_VERSION=$LTCONFIG_VERSION
 23.2779 +
 23.2780 +# Shell to use when invoking shell scripts.
 23.2781 +SHELL=$LTSHELL
 23.2782 +
 23.2783 +# Whether or not to build shared libraries.
 23.2784 +build_libtool_libs=$enable_shared
 23.2785 +
 23.2786 +# Whether or not to build static libraries.
 23.2787 +build_old_libs=$enable_static
 23.2788 +
 23.2789 +# Whether or not to optimize for fast installation.
 23.2790 +fast_install=$enable_fast_install
 23.2791 +
 23.2792 +# The host system.
 23.2793 +host_alias=$host_alias
 23.2794 +host=$host
 23.2795 +
 23.2796 +# An echo program that does not interpret backslashes.
 23.2797 +echo=$ltecho
 23.2798 +
 23.2799 +# The archiver.
 23.2800 +AR=$AR
 23.2801 +
 23.2802 +# The default C compiler.
 23.2803 +CC=$CC
 23.2804 +
 23.2805 +# The linker used to build libraries.
 23.2806 +LD=$LD
 23.2807 +
 23.2808 +# Whether we need hard or soft links.
 23.2809 +LN_S=$LN_S
 23.2810 +
 23.2811 +# A BSD-compatible nm program.
 23.2812 +NM=$NM
 23.2813 +
 23.2814 +# Used on cygwin: DLL creation program.
 23.2815 +DLLTOOL="$DLLTOOL"
 23.2816 +
 23.2817 +# Used on cygwin: object dumper.
 23.2818 +OBJDUMP="$OBJDUMP"
 23.2819 +
 23.2820 +# Used on cygwin: assembler.
 23.2821 +AS="$AS"
 23.2822 +
 23.2823 +# The name of the directory that contains temporary libtool files.
 23.2824 +objdir=$objdir
 23.2825 +
 23.2826 +# How to create reloadable object files.
 23.2827 +reload_flag=$reload_flag
 23.2828 +reload_cmds=$reload_cmds
 23.2829 +
 23.2830 +# How to pass a linker flag through the compiler.
 23.2831 +wl=$wl
 23.2832 +
 23.2833 +# Object file suffix (normally "o").
 23.2834 +objext="$objext"
 23.2835 +
 23.2836 +# Old archive suffix (normally "a").
 23.2837 +libext="$libext"
 23.2838 +
 23.2839 +# Executable file suffix (normally "").
 23.2840 +exeext="$exeext"
 23.2841 +
 23.2842 +# Additional compiler flags for building library objects.
 23.2843 +pic_flag=$pic_flag
 23.2844 +
 23.2845 +# Does compiler simultaneously support -c and -o options?
 23.2846 +compiler_c_o=$compiler_c_o
 23.2847 +
 23.2848 +# Can we write directly to a .lo ?
 23.2849 +compiler_o_lo=$compiler_o_lo
 23.2850 +
 23.2851 +# Must we lock files when doing compilation ?
 23.2852 +need_locks=$need_locks
 23.2853 +
 23.2854 +# Do we need the lib prefix for modules?
 23.2855 +need_lib_prefix=$need_lib_prefix
 23.2856 +
 23.2857 +# Do we need a version for libraries?
 23.2858 +need_version=$need_version
 23.2859 +
 23.2860 +# Whether dlopen is supported.
 23.2861 +dlopen=$enable_dlopen
 23.2862 +
 23.2863 +# Whether dlopen of programs is supported.
 23.2864 +dlopen_self=$enable_dlopen_self
 23.2865 +
 23.2866 +# Whether dlopen of statically linked programs is supported.
 23.2867 +dlopen_self_static=$enable_dlopen_self_static
 23.2868 +
 23.2869 +# Compiler flag to prevent dynamic linking.
 23.2870 +link_static_flag=$link_static_flag
 23.2871 +
 23.2872 +# Compiler flag to turn off builtin functions.
 23.2873 +no_builtin_flag=$no_builtin_flag
 23.2874 +
 23.2875 +# Compiler flag to allow reflexive dlopens.
 23.2876 +export_dynamic_flag_spec=$export_dynamic_flag_spec
 23.2877 +
 23.2878 +# Compiler flag to generate shared objects directly from archives.
 23.2879 +whole_archive_flag_spec=$whole_archive_flag_spec
 23.2880 +
 23.2881 +# Compiler flag to generate thread-safe objects.
 23.2882 +thread_safe_flag_spec=$thread_safe_flag_spec
 23.2883 +
 23.2884 +# Library versioning type.
 23.2885 +version_type=$version_type
 23.2886 +
 23.2887 +# Format of library name prefix.
 23.2888 +libname_spec=$libname_spec
 23.2889 +
 23.2890 +# List of archive names.  First name is the real one, the rest are links.
 23.2891 +# The last name is the one that the linker finds with -lNAME.
 23.2892 +library_names_spec=$library_names_spec
 23.2893 +
 23.2894 +# The coded name of the library, if different from the real name.
 23.2895 +soname_spec=$soname_spec
 23.2896 +
 23.2897 +# Commands used to build and install an old-style archive.
 23.2898 +RANLIB=$RANLIB
 23.2899 +old_archive_cmds=$old_archive_cmds
 23.2900 +old_postinstall_cmds=$old_postinstall_cmds
 23.2901 +old_postuninstall_cmds=$old_postuninstall_cmds
 23.2902 +
 23.2903 +# Create an old-style archive from a shared archive.
 23.2904 +old_archive_from_new_cmds=$old_archive_from_new_cmds
 23.2905 +
 23.2906 +# Commands used to build and install a shared archive.
 23.2907 +archive_cmds=$archive_cmds
 23.2908 +archive_expsym_cmds=$archive_expsym_cmds
 23.2909 +postinstall_cmds=$postinstall_cmds
 23.2910 +postuninstall_cmds=$postuninstall_cmds
 23.2911 +
 23.2912 +# Method to check whether dependent libraries are shared objects.
 23.2913 +deplibs_check_method=$deplibs_check_method
 23.2914 +
 23.2915 +# Command to use when deplibs_check_method == file_magic.
 23.2916 +file_magic_cmd=$file_magic_cmd
 23.2917 +
 23.2918 +# Flag that allows shared libraries with undefined symbols to be built.
 23.2919 +allow_undefined_flag=$allow_undefined_flag
 23.2920 +
 23.2921 +# Flag that forces no undefined symbols.
 23.2922 +no_undefined_flag=$no_undefined_flag
 23.2923 +
 23.2924 +# Commands used to finish a libtool library installation in a directory.
 23.2925 +finish_cmds=$finish_cmds
 23.2926 +
 23.2927 +# Same as above, but a single script fragment to be evaled but not shown.
 23.2928 +finish_eval=$finish_eval
 23.2929 +
 23.2930 +# Take the output of nm and produce a listing of raw symbols and C names.
 23.2931 +global_symbol_pipe=$global_symbol_pipe
 23.2932 +
 23.2933 +# Transform the output of nm in a proper C declaration
 23.2934 +global_symbol_to_cdecl=$global_symbol_to_cdecl
 23.2935 +
 23.2936 +# This is the shared library runtime path variable.
 23.2937 +runpath_var=$runpath_var
 23.2938 +
 23.2939 +# This is the shared library path variable.
 23.2940 +shlibpath_var=$shlibpath_var
 23.2941 +
 23.2942 +# Is shlibpath searched before the hard-coded library search path?
 23.2943 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 23.2944 +
 23.2945 +# How to hardcode a shared library path into an executable.
 23.2946 +hardcode_action=$hardcode_action
 23.2947 +
 23.2948 +# Flag to hardcode \$libdir into a binary during linking.
 23.2949 +# This must work even if \$libdir does not exist.
 23.2950 +hardcode_libdir_flag_spec=$hardcode_libdir_flag_spec
 23.2951 +
 23.2952 +# Whether we need a single -rpath flag with a separated argument.
 23.2953 +hardcode_libdir_separator=$hardcode_libdir_separator
 23.2954 +
 23.2955 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 23.2956 +# resulting binary.
 23.2957 +hardcode_direct=$hardcode_direct
 23.2958 +
 23.2959 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 23.2960 +# resulting binary.
 23.2961 +hardcode_minus_L=$hardcode_minus_L
 23.2962 +
 23.2963 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 23.2964 +# the resulting binary.
 23.2965 +hardcode_shlibpath_var=$hardcode_shlibpath_var
 23.2966 +
 23.2967 +# Compile-time system search path for libraries
 23.2968 +sys_lib_search_path_spec=$sys_lib_search_path_spec
 23.2969 +
 23.2970 +# Run-time system search path for libraries
 23.2971 +sys_lib_dlsearch_path_spec=$sys_lib_dlsearch_path_spec
 23.2972 +
 23.2973 +# Fix the shell variable \$srcfile for the compiler.
 23.2974 +fix_srcfile_path="$fix_srcfile_path"
 23.2975 +
 23.2976 +# Set to yes if exported symbols are required.
 23.2977 +always_export_symbols=$always_export_symbols
 23.2978 +
 23.2979 +# The commands to list exported symbols.
 23.2980 +export_symbols_cmds=$export_symbols_cmds
 23.2981 +
 23.2982 +# Symbols that should not be listed in the preloaded symbols.
 23.2983 +exclude_expsyms=$exclude_expsyms
 23.2984 +
 23.2985 +# Symbols that must always be exported.
 23.2986 +include_expsyms=$include_expsyms
 23.2987 +
 23.2988 +EOF
 23.2989 +
 23.2990 +case "$ltmain" in
 23.2991 +*.sh)
 23.2992 +  echo '### END LIBTOOL CONFIG' >> "$ofile"
 23.2993 +  echo >> "$ofile"
 23.2994 +  case "$host_os" in
 23.2995 +  aix3*)
 23.2996 +    cat <<\EOF >> "$ofile"
 23.2997 +
 23.2998 +# AIX sometimes has problems with the GCC collect2 program.  For some
 23.2999 +# reason, if we set the COLLECT_NAMES environment variable, the problems
 23.3000 +# vanish in a puff of smoke.
 23.3001 +if test "X${COLLECT_NAMES+set}" != Xset; then
 23.3002 +  COLLECT_NAMES=
 23.3003 +  export COLLECT_NAMES
 23.3004 +fi
 23.3005 +EOF
 23.3006 +    ;;
 23.3007 +  esac
 23.3008 +
 23.3009 +  # Append the ltmain.sh script.
 23.3010 +  sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
 23.3011 +  # We use sed instead of cat because bash on DJGPP gets confused if
 23.3012 +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 23.3013 +  # text mode, it properly converts lines to CR/LF.  This bash problem
 23.3014 +  # is reportedly fixed, but why not run on old versions too?
 23.3015 +
 23.3016 +  chmod +x "$ofile"
 23.3017 +  ;;
 23.3018 +
 23.3019 +*)
 23.3020 +  # Compile the libtool program.
 23.3021 +  echo "FIXME: would compile $ltmain"
 23.3022 +  ;;
 23.3023 +esac
 23.3024 +
 23.3025 +test -n "$cache_file" || exit 0
 23.3026 +
 23.3027 +# AC_CACHE_SAVE
 23.3028 +trap '' 1 2 15
 23.3029 +cat > confcache <<\EOF
 23.3030 +# This file is a shell script that caches the results of configure
 23.3031 +# tests run on this system so they can be shared between configure
 23.3032 +# scripts and configure runs.  It is not useful on other systems.
 23.3033 +# If it contains results you don't want to keep, you may remove or edit it.
 23.3034 +#
 23.3035 +# By default, configure uses ./config.cache as the cache file,
 23.3036 +# creating it if it does not exist already.  You can give configure
 23.3037 +# the --cache-file=FILE option to use a different cache file; that is
 23.3038 +# what configure does when it calls configure scripts in
 23.3039 +# subdirectories, so they share the cache.
 23.3040 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
 23.3041 +# config.status only pays attention to the cache file if you give it the
 23.3042 +# --recheck option to rerun configure.
 23.3043 +#
 23.3044 +EOF
 23.3045 +# The following way of writing the cache mishandles newlines in values,
 23.3046 +# but we know of no workaround that is simple, portable, and efficient.
 23.3047 +# So, don't put newlines in cache variables' values.
 23.3048 +# Ultrix sh set writes to stderr and can't be redirected directly,
 23.3049 +# and sets the high bit in the cache file unless we assign to the vars.
 23.3050 +(set) 2>&1 |
 23.3051 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 23.3052 +  *ac_space=\ *)
 23.3053 +    # `set' does not quote correctly, so add quotes (double-quote substitution
 23.3054 +    # turns \\\\ into \\, and sed turns \\ into \).
 23.3055 +    sed -n \
 23.3056 +      -e "s/'/'\\\\''/g" \
 23.3057 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 23.3058 +    ;;
 23.3059 +  *)
 23.3060 +    # `set' quotes correctly as required by POSIX, so do not add quotes.
 23.3061 +    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 23.3062 +    ;;
 23.3063 +  esac >> confcache
 23.3064 +if cmp -s $cache_file confcache; then
 23.3065 +  :
 23.3066 +else
 23.3067 +  if test -w $cache_file; then
 23.3068 +    echo "updating cache $cache_file"
 23.3069 +    cat confcache > $cache_file
 23.3070 +  else
 23.3071 +    echo "not updating unwritable cache $cache_file"
 23.3072 +  fi
 23.3073 +fi
 23.3074 +rm -f confcache
 23.3075 +
 23.3076 +exit 0
 23.3077 +
 23.3078 +# Local Variables:
 23.3079 +# mode:shell-script
 23.3080 +# sh-indentation:2
 23.3081 +# End:
    24.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    24.2 +++ b/ltmain.sh	Mon Jan 24 14:34:29 2000 +0000
    24.3 @@ -0,0 +1,4012 @@
    24.4 +# ltmain.sh - Provide generalized library-building support services.
    24.5 +# NOTE: Changing this file will not affect anything until you rerun ltconfig.
    24.6 +#
    24.7 +# Copyright (C) 1996-1999 Free Software Foundation, Inc.
    24.8 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    24.9 +#
   24.10 +# This program is free software; you can redistribute it and/or modify
   24.11 +# it under the terms of the GNU General Public License as published by
   24.12 +# the Free Software Foundation; either version 2 of the License, or
   24.13 +# (at your option) any later version.
   24.14 +#
   24.15 +# This program is distributed in the hope that it will be useful, but
   24.16 +# WITHOUT ANY WARRANTY; without even the implied warranty of
   24.17 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   24.18 +# General Public License for more details.
   24.19 +#
   24.20 +# You should have received a copy of the GNU General Public License
   24.21 +# along with this program; if not, write to the Free Software
   24.22 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   24.23 +#
   24.24 +# As a special exception to the GNU General Public License, if you
   24.25 +# distribute this file as part of a program that contains a
   24.26 +# configuration script generated by Autoconf, you may include it under
   24.27 +# the same distribution terms that you use for the rest of that program.
   24.28 +
   24.29 +# Check that we have a working $echo.
   24.30 +if test "X$1" = X--no-reexec; then
   24.31 +  # Discard the --no-reexec flag, and continue.
   24.32 +  shift
   24.33 +elif test "X$1" = X--fallback-echo; then
   24.34 +  # Avoid inline document here, it may be left over
   24.35 +  :
   24.36 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
   24.37 +  # Yippee, $echo works!
   24.38 +  :
   24.39 +else
   24.40 +  # Restart under the correct shell, and then maybe $echo will work.
   24.41 +  exec $SHELL "$0" --no-reexec ${1+"$@"}
   24.42 +fi
   24.43 +
   24.44 +if test "X$1" = X--fallback-echo; then
   24.45 +  # used as fallback echo
   24.46 +  shift
   24.47 +  cat <<EOF
   24.48 +$*
   24.49 +EOF
   24.50 +  exit 0
   24.51 +fi
   24.52 +
   24.53 +# The name of this program.
   24.54 +progname=`$echo "$0" | sed 's%^.*/%%'`
   24.55 +modename="$progname"
   24.56 +
   24.57 +# Constants.
   24.58 +PROGRAM=ltmain.sh
   24.59 +PACKAGE=libtool
   24.60 +VERSION=1.3.4
   24.61 +TIMESTAMP=" (1.385.2.196 1999/12/07 21:47:57)"
   24.62 +
   24.63 +default_mode=
   24.64 +help="Try \`$progname --help' for more information."
   24.65 +magic="%%%MAGIC variable%%%"
   24.66 +mkdir="mkdir"
   24.67 +mv="mv -f"
   24.68 +rm="rm -f"
   24.69 +
   24.70 +# Sed substitution that helps us do robust quoting.  It backslashifies
   24.71 +# metacharacters that are still active within double-quoted strings.
   24.72 +Xsed='sed -e 1s/^X//'
   24.73 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
   24.74 +SP2NL='tr \040 \012'
   24.75 +NL2SP='tr \015\012 \040\040'
   24.76 +
   24.77 +# NLS nuisances.
   24.78 +# Only set LANG and LC_ALL to C if already set.
   24.79 +# These must not be set unconditionally because not all systems understand
   24.80 +# e.g. LANG=C (notably SCO).
   24.81 +# We save the old values to restore during execute mode.
   24.82 +if test "${LC_ALL+set}" = set; then
   24.83 +  save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
   24.84 +fi
   24.85 +if test "${LANG+set}" = set; then
   24.86 +  save_LANG="$LANG"; LANG=C; export LANG
   24.87 +fi
   24.88 +
   24.89 +if test "$LTCONFIG_VERSION" != "$VERSION"; then
   24.90 +  echo "$modename: ltconfig version \`$LTCONFIG_VERSION' does not match $PROGRAM version \`$VERSION'" 1>&2
   24.91 +  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
   24.92 +  exit 1
   24.93 +fi
   24.94 +
   24.95 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
   24.96 +  echo "$modename: not configured to build any kind of library" 1>&2
   24.97 +  echo "Fatal configuration error.  See the $PACKAGE docs for more information." 1>&2
   24.98 +  exit 1
   24.99 +fi
  24.100 +
  24.101 +# Global variables.
  24.102 +mode=$default_mode
  24.103 +nonopt=
  24.104 +prev=
  24.105 +prevopt=
  24.106 +run=
  24.107 +show="$echo"
  24.108 +show_help=
  24.109 +execute_dlfiles=
  24.110 +lo2o="s/\\.lo\$/.${objext}/"
  24.111 +o2lo="s/\\.${objext}\$/.lo/"
  24.112 +
  24.113 +# Parse our command line options once, thoroughly.
  24.114 +while test $# -gt 0
  24.115 +do
  24.116 +  arg="$1"
  24.117 +  shift
  24.118 +
  24.119 +  case "$arg" in
  24.120 +  -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  24.121 +  *) optarg= ;;
  24.122 +  esac
  24.123 +
  24.124 +  # If the previous option needs an argument, assign it.
  24.125 +  if test -n "$prev"; then
  24.126 +    case "$prev" in
  24.127 +    execute_dlfiles)
  24.128 +      eval "$prev=\"\$$prev \$arg\""
  24.129 +      ;;
  24.130 +    *)
  24.131 +      eval "$prev=\$arg"
  24.132 +      ;;
  24.133 +    esac
  24.134 +
  24.135 +    prev=
  24.136 +    prevopt=
  24.137 +    continue
  24.138 +  fi
  24.139 +
  24.140 +  # Have we seen a non-optional argument yet?
  24.141 +  case "$arg" in
  24.142 +  --help)
  24.143 +    show_help=yes
  24.144 +    ;;
  24.145 +
  24.146 +  --version)
  24.147 +    echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  24.148 +    exit 0
  24.149 +    ;;
  24.150 +
  24.151 +  --config)
  24.152 +    sed -e '1,/^### BEGIN LIBTOOL CONFIG/d' -e '/^### END LIBTOOL CONFIG/,$d' $0
  24.153 +    exit 0
  24.154 +    ;;
  24.155 +
  24.156 +  --debug)
  24.157 +    echo "$progname: enabling shell trace mode"
  24.158 +    set -x
  24.159 +    ;;
  24.160 +
  24.161 +  --dry-run | -n)
  24.162 +    run=:
  24.163 +    ;;
  24.164 +
  24.165 +  --features)
  24.166 +    echo "host: $host"
  24.167 +    if test "$build_libtool_libs" = yes; then
  24.168 +      echo "enable shared libraries"
  24.169 +    else
  24.170 +      echo "disable shared libraries"
  24.171 +    fi
  24.172 +    if test "$build_old_libs" = yes; then
  24.173 +      echo "enable static libraries"
  24.174 +    else
  24.175 +      echo "disable static libraries"
  24.176 +    fi
  24.177 +    exit 0
  24.178 +    ;;
  24.179 +
  24.180 +  --finish) mode="finish" ;;
  24.181 +
  24.182 +  --mode) prevopt="--mode" prev=mode ;;
  24.183 +  --mode=*) mode="$optarg" ;;
  24.184 +
  24.185 +  --quiet | --silent)
  24.186 +    show=:
  24.187 +    ;;
  24.188 +
  24.189 +  -dlopen)
  24.190 +    prevopt="-dlopen"
  24.191 +    prev=execute_dlfiles
  24.192 +    ;;
  24.193 +
  24.194 +  -*)
  24.195 +    $echo "$modename: unrecognized option \`$arg'" 1>&2
  24.196 +    $echo "$help" 1>&2
  24.197 +    exit 1
  24.198 +    ;;
  24.199 +
  24.200 +  *)
  24.201 +    nonopt="$arg"
  24.202 +    break
  24.203 +    ;;
  24.204 +  esac
  24.205 +done
  24.206 +
  24.207 +if test -n "$prevopt"; then
  24.208 +  $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  24.209 +  $echo "$help" 1>&2
  24.210 +  exit 1
  24.211 +fi
  24.212 +
  24.213 +if test -z "$show_help"; then
  24.214 +
  24.215 +  # Infer the operation mode.
  24.216 +  if test -z "$mode"; then
  24.217 +    case "$nonopt" in
  24.218 +    *cc | *++ | gcc* | *-gcc*)
  24.219 +      mode=link
  24.220 +      for arg
  24.221 +      do
  24.222 +	case "$arg" in
  24.223 +	-c)
  24.224 +	   mode=compile
  24.225 +	   break
  24.226 +	   ;;
  24.227 +	esac
  24.228 +      done
  24.229 +      ;;
  24.230 +    *db | *dbx | *strace | *truss)
  24.231 +      mode=execute
  24.232 +      ;;
  24.233 +    *install*|cp|mv)
  24.234 +      mode=install
  24.235 +      ;;
  24.236 +    *rm)
  24.237 +      mode=uninstall
  24.238 +      ;;
  24.239 +    *)
  24.240 +      # If we have no mode, but dlfiles were specified, then do execute mode.
  24.241 +      test -n "$execute_dlfiles" && mode=execute
  24.242 +
  24.243 +      # Just use the default operation mode.
  24.244 +      if test -z "$mode"; then
  24.245 +	if test -n "$nonopt"; then
  24.246 +	  $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  24.247 +	else
  24.248 +	  $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  24.249 +	fi
  24.250 +      fi
  24.251 +      ;;
  24.252 +    esac
  24.253 +  fi
  24.254 +
  24.255 +  # Only execute mode is allowed to have -dlopen flags.
  24.256 +  if test -n "$execute_dlfiles" && test "$mode" != execute; then
  24.257 +    $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  24.258 +    $echo "$help" 1>&2
  24.259 +    exit 1
  24.260 +  fi
  24.261 +
  24.262 +  # Change the help message to a mode-specific one.
  24.263 +  generic_help="$help"
  24.264 +  help="Try \`$modename --help --mode=$mode' for more information."
  24.265 +
  24.266 +  # These modes are in order of execution frequency so that they run quickly.
  24.267 +  case "$mode" in
  24.268 +  # libtool compile mode
  24.269 +  compile)
  24.270 +    modename="$modename: compile"
  24.271 +    # Get the compilation command and the source file.
  24.272 +    base_compile=
  24.273 +    lastarg=
  24.274 +    srcfile="$nonopt"
  24.275 +    suppress_output=
  24.276 +
  24.277 +    user_target=no
  24.278 +    for arg
  24.279 +    do
  24.280 +      # Accept any command-line options.
  24.281 +      case "$arg" in
  24.282 +      -o)
  24.283 +	if test "$user_target" != "no"; then
  24.284 +	  $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  24.285 +	  exit 1
  24.286 +	fi
  24.287 +	user_target=next
  24.288 +	;;
  24.289 +
  24.290 +      -static)
  24.291 +	build_old_libs=yes
  24.292 +	continue
  24.293 +	;;
  24.294 +      esac
  24.295 +
  24.296 +      case "$user_target" in
  24.297 +      next)
  24.298 +	# The next one is the -o target name
  24.299 +	user_target=yes
  24.300 +	continue
  24.301 +	;;
  24.302 +      yes)
  24.303 +	# We got the output file
  24.304 +	user_target=set
  24.305 +	libobj="$arg"
  24.306 +	continue
  24.307 +	;;
  24.308 +      esac
  24.309 +
  24.310 +      # Accept the current argument as the source file.
  24.311 +      lastarg="$srcfile"
  24.312 +      srcfile="$arg"
  24.313 +
  24.314 +      # Aesthetically quote the previous argument.
  24.315 +
  24.316 +      # Backslashify any backslashes, double quotes, and dollar signs.
  24.317 +      # These are the only characters that are still specially
  24.318 +      # interpreted inside of double-quoted scrings.
  24.319 +      lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  24.320 +
  24.321 +      # Double-quote args containing other shell metacharacters.
  24.322 +      # Many Bourne shells cannot handle close brackets correctly in scan
  24.323 +      # sets, so we specify it separately.
  24.324 +      case "$lastarg" in
  24.325 +      *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)
  24.326 +	lastarg="\"$lastarg\""
  24.327 +	;;
  24.328 +      esac
  24.329 +
  24.330 +      # Add the previous argument to base_compile.
  24.331 +      if test -z "$base_compile"; then
  24.332 +	base_compile="$lastarg"
  24.333 +      else
  24.334 +	base_compile="$base_compile $lastarg"
  24.335 +      fi
  24.336 +    done
  24.337 +
  24.338 +    case "$user_target" in
  24.339 +    set)
  24.340 +      ;;
  24.341 +    no)
  24.342 +      # Get the name of the library object.
  24.343 +      libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  24.344 +      ;;
  24.345 +    *)
  24.346 +      $echo "$modename: you must specify a target with \`-o'" 1>&2
  24.347 +      exit 1
  24.348 +      ;;
  24.349 +    esac
  24.350 +
  24.351 +    # Recognize several different file suffixes.
  24.352 +    # If the user specifies -o file.o, it is replaced with file.lo
  24.353 +    xform='[cCFSfmso]'
  24.354 +    case "$libobj" in
  24.355 +    *.ada) xform=ada ;;
  24.356 +    *.adb) xform=adb ;;
  24.357 +    *.ads) xform=ads ;;
  24.358 +    *.asm) xform=asm ;;
  24.359 +    *.c++) xform=c++ ;;
  24.360 +    *.cc) xform=cc ;;
  24.361 +    *.cpp) xform=cpp ;;
  24.362 +    *.cxx) xform=cxx ;;
  24.363 +    *.f90) xform=f90 ;;
  24.364 +    *.for) xform=for ;;
  24.365 +    esac
  24.366 +
  24.367 +    libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  24.368 +
  24.369 +    case "$libobj" in
  24.370 +    *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  24.371 +    *)
  24.372 +      $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  24.373 +      exit 1
  24.374 +      ;;
  24.375 +    esac
  24.376 +
  24.377 +    if test -z "$base_compile"; then
  24.378 +      $echo "$modename: you must specify a compilation command" 1>&2
  24.379 +      $echo "$help" 1>&2
  24.380 +      exit 1
  24.381 +    fi
  24.382 +
  24.383 +    # Delete any leftover library objects.
  24.384 +    if test "$build_old_libs" = yes; then
  24.385 +      removelist="$obj $libobj"
  24.386 +    else
  24.387 +      removelist="$libobj"
  24.388 +    fi
  24.389 +
  24.390 +    $run $rm $removelist
  24.391 +    trap "$run $rm $removelist; exit 1" 1 2 15
  24.392 +
  24.393 +    # Calculate the filename of the output object if compiler does
  24.394 +    # not support -o with -c
  24.395 +    if test "$compiler_c_o" = no; then
  24.396 +      output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext}
  24.397 +      lockfile="$output_obj.lock"
  24.398 +      removelist="$removelist $output_obj $lockfile"
  24.399 +      trap "$run $rm $removelist; exit 1" 1 2 15
  24.400 +    else
  24.401 +      need_locks=no
  24.402 +      lockfile=
  24.403 +    fi
  24.404 +
  24.405 +    # Lock this critical section if it is needed
  24.406 +    # We use this script file to make the link, it avoids creating a new file
  24.407 +    if test "$need_locks" = yes; then
  24.408 +      until ln "$0" "$lockfile" 2>/dev/null; do
  24.409 +	$show "Waiting for $lockfile to be removed"
  24.410 +	sleep 2
  24.411 +      done
  24.412 +    elif test "$need_locks" = warn; then
  24.413 +      if test -f "$lockfile"; then
  24.414 +	echo "\
  24.415 +*** ERROR, $lockfile exists and contains:
  24.416 +`cat $lockfile 2>/dev/null`
  24.417 +
  24.418 +This indicates that another process is trying to use the same
  24.419 +temporary object file, and libtool could not work around it because
  24.420 +your compiler does not support \`-c' and \`-o' together.  If you
  24.421 +repeat this compilation, it may succeed, by chance, but you had better
  24.422 +avoid parallel builds (make -j) in this platform, or get a better
  24.423 +compiler."
  24.424 +
  24.425 +	$run $rm $removelist
  24.426 +	exit 1
  24.427 +      fi
  24.428 +      echo $srcfile > "$lockfile"
  24.429 +    fi
  24.430 +
  24.431 +    if test -n "$fix_srcfile_path"; then
  24.432 +      eval srcfile=\"$fix_srcfile_path\"
  24.433 +    fi
  24.434 +
  24.435 +    # Only build a PIC object if we are building libtool libraries.
  24.436 +    if test "$build_libtool_libs" = yes; then
  24.437 +      # Without this assignment, base_compile gets emptied.
  24.438 +      fbsd_hideous_sh_bug=$base_compile
  24.439 +
  24.440 +      # All platforms use -DPIC, to notify preprocessed assembler code.
  24.441 +      command="$base_compile $srcfile $pic_flag -DPIC"
  24.442 +      if test "$build_old_libs" = yes; then
  24.443 +	lo_libobj="$libobj"
  24.444 +	dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  24.445 +	if test "X$dir" = "X$libobj"; then
  24.446 +	  dir="$objdir"
  24.447 +	else
  24.448 +	  dir="$dir/$objdir"
  24.449 +	fi
  24.450 +	libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  24.451 +
  24.452 +	if test -d "$dir"; then
  24.453 +	  $show "$rm $libobj"
  24.454 +	  $run $rm $libobj
  24.455 +	else
  24.456 +	  $show "$mkdir $dir"
  24.457 +	  $run $mkdir $dir
  24.458 +	  status=$?
  24.459 +	  if test $status -ne 0 && test ! -d $dir; then
  24.460 +	    exit $status
  24.461 +	  fi
  24.462 +	fi
  24.463 +      fi
  24.464 +      if test "$compiler_o_lo" = yes; then
  24.465 +	output_obj="$libobj"
  24.466 +	command="$command -o $output_obj"
  24.467 +      elif test "$compiler_c_o" = yes; then
  24.468 +	output_obj="$obj"
  24.469 +	command="$command -o $output_obj"
  24.470 +      fi
  24.471 +
  24.472 +      $run $rm "$output_obj"
  24.473 +      $show "$command"
  24.474 +      if $run eval "$command"; then :
  24.475 +      else
  24.476 +	test -n "$output_obj" && $run $rm $removelist
  24.477 +	exit 1
  24.478 +      fi
  24.479 +
  24.480 +      if test "$need_locks" = warn &&
  24.481 +	 test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  24.482 +	echo "\
  24.483 +*** ERROR, $lockfile contains:
  24.484 +`cat $lockfile 2>/dev/null`
  24.485 +
  24.486 +but it should contain:
  24.487 +$srcfile
  24.488 +
  24.489 +This indicates that another process is trying to use the same
  24.490 +temporary object file, and libtool could not work around it because
  24.491 +your compiler does not support \`-c' and \`-o' together.  If you
  24.492 +repeat this compilation, it may succeed, by chance, but you had better
  24.493 +avoid parallel builds (make -j) in this platform, or get a better
  24.494 +compiler."
  24.495 +
  24.496 +	$run $rm $removelist
  24.497 +	exit 1
  24.498 +      fi
  24.499 +
  24.500 +      # Just move the object if needed, then go on to compile the next one
  24.501 +      if test x"$output_obj" != x"$libobj"; then
  24.502 +	$show "$mv $output_obj $libobj"
  24.503 +	if $run $mv $output_obj $libobj; then :
  24.504 +	else
  24.505 +	  error=$?
  24.506 +	  $run $rm $removelist
  24.507 +	  exit $error
  24.508 +	fi
  24.509 +      fi
  24.510 +
  24.511 +      # If we have no pic_flag, then copy the object into place and finish.
  24.512 +      if test -z "$pic_flag" && test "$build_old_libs" = yes; then
  24.513 +	# Rename the .lo from within objdir to obj
  24.514 +	if test -f $obj; then
  24.515 +	  $show $rm $obj
  24.516 +	  $run $rm $obj
  24.517 +	fi
  24.518 +
  24.519 +	$show "$mv $libobj $obj"
  24.520 +	if $run $mv $libobj $obj; then :
  24.521 +	else
  24.522 +	  error=$?
  24.523 +	  $run $rm $removelist
  24.524 +	  exit $error
  24.525 +	fi
  24.526 +
  24.527 +	xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  24.528 +	if test "X$xdir" = "X$obj"; then
  24.529 +	  xdir="."
  24.530 +	else
  24.531 +	  xdir="$xdir"
  24.532 +	fi
  24.533 +	baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
  24.534 +	libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  24.535 +	# Now arrange that obj and lo_libobj become the same file
  24.536 +	$show "(cd $xdir && $LN_S $baseobj $libobj)"
  24.537 +	if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  24.538 +	  exit 0
  24.539 +	else
  24.540 +	  error=$?
  24.541 +	  $run $rm $removelist
  24.542 +	  exit $error
  24.543 +	fi
  24.544 +      fi
  24.545 +
  24.546 +      # Allow error messages only from the first compilation.
  24.547 +      suppress_output=' >/dev/null 2>&1'
  24.548 +    fi
  24.549 +
  24.550 +    # Only build a position-dependent object if we build old libraries.
  24.551 +    if test "$build_old_libs" = yes; then
  24.552 +      command="$base_compile $srcfile"
  24.553 +      if test "$compiler_c_o" = yes; then
  24.554 +	command="$command -o $obj"
  24.555 +	output_obj="$obj"
  24.556 +      fi
  24.557 +
  24.558 +      # Suppress compiler output if we already did a PIC compilation.
  24.559 +      command="$command$suppress_output"
  24.560 +      $run $rm "$output_obj"
  24.561 +      $show "$command"
  24.562 +      if $run eval "$command"; then :
  24.563 +      else
  24.564 +	$run $rm $removelist
  24.565 +	exit 1
  24.566 +      fi
  24.567 +
  24.568 +      if test "$need_locks" = warn &&
  24.569 +	 test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then
  24.570 +	echo "\
  24.571 +*** ERROR, $lockfile contains:
  24.572 +`cat $lockfile 2>/dev/null`
  24.573 +
  24.574 +but it should contain:
  24.575 +$srcfile
  24.576 +
  24.577 +This indicates that another process is trying to use the same
  24.578 +temporary object file, and libtool could not work around it because
  24.579 +your compiler does not support \`-c' and \`-o' together.  If you
  24.580 +repeat this compilation, it may succeed, by chance, but you had better
  24.581 +avoid parallel builds (make -j) in this platform, or get a better
  24.582 +compiler."
  24.583 +
  24.584 +	$run $rm $removelist
  24.585 +	exit 1
  24.586 +      fi
  24.587 +
  24.588 +      # Just move the object if needed
  24.589 +      if test x"$output_obj" != x"$obj"; then
  24.590 +	$show "$mv $output_obj $obj"
  24.591 +	if $run $mv $output_obj $obj; then :
  24.592 +	else
  24.593 +	  error=$?
  24.594 +	  $run $rm $removelist
  24.595 +	  exit $error
  24.596 +	fi
  24.597 +      fi
  24.598 +
  24.599 +      # Create an invalid libtool object if no PIC, so that we do not
  24.600 +      # accidentally link it into a program.
  24.601 +      if test "$build_libtool_libs" != yes; then
  24.602 +	$show "echo timestamp > $libobj"
  24.603 +	$run eval "echo timestamp > \$libobj" || exit $?
  24.604 +      else
  24.605 +	# Move the .lo from within objdir
  24.606 +	$show "$mv $libobj $lo_libobj"
  24.607 +	if $run $mv $libobj $lo_libobj; then :
  24.608 +	else
  24.609 +	  error=$?
  24.610 +	  $run $rm $removelist
  24.611 +	  exit $error
  24.612 +	fi
  24.613 +      fi
  24.614 +    fi
  24.615 +
  24.616 +    # Unlock the critical section if it was locked
  24.617 +    if test "$need_locks" != no; then
  24.618 +      $rm "$lockfile"
  24.619 +    fi
  24.620 +
  24.621 +    exit 0
  24.622 +    ;;
  24.623 +
  24.624 +  # libtool link mode
  24.625 +  link)
  24.626 +    modename="$modename: link"
  24.627 +    case "$host" in
  24.628 +    *-*-cygwin* | *-*-mingw* | *-*-os2*)
  24.629 +      # It is impossible to link a dll without this setting, and
  24.630 +      # we shouldn't force the makefile maintainer to figure out
  24.631 +      # which system we are compiling for in order to pass an extra
  24.632 +      # flag for every libtool invokation.
  24.633 +      # allow_undefined=no
  24.634 +
  24.635 +      # FIXME: Unfortunately, there are problems with the above when trying
  24.636 +      # to make a dll which has undefined symbols, in which case not
  24.637 +      # even a static library is built.  For now, we need to specify
  24.638 +      # -no-undefined on the libtool link line when we can be certain
  24.639 +      # that all symbols are satisfied, otherwise we get a static library.
  24.640 +      allow_undefined=yes
  24.641 +
  24.642 +      # This is a source program that is used to create dlls on Windows
  24.643 +      # Don't remove nor modify the starting and closing comments
  24.644 +# /* ltdll.c starts here */
  24.645 +# #define WIN32_LEAN_AND_MEAN
  24.646 +# #include <windows.h>
  24.647 +# #undef WIN32_LEAN_AND_MEAN
  24.648 +# #include <stdio.h>
  24.649 +#
  24.650 +# #ifndef __CYGWIN__
  24.651 +# #  ifdef __CYGWIN32__
  24.652 +# #    define __CYGWIN__ __CYGWIN32__
  24.653 +# #  endif
  24.654 +# #endif
  24.655 +#
  24.656 +# #ifdef __cplusplus
  24.657 +# extern "C" {
  24.658 +# #endif
  24.659 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  24.660 +# #ifdef __cplusplus
  24.661 +# }
  24.662 +# #endif
  24.663 +#
  24.664 +# #ifdef __CYGWIN__
  24.665 +# #include <cygwin/cygwin_dll.h>
  24.666 +# DECLARE_CYGWIN_DLL( DllMain );
  24.667 +# #endif
  24.668 +# HINSTANCE __hDllInstance_base;
  24.669 +#
  24.670 +# BOOL APIENTRY
  24.671 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  24.672 +# {
  24.673 +#   __hDllInstance_base = hInst;
  24.674 +#   return TRUE;
  24.675 +# }
  24.676 +# /* ltdll.c ends here */
  24.677 +      # This is a source program that is used to create import libraries
  24.678 +      # on Windows for dlls which lack them. Don't remove nor modify the
  24.679 +      # starting and closing comments
  24.680 +# /* impgen.c starts here */
  24.681 +# /*   Copyright (C) 1999 Free Software Foundation, Inc.
  24.682 +# 
  24.683 +#  This file is part of GNU libtool.
  24.684 +# 
  24.685 +#  This program is free software; you can redistribute it and/or modify
  24.686 +#  it under the terms of the GNU General Public License as published by
  24.687 +#  the Free Software Foundation; either version 2 of the License, or
  24.688 +#  (at your option) any later version.
  24.689 +# 
  24.690 +#  This program is distributed in the hope that it will be useful,
  24.691 +#  but WITHOUT ANY WARRANTY; without even the implied warranty of
  24.692 +#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  24.693 +#  GNU General Public License for more details.
  24.694 +# 
  24.695 +#  You should have received a copy of the GNU General Public License
  24.696 +#  along with this program; if not, write to the Free Software
  24.697 +#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  24.698 +#  */
  24.699 +# 
  24.700 +#  #include <stdio.h>		/* for printf() */
  24.701 +#  #include <unistd.h>		/* for open(), lseek(), read() */
  24.702 +#  #include <fcntl.h>		/* for O_RDONLY, O_BINARY */
  24.703 +#  #include <string.h>		/* for strdup() */
  24.704 +# 
  24.705 +#  static unsigned int
  24.706 +#  pe_get16 (fd, offset)
  24.707 +#       int fd;
  24.708 +#       int offset;
  24.709 +#  {
  24.710 +#    unsigned char b[2];
  24.711 +#    lseek (fd, offset, SEEK_SET);
  24.712 +#    read (fd, b, 2);
  24.713 +#    return b[0] + (b[1]<<8);
  24.714 +#  }
  24.715 +# 
  24.716 +#  static unsigned int
  24.717 +#  pe_get32 (fd, offset)
  24.718 +#      int fd;
  24.719 +#      int offset;
  24.720 +#  {
  24.721 +#    unsigned char b[4];
  24.722 +#    lseek (fd, offset, SEEK_SET);
  24.723 +#    read (fd, b, 4);
  24.724 +#    return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  24.725 +#  }
  24.726 +# 
  24.727 +#  static unsigned int
  24.728 +#  pe_as32 (ptr)
  24.729 +#       void *ptr;
  24.730 +#  {
  24.731 +#    unsigned char *b = ptr;
  24.732 +#    return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  24.733 +#  }
  24.734 +# 
  24.735 +#  int
  24.736 +#  main (argc, argv)
  24.737 +#      int argc;
  24.738 +#      char *argv[];
  24.739 +#  {
  24.740 +#      int dll;
  24.741 +#      unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  24.742 +#      unsigned long export_rva, export_size, nsections, secptr, expptr;
  24.743 +#      unsigned long name_rvas, nexp;
  24.744 +#      unsigned char *expdata, *erva;
  24.745 +#      char *filename, *dll_name;
  24.746 +# 
  24.747 +#      filename = argv[1];
  24.748 +# 
  24.749 +#      dll = open(filename, O_RDONLY|O_BINARY);
  24.750 +#      if (!dll)
  24.751 +#  	return 1;
  24.752 +# 
  24.753 +#      dll_name = filename;
  24.754 +#    
  24.755 +#      for (i=0; filename[i]; i++)
  24.756 +#  	if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
  24.757 +#  	    dll_name = filename + i +1;
  24.758 +# 
  24.759 +#      pe_header_offset = pe_get32 (dll, 0x3c);
  24.760 +#      opthdr_ofs = pe_header_offset + 4 + 20;
  24.761 +#      num_entries = pe_get32 (dll, opthdr_ofs + 92);
  24.762 +# 
  24.763 +#      if (num_entries < 1) /* no exports */
  24.764 +#  	return 1;
  24.765 +# 
  24.766 +#      export_rva = pe_get32 (dll, opthdr_ofs + 96);
  24.767 +#      export_size = pe_get32 (dll, opthdr_ofs + 100);
  24.768 +#      nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  24.769 +#      secptr = (pe_header_offset + 4 + 20 +
  24.770 +#  	      pe_get16 (dll, pe_header_offset + 4 + 16));
  24.771 +# 
  24.772 +#      expptr = 0;
  24.773 +#      for (i = 0; i < nsections; i++)
  24.774 +#      {
  24.775 +#  	char sname[8];
  24.776 +#  	unsigned long secptr1 = secptr + 40 * i;
  24.777 +#  	unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  24.778 +#  	unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  24.779 +#  	unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  24.780 +#  	lseek(dll, secptr1, SEEK_SET);
  24.781 +#  	read(dll, sname, 8);
  24.782 +#  	if (vaddr <= export_rva && vaddr+vsize > export_rva)
  24.783 +#  	{
  24.784 +#  	    expptr = fptr + (export_rva - vaddr);
  24.785 +#  	    if (export_rva + export_size > vaddr + vsize)
  24.786 +#  		export_size = vsize - (export_rva - vaddr);
  24.787 +#  	    break;
  24.788 +#  	}
  24.789 +#      }
  24.790 +# 
  24.791 +#      expdata = (unsigned char*)malloc(export_size);
  24.792 +#      lseek (dll, expptr, SEEK_SET);
  24.793 +#      read (dll, expdata, export_size);
  24.794 +#      erva = expdata - export_rva;
  24.795 +# 
  24.796 +#      nexp = pe_as32 (expdata+24);
  24.797 +#      name_rvas = pe_as32 (expdata+32);
  24.798 +# 
  24.799 +#      printf ("EXPORTS\n");
  24.800 +#      for (i = 0; i<nexp; i++)
  24.801 +#      {
  24.802 +#  	unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  24.803 +#  	printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  24.804 +#      }
  24.805 +# 
  24.806 +#      return 0;
  24.807 +#  }
  24.808 +# /* impgen.c ends here */
  24.809 +      ;;
  24.810 +    *)
  24.811 +      allow_undefined=yes
  24.812 +      ;;
  24.813 +    esac
  24.814 +    compile_command="$nonopt"
  24.815 +    finalize_command="$nonopt"
  24.816 +
  24.817 +    compile_rpath=
  24.818 +    finalize_rpath=
  24.819 +    compile_shlibpath=
  24.820 +    finalize_shlibpath=
  24.821 +    convenience=
  24.822 +    old_convenience=
  24.823 +    deplibs=
  24.824 +    linkopts=
  24.825 +
  24.826 +    if test -n "$shlibpath_var"; then
  24.827 +      # get the directories listed in $shlibpath_var
  24.828 +      eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  24.829 +    else
  24.830 +      lib_search_path=
  24.831 +    fi
  24.832 +    # now prepend the system-specific ones
  24.833 +    eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
  24.834 +    eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  24.835 +    
  24.836 +    avoid_version=no
  24.837 +    dlfiles=
  24.838 +    dlprefiles=
  24.839 +    dlself=no
  24.840 +    export_dynamic=no
  24.841 +    export_symbols=
  24.842 +    export_symbols_regex=
  24.843 +    generated=
  24.844 +    libobjs=
  24.845 +    link_against_libtool_libs=
  24.846 +    ltlibs=
  24.847 +    module=no
  24.848 +    objs=
  24.849 +    prefer_static_libs=no
  24.850 +    preload=no
  24.851 +    prev=
  24.852 +    prevarg=
  24.853 +    release=
  24.854 +    rpath=
  24.855 +    xrpath=
  24.856 +    perm_rpath=
  24.857 +    temp_rpath=
  24.858 +    thread_safe=no
  24.859 +    vinfo=
  24.860 +
  24.861 +    # We need to know -static, to get the right output filenames.
  24.862 +    for arg
  24.863 +    do
  24.864 +      case "$arg" in
  24.865 +      -all-static | -static)
  24.866 +	if test "X$arg" = "X-all-static"; then
  24.867 +	  if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  24.868 +	    $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  24.869 +	  fi
  24.870 +	  if test -n "$link_static_flag"; then
  24.871 +	    dlopen_self=$dlopen_self_static
  24.872 +	  fi
  24.873 +	else
  24.874 +	  if test -z "$pic_flag" && test -n "$link_static_flag"; then
  24.875 +	    dlopen_self=$dlopen_self_static
  24.876 +	  fi
  24.877 +	fi
  24.878 +	build_libtool_libs=no
  24.879 +	build_old_libs=yes
  24.880 +	prefer_static_libs=yes
  24.881 +	break
  24.882 +	;;
  24.883 +      esac
  24.884 +    done
  24.885 +
  24.886 +    # See if our shared archives depend on static archives.
  24.887 +    test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  24.888 +
  24.889 +    # Go through the arguments, transforming them on the way.
  24.890 +    while test $# -gt 0; do
  24.891 +      arg="$1"
  24.892 +      shift
  24.893 +
  24.894 +      # If the previous option needs an argument, assign it.
  24.895 +      if test -n "$prev"; then
  24.896 +	case "$prev" in
  24.897 +	output)
  24.898 +	  compile_command="$compile_command @OUTPUT@"
  24.899 +	  finalize_command="$finalize_command @OUTPUT@"
  24.900 +	  ;;
  24.901 +	esac
  24.902 +
  24.903 +	case "$prev" in
  24.904 +	dlfiles|dlprefiles)
  24.905 +	  if test "$preload" = no; then
  24.906 +	    # Add the symbol object into the linking commands.
  24.907 +	    compile_command="$compile_command @SYMFILE@"
  24.908 +	    finalize_command="$finalize_command @SYMFILE@"
  24.909 +	    preload=yes
  24.910 +	  fi
  24.911 +	  case "$arg" in
  24.912 +	  *.la | *.lo) ;;  # We handle these cases below.
  24.913 +	  force)
  24.914 +	    if test "$dlself" = no; then
  24.915 +	      dlself=needless
  24.916 +	      export_dynamic=yes
  24.917 +	    fi
  24.918 +	    prev=
  24.919 +	    continue
  24.920 +	    ;;
  24.921 +	  self)
  24.922 +	    if test "$prev" = dlprefiles; then
  24.923 +	      dlself=yes
  24.924 +	    elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  24.925 +	      dlself=yes
  24.926 +	    else
  24.927 +	      dlself=needless
  24.928 +	      export_dynamic=yes
  24.929 +	    fi
  24.930 +	    prev=
  24.931 +	    continue
  24.932 +	    ;;
  24.933 +	  *)
  24.934 +	    if test "$prev" = dlfiles; then
  24.935 +	      dlfiles="$dlfiles $arg"
  24.936 +	    else
  24.937 +	      dlprefiles="$dlprefiles $arg"
  24.938 +	    fi
  24.939 +	    prev=
  24.940 +	    ;;
  24.941 +	  esac
  24.942 +	  ;;
  24.943 +	expsyms)
  24.944 +	  export_symbols="$arg"
  24.945 +	  if test ! -f "$arg"; then
  24.946 +	    $echo "$modename: symbol file \`$arg' does not exist"
  24.947 +	    exit 1
  24.948 +	  fi
  24.949 +	  prev=
  24.950 +	  continue
  24.951 +	  ;;
  24.952 +	expsyms_regex)
  24.953 +	  export_symbols_regex="$arg"
  24.954 +	  prev=
  24.955 +	  continue
  24.956 +	  ;;
  24.957 +	release)
  24.958 +	  release="-$arg"
  24.959 +	  prev=
  24.960 +	  continue
  24.961 +	  ;;
  24.962 +	rpath | xrpath)
  24.963 +	  # We need an absolute path.
  24.964 +	  case "$arg" in
  24.965 +	  [\\/]* | [A-Za-z]:[\\/]*) ;;
  24.966 +	  *)
  24.967 +	    $echo "$modename: only absolute run-paths are allowed" 1>&2
  24.968 +	    exit 1
  24.969 +	    ;;
  24.970 +	  esac
  24.971 +	  if test "$prev" = rpath; then
  24.972 +	    case "$rpath " in
  24.973 +	    *" $arg "*) ;;
  24.974 +	    *) rpath="$rpath $arg" ;;
  24.975 +	    esac
  24.976 +	  else
  24.977 +	    case "$xrpath " in
  24.978 +	    *" $arg "*) ;;
  24.979 +	    *) xrpath="$xrpath $arg" ;;
  24.980 +	    esac
  24.981 +	  fi
  24.982 +	  prev=
  24.983 +	  continue
  24.984 +	  ;;
  24.985 +	*)
  24.986 +	  eval "$prev=\"\$arg\""
  24.987 +	  prev=
  24.988 +	  continue
  24.989 +	  ;;
  24.990 +	esac
  24.991 +      fi
  24.992 +
  24.993 +      prevarg="$arg"
  24.994 +
  24.995 +      case "$arg" in
  24.996 +      -all-static)
  24.997 +	if test -n "$link_static_flag"; then
  24.998 +	  compile_command="$compile_command $link_static_flag"
  24.999 +	  finalize_command="$finalize_command $link_static_flag"
 24.1000 +	fi
 24.1001 +	continue
 24.1002 +	;;
 24.1003 +
 24.1004 +      -allow-undefined)
 24.1005 +	# FIXME: remove this flag sometime in the future.
 24.1006 +	$echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
 24.1007 +	continue
 24.1008 +	;;
 24.1009 +
 24.1010 +      -avoid-version)
 24.1011 +	avoid_version=yes
 24.1012 +	continue
 24.1013 +	;;
 24.1014 +
 24.1015 +      -dlopen)
 24.1016 +	prev=dlfiles
 24.1017 +	continue
 24.1018 +	;;
 24.1019 +
 24.1020 +      -dlpreopen)
 24.1021 +	prev=dlprefiles
 24.1022 +	continue
 24.1023 +	;;
 24.1024 +
 24.1025 +      -export-dynamic)
 24.1026 +	export_dynamic=yes
 24.1027 +	continue
 24.1028 +	;;
 24.1029 +
 24.1030 +      -export-symbols | -export-symbols-regex)
 24.1031 +	if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
 24.1032 +	  $echo "$modename: not more than one -exported-symbols argument allowed"
 24.1033 +	  exit 1
 24.1034 +	fi
 24.1035 +	if test "X$arg" = "X-export-symbols"; then
 24.1036 +	  prev=expsyms
 24.1037 +	else
 24.1038 +	  prev=expsyms_regex
 24.1039 +	fi
 24.1040 +	continue
 24.1041 +	;;
 24.1042 +
 24.1043 +      -L*)
 24.1044 +	dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
 24.1045 +	# We need an absolute path.
 24.1046 +	case "$dir" in
 24.1047 +	[\\/]* | [A-Za-z]:[\\/]*) ;;
 24.1048 +	*)
 24.1049 +	  absdir=`cd "$dir" && pwd`
 24.1050 +	  if test -z "$absdir"; then
 24.1051 +	    $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
 24.1052 +	    $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
 24.1053 +	    absdir="$dir"
 24.1054 +	  fi
 24.1055 +	  dir="$absdir"
 24.1056 +	  ;;
 24.1057 +	esac
 24.1058 +	case " $deplibs " in
 24.1059 +	*" $arg "*) ;;
 24.1060 +	*) deplibs="$deplibs $arg";;
 24.1061 +	esac
 24.1062 +	case " $lib_search_path " in
 24.1063 +	*" $dir "*) ;;
 24.1064 +	*) lib_search_path="$lib_search_path $dir";;
 24.1065 +	esac
 24.1066 +	case "$host" in
 24.1067 +	*-*-cygwin* | *-*-mingw* | *-*-os2*)
 24.1068 +	  dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
 24.1069 +	  case ":$dllsearchpath:" in
 24.1070 +	  ::) dllsearchpath="$dllsearchdir";;
 24.1071 +	  *":$dllsearchdir:"*) ;;
 24.1072 +	  *) dllsearchpath="$dllsearchpath:$dllsearchdir";;
 24.1073 +	  esac
 24.1074 +	  ;;
 24.1075 +	esac
 24.1076 +	;;
 24.1077 +
 24.1078 +      -l*)
 24.1079 +	if test "$arg" = "-lc"; then
 24.1080 +	  case "$host" in
 24.1081 +	  *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
 24.1082 +	    # These systems don't actually have c library (as such)
 24.1083 +	    continue
 24.1084 +	    ;;
 24.1085 +	  esac
 24.1086 +	elif test "$arg" = "-lm"; then
 24.1087 +	  case "$host" in
 24.1088 +	  *-*-cygwin* | *-*-beos*)
 24.1089 +	    # These systems don't actually have math library (as such)
 24.1090 +	    continue
 24.1091 +	    ;;
 24.1092 +	  esac
 24.1093 +	fi
 24.1094 +	deplibs="$deplibs $arg"
 24.1095 +	;;
 24.1096 +
 24.1097 +      -module)
 24.1098 +	module=yes
 24.1099 +	continue
 24.1100 +	;;
 24.1101 +
 24.1102 +      -no-undefined)
 24.1103 +	allow_undefined=no
 24.1104 +	continue
 24.1105 +	;;
 24.1106 +
 24.1107 +      -o) prev=output ;;
 24.1108 +
 24.1109 +      -release)
 24.1110 +	prev=release
 24.1111 +	continue
 24.1112 +	;;
 24.1113 +
 24.1114 +      -rpath)
 24.1115 +	prev=rpath
 24.1116 +	continue
 24.1117 +	;;
 24.1118 +
 24.1119 +      -R)
 24.1120 +	prev=xrpath
 24.1121 +	continue
 24.1122 +	;;
 24.1123 +
 24.1124 +      -R*)
 24.1125 +	dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
 24.1126 +	# We need an absolute path.
 24.1127 +	case "$dir" in
 24.1128 +	[\\/]* | [A-Za-z]:[\\/]*) ;;
 24.1129 +	*)
 24.1130 +	  $echo "$modename: only absolute run-paths are allowed" 1>&2
 24.1131 +	  exit 1
 24.1132 +	  ;;
 24.1133 +	esac
 24.1134 +	case "$xrpath " in
 24.1135 +	*" $dir "*) ;;
 24.1136 +	*) xrpath="$xrpath $dir" ;;
 24.1137 +	esac
 24.1138 +	continue
 24.1139 +	;;
 24.1140 +
 24.1141 +      -static)
 24.1142 +	# If we have no pic_flag, then this is the same as -all-static.
 24.1143 +	if test -z "$pic_flag" && test -n "$link_static_flag"; then
 24.1144 +	  compile_command="$compile_command $link_static_flag"
 24.1145 +	  finalize_command="$finalize_command $link_static_flag"
 24.1146 +	fi
 24.1147 +	continue
 24.1148 +	;;
 24.1149 +
 24.1150 +      -thread-safe)
 24.1151 +	thread_safe=yes
 24.1152 +	continue
 24.1153 +	;;
 24.1154 +
 24.1155 +      -version-info)
 24.1156 +	prev=vinfo
 24.1157 +	continue
 24.1158 +	;;
 24.1159 +
 24.1160 +      # Some other compiler flag.
 24.1161 +      -* | +*)
 24.1162 +	# Unknown arguments in both finalize_command and compile_command need
 24.1163 +	# to be aesthetically quoted because they are evaled later.
 24.1164 +	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
 24.1165 +	case "$arg" in
 24.1166 +	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)
 24.1167 +	  arg="\"$arg\""
 24.1168 +	  ;;
 24.1169 +	esac
 24.1170 +	;;
 24.1171 +
 24.1172 +      *.o | *.obj | *.a | *.lib)
 24.1173 +	# A standard object.
 24.1174 +	objs="$objs $arg"
 24.1175 +	;;
 24.1176 +
 24.1177 +      *.lo)
 24.1178 +	# A library object.
 24.1179 +	if test "$prev" = dlfiles; then
 24.1180 +	  dlfiles="$dlfiles $arg"
 24.1181 +	  if test "$build_libtool_libs" = yes && test "$dlopen" = yes; then
 24.1182 +	    prev=
 24.1183 +	    continue
 24.1184 +	  else
 24.1185 +	    # If libtool objects are unsupported, then we need to preload.
 24.1186 +	    prev=dlprefiles
 24.1187 +	  fi
 24.1188 +	fi
 24.1189 +
 24.1190 +	if test "$prev" = dlprefiles; then
 24.1191 +	  # Preload the old-style object.
 24.1192 +	  dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"`
 24.1193 +	  prev=
 24.1194 +	fi
 24.1195 +	libobjs="$libobjs $arg"
 24.1196 +	;;
 24.1197 +
 24.1198 +      *.la)
 24.1199 +	# A libtool-controlled library.
 24.1200 +
 24.1201 +	dlname=
 24.1202 +	libdir=
 24.1203 +	library_names=
 24.1204 +	old_library=
 24.1205 +
 24.1206 +	# Check to see that this really is a libtool archive.
 24.1207 +	if (sed -e '2q' $arg | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
 24.1208 +	else
 24.1209 +	  $echo "$modename: \`$arg' is not a valid libtool archive" 1>&2
 24.1210 +	  exit 1
 24.1211 +	fi
 24.1212 +
 24.1213 +	# If the library was installed with an old release of libtool,
 24.1214 +	# it will not redefine variable installed.
 24.1215 +	installed=yes
 24.1216 +
 24.1217 +	# Read the .la file
 24.1218 +	# If there is no directory component, then add one.
 24.1219 +	case "$arg" in
 24.1220 +	*/* | *\\*) . $arg ;;
 24.1221 +	*) . ./$arg ;;
 24.1222 +	esac
 24.1223 +
 24.1224 +	# Get the name of the library we link against.
 24.1225 +	linklib=
 24.1226 +	for l in $old_library $library_names; do
 24.1227 +	  linklib="$l"
 24.1228 +	done
 24.1229 +
 24.1230 +	if test -z "$linklib"; then
 24.1231 +	  $echo "$modename: cannot find name of link library for \`$arg'" 1>&2
 24.1232 +	  exit 1
 24.1233 +	fi
 24.1234 +
 24.1235 +	# Find the relevant object directory and library name.
 24.1236 +	name=`$echo "X$arg" | $Xsed -e 's%^.*/%%' -e 's/\.la$//' -e 's/^lib//'`
 24.1237 +
 24.1238 +	if test "X$installed" = Xyes; then
 24.1239 +	  dir="$libdir"
 24.1240 +	else
 24.1241 +	  dir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
 24.1242 +	  if test "X$dir" = "X$arg"; then
 24.1243 +	    dir="$objdir"
 24.1244 +	  else
 24.1245 +	    dir="$dir/$objdir"
 24.1246 +	  fi
 24.1247 +	fi
 24.1248 +
 24.1249 +	if test -n "$dependency_libs"; then
 24.1250 +	  # Extract -R and -L from dependency_libs
 24.1251 +	  temp_deplibs=
 24.1252 +	  for deplib in $dependency_libs; do
 24.1253 +	    case "$deplib" in
 24.1254 +	    -R*) temp_xrpath=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
 24.1255 +		 case " $rpath $xrpath " in
 24.1256 +		 *" $temp_xrpath "*) ;;
 24.1257 +		 *) xrpath="$xrpath $temp_xrpath";;
 24.1258 +		 esac;;
 24.1259 +	    -L*) case "$compile_command $temp_deplibs " in
 24.1260 +		 *" $deplib "*) ;;
 24.1261 +		 *) temp_deplibs="$temp_deplibs $deplib";;
 24.1262 +		 esac
 24.1263 +		 temp_dir=`$echo "X$deplib" | $Xsed -e 's/^-L//'`
 24.1264 +		 case " $lib_search_path " in
 24.1265 +		 *" $temp_dir "*) ;;
 24.1266 +		 *) lib_search_path="$lib_search_path $temp_dir";;
 24.1267 +		 esac
 24.1268 +		 ;;
 24.1269 +	    *) temp_deplibs="$temp_deplibs $deplib";;
 24.1270 +	    esac
 24.1271 +	  done
 24.1272 +	  dependency_libs="$temp_deplibs"
 24.1273 +	fi
 24.1274 +
 24.1275 +	if test -z "$libdir"; then
 24.1276 +	  # It is a libtool convenience library, so add in its objects.
 24.1277 +	  convenience="$convenience $dir/$old_library"
 24.1278 +	  old_convenience="$old_convenience $dir/$old_library"
 24.1279 +	  deplibs="$deplibs$dependency_libs"
 24.1280 +	  compile_command="$compile_command $dir/$old_library$dependency_libs"
 24.1281 +	  finalize_command="$finalize_command $dir/$old_library$dependency_libs"
 24.1282 +	  continue
 24.1283 +	fi
 24.1284 +
 24.1285 +	# This library was specified with -dlopen.
 24.1286 +	if test "$prev" = dlfiles; then
 24.1287 +	  dlfiles="$dlfiles $arg"
 24.1288 +	  if test -z "$dlname" || test "$dlopen" != yes || test "$build_libtool_libs" = no; then
 24.1289 +	    # If there is no dlname, no dlopen support or we're linking statically,
 24.1290 +	    # we need to preload.
 24.1291 +	    prev=dlprefiles
 24.1292 +	  else
 24.1293 +	    # We should not create a dependency on this library, but we
 24.1294 +	    # may need any libraries it requires.
 24.1295 +	    compile_command="$compile_command$dependency_libs"
 24.1296 +	    finalize_command="$finalize_command$dependency_libs"
 24.1297 +	    prev=
 24.1298 +	    continue
 24.1299 +	  fi
 24.1300 +	fi
 24.1301 +
 24.1302 +	# The library was specified with -dlpreopen.
 24.1303 +	if test "$prev" = dlprefiles; then
 24.1304 +	  # Prefer using a static library (so that no silly _DYNAMIC symbols
 24.1305 +	  # are required to link).
 24.1306 +	  if test -n "$old_library"; then
 24.1307 +	    dlprefiles="$dlprefiles $dir/$old_library"
 24.1308 +	  else
 24.1309 +	    dlprefiles="$dlprefiles $dir/$linklib"
 24.1310 +	  fi
 24.1311 +	  prev=
 24.1312 +	fi
 24.1313 +
 24.1314 +	if test -n "$library_names" &&
 24.1315 +	   { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
 24.1316 +	  link_against_libtool_libs="$link_against_libtool_libs $arg"
 24.1317 +	  if test -n "$shlibpath_var"; then
 24.1318 +	    # Make sure the rpath contains only unique directories.
 24.1319 +	    case "$temp_rpath " in
 24.1320 +	    *" $dir "*) ;;
 24.1321 +	    *) temp_rpath="$temp_rpath $dir" ;;
 24.1322 +	    esac
 24.1323 +	  fi
 24.1324 +
 24.1325 +	  # We need an absolute path.
 24.1326 +	  case "$dir" in
 24.1327 +	  [\\/] | [A-Za-z]:[\\/]*) absdir="$dir" ;;
 24.1328 +	  *)
 24.1329 +	    absdir=`cd "$dir" && pwd`
 24.1330 +	    if test -z "$absdir"; then
 24.1331 +	      $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
 24.1332 +	      $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
 24.1333 +	      absdir="$dir"
 24.1334 +	    fi
 24.1335 +	    ;;
 24.1336 +	  esac
 24.1337 +	  
 24.1338 +	  # This is the magic to use -rpath.
 24.1339 +	  # Skip directories that are in the system default run-time
 24.1340 +	  # search path, unless they have been requested with -R.
 24.1341 +	  case " $sys_lib_dlsearch_path " in
 24.1342 +	  *" $absdir "*) ;;
 24.1343 +	  *)
 24.1344 +	    case "$compile_rpath " in
 24.1345 +	    *" $absdir "*) ;;
 24.1346 +	    *) compile_rpath="$compile_rpath $absdir" 
 24.1347 +	    esac
 24.1348 +	    ;;
 24.1349 +	  esac
 24.1350 +
 24.1351 +	  case " $sys_lib_dlsearch_path " in
 24.1352 +	  *" $libdir "*) ;;
 24.1353 +	  *)
 24.1354 +	    case "$finalize_rpath " in
 24.1355 +	    *" $libdir "*) ;;
 24.1356 +	    *) finalize_rpath="$finalize_rpath $libdir"
 24.1357 +	    esac
 24.1358 +	    ;;
 24.1359 +	  esac
 24.1360 +
 24.1361 +	  lib_linked=yes
 24.1362 +	  case "$hardcode_action" in
 24.1363 +	  immediate | unsupported)
 24.1364 +	    if test "$hardcode_direct" = no; then
 24.1365 +	      compile_command="$compile_command $dir/$linklib"
 24.1366 +	      deplibs="$deplibs $dir/$linklib"
 24.1367 +	      case "$host" in
 24.1368 +	      *-*-cygwin* | *-*-mingw* | *-*-os2*)
 24.1369 +		dllsearchdir=`cd "$dir" && pwd || echo "$dir"`
 24.1370 +		if test -n "$dllsearchpath"; then
 24.1371 +		  dllsearchpath="$dllsearchpath:$dllsearchdir"
 24.1372 +		else
 24.1373 +		  dllsearchpath="$dllsearchdir"
 24.1374 +		fi
 24.1375 +		;;
 24.1376 +	      esac
 24.1377 +	    elif test "$hardcode_minus_L" = no; then
 24.1378 +	      case "$host" in
 24.1379 +	      *-*-sunos*)
 24.1380 +		compile_shlibpath="$compile_shlibpath$dir:"
 24.1381 +		;;
 24.1382 +	      esac
 24.1383 +	      case "$compile_command " in
 24.1384 +	      *" -L$dir "*) ;;
 24.1385 +	      *) compile_command="$compile_command -L$dir";;
 24.1386 +	      esac
 24.1387 +	      compile_command="$compile_command -l$name"
 24.1388 +	      deplibs="$deplibs -L$dir -l$name"
 24.1389 +	    elif test "$hardcode_shlibpath_var" = no; then
 24.1390 +	      case ":$compile_shlibpath:" in
 24.1391 +	      *":$dir:"*) ;;
 24.1392 +	      *) compile_shlibpath="$compile_shlibpath$dir:";;
 24.1393 +	      esac
 24.1394 +	      compile_command="$compile_command -l$name"
 24.1395 +	      deplibs="$deplibs -l$name"
 24.1396 +	    else
 24.1397 +	      lib_linked=no
 24.1398 +	    fi
 24.1399 +	    ;;
 24.1400 +
 24.1401 +	  relink)
 24.1402 +	    if test "$hardcode_direct" = yes; then
 24.1403 +	      compile_command="$compile_command $absdir/$linklib"
 24.1404 +	      deplibs="$deplibs $absdir/$linklib"
 24.1405 +	    elif test "$hardcode_minus_L" = yes; then
 24.1406 +	      case "$compile_command " in
 24.1407 +	      *" -L$absdir "*) ;;
 24.1408 +	      *) compile_command="$compile_command -L$absdir";;
 24.1409 +	      esac
 24.1410 +	      compile_command="$compile_command -l$name"
 24.1411 +	      deplibs="$deplibs -L$absdir -l$name"
 24.1412 +	    elif test "$hardcode_shlibpath_var" = yes; then
 24.1413 +	      case ":$compile_shlibpath:" in
 24.1414 +	      *":$absdir:"*) ;;
 24.1415 +	      *) compile_shlibpath="$compile_shlibpath$absdir:";;
 24.1416 +	      esac
 24.1417 +	      compile_command="$compile_command -l$name"
 24.1418 +	      deplibs="$deplibs -l$name"
 24.1419 +	    else
 24.1420 +	      lib_linked=no
 24.1421 +	    fi
 24.1422 +	    ;;
 24.1423 +
 24.1424 +	  *)
 24.1425 +	    lib_linked=no
 24.1426 +	    ;;
 24.1427 +	  esac
 24.1428 +
 24.1429 +	  if test "$lib_linked" != yes; then
 24.1430 +	    $echo "$modename: configuration error: unsupported hardcode properties"
 24.1431 +	    exit 1
 24.1432 +	  fi
 24.1433 +
 24.1434 +	  # Finalize command for both is simple: just hardcode it.
 24.1435 +	  if test "$hardcode_direct" = yes; then
 24.1436 +	    finalize_command="$finalize_command $libdir/$linklib"
 24.1437 +	  elif test "$hardcode_minus_L" = yes; then
 24.1438 +	    case "$finalize_command " in
 24.1439 +	    *" -L$libdir "*) ;;
 24.1440 +	    *) finalize_command="$finalize_command -L$libdir";;
 24.1441 +	    esac
 24.1442 +	    finalize_command="$finalize_command -l$name"
 24.1443 +	  elif test "$hardcode_shlibpath_var" = yes; then
 24.1444 +	    case ":$finalize_shlibpath:" in
 24.1445 +	    *":$libdir:"*) ;;
 24.1446 +	    *) finalize_shlibpath="$finalize_shlibpath$libdir:";;
 24.1447 +	    esac
 24.1448 +	    finalize_command="$finalize_command -l$name"
 24.1449 +	  else
 24.1450 +	    # We cannot seem to hardcode it, guess we'll fake it.
 24.1451 +	    case "$finalize_command " in
 24.1452 +	    *" -L$dir "*) ;;
 24.1453 +	    *) finalize_command="$finalize_command -L$libdir";;
 24.1454 +	    esac
 24.1455 +	    finalize_command="$finalize_command -l$name"
 24.1456 +	  fi
 24.1457 +	else
 24.1458 +	  # Transform directly to old archives if we don't build new libraries.
 24.1459 +	  if test -n "$pic_flag" && test -z "$old_library"; then
 24.1460 +	    $echo "$modename: cannot find static library for \`$arg'" 1>&2
 24.1461 +	    exit 1
 24.1462 +	  fi
 24.1463 +
 24.1464 +	  # Here we assume that one of hardcode_direct or hardcode_minus_L
 24.1465 +	  # is not unsupported.  This is valid on all known static and
 24.1466 +	  # shared platforms.
 24.1467 +	  if test "$hardcode_direct" != unsupported; then
 24.1468 +	    test -n "$old_library" && linklib="$old_library"
 24.1469 +	    compile_command="$compile_command $dir/$linklib"
 24.1470 +	    finalize_command="$finalize_command $dir/$linklib"
 24.1471 +	  else
 24.1472 +	    case "$compile_command " in
 24.1473 +	    *" -L$dir "*) ;;
 24.1474 +	    *) compile_command="$compile_command -L$dir";;
 24.1475 +	    esac
 24.1476 +	    compile_command="$compile_command -l$name"
 24.1477 +	    case "$finalize_command " in
 24.1478 +	    *" -L$dir "*) ;;
 24.1479 +	    *) finalize_command="$finalize_command -L$dir";;
 24.1480 +	    esac
 24.1481 +	    finalize_command="$finalize_command -l$name"
 24.1482 +	  fi
 24.1483 +	fi
 24.1484 +
 24.1485 +	# Add in any libraries that this one depends upon.
 24.1486 +	compile_command="$compile_command$dependency_libs"
 24.1487 +	finalize_command="$finalize_command$dependency_libs"
 24.1488 +	continue
 24.1489 +	;;
 24.1490 +
 24.1491 +      # Some other compiler argument.
 24.1492 +      *)
 24.1493 +	# Unknown arguments in both finalize_command and compile_command need
 24.1494 +	# to be aesthetically quoted because they are evaled later.
 24.1495 +	arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
 24.1496 +	case "$arg" in
 24.1497 +	*[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \	]*|*]*)
 24.1498 +	  arg="\"$arg\""
 24.1499 +	  ;;
 24.1500 +	esac
 24.1501 +	;;
 24.1502 +      esac
 24.1503 +
 24.1504 +      # Now actually substitute the argument into the commands.
 24.1505 +      if test -n "$arg"; then
 24.1506 +	compile_command="$compile_command $arg"
 24.1507 +	finalize_command="$finalize_command $arg"
 24.1508 +      fi
 24.1509 +    done
 24.1510 +
 24.1511 +    if test -n "$prev"; then
 24.1512 +      $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
 24.1513 +      $echo "$help" 1>&2
 24.1514 +      exit 1
 24.1515 +    fi
 24.1516 +
 24.1517 +    if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
 24.1518 +      eval arg=\"$export_dynamic_flag_spec\"
 24.1519 +      compile_command="$compile_command $arg"
 24.1520 +      finalize_command="$finalize_command $arg"
 24.1521 +    fi
 24.1522 +
 24.1523 +    oldlibs=
 24.1524 +    # calculate the name of the file, without its directory
 24.1525 +    outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
 24.1526 +    libobjs_save="$libobjs"
 24.1527 +
 24.1528 +    case "$output" in
 24.1529 +    "")
 24.1530 +      $echo "$modename: you must specify an output file" 1>&2
 24.1531 +      $echo "$help" 1>&2
 24.1532 +      exit 1
 24.1533 +      ;;
 24.1534 +
 24.1535 +    *.a | *.lib)
 24.1536 +      if test -n "$link_against_libtool_libs"; then
 24.1537 +	$echo "$modename: error: cannot link libtool libraries into archives" 1>&2
 24.1538 +	exit 1
 24.1539 +      fi
 24.1540 +
 24.1541 +      if test -n "$deplibs"; then
 24.1542 +	$echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
 24.1543 +      fi
 24.1544 +
 24.1545 +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
 24.1546 +	$echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
 24.1547 +      fi
 24.1548 +
 24.1549 +      if test -n "$rpath"; then
 24.1550 +	$echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
 24.1551 +      fi
 24.1552 +
 24.1553 +      if test -n "$xrpath"; then
 24.1554 +	$echo "$modename: warning: \`-R' is ignored for archives" 1>&2
 24.1555 +      fi
 24.1556 +
 24.1557 +      if test -n "$vinfo"; then
 24.1558 +	$echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2
 24.1559 +      fi
 24.1560 +
 24.1561 +      if test -n "$release"; then
 24.1562 +	$echo "$modename: warning: \`-release' is ignored for archives" 1>&2
 24.1563 +      fi
 24.1564 +
 24.1565 +      if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
 24.1566 +	$echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
 24.1567 +      fi
 24.1568 +
 24.1569 +      # Now set the variables for building old libraries.
 24.1570 +      build_libtool_libs=no
 24.1571 +      oldlibs="$output"
 24.1572 +      ;;
 24.1573 +
 24.1574 +    *.la)
 24.1575 +      # Make sure we only generate libraries of the form `libNAME.la'.
 24.1576 +      case "$outputname" in
 24.1577 +      lib*)
 24.1578 +	name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
 24.1579 +	eval libname=\"$libname_spec\"
 24.1580 +	;;
 24.1581 +      *)
 24.1582 +	if test "$module" = no; then
 24.1583 +	  $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
 24.1584 +	  $echo "$help" 1>&2
 24.1585 +	  exit 1
 24.1586 +	fi
 24.1587 +	if test "$need_lib_prefix" != no; then
 24.1588 +	  # Add the "lib" prefix for modules if required
 24.1589 +	  name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
 24.1590 +	  eval libname=\"$libname_spec\"
 24.1591 +	else
 24.1592 +	  libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
 24.1593 +	fi
 24.1594 +	;;
 24.1595 +      esac
 24.1596 +
 24.1597 +      output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
 24.1598 +      if test "X$output_objdir" = "X$output"; then
 24.1599 +	output_objdir="$objdir"
 24.1600 +      else
 24.1601 +	output_objdir="$output_objdir/$objdir"
 24.1602 +      fi
 24.1603 +
 24.1604 +      if test -n "$objs"; then
 24.1605 +	$echo "$modename: cannot build libtool library \`$output' from non-libtool objects:$objs" 2>&1
 24.1606 +	exit 1
 24.1607 +      fi
 24.1608 +
 24.1609 +      # How the heck are we supposed to write a wrapper for a shared library?
 24.1610 +      if test -n "$link_against_libtool_libs"; then
 24.1611 +	 $echo "$modename: error: cannot link shared libraries into libtool libraries" 1>&2
 24.1612 +	 exit 1
 24.1613 +      fi
 24.1614 +
 24.1615 +      if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
 24.1616 +	$echo "$modename: warning: \`-dlopen' is ignored for libtool libraries" 1>&2
 24.1617 +      fi
 24.1618 +
 24.1619 +      set dummy $rpath
 24.1620 +      if test $# -gt 2; then
 24.1621 +	$echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
 24.1622 +      fi
 24.1623 +      install_libdir="$2"
 24.1624 +