Initial revision
authorSam Lantinga <slouken@lokigames.com>
Thu, 21 Oct 1999 18:02:08 +0000
changeset 04ce2db4db959
child 1 4ef9250a6471
Initial revision
CHANGES
COPYING
Makefile.am
Makefile.in
README
acinclude.m4
aclocal.m4
config.guess
config.sub
configure
configure.in
install-sh
ltconfig
ltmain.sh
mikmod/Makefile.am
mikmod/Makefile.in
mikmod/README
mikmod/drv_nos.c
mikmod/drv_sdl.c
mikmod/license.txt
mikmod/load_it.c
mikmod/load_mod.c
mikmod/load_s3m.c
mikmod/load_xm.c
mikmod/mdreg.c
mikmod/mdriver.c
mikmod/mikmod.h
mikmod/mloader.c
mikmod/mlreg.c
mikmod/mmalloc.c
mikmod/mmerror.c
mikmod/mmio.c
mikmod/mmio.h
mikmod/mplayer.c
mikmod/munitrk.c
mikmod/npertab.c
mikmod/ptform.h
mikmod/s3m_it.c
mikmod/sloader.c
mikmod/tdefs.h
mikmod/virtch.c
missing
mixer.c
mixer.h
mkinstalldirs
music.c
music_cmd.c
music_cmd.h
playmus.c
playwave.c
timidity/FAQ
timidity/Makefile.am
timidity/Makefile.in
timidity/README
timidity/common.c
timidity/common.h
timidity/config.h
timidity/controls.c
timidity/controls.h
timidity/filter.c
timidity/filter.h
timidity/instrum.c
timidity/instrum.h
timidity/mix.c
timidity/mix.h
timidity/output.c
timidity/output.h
timidity/playmidi.c
timidity/playmidi.h
timidity/readmidi.c
timidity/readmidi.h
timidity/resample.c
timidity/resample.h
timidity/sdl_a.c
timidity/sdl_c.c
timidity/tables.c
timidity/tables.h
timidity/timidity.c
timidity/timidity.h
wave.h
wavestream.c
wavestream.h
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/CHANGES	Thu Oct 21 18:02:08 1999 +0000
     1.3 @@ -0,0 +1,9 @@
     1.4 +
     1.5 +1.0.0:
     1.6 +SOL -   Added autoconf support
     1.7 +SP  -   Added MP3 support using SMPEG
     1.8 +
     1.9 +Initial Key:
    1.10 +SOL - Sam Lantinga (hercules@lokigames.com)
    1.11 +SP  - Stephane Peter (megastep@lokigames.com)
    1.12 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/COPYING	Thu Oct 21 18:02:08 1999 +0000
     2.3 @@ -0,0 +1,437 @@
     2.4 +		  GNU LIBRARY GENERAL PUBLIC LICENSE
     2.5 +		       Version 2, June 1991
     2.6 +
     2.7 + Copyright (C) 1991 Free Software Foundation, Inc.
     2.8 +    		    59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     2.9 + Everyone is permitted to copy and distribute verbatim copies
    2.10 + of this license document, but changing it is not allowed.
    2.11 +
    2.12 +[This is the first released version of the library GPL.  It is
    2.13 + numbered 2 because it goes with version 2 of the ordinary GPL.]
    2.14 +
    2.15 +			    Preamble
    2.16 +
    2.17 +  The licenses for most software are designed to take away your
    2.18 +freedom to share and change it.  By contrast, the GNU General Public
    2.19 +Licenses are intended to guarantee your freedom to share and change
    2.20 +free software--to make sure the software is free for all its users.
    2.21 +
    2.22 +  This license, the Library General Public License, applies to some
    2.23 +specially designated Free Software Foundation software, and to any
    2.24 +other libraries whose authors decide to use it.  You can use it for
    2.25 +your libraries, too.
    2.26 +
    2.27 +  When we speak of free software, we are referring to freedom, not
    2.28 +price.  Our General Public Licenses are designed to make sure that you
    2.29 +have the freedom to distribute copies of free software (and charge for
    2.30 +this service if you wish), that you receive source code or can get it
    2.31 +if you want it, that you can change the software or use pieces of it
    2.32 +in new free programs; and that you know you can do these things.
    2.33 +
    2.34 +  To protect your rights, we need to make restrictions that forbid
    2.35 +anyone to deny you these rights or to ask you to surrender the rights.
    2.36 +These restrictions translate to certain responsibilities for you if
    2.37 +you distribute copies of the library, or if you modify it.
    2.38 +
    2.39 +  For example, if you distribute copies of the library, whether gratis
    2.40 +or for a fee, you must give the recipients all the rights that we gave
    2.41 +you.  You must make sure that they, too, receive or can get the source
    2.42 +code.  If you link a program with the library, you must provide
    2.43 +complete object files to the recipients so that they can relink them
    2.44 +with the library, after making changes to the library and recompiling
    2.45 +it.  And you must show them these terms so they know their rights.
    2.46 +
    2.47 +  Our method of protecting your rights has two steps: (1) copyright
    2.48 +the library, and (2) offer you this license which gives you legal
    2.49 +permission to copy, distribute and/or modify the library.
    2.50 +
    2.51 +  Also, for each distributor's protection, we want to make certain
    2.52 +that everyone understands that there is no warranty for this free
    2.53 +library.  If the library is modified by someone else and passed on, we
    2.54 +want its recipients to know that what they have is not the original
    2.55 +version, so that any problems introduced by others will not reflect on
    2.56 +the original authors' reputations.
    2.57 +
    2.58 +  Finally, any free program is threatened constantly by software
    2.59 +patents.  We wish to avoid the danger that companies distributing free
    2.60 +software will individually obtain patent licenses, thus in effect
    2.61 +transforming the program into proprietary software.  To prevent this,
    2.62 +we have made it clear that any patent must be licensed for everyone's
    2.63 +free use or not licensed at all.
    2.64 +
    2.65 +  Most GNU software, including some libraries, is covered by the ordinary
    2.66 +GNU General Public License, which was designed for utility programs.  This
    2.67 +license, the GNU Library General Public License, applies to certain
    2.68 +designated libraries.  This license is quite different from the ordinary
    2.69 +one; be sure to read it in full, and don't assume that anything in it is
    2.70 +the same as in the ordinary license.
    2.71 +
    2.72 +  The reason we have a separate public license for some libraries is that
    2.73 +they blur the distinction we usually make between modifying or adding to a
    2.74 +program and simply using it.  Linking a program with a library, without
    2.75 +changing the library, is in some sense simply using the library, and is
    2.76 +analogous to running a utility program or application program.  However, in
    2.77 +a textual and legal sense, the linked executable is a combined work, a
    2.78 +derivative of the original library, and the ordinary General Public License
    2.79 +treats it as such.
    2.80 +
    2.81 +  Because of this blurred distinction, using the ordinary General
    2.82 +Public License for libraries did not effectively promote software
    2.83 +sharing, because most developers did not use the libraries.  We
    2.84 +concluded that weaker conditions might promote sharing better.
    2.85 +
    2.86 +  However, unrestricted linking of non-free programs would deprive the
    2.87 +users of those programs of all benefit from the free status of the
    2.88 +libraries themselves.  This Library General Public License is intended to
    2.89 +permit developers of non-free programs to use free libraries, while
    2.90 +preserving your freedom as a user of such programs to change the free
    2.91 +libraries that are incorporated in them.  (We have not seen how to achieve
    2.92 +this as regards changes in header files, but we have achieved it as regards
    2.93 +changes in the actual functions of the Library.)  The hope is that this
    2.94 +will lead to faster development of free libraries.
    2.95 +
    2.96 +  The precise terms and conditions for copying, distribution and
    2.97 +modification follow.  Pay close attention to the difference between a
    2.98 +"work based on the library" and a "work that uses the library".  The
    2.99 +former contains code derived from the library, while the latter only
   2.100 +works together with the library.
   2.101 +
   2.102 +  Note that it is possible for a library to be covered by the ordinary
   2.103 +General Public License rather than by this special one.
   2.104 +
   2.105 +		  GNU LIBRARY GENERAL PUBLIC LICENSE
   2.106 +   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
   2.107 +
   2.108 +  0. This License Agreement applies to any software library which
   2.109 +contains a notice placed by the copyright holder or other authorized
   2.110 +party saying it may be distributed under the terms of this Library
   2.111 +General Public License (also called "this License").  Each licensee is
   2.112 +addressed as "you".
   2.113 +
   2.114 +  A "library" means a collection of software functions and/or data
   2.115 +prepared so as to be conveniently linked with application programs
   2.116 +(which use some of those functions and data) to form executables.
   2.117 +
   2.118 +  The "Library", below, refers to any such software library or work
   2.119 +which has been distributed under these terms.  A "work based on the
   2.120 +Library" means either the Library or any derivative work under
   2.121 +copyright law: that is to say, a work containing the Library or a
   2.122 +portion of it, either verbatim or with modifications and/or translated
   2.123 +straightforwardly into another language.  (Hereinafter, translation is
   2.124 +included without limitation in the term "modification".)
   2.125 +
   2.126 +  "Source code" for a work means the preferred form of the work for
   2.127 +making modifications to it.  For a library, complete source code means
   2.128 +all the source code for all modules it contains, plus any associated
   2.129 +interface definition files, plus the scripts used to control compilation
   2.130 +and installation of the library.
   2.131 +
   2.132 +  Activities other than copying, distribution and modification are not
   2.133 +covered by this License; they are outside its scope.  The act of
   2.134 +running a program using the Library is not restricted, and output from
   2.135 +such a program is covered only if its contents constitute a work based
   2.136 +on the Library (independent of the use of the Library in a tool for
   2.137 +writing it).  Whether that is true depends on what the Library does
   2.138 +and what the program that uses the Library does.
   2.139 +  
   2.140 +  1. You may copy and distribute verbatim copies of the Library's
   2.141 +complete source code as you receive it, in any medium, provided that
   2.142 +you conspicuously and appropriately publish on each copy an
   2.143 +appropriate copyright notice and disclaimer of warranty; keep intact
   2.144 +all the notices that refer to this License and to the absence of any
   2.145 +warranty; and distribute a copy of this License along with the
   2.146 +Library.
   2.147 +
   2.148 +  You may charge a fee for the physical act of transferring a copy,
   2.149 +and you may at your option offer warranty protection in exchange for a
   2.150 +fee.
   2.151 +
   2.152 +  2. You may modify your copy or copies of the Library or any portion
   2.153 +of it, thus forming a work based on the Library, and copy and
   2.154 +distribute such modifications or work under the terms of Section 1
   2.155 +above, provided that you also meet all of these conditions:
   2.156 +
   2.157 +    a) The modified work must itself be a software library.
   2.158 +
   2.159 +    b) You must cause the files modified to carry prominent notices
   2.160 +    stating that you changed the files and the date of any change.
   2.161 +
   2.162 +    c) You must cause the whole of the work to be licensed at no
   2.163 +    charge to all third parties under the terms of this License.
   2.164 +
   2.165 +    d) If a facility in the modified Library refers to a function or a
   2.166 +    table of data to be supplied by an application program that uses
   2.167 +    the facility, other than as an argument passed when the facility
   2.168 +    is invoked, then you must make a good faith effort to ensure that,
   2.169 +    in the event an application does not supply such function or
   2.170 +    table, the facility still operates, and performs whatever part of
   2.171 +    its purpose remains meaningful.
   2.172 +
   2.173 +    (For example, a function in a library to compute square roots has
   2.174 +    a purpose that is entirely well-defined independent of the
   2.175 +    application.  Therefore, Subsection 2d requires that any
   2.176 +    application-supplied function or table used by this function must
   2.177 +    be optional: if the application does not supply it, the square
   2.178 +    root function must still compute square roots.)
   2.179 +
   2.180 +These requirements apply to the modified work as a whole.  If
   2.181 +identifiable sections of that work are not derived from the Library,
   2.182 +and can be reasonably considered independent and separate works in
   2.183 +themselves, then this License, and its terms, do not apply to those
   2.184 +sections when you distribute them as separate works.  But when you
   2.185 +distribute the same sections as part of a whole which is a work based
   2.186 +on the Library, the distribution of the whole must be on the terms of
   2.187 +this License, whose permissions for other licensees extend to the
   2.188 +entire whole, and thus to each and every part regardless of who wrote
   2.189 +it.
   2.190 +
   2.191 +Thus, it is not the intent of this section to claim rights or contest
   2.192 +your rights to work written entirely by you; rather, the intent is to
   2.193 +exercise the right to control the distribution of derivative or
   2.194 +collective works based on the Library.
   2.195 +
   2.196 +In addition, mere aggregation of another work not based on the Library
   2.197 +with the Library (or with a work based on the Library) on a volume of
   2.198 +a storage or distribution medium does not bring the other work under
   2.199 +the scope of this License.
   2.200 +
   2.201 +  3. You may opt to apply the terms of the ordinary GNU General Public
   2.202 +License instead of this License to a given copy of the Library.  To do
   2.203 +this, you must alter all the notices that refer to this License, so
   2.204 +that they refer to the ordinary GNU General Public License, version 2,
   2.205 +instead of to this License.  (If a newer version than version 2 of the
   2.206 +ordinary GNU General Public License has appeared, then you can specify
   2.207 +that version instead if you wish.)  Do not make any other change in
   2.208 +these notices.
   2.209 +
   2.210 +  Once this change is made in a given copy, it is irreversible for
   2.211 +that copy, so the ordinary GNU General Public License applies to all
   2.212 +subsequent copies and derivative works made from that copy.
   2.213 +
   2.214 +  This option is useful when you wish to copy part of the code of
   2.215 +the Library into a program that is not a library.
   2.216 +
   2.217 +  4. You may copy and distribute the Library (or a portion or
   2.218 +derivative of it, under Section 2) in object code or executable form
   2.219 +under the terms of Sections 1 and 2 above provided that you accompany
   2.220 +it with the complete corresponding machine-readable source code, which
   2.221 +must be distributed under the terms of Sections 1 and 2 above on a
   2.222 +medium customarily used for software interchange.
   2.223 +
   2.224 +  If distribution of object code is made by offering access to copy
   2.225 +from a designated place, then offering equivalent access to copy the
   2.226 +source code from the same place satisfies the requirement to
   2.227 +distribute the source code, even though third parties are not
   2.228 +compelled to copy the source along with the object code.
   2.229 +
   2.230 +  5. A program that contains no derivative of any portion of the
   2.231 +Library, but is designed to work with the Library by being compiled or
   2.232 +linked with it, is called a "work that uses the Library".  Such a
   2.233 +work, in isolation, is not a derivative work of the Library, and
   2.234 +therefore falls outside the scope of this License.
   2.235 +
   2.236 +  However, linking a "work that uses the Library" with the Library
   2.237 +creates an executable that is a derivative of the Library (because it
   2.238 +contains portions of the Library), rather than a "work that uses the
   2.239 +library".  The executable is therefore covered by this License.
   2.240 +Section 6 states terms for distribution of such executables.
   2.241 +
   2.242 +  When a "work that uses the Library" uses material from a header file
   2.243 +that is part of the Library, the object code for the work may be a
   2.244 +derivative work of the Library even though the source code is not.
   2.245 +Whether this is true is especially significant if the work can be
   2.246 +linked without the Library, or if the work is itself a library.  The
   2.247 +threshold for this to be true is not precisely defined by law.
   2.248 +
   2.249 +  If such an object file uses only numerical parameters, data
   2.250 +structure layouts and accessors, and small macros and small inline
   2.251 +functions (ten lines or less in length), then the use of the object
   2.252 +file is unrestricted, regardless of whether it is legally a derivative
   2.253 +work.  (Executables containing this object code plus portions of the
   2.254 +Library will still fall under Section 6.)
   2.255 +
   2.256 +  Otherwise, if the work is a derivative of the Library, you may
   2.257 +distribute the object code for the work under the terms of Section 6.
   2.258 +Any executables containing that work also fall under Section 6,
   2.259 +whether or not they are linked directly with the Library itself.
   2.260 +
   2.261 +  6. As an exception to the Sections above, you may also compile or
   2.262 +link a "work that uses the Library" with the Library to produce a
   2.263 +work containing portions of the Library, and distribute that work
   2.264 +under terms of your choice, provided that the terms permit
   2.265 +modification of the work for the customer's own use and reverse
   2.266 +engineering for debugging such modifications.
   2.267 +
   2.268 +  You must give prominent notice with each copy of the work that the
   2.269 +Library is used in it and that the Library and its use are covered by
   2.270 +this License.  You must supply a copy of this License.  If the work
   2.271 +during execution displays copyright notices, you must include the
   2.272 +copyright notice for the Library among them, as well as a reference
   2.273 +directing the user to the copy of this License.  Also, you must do one
   2.274 +of these things:
   2.275 +
   2.276 +    a) Accompany the work with the complete corresponding
   2.277 +    machine-readable source code for the Library including whatever
   2.278 +    changes were used in the work (which must be distributed under
   2.279 +    Sections 1 and 2 above); and, if the work is an executable linked
   2.280 +    with the Library, with the complete machine-readable "work that
   2.281 +    uses the Library", as object code and/or source code, so that the
   2.282 +    user can modify the Library and then relink to produce a modified
   2.283 +    executable containing the modified Library.  (It is understood
   2.284 +    that the user who changes the contents of definitions files in the
   2.285 +    Library will not necessarily be able to recompile the application
   2.286 +    to use the modified definitions.)
   2.287 +
   2.288 +    b) Accompany the work with a written offer, valid for at
   2.289 +    least three years, to give the same user the materials
   2.290 +    specified in Subsection 6a, above, for a charge no more
   2.291 +    than the cost of performing this distribution.
   2.292 +
   2.293 +    c) If distribution of the work is made by offering access to copy
   2.294 +    from a designated place, offer equivalent access to copy the above
   2.295 +    specified materials from the same place.
   2.296 +
   2.297 +    d) Verify that the user has already received a copy of these
   2.298 +    materials or that you have already sent this user a copy.
   2.299 +
   2.300 +  For an executable, the required form of the "work that uses the
   2.301 +Library" must include any data and utility programs needed for
   2.302 +reproducing the executable from it.  However, as a special exception,
   2.303 +the source code distributed need not include anything that is normally
   2.304 +distributed (in either source or binary form) with the major
   2.305 +components (compiler, kernel, and so on) of the operating system on
   2.306 +which the executable runs, unless that component itself accompanies
   2.307 +the executable.
   2.308 +
   2.309 +  It may happen that this requirement contradicts the license
   2.310 +restrictions of other proprietary libraries that do not normally
   2.311 +accompany the operating system.  Such a contradiction means you cannot
   2.312 +use both them and the Library together in an executable that you
   2.313 +distribute.
   2.314 +
   2.315 +  7. You may place library facilities that are a work based on the
   2.316 +Library side-by-side in a single library together with other library
   2.317 +facilities not covered by this License, and distribute such a combined
   2.318 +library, provided that the separate distribution of the work based on
   2.319 +the Library and of the other library facilities is otherwise
   2.320 +permitted, and provided that you do these two things:
   2.321 +
   2.322 +    a) Accompany the combined library with a copy of the same work
   2.323 +    based on the Library, uncombined with any other library
   2.324 +    facilities.  This must be distributed under the terms of the
   2.325 +    Sections above.
   2.326 +
   2.327 +    b) Give prominent notice with the combined library of the fact
   2.328 +    that part of it is a work based on the Library, and explaining
   2.329 +    where to find the accompanying uncombined form of the same work.
   2.330 +
   2.331 +  8. You may not copy, modify, sublicense, link with, or distribute
   2.332 +the Library except as expressly provided under this License.  Any
   2.333 +attempt otherwise to copy, modify, sublicense, link with, or
   2.334 +distribute the Library is void, and will automatically terminate your
   2.335 +rights under this License.  However, parties who have received copies,
   2.336 +or rights, from you under this License will not have their licenses
   2.337 +terminated so long as such parties remain in full compliance.
   2.338 +
   2.339 +  9. You are not required to accept this License, since you have not
   2.340 +signed it.  However, nothing else grants you permission to modify or
   2.341 +distribute the Library or its derivative works.  These actions are
   2.342 +prohibited by law if you do not accept this License.  Therefore, by
   2.343 +modifying or distributing the Library (or any work based on the
   2.344 +Library), you indicate your acceptance of this License to do so, and
   2.345 +all its terms and conditions for copying, distributing or modifying
   2.346 +the Library or works based on it.
   2.347 +
   2.348 +  10. Each time you redistribute the Library (or any work based on the
   2.349 +Library), the recipient automatically receives a license from the
   2.350 +original licensor to copy, distribute, link with or modify the Library
   2.351 +subject to these terms and conditions.  You may not impose any further
   2.352 +restrictions on the recipients' exercise of the rights granted herein.
   2.353 +You are not responsible for enforcing compliance by third parties to
   2.354 +this License.
   2.355 +
   2.356 +  11. If, as a consequence of a court judgment or allegation of patent
   2.357 +infringement or for any other reason (not limited to patent issues),
   2.358 +conditions are imposed on you (whether by court order, agreement or
   2.359 +otherwise) that contradict the conditions of this License, they do not
   2.360 +excuse you from the conditions of this License.  If you cannot
   2.361 +distribute so as to satisfy simultaneously your obligations under this
   2.362 +License and any other pertinent obligations, then as a consequence you
   2.363 +may not distribute the Library at all.  For example, if a patent
   2.364 +license would not permit royalty-free redistribution of the Library by
   2.365 +all those who receive copies directly or indirectly through you, then
   2.366 +the only way you could satisfy both it and this License would be to
   2.367 +refrain entirely from distribution of the Library.
   2.368 +
   2.369 +If any portion of this section is held invalid or unenforceable under any
   2.370 +particular circumstance, the balance of the section is intended to apply,
   2.371 +and the section as a whole is intended to apply in other circumstances.
   2.372 +
   2.373 +It is not the purpose of this section to induce you to infringe any
   2.374 +patents or other property right claims or to contest validity of any
   2.375 +such claims; this section has the sole purpose of protecting the
   2.376 +integrity of the free software distribution system which is
   2.377 +implemented by public license practices.  Many people have made
   2.378 +generous contributions to the wide range of software distributed
   2.379 +through that system in reliance on consistent application of that
   2.380 +system; it is up to the author/donor to decide if he or she is willing
   2.381 +to distribute software through any other system and a licensee cannot
   2.382 +impose that choice.
   2.383 +
   2.384 +This section is intended to make thoroughly clear what is believed to
   2.385 +be a consequence of the rest of this License.
   2.386 +
   2.387 +  12. If the distribution and/or use of the Library is restricted in
   2.388 +certain countries either by patents or by copyrighted interfaces, the
   2.389 +original copyright holder who places the Library under this License may add
   2.390 +an explicit geographical distribution limitation excluding those countries,
   2.391 +so that distribution is permitted only in or among countries not thus
   2.392 +excluded.  In such case, this License incorporates the limitation as if
   2.393 +written in the body of this License.
   2.394 +
   2.395 +  13. The Free Software Foundation may publish revised and/or new
   2.396 +versions of the Library General Public License from time to time.
   2.397 +Such new versions will be similar in spirit to the present version,
   2.398 +but may differ in detail to address new problems or concerns.
   2.399 +
   2.400 +Each version is given a distinguishing version number.  If the Library
   2.401 +specifies a version number of this License which applies to it and
   2.402 +"any later version", you have the option of following the terms and
   2.403 +conditions either of that version or of any later version published by
   2.404 +the Free Software Foundation.  If the Library does not specify a
   2.405 +license version number, you may choose any version ever published by
   2.406 +the Free Software Foundation.
   2.407 +
   2.408 +  14. If you wish to incorporate parts of the Library into other free
   2.409 +programs whose distribution conditions are incompatible with these,
   2.410 +write to the author to ask for permission.  For software which is
   2.411 +copyrighted by the Free Software Foundation, write to the Free
   2.412 +Software Foundation; we sometimes make exceptions for this.  Our
   2.413 +decision will be guided by the two goals of preserving the free status
   2.414 +of all derivatives of our free software and of promoting the sharing
   2.415 +and reuse of software generally.
   2.416 +
   2.417 +			    NO WARRANTY
   2.418 +
   2.419 +  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
   2.420 +WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
   2.421 +EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
   2.422 +OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
   2.423 +KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
   2.424 +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   2.425 +PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
   2.426 +LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
   2.427 +THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
   2.428 +
   2.429 +  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
   2.430 +WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
   2.431 +AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
   2.432 +FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
   2.433 +CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
   2.434 +LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
   2.435 +RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
   2.436 +FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
   2.437 +SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
   2.438 +DAMAGES.
   2.439 +
   2.440 +		     END OF TERMS AND CONDITIONS
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/Makefile.am	Thu Oct 21 18:02:08 1999 +0000
     3.3 @@ -0,0 +1,30 @@
     3.4 +# Makefile.am for the SDL sample mixer library and players
     3.5 +
     3.6 +lib_LTLIBRARIES = libmixer.la
     3.7 +
     3.8 +SUBDIRS = mikmod timidity
     3.9 +
    3.10 +libmixerincludedir = $(includedir)
    3.11 +libmixerinclude_HEADERS =	\
    3.12 +	mixer.h
    3.13 +
    3.14 +libmixer_la_SOURCES =		\
    3.15 +	mixer.c			\
    3.16 +	music.c			\
    3.17 +	music_cmd.c		\
    3.18 +	music_cmd.h		\
    3.19 +	wave.h			\
    3.20 +	wavestream.c		\
    3.21 +	wavestream.h
    3.22 +
    3.23 +libmixer_la_LDFLAGS = 		\
    3.24 +        -release $(LT_RELEASE)	\
    3.25 +	-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
    3.26 +libmixer_la_LIBADD =		\
    3.27 +	mikmod/libmikmod.la	\
    3.28 +	timidity/libtimidity.la
    3.29 +
    3.30 +bin_PROGRAMS = playwave playmus
    3.31 +
    3.32 +playwave_LDADD = libmixer.la
    3.33 +playmus_LDADD = libmixer.la
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/Makefile.in	Thu Oct 21 18:02:08 1999 +0000
     4.3 @@ -0,0 +1,559 @@
     4.4 +# Makefile.in generated automatically by automake 1.4a from Makefile.am
     4.5 +
     4.6 +# Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     4.7 +# This Makefile.in is free software; the Free Software Foundation
     4.8 +# gives unlimited permission to copy and/or distribute it,
     4.9 +# with or without modifications, as long as this notice is preserved.
    4.10 +
    4.11 +# This program is distributed in the hope that it will be useful,
    4.12 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    4.13 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    4.14 +# PARTICULAR PURPOSE.
    4.15 +
    4.16 +# Makefile.am for the SDL sample mixer library and players
    4.17 +
    4.18 +
    4.19 +SHELL = @SHELL@
    4.20 +
    4.21 +srcdir = @srcdir@
    4.22 +top_srcdir = @top_srcdir@
    4.23 +VPATH = @srcdir@
    4.24 +prefix = @prefix@
    4.25 +exec_prefix = @exec_prefix@
    4.26 +
    4.27 +bindir = @bindir@
    4.28 +sbindir = @sbindir@
    4.29 +libexecdir = @libexecdir@
    4.30 +datadir = @datadir@
    4.31 +sysconfdir = @sysconfdir@
    4.32 +sharedstatedir = @sharedstatedir@
    4.33 +localstatedir = @localstatedir@
    4.34 +libdir = @libdir@
    4.35 +infodir = @infodir@
    4.36 +mandir = @mandir@
    4.37 +includedir = @includedir@
    4.38 +oldincludedir = /usr/include
    4.39 +
    4.40 +DESTDIR =
    4.41 +
    4.42 +pkgdatadir = $(datadir)/@PACKAGE@
    4.43 +pkglibdir = $(libdir)/@PACKAGE@
    4.44 +pkgincludedir = $(includedir)/@PACKAGE@
    4.45 +
    4.46 +top_builddir = .
    4.47 +
    4.48 +ACLOCAL = @ACLOCAL@
    4.49 +AUTOCONF = @AUTOCONF@
    4.50 +AUTOMAKE = @AUTOMAKE@
    4.51 +AUTOHEADER = @AUTOHEADER@
    4.52 +
    4.53 +INSTALL = @INSTALL@
    4.54 +INSTALL_PROGRAM = @INSTALL_PROGRAM@
    4.55 +INSTALL_DATA = @INSTALL_DATA@
    4.56 +INSTALL_SCRIPT = @INSTALL_SCRIPT@
    4.57 +INSTALL_STRIP_FLAG =
    4.58 +transform = @program_transform_name@
    4.59 +
    4.60 +NORMAL_INSTALL = :
    4.61 +PRE_INSTALL = :
    4.62 +POST_INSTALL = :
    4.63 +NORMAL_UNINSTALL = :
    4.64 +PRE_UNINSTALL = :
    4.65 +POST_UNINSTALL = :
    4.66 +host_alias = @host_alias@
    4.67 +host_triplet = @host@
    4.68 +AS = @AS@
    4.69 +BINARY_AGE = @BINARY_AGE@
    4.70 +CC = @CC@
    4.71 +DLLTOOL = @DLLTOOL@
    4.72 +INTERFACE_AGE = @INTERFACE_AGE@
    4.73 +LD = @LD@
    4.74 +LIBTOOL = @LIBTOOL@
    4.75 +LN_S = @LN_S@
    4.76 +LT_AGE = @LT_AGE@
    4.77 +LT_CURRENT = @LT_CURRENT@
    4.78 +LT_RELEASE = @LT_RELEASE@
    4.79 +LT_REVISION = @LT_REVISION@
    4.80 +MAJOR_VERSION = @MAJOR_VERSION@
    4.81 +MAKEINFO = @MAKEINFO@
    4.82 +MICRO_VERSION = @MICRO_VERSION@
    4.83 +MINOR_VERSION = @MINOR_VERSION@
    4.84 +NM = @NM@
    4.85 +OBJDUMP = @OBJDUMP@
    4.86 +PACKAGE = @PACKAGE@
    4.87 +RANLIB = @RANLIB@
    4.88 +SDL_CFLAGS = @SDL_CFLAGS@
    4.89 +SDL_CONFIG = @SDL_CONFIG@
    4.90 +SDL_LIBS = @SDL_LIBS@
    4.91 +VERSION = @VERSION@
    4.92 +
    4.93 +lib_LTLIBRARIES = libmixer.la
    4.94 +
    4.95 +SUBDIRS = mikmod timidity
    4.96 +
    4.97 +libmixerincludedir = $(includedir)
    4.98 +libmixerinclude_HEADERS =  	mixer.h
    4.99 +
   4.100 +
   4.101 +libmixer_la_SOURCES =  	mixer.c				music.c				music_cmd.c			music_cmd.h			wave.h				wavestream.c			wavestream.h
   4.102 +
   4.103 +
   4.104 +libmixer_la_LDFLAGS =          -release $(LT_RELEASE)		-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
   4.105 +
   4.106 +libmixer_la_LIBADD =  	mikmod/libmikmod.la		timidity/libtimidity.la
   4.107 +
   4.108 +
   4.109 +bin_PROGRAMS = playwave playmus
   4.110 +
   4.111 +playwave_LDADD = libmixer.la
   4.112 +playmus_LDADD = libmixer.la
   4.113 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
   4.114 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
   4.115 +CONFIG_CLEAN_FILES = 
   4.116 +LTLIBRARIES =  $(lib_LTLIBRARIES)
   4.117 +
   4.118 +
   4.119 +DEFS = @DEFS@ -I. -I$(srcdir) 
   4.120 +CPPFLAGS = @CPPFLAGS@
   4.121 +LDFLAGS = @LDFLAGS@
   4.122 +LIBS = @LIBS@
   4.123 +libmixer_la_DEPENDENCIES =  mikmod/libmikmod.la timidity/libtimidity.la
   4.124 +libmixer_la_OBJECTS =  mixer.lo music.lo music_cmd.lo wavestream.lo
   4.125 +PROGRAMS =  $(bin_PROGRAMS)
   4.126 +
   4.127 +playwave_SOURCES = playwave.c
   4.128 +playwave_OBJECTS =  playwave.o
   4.129 +playwave_DEPENDENCIES =  libmixer.la
   4.130 +playwave_LDFLAGS = 
   4.131 +playmus_SOURCES = playmus.c
   4.132 +playmus_OBJECTS =  playmus.o
   4.133 +playmus_DEPENDENCIES =  libmixer.la
   4.134 +playmus_LDFLAGS = 
   4.135 +CFLAGS = @CFLAGS@
   4.136 +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
   4.137 +LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
   4.138 +CCLD = $(CC)
   4.139 +LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
   4.140 +HEADERS =  $(libmixerinclude_HEADERS)
   4.141 +
   4.142 +DIST_COMMON =  README COPYING Makefile.am Makefile.in acinclude.m4 \
   4.143 +aclocal.m4 config.guess config.sub configure configure.in install-sh \
   4.144 +ltconfig ltmain.sh missing mkinstalldirs
   4.145 +
   4.146 +
   4.147 +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
   4.148 +
   4.149 +TAR = gtar
   4.150 +GZIP_ENV = --best
   4.151 +DEP_FILES =  .deps/mixer.P .deps/music.P .deps/music_cmd.P \
   4.152 +.deps/playmus.P .deps/playwave.P .deps/wavestream.P
   4.153 +SOURCES = $(libmixer_la_SOURCES) playwave.c playmus.c
   4.154 +OBJECTS = $(libmixer_la_OBJECTS) playwave.o playmus.o
   4.155 +
   4.156 +all: all-redirect
   4.157 +.SUFFIXES:
   4.158 +.SUFFIXES: .S .c .lo .o .s
   4.159 +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 
   4.160 +	cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile
   4.161 +
   4.162 +Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status $(BUILT_SOURCES)
   4.163 +	cd $(top_builddir) \
   4.164 +	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
   4.165 +
   4.166 +$(ACLOCAL_M4):  configure.in  acinclude.m4
   4.167 +	cd $(srcdir) && $(ACLOCAL)
   4.168 +
   4.169 +config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
   4.170 +	$(SHELL) ./config.status --recheck
   4.171 +$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
   4.172 +	cd $(srcdir) && $(AUTOCONF)
   4.173 +
   4.174 +mostlyclean-libLTLIBRARIES:
   4.175 +
   4.176 +clean-libLTLIBRARIES:
   4.177 +	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
   4.178 +
   4.179 +distclean-libLTLIBRARIES:
   4.180 +
   4.181 +maintainer-clean-libLTLIBRARIES:
   4.182 +
   4.183 +install-libLTLIBRARIES: $(lib_LTLIBRARIES)
   4.184 +	@$(NORMAL_INSTALL)
   4.185 +	$(mkinstalldirs) $(DESTDIR)$(libdir)
   4.186 +	@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
   4.187 +	  if test -f $$p; then \
   4.188 +	    echo "$(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
   4.189 +	    $(LIBTOOL)  --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
   4.190 +	  else :; fi; \
   4.191 +	done
   4.192 +
   4.193 +uninstall-libLTLIBRARIES:
   4.194 +	@$(NORMAL_UNINSTALL)
   4.195 +	list='$(lib_LTLIBRARIES)'; for p in $$list; do \
   4.196 +	  $(LIBTOOL)  --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
   4.197 +	done
   4.198 +
   4.199 +.s.o:
   4.200 +	$(COMPILE) -c $<
   4.201 +
   4.202 +.S.o:
   4.203 +	$(COMPILE) -c $<
   4.204 +
   4.205 +mostlyclean-compile:
   4.206 +	-rm -f *.o core *.core
   4.207 +
   4.208 +clean-compile:
   4.209 +
   4.210 +distclean-compile:
   4.211 +	-rm -f *.tab.c
   4.212 +
   4.213 +maintainer-clean-compile:
   4.214 +
   4.215 +.s.lo:
   4.216 +	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
   4.217 +
   4.218 +.S.lo:
   4.219 +	$(LIBTOOL) --mode=compile $(COMPILE) -c $<
   4.220 +
   4.221 +mostlyclean-libtool:
   4.222 +	-rm -f *.lo
   4.223 +
   4.224 +clean-libtool:
   4.225 +	-rm -rf .libs _libs
   4.226 +
   4.227 +distclean-libtool:
   4.228 +
   4.229 +maintainer-clean-libtool:
   4.230 +
   4.231 +libmixer.la: $(libmixer_la_OBJECTS) $(libmixer_la_DEPENDENCIES)
   4.232 +	$(LINK) -rpath $(libdir) $(libmixer_la_LDFLAGS) $(libmixer_la_OBJECTS) $(libmixer_la_LIBADD) $(LIBS)
   4.233 +
   4.234 +mostlyclean-binPROGRAMS:
   4.235 +
   4.236 +clean-binPROGRAMS:
   4.237 +	-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
   4.238 +
   4.239 +distclean-binPROGRAMS:
   4.240 +
   4.241 +maintainer-clean-binPROGRAMS:
   4.242 +
   4.243 +install-binPROGRAMS: $(bin_PROGRAMS)
   4.244 +	@$(NORMAL_INSTALL)
   4.245 +	$(mkinstalldirs) $(DESTDIR)$(bindir)
   4.246 +	@list='$(bin_PROGRAMS)'; for p in $$list; do \
   4.247 +	  if test -f $$p; then \
   4.248 +	    echo " $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
   4.249 +	    $(LIBTOOL)  --mode=install $(INSTALL_PROGRAM) $(INSTALL_STRIP_FLAG) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
   4.250 +	  else :; fi; \
   4.251 +	done
   4.252 +
   4.253 +uninstall-binPROGRAMS:
   4.254 +	@$(NORMAL_UNINSTALL)
   4.255 +	list='$(bin_PROGRAMS)'; for p in $$list; do \
   4.256 +	  rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
   4.257 +	done
   4.258 +
   4.259 +playwave: $(playwave_OBJECTS) $(playwave_DEPENDENCIES)
   4.260 +	@rm -f playwave
   4.261 +	$(LINK) $(playwave_LDFLAGS) $(playwave_OBJECTS) $(playwave_LDADD) $(LIBS)
   4.262 +
   4.263 +playmus: $(playmus_OBJECTS) $(playmus_DEPENDENCIES)
   4.264 +	@rm -f playmus
   4.265 +	$(LINK) $(playmus_LDFLAGS) $(playmus_OBJECTS) $(playmus_LDADD) $(LIBS)
   4.266 +
   4.267 +install-libmixerincludeHEADERS: $(libmixerinclude_HEADERS)
   4.268 +	@$(NORMAL_INSTALL)
   4.269 +	$(mkinstalldirs) $(DESTDIR)$(libmixerincludedir)
   4.270 +	@list='$(libmixerinclude_HEADERS)'; for p in $$list; do \
   4.271 +	  if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
   4.272 +	  echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libmixerincludedir)/$$p"; \
   4.273 +	  $(INSTALL_DATA) $$d$$p $(DESTDIR)$(libmixerincludedir)/$$p; \
   4.274 +	done
   4.275 +
   4.276 +uninstall-libmixerincludeHEADERS:
   4.277 +	@$(NORMAL_UNINSTALL)
   4.278 +	list='$(libmixerinclude_HEADERS)'; for p in $$list; do \
   4.279 +	  rm -f $(DESTDIR)$(libmixerincludedir)/$$p; \
   4.280 +	done
   4.281 +
   4.282 +# This directory's subdirectories are mostly independent; you can cd
   4.283 +# into them and run `make' without going through this Makefile.
   4.284 +# To change the values of `make' variables: instead of editing Makefiles,
   4.285 +# (1) if the variable is set in `config.status', edit `config.status'
   4.286 +#     (which will cause the Makefiles to be regenerated when you run `make');
   4.287 +# (2) otherwise, pass the desired values on the `make' command line.
   4.288 +
   4.289 +@SET_MAKE@
   4.290 +
   4.291 +all-recursive install-data-recursive install-exec-recursive \
   4.292 +installdirs-recursive install-recursive uninstall-recursive  \
   4.293 +check-recursive installcheck-recursive info-recursive dvi-recursive:
   4.294 +	@set fnord $(MAKEFLAGS); amf=$$2; \
   4.295 +	dot_seen=no; \
   4.296 +	target=`echo $@ | sed s/-recursive//`; \
   4.297 +	list='$(SUBDIRS)'; for subdir in $$list; do \
   4.298 +	  echo "Making $$target in $$subdir"; \
   4.299 +	  if test "$$subdir" = "."; then \
   4.300 +	    dot_seen=yes; \
   4.301 +	    local_target="$$target-am"; \
   4.302 +	  else \
   4.303 +	    local_target="$$target"; \
   4.304 +	  fi; \
   4.305 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
   4.306 +	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
   4.307 +	done; \
   4.308 +	if test "$$dot_seen" = "no"; then \
   4.309 +	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
   4.310 +	fi; test -z "$$fail"
   4.311 +
   4.312 +mostlyclean-recursive clean-recursive distclean-recursive \
   4.313 +maintainer-clean-recursive:
   4.314 +	@set fnord $(MAKEFLAGS); amf=$$2; \
   4.315 +	dot_seen=no; \
   4.316 +	rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
   4.317 +	  rev="$$subdir $$rev"; \
   4.318 +	  test "$$subdir" = "." && dot_seen=yes; \
   4.319 +	done; \
   4.320 +	test "$$dot_seen" = "no" && rev=". $$rev"; \
   4.321 +	target=`echo $@ | sed s/-recursive//`; \
   4.322 +	for subdir in $$rev; do \
   4.323 +	  echo "Making $$target in $$subdir"; \
   4.324 +	  if test "$$subdir" = "."; then \
   4.325 +	    local_target="$$target-am"; \
   4.326 +	  else \
   4.327 +	    local_target="$$target"; \
   4.328 +	  fi; \
   4.329 +	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
   4.330 +	   || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
   4.331 +	done && test -z "$$fail"
   4.332 +tags-recursive:
   4.333 +	list='$(SUBDIRS)'; for subdir in $$list; do \
   4.334 +	  test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
   4.335 +	done
   4.336 +
   4.337 +tags: TAGS
   4.338 +
   4.339 +ID: $(HEADERS) $(SOURCES) $(LISP)
   4.340 +	list='$(SOURCES) $(HEADERS)'; \
   4.341 +	unique=`for i in $$list; do echo $$i; done | \
   4.342 +	  awk '    { files[$$0] = 1; } \
   4.343 +	       END { for (i in files) print i; }'`; \
   4.344 +	here=`pwd` && cd $(srcdir) \
   4.345 +	  && mkid -f$$here/ID $$unique $(LISP)
   4.346 +
   4.347 +TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) $(LISP)
   4.348 +	tags=; \
   4.349 +	here=`pwd`; \
   4.350 +	list='$(SUBDIRS)'; for subdir in $$list; do \
   4.351 +   if test "$$subdir" = .; then :; else \
   4.352 +	    test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
   4.353 +   fi; \
   4.354 +	done; \
   4.355 +	list='$(SOURCES) $(HEADERS)'; \
   4.356 +	unique=`for i in $$list; do echo $$i; done | \
   4.357 +	  awk '    { files[$$0] = 1; } \
   4.358 +	       END { for (i in files) print i; }'`; \
   4.359 +	test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
   4.360 +	  || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags  $$unique $(LISP) -o $$here/TAGS)
   4.361 +
   4.362 +mostlyclean-tags:
   4.363 +
   4.364 +clean-tags:
   4.365 +
   4.366 +distclean-tags:
   4.367 +	-rm -f TAGS ID
   4.368 +
   4.369 +maintainer-clean-tags:
   4.370 +
   4.371 +distdir = $(PACKAGE)-$(VERSION)
   4.372 +top_distdir = $(distdir)
   4.373 +
   4.374 +# This target untars the dist file and tries a VPATH configuration.  Then
   4.375 +# it guarantees that the distribution is self-contained by making another
   4.376 +# tarfile.
   4.377 +distcheck: dist
   4.378 +	-rm -rf $(distdir)
   4.379 +	GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz
   4.380 +	mkdir $(distdir)/=build
   4.381 +	mkdir $(distdir)/=inst
   4.382 +	dc_install_base=`cd $(distdir)/=inst && pwd`; \
   4.383 +	cd $(distdir)/=build \
   4.384 +	  && ../configure --srcdir=.. --prefix=$$dc_install_base \
   4.385 +	  && $(MAKE) $(AM_MAKEFLAGS) \
   4.386 +	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
   4.387 +	  && $(MAKE) $(AM_MAKEFLAGS) check \
   4.388 +	  && $(MAKE) $(AM_MAKEFLAGS) install \
   4.389 +	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
   4.390 +	  && $(MAKE) $(AM_MAKEFLAGS) dist
   4.391 +	-rm -rf $(distdir)
   4.392 +	@banner="$(distdir).tar.gz is ready for distribution"; \
   4.393 +	dashes=`echo "$$banner" | sed s/./=/g`; \
   4.394 +	echo "$$dashes"; \
   4.395 +	echo "$$banner"; \
   4.396 +	echo "$$dashes"
   4.397 +dist: distdir
   4.398 +	-chmod -R a+r $(distdir)
   4.399 +	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
   4.400 +	-rm -rf $(distdir)
   4.401 +dist-all: distdir
   4.402 +	-chmod -R a+r $(distdir)
   4.403 +	GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir)
   4.404 +	-rm -rf $(distdir)
   4.405 +distdir: $(DISTFILES)
   4.406 +	-rm -rf $(distdir)
   4.407 +	mkdir $(distdir)
   4.408 +	-chmod 777 $(distdir)
   4.409 +	here=`cd $(top_builddir) && pwd`; \
   4.410 +	top_distdir=`cd $(distdir) && pwd`; \
   4.411 +	distdir=`cd $(distdir) && pwd`; \
   4.412 +	cd $(top_srcdir) \
   4.413 +	  && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --foreign Makefile
   4.414 +	@for file in $(DISTFILES); do \
   4.415 +	  d=$(srcdir); \
   4.416 +	  if test -d $$d/$$file; then \
   4.417 +	    cp -pr $$d/$$file $(distdir)/$$file; \
   4.418 +	  else \
   4.419 +	    test -f $(distdir)/$$file \
   4.420 +	    || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
   4.421 +	    || cp -p $$d/$$file $(distdir)/$$file || :; \
   4.422 +	  fi; \
   4.423 +	done
   4.424 +	for subdir in $(SUBDIRS); do \
   4.425 +	  if test "$$subdir" = .; then :; else \
   4.426 +	    test -d $(distdir)/$$subdir \
   4.427 +	    || mkdir $(distdir)/$$subdir \
   4.428 +	    || exit 1; \
   4.429 +	    chmod 777 $(distdir)/$$subdir; \
   4.430 +	    (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir=../$(distdir) distdir=../$(distdir)/$$subdir distdir) \
   4.431 +	      || exit 1; \
   4.432 +	  fi; \
   4.433 +	done
   4.434 +
   4.435 +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
   4.436 +
   4.437 +-include $(DEP_FILES)
   4.438 +
   4.439 +mostlyclean-depend:
   4.440 +
   4.441 +clean-depend:
   4.442 +
   4.443 +distclean-depend:
   4.444 +	-rm -rf .deps
   4.445 +
   4.446 +maintainer-clean-depend:
   4.447 +
   4.448 +%.o: %.c
   4.449 +	@echo '$(COMPILE) -c $<'; \
   4.450 +	$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
   4.451 +	@-cp .deps/$(*F).pp .deps/$(*F).P; \
   4.452 +	tr ' ' '\012' < .deps/$(*F).pp \
   4.453 +	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
   4.454 +	    >> .deps/$(*F).P; \
   4.455 +	rm .deps/$(*F).pp
   4.456 +
   4.457 +%.lo: %.c
   4.458 +	@echo '$(LTCOMPILE) -c $<'; \
   4.459 +	$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
   4.460 +	@-sed -e 's/^\([^:]*\)\.o[ 	]*:/\1.lo \1.o :/' \
   4.461 +	  < .deps/$(*F).pp > .deps/$(*F).P; \
   4.462 +	tr ' ' '\012' < .deps/$(*F).pp \
   4.463 +	  | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
   4.464 +	    >> .deps/$(*F).P; \
   4.465 +	rm -f .deps/$(*F).pp
   4.466 +info-am:
   4.467 +info: info-recursive
   4.468 +dvi-am:
   4.469 +dvi: dvi-recursive
   4.470 +check-am: all-am
   4.471 +check: check-recursive
   4.472 +installcheck-am:
   4.473 +installcheck: installcheck-recursive
   4.474 +install-exec-am: install-libLTLIBRARIES install-binPROGRAMS
   4.475 +install-exec: install-exec-recursive
   4.476 +
   4.477 +install-data-am: install-libmixerincludeHEADERS
   4.478 +install-data: install-data-recursive
   4.479 +
   4.480 +install-am: all-am
   4.481 +	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
   4.482 +install: install-recursive
   4.483 +uninstall-am: uninstall-libLTLIBRARIES uninstall-binPROGRAMS \
   4.484 +		uninstall-libmixerincludeHEADERS
   4.485 +uninstall: uninstall-recursive
   4.486 +all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(HEADERS)
   4.487 +all-redirect: all-recursive
   4.488 +install-strip:
   4.489 +	$(MAKE) $(AM_MAKEFLAGS) INSTALL_STRIP_FLAG=-s install
   4.490 +installdirs: installdirs-recursive
   4.491 +installdirs-am:
   4.492 +	$(mkinstalldirs)  $(DESTDIR)$(libdir) $(DESTDIR)$(bindir) \
   4.493 +		$(DESTDIR)$(libmixerincludedir)
   4.494 +
   4.495 +
   4.496 +mostlyclean-generic:
   4.497 +
   4.498 +clean-generic:
   4.499 +
   4.500 +distclean-generic:
   4.501 +	-rm -f Makefile $(CONFIG_CLEAN_FILES)
   4.502 +	-rm -f config.cache config.log stamp-h stamp-h[0-9]*
   4.503 +
   4.504 +maintainer-clean-generic:
   4.505 +mostlyclean-am:  mostlyclean-libLTLIBRARIES mostlyclean-compile \
   4.506 +		mostlyclean-libtool mostlyclean-binPROGRAMS \
   4.507 +		mostlyclean-tags mostlyclean-depend mostlyclean-generic
   4.508 +
   4.509 +mostlyclean: mostlyclean-recursive
   4.510 +
   4.511 +clean-am:  clean-libLTLIBRARIES clean-compile clean-libtool \
   4.512 +		clean-binPROGRAMS clean-tags clean-depend clean-generic \
   4.513 +		mostlyclean-am
   4.514 +
   4.515 +clean: clean-recursive
   4.516 +
   4.517 +distclean-am:  distclean-libLTLIBRARIES distclean-compile \
   4.518 +		distclean-libtool distclean-binPROGRAMS distclean-tags \
   4.519 +		distclean-depend distclean-generic clean-am
   4.520 +	-rm -f libtool
   4.521 +
   4.522 +distclean: distclean-recursive
   4.523 +	-rm -f config.status
   4.524 +
   4.525 +maintainer-clean-am:  maintainer-clean-libLTLIBRARIES \
   4.526 +		maintainer-clean-compile maintainer-clean-libtool \
   4.527 +		maintainer-clean-binPROGRAMS maintainer-clean-tags \
   4.528 +		maintainer-clean-depend maintainer-clean-generic \
   4.529 +		distclean-am
   4.530 +	@echo "This command is intended for maintainers to use;"
   4.531 +	@echo "it deletes files that may require special tools to rebuild."
   4.532 +
   4.533 +maintainer-clean: maintainer-clean-recursive
   4.534 +	-rm -f config.status
   4.535 +
   4.536 +.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
   4.537 +clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
   4.538 +uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
   4.539 +distclean-compile clean-compile maintainer-clean-compile \
   4.540 +mostlyclean-libtool distclean-libtool clean-libtool \
   4.541 +maintainer-clean-libtool mostlyclean-binPROGRAMS distclean-binPROGRAMS \
   4.542 +clean-binPROGRAMS maintainer-clean-binPROGRAMS uninstall-binPROGRAMS \
   4.543 +install-binPROGRAMS uninstall-libmixerincludeHEADERS \
   4.544 +install-libmixerincludeHEADERS install-data-recursive \
   4.545 +uninstall-data-recursive install-exec-recursive \
   4.546 +uninstall-exec-recursive installdirs-recursive uninstalldirs-recursive \
   4.547 +all-recursive check-recursive installcheck-recursive info-recursive \
   4.548 +dvi-recursive mostlyclean-recursive distclean-recursive clean-recursive \
   4.549 +maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
   4.550 +distclean-tags clean-tags maintainer-clean-tags distdir \
   4.551 +mostlyclean-depend distclean-depend clean-depend \
   4.552 +maintainer-clean-depend info-am info dvi-am dvi check check-am \
   4.553 +installcheck-am installcheck install-exec-am install-exec \
   4.554 +install-data-am install-data install-am install uninstall-am uninstall \
   4.555 +all-redirect all-am all installdirs-am installdirs mostlyclean-generic \
   4.556 +distclean-generic clean-generic maintainer-clean-generic clean \
   4.557 +mostlyclean distclean maintainer-clean
   4.558 +
   4.559 +
   4.560 +# Tell versions [3.59,3.63) of GNU make to not export all variables.
   4.561 +# Otherwise a system limit (for SysV at least) may be exceeded.
   4.562 +.NOEXPORT:
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/README	Thu Oct 21 18:02:08 1999 +0000
     5.3 @@ -0,0 +1,27 @@
     5.4 +
     5.5 +Due to popular demand, here is a simple multi-channel audio mixer.
     5.6 +It supports 4 channels of 16 bit stereo audio, plus a single channel
     5.7 +of music, mixed by the popular MikMod MOD, Timidity MIDI and SMPEG MP3
     5.8 +libraries.
     5.9 +
    5.10 +See the header file mixer.h and the examples playwave.c and playmus.c
    5.11 +for documentation on this mixer library.
    5.12 +
    5.13 +The mixer can currently load Microsoft WAVE files as audio samples
    5.14 +and can load MIDI files via Timidity and the following music formats
    5.15 +via MikMod:  .MOD .S3M .IT .XM. It can also load MP3 music using the
    5.16 +SMPEG library.
    5.17 +
    5.18 +The process of mixing MIDI files to wave output is very CPU intensive,
    5.19 +so if playing regular WAVE files sound great, but playing MIDI files
    5.20 +sound choppy, try using 8-bit audio, mono audio, or lower frequencies.
    5.21 +
    5.22 +To play MIDI files, you'll need to get a complete set of GUS patches
    5.23 +from:  http://www.devolution.com/~slouken/SDL/timidity/timidity.tar.gz
    5.24 +and unpack them in /usr/local/lib under UNIX, and C:\ under Win32.
    5.25 +
    5.26 +You may add panning, reverb, echo, whatever, but if you do, please
    5.27 +mail changes back to me, Sam Lantinga at slouken@devolution.com
    5.28 +
    5.29 +This library is available under the GNU Library General Public License.
    5.30 +
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/acinclude.m4	Thu Oct 21 18:02:08 1999 +0000
     6.3 @@ -0,0 +1,165 @@
     6.4 +# Configure paths for SDL
     6.5 +# Sam Lantinga 9/21/99
     6.6 +# stolen from Manish Singh
     6.7 +# stolen back from Frank Belew
     6.8 +# stolen from Manish Singh
     6.9 +# Shamelessly stolen from Owen Taylor
    6.10 +
    6.11 +dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
    6.12 +dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
    6.13 +dnl
    6.14 +AC_DEFUN(AM_PATH_SDL,
    6.15 +[dnl 
    6.16 +dnl Get the cflags and libraries from the sdl-config script
    6.17 +dnl
    6.18 +AC_ARG_WITH(sdl-prefix,[  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)],
    6.19 +            sdl_prefix="$withval", sdl_prefix="")
    6.20 +AC_ARG_WITH(sdl-exec-prefix,[  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
    6.21 +            sdl_exec_prefix="$withval", sdl_exec_prefix="")
    6.22 +AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run a test SDL program],
    6.23 +		    , enable_sdltest=yes)
    6.24 +
    6.25 +  if test x$sdl_exec_prefix != x ; then
    6.26 +     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
    6.27 +     if test x${SDL_CONFIG+set} != xset ; then
    6.28 +        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
    6.29 +     fi
    6.30 +  fi
    6.31 +  if test x$sdl_prefix != x ; then
    6.32 +     sdl_args="$sdl_args --prefix=$sdl_prefix"
    6.33 +     if test x${SDL_CONFIG+set} != xset ; then
    6.34 +        SDL_CONFIG=$sdl_prefix/bin/sdl-config
    6.35 +     fi
    6.36 +  fi
    6.37 +
    6.38 +  AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
    6.39 +  min_sdl_version=ifelse([$1], ,0.11.0,$1)
    6.40 +  AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
    6.41 +  no_sdl=""
    6.42 +  if test "$SDL_CONFIG" = "no" ; then
    6.43 +    no_sdl=yes
    6.44 +  else
    6.45 +    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
    6.46 +    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
    6.47 +
    6.48 +    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
    6.49 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
    6.50 +    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
    6.51 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
    6.52 +    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
    6.53 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
    6.54 +    if test "x$enable_sdltest" = "xyes" ; then
    6.55 +      ac_save_CFLAGS="$CFLAGS"
    6.56 +      ac_save_LIBS="$LIBS"
    6.57 +      CFLAGS="$CFLAGS $SDL_CFLAGS"
    6.58 +      LIBS="$LIBS $SDL_LIBS"
    6.59 +dnl
    6.60 +dnl Now check if the installed SDL is sufficiently new. (Also sanity
    6.61 +dnl checks the results of sdl-config to some extent
    6.62 +dnl
    6.63 +      rm -f conf.sdltest
    6.64 +      AC_TRY_RUN([
    6.65 +#include <stdio.h>
    6.66 +#include <stdlib.h>
    6.67 +#include <string.h>
    6.68 +#include <SDL/SDL.h>
    6.69 +
    6.70 +char*
    6.71 +my_strdup (char *str)
    6.72 +{
    6.73 +  char *new_str;
    6.74 +  
    6.75 +  if (str)
    6.76 +    {
    6.77 +      new_str = malloc ((strlen (str) + 1) * sizeof(char));
    6.78 +      strcpy (new_str, str);
    6.79 +    }
    6.80 +  else
    6.81 +    new_str = NULL;
    6.82 +  
    6.83 +  return new_str;
    6.84 +}
    6.85 +
    6.86 +int main ()
    6.87 +{
    6.88 +  int major, minor, micro;
    6.89 +  char *tmp_version;
    6.90 +
    6.91 +  system ("touch conf.sdltest");
    6.92 +
    6.93 +  /* HP/UX 9 (%@#!) writes to sscanf strings */
    6.94 +  tmp_version = my_strdup("$min_sdl_version");
    6.95 +  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
    6.96 +     printf("%s, bad version string\n", "$min_sdl_version");
    6.97 +     exit(1);
    6.98 +   }
    6.99 +
   6.100 +   if (($sdl_major_version > major) ||
   6.101 +      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
   6.102 +      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
   6.103 +    {
   6.104 +      return 0;
   6.105 +    }
   6.106 +  else
   6.107 +    {
   6.108 +      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
   6.109 +      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
   6.110 +      printf("*** best to upgrade to the required version.\n");
   6.111 +      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
   6.112 +      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
   6.113 +      printf("*** config.cache before re-running configure\n");
   6.114 +      return 1;
   6.115 +    }
   6.116 +}
   6.117 +
   6.118 +],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
   6.119 +       CFLAGS="$ac_save_CFLAGS"
   6.120 +       LIBS="$ac_save_LIBS"
   6.121 +     fi
   6.122 +  fi
   6.123 +  if test "x$no_sdl" = x ; then
   6.124 +     AC_MSG_RESULT(yes)
   6.125 +     ifelse([$2], , :, [$2])     
   6.126 +  else
   6.127 +     AC_MSG_RESULT(no)
   6.128 +     if test "$SDL_CONFIG" = "no" ; then
   6.129 +       echo "*** The sdl-config script installed by SDL could not be found"
   6.130 +       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
   6.131 +       echo "*** your path, or set the SDL_CONFIG environment variable to the"
   6.132 +       echo "*** full path to sdl-config."
   6.133 +     else
   6.134 +       if test -f conf.sdltest ; then
   6.135 +        :
   6.136 +       else
   6.137 +          echo "*** Could not run SDL test program, checking why..."
   6.138 +          CFLAGS="$CFLAGS $SDL_CFLAGS"
   6.139 +          LIBS="$LIBS $SDL_LIBS"
   6.140 +          AC_TRY_LINK([
   6.141 +#include <stdio.h>
   6.142 +#include <SDL/SDL.h>
   6.143 +],      [ return 0; ],
   6.144 +        [ echo "*** The test program compiled, but did not run. This usually means"
   6.145 +          echo "*** that the run-time linker is not finding SDL or finding the wrong"
   6.146 +          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
   6.147 +          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
   6.148 +          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
   6.149 +          echo "*** is required on your system"
   6.150 +	  echo "***"
   6.151 +          echo "*** If you have an old version installed, it is best to remove it, although"
   6.152 +          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
   6.153 +        [ echo "*** The test program failed to compile or link. See the file config.log for the"
   6.154 +          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
   6.155 +          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
   6.156 +          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
   6.157 +          CFLAGS="$ac_save_CFLAGS"
   6.158 +          LIBS="$ac_save_LIBS"
   6.159 +       fi
   6.160 +     fi
   6.161 +     SDL_CFLAGS=""
   6.162 +     SDL_LIBS=""
   6.163 +     ifelse([$3], , :, [$3])
   6.164 +  fi
   6.165 +  AC_SUBST(SDL_CFLAGS)
   6.166 +  AC_SUBST(SDL_LIBS)
   6.167 +  rm -f conf.sdltest
   6.168 +])
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/aclocal.m4	Thu Oct 21 18:02:08 1999 +0000
     7.3 @@ -0,0 +1,713 @@
     7.4 +dnl aclocal.m4 generated automatically by aclocal 1.4a
     7.5 +
     7.6 +dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc.
     7.7 +dnl This file is free software; the Free Software Foundation
     7.8 +dnl gives unlimited permission to copy and/or distribute it,
     7.9 +dnl with or without modifications, as long as this notice is preserved.
    7.10 +
    7.11 +dnl This program is distributed in the hope that it will be useful,
    7.12 +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without
    7.13 +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
    7.14 +dnl PARTICULAR PURPOSE.
    7.15 +
    7.16 +# Configure paths for SDL
    7.17 +# Sam Lantinga 9/21/99
    7.18 +# stolen from Manish Singh
    7.19 +# stolen back from Frank Belew
    7.20 +# stolen from Manish Singh
    7.21 +# Shamelessly stolen from Owen Taylor
    7.22 +
    7.23 +dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]])
    7.24 +dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS
    7.25 +dnl
    7.26 +AC_DEFUN(AM_PATH_SDL,
    7.27 +[dnl 
    7.28 +dnl Get the cflags and libraries from the sdl-config script
    7.29 +dnl
    7.30 +AC_ARG_WITH(sdl-prefix,[  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)],
    7.31 +            sdl_prefix="$withval", sdl_prefix="")
    7.32 +AC_ARG_WITH(sdl-exec-prefix,[  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)],
    7.33 +            sdl_exec_prefix="$withval", sdl_exec_prefix="")
    7.34 +AC_ARG_ENABLE(sdltest, [  --disable-sdltest       Do not try to compile and run a test SDL program],
    7.35 +		    , enable_sdltest=yes)
    7.36 +
    7.37 +  if test x$sdl_exec_prefix != x ; then
    7.38 +     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
    7.39 +     if test x${SDL_CONFIG+set} != xset ; then
    7.40 +        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
    7.41 +     fi
    7.42 +  fi
    7.43 +  if test x$sdl_prefix != x ; then
    7.44 +     sdl_args="$sdl_args --prefix=$sdl_prefix"
    7.45 +     if test x${SDL_CONFIG+set} != xset ; then
    7.46 +        SDL_CONFIG=$sdl_prefix/bin/sdl-config
    7.47 +     fi
    7.48 +  fi
    7.49 +
    7.50 +  AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
    7.51 +  min_sdl_version=ifelse([$1], ,0.11.0,$1)
    7.52 +  AC_MSG_CHECKING(for SDL - version >= $min_sdl_version)
    7.53 +  no_sdl=""
    7.54 +  if test "$SDL_CONFIG" = "no" ; then
    7.55 +    no_sdl=yes
    7.56 +  else
    7.57 +    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
    7.58 +    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
    7.59 +
    7.60 +    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
    7.61 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
    7.62 +    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
    7.63 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
    7.64 +    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
    7.65 +           sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
    7.66 +    if test "x$enable_sdltest" = "xyes" ; then
    7.67 +      ac_save_CFLAGS="$CFLAGS"
    7.68 +      ac_save_LIBS="$LIBS"
    7.69 +      CFLAGS="$CFLAGS $SDL_CFLAGS"
    7.70 +      LIBS="$LIBS $SDL_LIBS"
    7.71 +dnl
    7.72 +dnl Now check if the installed SDL is sufficiently new. (Also sanity
    7.73 +dnl checks the results of sdl-config to some extent
    7.74 +dnl
    7.75 +      rm -f conf.sdltest
    7.76 +      AC_TRY_RUN([
    7.77 +#include <stdio.h>
    7.78 +#include <stdlib.h>
    7.79 +#include <string.h>
    7.80 +#include <SDL/SDL.h>
    7.81 +
    7.82 +char*
    7.83 +my_strdup (char *str)
    7.84 +{
    7.85 +  char *new_str;
    7.86 +  
    7.87 +  if (str)
    7.88 +    {
    7.89 +      new_str = malloc ((strlen (str) + 1) * sizeof(char));
    7.90 +      strcpy (new_str, str);
    7.91 +    }
    7.92 +  else
    7.93 +    new_str = NULL;
    7.94 +  
    7.95 +  return new_str;
    7.96 +}
    7.97 +
    7.98 +int main ()
    7.99 +{
   7.100 +  int major, minor, micro;
   7.101 +  char *tmp_version;
   7.102 +
   7.103 +  system ("touch conf.sdltest");
   7.104 +
   7.105 +  /* HP/UX 9 (%@#!) writes to sscanf strings */
   7.106 +  tmp_version = my_strdup("$min_sdl_version");
   7.107 +  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
   7.108 +     printf("%s, bad version string\n", "$min_sdl_version");
   7.109 +     exit(1);
   7.110 +   }
   7.111 +
   7.112 +   if (($sdl_major_version > major) ||
   7.113 +      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
   7.114 +      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
   7.115 +    {
   7.116 +      return 0;
   7.117 +    }
   7.118 +  else
   7.119 +    {
   7.120 +      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
   7.121 +      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
   7.122 +      printf("*** best to upgrade to the required version.\n");
   7.123 +      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
   7.124 +      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
   7.125 +      printf("*** config.cache before re-running configure\n");
   7.126 +      return 1;
   7.127 +    }
   7.128 +}
   7.129 +
   7.130 +],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
   7.131 +       CFLAGS="$ac_save_CFLAGS"
   7.132 +       LIBS="$ac_save_LIBS"
   7.133 +     fi
   7.134 +  fi
   7.135 +  if test "x$no_sdl" = x ; then
   7.136 +     AC_MSG_RESULT(yes)
   7.137 +     ifelse([$2], , :, [$2])     
   7.138 +  else
   7.139 +     AC_MSG_RESULT(no)
   7.140 +     if test "$SDL_CONFIG" = "no" ; then
   7.141 +       echo "*** The sdl-config script installed by SDL could not be found"
   7.142 +       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
   7.143 +       echo "*** your path, or set the SDL_CONFIG environment variable to the"
   7.144 +       echo "*** full path to sdl-config."
   7.145 +     else
   7.146 +       if test -f conf.sdltest ; then
   7.147 +        :
   7.148 +       else
   7.149 +          echo "*** Could not run SDL test program, checking why..."
   7.150 +          CFLAGS="$CFLAGS $SDL_CFLAGS"
   7.151 +          LIBS="$LIBS $SDL_LIBS"
   7.152 +          AC_TRY_LINK([
   7.153 +#include <stdio.h>
   7.154 +#include <SDL/SDL.h>
   7.155 +],      [ return 0; ],
   7.156 +        [ echo "*** The test program compiled, but did not run. This usually means"
   7.157 +          echo "*** that the run-time linker is not finding SDL or finding the wrong"
   7.158 +          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
   7.159 +          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
   7.160 +          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
   7.161 +          echo "*** is required on your system"
   7.162 +	  echo "***"
   7.163 +          echo "*** If you have an old version installed, it is best to remove it, although"
   7.164 +          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"],
   7.165 +        [ echo "*** The test program failed to compile or link. See the file config.log for the"
   7.166 +          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
   7.167 +          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
   7.168 +          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ])
   7.169 +          CFLAGS="$ac_save_CFLAGS"
   7.170 +          LIBS="$ac_save_LIBS"
   7.171 +       fi
   7.172 +     fi
   7.173 +     SDL_CFLAGS=""
   7.174 +     SDL_LIBS=""
   7.175 +     ifelse([$3], , :, [$3])
   7.176 +  fi
   7.177 +  AC_SUBST(SDL_CFLAGS)
   7.178 +  AC_SUBST(SDL_LIBS)
   7.179 +  rm -f conf.sdltest
   7.180 +])
   7.181 +
   7.182 +# Do all the work for Automake.  This macro actually does too much --
   7.183 +# some checks are only needed if your package does certain things.
   7.184 +# But this isn't really a big deal.
   7.185 +
   7.186 +# serial 1
   7.187 +
   7.188 +dnl Usage:
   7.189 +dnl AM_INIT_AUTOMAKE(package,version, [no-define])
   7.190 +
   7.191 +AC_DEFUN(AM_INIT_AUTOMAKE,
   7.192 +[AC_REQUIRE([AC_PROG_INSTALL])
   7.193 +dnl We require 2.13 because we rely on SHELL being computed by configure.
   7.194 +AC_PREREQ([2.13])
   7.195 +PACKAGE=[$1]
   7.196 +AC_SUBST(PACKAGE)
   7.197 +VERSION=[$2]
   7.198 +AC_SUBST(VERSION)
   7.199 +dnl test to see if srcdir already configured
   7.200 +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
   7.201 +  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
   7.202 +fi
   7.203 +ifelse([$3],,
   7.204 +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
   7.205 +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
   7.206 +AC_REQUIRE([AM_SANITY_CHECK])
   7.207 +AC_REQUIRE([AC_ARG_PROGRAM])
   7.208 +dnl FIXME This is truly gross.
   7.209 +missing_dir=`cd $ac_aux_dir && pwd`
   7.210 +AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
   7.211 +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
   7.212 +AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
   7.213 +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
   7.214 +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
   7.215 +AC_REQUIRE([AC_PROG_MAKE_SET])])
   7.216 +
   7.217 +#
   7.218 +# Check to make sure that the build environment is sane.
   7.219 +#
   7.220 +
   7.221 +AC_DEFUN(AM_SANITY_CHECK,
   7.222 +[AC_MSG_CHECKING([whether build environment is sane])
   7.223 +# Just in case
   7.224 +sleep 1
   7.225 +echo timestamp > conftestfile
   7.226 +# Do `set' in a subshell so we don't clobber the current shell's
   7.227 +# arguments.  Must try -L first in case configure is actually a
   7.228 +# symlink; some systems play weird games with the mod time of symlinks
   7.229 +# (eg FreeBSD returns the mod time of the symlink's containing
   7.230 +# directory).
   7.231 +if (
   7.232 +   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
   7.233 +   if test "[$]*" = "X"; then
   7.234 +      # -L didn't work.
   7.235 +      set X `ls -t $srcdir/configure conftestfile`
   7.236 +   fi
   7.237 +   if test "[$]*" != "X $srcdir/configure conftestfile" \
   7.238 +      && test "[$]*" != "X conftestfile $srcdir/configure"; then
   7.239 +
   7.240 +      # If neither matched, then we have a broken ls.  This can happen
   7.241 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
   7.242 +      # broken ls alias from the environment.  This has actually
   7.243 +      # happened.  Such a system could not be considered "sane".
   7.244 +      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
   7.245 +alias in your environment])
   7.246 +   fi
   7.247 +
   7.248 +   test "[$]2" = conftestfile
   7.249 +   )
   7.250 +then
   7.251 +   # Ok.
   7.252 +   :
   7.253 +else
   7.254 +   AC_MSG_ERROR([newly created file is older than distributed files!
   7.255 +Check your system clock])
   7.256 +fi
   7.257 +rm -f conftest*
   7.258 +AC_MSG_RESULT(yes)])
   7.259 +
   7.260 +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
   7.261 +dnl The program must properly implement --version.
   7.262 +AC_DEFUN(AM_MISSING_PROG,
   7.263 +[AC_MSG_CHECKING(for working $2)
   7.264 +# Run test in a subshell; some versions of sh will print an error if
   7.265 +# an executable is not found, even if stderr is redirected.
   7.266 +# Redirect stdin to placate older versions of autoconf.  Sigh.
   7.267 +if ($2 --version) < /dev/null > /dev/null 2>&1; then
   7.268 +   $1=$2
   7.269 +   AC_MSG_RESULT(found)
   7.270 +else
   7.271 +   $1="$3/missing $2"
   7.272 +   AC_MSG_RESULT(missing)
   7.273 +fi
   7.274 +AC_SUBST($1)])
   7.275 +
   7.276 +
   7.277 +# serial 41 AC_PROG_LIBTOOL
   7.278 +AC_DEFUN(AC_PROG_LIBTOOL,
   7.279 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
   7.280 +
   7.281 +# Save cache, so that ltconfig can load it
   7.282 +AC_CACHE_SAVE
   7.283 +
   7.284 +# Actually configure libtool.  ac_aux_dir is where install-sh is found.
   7.285 +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
   7.286 +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
   7.287 +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
   7.288 +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
   7.289 +${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
   7.290 +$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
   7.291 +|| AC_MSG_ERROR([libtool configure failed])
   7.292 +
   7.293 +# Reload cache, that may have been modified by ltconfig
   7.294 +AC_CACHE_LOAD
   7.295 +
   7.296 +# This can be used to rebuild libtool when needed
   7.297 +LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
   7.298 +
   7.299 +# Always use our own libtool.
   7.300 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
   7.301 +AC_SUBST(LIBTOOL)dnl
   7.302 +
   7.303 +# Redirect the config.log output again, so that the ltconfig log is not
   7.304 +# clobbered by the next message.
   7.305 +exec 5>>./config.log
   7.306 +])
   7.307 +
   7.308 +AC_DEFUN(AC_LIBTOOL_SETUP,
   7.309 +[AC_PREREQ(2.13)dnl
   7.310 +AC_REQUIRE([AC_ENABLE_SHARED])dnl
   7.311 +AC_REQUIRE([AC_ENABLE_STATIC])dnl
   7.312 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
   7.313 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
   7.314 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   7.315 +AC_REQUIRE([AC_PROG_CC])dnl
   7.316 +AC_REQUIRE([AC_PROG_LD])dnl
   7.317 +AC_REQUIRE([AC_PROG_NM])dnl
   7.318 +AC_REQUIRE([AC_PROG_LN_S])dnl
   7.319 +dnl
   7.320 +
   7.321 +AC_CHECK_TOOL(RANLIB, ranlib, :)
   7.322 +
   7.323 +# Check for any special flags to pass to ltconfig.
   7.324 +libtool_flags="--cache-file=$cache_file"
   7.325 +test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
   7.326 +test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
   7.327 +test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
   7.328 +test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
   7.329 +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
   7.330 +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN],
   7.331 +[libtool_flags="$libtool_flags --enable-dlopen"])
   7.332 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
   7.333 +[libtool_flags="$libtool_flags --enable-win32-dll"])
   7.334 +AC_ARG_ENABLE(libtool-lock,
   7.335 +  [  --disable-libtool-lock  avoid locking (might break parallel builds)])
   7.336 +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
   7.337 +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
   7.338 +
   7.339 +AC_ARG_WITH(pic,
   7.340 +  [  --with-pic              try to use only PIC/non-PIC objects [default=use both]],
   7.341 +     pic_mode="$withval", pic_mode=default)
   7.342 +test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
   7.343 +test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
   7.344 +
   7.345 +# Some flags need to be propagated to the compiler or linker for good
   7.346 +# libtool support.
   7.347 +case "$host" in
   7.348 +*-*-irix6*)
   7.349 +  # Find out which ABI we are using.
   7.350 +  echo '[#]line __oline__ "configure"' > conftest.$ac_ext
   7.351 +  if AC_TRY_EVAL(ac_compile); then
   7.352 +    case "`/usr/bin/file conftest.o`" in
   7.353 +    *32-bit*)
   7.354 +      LD="${LD-ld} -32"
   7.355 +      ;;
   7.356 +    *N32*)
   7.357 +      LD="${LD-ld} -n32"
   7.358 +      ;;
   7.359 +    *64-bit*)
   7.360 +      LD="${LD-ld} -64"
   7.361 +      ;;
   7.362 +    esac
   7.363 +  fi
   7.364 +  rm -rf conftest*
   7.365 +  ;;
   7.366 +
   7.367 +*-*-sco3.2v5*)
   7.368 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
   7.369 +  SAVE_CFLAGS="$CFLAGS"
   7.370 +  CFLAGS="$CFLAGS -belf"
   7.371 +  AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
   7.372 +    [AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])])
   7.373 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
   7.374 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
   7.375 +    CFLAGS="$SAVE_CFLAGS"
   7.376 +  fi
   7.377 +  ;;
   7.378 +
   7.379 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
   7.380 +[*-*-cygwin* | *-*-mingw*)
   7.381 +  AC_CHECK_TOOL(DLLTOOL, dlltool, false)
   7.382 +  AC_CHECK_TOOL(AS, as, false)
   7.383 +  AC_CHECK_TOOL(OBJDUMP, objdump, false)
   7.384 +
   7.385 +  # recent cygwin and mingw systems supply a stub DllMain which the user
   7.386 +  # can override, but on older systems we have to supply one
   7.387 +  AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
   7.388 +    [AC_TRY_LINK([DllMain (0, 0, 0);],
   7.389 +      [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);],
   7.390 +      [lt_cv_need_dllmain=yes],[lt_cv_need_dllmain=no])])
   7.391 +
   7.392 +  case $host in
   7.393 +  *-*-cygwin*)
   7.394 +    # cygwin systems need to pass --dll to the linker, and not link
   7.395 +    # crt.o which will require a WinMain@16 definition.
   7.396 +    lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
   7.397 +  *-*-mingw*)
   7.398 +    # old mingw systems require "-dll" to link a DLL, while more recent ones
   7.399 +    # require "-mdll"
   7.400 +    SAVE_CFLAGS="$CFLAGS"
   7.401 +    CFLAGS="$CFLAGS -mdll"
   7.402 +    AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
   7.403 +      [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
   7.404 +    CFLAGS="$SAVE_CFLAGS" ;;
   7.405 +  esac
   7.406 +  ;;
   7.407 +  ])
   7.408 +esac
   7.409 +])
   7.410 +
   7.411 +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
   7.412 +AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
   7.413 +
   7.414 +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
   7.415 +AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
   7.416 +
   7.417 +# AC_ENABLE_SHARED - implement the --enable-shared flag
   7.418 +# Usage: AC_ENABLE_SHARED[(DEFAULT)]
   7.419 +#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
   7.420 +#   `yes'.
   7.421 +AC_DEFUN(AC_ENABLE_SHARED, [dnl
   7.422 +define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
   7.423 +AC_ARG_ENABLE(shared,
   7.424 +changequote(<<, >>)dnl
   7.425 +<<  --enable-shared[=PKGS]  build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
   7.426 +changequote([, ])dnl
   7.427 +[p=${PACKAGE-default}
   7.428 +case "$enableval" in
   7.429 +yes) enable_shared=yes ;;
   7.430 +no) enable_shared=no ;;
   7.431 +*)
   7.432 +  enable_shared=no
   7.433 +  # Look at the argument we got.  We use all the common list separators.
   7.434 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
   7.435 +  for pkg in $enableval; do
   7.436 +    if test "X$pkg" = "X$p"; then
   7.437 +      enable_shared=yes
   7.438 +    fi
   7.439 +  done
   7.440 +  IFS="$ac_save_ifs"
   7.441 +  ;;
   7.442 +esac],
   7.443 +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
   7.444 +])
   7.445 +
   7.446 +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
   7.447 +AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   7.448 +AC_ENABLE_SHARED(no)])
   7.449 +
   7.450 +# AC_ENABLE_STATIC - implement the --enable-static flag
   7.451 +# Usage: AC_ENABLE_STATIC[(DEFAULT)]
   7.452 +#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
   7.453 +#   `yes'.
   7.454 +AC_DEFUN(AC_ENABLE_STATIC, [dnl
   7.455 +define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
   7.456 +AC_ARG_ENABLE(static,
   7.457 +changequote(<<, >>)dnl
   7.458 +<<  --enable-static[=PKGS]  build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
   7.459 +changequote([, ])dnl
   7.460 +[p=${PACKAGE-default}
   7.461 +case "$enableval" in
   7.462 +yes) enable_static=yes ;;
   7.463 +no) enable_static=no ;;
   7.464 +*)
   7.465 +  enable_static=no
   7.466 +  # Look at the argument we got.  We use all the common list separators.
   7.467 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
   7.468 +  for pkg in $enableval; do
   7.469 +    if test "X$pkg" = "X$p"; then
   7.470 +      enable_static=yes
   7.471 +    fi
   7.472 +  done
   7.473 +  IFS="$ac_save_ifs"
   7.474 +  ;;
   7.475 +esac],
   7.476 +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
   7.477 +])
   7.478 +
   7.479 +# AC_DISABLE_STATIC - set the default static flag to --disable-static
   7.480 +AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   7.481 +AC_ENABLE_STATIC(no)])
   7.482 +
   7.483 +
   7.484 +# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
   7.485 +# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
   7.486 +#   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
   7.487 +#   `yes'.
   7.488 +AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl
   7.489 +define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
   7.490 +AC_ARG_ENABLE(fast-install,
   7.491 +changequote(<<, >>)dnl
   7.492 +<<  --enable-fast-install[=PKGS]  optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
   7.493 +changequote([, ])dnl
   7.494 +[p=${PACKAGE-default}
   7.495 +case "$enableval" in
   7.496 +yes) enable_fast_install=yes ;;
   7.497 +no) enable_fast_install=no ;;
   7.498 +*)
   7.499 +  enable_fast_install=no
   7.500 +  # Look at the argument we got.  We use all the common list separators.
   7.501 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
   7.502 +  for pkg in $enableval; do
   7.503 +    if test "X$pkg" = "X$p"; then
   7.504 +      enable_fast_install=yes
   7.505 +    fi
   7.506 +  done
   7.507 +  IFS="$ac_save_ifs"
   7.508 +  ;;
   7.509 +esac],
   7.510 +enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
   7.511 +])
   7.512 +
   7.513 +# AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install
   7.514 +AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   7.515 +AC_ENABLE_FAST_INSTALL(no)])
   7.516 +
   7.517 +# AC_PROG_LD - find the path to the GNU or non-GNU linker
   7.518 +AC_DEFUN(AC_PROG_LD,
   7.519 +[AC_ARG_WITH(gnu-ld,
   7.520 +[  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]],
   7.521 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
   7.522 +AC_REQUIRE([AC_PROG_CC])dnl
   7.523 +AC_REQUIRE([AC_CANONICAL_HOST])dnl
   7.524 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
   7.525 +ac_prog=ld
   7.526 +if test "$ac_cv_prog_gcc" = yes; then
   7.527 +  # Check if gcc -print-prog-name=ld gives a path.
   7.528 +  AC_MSG_CHECKING([for ld used by GCC])
   7.529 +  case $host in
   7.530 +  *-*-mingw*)
   7.531 +    # gcc leaves a trailing carriage return which upsets mingw
   7.532 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
   7.533 +  *)
   7.534 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
   7.535 +  esac
   7.536 +  case "$ac_prog" in
   7.537 +    # Accept absolute paths.
   7.538 +changequote(,)dnl
   7.539 +    [\\/]* | [A-Za-z]:[\\/]*)
   7.540 +      re_direlt='/[^/][^/]*/\.\./'
   7.541 +changequote([,])dnl
   7.542 +      # Canonicalize the path of ld
   7.543 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
   7.544 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
   7.545 +	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
   7.546 +      done
   7.547 +      test -z "$LD" && LD="$ac_prog"
   7.548 +      ;;
   7.549 +  "")
   7.550 +    # If it fails, then pretend we aren't using GCC.
   7.551 +    ac_prog=ld
   7.552 +    ;;
   7.553 +  *)
   7.554 +    # If it is relative, then search for the first ld in PATH.
   7.555 +    with_gnu_ld=unknown
   7.556 +    ;;
   7.557 +  esac
   7.558 +elif test "$with_gnu_ld" = yes; then
   7.559 +  AC_MSG_CHECKING([for GNU ld])
   7.560 +else
   7.561 +  AC_MSG_CHECKING([for non-GNU ld])
   7.562 +fi
   7.563 +AC_CACHE_VAL(ac_cv_path_LD,
   7.564 +[if test -z "$LD"; then
   7.565 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   7.566 +  for ac_dir in $PATH; do
   7.567 +    test -z "$ac_dir" && ac_dir=.
   7.568 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
   7.569 +      ac_cv_path_LD="$ac_dir/$ac_prog"
   7.570 +      # Check to see if the program is GNU ld.  I'd rather use --version,
   7.571 +      # but apparently some GNU ld's only accept -v.
   7.572 +      # Break only if it was the GNU/non-GNU ld that we prefer.
   7.573 +      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
   7.574 +	test "$with_gnu_ld" != no && break
   7.575 +      else
   7.576 +	test "$with_gnu_ld" != yes && break
   7.577 +      fi
   7.578 +    fi
   7.579 +  done
   7.580 +  IFS="$ac_save_ifs"
   7.581 +else
   7.582 +  ac_cv_path_LD="$LD" # Let the user override the test with a path.
   7.583 +fi])
   7.584 +LD="$ac_cv_path_LD"
   7.585 +if test -n "$LD"; then
   7.586 +  AC_MSG_RESULT($LD)
   7.587 +else
   7.588 +  AC_MSG_RESULT(no)
   7.589 +fi
   7.590 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
   7.591 +AC_SUBST(LD)
   7.592 +AC_PROG_LD_GNU
   7.593 +])
   7.594 +
   7.595 +AC_DEFUN(AC_PROG_LD_GNU,
   7.596 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld,
   7.597 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
   7.598 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
   7.599 +  ac_cv_prog_gnu_ld=yes
   7.600 +else
   7.601 +  ac_cv_prog_gnu_ld=no
   7.602 +fi])
   7.603 +])
   7.604 +
   7.605 +# AC_PROG_NM - find the path to a BSD-compatible name lister
   7.606 +AC_DEFUN(AC_PROG_NM,
   7.607 +[AC_MSG_CHECKING([for BSD-compatible nm])
   7.608 +AC_CACHE_VAL(ac_cv_path_NM,
   7.609 +[if test -n "$NM"; then
   7.610 +  # Let the user override the test.
   7.611 +  ac_cv_path_NM="$NM"
   7.612 +else
   7.613 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
   7.614 +  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
   7.615 +    test -z "$ac_dir" && ac_dir=.
   7.616 +    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
   7.617 +      # Check to see if the nm accepts a BSD-compat flag.
   7.618 +      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
   7.619 +      #   nm: unknown option "B" ignored
   7.620 +      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
   7.621 +	ac_cv_path_NM="$ac_dir/nm -B"
   7.622 +	break
   7.623 +      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
   7.624 +	ac_cv_path_NM="$ac_dir/nm -p"
   7.625 +	break
   7.626 +      else
   7.627 +	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
   7.628 +	continue # so that we can try to find one that supports BSD flags
   7.629 +      fi
   7.630 +    fi
   7.631 +  done
   7.632 +  IFS="$ac_save_ifs"
   7.633 +  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
   7.634 +fi])
   7.635 +NM="$ac_cv_path_NM"
   7.636 +AC_MSG_RESULT([$NM])
   7.637 +AC_SUBST(NM)
   7.638 +])
   7.639 +
   7.640 +# AC_CHECK_LIBM - check for math library
   7.641 +AC_DEFUN(AC_CHECK_LIBM,
   7.642 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
   7.643 +LIBM=
   7.644 +case "$host" in
   7.645 +*-*-beos* | *-*-cygwin*)
   7.646 +  # These system don't have libm
   7.647 +  ;;
   7.648 +*-ncr-sysv4.3*)
   7.649 +  AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
   7.650 +  AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
   7.651 +  ;;
   7.652 +*)
   7.653 +  AC_CHECK_LIB(m, main, LIBM="-lm")
   7.654 +  ;;
   7.655 +esac
   7.656 +])
   7.657 +
   7.658 +# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
   7.659 +# the libltdl convenience library, adds --enable-ltdl-convenience to
   7.660 +# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
   7.661 +# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
   7.662 +# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
   7.663 +# '${top_builddir}/' (note the single quotes!) if your package is not
   7.664 +# flat, and, if you're not using automake, define top_builddir as
   7.665 +# appropriate in the Makefiles.
   7.666 +AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   7.667 +  case "$enable_ltdl_convenience" in
   7.668 +  no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
   7.669 +  "") enable_ltdl_convenience=yes
   7.670 +      ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
   7.671 +  esac
   7.672 +  LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
   7.673 +  INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
   7.674 +])
   7.675 +
   7.676 +# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
   7.677 +# the libltdl installable library, and adds --enable-ltdl-install to
   7.678 +# the configure arguments.  Note that LIBLTDL is not AC_SUBSTed, nor
   7.679 +# is AC_CONFIG_SUBDIRS called.  If DIR is not provided, it is assumed
   7.680 +# to be `${top_builddir}/libltdl'.  Make sure you start DIR with
   7.681 +# '${top_builddir}/' (note the single quotes!) if your package is not
   7.682 +# flat, and, if you're not using automake, define top_builddir as
   7.683 +# appropriate in the Makefiles.
   7.684 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
   7.685 +AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
   7.686 +  AC_CHECK_LIB(ltdl, main,
   7.687 +  [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
   7.688 +  [if test x"$enable_ltdl_install" = xno; then
   7.689 +     AC_MSG_WARN([libltdl not installed, but installation disabled])
   7.690 +   else
   7.691 +     enable_ltdl_install=yes
   7.692 +   fi
   7.693 +  ])
   7.694 +  if test x"$enable_ltdl_install" = x"yes"; then
   7.695 +    ac_configure_args="$ac_configure_args --enable-ltdl-install"
   7.696 +    LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
   7.697 +    INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
   7.698 +  else
   7.699 +    ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
   7.700 +    LIBLTDL="-lltdl"
   7.701 +    INCLTDL=
   7.702 +  fi
   7.703 +])
   7.704 +
   7.705 +dnl old names
   7.706 +AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl
   7.707 +AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl
   7.708 +AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl
   7.709 +AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl
   7.710 +AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl
   7.711 +AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl
   7.712 +AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl
   7.713 +
   7.714 +dnl This is just to silence aclocal about the macro not being used
   7.715 +ifelse([AC_DISABLE_FAST_INSTALL])dnl
   7.716 +
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/config.guess	Thu Oct 21 18:02:08 1999 +0000
     8.3 @@ -0,0 +1,951 @@
     8.4 +#! /bin/sh
     8.5 +# Attempt to guess a canonical system name.
     8.6 +#   Copyright (C) 1992, 93, 94, 95, 96, 97, 1998 Free Software Foundation, Inc.
     8.7 +#
     8.8 +# This file is free software; you can redistribute it and/or modify it
     8.9 +# under the terms of the GNU General Public License as published by
    8.10 +# the Free Software Foundation; either version 2 of the License, or
    8.11 +# (at your option) any later version.
    8.12 +#
    8.13 +# This program is distributed in the hope that it will be useful, but
    8.14 +# WITHOUT ANY WARRANTY; without even the implied warranty of
    8.15 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    8.16 +# General Public License for more details.
    8.17 +#
    8.18 +# You should have received a copy of the GNU General Public License
    8.19 +# along with this program; if not, write to the Free Software
    8.20 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
    8.21 +#
    8.22 +# As a special exception to the GNU General Public License, if you
    8.23 +# distribute this file as part of a program that contains a
    8.24 +# configuration script generated by Autoconf, you may include it under
    8.25 +# the same distribution terms that you use for the rest of that program.
    8.26 +
    8.27 +# Written by Per Bothner <bothner@cygnus.com>.
    8.28 +# The master version of this file is at the FSF in /home/gd/gnu/lib.
    8.29 +#
    8.30 +# This script attempts to guess a canonical system name similar to
    8.31 +# config.sub.  If it succeeds, it prints the system name on stdout, and
    8.32 +# exits with 0.  Otherwise, it exits with 1.
    8.33 +#
    8.34 +# The plan is that this can be called by configure scripts if you
    8.35 +# don't specify an explicit system type (host/target name).
    8.36 +#
    8.37 +# Only a few systems have been added to this list; please add others
    8.38 +# (but try to keep the structure clean).
    8.39 +#
    8.40 +
    8.41 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    8.42 +# (ghazi@noc.rutgers.edu 8/24/94.)
    8.43 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
    8.44 +	PATH=$PATH:/.attbin ; export PATH
    8.45 +fi
    8.46 +
    8.47 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
    8.48 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
    8.49 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
    8.50 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    8.51 +
    8.52 +trap 'rm -f dummy.c dummy.o dummy; exit 1' 1 2 15
    8.53 +
    8.54 +# Note: order is significant - the case branches are not exclusive.
    8.55 +
    8.56 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    8.57 +    alpha:OSF1:*:*)
    8.58 +	if test $UNAME_RELEASE = "V4.0"; then
    8.59 +		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    8.60 +	fi
    8.61 +	# A Vn.n version is a released version.
    8.62 +	# A Tn.n version is a released field test version.
    8.63 +	# A Xn.n version is an unreleased experimental baselevel.
    8.64 +	# 1.2 uses "1.2" for uname -r.
    8.65 +	cat <<EOF >dummy.s
    8.66 +	.globl main
    8.67 +	.ent main
    8.68 +main:
    8.69 +	.frame \$30,0,\$26,0
    8.70 +	.prologue 0
    8.71 +	.long 0x47e03d80 # implver $0
    8.72 +	lda \$2,259
    8.73 +	.long 0x47e20c21 # amask $2,$1
    8.74 +	srl \$1,8,\$2
    8.75 +	sll \$2,2,\$2
    8.76 +	sll \$0,3,\$0
    8.77 +	addl \$1,\$0,\$0
    8.78 +	addl \$2,\$0,\$0
    8.79 +	ret \$31,(\$26),1
    8.80 +	.end main
    8.81 +EOF
    8.82 +	${CC-cc} dummy.s -o dummy 2>/dev/null
    8.83 +	if test "$?" = 0 ; then
    8.84 +		./dummy
    8.85 +		case "$?" in
    8.86 +			7)
    8.87 +				UNAME_MACHINE="alpha"
    8.88 +				;;
    8.89 +			15)
    8.90 +				UNAME_MACHINE="alphaev5"
    8.91 +				;;
    8.92 +			14)
    8.93 +				UNAME_MACHINE="alphaev56"
    8.94 +				;;
    8.95 +			10)
    8.96 +				UNAME_MACHINE="alphapca56"
    8.97 +				;;
    8.98 +			16)
    8.99 +				UNAME_MACHINE="alphaev6"
   8.100 +				;;
   8.101 +		esac
   8.102 +	fi
   8.103 +	rm -f dummy.s dummy
   8.104 +	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr [[A-Z]] [[a-z]]`
   8.105 +	exit 0 ;;
   8.106 +    21064:Windows_NT:50:3)
   8.107 +	echo alpha-dec-winnt3.5
   8.108 +	exit 0 ;;
   8.109 +    Amiga*:UNIX_System_V:4.0:*)
   8.110 +	echo m68k-cbm-sysv4
   8.111 +	exit 0;;
   8.112 +    amiga:NetBSD:*:*)
   8.113 +      echo m68k-cbm-netbsd${UNAME_RELEASE}
   8.114 +      exit 0 ;;
   8.115 +    amiga:OpenBSD:*:*)
   8.116 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
   8.117 +	exit 0 ;;
   8.118 +    *:[Aa]miga[Oo][Ss]:*:*)
   8.119 +	echo ${UNAME_MACHINE}-unknown-amigaos
   8.120 +	exit 0 ;;
   8.121 +    arc64:OpenBSD:*:*)
   8.122 +	echo mips64el-unknown-openbsd${UNAME_RELEASE}
   8.123 +	exit 0 ;;
   8.124 +    arc:OpenBSD:*:*)
   8.125 +	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   8.126 +	exit 0 ;;
   8.127 +    hkmips:OpenBSD:*:*)
   8.128 +	echo mips-unknown-openbsd${UNAME_RELEASE}
   8.129 +	exit 0 ;;
   8.130 +    pmax:OpenBSD:*:*)
   8.131 +	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   8.132 +	exit 0 ;;
   8.133 +    sgi:OpenBSD:*:*)
   8.134 +	echo mips-unknown-openbsd${UNAME_RELEASE}
   8.135 +	exit 0 ;;
   8.136 +    wgrisc:OpenBSD:*:*)
   8.137 +	echo mipsel-unknown-openbsd${UNAME_RELEASE}
   8.138 +	exit 0 ;;
   8.139 +    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
   8.140 +	echo arm-acorn-riscix${UNAME_RELEASE}
   8.141 +	exit 0;;
   8.142 +    arm32:NetBSD:*:*)
   8.143 +	echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
   8.144 +	exit 0 ;;
   8.145 +    SR2?01:HI-UX/MPP:*:*)
   8.146 +	echo hppa1.1-hitachi-hiuxmpp
   8.147 +	exit 0;;
   8.148 +    Pyramid*:OSx*:*:*|MIS*:OSx*:*:*|MIS*:SMP_DC-OSx*:*:*)
   8.149 +	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
   8.150 +	if test "`(/bin/universe) 2>/dev/null`" = att ; then
   8.151 +		echo pyramid-pyramid-sysv3
   8.152 +	else
   8.153 +		echo pyramid-pyramid-bsd
   8.154 +	fi
   8.155 +	exit 0 ;;
   8.156 +    NILE:*:*:dcosx)
   8.157 +	echo pyramid-pyramid-svr4
   8.158 +	exit 0 ;;
   8.159 +    sun4H:SunOS:5.*:*)
   8.160 +	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   8.161 +	exit 0 ;;
   8.162 +    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
   8.163 +	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   8.164 +	exit 0 ;;
   8.165 +    i86pc:SunOS:5.*:*)
   8.166 +	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   8.167 +	exit 0 ;;
   8.168 +    sun4*:SunOS:6*:*)
   8.169 +	# According to config.sub, this is the proper way to canonicalize
   8.170 +	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
   8.171 +	# it's likely to be more like Solaris than SunOS4.
   8.172 +	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   8.173 +	exit 0 ;;
   8.174 +    sun4*:SunOS:*:*)
   8.175 +	case "`/usr/bin/arch -k`" in
   8.176 +	    Series*|S4*)
   8.177 +		UNAME_RELEASE=`uname -v`
   8.178 +		;;
   8.179 +	esac
   8.180 +	# Japanese Language versions have a version number like `4.1.3-JL'.
   8.181 +	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
   8.182 +	exit 0 ;;
   8.183 +    sun3*:SunOS:*:*)
   8.184 +	echo m68k-sun-sunos${UNAME_RELEASE}
   8.185 +	exit 0 ;;
   8.186 +    sun*:*:4.2BSD:*)
   8.187 +	UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
   8.188 +	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
   8.189 +	case "`/bin/arch`" in
   8.190 +	    sun3)
   8.191 +		echo m68k-sun-sunos${UNAME_RELEASE}
   8.192 +		;;
   8.193 +	    sun4)
   8.194 +		echo sparc-sun-sunos${UNAME_RELEASE}
   8.195 +		;;
   8.196 +	esac
   8.197 +	exit 0 ;;
   8.198 +    aushp:SunOS:*:*)
   8.199 +	echo sparc-auspex-sunos${UNAME_RELEASE}
   8.200 +	exit 0 ;;
   8.201 +    atari*:NetBSD:*:*)
   8.202 +	echo m68k-atari-netbsd${UNAME_RELEASE}
   8.203 +	exit 0 ;;
   8.204 +    atari*:OpenBSD:*:*)
   8.205 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
   8.206 +	exit 0 ;;
   8.207 +    sun3*:NetBSD:*:*)
   8.208 +	echo m68k-sun-netbsd${UNAME_RELEASE}
   8.209 +	exit 0 ;;
   8.210 +    sun3*:OpenBSD:*:*)
   8.211 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
   8.212 +	exit 0 ;;
   8.213 +    mac68k:NetBSD:*:*)
   8.214 +	echo m68k-apple-netbsd${UNAME_RELEASE}
   8.215 +	exit 0 ;;
   8.216 +    mac68k:OpenBSD:*:*)
   8.217 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
   8.218 +	exit 0 ;;
   8.219 +    mvme68k:OpenBSD:*:*)
   8.220 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
   8.221 +	exit 0 ;;
   8.222 +    mvme88k:OpenBSD:*:*)
   8.223 +	echo m88k-unknown-openbsd${UNAME_RELEASE}
   8.224 +	exit 0 ;;
   8.225 +    powerpc:machten:*:*)
   8.226 +	echo powerpc-apple-machten${UNAME_RELEASE}
   8.227 +	exit 0 ;;
   8.228 +    macppc:NetBSD:*:*)
   8.229 +        echo powerpc-apple-netbsd${UNAME_RELEASE}
   8.230 +        exit 0 ;;
   8.231 +    RISC*:Mach:*:*)
   8.232 +	echo mips-dec-mach_bsd4.3
   8.233 +	exit 0 ;;
   8.234 +    RISC*:ULTRIX:*:*)
   8.235 +	echo mips-dec-ultrix${UNAME_RELEASE}
   8.236 +	exit 0 ;;
   8.237 +    VAX*:ULTRIX*:*:*)
   8.238 +	echo vax-dec-ultrix${UNAME_RELEASE}
   8.239 +	exit 0 ;;
   8.240 +    2020:CLIX:*:*)
   8.241 +	echo clipper-intergraph-clix${UNAME_RELEASE}
   8.242 +	exit 0 ;;
   8.243 +    mips:*:*:UMIPS | mips:*:*:RISCos)
   8.244 +	sed 's/^	//' << EOF >dummy.c
   8.245 +	int main (argc, argv) int argc; char **argv; {
   8.246 +	#if defined (host_mips) && defined (MIPSEB)
   8.247 +	#if defined (SYSTYPE_SYSV)
   8.248 +	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
   8.249 +	#endif
   8.250 +	#if defined (SYSTYPE_SVR4)
   8.251 +	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
   8.252 +	#endif
   8.253 +	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
   8.254 +	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
   8.255 +	#endif
   8.256 +	#endif
   8.257 +	  exit (-1);
   8.258 +	}
   8.259 +EOF
   8.260 +	${CC-cc} dummy.c -o dummy \
   8.261 +	  && ./dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
   8.262 +	  && rm dummy.c dummy && exit 0
   8.263 +	rm -f dummy.c dummy
   8.264 +	echo mips-mips-riscos${UNAME_RELEASE}
   8.265 +	exit 0 ;;
   8.266 +    Night_Hawk:Power_UNIX:*:*)
   8.267 +	echo powerpc-harris-powerunix
   8.268 +	exit 0 ;;
   8.269 +    m88k:CX/UX:7*:*)
   8.270 +	echo m88k-harris-cxux7
   8.271 +	exit 0 ;;
   8.272 +    m88k:*:4*:R4*)
   8.273 +	echo m88k-motorola-sysv4
   8.274 +	exit 0 ;;
   8.275 +    m88k:*:3*:R3*)
   8.276 +	echo m88k-motorola-sysv3
   8.277 +	exit 0 ;;
   8.278 +    AViiON:dgux:*:*)
   8.279 +        # DG/UX returns AViiON for all architectures
   8.280 +        UNAME_PROCESSOR=`/usr/bin/uname -p`
   8.281 +        if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
   8.282 +	if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
   8.283 +	     -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
   8.284 +		echo m88k-dg-dgux${UNAME_RELEASE}
   8.285 +	else
   8.286 +		echo m88k-dg-dguxbcs${UNAME_RELEASE}
   8.287 +	fi
   8.288 +        else echo i586-dg-dgux${UNAME_RELEASE}
   8.289 +        fi
   8.290 + 	exit 0 ;;
   8.291 +    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
   8.292 +	echo m88k-dolphin-sysv3
   8.293 +	exit 0 ;;
   8.294 +    M88*:*:R3*:*)
   8.295 +	# Delta 88k system running SVR3
   8.296 +	echo m88k-motorola-sysv3
   8.297 +	exit 0 ;;
   8.298 +    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
   8.299 +	echo m88k-tektronix-sysv3
   8.300 +	exit 0 ;;
   8.301 +    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
   8.302 +	echo m68k-tektronix-bsd
   8.303 +	exit 0 ;;
   8.304 +    *:IRIX*:*:*)
   8.305 +	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
   8.306 +	exit 0 ;;
   8.307 +    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
   8.308 +	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
   8.309 +	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
   8.310 +    i?86:AIX:*:*)
   8.311 +	echo i386-ibm-aix
   8.312 +	exit 0 ;;
   8.313 +    *:AIX:2:3)
   8.314 +	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
   8.315 +		sed 's/^		//' << EOF >dummy.c
   8.316 +		#include <sys/systemcfg.h>
   8.317 +
   8.318 +		main()
   8.319 +			{
   8.320 +			if (!__power_pc())
   8.321 +				exit(1);
   8.322 +			puts("powerpc-ibm-aix3.2.5");
   8.323 +			exit(0);
   8.324 +			}
   8.325 +EOF
   8.326 +		${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
   8.327 +		rm -f dummy.c dummy
   8.328 +		echo rs6000-ibm-aix3.2.5
   8.329 +	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
   8.330 +		echo rs6000-ibm-aix3.2.4
   8.331 +	else
   8.332 +		echo rs6000-ibm-aix3.2
   8.333 +	fi
   8.334 +	exit 0 ;;
   8.335 +    *:AIX:*:4)
   8.336 +	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
   8.337 +	if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
   8.338 +		IBM_ARCH=rs6000
   8.339 +	else
   8.340 +		IBM_ARCH=powerpc
   8.341 +	fi
   8.342 +	if [ -x /usr/bin/oslevel ] ; then
   8.343 +		IBM_REV=`/usr/bin/oslevel`
   8.344 +	else
   8.345 +		IBM_REV=4.${UNAME_RELEASE}
   8.346 +	fi
   8.347 +	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
   8.348 +	exit 0 ;;
   8.349 +    *:AIX:*:*)
   8.350 +	echo rs6000-ibm-aix
   8.351 +	exit 0 ;;
   8.352 +    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
   8.353 +	echo romp-ibm-bsd4.4
   8.354 +	exit 0 ;;
   8.355 +    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC NetBSD and
   8.356 +	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
   8.357 +	exit 0 ;;                           # report: romp-ibm BSD 4.3
   8.358 +    *:BOSX:*:*)
   8.359 +	echo rs6000-bull-bosx
   8.360 +	exit 0 ;;
   8.361 +    DPX/2?00:B.O.S.:*:*)
   8.362 +	echo m68k-bull-sysv3
   8.363 +	exit 0 ;;
   8.364 +    9000/[34]??:4.3bsd:1.*:*)
   8.365 +	echo m68k-hp-bsd
   8.366 +	exit 0 ;;
   8.367 +    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
   8.368 +	echo m68k-hp-bsd4.4
   8.369 +	exit 0 ;;
   8.370 +    9000/[34678]??:HP-UX:*:*)
   8.371 +	case "${UNAME_MACHINE}" in
   8.372 +	    9000/31? )            HP_ARCH=m68000 ;;
   8.373 +	    9000/[34]?? )         HP_ARCH=m68k ;;
   8.374 +	    9000/6?? | 9000/7?? | 9000/80[24] | 9000/8?[13679] | 9000/892 )
   8.375 +              sed 's/^              //' << EOF >dummy.c
   8.376 +              #include <stdlib.h>
   8.377 +              #include <unistd.h>
   8.378 +              
   8.379 +              int main ()
   8.380 +              {
   8.381 +              #if defined(_SC_KERNEL_BITS)
   8.382 +                  long bits = sysconf(_SC_KERNEL_BITS);
   8.383 +              #endif 
   8.384 +                  long cpu  = sysconf (_SC_CPU_VERSION);
   8.385 +              
   8.386 +                  switch (cpu) 
   8.387 +              	{
   8.388 +              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
   8.389 +              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
   8.390 +              	case CPU_PA_RISC2_0: 
   8.391 +              #if defined(_SC_KERNEL_BITS)
   8.392 +              	    switch (bits) 
   8.393 +              		{
   8.394 +              		case 64: puts ("hppa2.0w"); break;
   8.395 +              		case 32: puts ("hppa2.0n"); break;
   8.396 +              		default: puts ("hppa2.0"); break;
   8.397 +              		} break;
   8.398 +              #else  /* !defined(_SC_KERNEL_BITS) */
   8.399 +              	    puts ("hppa2.0"); break;
   8.400 +              #endif 
   8.401 +              	default: puts ("hppa1.0"); break;
   8.402 +              	}
   8.403 +                  exit (0);
   8.404 +              }
   8.405 +EOF
   8.406 +	(${CC-cc} dummy.c -o dummy 2>/dev/null ) && HP_ARCH=`./dummy`
   8.407 +	rm -f dummy.c dummy
   8.408 +	esac
   8.409 +	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
   8.410 +	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
   8.411 +	exit 0 ;;
   8.412 +    3050*:HI-UX:*:*)
   8.413 +	sed 's/^	//' << EOF >dummy.c
   8.414 +	#include <unistd.h>
   8.415 +	int
   8.416 +	main ()
   8.417 +	{
   8.418 +	  long cpu = sysconf (_SC_CPU_VERSION);
   8.419 +	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
   8.420 +	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
   8.421 +	     results, however.  */
   8.422 +	  if (CPU_IS_PA_RISC (cpu))
   8.423 +	    {
   8.424 +	      switch (cpu)
   8.425 +		{
   8.426 +		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
   8.427 +		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
   8.428 +		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
   8.429 +		  default: puts ("hppa-hitachi-hiuxwe2"); break;
   8.430 +		}
   8.431 +	    }
   8.432 +	  else if (CPU_IS_HP_MC68K (cpu))
   8.433 +	    puts ("m68k-hitachi-hiuxwe2");
   8.434 +	  else puts ("unknown-hitachi-hiuxwe2");
   8.435 +	  exit (0);
   8.436 +	}
   8.437 +EOF
   8.438 +	${CC-cc} dummy.c -o dummy && ./dummy && rm dummy.c dummy && exit 0
   8.439 +	rm -f dummy.c dummy
   8.440 +	echo unknown-hitachi-hiuxwe2
   8.441 +	exit 0 ;;
   8.442 +    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
   8.443 +	echo hppa1.1-hp-bsd
   8.444 +	exit 0 ;;
   8.445 +    9000/8??:4.3bsd:*:*)
   8.446 +	echo hppa1.0-hp-bsd
   8.447 +	exit 0 ;;
   8.448 +    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
   8.449 +	echo hppa1.1-hp-osf
   8.450 +	exit 0 ;;
   8.451 +    hp8??:OSF1:*:*)
   8.452 +	echo hppa1.0-hp-osf
   8.453 +	exit 0 ;;
   8.454 +    i?86:OSF1:*:*)
   8.455 +	if [ -x /usr/sbin/sysversion ] ; then
   8.456 +	    echo ${UNAME_MACHINE}-unknown-osf1mk
   8.457 +	else
   8.458 +	    echo ${UNAME_MACHINE}-unknown-osf1
   8.459 +	fi
   8.460 +	exit 0 ;;
   8.461 +    parisc*:Lites*:*:*)
   8.462 +	echo hppa1.1-hp-lites
   8.463 +	exit 0 ;;
   8.464 +    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
   8.465 +	echo c1-convex-bsd
   8.466 +        exit 0 ;;
   8.467 +    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
   8.468 +	if getsysinfo -f scalar_acc
   8.469 +	then echo c32-convex-bsd
   8.470 +	else echo c2-convex-bsd
   8.471 +	fi
   8.472 +        exit 0 ;;
   8.473 +    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
   8.474 +	echo c34-convex-bsd
   8.475 +        exit 0 ;;
   8.476 +    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
   8.477 +	echo c38-convex-bsd
   8.478 +        exit 0 ;;
   8.479 +    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
   8.480 +	echo c4-convex-bsd
   8.481 +        exit 0 ;;
   8.482 +    CRAY*X-MP:*:*:*)
   8.483 +	echo xmp-cray-unicos
   8.484 +        exit 0 ;;
   8.485 +    CRAY*Y-MP:*:*:*)
   8.486 +	echo ymp-cray-unicos${UNAME_RELEASE}
   8.487 +	exit 0 ;;
   8.488 +    CRAY*[A-Z]90:*:*:*)
   8.489 +	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
   8.490 +	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
   8.491 +	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
   8.492 +	exit 0 ;;
   8.493 +    CRAY*TS:*:*:*)
   8.494 +	echo t90-cray-unicos${UNAME_RELEASE}
   8.495 +	exit 0 ;;
   8.496 +    CRAY-2:*:*:*)
   8.497 +	echo cray2-cray-unicos
   8.498 +        exit 0 ;;
   8.499 +    F300:UNIX_System_V:*:*)
   8.500 +        FUJITSU_SYS=`uname -p | tr [A-Z] [a-z] | sed -e 's/\///'`
   8.501 +        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
   8.502 +        echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
   8.503 +        exit 0 ;;
   8.504 +    F301:UNIX_System_V:*:*)
   8.505 +       echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
   8.506 +       exit 0 ;;
   8.507 +    hp3[0-9][05]:NetBSD:*:*)
   8.508 +	echo m68k-hp-netbsd${UNAME_RELEASE}
   8.509 +	exit 0 ;;
   8.510 +    hp300:OpenBSD:*:*)
   8.511 +	echo m68k-unknown-openbsd${UNAME_RELEASE}
   8.512 +	exit 0 ;;
   8.513 +    sparc*:BSD/OS:*:*)
   8.514 +	echo sparc-unknown-bsdi${UNAME_RELEASE}
   8.515 +	exit 0 ;;
   8.516 +    i?86:BSD/386:*:* | *:BSD/OS:*:*)
   8.517 +	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
   8.518 +	exit 0 ;;
   8.519 +    *:FreeBSD:*:*)
   8.520 +	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
   8.521 +	exit 0 ;;
   8.522 +    *:NetBSD:*:*)
   8.523 +	echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
   8.524 +	exit 0 ;;
   8.525 +    *:OpenBSD:*:*)
   8.526 +	echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
   8.527 +	exit 0 ;;
   8.528 +    i*:CYGWIN*:*)
   8.529 +	echo ${UNAME_MACHINE}-pc-cygwin32
   8.530 +	exit 0 ;;
   8.531 +    i*:MINGW*:*)
   8.532 +	echo ${UNAME_MACHINE}-pc-mingw32
   8.533 +	exit 0 ;;
   8.534 +    p*:CYGWIN*:*)
   8.535 +	echo powerpcle-unknown-cygwin32
   8.536 +	exit 0 ;;
   8.537 +    prep*:SunOS:5.*:*)
   8.538 +	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
   8.539 +	exit 0 ;;
   8.540 +    *:GNU:*:*)
   8.541 +	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
   8.542 +	exit 0 ;;
   8.543 +    *:Linux:*:*)
   8.544 +	# uname on the ARM produces all sorts of strangeness, and we need to
   8.545 +	# filter it out.
   8.546 +	case "$UNAME_MACHINE" in
   8.547 +	  arm* | sa110*)	      UNAME_MACHINE="arm" ;;
   8.548 +	esac
   8.549 +
   8.550 +	# The BFD linker knows what the default object file format is, so
   8.551 +	# first see if it will tell us.
   8.552 +	ld_help_string=`ld --help 2>&1`
   8.553 +	ld_supported_emulations=`echo $ld_help_string \
   8.554 +			 | sed -ne '/supported emulations:/!d
   8.555 +				    s/[ 	][ 	]*/ /g
   8.556 +				    s/.*supported emulations: *//
   8.557 +				    s/ .*//
   8.558 +				    p'`
   8.559 +        case "$ld_supported_emulations" in
   8.560 +	  i?86linux)  echo "${UNAME_MACHINE}-pc-linux-gnuaout"      ; exit 0 ;;
   8.561 +	  i?86coff)   echo "${UNAME_MACHINE}-pc-linux-gnucoff"      ; exit 0 ;;
   8.562 +	  sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
   8.563 +	  armlinux)   echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
   8.564 +	  m68klinux)  echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
   8.565 +	  elf32ppc)   echo "powerpc-unknown-linux-gnu"              ; exit 0 ;;
   8.566 +	esac
   8.567 +
   8.568 +	if test "${UNAME_MACHINE}" = "alpha" ; then
   8.569 +		sed 's/^	//'  <<EOF >dummy.s
   8.570 +		.globl main
   8.571 +		.ent main
   8.572 +	main:
   8.573 +		.frame \$30,0,\$26,0
   8.574 +		.prologue 0
   8.575 +		.long 0x47e03d80 # implver $0
   8.576 +		lda \$2,259
   8.577 +		.long 0x47e20c21 # amask $2,$1
   8.578 +		srl \$1,8,\$2
   8.579 +		sll \$2,2,\$2
   8.580 +		sll \$0,3,\$0
   8.581 +		addl \$1,\$0,\$0
   8.582 +		addl \$2,\$0,\$0
   8.583 +		ret \$31,(\$26),1
   8.584 +		.end main
   8.585 +EOF
   8.586 +		LIBC=""
   8.587 +		${CC-cc} dummy.s -o dummy 2>/dev/null
   8.588 +		if test "$?" = 0 ; then
   8.589 +			./dummy
   8.590 +			case "$?" in
   8.591 +			7)
   8.592 +				UNAME_MACHINE="alpha"
   8.593 +				;;
   8.594 +			15)
   8.595 +				UNAME_MACHINE="alphaev5"
   8.596 +				;;
   8.597 +			14)
   8.598 +				UNAME_MACHINE="alphaev56"
   8.599 +				;;
   8.600 +			10)
   8.601 +				UNAME_MACHINE="alphapca56"
   8.602 +				;;
   8.603 +			16)
   8.604 +				UNAME_MACHINE="alphaev6"
   8.605 +				;;
   8.606 +			esac	
   8.607 +
   8.608 +			objdump --private-headers dummy | \
   8.609 +			  grep ld.so.1 > /dev/null
   8.610 +			if test "$?" = 0 ; then
   8.611 +				LIBC="libc1"
   8.612 +			fi
   8.613 +		fi	
   8.614 +		rm -f dummy.s dummy
   8.615 +		echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
   8.616 +	elif test "${UNAME_MACHINE}" = "mips" ; then
   8.617 +	  cat >dummy.c <<EOF
   8.618 +main(argc, argv)
   8.619 +     int argc;
   8.620 +     char *argv[];
   8.621 +{
   8.622 +#ifdef __MIPSEB__
   8.623 +  printf ("%s-unknown-linux-gnu\n", argv[1]);
   8.624 +#endif
   8.625 +#ifdef __MIPSEL__
   8.626 +  printf ("%sel-unknown-linux-gnu\n", argv[1]);
   8.627 +#endif
   8.628 +  return 0;
   8.629 +}
   8.630 +EOF
   8.631 +	  ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
   8.632 +	  rm -f dummy.c dummy
   8.633 +	else
   8.634 +	  # Either a pre-BFD a.out linker (linux-gnuoldld)
   8.635 +	  # or one that does not give us useful --help.
   8.636 +	  # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
   8.637 +	  # If ld does not provide *any* "supported emulations:"
   8.638 +	  # that means it is gnuoldld.
   8.639 +	  echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
   8.640 +	  test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
   8.641 +
   8.642 +	  case "${UNAME_MACHINE}" in
   8.643 +	  i?86)
   8.644 +	    VENDOR=pc;
   8.645 +	    ;;
   8.646 +	  *)
   8.647 +	    VENDOR=unknown;
   8.648 +	    ;;
   8.649 +	  esac
   8.650 +	  # Determine whether the default compiler is a.out or elf
   8.651 +	  cat >dummy.c <<EOF
   8.652 +#include <features.h>
   8.653 +main(argc, argv)
   8.654 +     int argc;
   8.655 +     char *argv[];
   8.656 +{
   8.657 +#ifdef __ELF__
   8.658 +# ifdef __GLIBC__
   8.659 +#  if __GLIBC__ >= 2
   8.660 +    printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
   8.661 +#  else
   8.662 +    printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
   8.663 +#  endif
   8.664 +# else
   8.665 +   printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
   8.666 +# endif
   8.667 +#else
   8.668 +  printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
   8.669 +#endif
   8.670 +  return 0;
   8.671 +}
   8.672 +EOF
   8.673 +	  ${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy "${UNAME_MACHINE}" && rm dummy.c dummy && exit 0
   8.674 +	  rm -f dummy.c dummy
   8.675 +	fi ;;
   8.676 +# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
   8.677 +# are messed up and put the nodename in both sysname and nodename.
   8.678 +    i?86:DYNIX/ptx:4*:*)
   8.679 +	echo i386-sequent-sysv4
   8.680 +	exit 0 ;;
   8.681 +    i?86:UNIX_SV:4.2MP:2.*)
   8.682 +        # Unixware is an offshoot of SVR4, but it has its own version
   8.683 +        # number series starting with 2...
   8.684 +        # I am not positive that other SVR4 systems won't match this,
   8.685 +	# I just have to hope.  -- rms.
   8.686 +        # Use sysv4.2uw... so that sysv4* matches it.
   8.687 +	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
   8.688 +	exit 0 ;;
   8.689 +    i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
   8.690 +	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
   8.691 +		echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
   8.692 +	else
   8.693 +		echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
   8.694 +	fi
   8.695 +	exit 0 ;;
   8.696 +    i?86:*:3.2:*)
   8.697 +	if test -f /usr/options/cb.name; then
   8.698 +		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
   8.699 +		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
   8.700 +	elif /bin/uname -X 2>/dev/null >/dev/null ; then
   8.701 +		UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
   8.702 +		(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
   8.703 +		(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
   8.704 +			&& UNAME_MACHINE=i586
   8.705 +		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
   8.706 +	else
   8.707 +		echo ${UNAME_MACHINE}-pc-sysv32
   8.708 +	fi
   8.709 +	exit 0 ;;
   8.710 +    i?86:UnixWare:*:*)
   8.711 +	if /bin/uname -X 2>/dev/null >/dev/null ; then
   8.712 +	  (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
   8.713 +	    && UNAME_MACHINE=i586
   8.714 +	fi
   8.715 +	echo ${UNAME_MACHINE}-unixware-${UNAME_RELEASE}-${UNAME_VERSION}
   8.716 +	exit 0 ;;
   8.717 +    pc:*:*:*)
   8.718 +        # uname -m prints for DJGPP always 'pc', but it prints nothing about
   8.719 +        # the processor, so we play safe by assuming i386.
   8.720 +	echo i386-pc-msdosdjgpp
   8.721 +        exit 0 ;;
   8.722 +    Intel:Mach:3*:*)
   8.723 +	echo i386-pc-mach3
   8.724 +	exit 0 ;;
   8.725 +    paragon:*:*:*)
   8.726 +	echo i860-intel-osf1
   8.727 +	exit 0 ;;
   8.728 +    i860:*:4.*:*) # i860-SVR4
   8.729 +	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
   8.730 +	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
   8.731 +	else # Add other i860-SVR4 vendors below as they are discovered.
   8.732 +	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
   8.733 +	fi
   8.734 +	exit 0 ;;
   8.735 +    mini*:CTIX:SYS*5:*)
   8.736 +	# "miniframe"
   8.737 +	echo m68010-convergent-sysv
   8.738 +	exit 0 ;;
   8.739 +    M68*:*:R3V[567]*:*)
   8.740 +	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
   8.741 +    3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
   8.742 +	OS_REL=''
   8.743 +	test -r /etc/.relid \
   8.744 +	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
   8.745 +	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
   8.746 +	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
   8.747 +	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
   8.748 +	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
   8.749 +    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
   8.750 +        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
   8.751 +          && echo i486-ncr-sysv4 && exit 0 ;;
   8.752 +    m68*:LynxOS:2.*:*)
   8.753 +	echo m68k-unknown-lynxos${UNAME_RELEASE}
   8.754 +	exit 0 ;;
   8.755 +    mc68030:UNIX_System_V:4.*:*)
   8.756 +	echo m68k-atari-sysv4
   8.757 +	exit 0 ;;
   8.758 +    i?86:LynxOS:2.*:*)
   8.759 +	echo i386-unknown-lynxos${UNAME_RELEASE}
   8.760 +	exit 0 ;;
   8.761 +    TSUNAMI:LynxOS:2.*:*)
   8.762 +	echo sparc-unknown-lynxos${UNAME_RELEASE}
   8.763 +	exit 0 ;;
   8.764 +    rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
   8.765 +	echo rs6000-unknown-lynxos${UNAME_RELEASE}
   8.766 +	exit 0 ;;
   8.767 +    SM[BE]S:UNIX_SV:*:*)
   8.768 +	echo mips-dde-sysv${UNAME_RELEASE}
   8.769 +	exit 0 ;;
   8.770 +    RM*:SINIX-*:*:*)
   8.771 +	echo mips-sni-sysv4
   8.772 +	exit 0 ;;
   8.773 +    *:SINIX-*:*:*)
   8.774 +	if uname -p 2>/dev/null >/dev/null ; then
   8.775 +		UNAME_MACHINE=`(uname -p) 2>/dev/null`
   8.776 +		echo ${UNAME_MACHINE}-sni-sysv4
   8.777 +	else
   8.778 +		echo ns32k-sni-sysv
   8.779 +	fi
   8.780 +	exit 0 ;;
   8.781 +    PENTIUM:CPunix:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
   8.782 +                           # says <Richard.M.Bartel@ccMail.Census.GOV>
   8.783 +        echo i586-unisys-sysv4
   8.784 +        exit 0 ;;
   8.785 +    *:UNIX_System_V:4*:FTX*)
   8.786 +	# From Gerald Hewes <hewes@openmarket.com>.
   8.787 +	# How about differentiating between stratus architectures? -djm
   8.788 +	echo hppa1.1-stratus-sysv4
   8.789 +	exit 0 ;;
   8.790 +    *:*:*:FTX*)
   8.791 +	# From seanf@swdc.stratus.com.
   8.792 +	echo i860-stratus-sysv4
   8.793 +	exit 0 ;;
   8.794 +    mc68*:A/UX:*:*)
   8.795 +	echo m68k-apple-aux${UNAME_RELEASE}
   8.796 +	exit 0 ;;
   8.797 +    news*:NEWS-OS:*:6*)
   8.798 +	echo mips-sony-newsos6
   8.799 +	exit 0 ;;
   8.800 +    R3000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R4000:UNIX_SV:*:*)
   8.801 +	if [ -d /usr/nec ]; then
   8.802 +	        echo mips-nec-sysv${UNAME_RELEASE}
   8.803 +	else
   8.804 +	        echo mips-unknown-sysv${UNAME_RELEASE}
   8.805 +	fi
   8.806 +        exit 0 ;;
   8.807 +    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
   8.808 +	echo powerpc-be-beos
   8.809 +	exit 0 ;;
   8.810 +    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
   8.811 +	echo powerpc-apple-beos
   8.812 +	exit 0 ;;
   8.813 +    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
   8.814 +	echo i586-pc-beos
   8.815 +	exit 0 ;;
   8.816 +esac
   8.817 +
   8.818 +#echo '(No uname command or uname output not recognized.)' 1>&2
   8.819 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
   8.820 +
   8.821 +cat >dummy.c <<EOF
   8.822 +#ifdef _SEQUENT_
   8.823 +# include <sys/types.h>
   8.824 +# include <sys/utsname.h>
   8.825 +#endif
   8.826 +main ()
   8.827 +{
   8.828 +#if defined (sony)
   8.829 +#if defined (MIPSEB)
   8.830 +  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
   8.831 +     I don't know....  */
   8.832 +  printf ("mips-sony-bsd\n"); exit (0);
   8.833 +#else
   8.834 +#include <sys/param.h>
   8.835 +  printf ("m68k-sony-newsos%s\n",
   8.836 +#ifdef NEWSOS4
   8.837 +          "4"
   8.838 +#else
   8.839 +	  ""
   8.840 +#endif
   8.841 +         ); exit (0);
   8.842 +#endif
   8.843 +#endif
   8.844 +
   8.845 +#if defined (__arm) && defined (__acorn) && defined (__unix)
   8.846 +  printf ("arm-acorn-riscix"); exit (0);
   8.847 +#endif
   8.848 +
   8.849 +#if defined (hp300) && !defined (hpux)
   8.850 +  printf ("m68k-hp-bsd\n"); exit (0);
   8.851 +#endif
   8.852 +
   8.853 +#if defined (NeXT)
   8.854 +#if !defined (__ARCHITECTURE__)
   8.855 +#define __ARCHITECTURE__ "m68k"
   8.856 +#endif
   8.857 +  int version;
   8.858 +  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
   8.859 +  printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
   8.860 +  exit (0);
   8.861 +#endif
   8.862 +
   8.863 +#if defined (MULTIMAX) || defined (n16)
   8.864 +#if defined (UMAXV)
   8.865 +  printf ("ns32k-encore-sysv\n"); exit (0);
   8.866 +#else
   8.867 +#if defined (CMU)
   8.868 +  printf ("ns32k-encore-mach\n"); exit (0);
   8.869 +#else
   8.870 +  printf ("ns32k-encore-bsd\n"); exit (0);
   8.871 +#endif
   8.872 +#endif
   8.873 +#endif
   8.874 +
   8.875 +#if defined (__386BSD__)
   8.876 +  printf ("i386-pc-bsd\n"); exit (0);
   8.877 +#endif
   8.878 +
   8.879 +#if defined (sequent)
   8.880 +#if defined (i386)
   8.881 +  printf ("i386-sequent-dynix\n"); exit (0);
   8.882 +#endif
   8.883 +#if defined (ns32000)
   8.884 +  printf ("ns32k-sequent-dynix\n"); exit (0);
   8.885 +#endif
   8.886 +#endif
   8.887 +
   8.888 +#if defined (_SEQUENT_)
   8.889 +    struct utsname un;
   8.890 +
   8.891 +    uname(&un);
   8.892 +
   8.893 +    if (strncmp(un.version, "V2", 2) == 0) {
   8.894 +	printf ("i386-sequent-ptx2\n"); exit (0);
   8.895 +    }
   8.896 +    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
   8.897 +	printf ("i386-sequent-ptx1\n"); exit (0);
   8.898 +    }
   8.899 +    printf ("i386-sequent-ptx\n"); exit (0);
   8.900 +
   8.901 +#endif
   8.902 +
   8.903 +#if defined (vax)
   8.904 +#if !defined (ultrix)
   8.905 +  printf ("vax-dec-bsd\n"); exit (0);
   8.906 +#else
   8.907 +  printf ("vax-dec-ultrix\n"); exit (0);
   8.908 +#endif
   8.909 +#endif
   8.910 +
   8.911 +#if defined (alliant) && defined (i860)
   8.912 +  printf ("i860-alliant-bsd\n"); exit (0);
   8.913 +#endif
   8.914 +
   8.915 +  exit (1);
   8.916 +}
   8.917 +EOF
   8.918 +
   8.919 +${CC-cc} dummy.c -o dummy 2>/dev/null && ./dummy && rm dummy.c dummy && exit 0
   8.920 +rm -f dummy.c dummy
   8.921 +
   8.922 +# Apollos put the system type in the environment.
   8.923 +
   8.924 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
   8.925 +
   8.926 +# Convex versions that predate uname can use getsysinfo(1)
   8.927 +
   8.928 +if [ -x /usr/convex/getsysinfo ]
   8.929 +then
   8.930 +    case `getsysinfo -f cpu_type` in
   8.931 +    c1*)
   8.932 +	echo c1-convex-bsd
   8.933 +	exit 0 ;;
   8.934 +    c2*)
   8.935 +	if getsysinfo -f scalar_acc
   8.936 +	then echo c32-convex-bsd
   8.937 +	else echo c2-convex-bsd
   8.938 +	fi
   8.939 +	exit 0 ;;
   8.940 +    c34*)
   8.941 +	echo c34-convex-bsd
   8.942 +	exit 0 ;;
   8.943 +    c38*)
   8.944 +	echo c38-convex-bsd
   8.945 +	exit 0 ;;
   8.946 +    c4*)
   8.947 +	echo c4-convex-bsd
   8.948 +	exit 0 ;;
   8.949 +    esac
   8.950 +fi
   8.951 +
   8.952 +#echo '(Unable to guess system type)' 1>&2
   8.953 +
   8.954 +exit 1
     9.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     9.2 +++ b/config.sub	Thu Oct 21 18:02:08 1999 +0000
     9.3 @@ -0,0 +1,955 @@
     9.4 +#! /bin/sh
     9.5 +# Configuration validation subroutine script, version 1.1.
     9.6 +#   Copyright (C) 1991, 92-97, 1998 Free Software Foundation, Inc.
     9.7 +# This file is (in principle) common to ALL GNU software.
     9.8 +# The presence of a machine in this file suggests that SOME GNU software
     9.9 +# can handle that machine.  It does not imply ALL GNU software can.
    9.10 +#
    9.11 +# This file is free software; you can redistribute it and/or modify
    9.12 +# it under the terms of the GNU General Public License as published by
    9.13 +# the Free Software Foundation; either version 2 of the License, or
    9.14 +# (at your option) any later version.
    9.15 +#
    9.16 +# This program is distributed in the hope that it will be useful,
    9.17 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
    9.18 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    9.19 +# GNU General Public License for more details.
    9.20 +#
    9.21 +# You should have received a copy of the GNU General Public License
    9.22 +# along with this program; if not, write to the Free Software
    9.23 +# Foundation, Inc., 59 Temple Place - Suite 330,
    9.24 +# Boston, MA 02111-1307, USA.
    9.25 +
    9.26 +# As a special exception to the GNU General Public License, if you
    9.27 +# distribute this file as part of a program that contains a
    9.28 +# configuration script generated by Autoconf, you may include it under
    9.29 +# the same distribution terms that you use for the rest of that program.
    9.30 +
    9.31 +# Configuration subroutine to validate and canonicalize a configuration type.
    9.32 +# Supply the specified configuration type as an argument.
    9.33 +# If it is invalid, we print an error message on stderr and exit with code 1.
    9.34 +# Otherwise, we print the canonical config type on stdout and succeed.
    9.35 +
    9.36 +# This file is supposed to be the same for all GNU packages
    9.37 +# and recognize all the CPU types, system types and aliases
    9.38 +# that are meaningful with *any* GNU software.
    9.39 +# Each package is responsible for reporting which valid configurations
    9.40 +# it does not support.  The user should be able to distinguish
    9.41 +# a failure to support a valid configuration from a meaningless
    9.42 +# configuration.
    9.43 +
    9.44 +# The goal of this file is to map all the various variations of a given
    9.45 +# machine specification into a single specification in the form:
    9.46 +#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
    9.47 +# or in some cases, the newer four-part form:
    9.48 +#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    9.49 +# It is wrong to echo any other type of specification.
    9.50 +
    9.51 +if [ x$1 = x ]
    9.52 +then
    9.53 +	echo Configuration name missing. 1>&2
    9.54 +	echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
    9.55 +	echo "or     $0 ALIAS" 1>&2
    9.56 +	echo where ALIAS is a recognized configuration type. 1>&2
    9.57 +	exit 1
    9.58 +fi
    9.59 +
    9.60 +# First pass through any local machine types.
    9.61 +case $1 in
    9.62 +	*local*)
    9.63 +		echo $1
    9.64 +		exit 0
    9.65 +		;;
    9.66 +	*)
    9.67 +	;;
    9.68 +esac
    9.69 +
    9.70 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
    9.71 +# Here we must recognize all the valid KERNEL-OS combinations.
    9.72 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    9.73 +case $maybe_os in
    9.74 +  linux-gnu*)
    9.75 +    os=-$maybe_os
    9.76 +    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    9.77 +    ;;
    9.78 +  *)
    9.79 +    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    9.80 +    if [ $basic_machine != $1 ]
    9.81 +    then os=`echo $1 | sed 's/.*-/-/'`
    9.82 +    else os=; fi
    9.83 +    ;;
    9.84 +esac
    9.85 +
    9.86 +### Let's recognize common machines as not being operating systems so
    9.87 +### that things like config.sub decstation-3100 work.  We also
    9.88 +### recognize some manufacturers as not being operating systems, so we
    9.89 +### can provide default operating systems below.
    9.90 +case $os in
    9.91 +	-sun*os*)
    9.92 +		# Prevent following clause from handling this invalid input.
    9.93 +		;;
    9.94 +	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
    9.95 +	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
    9.96 +	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
    9.97 +	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    9.98 +	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    9.99 +	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
   9.100 +	-apple)
   9.101 +		os=
   9.102 +		basic_machine=$1
   9.103 +		;;
   9.104 +	-hiux*)
   9.105 +		os=-hiuxwe2
   9.106 +		;;
   9.107 +	-sco5)
   9.108 +		os=sco3.2v5
   9.109 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   9.110 +		;;
   9.111 +	-sco4)
   9.112 +		os=-sco3.2v4
   9.113 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   9.114 +		;;
   9.115 +	-sco3.2.[4-9]*)
   9.116 +		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
   9.117 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   9.118 +		;;
   9.119 +	-sco3.2v[4-9]*)
   9.120 +		# Don't forget version if it is 3.2v4 or newer.
   9.121 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   9.122 +		;;
   9.123 +	-sco*)
   9.124 +		os=-sco3.2v2
   9.125 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   9.126 +		;;
   9.127 +	-isc)
   9.128 +		os=-isc2.2
   9.129 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   9.130 +		;;
   9.131 +	-clix*)
   9.132 +		basic_machine=clipper-intergraph
   9.133 +		;;
   9.134 +	-isc*)
   9.135 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
   9.136 +		;;
   9.137 +	-lynx*)
   9.138 +		os=-lynxos
   9.139 +		;;
   9.140 +	-ptx*)
   9.141 +		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
   9.142 +		;;
   9.143 +	-windowsnt*)
   9.144 +		os=`echo $os | sed -e 's/windowsnt/winnt/'`
   9.145 +		;;
   9.146 +	-psos*)
   9.147 +		os=-psos
   9.148 +		;;
   9.149 +esac
   9.150 +
   9.151 +# Decode aliases for certain CPU-COMPANY combinations.
   9.152 +case $basic_machine in
   9.153 +	# Recognize the basic CPU types without company name.
   9.154 +	# Some are omitted here because they have special meanings below.
   9.155 +	tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
   9.156 +		| arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
   9.157 +		| 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 | hppa2.0 \
   9.158 +		| alpha | alphaev5 | alphaev56 | we32k | ns16k | clipper \
   9.159 +		| i370 | sh | powerpc | powerpcle | 1750a | dsp16xx | pdp11 \
   9.160 +		| mips64 | mipsel | mips64el | mips64orion | mips64orionel \
   9.161 +		| mipstx39 | mipstx39el | armv[34][lb] \
   9.162 +		| sparc | sparclet | sparclite | sparc64 | v850)
   9.163 +		basic_machine=$basic_machine-unknown
   9.164 +		;;
   9.165 +	# We use `pc' rather than `unknown'
   9.166 +	# because (1) that's what they normally are, and
   9.167 +	# (2) the word "unknown" tends to confuse beginning users.
   9.168 +	i[34567]86)
   9.169 +	  basic_machine=$basic_machine-pc
   9.170 +	  ;;
   9.171 +	# Object if more than one company name word.
   9.172 +	*-*-*)
   9.173 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   9.174 +		exit 1
   9.175 +		;;
   9.176 +	# Recognize the basic CPU types with company name.
   9.177 +	vax-* | tahoe-* | i[34567]86-* | i860-* | m32r-* | m68k-* | m68000-* \
   9.178 +	      | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
   9.179 +	      | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
   9.180 +	      | power-* | none-* | 580-* | cray2-* | h8300-* | i960-* \
   9.181 +	      | xmp-* | ymp-* | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* \
   9.182 +	      | alpha-* | alphaev5-* | alphaev56-* | we32k-* | cydra-* \
   9.183 +	      | ns16k-* | pn-* | np1-* | xps100-* | clipper-* | orion-* \
   9.184 +	      | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
   9.185 +	      | sparc64-* | mips64-* | mipsel-* | armv[34][lb]-*\
   9.186 +	      | mips64el-* | mips64orion-* | mips64orionel-*  \
   9.187 +	      | mipstx39-* | mipstx39el-* \
   9.188 +	      | f301-*)
   9.189 +		;;
   9.190 +	# Recognize the various machine names and aliases which stand
   9.191 +	# for a CPU type and a company and sometimes even an OS.
   9.192 +	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
   9.193 +		basic_machine=m68000-att
   9.194 +		;;
   9.195 +	3b*)
   9.196 +		basic_machine=we32k-att
   9.197 +		;;
   9.198 +	alliant | fx80)
   9.199 +		basic_machine=fx80-alliant
   9.200 +		;;
   9.201 +	altos | altos3068)
   9.202 +		basic_machine=m68k-altos
   9.203 +		;;
   9.204 +	am29k)
   9.205 +		basic_machine=a29k-none
   9.206 +		os=-bsd
   9.207 +		;;
   9.208 +	amdahl)
   9.209 +		basic_machine=580-amdahl
   9.210 +		os=-sysv
   9.211 +		;;
   9.212 +	amiga | amiga-*)
   9.213 +		basic_machine=m68k-cbm
   9.214 +		;;
   9.215 +	amigaos | amigados)
   9.216 +		basic_machine=m68k-cbm
   9.217 +		os=-amigaos
   9.218 +		;;
   9.219 +	amigaunix | amix)
   9.220 +		basic_machine=m68k-cbm
   9.221 +		os=-sysv4
   9.222 +		;;
   9.223 +	apollo68)
   9.224 +		basic_machine=m68k-apollo
   9.225 +		os=-sysv
   9.226 +		;;
   9.227 +	aux)
   9.228 +		basic_machine=m68k-apple
   9.229 +		os=-aux
   9.230 +		;;
   9.231 +	balance)
   9.232 +		basic_machine=ns32k-sequent
   9.233 +		os=-dynix
   9.234 +		;;
   9.235 +	convex-c1)
   9.236 +		basic_machine=c1-convex
   9.237 +		os=-bsd
   9.238 +		;;
   9.239 +	convex-c2)
   9.240 +		basic_machine=c2-convex
   9.241 +		os=-bsd
   9.242 +		;;
   9.243 +	convex-c32)
   9.244 +		basic_machine=c32-convex
   9.245 +		os=-bsd
   9.246 +		;;
   9.247 +	convex-c34)
   9.248 +		basic_machine=c34-convex
   9.249 +		os=-bsd
   9.250 +		;;
   9.251 +	convex-c38)
   9.252 +		basic_machine=c38-convex
   9.253 +		os=-bsd
   9.254 +		;;
   9.255 +	cray | ymp)
   9.256 +		basic_machine=ymp-cray
   9.257 +		os=-unicos
   9.258 +		;;
   9.259 +	cray2)
   9.260 +		basic_machine=cray2-cray
   9.261 +		os=-unicos
   9.262 +		;;
   9.263 +	[ctj]90-cray)
   9.264 +		basic_machine=c90-cray
   9.265 +		os=-unicos
   9.266 +		;;
   9.267 +	crds | unos)
   9.268 +		basic_machine=m68k-crds
   9.269 +		;;
   9.270 +	da30 | da30-*)
   9.271 +		basic_machine=m68k-da30
   9.272 +		;;
   9.273 +	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
   9.274 +		basic_machine=mips-dec
   9.275 +		;;
   9.276 +	delta | 3300 | motorola-3300 | motorola-delta \
   9.277 +	      | 3300-motorola | delta-motorola)
   9.278 +		basic_machine=m68k-motorola
   9.279 +		;;
   9.280 +	delta88)
   9.281 +		basic_machine=m88k-motorola
   9.282 +		os=-sysv3
   9.283 +		;;
   9.284 +	dpx20 | dpx20-*)
   9.285 +		basic_machine=rs6000-bull
   9.286 +		os=-bosx
   9.287 +		;;
   9.288 +	dpx2* | dpx2*-bull)
   9.289 +		basic_machine=m68k-bull
   9.290 +		os=-sysv3
   9.291 +		;;
   9.292 +	ebmon29k)
   9.293 +		basic_machine=a29k-amd
   9.294 +		os=-ebmon
   9.295 +		;;
   9.296 +	elxsi)
   9.297 +		basic_machine=elxsi-elxsi
   9.298 +		os=-bsd
   9.299 +		;;
   9.300 +	encore | umax | mmax)
   9.301 +		basic_machine=ns32k-encore
   9.302 +		;;
   9.303 +	fx2800)
   9.304 +		basic_machine=i860-alliant
   9.305 +		;;
   9.306 +	genix)
   9.307 +		basic_machine=ns32k-ns
   9.308 +		;;
   9.309 +	gmicro)
   9.310 +		basic_machine=tron-gmicro
   9.311 +		os=-sysv
   9.312 +		;;
   9.313 +	h3050r* | hiux*)
   9.314 +		basic_machine=hppa1.1-hitachi
   9.315 +		os=-hiuxwe2
   9.316 +		;;
   9.317 +	h8300hms)
   9.318 +		basic_machine=h8300-hitachi
   9.319 +		os=-hms
   9.320 +		;;
   9.321 +	harris)
   9.322 +		basic_machine=m88k-harris
   9.323 +		os=-sysv3
   9.324 +		;;
   9.325 +	hp300-*)
   9.326 +		basic_machine=m68k-hp
   9.327 +		;;
   9.328 +	hp300bsd)
   9.329 +		basic_machine=m68k-hp
   9.330 +		os=-bsd
   9.331 +		;;
   9.332 +	hp300hpux)
   9.333 +		basic_machine=m68k-hp
   9.334 +		os=-hpux
   9.335 +		;;
   9.336 +	hp9k2[0-9][0-9] | hp9k31[0-9])
   9.337 +		basic_machine=m68000-hp
   9.338 +		;;
   9.339 +	hp9k3[2-9][0-9])
   9.340 +		basic_machine=m68k-hp
   9.341 +		;;
   9.342 +	hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
   9.343 +		basic_machine=hppa1.1-hp
   9.344 +		;;
   9.345 +	hp9k8[0-9][0-9] | hp8[0-9][0-9])
   9.346 +		basic_machine=hppa1.0-hp
   9.347 +		;;
   9.348 +	hppa-next)
   9.349 +		os=-nextstep3
   9.350 +		;;
   9.351 +	i370-ibm* | ibm*)
   9.352 +		basic_machine=i370-ibm
   9.353 +		os=-mvs
   9.354 +		;;
   9.355 +# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
   9.356 +	i[34567]86v32)
   9.357 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   9.358 +		os=-sysv32
   9.359 +		;;
   9.360 +	i[34567]86v4*)
   9.361 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   9.362 +		os=-sysv4
   9.363 +		;;
   9.364 +	i[34567]86v)
   9.365 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   9.366 +		os=-sysv
   9.367 +		;;
   9.368 +	i[34567]86sol2)
   9.369 +		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
   9.370 +		os=-solaris2
   9.371 +		;;
   9.372 +	iris | iris4d)
   9.373 +		basic_machine=mips-sgi
   9.374 +		case $os in
   9.375 +		    -irix*)
   9.376 +			;;
   9.377 +		    *)
   9.378 +			os=-irix4
   9.379 +			;;
   9.380 +		esac
   9.381 +		;;
   9.382 +	isi68 | isi)
   9.383 +		basic_machine=m68k-isi
   9.384 +		os=-sysv
   9.385 +		;;
   9.386 +	m88k-omron*)
   9.387 +		basic_machine=m88k-omron
   9.388 +		;;
   9.389 +	magnum | m3230)
   9.390 +		basic_machine=mips-mips
   9.391 +		os=-sysv
   9.392 +		;;
   9.393 +	merlin)
   9.394 +		basic_machine=ns32k-utek
   9.395 +		os=-sysv
   9.396 +		;;
   9.397 +	miniframe)
   9.398 +		basic_machine=m68000-convergent
   9.399 +		;;
   9.400 +	mipsel*-linux*)
   9.401 +		basic_machine=mipsel-unknown
   9.402 +		os=-linux-gnu
   9.403 +		;;
   9.404 +	mips*-linux*)
   9.405 +		basic_machine=mips-unknown
   9.406 +		os=-linux-gnu
   9.407 +		;;
   9.408 +	mips3*-*)
   9.409 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
   9.410 +		;;
   9.411 +	mips3*)
   9.412 +		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
   9.413 +		;;
   9.414 +	ncr3000)
   9.415 +		basic_machine=i486-ncr
   9.416 +		os=-sysv4
   9.417 +		;;
   9.418 +	news | news700 | news800 | news900)
   9.419 +		basic_machine=m68k-sony
   9.420 +		os=-newsos
   9.421 +		;;
   9.422 +	news1000)
   9.423 +		basic_machine=m68030-sony
   9.424 +		os=-newsos
   9.425 +		;;
   9.426 +	news-3600 | risc-news)
   9.427 +		basic_machine=mips-sony
   9.428 +		os=-newsos
   9.429 +		;;
   9.430 +	next | m*-next )
   9.431 +		basic_machine=m68k-next
   9.432 +		case $os in
   9.433 +		    -nextstep* )
   9.434 +			;;
   9.435 +		    -ns2*)
   9.436 +		      os=-nextstep2
   9.437 +			;;
   9.438 +		    *)
   9.439 +		      os=-nextstep3
   9.440 +			;;
   9.441 +		esac
   9.442 +		;;
   9.443 +	nh3000)
   9.444 +		basic_machine=m68k-harris
   9.445 +		os=-cxux
   9.446 +		;;
   9.447 +	nh[45]000)
   9.448 +		basic_machine=m88k-harris
   9.449 +		os=-cxux
   9.450 +		;;
   9.451 +	nindy960)
   9.452 +		basic_machine=i960-intel
   9.453 +		os=-nindy
   9.454 +		;;
   9.455 +	np1)
   9.456 +		basic_machine=np1-gould
   9.457 +		;;
   9.458 +	pa-hitachi)
   9.459 +		basic_machine=hppa1.1-hitachi
   9.460 +		os=-hiuxwe2
   9.461 +		;;
   9.462 +	paragon)
   9.463 +		basic_machine=i860-intel
   9.464 +		os=-osf
   9.465 +		;;
   9.466 +	pbd)
   9.467 +		basic_machine=sparc-tti
   9.468 +		;;
   9.469 +	pbb)
   9.470 +		basic_machine=m68k-tti
   9.471 +		;;
   9.472 +        pc532 | pc532-*)
   9.473 +		basic_machine=ns32k-pc532
   9.474 +		;;
   9.475 +	pentium | p5 | k5 | nexen)
   9.476 +		basic_machine=i586-pc
   9.477 +		;;
   9.478 +	pentiumpro | p6 | k6 | 6x86)
   9.479 +		basic_machine=i686-pc
   9.480 +		;;
   9.481 +	pentiumii | pentium2)
   9.482 +		basic_machine=i786-pc
   9.483 +		;;
   9.484 +	pentium-* | p5-* | k5-* | nexen-*)
   9.485 +		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
   9.486 +		;;
   9.487 +	pentiumpro-* | p6-* | k6-* | 6x86-*)
   9.488 +		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
   9.489 +		;;
   9.490 +	pentiumii-* | pentium2-*)
   9.491 +		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
   9.492 +		;;
   9.493 +	pn)
   9.494 +		basic_machine=pn-gould
   9.495 +		;;
   9.496 +	power)	basic_machine=rs6000-ibm
   9.497 +		;;
   9.498 +	ppc)	basic_machine=powerpc-unknown
   9.499 +	        ;;
   9.500 +	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
   9.501 +		;;
   9.502 +	ppcle | powerpclittle | ppc-le | powerpc-little)
   9.503 +		basic_machine=powerpcle-unknown
   9.504 +	        ;;
   9.505 +	ppcle-* | powerpclittle-*)
   9.506 +		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
   9.507 +		;;
   9.508 +	ps2)
   9.509 +		basic_machine=i386-ibm
   9.510 +		;;
   9.511 +	rm[46]00)
   9.512 +		basic_machine=mips-siemens
   9.513 +		;;
   9.514 +	rtpc | rtpc-*)
   9.515 +		basic_machine=romp-ibm
   9.516 +		;;
   9.517 +	sequent)
   9.518 +		basic_machine=i386-sequent
   9.519 +		;;
   9.520 +	sh)
   9.521 +		basic_machine=sh-hitachi
   9.522 +		os=-hms
   9.523 +		;;
   9.524 +	sps7)
   9.525 +		basic_machine=m68k-bull
   9.526 +		os=-sysv2
   9.527 +		;;
   9.528 +	spur)
   9.529 +		basic_machine=spur-unknown
   9.530 +		;;
   9.531 +	sun2)
   9.532 +		basic_machine=m68000-sun
   9.533 +		;;
   9.534 +	sun2os3)
   9.535 +		basic_machine=m68000-sun
   9.536 +		os=-sunos3
   9.537 +		;;
   9.538 +	sun2os4)
   9.539 +		basic_machine=m68000-sun
   9.540 +		os=-sunos4
   9.541 +		;;
   9.542 +	sun3os3)
   9.543 +		basic_machine=m68k-sun
   9.544 +		os=-sunos3
   9.545 +		;;
   9.546 +	sun3os4)
   9.547 +		basic_machine=m68k-sun
   9.548 +		os=-sunos4
   9.549 +		;;
   9.550 +	sun4os3)
   9.551 +		basic_machine=sparc-sun
   9.552 +		os=-sunos3
   9.553 +		;;
   9.554 +	sun4os4)
   9.555 +		basic_machine=sparc-sun
   9.556 +		os=-sunos4
   9.557 +		;;
   9.558 +	sun4sol2)
   9.559 +		basic_machine=sparc-sun
   9.560 +		os=-solaris2
   9.561 +		;;
   9.562 +	sun3 | sun3-*)
   9.563 +		basic_machine=m68k-sun
   9.564 +		;;
   9.565 +	sun4)
   9.566 +		basic_machine=sparc-sun
   9.567 +		;;
   9.568 +	sun386 | sun386i | roadrunner)
   9.569 +		basic_machine=i386-sun
   9.570 +		;;
   9.571 +	symmetry)
   9.572 +		basic_machine=i386-sequent
   9.573 +		os=-dynix
   9.574 +		;;
   9.575 +	tx39)
   9.576 +		basic_machine=mipstx39-unknown
   9.577 +		;;
   9.578 +	tx39el)
   9.579 +		basic_machine=mipstx39el-unknown
   9.580 +		;;
   9.581 +	tower | tower-32)
   9.582 +		basic_machine=m68k-ncr
   9.583 +		;;
   9.584 +	udi29k)
   9.585 +		basic_machine=a29k-amd
   9.586 +		os=-udi
   9.587 +		;;
   9.588 +	ultra3)
   9.589 +		basic_machine=a29k-nyu
   9.590 +		os=-sym1
   9.591 +		;;
   9.592 +	vaxv)
   9.593 +		basic_machine=vax-dec
   9.594 +		os=-sysv
   9.595 +		;;
   9.596 +	vms)
   9.597 +		basic_machine=vax-dec
   9.598 +		os=-vms
   9.599 +		;;
   9.600 +	vpp*|vx|vx-*)
   9.601 +               basic_machine=f301-fujitsu
   9.602 +               ;;
   9.603 +	vxworks960)
   9.604 +		basic_machine=i960-wrs
   9.605 +		os=-vxworks
   9.606 +		;;
   9.607 +	vxworks68)
   9.608 +		basic_machine=m68k-wrs
   9.609 +		os=-vxworks
   9.610 +		;;
   9.611 +	vxworks29k)
   9.612 +		basic_machine=a29k-wrs
   9.613 +		os=-vxworks
   9.614 +		;;
   9.615 +	xmp)
   9.616 +		basic_machine=xmp-cray
   9.617 +		os=-unicos
   9.618 +		;;
   9.619 +        xps | xps100)
   9.620 +		basic_machine=xps100-honeywell
   9.621 +		;;
   9.622 +	none)
   9.623 +		basic_machine=none-none
   9.624 +		os=-none
   9.625 +		;;
   9.626 +
   9.627 +# Here we handle the default manufacturer of certain CPU types.  It is in
   9.628 +# some cases the only manufacturer, in others, it is the most popular.
   9.629 +	mips)
   9.630 +		if [ x$os = x-linux-gnu ]; then
   9.631 +			basic_machine=mips-unknown
   9.632 +		else
   9.633 +			basic_machine=mips-mips
   9.634 +		fi
   9.635 +		;;
   9.636 +	romp)
   9.637 +		basic_machine=romp-ibm
   9.638 +		;;
   9.639 +	rs6000)
   9.640 +		basic_machine=rs6000-ibm
   9.641 +		;;
   9.642 +	vax)
   9.643 +		basic_machine=vax-dec
   9.644 +		;;
   9.645 +	pdp11)
   9.646 +		basic_machine=pdp11-dec
   9.647 +		;;
   9.648 +	we32k)
   9.649 +		basic_machine=we32k-att
   9.650 +		;;
   9.651 +	sparc)
   9.652 +		basic_machine=sparc-sun
   9.653 +		;;
   9.654 +        cydra)
   9.655 +		basic_machine=cydra-cydrome
   9.656 +		;;
   9.657 +	orion)
   9.658 +		basic_machine=orion-highlevel
   9.659 +		;;
   9.660 +	orion105)
   9.661 +		basic_machine=clipper-highlevel
   9.662 +		;;
   9.663 +	*)
   9.664 +		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
   9.665 +		exit 1
   9.666 +		;;
   9.667 +esac
   9.668 +
   9.669 +# Here we canonicalize certain aliases for manufacturers.
   9.670 +case $basic_machine in
   9.671 +	*-digital*)
   9.672 +		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
   9.673 +		;;
   9.674 +	*-commodore*)
   9.675 +		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
   9.676 +		;;
   9.677 +	*)
   9.678 +		;;
   9.679 +esac
   9.680 +
   9.681 +# Decode manufacturer-specific aliases for certain operating systems.
   9.682 +
   9.683 +if [ x"$os" != x"" ]
   9.684 +then
   9.685 +case $os in
   9.686 +        # First match some system type aliases
   9.687 +        # that might get confused with valid system types.
   9.688 +	# -solaris* is a basic system type, with this one exception.
   9.689 +	-solaris1 | -solaris1.*)
   9.690 +		os=`echo $os | sed -e 's|solaris1|sunos4|'`
   9.691 +		;;
   9.692 +	-solaris)
   9.693 +		os=-solaris2
   9.694 +		;;
   9.695 +	-svr4*)
   9.696 +		os=-sysv4
   9.697 +		;;
   9.698 +	-unixware*)
   9.699 +		os=-sysv4.2uw
   9.700 +		;;
   9.701 +	-gnu/linux*)
   9.702 +		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
   9.703 +		;;
   9.704 +	# First accept the basic system types.
   9.705 +	# The portable systems comes first.
   9.706 +	# Each alternative MUST END IN A *, to match a version number.
   9.707 +	# -sysv* is not here because it comes later, after sysvr4.
   9.708 +	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
   9.709 +	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
   9.710 +	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
   9.711 +	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
   9.712 +	      | -aos* \
   9.713 +	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
   9.714 +	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
   9.715 +	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
   9.716 +	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
   9.717 +	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
   9.718 +	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
   9.719 +	      | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
   9.720 +	      | -mingw32* | -linux-gnu* | -uxpv* | -beos*)
   9.721 +	# Remember, each alternative MUST END IN *, to match a version number.
   9.722 +		;;
   9.723 +	-linux*)
   9.724 +		os=`echo $os | sed -e 's|linux|linux-gnu|'`
   9.725 +		;;
   9.726 +	-sunos5*)
   9.727 +		os=`echo $os | sed -e 's|sunos5|solaris2|'`
   9.728 +		;;
   9.729 +	-sunos6*)
   9.730 +		os=`echo $os | sed -e 's|sunos6|solaris3|'`
   9.731 +		;;
   9.732 +	-osfrose*)
   9.733 +		os=-osfrose
   9.734 +		;;
   9.735 +	-osf*)
   9.736 +		os=-osf
   9.737 +		;;
   9.738 +	-utek*)
   9.739 +		os=-bsd
   9.740 +		;;
   9.741 +	-dynix*)
   9.742 +		os=-bsd
   9.743 +		;;
   9.744 +	-acis*)
   9.745 +		os=-aos
   9.746 +		;;
   9.747 +	-ctix* | -uts*)
   9.748 +		os=-sysv
   9.749 +		;;
   9.750 +	-ns2 )
   9.751 +	        os=-nextstep2
   9.752 +		;;
   9.753 +	# Preserve the version number of sinix5.
   9.754 +	-sinix5.*)
   9.755 +		os=`echo $os | sed -e 's|sinix|sysv|'`
   9.756 +		;;
   9.757 +	-sinix*)
   9.758 +		os=-sysv4
   9.759 +		;;
   9.760 +	-triton*)
   9.761 +		os=-sysv3
   9.762 +		;;
   9.763 +	-oss*)
   9.764 +		os=-sysv3
   9.765 +		;;
   9.766 +	-svr4)
   9.767 +		os=-sysv4
   9.768 +		;;
   9.769 +	-svr3)
   9.770 +		os=-sysv3
   9.771 +		;;
   9.772 +	-sysvr4)
   9.773 +		os=-sysv4
   9.774 +		;;
   9.775 +	# This must come after -sysvr4.
   9.776 +	-sysv*)
   9.777 +		;;
   9.778 +	-xenix)
   9.779 +		os=-xenix
   9.780 +		;;
   9.781 +	-none)
   9.782 +		;;
   9.783 +	*)
   9.784 +		# Get rid of the `-' at the beginning of $os.
   9.785 +		os=`echo $os | sed 's/[^-]*-//'`
   9.786 +		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
   9.787 +		exit 1
   9.788 +		;;
   9.789 +esac
   9.790 +else
   9.791 +
   9.792 +# Here we handle the default operating systems that come with various machines.
   9.793 +# The value should be what the vendor currently ships out the door with their
   9.794 +# machine or put another way, the most popular os provided with the machine.
   9.795 +
   9.796 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
   9.797 +# "-sun"), then you have to tell the case statement up towards the top
   9.798 +# that MANUFACTURER isn't an operating system.  Otherwise, code above
   9.799 +# will signal an error saying that MANUFACTURER isn't an operating
   9.800 +# system, and we'll never get to this point.
   9.801 +
   9.802 +case $basic_machine in
   9.803 +	*-acorn)
   9.804 +		os=-riscix1.2
   9.805 +		;;
   9.806 +	arm*-semi)
   9.807 +		os=-aout
   9.808 +		;;
   9.809 +        pdp11-*)
   9.810 +		os=-none
   9.811 +		;;
   9.812 +	*-dec | vax-*)
   9.813 +		os=-ultrix4.2
   9.814 +		;;
   9.815 +	m68*-apollo)
   9.816 +		os=-domain
   9.817 +		;;
   9.818 +	i386-sun)
   9.819 +		os=-sunos4.0.2
   9.820 +		;;
   9.821 +	m68000-sun)
   9.822 +		os=-sunos3
   9.823 +		# This also exists in the configure program, but was not the
   9.824 +		# default.
   9.825 +		# os=-sunos4
   9.826 +		;;
   9.827 +	*-tti)	# must be before sparc entry or we get the wrong os.
   9.828 +		os=-sysv3
   9.829 +		;;
   9.830 +	sparc-* | *-sun)
   9.831 +		os=-sunos4.1.1
   9.832 +		;;
   9.833 +	*-be)
   9.834 +		os=-beos
   9.835 +		;;
   9.836 +	*-ibm)
   9.837 +		os=-aix
   9.838 +		;;
   9.839 +	*-hp)
   9.840 +		os=-hpux
   9.841 +		;;
   9.842 +	*-hitachi)
   9.843 +		os=-hiux
   9.844 +		;;
   9.845 +	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
   9.846 +		os=-sysv
   9.847 +		;;
   9.848 +	*-cbm)
   9.849 +		os=-amigaos
   9.850 +		;;
   9.851 +	*-dg)
   9.852 +		os=-dgux
   9.853 +		;;
   9.854 +	*-dolphin)
   9.855 +		os=-sysv3
   9.856 +		;;
   9.857 +	m68k-ccur)
   9.858 +		os=-rtu
   9.859 +		;;
   9.860 +	m88k-omron*)
   9.861 +		os=-luna
   9.862 +		;;
   9.863 +	*-next )
   9.864 +		os=-nextstep
   9.865 +		;;
   9.866 +	*-sequent)
   9.867 +		os=-ptx
   9.868 +		;;
   9.869 +	*-crds)
   9.870 +		os=-unos
   9.871 +		;;
   9.872 +	*-ns)
   9.873 +		os=-genix
   9.874 +		;;
   9.875 +	i370-*)
   9.876 +		os=-mvs
   9.877 +		;;
   9.878 +	*-next)
   9.879 +		os=-nextstep3
   9.880 +		;;
   9.881 +        *-gould)
   9.882 +		os=-sysv
   9.883 +		;;
   9.884 +        *-highlevel)
   9.885 +		os=-bsd
   9.886 +		;;
   9.887 +	*-encore)
   9.888 +		os=-bsd
   9.889 +		;;
   9.890 +        *-sgi)
   9.891 +		os=-irix
   9.892 +		;;
   9.893 +        *-siemens)
   9.894 +		os=-sysv4
   9.895 +		;;
   9.896 +	*-masscomp)
   9.897 +		os=-rtu
   9.898 +		;;
   9.899 +	f301-fujitsu)
   9.900 +		os=-uxpv
   9.901 +		;;
   9.902 +	*)
   9.903 +		os=-none
   9.904 +		;;
   9.905 +esac
   9.906 +fi
   9.907 +
   9.908 +# Here we handle the case where we know the os, and the CPU type, but not the
   9.909 +# manufacturer.  We pick the logical manufacturer.
   9.910 +vendor=unknown
   9.911 +case $basic_machine in
   9.912 +	*-unknown)
   9.913 +		case $os in
   9.914 +			-riscix*)
   9.915 +				vendor=acorn
   9.916 +				;;
   9.917 +			-sunos*)
   9.918 +				vendor=sun
   9.919 +				;;
   9.920 +			-aix*)
   9.921 +				vendor=ibm
   9.922 +				;;
   9.923 +			-hpux*)
   9.924 +				vendor=hp
   9.925 +				;;
   9.926 +			-hiux*)
   9.927 +				vendor=hitachi
   9.928 +				;;
   9.929 +			-unos*)
   9.930 +				vendor=crds
   9.931 +				;;
   9.932 +			-dgux*)
   9.933 +				vendor=dg
   9.934 +				;;
   9.935 +			-luna*)
   9.936 +				vendor=omron
   9.937 +				;;
   9.938 +			-genix*)
   9.939 +				vendor=ns
   9.940 +				;;
   9.941 +			-mvs*)
   9.942 +				vendor=ibm
   9.943 +				;;
   9.944 +			-ptx*)
   9.945 +				vendor=sequent
   9.946 +				;;
   9.947 +			-vxsim* | -vxworks*)
   9.948 +				vendor=wrs
   9.949 +				;;
   9.950 +			-aux*)
   9.951 +				vendor=apple
   9.952 +				;;
   9.953 +		esac
   9.954 +		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
   9.955 +		;;
   9.956 +esac
   9.957 +
   9.958 +echo $basic_machine$os
    10.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    10.2 +++ b/configure	Thu Oct 21 18:02:08 1999 +0000
    10.3 @@ -0,0 +1,2295 @@
    10.4 +#! /bin/sh
    10.5 +
    10.6 +# Guess values for system-dependent variables and create Makefiles.
    10.7 +# Generated automatically using autoconf version 2.13 
    10.8 +# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    10.9 +#
   10.10 +# This configure script is free software; the Free Software Foundation
   10.11 +# gives unlimited permission to copy, distribute and modify it.
   10.12 +
   10.13 +# Defaults:
   10.14 +ac_help=
   10.15 +ac_default_prefix=/usr/local
   10.16 +# Any additions from configure.in:
   10.17 +ac_help="$ac_help
   10.18 +  --enable-shared[=PKGS]  build shared libraries [default=yes]"
   10.19 +ac_help="$ac_help
   10.20 +  --enable-static[=PKGS]  build static libraries [default=yes]"
   10.21 +ac_help="$ac_help
   10.22 +  --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
   10.23 +ac_help="$ac_help
   10.24 +  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
   10.25 +ac_help="$ac_help
   10.26 +  --disable-libtool-lock  avoid locking (might break parallel builds)"
   10.27 +ac_help="$ac_help
   10.28 +  --with-pic              try to use only PIC/non-PIC objects [default=use both]"
   10.29 +ac_help="$ac_help
   10.30 +  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)"
   10.31 +ac_help="$ac_help
   10.32 +  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)"
   10.33 +ac_help="$ac_help
   10.34 +  --disable-sdltest       Do not try to compile and run a test SDL program"
   10.35 +ac_help="$ac_help
   10.36 +  --enable-music-cmd      support an external music player [default=yes]"
   10.37 +ac_help="$ac_help
   10.38 +  --enable-music-wave     enable streaming WAVE music [default=yes]"
   10.39 +ac_help="$ac_help
   10.40 +  --enable-music-midi     enable MIDI music via timidity [default=yes]"
   10.41 +ac_help="$ac_help
   10.42 +  --enable-music-mod      enable MOD music via mikmod [default=yes]"
   10.43 +ac_help="$ac_help
   10.44 +  --enable-music-mp3      enable MP3 music via smpeg [default=yes]"
   10.45 +
   10.46 +# Initialize some variables set by options.
   10.47 +# The variables have the same names as the options, with
   10.48 +# dashes changed to underlines.
   10.49 +build=NONE
   10.50 +cache_file=./config.cache
   10.51 +exec_prefix=NONE
   10.52 +host=NONE
   10.53 +no_create=
   10.54 +nonopt=NONE
   10.55 +no_recursion=
   10.56 +prefix=NONE
   10.57 +program_prefix=NONE
   10.58 +program_suffix=NONE
   10.59 +program_transform_name=s,x,x,
   10.60 +silent=
   10.61 +site=
   10.62 +srcdir=
   10.63 +target=NONE
   10.64 +verbose=
   10.65 +x_includes=NONE
   10.66 +x_libraries=NONE
   10.67 +bindir='${exec_prefix}/bin'
   10.68 +sbindir='${exec_prefix}/sbin'
   10.69 +libexecdir='${exec_prefix}/libexec'
   10.70 +datadir='${prefix}/share'
   10.71 +sysconfdir='${prefix}/etc'
   10.72 +sharedstatedir='${prefix}/com'
   10.73 +localstatedir='${prefix}/var'
   10.74 +libdir='${exec_prefix}/lib'
   10.75 +includedir='${prefix}/include'
   10.76 +oldincludedir='/usr/include'
   10.77 +infodir='${prefix}/info'
   10.78 +mandir='${prefix}/man'
   10.79 +
   10.80 +# Initialize some other variables.
   10.81 +subdirs=
   10.82 +MFLAGS= MAKEFLAGS=
   10.83 +SHELL=${CONFIG_SHELL-/bin/sh}
   10.84 +# Maximum number of lines to put in a shell here document.
   10.85 +ac_max_here_lines=12
   10.86 +
   10.87 +ac_prev=
   10.88 +for ac_option
   10.89 +do
   10.90 +
   10.91 +  # If the previous option needs an argument, assign it.
   10.92 +  if test -n "$ac_prev"; then
   10.93 +    eval "$ac_prev=\$ac_option"
   10.94 +    ac_prev=
   10.95 +    continue
   10.96 +  fi
   10.97 +
   10.98 +  case "$ac_option" in
   10.99 +  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  10.100 +  *) ac_optarg= ;;
  10.101 +  esac
  10.102 +
  10.103 +  # Accept the important Cygnus configure options, so we can diagnose typos.
  10.104 +
  10.105 +  case "$ac_option" in
  10.106 +
  10.107 +  -bindir | --bindir | --bindi | --bind | --bin | --bi)
  10.108 +    ac_prev=bindir ;;
  10.109 +  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  10.110 +    bindir="$ac_optarg" ;;
  10.111 +
  10.112 +  -build | --build | --buil | --bui | --bu)
  10.113 +    ac_prev=build ;;
  10.114 +  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  10.115 +    build="$ac_optarg" ;;
  10.116 +
  10.117 +  -cache-file | --cache-file | --cache-fil | --cache-fi \
  10.118 +  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  10.119 +    ac_prev=cache_file ;;
  10.120 +  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  10.121 +  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  10.122 +    cache_file="$ac_optarg" ;;
  10.123 +
  10.124 +  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  10.125 +    ac_prev=datadir ;;
  10.126 +  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  10.127 +  | --da=*)
  10.128 +    datadir="$ac_optarg" ;;
  10.129 +
  10.130 +  -disable-* | --disable-*)
  10.131 +    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  10.132 +    # Reject names that are not valid shell variable names.
  10.133 +    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  10.134 +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  10.135 +    fi
  10.136 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  10.137 +    eval "enable_${ac_feature}=no" ;;
  10.138 +
  10.139 +  -enable-* | --enable-*)
  10.140 +    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  10.141 +    # Reject names that are not valid shell variable names.
  10.142 +    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  10.143 +      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  10.144 +    fi
  10.145 +    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  10.146 +    case "$ac_option" in
  10.147 +      *=*) ;;
  10.148 +      *) ac_optarg=yes ;;
  10.149 +    esac
  10.150 +    eval "enable_${ac_feature}='$ac_optarg'" ;;
  10.151 +
  10.152 +  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  10.153 +  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  10.154 +  | --exec | --exe | --ex)
  10.155 +    ac_prev=exec_prefix ;;
  10.156 +  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  10.157 +  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  10.158 +  | --exec=* | --exe=* | --ex=*)
  10.159 +    exec_prefix="$ac_optarg" ;;
  10.160 +
  10.161 +  -gas | --gas | --ga | --g)
  10.162 +    # Obsolete; use --with-gas.
  10.163 +    with_gas=yes ;;
  10.164 +
  10.165 +  -help | --help | --hel | --he)
  10.166 +    # Omit some internal or obsolete options to make the list less imposing.
  10.167 +    # This message is too long to be a string in the A/UX 3.1 sh.
  10.168 +    cat << EOF
  10.169 +Usage: configure [options] [host]
  10.170 +Options: [defaults in brackets after descriptions]
  10.171 +Configuration:
  10.172 +  --cache-file=FILE       cache test results in FILE
  10.173 +  --help                  print this message
  10.174 +  --no-create             do not create output files
  10.175 +  --quiet, --silent       do not print \`checking...' messages
  10.176 +  --version               print the version of autoconf that created configure
  10.177 +Directory and file names:
  10.178 +  --prefix=PREFIX         install architecture-independent files in PREFIX
  10.179 +                          [$ac_default_prefix]
  10.180 +  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  10.181 +                          [same as prefix]
  10.182 +  --bindir=DIR            user executables in DIR [EPREFIX/bin]
  10.183 +  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  10.184 +  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  10.185 +  --datadir=DIR           read-only architecture-independent data in DIR
  10.186 +                          [PREFIX/share]
  10.187 +  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  10.188 +  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  10.189 +                          [PREFIX/com]
  10.190 +  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  10.191 +  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  10.192 +  --includedir=DIR        C header files in DIR [PREFIX/include]
  10.193 +  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  10.194 +  --infodir=DIR           info documentation in DIR [PREFIX/info]
  10.195 +  --mandir=DIR            man documentation in DIR [PREFIX/man]
  10.196 +  --srcdir=DIR            find the sources in DIR [configure dir or ..]
  10.197 +  --program-prefix=PREFIX prepend PREFIX to installed program names
  10.198 +  --program-suffix=SUFFIX append SUFFIX to installed program names
  10.199 +  --program-transform-name=PROGRAM
  10.200 +                          run sed PROGRAM on installed program names
  10.201 +EOF
  10.202 +    cat << EOF
  10.203 +Host type:
  10.204 +  --build=BUILD           configure for building on BUILD [BUILD=HOST]
  10.205 +  --host=HOST             configure for HOST [guessed]
  10.206 +  --target=TARGET         configure for TARGET [TARGET=HOST]
  10.207 +Features and packages:
  10.208 +  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  10.209 +  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  10.210 +  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  10.211 +  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  10.212 +  --x-includes=DIR        X include files are in DIR
  10.213 +  --x-libraries=DIR       X library files are in DIR
  10.214 +EOF
  10.215 +    if test -n "$ac_help"; then
  10.216 +      echo "--enable and --with options recognized:$ac_help"
  10.217 +    fi
  10.218 +    exit 0 ;;
  10.219 +
  10.220 +  -host | --host | --hos | --ho)
  10.221 +    ac_prev=host ;;
  10.222 +  -host=* | --host=* | --hos=* | --ho=*)
  10.223 +    host="$ac_optarg" ;;
  10.224 +
  10.225 +  -includedir | --includedir | --includedi | --included | --include \
  10.226 +  | --includ | --inclu | --incl | --inc)
  10.227 +    ac_prev=includedir ;;
  10.228 +  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  10.229 +  | --includ=* | --inclu=* | --incl=* | --inc=*)
  10.230 +    includedir="$ac_optarg" ;;
  10.231 +
  10.232 +  -infodir | --infodir | --infodi | --infod | --info | --inf)
  10.233 +    ac_prev=infodir ;;
  10.234 +  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  10.235 +    infodir="$ac_optarg" ;;
  10.236 +
  10.237 +  -libdir | --libdir | --libdi | --libd)
  10.238 +    ac_prev=libdir ;;
  10.239 +  -libdir=* | --libdir=* | --libdi=* | --libd=*)
  10.240 +    libdir="$ac_optarg" ;;
  10.241 +
  10.242 +  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  10.243 +  | --libexe | --libex | --libe)
  10.244 +    ac_prev=libexecdir ;;
  10.245 +  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  10.246 +  | --libexe=* | --libex=* | --libe=*)
  10.247 +    libexecdir="$ac_optarg" ;;
  10.248 +
  10.249 +  -localstatedir | --localstatedir | --localstatedi | --localstated \
  10.250 +  | --localstate | --localstat | --localsta | --localst \
  10.251 +  | --locals | --local | --loca | --loc | --lo)
  10.252 +    ac_prev=localstatedir ;;
  10.253 +  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  10.254 +  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  10.255 +  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  10.256 +    localstatedir="$ac_optarg" ;;
  10.257 +
  10.258 +  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  10.259 +    ac_prev=mandir ;;
  10.260 +  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  10.261 +    mandir="$ac_optarg" ;;
  10.262 +
  10.263 +  -nfp | --nfp | --nf)
  10.264 +    # Obsolete; use --without-fp.
  10.265 +    with_fp=no ;;
  10.266 +
  10.267 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  10.268 +  | --no-cr | --no-c)
  10.269 +    no_create=yes ;;
  10.270 +
  10.271 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  10.272 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  10.273 +    no_recursion=yes ;;
  10.274 +
  10.275 +  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  10.276 +  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  10.277 +  | --oldin | --oldi | --old | --ol | --o)
  10.278 +    ac_prev=oldincludedir ;;
  10.279 +  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  10.280 +  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  10.281 +  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  10.282 +    oldincludedir="$ac_optarg" ;;
  10.283 +
  10.284 +  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  10.285 +    ac_prev=prefix ;;
  10.286 +  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  10.287 +    prefix="$ac_optarg" ;;
  10.288 +
  10.289 +  -program-prefix | --program-prefix | --program-prefi | --program-pref \
  10.290 +  | --program-pre | --program-pr | --program-p)
  10.291 +    ac_prev=program_prefix ;;
  10.292 +  -program-prefix=* | --program-prefix=* | --program-prefi=* \
  10.293 +  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  10.294 +    program_prefix="$ac_optarg" ;;
  10.295 +
  10.296 +  -program-suffix | --program-suffix | --program-suffi | --program-suff \
  10.297 +  | --program-suf | --program-su | --program-s)
  10.298 +    ac_prev=program_suffix ;;
  10.299 +  -program-suffix=* | --program-suffix=* | --program-suffi=* \
  10.300 +  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  10.301 +    program_suffix="$ac_optarg" ;;
  10.302 +
  10.303 +  -program-transform-name | --program-transform-name \
  10.304 +  | --program-transform-nam | --program-transform-na \
  10.305 +  | --program-transform-n | --program-transform- \
  10.306 +  | --program-transform | --program-transfor \
  10.307 +  | --program-transfo | --program-transf \
  10.308 +  | --program-trans | --program-tran \
  10.309 +  | --progr-tra | --program-tr | --program-t)
  10.310 +    ac_prev=program_transform_name ;;
  10.311 +  -program-transform-name=* | --program-transform-name=* \
  10.312 +  | --program-transform-nam=* | --program-transform-na=* \
  10.313 +  | --program-transform-n=* | --program-transform-=* \
  10.314 +  | --program-transform=* | --program-transfor=* \
  10.315 +  | --program-transfo=* | --program-transf=* \
  10.316 +  | --program-trans=* | --program-tran=* \
  10.317 +  | --progr-tra=* | --program-tr=* | --program-t=*)
  10.318 +    program_transform_name="$ac_optarg" ;;
  10.319 +
  10.320 +  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10.321 +  | -silent | --silent | --silen | --sile | --sil)
  10.322 +    silent=yes ;;
  10.323 +
  10.324 +  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  10.325 +    ac_prev=sbindir ;;
  10.326 +  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  10.327 +  | --sbi=* | --sb=*)
  10.328 +    sbindir="$ac_optarg" ;;
  10.329 +
  10.330 +  -sharedstatedir | --sharedstatedir | --sharedstatedi \
  10.331 +  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  10.332 +  | --sharedst | --shareds | --shared | --share | --shar \
  10.333 +  | --sha | --sh)
  10.334 +    ac_prev=sharedstatedir ;;
  10.335 +  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  10.336 +  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  10.337 +  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  10.338 +  | --sha=* | --sh=*)
  10.339 +    sharedstatedir="$ac_optarg" ;;
  10.340 +
  10.341 +  -site | --site | --sit)
  10.342 +    ac_prev=site ;;
  10.343 +  -site=* | --site=* | --sit=*)
  10.344 +    site="$ac_optarg" ;;
  10.345 +
  10.346 +  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  10.347 +    ac_prev=srcdir ;;
  10.348 +  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  10.349 +    srcdir="$ac_optarg" ;;
  10.350 +
  10.351 +  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  10.352 +  | --syscon | --sysco | --sysc | --sys | --sy)
  10.353 +    ac_prev=sysconfdir ;;
  10.354 +  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  10.355 +  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  10.356 +    sysconfdir="$ac_optarg" ;;
  10.357 +
  10.358 +  -target | --target | --targe | --targ | --tar | --ta | --t)
  10.359 +    ac_prev=target ;;
  10.360 +  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  10.361 +    target="$ac_optarg" ;;
  10.362 +
  10.363 +  -v | -verbose | --verbose | --verbos | --verbo | --verb)
  10.364 +    verbose=yes ;;
  10.365 +
  10.366 +  -version | --version | --versio | --versi | --vers)
  10.367 +    echo "configure generated by autoconf version 2.13"
  10.368 +    exit 0 ;;
  10.369 +
  10.370 +  -with-* | --with-*)
  10.371 +    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  10.372 +    # Reject names that are not valid shell variable names.
  10.373 +    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  10.374 +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  10.375 +    fi
  10.376 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  10.377 +    case "$ac_option" in
  10.378 +      *=*) ;;
  10.379 +      *) ac_optarg=yes ;;
  10.380 +    esac
  10.381 +    eval "with_${ac_package}='$ac_optarg'" ;;
  10.382 +
  10.383 +  -without-* | --without-*)
  10.384 +    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  10.385 +    # Reject names that are not valid shell variable names.
  10.386 +    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  10.387 +      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  10.388 +    fi
  10.389 +    ac_package=`echo $ac_package| sed 's/-/_/g'`
  10.390 +    eval "with_${ac_package}=no" ;;
  10.391 +
  10.392 +  --x)
  10.393 +    # Obsolete; use --with-x.
  10.394 +    with_x=yes ;;
  10.395 +
  10.396 +  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  10.397 +  | --x-incl | --x-inc | --x-in | --x-i)
  10.398 +    ac_prev=x_includes ;;
  10.399 +  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  10.400 +  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  10.401 +    x_includes="$ac_optarg" ;;
  10.402 +
  10.403 +  -x-libraries | --x-libraries | --x-librarie | --x-librari \
  10.404 +  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  10.405 +    ac_prev=x_libraries ;;
  10.406 +  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  10.407 +  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  10.408 +    x_libraries="$ac_optarg" ;;
  10.409 +
  10.410 +  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  10.411 +    ;;
  10.412 +
  10.413 +  *)
  10.414 +    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  10.415 +      echo "configure: warning: $ac_option: invalid host type" 1>&2
  10.416 +    fi
  10.417 +    if test "x$nonopt" != xNONE; then
  10.418 +      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  10.419 +    fi
  10.420 +    nonopt="$ac_option"
  10.421 +    ;;
  10.422 +
  10.423 +  esac
  10.424 +done
  10.425 +
  10.426 +if test -n "$ac_prev"; then
  10.427 +  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  10.428 +fi
  10.429 +
  10.430 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  10.431 +
  10.432 +# File descriptor usage:
  10.433 +# 0 standard input
  10.434 +# 1 file creation
  10.435 +# 2 errors and warnings
  10.436 +# 3 some systems may open it to /dev/tty
  10.437 +# 4 used on the Kubota Titan
  10.438 +# 6 checking for... messages and results
  10.439 +# 5 compiler messages saved in config.log
  10.440 +if test "$silent" = yes; then
  10.441 +  exec 6>/dev/null
  10.442 +else
  10.443 +  exec 6>&1
  10.444 +fi
  10.445 +exec 5>./config.log
  10.446 +
  10.447 +echo "\
  10.448 +This file contains any messages produced by compilers while
  10.449 +running configure, to aid debugging if configure makes a mistake.
  10.450 +" 1>&5
  10.451 +
  10.452 +# Strip out --no-create and --no-recursion so they do not pile up.
  10.453 +# Also quote any args containing shell metacharacters.
  10.454 +ac_configure_args=
  10.455 +for ac_arg
  10.456 +do
  10.457 +  case "$ac_arg" in
  10.458 +  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  10.459 +  | --no-cr | --no-c) ;;
  10.460 +  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  10.461 +  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  10.462 +  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  10.463 +  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  10.464 +  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  10.465 +  esac
  10.466 +done
  10.467 +
  10.468 +# NLS nuisances.
  10.469 +# Only set these to C if already set.  These must not be set unconditionally
  10.470 +# because not all systems understand e.g. LANG=C (notably SCO).
  10.471 +# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  10.472 +# Non-C LC_CTYPE values break the ctype check.
  10.473 +if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  10.474 +if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  10.475 +if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  10.476 +if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  10.477 +
  10.478 +# confdefs.h avoids OS command line length limits that DEFS can exceed.
  10.479 +rm -rf conftest* confdefs.h
  10.480 +# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  10.481 +echo > confdefs.h
  10.482 +
  10.483 +# A filename unique to this package, relative to the directory that
  10.484 +# configure is in, which we can look for to find out if srcdir is correct.
  10.485 +ac_unique_file=README
  10.486 +
  10.487 +# Find the source files, if location was not specified.
  10.488 +if test -z "$srcdir"; then
  10.489 +  ac_srcdir_defaulted=yes
  10.490 +  # Try the directory containing this script, then its parent.
  10.491 +  ac_prog=$0
  10.492 +  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  10.493 +  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  10.494 +  srcdir=$ac_confdir
  10.495 +  if test ! -r $srcdir/$ac_unique_file; then
  10.496 +    srcdir=..
  10.497 +  fi
  10.498 +else
  10.499 +  ac_srcdir_defaulted=no
  10.500 +fi
  10.501 +if test ! -r $srcdir/$ac_unique_file; then
  10.502 +  if test "$ac_srcdir_defaulted" = yes; then
  10.503 +    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  10.504 +  else
  10.505 +    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  10.506 +  fi
  10.507 +fi
  10.508 +srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  10.509 +
  10.510 +# Prefer explicitly selected file to automatically selected ones.
  10.511 +if test -z "$CONFIG_SITE"; then
  10.512 +  if test "x$prefix" != xNONE; then
  10.513 +    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  10.514 +  else
  10.515 +    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  10.516 +  fi
  10.517 +fi
  10.518 +for ac_site_file in $CONFIG_SITE; do
  10.519 +  if test -r "$ac_site_file"; then
  10.520 +    echo "loading site script $ac_site_file"
  10.521 +    . "$ac_site_file"
  10.522 +  fi
  10.523 +done
  10.524 +
  10.525 +if test -r "$cache_file"; then
  10.526 +  echo "loading cache $cache_file"
  10.527 +  . $cache_file
  10.528 +else
  10.529 +  echo "creating cache $cache_file"
  10.530 +  > $cache_file
  10.531 +fi
  10.532 +
  10.533 +ac_ext=c
  10.534 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10.535 +ac_cpp='$CPP $CPPFLAGS'
  10.536 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10.537 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10.538 +cross_compiling=$ac_cv_prog_cc_cross
  10.539 +
  10.540 +ac_exeext=
  10.541 +ac_objext=o
  10.542 +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  10.543 +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  10.544 +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  10.545 +    ac_n= ac_c='
  10.546 +' ac_t='	'
  10.547 +  else
  10.548 +    ac_n=-n ac_c= ac_t=
  10.549 +  fi
  10.550 +else
  10.551 +  ac_n= ac_c='\c' ac_t=
  10.552 +fi
  10.553 +
  10.554 +
  10.555 +
  10.556 +
  10.557 +# Making releases:
  10.558 +#   MICRO_VERSION += 1;
  10.559 +#   INTERFACE_AGE += 1;
  10.560 +#   BINARY_AGE += 1;
  10.561 +# if any functions have been added, set INTERFACE_AGE to 0.
  10.562 +# if backwards compatibility has been broken,
  10.563 +# set BINARY_AGE and INTERFACE_AGE to 0.
  10.564 +
  10.565 +MAJOR_VERSION=1
  10.566 +MINOR_VERSION=0
  10.567 +MICRO_VERSION=0
  10.568 +INTERFACE_AGE=0
  10.569 +BINARY_AGE=0
  10.570 +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
  10.571 +
  10.572 +
  10.573 +
  10.574 +
  10.575 +
  10.576 +
  10.577 +
  10.578 +
  10.579 +# libtool versioning
  10.580 +LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
  10.581 +LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
  10.582 +LT_REVISION=$INTERFACE_AGE
  10.583 +LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
  10.584 +
  10.585 +
  10.586 +
  10.587 +
  10.588 +
  10.589 +
  10.590 +ac_aux_dir=
  10.591 +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  10.592 +  if test -f $ac_dir/install-sh; then
  10.593 +    ac_aux_dir=$ac_dir
  10.594 +    ac_install_sh="$ac_aux_dir/install-sh -c"
  10.595 +    break
  10.596 +  elif test -f $ac_dir/install.sh; then
  10.597 +    ac_aux_dir=$ac_dir
  10.598 +    ac_install_sh="$ac_aux_dir/install.sh -c"
  10.599 +    break
  10.600 +  fi
  10.601 +done
  10.602 +if test -z "$ac_aux_dir"; then
  10.603 +  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  10.604 +fi
  10.605 +ac_config_guess=$ac_aux_dir/config.guess
  10.606 +ac_config_sub=$ac_aux_dir/config.sub
  10.607 +ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  10.608 +
  10.609 +# Find a good install program.  We prefer a C program (faster),
  10.610 +# so one script is as good as another.  But avoid the broken or
  10.611 +# incompatible versions:
  10.612 +# SysV /etc/install, /usr/sbin/install
  10.613 +# SunOS /usr/etc/install
  10.614 +# IRIX /sbin/install
  10.615 +# AIX /bin/install
  10.616 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  10.617 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
  10.618 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  10.619 +# ./install, which can be erroneously created by make from ./install.sh.
  10.620 +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  10.621 +echo "configure:619: checking for a BSD compatible install" >&5
  10.622 +if test -z "$INSTALL"; then
  10.623 +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  10.624 +  echo $ac_n "(cached) $ac_c" 1>&6
  10.625 +else
  10.626 +    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
  10.627 +  for ac_dir in $PATH; do
  10.628 +    # Account for people who put trailing slashes in PATH elements.
  10.629 +    case "$ac_dir/" in
  10.630 +    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  10.631 +    *)
  10.632 +      # OSF1 and SCO ODT 3.0 have their own names for install.
  10.633 +      # Don't use installbsd from OSF since it installs stuff as root
  10.634 +      # by default.
  10.635 +      for ac_prog in ginstall scoinst install; do
  10.636 +        if test -f $ac_dir/$ac_prog; then
  10.637 +	  if test $ac_prog = install &&
  10.638 +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  10.639 +	    # AIX install.  It has an incompatible calling convention.
  10.640 +	    :
  10.641 +	  else
  10.642 +	    ac_cv_path_install="$ac_dir/$ac_prog -c"
  10.643 +	    break 2
  10.644 +	  fi
  10.645 +	fi
  10.646 +      done
  10.647 +      ;;
  10.648 +    esac
  10.649 +  done
  10.650 +  IFS="$ac_save_IFS"
  10.651 +
  10.652 +fi
  10.653 +  if test "${ac_cv_path_install+set}" = set; then
  10.654 +    INSTALL="$ac_cv_path_install"
  10.655 +  else
  10.656 +    # As a last resort, use the slow shell script.  We don't cache a
  10.657 +    # path for INSTALL within a source directory, because that will
  10.658 +    # break other packages using the cache if that directory is
  10.659 +    # removed, or if the path is relative.
  10.660 +    INSTALL="$ac_install_sh"
  10.661 +  fi
  10.662 +fi
  10.663 +echo "$ac_t""$INSTALL" 1>&6
  10.664 +
  10.665 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  10.666 +# It thinks the first close brace ends the variable substitution.
  10.667 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  10.668 +
  10.669 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  10.670 +
  10.671 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  10.672 +
  10.673 +echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  10.674 +echo "configure:672: checking whether build environment is sane" >&5
  10.675 +# Just in case
  10.676 +sleep 1
  10.677 +echo timestamp > conftestfile
  10.678 +# Do `set' in a subshell so we don't clobber the current shell's
  10.679 +# arguments.  Must try -L first in case configure is actually a
  10.680 +# symlink; some systems play weird games with the mod time of symlinks
  10.681 +# (eg FreeBSD returns the mod time of the symlink's containing
  10.682 +# directory).
  10.683 +if (
  10.684 +   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  10.685 +   if test "$*" = "X"; then
  10.686 +      # -L didn't work.
  10.687 +      set X `ls -t $srcdir/configure conftestfile`
  10.688 +   fi
  10.689 +   if test "$*" != "X $srcdir/configure conftestfile" \
  10.690 +      && test "$*" != "X conftestfile $srcdir/configure"; then
  10.691 +
  10.692 +      # If neither matched, then we have a broken ls.  This can happen
  10.693 +      # if, for instance, CONFIG_SHELL is bash and it inherits a
  10.694 +      # broken ls alias from the environment.  This has actually
  10.695 +      # happened.  Such a system could not be considered "sane".
  10.696 +      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  10.697 +alias in your environment" 1>&2; exit 1; }
  10.698 +   fi
  10.699 +
  10.700 +   test "$2" = conftestfile
  10.701 +   )
  10.702 +then
  10.703 +   # Ok.
  10.704 +   :
  10.705 +else
  10.706 +   { echo "configure: error: newly created file is older than distributed files!
  10.707 +Check your system clock" 1>&2; exit 1; }
  10.708 +fi
  10.709 +rm -f conftest*
  10.710 +echo "$ac_t""yes" 1>&6
  10.711 +if test "$program_transform_name" = s,x,x,; then
  10.712 +  program_transform_name=
  10.713 +else
  10.714 +  # Double any \ or $.  echo might interpret backslashes.
  10.715 +  cat <<\EOF_SED > conftestsed
  10.716 +s,\\,\\\\,g; s,\$,$$,g
  10.717 +EOF_SED
  10.718 +  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  10.719 +  rm -f conftestsed
  10.720 +fi
  10.721 +test "$program_prefix" != NONE &&
  10.722 +  program_transform_name="s,^,${program_prefix},; $program_transform_name"
  10.723 +# Use a double $ so make ignores it.
  10.724 +test "$program_suffix" != NONE &&
  10.725 +  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  10.726 +
  10.727 +# sed with no file args requires a program.
  10.728 +test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  10.729 +
  10.730 +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  10.731 +echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
  10.732 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  10.733 +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  10.734 +  echo $ac_n "(cached) $ac_c" 1>&6
  10.735 +else
  10.736 +  cat > conftestmake <<\EOF
  10.737 +all:
  10.738 +	@echo 'ac_maketemp="${MAKE}"'
  10.739 +EOF
  10.740 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  10.741 +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  10.742 +if test -n "$ac_maketemp"; then
  10.743 +  eval ac_cv_prog_make_${ac_make}_set=yes
  10.744 +else
  10.745 +  eval ac_cv_prog_make_${ac_make}_set=no
  10.746 +fi
  10.747 +rm -f conftestmake
  10.748 +fi
  10.749 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  10.750 +  echo "$ac_t""yes" 1>&6
  10.751 +  SET_MAKE=
  10.752 +else
  10.753 +  echo "$ac_t""no" 1>&6
  10.754 +  SET_MAKE="MAKE=${MAKE-make}"
  10.755 +fi
  10.756 +
  10.757 +
  10.758 +
  10.759 +PACKAGE=mixer
  10.760 +
  10.761 +VERSION=$VERSION
  10.762 +
  10.763 +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  10.764 +  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  10.765 +fi
  10.766 +cat >> confdefs.h <<EOF
  10.767 +#define PACKAGE "$PACKAGE"
  10.768 +EOF
  10.769 +
  10.770 +cat >> confdefs.h <<EOF
  10.771 +#define VERSION "$VERSION"
  10.772 +EOF
  10.773 +
  10.774 +
  10.775 +
  10.776 +missing_dir=`cd $ac_aux_dir && pwd`
  10.777 +echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  10.778 +echo "configure:776: checking for working aclocal" >&5
  10.779 +# Run test in a subshell; some versions of sh will print an error if
  10.780 +# an executable is not found, even if stderr is redirected.
  10.781 +# Redirect stdin to placate older versions of autoconf.  Sigh.
  10.782 +if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  10.783 +   ACLOCAL=aclocal
  10.784 +   echo "$ac_t""found" 1>&6
  10.785 +else
  10.786 +   ACLOCAL="$missing_dir/missing aclocal"
  10.787 +   echo "$ac_t""missing" 1>&6
  10.788 +fi
  10.789 +
  10.790 +echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  10.791 +echo "configure:789: checking for working autoconf" >&5
  10.792 +# Run test in a subshell; some versions of sh will print an error if
  10.793 +# an executable is not found, even if stderr is redirected.
  10.794 +# Redirect stdin to placate older versions of autoconf.  Sigh.
  10.795 +if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  10.796 +   AUTOCONF=autoconf
  10.797 +   echo "$ac_t""found" 1>&6
  10.798 +else
  10.799 +   AUTOCONF="$missing_dir/missing autoconf"
  10.800 +   echo "$ac_t""missing" 1>&6
  10.801 +fi
  10.802 +
  10.803 +echo $ac_n "checking for working automake""... $ac_c" 1>&6
  10.804 +echo "configure:802: checking for working automake" >&5
  10.805 +# Run test in a subshell; some versions of sh will print an error if
  10.806 +# an executable is not found, even if stderr is redirected.
  10.807 +# Redirect stdin to placate older versions of autoconf.  Sigh.
  10.808 +if (automake --version) < /dev/null > /dev/null 2>&1; then
  10.809 +   AUTOMAKE=automake
  10.810 +   echo "$ac_t""found" 1>&6
  10.811 +else
  10.812 +   AUTOMAKE="$missing_dir/missing automake"
  10.813 +   echo "$ac_t""missing" 1>&6
  10.814 +fi
  10.815 +
  10.816 +echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  10.817 +echo "configure:815: checking for working autoheader" >&5
  10.818 +# Run test in a subshell; some versions of sh will print an error if
  10.819 +# an executable is not found, even if stderr is redirected.
  10.820 +# Redirect stdin to placate older versions of autoconf.  Sigh.
  10.821 +if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  10.822 +   AUTOHEADER=autoheader
  10.823 +   echo "$ac_t""found" 1>&6
  10.824 +else
  10.825 +   AUTOHEADER="$missing_dir/missing autoheader"
  10.826 +   echo "$ac_t""missing" 1>&6
  10.827 +fi
  10.828 +
  10.829 +echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  10.830 +echo "configure:828: checking for working makeinfo" >&5
  10.831 +# Run test in a subshell; some versions of sh will print an error if
  10.832 +# an executable is not found, even if stderr is redirected.
  10.833 +# Redirect stdin to placate older versions of autoconf.  Sigh.
  10.834 +if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  10.835 +   MAKEINFO=makeinfo
  10.836 +   echo "$ac_t""found" 1>&6
  10.837 +else
  10.838 +   MAKEINFO="$missing_dir/missing makeinfo"
  10.839 +   echo "$ac_t""missing" 1>&6
  10.840 +fi
  10.841 +
  10.842 +
  10.843 +
  10.844 +
  10.845 +echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  10.846 +echo "configure:844: checking whether ${MAKE-make} sets \${MAKE}" >&5
  10.847 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  10.848 +if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  10.849 +  echo $ac_n "(cached) $ac_c" 1>&6
  10.850 +else
  10.851 +  cat > conftestmake <<\EOF
  10.852 +all:
  10.853 +	@echo 'ac_maketemp="${MAKE}"'
  10.854 +EOF
  10.855 +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  10.856 +eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  10.857 +if test -n "$ac_maketemp"; then
  10.858 +  eval ac_cv_prog_make_${ac_make}_set=yes
  10.859 +else
  10.860 +  eval ac_cv_prog_make_${ac_make}_set=no
  10.861 +fi
  10.862 +rm -f conftestmake
  10.863 +fi
  10.864 +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  10.865 +  echo "$ac_t""yes" 1>&6
  10.866 +  SET_MAKE=
  10.867 +else
  10.868 +  echo "$ac_t""no" 1>&6
  10.869 +  SET_MAKE="MAKE=${MAKE-make}"
  10.870 +fi
  10.871 +
  10.872 +# Extract the first word of "gcc", so it can be a program name with args.
  10.873 +set dummy gcc; ac_word=$2
  10.874 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10.875 +echo "configure:873: checking for $ac_word" >&5
  10.876 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  10.877 +  echo $ac_n "(cached) $ac_c" 1>&6
  10.878 +else
  10.879 +  if test -n "$CC"; then
  10.880 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  10.881 +else
  10.882 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  10.883 +  ac_dummy="$PATH"
  10.884 +  for ac_dir in $ac_dummy; do
  10.885 +    test -z "$ac_dir" && ac_dir=.
  10.886 +    if test -f $ac_dir/$ac_word; then
  10.887 +      ac_cv_prog_CC="gcc"
  10.888 +      break
  10.889 +    fi
  10.890 +  done
  10.891 +  IFS="$ac_save_ifs"
  10.892 +fi
  10.893 +fi
  10.894 +CC="$ac_cv_prog_CC"
  10.895 +if test -n "$CC"; then
  10.896 +  echo "$ac_t""$CC" 1>&6
  10.897 +else
  10.898 +  echo "$ac_t""no" 1>&6
  10.899 +fi
  10.900 +
  10.901 +if test -z "$CC"; then
  10.902 +  # Extract the first word of "cc", so it can be a program name with args.
  10.903 +set dummy cc; ac_word=$2
  10.904 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10.905 +echo "configure:903: checking for $ac_word" >&5
  10.906 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  10.907 +  echo $ac_n "(cached) $ac_c" 1>&6
  10.908 +else
  10.909 +  if test -n "$CC"; then
  10.910 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  10.911 +else
  10.912 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  10.913 +  ac_prog_rejected=no
  10.914 +  ac_dummy="$PATH"
  10.915 +  for ac_dir in $ac_dummy; do
  10.916 +    test -z "$ac_dir" && ac_dir=.
  10.917 +    if test -f $ac_dir/$ac_word; then
  10.918 +      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
  10.919 +        ac_prog_rejected=yes
  10.920 +	continue
  10.921 +      fi
  10.922 +      ac_cv_prog_CC="cc"
  10.923 +      break
  10.924 +    fi
  10.925 +  done
  10.926 +  IFS="$ac_save_ifs"
  10.927 +if test $ac_prog_rejected = yes; then
  10.928 +  # We found a bogon in the path, so make sure we never use it.
  10.929 +  set dummy $ac_cv_prog_CC
  10.930 +  shift
  10.931 +  if test $# -gt 0; then
  10.932 +    # We chose a different compiler from the bogus one.
  10.933 +    # However, it has the same basename, so the bogon will be chosen
  10.934 +    # first if we set CC to just the basename; use the full file name.
  10.935 +    shift
  10.936 +    set dummy "$ac_dir/$ac_word" "$@"
  10.937 +    shift
  10.938 +    ac_cv_prog_CC="$@"
  10.939 +  fi
  10.940 +fi
  10.941 +fi
  10.942 +fi
  10.943 +CC="$ac_cv_prog_CC"
  10.944 +if test -n "$CC"; then
  10.945 +  echo "$ac_t""$CC" 1>&6
  10.946 +else
  10.947 +  echo "$ac_t""no" 1>&6
  10.948 +fi
  10.949 +
  10.950 +  if test -z "$CC"; then
  10.951 +    case "`uname -s`" in
  10.952 +    *win32* | *WIN32*)
  10.953 +      # Extract the first word of "cl", so it can be a program name with args.
  10.954 +set dummy cl; ac_word=$2
  10.955 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
  10.956 +echo "configure:954: checking for $ac_word" >&5
  10.957 +if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
  10.958 +  echo $ac_n "(cached) $ac_c" 1>&6
  10.959 +else
  10.960 +  if test -n "$CC"; then
  10.961 +  ac_cv_prog_CC="$CC" # Let the user override the test.
  10.962 +else
  10.963 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
  10.964 +  ac_dummy="$PATH"
  10.965 +  for ac_dir in $ac_dummy; do
  10.966 +    test -z "$ac_dir" && ac_dir=.
  10.967 +    if test -f $ac_dir/$ac_word; then
  10.968 +      ac_cv_prog_CC="cl"
  10.969 +      break
  10.970 +    fi
  10.971 +  done
  10.972 +  IFS="$ac_save_ifs"
  10.973 +fi
  10.974 +fi
  10.975 +CC="$ac_cv_prog_CC"
  10.976 +if test -n "$CC"; then
  10.977 +  echo "$ac_t""$CC" 1>&6
  10.978 +else
  10.979 +  echo "$ac_t""no" 1>&6
  10.980 +fi
  10.981 + ;;
  10.982 +    esac
  10.983 +  fi
  10.984 +  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
  10.985 +fi
  10.986 +
  10.987 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
  10.988 +echo "configure:986: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
  10.989 +
  10.990 +ac_ext=c
  10.991 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  10.992 +ac_cpp='$CPP $CPPFLAGS'
  10.993 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  10.994 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  10.995 +cross_compiling=$ac_cv_prog_cc_cross
  10.996 +
  10.997 +cat > conftest.$ac_ext << EOF
  10.998 +
  10.999 +#line 997 "configure"
 10.1000 +#include "confdefs.h"
 10.1001 +
 10.1002 +main(){return(0);}
 10.1003 +EOF
 10.1004 +if { (eval echo configure:1002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 10.1005 +  ac_cv_prog_cc_works=yes
 10.1006 +  # If we can't run a trivial program, we are probably using a cross compiler.
 10.1007 +  if (./conftest; exit) 2>/dev/null; then
 10.1008 +    ac_cv_prog_cc_cross=no
 10.1009 +  else
 10.1010 +    ac_cv_prog_cc_cross=yes
 10.1011 +  fi
 10.1012 +else
 10.1013 +  echo "configure: failed program was:" >&5
 10.1014 +  cat conftest.$ac_ext >&5
 10.1015 +  ac_cv_prog_cc_works=no
 10.1016 +fi
 10.1017 +rm -fr conftest*
 10.1018 +ac_ext=c
 10.1019 +# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 10.1020 +ac_cpp='$CPP $CPPFLAGS'
 10.1021 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 10.1022 +ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 10.1023 +cross_compiling=$ac_cv_prog_cc_cross
 10.1024 +
 10.1025 +echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 10.1026 +if test $ac_cv_prog_cc_works = no; then
 10.1027 +  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 10.1028 +fi
 10.1029 +echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 10.1030 +echo "configure:1028: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 10.1031 +echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 10.1032 +cross_compiling=$ac_cv_prog_cc_cross
 10.1033 +
 10.1034 +echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 10.1035 +echo "configure:1033: checking whether we are using GNU C" >&5
 10.1036 +if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 10.1037 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1038 +else
 10.1039 +  cat > conftest.c <<EOF
 10.1040 +#ifdef __GNUC__
 10.1041 +  yes;
 10.1042 +#endif
 10.1043 +EOF
 10.1044 +if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1042: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 10.1045 +  ac_cv_prog_gcc=yes
 10.1046 +else
 10.1047 +  ac_cv_prog_gcc=no
 10.1048 +fi
 10.1049 +fi
 10.1050 +
 10.1051 +echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 10.1052 +
 10.1053 +if test $ac_cv_prog_gcc = yes; then
 10.1054 +  GCC=yes
 10.1055 +else
 10.1056 +  GCC=
 10.1057 +fi
 10.1058 +
 10.1059 +ac_test_CFLAGS="${CFLAGS+set}"
 10.1060 +ac_save_CFLAGS="$CFLAGS"
 10.1061 +CFLAGS=
 10.1062 +echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 10.1063 +echo "configure:1061: checking whether ${CC-cc} accepts -g" >&5
 10.1064 +if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 10.1065 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1066 +else
 10.1067 +  echo 'void f(){}' > conftest.c
 10.1068 +if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 10.1069 +  ac_cv_prog_cc_g=yes
 10.1070 +else
 10.1071 +  ac_cv_prog_cc_g=no
 10.1072 +fi
 10.1073 +rm -f conftest*
 10.1074 +
 10.1075 +fi
 10.1076 +
 10.1077 +echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 10.1078 +if test "$ac_test_CFLAGS" = set; then
 10.1079 +  CFLAGS="$ac_save_CFLAGS"
 10.1080 +elif test $ac_cv_prog_cc_g = yes; then
 10.1081 +  if test "$GCC" = yes; then
 10.1082 +    CFLAGS="-g -O2"
 10.1083 +  else
 10.1084 +    CFLAGS="-g"
 10.1085 +  fi
 10.1086 +else
 10.1087 +  if test "$GCC" = yes; then
 10.1088 +    CFLAGS="-O2"
 10.1089 +  else
 10.1090 +    CFLAGS=
 10.1091 +  fi
 10.1092 +fi
 10.1093 +
 10.1094 +# Check whether --enable-shared or --disable-shared was given.
 10.1095 +if test "${enable_shared+set}" = set; then
 10.1096 +  enableval="$enable_shared"
 10.1097 +  p=${PACKAGE-default}
 10.1098 +case "$enableval" in
 10.1099 +yes) enable_shared=yes ;;
 10.1100 +no) enable_shared=no ;;
 10.1101 +*)
 10.1102 +  enable_shared=no
 10.1103 +  # Look at the argument we got.  We use all the common list separators.
 10.1104 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 10.1105 +  for pkg in $enableval; do
 10.1106 +    if test "X$pkg" = "X$p"; then
 10.1107 +      enable_shared=yes
 10.1108 +    fi
 10.1109 +  done
 10.1110 +  IFS="$ac_save_ifs"
 10.1111 +  ;;
 10.1112 +esac
 10.1113 +else
 10.1114 +  enable_shared=yes
 10.1115 +fi
 10.1116 +
 10.1117 +# Check whether --enable-static or --disable-static was given.
 10.1118 +if test "${enable_static+set}" = set; then
 10.1119 +  enableval="$enable_static"
 10.1120 +  p=${PACKAGE-default}
 10.1121 +case "$enableval" in
 10.1122 +yes) enable_static=yes ;;
 10.1123 +no) enable_static=no ;;
 10.1124 +*)
 10.1125 +  enable_static=no
 10.1126 +  # Look at the argument we got.  We use all the common list separators.
 10.1127 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 10.1128 +  for pkg in $enableval; do
 10.1129 +    if test "X$pkg" = "X$p"; then
 10.1130 +      enable_static=yes
 10.1131 +    fi
 10.1132 +  done
 10.1133 +  IFS="$ac_save_ifs"
 10.1134 +  ;;
 10.1135 +esac
 10.1136 +else
 10.1137 +  enable_static=yes
 10.1138 +fi
 10.1139 +
 10.1140 +# Check whether --enable-fast-install or --disable-fast-install was given.
 10.1141 +if test "${enable_fast_install+set}" = set; then
 10.1142 +  enableval="$enable_fast_install"
 10.1143 +  p=${PACKAGE-default}
 10.1144 +case "$enableval" in
 10.1145 +yes) enable_fast_install=yes ;;
 10.1146 +no) enable_fast_install=no ;;
 10.1147 +*)
 10.1148 +  enable_fast_install=no
 10.1149 +  # Look at the argument we got.  We use all the common list separators.
 10.1150 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 10.1151 +  for pkg in $enableval; do
 10.1152 +    if test "X$pkg" = "X$p"; then
 10.1153 +      enable_fast_install=yes
 10.1154 +    fi
 10.1155 +  done
 10.1156 +  IFS="$ac_save_ifs"
 10.1157 +  ;;
 10.1158 +esac
 10.1159 +else
 10.1160 +  enable_fast_install=yes
 10.1161 +fi
 10.1162 +
 10.1163 +
 10.1164 +# Make sure we can run config.sub.
 10.1165 +if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 10.1166 +else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 10.1167 +fi
 10.1168 +
 10.1169 +echo $ac_n "checking host system type""... $ac_c" 1>&6
 10.1170 +echo "configure:1168: checking host system type" >&5
 10.1171 +
 10.1172 +host_alias=$host
 10.1173 +case "$host_alias" in
 10.1174 +NONE)
 10.1175 +  case $nonopt in
 10.1176 +  NONE)
 10.1177 +    if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 10.1178 +    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 10.1179 +    fi ;;
 10.1180 +  *) host_alias=$nonopt ;;
 10.1181 +  esac ;;
 10.1182 +esac
 10.1183 +
 10.1184 +host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 10.1185 +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 10.1186 +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 10.1187 +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 10.1188 +echo "$ac_t""$host" 1>&6
 10.1189 +
 10.1190 +echo $ac_n "checking build system type""... $ac_c" 1>&6
 10.1191 +echo "configure:1189: checking build system type" >&5
 10.1192 +
 10.1193 +build_alias=$build
 10.1194 +case "$build_alias" in
 10.1195 +NONE)
 10.1196 +  case $nonopt in
 10.1197 +  NONE) build_alias=$host_alias ;;
 10.1198 +  *) build_alias=$nonopt ;;
 10.1199 +  esac ;;
 10.1200 +esac
 10.1201 +
 10.1202 +build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 10.1203 +build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 10.1204 +build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 10.1205 +build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 10.1206 +echo "$ac_t""$build" 1>&6
 10.1207 +
 10.1208 +# Check whether --with-gnu-ld or --without-gnu-ld was given.
 10.1209 +if test "${with_gnu_ld+set}" = set; then
 10.1210 +  withval="$with_gnu_ld"
 10.1211 +  test "$withval" = no || with_gnu_ld=yes
 10.1212 +else
 10.1213 +  with_gnu_ld=no
 10.1214 +fi
 10.1215 +
 10.1216 +ac_prog=ld
 10.1217 +if test "$ac_cv_prog_gcc" = yes; then
 10.1218 +  # Check if gcc -print-prog-name=ld gives a path.
 10.1219 +  echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 10.1220 +echo "configure:1218: checking for ld used by GCC" >&5
 10.1221 +  case $host in
 10.1222 +  *-*-mingw*)
 10.1223 +    # gcc leaves a trailing carriage return which upsets mingw
 10.1224 +    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 10.1225 +  *)
 10.1226 +    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 10.1227 +  esac
 10.1228 +  case "$ac_prog" in
 10.1229 +    # Accept absolute paths.
 10.1230 +    [\\/]* | [A-Za-z]:[\\/]*)
 10.1231 +      re_direlt='/[^/][^/]*/\.\./'
 10.1232 +      # Canonicalize the path of ld
 10.1233 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 10.1234 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 10.1235 +	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 10.1236 +      done
 10.1237 +      test -z "$LD" && LD="$ac_prog"
 10.1238 +      ;;
 10.1239 +  "")
 10.1240 +    # If it fails, then pretend we aren't using GCC.
 10.1241 +    ac_prog=ld
 10.1242 +    ;;
 10.1243 +  *)
 10.1244 +    # If it is relative, then search for the first ld in PATH.
 10.1245 +    with_gnu_ld=unknown
 10.1246 +    ;;
 10.1247 +  esac
 10.1248 +elif test "$with_gnu_ld" = yes; then
 10.1249 +  echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 10.1250 +echo "configure:1248: checking for GNU ld" >&5
 10.1251 +else
 10.1252 +  echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 10.1253 +echo "configure:1251: checking for non-GNU ld" >&5
 10.1254 +fi
 10.1255 +if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
 10.1256 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1257 +else
 10.1258 +  if test -z "$LD"; then
 10.1259 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 10.1260 +  for ac_dir in $PATH; do
 10.1261 +    test -z "$ac_dir" && ac_dir=.
 10.1262 +    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 10.1263 +      ac_cv_path_LD="$ac_dir/$ac_prog"
 10.1264 +      # Check to see if the program is GNU ld.  I'd rather use --version,
 10.1265 +      # but apparently some GNU ld's only accept -v.
 10.1266 +      # Break only if it was the GNU/non-GNU ld that we prefer.
 10.1267 +      if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 10.1268 +	test "$with_gnu_ld" != no && break
 10.1269 +      else
 10.1270 +	test "$with_gnu_ld" != yes && break
 10.1271 +      fi
 10.1272 +    fi
 10.1273 +  done
 10.1274 +  IFS="$ac_save_ifs"
 10.1275 +else
 10.1276 +  ac_cv_path_LD="$LD" # Let the user override the test with a path.
 10.1277 +fi
 10.1278 +fi
 10.1279 +
 10.1280 +LD="$ac_cv_path_LD"
 10.1281 +if test -n "$LD"; then
 10.1282 +  echo "$ac_t""$LD" 1>&6
 10.1283 +else
 10.1284 +  echo "$ac_t""no" 1>&6
 10.1285 +fi
 10.1286 +test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 10.1287 +
 10.1288 +echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 10.1289 +echo "configure:1287: checking if the linker ($LD) is GNU ld" >&5
 10.1290 +if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
 10.1291 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1292 +else
 10.1293 +  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 10.1294 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 10.1295 +  ac_cv_prog_gnu_ld=yes
 10.1296 +else
 10.1297 +  ac_cv_prog_gnu_ld=no
 10.1298 +fi
 10.1299 +fi
 10.1300 +
 10.1301 +echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
 10.1302 +
 10.1303 +
 10.1304 +echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 10.1305 +echo "configure:1303: checking for BSD-compatible nm" >&5
 10.1306 +if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
 10.1307 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1308 +else
 10.1309 +  if test -n "$NM"; then
 10.1310 +  # Let the user override the test.
 10.1311 +  ac_cv_path_NM="$NM"
 10.1312 +else
 10.1313 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 10.1314 +  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 10.1315 +    test -z "$ac_dir" && ac_dir=.
 10.1316 +    if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
 10.1317 +      # Check to see if the nm accepts a BSD-compat flag.
 10.1318 +      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 10.1319 +      #   nm: unknown option "B" ignored
 10.1320 +      if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 10.1321 +	ac_cv_path_NM="$ac_dir/nm -B"
 10.1322 +	break
 10.1323 +      elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 10.1324 +	ac_cv_path_NM="$ac_dir/nm -p"
 10.1325 +	break
 10.1326 +      else
 10.1327 +	ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
 10.1328 +	continue # so that we can try to find one that supports BSD flags
 10.1329 +      fi
 10.1330 +    fi
 10.1331 +  done
 10.1332 +  IFS="$ac_save_ifs"
 10.1333 +  test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
 10.1334 +fi
 10.1335 +fi
 10.1336 +
 10.1337 +NM="$ac_cv_path_NM"
 10.1338 +echo "$ac_t""$NM" 1>&6
 10.1339 +
 10.1340 +
 10.1341 +echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 10.1342 +echo "configure:1340: checking whether ln -s works" >&5
 10.1343 +if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 10.1344 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1345 +else
 10.1346 +  rm -f conftestdata
 10.1347 +if ln -s X conftestdata 2>/dev/null
 10.1348 +then
 10.1349 +  rm -f conftestdata
 10.1350 +  ac_cv_prog_LN_S="ln -s"
 10.1351 +else
 10.1352 +  ac_cv_prog_LN_S=ln
 10.1353 +fi
 10.1354 +fi
 10.1355 +LN_S="$ac_cv_prog_LN_S"
 10.1356 +if test "$ac_cv_prog_LN_S" = "ln -s"; then
 10.1357 +  echo "$ac_t""yes" 1>&6
 10.1358 +else
 10.1359 +  echo "$ac_t""no" 1>&6
 10.1360 +fi
 10.1361 +
 10.1362 +if test $host != $build; then
 10.1363 +  ac_tool_prefix=${host_alias}-
 10.1364 +else
 10.1365 +  ac_tool_prefix=
 10.1366 +fi
 10.1367 +
 10.1368 +
 10.1369 +# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 10.1370 +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 10.1371 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 10.1372 +echo "configure:1370: checking for $ac_word" >&5
 10.1373 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 10.1374 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1375 +else
 10.1376 +  if test -n "$RANLIB"; then
 10.1377 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 10.1378 +else
 10.1379 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 10.1380 +  ac_dummy="$PATH"
 10.1381 +  for ac_dir in $ac_dummy; do
 10.1382 +    test -z "$ac_dir" && ac_dir=.
 10.1383 +    if test -f $ac_dir/$ac_word; then
 10.1384 +      ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 10.1385 +      break
 10.1386 +    fi
 10.1387 +  done
 10.1388 +  IFS="$ac_save_ifs"
 10.1389 +fi
 10.1390 +fi
 10.1391 +RANLIB="$ac_cv_prog_RANLIB"
 10.1392 +if test -n "$RANLIB"; then
 10.1393 +  echo "$ac_t""$RANLIB" 1>&6
 10.1394 +else
 10.1395 +  echo "$ac_t""no" 1>&6
 10.1396 +fi
 10.1397 +
 10.1398 +
 10.1399 +if test -z "$ac_cv_prog_RANLIB"; then
 10.1400 +if test -n "$ac_tool_prefix"; then
 10.1401 +  # Extract the first word of "ranlib", so it can be a program name with args.
 10.1402 +set dummy ranlib; ac_word=$2
 10.1403 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 10.1404 +echo "configure:1402: checking for $ac_word" >&5
 10.1405 +if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 10.1406 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1407 +else
 10.1408 +  if test -n "$RANLIB"; then
 10.1409 +  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 10.1410 +else
 10.1411 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 10.1412 +  ac_dummy="$PATH"
 10.1413 +  for ac_dir in $ac_dummy; do
 10.1414 +    test -z "$ac_dir" && ac_dir=.
 10.1415 +    if test -f $ac_dir/$ac_word; then
 10.1416 +      ac_cv_prog_RANLIB="ranlib"
 10.1417 +      break
 10.1418 +    fi
 10.1419 +  done
 10.1420 +  IFS="$ac_save_ifs"
 10.1421 +  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 10.1422 +fi
 10.1423 +fi
 10.1424 +RANLIB="$ac_cv_prog_RANLIB"
 10.1425 +if test -n "$RANLIB"; then
 10.1426 +  echo "$ac_t""$RANLIB" 1>&6
 10.1427 +else
 10.1428 +  echo "$ac_t""no" 1>&6
 10.1429 +fi
 10.1430 +
 10.1431 +else
 10.1432 +  RANLIB=":"
 10.1433 +fi
 10.1434 +fi
 10.1435 +
 10.1436 +
 10.1437 +# Check for any special flags to pass to ltconfig.
 10.1438 +libtool_flags="--cache-file=$cache_file"
 10.1439 +test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
 10.1440 +test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
 10.1441 +test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
 10.1442 +test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
 10.1443 +test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
 10.1444 +
 10.1445 +
 10.1446 +# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 10.1447 +if test "${enable_libtool_lock+set}" = set; then
 10.1448 +  enableval="$enable_libtool_lock"
 10.1449 +  :
 10.1450 +fi
 10.1451 +
 10.1452 +test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
 10.1453 +test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
 10.1454 +
 10.1455 +# Check whether --with-pic or --without-pic was given.
 10.1456 +if test "${with_pic+set}" = set; then
 10.1457 +  withval="$with_pic"
 10.1458 +  pic_mode="$withval"
 10.1459 +else
 10.1460 +  pic_mode=default
 10.1461 +fi
 10.1462 +
 10.1463 +test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
 10.1464 +test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
 10.1465 +
 10.1466 +# Some flags need to be propagated to the compiler or linker for good
 10.1467 +# libtool support.
 10.1468 +case "$host" in
 10.1469 +*-*-irix6*)
 10.1470 +  # Find out which ABI we are using.
 10.1471 +  echo '#line 1469 "configure"' > conftest.$ac_ext
 10.1472 +  if { (eval echo configure:1470: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 10.1473 +    case "`/usr/bin/file conftest.o`" in
 10.1474 +    *32-bit*)
 10.1475 +      LD="${LD-ld} -32"
 10.1476 +      ;;
 10.1477 +    *N32*)
 10.1478 +      LD="${LD-ld} -n32"
 10.1479 +      ;;
 10.1480 +    *64-bit*)
 10.1481 +      LD="${LD-ld} -64"
 10.1482 +      ;;
 10.1483 +    esac
 10.1484 +  fi
 10.1485 +  rm -rf conftest*
 10.1486 +  ;;
 10.1487 +
 10.1488 +*-*-sco3.2v5*)
 10.1489 +  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 10.1490 +  SAVE_CFLAGS="$CFLAGS"
 10.1491 +  CFLAGS="$CFLAGS -belf"
 10.1492 +  echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
 10.1493 +echo "configure:1491: checking whether the C compiler needs -belf" >&5
 10.1494 +if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
 10.1495 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1496 +else
 10.1497 +  cat > conftest.$ac_ext <<EOF
 10.1498 +#line 1496 "configure"
 10.1499 +#include "confdefs.h"
 10.1500 +
 10.1501 +int main() {
 10.1502 +
 10.1503 +; return 0; }
 10.1504 +EOF
 10.1505 +if { (eval echo configure:1503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 10.1506 +  rm -rf conftest*
 10.1507 +  lt_cv_cc_needs_belf=yes
 10.1508 +else
 10.1509 +  echo "configure: failed program was:" >&5
 10.1510 +  cat conftest.$ac_ext >&5
 10.1511 +  rm -rf conftest*
 10.1512 +  lt_cv_cc_needs_belf=no
 10.1513 +fi
 10.1514 +rm -f conftest*
 10.1515 +fi
 10.1516 +
 10.1517 +echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 10.1518 +  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 10.1519 +    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 10.1520 +    CFLAGS="$SAVE_CFLAGS"
 10.1521 +  fi
 10.1522 +  ;;
 10.1523 +
 10.1524 +
 10.1525 +esac
 10.1526 +
 10.1527 +
 10.1528 +# Save cache, so that ltconfig can load it
 10.1529 +cat > confcache <<\EOF
 10.1530 +# This file is a shell script that caches the results of configure
 10.1531 +# tests run on this system so they can be shared between configure
 10.1532 +# scripts and configure runs.  It is not useful on other systems.
 10.1533 +# If it contains results you don't want to keep, you may remove or edit it.
 10.1534 +#
 10.1535 +# By default, configure uses ./config.cache as the cache file,
 10.1536 +# creating it if it does not exist already.  You can give configure
 10.1537 +# the --cache-file=FILE option to use a different cache file; that is
 10.1538 +# what configure does when it calls configure scripts in
 10.1539 +# subdirectories, so they share the cache.
 10.1540 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
 10.1541 +# config.status only pays attention to the cache file if you give it the
 10.1542 +# --recheck option to rerun configure.
 10.1543 +#
 10.1544 +EOF
 10.1545 +# The following way of writing the cache mishandles newlines in values,
 10.1546 +# but we know of no workaround that is simple, portable, and efficient.
 10.1547 +# So, don't put newlines in cache variables' values.
 10.1548 +# Ultrix sh set writes to stderr and can't be redirected directly,
 10.1549 +# and sets the high bit in the cache file unless we assign to the vars.
 10.1550 +(set) 2>&1 |
 10.1551 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 10.1552 +  *ac_space=\ *)
 10.1553 +    # `set' does not quote correctly, so add quotes (double-quote substitution
 10.1554 +    # turns \\\\ into \\, and sed turns \\ into \).
 10.1555 +    sed -n \
 10.1556 +      -e "s/'/'\\\\''/g" \
 10.1557 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 10.1558 +    ;;
 10.1559 +  *)
 10.1560 +    # `set' quotes correctly as required by POSIX, so do not add quotes.
 10.1561 +    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 10.1562 +    ;;
 10.1563 +  esac >> confcache
 10.1564 +if cmp -s $cache_file confcache; then
 10.1565 +  :
 10.1566 +else
 10.1567 +  if test -w $cache_file; then
 10.1568 +    echo "updating cache $cache_file"
 10.1569 +    cat confcache > $cache_file
 10.1570 +  else
 10.1571 +    echo "not updating unwritable cache $cache_file"
 10.1572 +  fi
 10.1573 +fi
 10.1574 +rm -f confcache
 10.1575 +
 10.1576 +
 10.1577 +# Actually configure libtool.  ac_aux_dir is where install-sh is found.
 10.1578 +CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
 10.1579 +LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
 10.1580 +LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
 10.1581 +DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
 10.1582 +${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
 10.1583 +$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
 10.1584 +|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
 10.1585 +
 10.1586 +# Reload cache, that may have been modified by ltconfig
 10.1587 +if test -r "$cache_file"; then
 10.1588 +  echo "loading cache $cache_file"
 10.1589 +  . $cache_file
 10.1590 +else
 10.1591 +  echo "creating cache $cache_file"
 10.1592 +  > $cache_file
 10.1593 +fi
 10.1594 +
 10.1595 +
 10.1596 +# This can be used to rebuild libtool when needed
 10.1597 +LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
 10.1598 +
 10.1599 +# Always use our own libtool.
 10.1600 +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 10.1601 +
 10.1602 +# Redirect the config.log output again, so that the ltconfig log is not
 10.1603 +# clobbered by the next message.
 10.1604 +exec 5>>./config.log
 10.1605 +
 10.1606 +# Find a good install program.  We prefer a C program (faster),
 10.1607 +# so one script is as good as another.  But avoid the broken or
 10.1608 +# incompatible versions:
 10.1609 +# SysV /etc/install, /usr/sbin/install
 10.1610 +# SunOS /usr/etc/install
 10.1611 +# IRIX /sbin/install
 10.1612 +# AIX /bin/install
 10.1613 +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 10.1614 +# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 10.1615 +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 10.1616 +# ./install, which can be erroneously created by make from ./install.sh.
 10.1617 +echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
 10.1618 +echo "configure:1616: checking for a BSD compatible install" >&5
 10.1619 +if test -z "$INSTALL"; then
 10.1620 +if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
 10.1621 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1622 +else
 10.1623 +    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
 10.1624 +  for ac_dir in $PATH; do
 10.1625 +    # Account for people who put trailing slashes in PATH elements.
 10.1626 +    case "$ac_dir/" in
 10.1627 +    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
 10.1628 +    *)
 10.1629 +      # OSF1 and SCO ODT 3.0 have their own names for install.
 10.1630 +      # Don't use installbsd from OSF since it installs stuff as root
 10.1631 +      # by default.
 10.1632 +      for ac_prog in ginstall scoinst install; do
 10.1633 +        if test -f $ac_dir/$ac_prog; then
 10.1634 +	  if test $ac_prog = install &&
 10.1635 +            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 10.1636 +	    # AIX install.  It has an incompatible calling convention.
 10.1637 +	    :
 10.1638 +	  else
 10.1639 +	    ac_cv_path_install="$ac_dir/$ac_prog -c"
 10.1640 +	    break 2
 10.1641 +	  fi
 10.1642 +	fi
 10.1643 +      done
 10.1644 +      ;;
 10.1645 +    esac
 10.1646 +  done
 10.1647 +  IFS="$ac_save_IFS"
 10.1648 +
 10.1649 +fi
 10.1650 +  if test "${ac_cv_path_install+set}" = set; then
 10.1651 +    INSTALL="$ac_cv_path_install"
 10.1652 +  else
 10.1653 +    # As a last resort, use the slow shell script.  We don't cache a
 10.1654 +    # path for INSTALL within a source directory, because that will
 10.1655 +    # break other packages using the cache if that directory is
 10.1656 +    # removed, or if the path is relative.
 10.1657 +    INSTALL="$ac_install_sh"
 10.1658 +  fi
 10.1659 +fi
 10.1660 +echo "$ac_t""$INSTALL" 1>&6
 10.1661 +
 10.1662 +# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 10.1663 +# It thinks the first close brace ends the variable substitution.
 10.1664 +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 10.1665 +
 10.1666 +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 10.1667 +
 10.1668 +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 10.1669 +
 10.1670 +
 10.1671 +# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
 10.1672 +if test "${with_sdl_prefix+set}" = set; then
 10.1673 +  withval="$with_sdl_prefix"
 10.1674 +  sdl_prefix="$withval"
 10.1675 +else
 10.1676 +  sdl_prefix=""
 10.1677 +fi
 10.1678 +
 10.1679 +# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
 10.1680 +if test "${with_sdl_exec_prefix+set}" = set; then
 10.1681 +  withval="$with_sdl_exec_prefix"
 10.1682 +  sdl_exec_prefix="$withval"
 10.1683 +else
 10.1684 +  sdl_exec_prefix=""
 10.1685 +fi
 10.1686 +
 10.1687 +# Check whether --enable-sdltest or --disable-sdltest was given.
 10.1688 +if test "${enable_sdltest+set}" = set; then
 10.1689 +  enableval="$enable_sdltest"
 10.1690 +  :
 10.1691 +else
 10.1692 +  enable_sdltest=yes
 10.1693 +fi
 10.1694 +
 10.1695 +
 10.1696 +  if test x$sdl_exec_prefix != x ; then
 10.1697 +     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
 10.1698 +     if test x${SDL_CONFIG+set} != xset ; then
 10.1699 +        SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
 10.1700 +     fi
 10.1701 +  fi
 10.1702 +  if test x$sdl_prefix != x ; then
 10.1703 +     sdl_args="$sdl_args --prefix=$sdl_prefix"
 10.1704 +     if test x${SDL_CONFIG+set} != xset ; then
 10.1705 +        SDL_CONFIG=$sdl_prefix/bin/sdl-config
 10.1706 +     fi
 10.1707 +  fi
 10.1708 +
 10.1709 +  # Extract the first word of "sdl-config", so it can be a program name with args.
 10.1710 +set dummy sdl-config; ac_word=$2
 10.1711 +echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 10.1712 +echo "configure:1710: checking for $ac_word" >&5
 10.1713 +if eval "test \"`echo '$''{'ac_cv_path_SDL_CONFIG'+set}'`\" = set"; then
 10.1714 +  echo $ac_n "(cached) $ac_c" 1>&6
 10.1715 +else
 10.1716 +  case "$SDL_CONFIG" in
 10.1717 +  /*)
 10.1718 +  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
 10.1719 +  ;;
 10.1720 +  ?:/*)			 
 10.1721 +  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a dos path.
 10.1722 +  ;;
 10.1723 +  *)
 10.1724 +  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
 10.1725 +  ac_dummy="$PATH"
 10.1726 +  for ac_dir in $ac_dummy; do 
 10.1727 +    test -z "$ac_dir" && ac_dir=.
 10.1728 +    if test -f $ac_dir/$ac_word; then
 10.1729 +      ac_cv_path_SDL_CONFIG="$ac_dir/$ac_word"
 10.1730 +      break
 10.1731 +    fi
 10.1732 +  done
 10.1733 +  IFS="$ac_save_ifs"
 10.1734 +  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
 10.1735 +  ;;
 10.1736 +esac
 10.1737 +fi
 10.1738 +SDL_CONFIG="$ac_cv_path_SDL_CONFIG"
 10.1739 +if test -n "$SDL_CONFIG"; then
 10.1740 +  echo "$ac_t""$SDL_CONFIG" 1>&6
 10.1741 +else
 10.1742 +  echo "$ac_t""no" 1>&6
 10.1743 +fi
 10.1744 +
 10.1745 +  min_sdl_version=0.11.2
 10.1746 +  echo $ac_n "checking for SDL - version >= $min_sdl_version""... $ac_c" 1>&6
 10.1747 +echo "configure:1745: checking for SDL - version >= $min_sdl_version" >&5
 10.1748 +  no_sdl=""
 10.1749 +  if test "$SDL_CONFIG" = "no" ; then
 10.1750 +    no_sdl=yes
 10.1751 +  else
 10.1752 +    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
 10.1753 +    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
 10.1754 +
 10.1755 +    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
 10.1756 +           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 10.1757 +    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
 10.1758 +           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 10.1759 +    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
 10.1760 +           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 10.1761 +    if test "x$enable_sdltest" = "xyes" ; then
 10.1762 +      ac_save_CFLAGS="$CFLAGS"
 10.1763 +      ac_save_LIBS="$LIBS"
 10.1764 +      CFLAGS="$CFLAGS $SDL_CFLAGS"
 10.1765 +      LIBS="$LIBS $SDL_LIBS"
 10.1766 +      rm -f conf.sdltest
 10.1767 +      if test "$cross_compiling" = yes; then
 10.1768 +  echo $ac_n "cross compiling; assumed OK... $ac_c"
 10.1769 +else
 10.1770 +  cat > conftest.$ac_ext <<EOF
 10.1771 +#line 1769 "configure"
 10.1772 +#include "confdefs.h"
 10.1773 +
 10.1774 +#include <stdio.h>
 10.1775 +#include <stdlib.h>
 10.1776 +#include <string.h>
 10.1777 +#include <SDL/SDL.h>
 10.1778 +
 10.1779 +char*
 10.1780 +my_strdup (char *str)
 10.1781 +{
 10.1782 +  char *new_str;
 10.1783 +  
 10.1784 +  if (str)
 10.1785 +    {
 10.1786 +      new_str = malloc ((strlen (str) + 1) * sizeof(char));
 10.1787 +      strcpy (new_str, str);
 10.1788 +    }
 10.1789 +  else
 10.1790 +    new_str = NULL;
 10.1791 +  
 10.1792 +  return new_str;
 10.1793 +}
 10.1794 +
 10.1795 +int main ()
 10.1796 +{
 10.1797 +  int major, minor, micro;
 10.1798 +  char *tmp_version;
 10.1799 +
 10.1800 +  system ("touch conf.sdltest");
 10.1801 +
 10.1802 +  /* HP/UX 9 (%@#!) writes to sscanf strings */
 10.1803 +  tmp_version = my_strdup("$min_sdl_version");
 10.1804 +  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 10.1805 +     printf("%s, bad version string\n", "$min_sdl_version");
 10.1806 +     exit(1);
 10.1807 +   }
 10.1808 +
 10.1809 +   if (($sdl_major_version > major) ||
 10.1810 +      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
 10.1811 +      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
 10.1812 +    {
 10.1813 +      return 0;
 10.1814 +    }
 10.1815 +  else
 10.1816 +    {
 10.1817 +      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
 10.1818 +      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
 10.1819 +      printf("*** best to upgrade to the required version.\n");
 10.1820 +      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
 10.1821 +      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
 10.1822 +      printf("*** config.cache before re-running configure\n");
 10.1823 +      return 1;
 10.1824 +    }
 10.1825 +}
 10.1826 +
 10.1827 +
 10.1828 +EOF
 10.1829 +if { (eval echo configure:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
 10.1830 +then
 10.1831 +  :
 10.1832 +else
 10.1833 +  echo "configure: failed program was:" >&5
 10.1834 +  cat conftest.$ac_ext >&5
 10.1835 +  rm -fr conftest*
 10.1836 +  no_sdl=yes
 10.1837 +fi
 10.1838 +rm -fr conftest*
 10.1839 +fi
 10.1840 +
 10.1841 +       CFLAGS="$ac_save_CFLAGS"
 10.1842 +       LIBS="$ac_save_LIBS"
 10.1843 +     fi
 10.1844 +  fi
 10.1845 +  if test "x$no_sdl" = x ; then
 10.1846 +     echo "$ac_t""yes" 1>&6
 10.1847 +     :     
 10.1848 +  else
 10.1849 +     echo "$ac_t""no" 1>&6
 10.1850 +     if test "$SDL_CONFIG" = "no" ; then
 10.1851 +       echo "*** The sdl-config script installed by SDL could not be found"
 10.1852 +       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
 10.1853 +       echo "*** your path, or set the SDL_CONFIG environment variable to the"
 10.1854 +       echo "*** full path to sdl-config."
 10.1855 +     else
 10.1856 +       if test -f conf.sdltest ; then
 10.1857 +        :
 10.1858 +       else
 10.1859 +          echo "*** Could not run SDL test program, checking why..."
 10.1860 +          CFLAGS="$CFLAGS $SDL_CFLAGS"
 10.1861 +          LIBS="$LIBS $SDL_LIBS"
 10.1862 +          cat > conftest.$ac_ext <<EOF
 10.1863 +#line 1861 "configure"
 10.1864 +#include "confdefs.h"
 10.1865 +
 10.1866 +#include <stdio.h>
 10.1867 +#include <SDL/SDL.h>
 10.1868 +
 10.1869 +int main() {
 10.1870 + return 0; 
 10.1871 +; return 0; }
 10.1872 +EOF
 10.1873 +if { (eval echo configure:1871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 10.1874 +  rm -rf conftest*
 10.1875 +   echo "*** The test program compiled, but did not run. This usually means"
 10.1876 +          echo "*** that the run-time linker is not finding SDL or finding the wrong"
 10.1877 +          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
 10.1878 +          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 10.1879 +          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 10.1880 +          echo "*** is required on your system"
 10.1881 +	  echo "***"
 10.1882 +          echo "*** If you have an old version installed, it is best to remove it, although"
 10.1883 +          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 10.1884 +else
 10.1885 +  echo "configure: failed program was:" >&5
 10.1886 +  cat conftest.$ac_ext >&5
 10.1887 +  rm -rf conftest*
 10.1888 +   echo "*** The test program failed to compile or link. See the file config.log for the"
 10.1889 +          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
 10.1890 +          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
 10.1891 +          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 
 10.1892 +fi
 10.1893 +rm -f conftest*
 10.1894 +          CFLAGS="$ac_save_CFLAGS"
 10.1895 +          LIBS="$ac_save_LIBS"
 10.1896 +       fi
 10.1897 +     fi
 10.1898 +     SDL_CFLAGS=""
 10.1899 +     SDL_LIBS=""
 10.1900 +     :
 10.1901 +  fi
 10.1902 +  
 10.1903 +  
 10.1904 +  rm -f conf.sdltest
 10.1905 +
 10.1906 +CFLAGS="$CFLAGS $SDL_CFLAGS"
 10.1907 +LIBS="$LIBS $SDL_LIBS"
 10.1908 +
 10.1909 +# Check whether --enable-music-cmd or --disable-music-cmd was given.
 10.1910 +if test "${enable_music_cmd+set}" = set; then
 10.1911 +  enableval="$enable_music_cmd"
 10.1912 +  :
 10.1913 +else
 10.1914 +  enable_music_cmd=yes
 10.1915 +fi
 10.1916 +
 10.1917 +if test x$enable_music_cmd = xyes; then
 10.1918 +    CFLAGS="$CFLAGS -DCMD_MUSIC"
 10.1919 +fi
 10.1920 +# Check whether --enable-music-wave or --disable-music-wave was given.
 10.1921 +if test "${enable_music_wave+set}" = set; then
 10.1922 +  enableval="$enable_music_wave"
 10.1923 +  :
 10.1924 +else
 10.1925 +  enable_music_wave=yes
 10.1926 +fi
 10.1927 +
 10.1928 +if test x$enable_music_wave = xyes; then
 10.1929 +    CFLAGS="$CFLAGS -DWAV_MUSIC"
 10.1930 +fi
 10.1931 +# Check whether --enable-music-midi or --disable-music-midi was given.
 10.1932 +if test "${enable_music_midi+set}" = set; then
 10.1933 +  enableval="$enable_music_midi"
 10.1934 +  :
 10.1935 +else
 10.1936 +  enable_music_midi=yes
 10.1937 +fi
 10.1938 +
 10.1939 +if test x$enable_music_midi = xyes; then
 10.1940 +    CFLAGS="$CFLAGS -DMID_MUSIC -I\$(top_srcdir)/timidity"
 10.1941 +    #MUSIC_SUBDIRS="$MUSIC_SUBDIRS timidity"
 10.1942 +fi
 10.1943 +# Check whether --enable-music-mod or --disable-music-mod was given.
 10.1944 +if test "${enable_music_mod+set}" = set; then
 10.1945 +  enableval="$enable_music_mod"
 10.1946 +  :
 10.1947 +else
 10.1948 +  enable_music_mod=yes
 10.1949 +fi
 10.1950 +
 10.1951 +if test x$enable_music_mod = xyes; then
 10.1952 +    CFLAGS="$CFLAGS -DMOD_MUSIC -I\$(top_srcdir)/mikmod"
 10.1953 +    #MUSIC_SUBDIRS="$MUSIC_SUBDIRS mikmod"
 10.1954 +fi
 10.1955 +# Check whether --enable-music-mp3 or --disable-music-mp3 was given.
 10.1956 +if test "${enable_music_mp3+set}" = set; then
 10.1957 +  enableval="$enable_music_mp3"
 10.1958 +  :
 10.1959 +else
 10.1960 +  enable_music_mp3=yes
 10.1961 +fi
 10.1962 +
 10.1963 +if test x$enable_music_mp3 = xyes; then
 10.1964 +    echo $ac_n "checking for SMPEG headers and libraries""... $ac_c" 1>&6
 10.1965 +echo "configure:1963: checking for SMPEG headers and libraries" >&5
 10.1966 +    have_smpeg=no
 10.1967 +    cat > conftest.$ac_ext <<EOF
 10.1968 +#line 1966 "configure"
 10.1969 +#include "confdefs.h"
 10.1970 +
 10.1971 +     #include <smpeg/smpeg.h>
 10.1972 +    
 10.1973 +int main() {
 10.1974 +
 10.1975 +    
 10.1976 +; return 0; }
 10.1977 +EOF
 10.1978 +if { (eval echo configure:1976: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 10.1979 +  rm -rf conftest*
 10.1980 +  
 10.1981 +    have_smpeg=yes
 10.1982 +    
 10.1983 +else
 10.1984 +  echo "configure: failed program was:" >&5
 10.1985 +  cat conftest.$ac_ext >&5
 10.1986 +fi
 10.1987 +rm -f conftest*
 10.1988 +    echo "$ac_t""$have_smpeg" 1>&6
 10.1989 +    if test x$have_smpeg = xyes; then
 10.1990 +        CFLAGS="$CFLAGS -DMP3_MUSIC"
 10.1991 +        LIBS="$LIBS -lsmpeg"
 10.1992 +    fi
 10.1993 +fi
 10.1994 +
 10.1995 +# Finally create all the generated files
 10.1996 +trap '' 1 2 15
 10.1997 +cat > confcache <<\EOF
 10.1998 +# This file is a shell script that caches the results of configure
 10.1999 +# tests run on this system so they can be shared between configure
 10.2000 +# scripts and configure runs.  It is not useful on other systems.
 10.2001 +# If it contains results you don't want to keep, you may remove or edit it.
 10.2002 +#
 10.2003 +# By default, configure uses ./config.cache as the cache file,
 10.2004 +# creating it if it does not exist already.  You can give configure
 10.2005 +# the --cache-file=FILE option to use a different cache file; that is
 10.2006 +# what configure does when it calls configure scripts in
 10.2007 +# subdirectories, so they share the cache.
 10.2008 +# Giving --cache-file=/dev/null disables caching, for debugging configure.
 10.2009 +# config.status only pays attention to the cache file if you give it the
 10.2010 +# --recheck option to rerun configure.
 10.2011 +#
 10.2012 +EOF
 10.2013 +# The following way of writing the cache mishandles newlines in values,
 10.2014 +# but we know of no workaround that is simple, portable, and efficient.
 10.2015 +# So, don't put newlines in cache variables' values.
 10.2016 +# Ultrix sh set writes to stderr and can't be redirected directly,
 10.2017 +# and sets the high bit in the cache file unless we assign to the vars.
 10.2018 +(set) 2>&1 |
 10.2019 +  case `(ac_space=' '; set | grep ac_space) 2>&1` in
 10.2020 +  *ac_space=\ *)
 10.2021 +    # `set' does not quote correctly, so add quotes (double-quote substitution
 10.2022 +    # turns \\\\ into \\, and sed turns \\ into \).
 10.2023 +    sed -n \
 10.2024 +      -e "s/'/'\\\\''/g" \
 10.2025 +      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
 10.2026 +    ;;
 10.2027 +  *)
 10.2028 +    # `set' quotes correctly as required by POSIX, so do not add quotes.
 10.2029 +    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
 10.2030 +    ;;
 10.2031 +  esac >> confcache
 10.2032 +if cmp -s $cache_file confcache; then
 10.2033 +  :
 10.2034 +else
 10.2035 +  if test -w $cache_file; then
 10.2036 +    echo "updating cache $cache_file"
 10.2037 +    cat confcache > $cache_file
 10.2038 +  else
 10.2039 +    echo "not updating unwritable cache $cache_file"
 10.2040 +  fi
 10.2041 +fi
 10.2042 +rm -f confcache
 10.2043 +
 10.2044 +trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
 10.2045 +
 10.2046 +test "x$prefix" = xNONE && prefix=$ac_default_prefix
 10.2047 +# Let make expand exec_prefix.
 10.2048 +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 10.2049 +
 10.2050 +# Any assignment to VPATH causes Sun make to only execute
 10.2051 +# the first set of double-colon rules, so remove it if not needed.
 10.2052 +# If there is a colon in the path, we need to keep it.
 10.2053 +if test "x$srcdir" = x.; then
 10.2054 +  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
 10.2055 +fi
 10.2056 +
 10.2057 +trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
 10.2058 +
 10.2059 +# Transform confdefs.h into DEFS.
 10.2060 +# Protect against shell expansion while executing Makefile rules.
 10.2061 +# Protect against Makefile macro expansion.
 10.2062 +cat > conftest.defs <<\EOF
 10.2063 +s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
 10.2064 +s%[ 	`~#$^&*(){}\\|;'"<>?]%\\&%g
 10.2065 +s%\[%\\&%g
 10.2066 +s%\]%\\&%g
 10.2067 +s%\$%$$%g
 10.2068 +EOF
 10.2069 +DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
 10.2070 +rm -f conftest.defs
 10.2071 +
 10.2072 +
 10.2073 +# Without the "./", some shells look in PATH for config.status.
 10.2074 +: ${CONFIG_STATUS=./config.status}
 10.2075 +
 10.2076 +echo creating $CONFIG_STATUS
 10.2077 +rm -f $CONFIG_STATUS
 10.2078 +cat > $CONFIG_STATUS <<EOF
 10.2079 +#! /bin/sh
 10.2080 +# Generated automatically by configure.
 10.2081 +# Run this file to recreate the current configuration.
 10.2082 +# This directory was configured as follows,
 10.2083 +# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 10.2084 +#
 10.2085 +# $0 $ac_configure_args
 10.2086 +#
 10.2087 +# Compiler output produced by configure, useful for debugging
 10.2088 +# configure, is in ./config.log if it exists.
 10.2089 +
 10.2090 +ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
 10.2091 +for ac_option
 10.2092 +do
 10.2093 +  case "\$ac_option" in
 10.2094 +  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 10.2095 +    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
 10.2096 +    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
 10.2097 +  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
 10.2098 +    echo "$CONFIG_STATUS generated by autoconf version 2.13"
 10.2099 +    exit 0 ;;
 10.2100 +  -help | --help | --hel | --he | --h)
 10.2101 +    echo "\$ac_cs_usage"; exit 0 ;;
 10.2102 +  *) echo "\$ac_cs_usage"; exit 1 ;;
 10.2103 +  esac
 10.2104 +done
 10.2105 +
 10.2106 +ac_given_srcdir=$srcdir
 10.2107 +ac_given_INSTALL="$INSTALL"
 10.2108 +
 10.2109 +trap 'rm -fr `echo "
 10.2110 +Makefile
 10.2111 +mikmod/Makefile
 10.2112 +timidity/Makefile
 10.2113 +" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
 10.2114 +EOF
 10.2115 +cat >> $CONFIG_STATUS <<EOF
 10.2116 +
 10.2117 +# Protect against being on the right side of a sed subst in config.status.
 10.2118 +sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
 10.2119 + s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
 10.2120 +$ac_vpsub
 10.2121 +$extrasub
 10.2122 +s%@SHELL@%$SHELL%g
 10.2123 +s%@CFLAGS@%$CFLAGS%g
 10.2124 +s%@CPPFLAGS@%$CPPFLAGS%g
 10.2125 +s%@CXXFLAGS@%$CXXFLAGS%g
 10.2126 +s%@FFLAGS@%$FFLAGS%g
 10.2127 +s%@DEFS@%$DEFS%g
 10.2128 +s%@LDFLAGS@%$LDFLAGS%g
 10.2129 +s%@LIBS@%$LIBS%g
 10.2130 +s%@exec_prefix@%$exec_prefix%g
 10.2131 +s%@prefix@%$prefix%g
 10.2132 +s%@program_transform_name@%$program_transform_name%g
 10.2133 +s%@bindir@%$bindir%g
 10.2134 +s%@sbindir@%$sbindir%g
 10.2135 +s%@libexecdir@%$libexecdir%g
 10.2136 +s%@datadir@%$datadir%g
 10.2137 +s%@sysconfdir@%$sysconfdir%g
 10.2138 +s%@sharedstatedir@%$sharedstatedir%g
 10.2139 +s%@localstatedir@%$localstatedir%g
 10.2140 +s%@libdir@%$libdir%g
 10.2141 +s%@includedir@%$includedir%g
 10.2142 +s%@oldincludedir@%$oldincludedir%g
 10.2143 +s%@infodir@%$infodir%g
 10.2144 +s%@mandir@%$mandir%g
 10.2145 +s%@MAJOR_VERSION@%$MAJOR_VERSION%g
 10.2146 +s%@MINOR_VERSION@%$MINOR_VERSION%g
 10.2147 +s%@MICRO_VERSION@%$MICRO_VERSION%g
 10.2148 +s%@INTERFACE_AGE@%$INTERFACE_AGE%g
 10.2149 +s%@BINARY_AGE@%$BINARY_AGE%g
 10.2150 +s%@VERSION@%$VERSION%g
 10.2151 +s%@LT_RELEASE@%$LT_RELEASE%g
 10.2152 +s%@LT_CURRENT@%$LT_CURRENT%g
 10.2153 +s%@LT_REVISION@%$LT_REVISION%g
 10.2154 +s%@LT_AGE@%$LT_AGE%g
 10.2155 +s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
 10.2156 +s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
 10.2157 +s%@INSTALL_DATA@%$INSTALL_DATA%g
 10.2158 +s%@PACKAGE@%$PACKAGE%g
 10.2159 +s%@ACLOCAL@%$ACLOCAL%g
 10.2160 +s%@AUTOCONF@%$AUTOCONF%g
 10.2161 +s%@AUTOMAKE@%$AUTOMAKE%g
 10.2162 +s%@AUTOHEADER@%$AUTOHEADER%g
 10.2163 +s%@MAKEINFO@%$MAKEINFO%g
 10.2164 +s%@SET_MAKE@%$SET_MAKE%g
 10.2165 +s%@CC@%$CC%g
 10.2166 +s%@host@%$host%g
 10.2167 +s%@host_alias@%$host_alias%g
 10.2168 +s%@host_cpu@%$host_cpu%g
 10.2169 +s%@host_vendor@%$host_vendor%g
 10.2170 +s%@host_os@%$host_os%g
 10.2171 +s%@build@%$build%g
 10.2172 +s%@build_alias@%$build_alias%g
 10.2173 +s%@build_cpu@%$build_cpu%g
 10.2174 +s%@build_vendor@%$build_vendor%g
 10.2175 +s%@build_os@%$build_os%g
 10.2176 +s%@LD@%$LD%g
 10.2177 +s%@NM@%$NM%g
 10.2178 +s%@LN_S@%$LN_S%g
 10.2179 +s%@RANLIB@%$RANLIB%g
 10.2180 +s%@LIBTOOL@%$LIBTOOL%g
 10.2181 +s%@SDL_CONFIG@%$SDL_CONFIG%g
 10.2182 +s%@SDL_CFLAGS@%$SDL_CFLAGS%g
 10.2183 +s%@SDL_LIBS@%$SDL_LIBS%g
 10.2184 +
 10.2185 +CEOF
 10.2186 +EOF
 10.2187 +
 10.2188 +cat >> $CONFIG_STATUS <<\EOF
 10.2189 +
 10.2190 +# Split the substitutions into bite-sized pieces for seds with
 10.2191 +# small command number limits, like on Digital OSF/1 and HP-UX.
 10.2192 +ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
 10.2193 +ac_file=1 # Number of current file.
 10.2194 +ac_beg=1 # First line for current file.
 10.2195 +ac_end=$ac_max_sed_cmds # Line after last line for current file.
 10.2196 +ac_more_lines=:
 10.2197 +ac_sed_cmds=""
 10.2198 +while $ac_more_lines; do
 10.2199 +  if test $ac_beg -gt 1; then
 10.2200 +    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
 10.2201 +  else
 10.2202 +    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
 10.2203 +  fi
 10.2204 +  if test ! -s conftest.s$ac_file; then
 10.2205 +    ac_more_lines=false
 10.2206 +    rm -f conftest.s$ac_file
 10.2207 +  else
 10.2208 +    if test -z "$ac_sed_cmds"; then
 10.2209 +      ac_sed_cmds="sed -f conftest.s$ac_file"
 10.2210 +    else
 10.2211 +      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
 10.2212 +    fi
 10.2213 +    ac_file=`expr $ac_file + 1`
 10.2214 +    ac_beg=$ac_end
 10.2215 +    ac_end=`expr $ac_end + $ac_max_sed_cmds`
 10.2216 +  fi
 10.2217 +done
 10.2218 +if test -z "$ac_sed_cmds"; then
 10.2219 +  ac_sed_cmds=cat
 10.2220 +fi
 10.2221 +EOF
 10.2222 +
 10.2223 +cat >> $CONFIG_STATUS <<EOF
 10.2224 +
 10.2225 +CONFIG_FILES=\${CONFIG_FILES-"Makefile
 10.2226 +mikmod/Makefile
 10.2227 +timidity/Makefile
 10.2228 +"}
 10.2229 +EOF
 10.2230 +cat >> $CONFIG_STATUS <<\EOF
 10.2231 +for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
 10.2232 +  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 10.2233 +  case "$ac_file" in
 10.2234 +  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
 10.2235 +       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
 10.2236 +  *) ac_file_in="${ac_file}.in" ;;
 10.2237 +  esac
 10.2238 +
 10.2239 +  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
 10.2240 +
 10.2241 +  # Remove last slash and all that follows it.  Not all systems have dirname.
 10.2242 +  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
 10.2243 +  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
 10.2244 +    # The file is in a subdirectory.
 10.2245 +    test ! -d "$ac_dir" && mkdir "$ac_dir"
 10.2246 +    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
 10.2247 +    # A "../" for each directory in $ac_dir_suffix.
 10.2248 +    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
 10.2249 +  else
 10.2250 +    ac_dir_suffix= ac_dots=
 10.2251 +  fi
 10.2252 +
 10.2253 +  case "$ac_given_srcdir" in
 10.2254 +  .)  srcdir=.
 10.2255 +      if test -z "$ac_dots"; then top_srcdir=.
 10.2256 +      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
 10.2257 +  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
 10.2258 +  *) # Relative path.
 10.2259 +    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
 10.2260 +    top_srcdir="$ac_dots$ac_given_srcdir" ;;
 10.2261 +  esac
 10.2262 +
 10.2263 +  case "$ac_given_INSTALL" in
 10.2264 +  [/$]*) INSTALL="$ac_given_INSTALL" ;;
 10.2265 +  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
 10.2266 +  esac
 10.2267 +
 10.2268 +  echo creating "$ac_file"
 10.2269 +  rm -f "$ac_file"
 10.2270 +  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
 10.2271 +  case "$ac_file" in
 10.2272 +  *Makefile*) ac_comsub="1i\\
 10.2273 +# $configure_input" ;;
 10.2274 +  *) ac_comsub= ;;
 10.2275 +  esac
 10.2276 +
 10.2277 +  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
 10.2278 +  sed -e "$ac_comsub
 10.2279 +s%@configure_input@%$configure_input%g
 10.2280 +s%@srcdir@%$srcdir%g
 10.2281 +s%@top_srcdir@%$top_srcdir%g
 10.2282 +s%@INSTALL@%$INSTALL%g
 10.2283 +" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
 10.2284 +fi; done
 10.2285 +rm -f conftest.s*
 10.2286 +
 10.2287 +EOF
 10.2288 +cat >> $CONFIG_STATUS <<EOF
 10.2289 +
 10.2290 +EOF
 10.2291 +cat >> $CONFIG_STATUS <<\EOF
 10.2292 +
 10.2293 +exit 0
 10.2294 +EOF
 10.2295 +chmod +x $CONFIG_STATUS
 10.2296 +rm -fr confdefs* $ac_clean_files
 10.2297 +test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 10.2298 +
    11.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    11.2 +++ b/configure.in	Thu Oct 21 18:02:08 1999 +0000
    11.3 @@ -0,0 +1,105 @@
    11.4 +dnl Process this file with autoconf to produce a configure script.
    11.5 +AC_INIT(README)
    11.6 +
    11.7 +dnl Set various version strings - taken gratefully from the GTk sources
    11.8 +
    11.9 +# Making releases:
   11.10 +#   MICRO_VERSION += 1;
   11.11 +#   INTERFACE_AGE += 1;
   11.12 +#   BINARY_AGE += 1;
   11.13 +# if any functions have been added, set INTERFACE_AGE to 0.
   11.14 +# if backwards compatibility has been broken,
   11.15 +# set BINARY_AGE and INTERFACE_AGE to 0.
   11.16 +
   11.17 +MAJOR_VERSION=1
   11.18 +MINOR_VERSION=0
   11.19 +MICRO_VERSION=0
   11.20 +INTERFACE_AGE=0
   11.21 +BINARY_AGE=0
   11.22 +VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION
   11.23 +
   11.24 +AC_SUBST(MAJOR_VERSION)
   11.25 +AC_SUBST(MINOR_VERSION)
   11.26 +AC_SUBST(MICRO_VERSION)
   11.27 +AC_SUBST(INTERFACE_AGE)
   11.28 +AC_SUBST(BINARY_AGE)
   11.29 +AC_SUBST(VERSION)
   11.30 +
   11.31 +# libtool versioning
   11.32 +LT_RELEASE=$MAJOR_VERSION.$MINOR_VERSION
   11.33 +LT_CURRENT=`expr $MICRO_VERSION - $INTERFACE_AGE`
   11.34 +LT_REVISION=$INTERFACE_AGE
   11.35 +LT_AGE=`expr $BINARY_AGE - $INTERFACE_AGE`
   11.36 +
   11.37 +AC_SUBST(LT_RELEASE)
   11.38 +AC_SUBST(LT_CURRENT)
   11.39 +AC_SUBST(LT_REVISION)
   11.40 +AC_SUBST(LT_AGE)
   11.41 +
   11.42 +dnl Setup for automake
   11.43 +AM_INIT_AUTOMAKE(mixer, $VERSION)
   11.44 +
   11.45 +dnl Check for tools
   11.46 +
   11.47 +AC_PROG_MAKE_SET
   11.48 +AC_PROG_CC
   11.49 +AM_PROG_LIBTOOL
   11.50 +AC_PROG_INSTALL
   11.51 +
   11.52 +dnl Check for SDL 0.11.2
   11.53 +AM_PATH_SDL(0.11.2)
   11.54 +CFLAGS="$CFLAGS $SDL_CFLAGS"
   11.55 +LIBS="$LIBS $SDL_LIBS"
   11.56 +
   11.57 +dnl Check command-line options
   11.58 +AC_ARG_ENABLE(music-cmd,
   11.59 +[  --enable-music-cmd      support an external music player [default=yes]],
   11.60 +              , enable_music_cmd=yes)
   11.61 +if test x$enable_music_cmd = xyes; then
   11.62 +    CFLAGS="$CFLAGS -DCMD_MUSIC"
   11.63 +fi
   11.64 +AC_ARG_ENABLE(music-wave,
   11.65 +[  --enable-music-wave     enable streaming WAVE music [default=yes]],
   11.66 +              , enable_music_wave=yes)
   11.67 +if test x$enable_music_wave = xyes; then
   11.68 +    CFLAGS="$CFLAGS -DWAV_MUSIC"
   11.69 +fi
   11.70 +AC_ARG_ENABLE(music-midi,
   11.71 +[  --enable-music-midi     enable MIDI music via timidity [default=yes]],
   11.72 +              , enable_music_midi=yes)
   11.73 +if test x$enable_music_midi = xyes; then
   11.74 +    CFLAGS="$CFLAGS -DMID_MUSIC -I\$(top_srcdir)/timidity"
   11.75 +    #MUSIC_SUBDIRS="$MUSIC_SUBDIRS timidity"
   11.76 +fi
   11.77 +AC_ARG_ENABLE(music-mod,
   11.78 +[  --enable-music-mod      enable MOD music via mikmod [default=yes]],
   11.79 +              , enable_music_mod=yes)
   11.80 +if test x$enable_music_mod = xyes; then
   11.81 +    CFLAGS="$CFLAGS -DMOD_MUSIC -I\$(top_srcdir)/mikmod"
   11.82 +    #MUSIC_SUBDIRS="$MUSIC_SUBDIRS mikmod"
   11.83 +fi
   11.84 +AC_ARG_ENABLE(music-mp3,
   11.85 +[  --enable-music-mp3      enable MP3 music via smpeg [default=yes]],
   11.86 +              , enable_music_mp3=yes)
   11.87 +if test x$enable_music_mp3 = xyes; then
   11.88 +    AC_MSG_CHECKING(for SMPEG headers and libraries)
   11.89 +    have_smpeg=no
   11.90 +    AC_TRY_COMPILE([
   11.91 +     #include <smpeg/smpeg.h>
   11.92 +    ],[
   11.93 +    ],[
   11.94 +    have_smpeg=yes
   11.95 +    ])
   11.96 +    AC_MSG_RESULT($have_smpeg)
   11.97 +    if test x$have_smpeg = xyes; then
   11.98 +        CFLAGS="$CFLAGS -DMP3_MUSIC"
   11.99 +        LIBS="$LIBS -lsmpeg"
  11.100 +    fi
  11.101 +fi
  11.102 +
  11.103 +# Finally create all the generated files
  11.104 +AC_OUTPUT([
  11.105 +Makefile
  11.106 +mikmod/Makefile
  11.107 +timidity/Makefile
  11.108 +])
    12.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    12.2 +++ b/install-sh	Thu Oct 21 18:02:08 1999 +0000
    12.3 @@ -0,0 +1,251 @@
    12.4 +#!/bin/sh
    12.5 +#
    12.6 +# install - install a program, script, or datafile
    12.7 +# This comes from X11R5 (mit/util/scripts/install.sh).
    12.8 +#
    12.9 +# Copyright 1991 by the Massachusetts Institute of Technology
   12.10 +#
   12.11 +# Permission to use, copy, modify, distribute, and sell this software and its
   12.12 +# documentation for any purpose is hereby granted without fee, provided that
   12.13 +# the above copyright notice appear in all copies and that both that
   12.14 +# copyright notice and this permission notice appear in supporting
   12.15 +# documentation, and that the name of M.I.T. not be used in advertising or
   12.16 +# publicity pertaining to distribution of the software without specific,
   12.17 +# written prior permission.  M.I.T. makes no representations about the
   12.18 +# suitability of this software for any purpose.  It is provided "as is"
   12.19 +# without express or implied warranty.
   12.20 +#
   12.21 +# Calling this script install-sh is preferred over install.sh, to prevent
   12.22 +# `make' implicit rules from creating a file called install from it
   12.23 +# when there is no Makefile.
   12.24 +#
   12.25 +# This script is compatible with the BSD install script, but was written
   12.26 +# from scratch.  It can only install one file at a time, a restriction
   12.27 +# shared with many OS's install programs.
   12.28 +
   12.29 +
   12.30 +# set DOITPROG to echo to test this script
   12.31 +
   12.32 +# Don't use :- since 4.3BSD and earlier shells don't like it.
   12.33 +doit="${DOITPROG-}"
   12.34 +
   12.35 +
   12.36 +# put in absolute paths if you don't have them in your path; or use env. vars.
   12.37 +
   12.38 +mvprog="${MVPROG-mv}"
   12.39 +cpprog="${CPPROG-cp}"
   12.40 +chmodprog="${CHMODPROG-chmod}"
   12.41 +chownprog="${CHOWNPROG-chown}"
   12.42 +chgrpprog="${CHGRPPROG-chgrp}"
   12.43 +stripprog="${STRIPPROG-strip}"
   12.44 +rmprog="${RMPROG-rm}"
   12.45 +mkdirprog="${MKDIRPROG-mkdir}"
   12.46 +
   12.47 +transformbasename=""
   12.48 +transform_arg=""
   12.49 +instcmd="$mvprog"
   12.50 +chmodcmd="$chmodprog 0755"
   12.51 +chowncmd=""
   12.52 +chgrpcmd=""
   12.53 +stripcmd=""
   12.54 +rmcmd="$rmprog -f"
   12.55 +mvcmd="$mvprog"
   12.56 +src=""
   12.57 +dst=""
   12.58 +dir_arg=""
   12.59 +
   12.60 +while [ x"$1" != x ]; do
   12.61 +    case $1 in
   12.62 +	-c) instcmd="$cpprog"
   12.63 +	    shift
   12.64 +	    continue;;
   12.65 +
   12.66 +	-d) dir_arg=true
   12.67 +	    shift
   12.68 +	    continue;;
   12.69 +
   12.70 +	-m) chmodcmd="$chmodprog $2"
   12.71 +	    shift
   12.72 +	    shift
   12.73 +	    continue;;
   12.74 +
   12.75 +	-o) chowncmd="$chownprog $2"
   12.76 +	    shift
   12.77 +	    shift
   12.78 +	    continue;;
   12.79 +
   12.80 +	-g) chgrpcmd="$chgrpprog $2"
   12.81 +	    shift
   12.82 +	    shift
   12.83 +	    continue;;
   12.84 +
   12.85 +	-s) stripcmd="$stripprog"
   12.86 +	    shift
   12.87 +	    continue;;
   12.88 +
   12.89 +	-t=*) transformarg=`echo $1 | sed 's/-t=//'`
   12.90 +	    shift
   12.91 +	    continue;;
   12.92 +
   12.93 +	-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
   12.94 +	    shift
   12.95 +	    continue;;
   12.96 +
   12.97 +	*)  if [ x"$src" = x ]
   12.98 +	    then
   12.99 +		src=$1
  12.100 +	    else
  12.101 +		# this colon is to work around a 386BSD /bin/sh bug
  12.102 +		:
  12.103 +		dst=$1
  12.104 +	    fi
  12.105 +	    shift
  12.106 +	    continue;;
  12.107 +    esac
  12.108 +done
  12.109 +
  12.110 +if [ x"$src" = x ]
  12.111 +then
  12.112 +	echo "install:	no input file specified"
  12.113 +	exit 1
  12.114 +else
  12.115 +	true
  12.116 +fi
  12.117 +
  12.118 +if [ x"$dir_arg" != x ]; then
  12.119 +	dst=$src
  12.120 +	src=""
  12.121 +	
  12.122 +	if [ -d $dst ]; then
  12.123 +		instcmd=:
  12.124 +		chmodcmd=""
  12.125 +	else
  12.126 +		instcmd=mkdir
  12.127 +	fi
  12.128 +else
  12.129 +
  12.130 +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  12.131 +# might cause directories to be created, which would be especially bad 
  12.132 +# if $src (and thus $dsttmp) contains '*'.
  12.133 +
  12.134 +	if [ -f $src -o -d $src ]
  12.135 +	then
  12.136 +		true
  12.137 +	else
  12.138 +		echo "install:  $src does not exist"
  12.139 +		exit 1
  12.140 +	fi
  12.141 +	
  12.142 +	if [ x"$dst" = x ]
  12.143 +	then
  12.144 +		echo "install:	no destination specified"
  12.145 +		exit 1
  12.146 +	else
  12.147 +		true
  12.148 +	fi
  12.149 +
  12.150 +# If destination is a directory, append the input filename; if your system
  12.151 +# does not like double slashes in filenames, you may need to add some logic
  12.152 +
  12.153 +	if [ -d $dst ]
  12.154 +	then
  12.155 +		dst="$dst"/`basename $src`
  12.156 +	else
  12.157 +		true
  12.158 +	fi
  12.159 +fi
  12.160 +
  12.161 +## this sed command emulates the dirname command
  12.162 +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  12.163 +
  12.164 +# Make sure that the destination directory exists.
  12.165 +#  this part is taken from Noah Friedman's mkinstalldirs script
  12.166 +
  12.167 +# Skip lots of stat calls in the usual case.
  12.168 +if [ ! -d "$dstdir" ]; then
  12.169 +defaultIFS='	
  12.170 +'
  12.171 +IFS="${IFS-${defaultIFS}}"
  12.172 +
  12.173 +oIFS="${IFS}"
  12.174 +# Some sh's can't handle IFS=/ for some reason.
  12.175 +IFS='%'
  12.176 +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  12.177 +IFS="${oIFS}"
  12.178 +
  12.179 +pathcomp=''
  12.180 +
  12.181 +while [ $# -ne 0 ] ; do
  12.182 +	pathcomp="${pathcomp}${1}"
  12.183 +	shift
  12.184 +
  12.185 +	if [ ! -d "${pathcomp}" ] ;
  12.186 +        then
  12.187 +		$mkdirprog "${pathcomp}"
  12.188 +	else
  12.189 +		true
  12.190 +	fi
  12.191 +
  12.192 +	pathcomp="${pathcomp}/"
  12.193 +done
  12.194 +fi
  12.195 +
  12.196 +if [ x"$dir_arg" != x ]
  12.197 +then
  12.198 +	$doit $instcmd $dst &&
  12.199 +
  12.200 +	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
  12.201 +	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
  12.202 +	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
  12.203 +	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
  12.204 +else
  12.205 +
  12.206 +# If we're going to rename the final executable, determine the name now.
  12.207 +
  12.208 +	if [ x"$transformarg" = x ] 
  12.209 +	then
  12.210 +		dstfile=`basename $dst`
  12.211 +	else
  12.212 +		dstfile=`basename $dst $transformbasename | 
  12.213 +			sed $transformarg`$transformbasename
  12.214 +	fi
  12.215 +
  12.216 +# don't allow the sed command to completely eliminate the filename
  12.217 +
  12.218 +	if [ x"$dstfile" = x ] 
  12.219 +	then
  12.220 +		dstfile=`basename $dst`
  12.221 +	else
  12.222 +		true
  12.223 +	fi
  12.224 +
  12.225 +# Make a temp file name in the proper directory.
  12.226 +
  12.227 +	dsttmp=$dstdir/#inst.$$#
  12.228 +
  12.229 +# Move or copy the file name to the temp name
  12.230 +
  12.231 +	$doit $instcmd $src $dsttmp &&
  12.232 +
  12.233 +	trap "rm -f ${dsttmp}" 0 &&
  12.234 +
  12.235 +# and set any options; do chmod last to preserve setuid bits
  12.236 +
  12.237 +# If any of these fail, we abort the whole thing.  If we want to
  12.238 +# ignore errors from any of these, just make sure not to ignore
  12.239 +# errors from the above "$doit $instcmd $src $dsttmp" command.
  12.240 +
  12.241 +	if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
  12.242 +	if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
  12.243 +	if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
  12.244 +	if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
  12.245 +
  12.246 +# Now rename the file to the real destination.
  12.247 +
  12.248 +	$doit $rmcmd -f $dstdir/$dstfile &&
  12.249 +	$doit $mvcmd $dsttmp $dstdir/$dstfile 
  12.250 +
  12.251 +fi &&
  12.252 +
  12.253 +
  12.254 +exit 0
    13.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    13.2 +++ b/ltconfig	Thu Oct 21 18:02:08 1999 +0000
    13.3 @@ -0,0 +1,3461 @@
    13.4 +#! /bin/sh
    13.5 +
    13.6 +# ltconfig - Create a system-specific libtool.
    13.7 +# Copyright (C) 1996-1999 Free Software Foundation, Inc.
    13.8 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
    13.9 +#
   13.10 +# This file is free software; you can redistribute it and/or modify it
   13.11 +# under the terms of the GNU General Public License as published by
   13.12 +# the Free Software Foundation; either version 2 of the License, or
   13.13 +# (at your option) any later version.
   13.14 +#
   13.15 +# This program is distributed in the hope that it will be useful, but
   13.16 +# WITHOUT ANY WARRANTY; without even the implied warranty of
   13.17 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   13.18 +# General Public License for more details.
   13.19 +#
   13.20 +# You should have received a copy of the GNU General Public License
   13.21 +# along with this program; if not, write to the Free Software
   13.22 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
   13.23 +#
   13.24 +# As a special exception to the GNU General Public License, if you
   13.25 +# distribute this file as part of a program that contains a
   13.26 +# configuration script generated by Autoconf, you may include it under
   13.27 +# the same distribution terms that you use for the rest of that program.
   13.28 +
   13.29 +# A lot of this script is taken from autoconf-2.10.
   13.30 +
   13.31 +# Check that we are running under the correct shell.
   13.32 +SHELL=${CONFIG_SHELL-/bin/sh}
   13.33 +echo=echo
   13.34 +if test "X$1" = X--no-reexec; then
   13.35 +  # Discard the --no-reexec flag, and continue.
   13.36 +  shift
   13.37 +elif test "X$1" = X--fallback-echo; then
   13.38 +  # Avoid inline document here, it may be left over
   13.39 +  :
   13.40 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
   13.41 +  # Yippee, $echo works!
   13.42 +  :
   13.43 +else
   13.44 +  # Restart under the correct shell.
   13.45 +  exec "$SHELL" "$0" --no-reexec ${1+"$@"}
   13.46 +fi
   13.47 +
   13.48 +if test "X$1" = X--fallback-echo; then
   13.49 +  # used as fallback echo
   13.50 +  shift
   13.51 +  cat <<EOF
   13.52 +$*
   13.53 +EOF
   13.54 +  exit 0
   13.55 +fi
   13.56 +
   13.57 +# Find the correct PATH separator.  Usually this is `:', but
   13.58 +# DJGPP uses `;' like DOS.
   13.59 +if test "X${PATH_SEPARATOR+set}" != Xset; then
   13.60 +  UNAME=${UNAME-`uname 2>/dev/null`}
   13.61 +  case X$UNAME in
   13.62 +    *-DOS) PATH_SEPARATOR=';' ;;
   13.63 +    *)     PATH_SEPARATOR=':' ;;
   13.64 +  esac
   13.65 +fi
   13.66 +
   13.67 +# The HP-UX ksh and POSIX shell print the target directory to stdout
   13.68 +# if CDPATH is set.
   13.69 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   13.70 +
   13.71 +if test "X${echo_test_string+set}" != Xset; then
   13.72 +  # find a string as large as possible, as long as the shell can cope with it
   13.73 +  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
   13.74 +    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   13.75 +    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   13.76 +       echo_test_string="`eval $cmd`" &&
   13.77 +       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null; then
   13.78 +      break
   13.79 +    fi
   13.80 +  done
   13.81 +fi
   13.82 +
   13.83 +if test "X`($echo '\t') 2>/dev/null`" != 'X\t' ||
   13.84 +   test "X`($echo "$echo_test_string") 2>/dev/null`" != X"$echo_test_string"; then
   13.85 +  # The Solaris, AIX, and Digital Unix default echo programs unquote
   13.86 +  # backslashes.  This makes it impossible to quote backslashes using
   13.87 +  #   echo "$something" | sed 's/\\/\\\\/g'
   13.88 +  #
   13.89 +  # So, first we look for a working echo in the user's PATH.
   13.90 +
   13.91 +  IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
   13.92 +  for dir in $PATH /usr/ucb; do
   13.93 +    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
   13.94 +       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
   13.95 +       test "X`($dir/echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
   13.96 +      echo="$dir/echo"
   13.97 +      break
   13.98 +    fi
   13.99 +  done
  13.100 +  IFS="$save_ifs"
  13.101 +
  13.102 +  if test "X$echo" = Xecho; then
  13.103 +    # We didn't find a better echo, so look for alternatives.
  13.104 +    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  13.105 +       test "X`(print -r "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  13.106 +      # This shell has a builtin print -r that does the trick.
  13.107 +      echo='print -r'
  13.108 +    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  13.109 +	 test "X$CONFIG_SHELL" != X/bin/ksh; then
  13.110 +      # If we have ksh, try running ltconfig again with it.
  13.111 +      ORIGINAL_CONFIG_SHELL="${CONFIG_SHELL-/bin/sh}"
  13.112 +      export ORIGINAL_CONFIG_SHELL
  13.113 +      CONFIG_SHELL=/bin/ksh
  13.114 +      export CONFIG_SHELL
  13.115 +      exec "$CONFIG_SHELL" "$0" --no-reexec ${1+"$@"}
  13.116 +    else
  13.117 +      # Try using printf.
  13.118 +      echo='printf "%s\n"'
  13.119 +      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  13.120 +	 test "X`($echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  13.121 +	# Cool, printf works
  13.122 +	:
  13.123 +      elif test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
  13.124 +	   test "X`("$ORIGINAL_CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  13.125 +	CONFIG_SHELL="$ORIGINAL_CONFIG_SHELL"
  13.126 +	export CONFIG_SHELL
  13.127 +	SHELL="$CONFIG_SHELL"
  13.128 +	export SHELL
  13.129 +	echo="$CONFIG_SHELL $0 --fallback-echo"
  13.130 +      elif test "X`("$CONFIG_SHELL" "$0" --fallback-echo '\t') 2>/dev/null`" = 'X\t' &&
  13.131 +	   test "X`("$CONFIG_SHELL" "$0" --fallback-echo "$echo_test_string") 2>/dev/null`" = X"$echo_test_string"; then
  13.132 +	echo="$CONFIG_SHELL $0 --fallback-echo"
  13.133 +      else
  13.134 +	# maybe with a smaller string...
  13.135 +	prev=:
  13.136 +
  13.137 +	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  13.138 +	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null; then
  13.139 +	    break
  13.140 +	  fi
  13.141 +	  prev="$cmd"
  13.142 +	done
  13.143 +
  13.144 +	if test "$prev" != 'sed 50q "$0"'; then
  13.145 +	  echo_test_string=`eval $prev`
  13.146 +	  export echo_test_string
  13.147 +	  exec "${ORIGINAL_CONFIG_SHELL}" "$0" ${1+"$@"}
  13.148 +	else
  13.149 +	  # Oops.  We lost completely, so just stick with echo.
  13.150 +	  echo=echo
  13.151 +	fi
  13.152 +      fi
  13.153 +    fi
  13.154 +  fi
  13.155 +fi
  13.156 +
  13.157 +# Sed substitution that helps us do robust quoting.  It backslashifies
  13.158 +# metacharacters that are still active within double-quoted strings.
  13.159 +Xsed='sed -e s/^X//'
  13.160 +sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  13.161 +
  13.162 +# Same as above, but do not quote variable references.
  13.163 +double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  13.164 +
  13.165 +# Sed substitution to delay expansion of an escaped shell variable in a
  13.166 +# double_quote_subst'ed string.
  13.167 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  13.168 +
  13.169 +# The name of this program.
  13.170 +progname=`$echo "X$0" | $Xsed -e 's%^.*/%%'`
  13.171 +
  13.172 +# Constants:
  13.173 +PROGRAM=ltconfig
  13.174 +PACKAGE=libtool
  13.175 +VERSION=1.3c
  13.176 +TIMESTAMP=" (1.612 1999/09/30 00:26:50)"
  13.177 +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
  13.178 +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
  13.179 +rm="rm -f"
  13.180 +
  13.181 +help="Try \`$progname --help' for more information."
  13.182 +
  13.183 +# Global variables:
  13.184 +default_ofile=libtool
  13.185 +can_build_shared=yes
  13.186 +enable_shared=yes
  13.187 +# All known linkers require a `.a' archive for static linking (except M$VC,
  13.188 +# which needs '.lib').
  13.189 +enable_static=yes
  13.190 +enable_fast_install=yes
  13.191 +enable_dlopen=unknown
  13.192 +enable_win32_dll=no
  13.193 +pic_mode=default
  13.194 +ltmain=
  13.195 +silent=
  13.196 +srcdir=
  13.197 +ac_config_guess=
  13.198 +ac_config_sub=
  13.199 +host=
  13.200 +build=NONE
  13.201 +nonopt=NONE
  13.202 +ofile="$default_ofile"
  13.203 +verify_host=yes
  13.204 +with_gcc=no
  13.205 +with_gnu_ld=no
  13.206 +need_locks=yes
  13.207 +ac_ext=c
  13.208 +objext=o
  13.209 +libext=a
  13.210 +exeext=
  13.211 +cache_file=
  13.212 +
  13.213 +old_AR="$AR"
  13.214 +old_CC="$CC"
  13.215 +old_CFLAGS="$CFLAGS"
  13.216 +old_CPPFLAGS="$CPPFLAGS"
  13.217 +old_LDFLAGS="$LDFLAGS"
  13.218 +old_LD="$LD"
  13.219 +old_LN_S="$LN_S"
  13.220 +old_LIBS="$LIBS"
  13.221 +old_NM="$NM"
  13.222 +old_RANLIB="$RANLIB"
  13.223 +old_DLLTOOL="$DLLTOOL"
  13.224 +old_OBJDUMP="$OBJDUMP"
  13.225 +old_AS="$AS"
  13.226 +
  13.227 +# Parse the command line options.
  13.228 +args=
  13.229 +prev=
  13.230 +for option
  13.231 +do
  13.232 +  case "$option" in
  13.233 +  -*=*) optarg=`echo "$option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  13.234 +  *) optarg= ;;
  13.235 +  esac
  13.236 +
  13.237 +  # If the previous option needs an argument, assign it.
  13.238 +  if test -n "$prev"; then
  13.239 +    eval "$prev=\$option"
  13.240 +    prev=
  13.241 +    continue
  13.242 +  fi
  13.243 +
  13.244 +  case "$option" in
  13.245 +  --help) cat <<EOM
  13.246 +Usage: $progname [OPTION]... [HOST [LTMAIN]]
  13.247 +
  13.248 +Generate a system-specific libtool script.
  13.249 +
  13.250 +    --build                configure for building on BUILD [BUILD=HOST]
  13.251 +    --debug                enable verbose shell tracing
  13.252 +    --disable-shared       do not build shared libraries
  13.253 +    --disable-static       do not build static libraries
  13.254 +    --disable-fast-install do not optimize for fast installation
  13.255 +    --enable-dlopen        enable dlopen support
  13.256 +    --enable-win32-dll     enable building dlls on win32 hosts
  13.257 +    --help                 display this help and exit
  13.258 +    --no-verify            do not verify that HOST is a valid host type
  13.259 +-o, --output=FILE          specify the output file [default=$default_ofile]
  13.260 +    --quiet                same as \`--silent'
  13.261 +    --silent               do not print informational messages
  13.262 +    --srcdir=DIR           find \`config.guess' in DIR
  13.263 +    --version              output version information and exit
  13.264 +    --with-gcc             assume that the GNU C compiler will be used
  13.265 +    --with-gnu-ld          assume that the C compiler uses the GNU linker
  13.266 +    --prefer-pic           try to use only PIC objects
  13.267 +    --prefer-non-pic       try to use only non-PIC objects
  13.268 +    --disable-lock         disable file locking
  13.269 +    --cache-file=FILE      configure cache file
  13.270 +
  13.271 +LTMAIN is the \`ltmain.sh' shell script fragment or \`ltmain.c' program
  13.272 +that provides basic libtool functionality.
  13.273 +
  13.274 +HOST is the canonical host system name [default=guessed].
  13.275 +EOM
  13.276 +  exit 0
  13.277 +  ;;
  13.278 +
  13.279 +  --build) prev=build ;;
  13.280 +  --build=*) build="$optarg" ;;
  13.281 +
  13.282 +  --debug)
  13.283 +    echo "$progname: enabling shell trace mode"
  13.284 +    set -x
  13.285 +    ;;
  13.286 +
  13.287 +  --disable-shared) enable_shared=no ;;
  13.288 +
  13.289 +  --disable-static) enable_static=no ;;
  13.290 +
  13.291 +  --disable-fast-install) enable_fast_install=no ;;
  13.292 +
  13.293 +  --enable-dlopen) enable_dlopen=yes ;;
  13.294 +
  13.295 +  --enable-win32-dll) enable_win32_dll=yes ;;
  13.296 +
  13.297 +  --quiet | --silent) silent=yes ;;
  13.298 +
  13.299 +  --srcdir) prev=srcdir ;;
  13.300 +  --srcdir=*) srcdir="$optarg" ;;
  13.301 +
  13.302 +  --no-verify) verify_host=no ;;
  13.303 +
  13.304 +  --output | -o) prev=ofile ;;
  13.305 +  --output=*) ofile="$optarg" ;;
  13.306 +
  13.307 +  --version) echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"; exit 0 ;;
  13.308 +
  13.309 +  --with-gcc) with_gcc=yes ;;
  13.310 +  --with-gnu-ld) with_gnu_ld=yes ;;
  13.311 +
  13.312 +  --prefer-pic) pic_mode=yes ;;
  13.313 +  --prefer-non-pic) pic_mode=no ;;
  13.314 +
  13.315 +  --disable-lock) need_locks=no ;;
  13.316 +
  13.317 +  --cache-file=*) cache_file="$optarg" ;;
  13.318 +
  13.319 +  -*)
  13.320 +    echo "$progname: unrecognized option \`$option'" 1>&2
  13.321 +    echo "$help" 1>&2
  13.322 +    exit 1
  13.323 +    ;;
  13.324 +
  13.325 +  *)
  13.326 +    if test -z "$ltmain"; then
  13.327 +      ltmain="$option"
  13.328 +    elif test -z "$host"; then
  13.329 +# This generates an unnecessary warning for sparc-sun-solaris4.1.3_U1
  13.330 +#      if test -n "`echo $option| sed 's/[-a-z0-9.]//g'`"; then
  13.331 +#        echo "$progname: warning \`$option' is not a valid host type" 1>&2
  13.332 +#      fi
  13.333 +      host="$option"
  13.334 +    else
  13.335 +      echo "$progname: too many arguments" 1>&2
  13.336 +      echo "$help" 1>&2
  13.337 +      exit 1
  13.338 +    fi ;;
  13.339 +  esac
  13.340 +done
  13.341 +
  13.342 +if test -z "$ltmain"; then
  13.343 +  echo "$progname: you must specify a LTMAIN file" 1>&2
  13.344 +  echo "$help" 1>&2
  13.345 +  exit 1
  13.346 +fi
  13.347 +
  13.348 +if test ! -f "$ltmain"; then
  13.349 +  echo "$progname: \`$ltmain' does not exist" 1>&2
  13.350 +  echo "$help" 1>&2
  13.351 +  exit 1
  13.352 +fi
  13.353 +
  13.354 +# Quote any args containing shell metacharacters.
  13.355 +ltconfig_args=
  13.356 +for arg
  13.357 +do
  13.358 +  case "$arg" in
  13.359 +  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  13.360 +  ltconfig_args="$ltconfig_args '$arg'" ;;
  13.361 +  *) ltconfig_args="$ltconfig_args $arg" ;;
  13.362 +  esac
  13.363 +done
  13.364 +
  13.365 +# A relevant subset of AC_INIT.
  13.366 +
  13.367 +# File descriptor usage:
  13.368 +# 0 standard input
  13.369 +# 1 file creation
  13.370 +# 2 errors and warnings
  13.371 +# 3 some systems may open it to /dev/tty
  13.372 +# 4 used on the Kubota Titan
  13.373 +# 5 compiler messages saved in config.log
  13.374 +# 6 checking for... messages and results
  13.375 +if test "$silent" = yes; then
  13.376 +  exec 6>/dev/null
  13.377 +else
  13.378 +  exec 6>&1
  13.379 +fi
  13.380 +exec 5>>./config.log
  13.381 +
  13.382 +# NLS nuisances.
  13.383 +# Only set LANG and LC_ALL to C if already set.
  13.384 +# These must not be set unconditionally because not all systems understand
  13.385 +# e.g. LANG=C (notably SCO).
  13.386 +if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
  13.387 +if test "X${LANG+set}"   = Xset; then LANG=C;   export LANG;   fi
  13.388 +
  13.389 +if test -n "$cache_file" && test -r "$cache_file"; then
  13.390 +  echo "loading cache $cache_file within ltconfig"
  13.391 +  . $cache_file
  13.392 +fi
  13.393 +
  13.394 +if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  13.395 +  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  13.396 +  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  13.397 +    ac_n= ac_c='
  13.398 +' ac_t='	'
  13.399 +  else
  13.400 +    ac_n=-n ac_c= ac_t=
  13.401 +  fi
  13.402 +else
  13.403 +  ac_n= ac_c='\c' ac_t=
  13.404 +fi
  13.405 +
  13.406 +if test -z "$srcdir"; then
  13.407 +  # Assume the source directory is the same one as the path to LTMAIN.
  13.408 +  srcdir=`$echo "X$ltmain" | $Xsed -e 's%/[^/]*$%%'`
  13.409 +  test "$srcdir" = "$ltmain" && srcdir=.
  13.410 +fi
  13.411 +
  13.412 +trap "$rm conftest*; exit 1" 1 2 15
  13.413 +if test "$verify_host" = yes; then
  13.414 +  # Check for config.guess and config.sub.
  13.415 +  ac_aux_dir=
  13.416 +  for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  13.417 +    if test -f $ac_dir/config.guess; then
  13.418 +      ac_aux_dir=$ac_dir
  13.419 +      break
  13.420 +    fi
  13.421 +  done
  13.422 +  if test -z "$ac_aux_dir"; then
  13.423 +    echo "$progname: cannot find config.guess in $srcdir $srcdir/.. $srcdir/../.." 1>&2
  13.424 +    echo "$help" 1>&2
  13.425 +    exit 1
  13.426 +  fi
  13.427 +  ac_config_guess=$ac_aux_dir/config.guess
  13.428 +  ac_config_sub=$ac_aux_dir/config.sub
  13.429 +
  13.430 +  # Make sure we can run config.sub.
  13.431 +  if $SHELL $ac_config_sub sun4 >/dev/null 2>&1; then :
  13.432 +  else
  13.433 +    echo "$progname: cannot run $ac_config_sub" 1>&2
  13.434 +    echo "$help" 1>&2
  13.435 +    exit 1
  13.436 +  fi
  13.437 +
  13.438 +  echo $ac_n "checking host system type""... $ac_c" 1>&6
  13.439 +
  13.440 +  host_alias=$host
  13.441 +  case "$host_alias" in
  13.442 +  "")
  13.443 +    if host_alias=`$SHELL $ac_config_guess`; then :
  13.444 +    else
  13.445 +      echo "$progname: cannot guess host type; you must specify one" 1>&2
  13.446 +      echo "$help" 1>&2
  13.447 +      exit 1
  13.448 +    fi ;;
  13.449 +  esac
  13.450 +  host=`$SHELL $ac_config_sub $host_alias`
  13.451 +  echo "$ac_t$host" 1>&6
  13.452 +
  13.453 +  # Make sure the host verified.
  13.454 +  test -z "$host" && exit 1
  13.455 +
  13.456 +  # Check for the build system type
  13.457 +  echo $ac_n "checking build system type... $ac_c" 1>&6
  13.458 +
  13.459 +  build_alias=$build
  13.460 +  case "$build_alias" in
  13.461 +  NONE)
  13.462 +    case $nonopt in
  13.463 +    NONE) build_alias=$host_alias ;;
  13.464 +    *) build_alias=$nonopt ;;
  13.465 +    esac ;;
  13.466 +  esac
  13.467 +
  13.468 +  build=`$SHELL $ac_config_sub $build_alias`
  13.469 +  build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  13.470 +  build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  13.471 +  build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  13.472 +  echo "$ac_t""$build" 1>&6
  13.473 +
  13.474 +elif test -z "$host"; then
  13.475 +  echo "$progname: you must specify a host type if you use \`--no-verify'" 1>&2
  13.476 +  echo "$help" 1>&2
  13.477 +  exit 1
  13.478 +else
  13.479 +  host_alias=$host
  13.480 +  build_alias=$host_alias
  13.481 +  build=$host
  13.482 +fi
  13.483 +
  13.484 +if test x"$host" != x"$build"; then
  13.485 +  ac_tool_prefix=${host_alias}-
  13.486 +else
  13.487 +  ac_tool_prefix=
  13.488 +fi
  13.489 +
  13.490 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  13.491 +case "$host_os" in
  13.492 +linux-gnu*) ;;
  13.493 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  13.494 +esac
  13.495 +
  13.496 +host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  13.497 +host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  13.498 +host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  13.499 +
  13.500 +case "$host_os" in
  13.501 +aix3*)
  13.502 +  # AIX sometimes has problems with the GCC collect2 program.  For some
  13.503 +  # reason, if we set the COLLECT_NAMES environment variable, the problems
  13.504 +  # vanish in a puff of smoke.
  13.505 +  if test "X${COLLECT_NAMES+set}" != Xset; then
  13.506 +    COLLECT_NAMES=
  13.507 +    export COLLECT_NAMES
  13.508 +  fi
  13.509 +  ;;
  13.510 +esac
  13.511 +
  13.512 +# Determine commands to create old-style static archives.
  13.513 +old_archive_cmds='$AR cru $oldlib$oldobjs'
  13.514 +old_postinstall_cmds='chmod 644 $oldlib'
  13.515 +old_postuninstall_cmds=
  13.516 +
  13.517 +# Set a sane default for `AR'.
  13.518 +test -z "$AR" && AR=ar
  13.519 +
  13.520 +# Set a sane default for `OBJDUMP'.
  13.521 +test -z "$OBJDUMP" && OBJDUMP=objdump
  13.522 +
  13.523 +# Set sane defaults for `DLLTOOL'
  13.524 +test -z "$DLLTOOL" && DLLTOOL=dlltool
  13.525 +
  13.526 +# Set sane defaults for `AS'
  13.527 +test -z "$AS" && AS=as
  13.528 +
  13.529 +# Check to see if we can use ln -s, or we need hard links.
  13.530 +echo $ac_n "checking whether ln -s works... $ac_c" 1>&6
  13.531 +echo "$progname:528: checking for ln -s" 1>&5
  13.532 +result=yes
  13.533 +if test "X${ac_cv_prog_LN_S+set}" = Xset; then
  13.534 +  echo $ac_n "(cached) $ac_c" 1>&6
  13.535 +  if test "X$ac_cv_prog_LN_S" != "Xln -s"; then
  13.536 +    result=no
  13.537 +  fi
  13.538 +else
  13.539 +  if test -n "$LN_S"; then
  13.540 +    ac_cv_prog_LN_S="$LN_S"
  13.541 +  else
  13.542 +    $rm conftest.dat
  13.543 +    if ln -s X conftest.dat 2>/dev/null; then
  13.544 +      $rm conftest.dat
  13.545 +      ac_cv_prog_LN_S="ln -s"
  13.546 +    else
  13.547 +      ac_cv_prog_LN_S=ln
  13.548 +      result=no
  13.549 +    fi
  13.550 +  fi
  13.551 +fi
  13.552 +LN_S="$ac_cv_prog_LN_S"
  13.553 +echo "$ac_t""$result" 1>&6
  13.554 +
  13.555 +# Search for a ranlib program
  13.556 +for ac_prog in "${ac_host_prefix}ranlib" ranlib :
  13.557 +do
  13.558 +  echo $ac_n "checking for $ac_prog... $ac_c" 1>&6
  13.559 +  echo "$progname:556: checking for $ac_prog" 1>&5
  13.560 +  if test "X${ac_cv_prog_RANLIB+set}" = Xset; then
  13.561 +    echo $ac_n "(cached) $ac_c" 1>&6
  13.562 +  else
  13.563 +    if test -n "$RANLIB"; then
  13.564 +      ac_cv_prog_RANLIB="$RANLIB"	# Let the user override the test.
  13.565 +    else
  13.566 +      IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  13.567 +      for dir in $PATH; do
  13.568 +        test -z "$dir" && dir=.
  13.569 +        if test -f $dir/$ac_prog || test -f $dir/$ac_prog$ac_exeext; then
  13.570 +	  ac_cv_prog_RANLIB="$ac_prog"
  13.571 +	  break
  13.572 +        fi
  13.573 +      done
  13.574 +      IFS="$save_ifs"
  13.575 +    fi
  13.576 +  fi
  13.577 +  if test -n "$ac_cv_prog_RANLIB"; then
  13.578 +    RANLIB="$ac_cv_prog_RANLIB"
  13.579 +    old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  13.580 +    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  13.581 +    echo "$ac_t$RANLIB" 1>&6
  13.582 +  else
  13.583 +    echo "$ac_t""no" 1>&6
  13.584 +  fi
  13.585 +
  13.586 +  test -n "$RANLIB" && break
  13.587 +done
  13.588 +
  13.589 +if test -z "$NM"; then
  13.590 +  echo $ac_n "checking for BSD-compatible nm... $ac_c" 1>&6
  13.591 +  case "$NM" in
  13.592 +  [\\/]* | [A-Za-z]:[\\/]*) ;; # Let the user override the test with a path.
  13.593 +  *)
  13.594 +    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  13.595 +    for ac_dir in $PATH /usr/ucb /usr/ccs/bin /bin; do
  13.596 +      test -z "$ac_dir" && ac_dir=.
  13.597 +      if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext; then
  13.598 +	# Check to see if the nm accepts a BSD-compat flag.
  13.599 +	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
  13.600 +	#   nm: unknown option "B" ignored
  13.601 +	if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  13.602 +	  NM="$ac_dir/nm -B"
  13.603 +	  break
  13.604 +	elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  13.605 +	  NM="$ac_dir/nm -p"
  13.606 +	  break
  13.607 +	else
  13.608 +	  NM=${NM="$ac_dir/nm"} # keep the first match, but
  13.609 +	  continue # so that we can try to find one that supports BSD flags
  13.610 +	fi
  13.611 +      fi
  13.612 +    done
  13.613 +    IFS="$ac_save_ifs"
  13.614 +    test -z "$NM" && NM=nm
  13.615 +    ;;
  13.616 +  esac
  13.617 +  echo "$ac_t$NM" 1>&6
  13.618 +fi
  13.619 +
  13.620 +# Search for a strip program
  13.621 +echo $ac_n "checking for strip... $ac_c" 1>&6
  13.622 +echo "$progname:619: checking for strip" 1>&5
  13.623 +if test "X${ac_cv_prog_STRIP+set}" = Xset; then
  13.624 +  echo $ac_n "(cached) $ac_c" 1>&6
  13.625 +  result="$ac_cv_prog_STRIP"
  13.626 +else
  13.627 +  if test -n "$STRIP"; then
  13.628 +    result="$STRIP"		# Let the user override the test.
  13.629 +    ac_cv_prog_STRIP="$result"
  13.630 +  else
  13.631 +    result=no
  13.632 +    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  13.633 +    for dir in $PATH; do
  13.634 +      test -z "$dir" && dir=.
  13.635 +      if test -f $dir/strip || test -f $dir/strip$ac_exeext; then
  13.636 +	result="strip"
  13.637 +	ac_cv_prog_STRIP="$result"
  13.638 +	break
  13.639 +      fi
  13.640 +    done
  13.641 +    IFS="$save_ifs"
  13.642 +  fi
  13.643 +fi
  13.644 +test -n "$ac_cv_prog_STRIP" && STRIP="$ac_cv_prog_STRIP"
  13.645 +echo "$ac_t$result" 1>&6
  13.646 +
  13.647 +# Check to see if we are using GCC.
  13.648 +if test "$with_gcc" != yes || test -z "$CC"; then
  13.649 +  # If CC is not set, then try to find GCC or a usable CC.
  13.650 +  if test -z "$CC"; then
  13.651 +    echo $ac_n "checking for gcc... $ac_c" 1>&6
  13.652 +    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  13.653 +    for dir in $PATH; do
  13.654 +      test -z "$dir" && dir=.
  13.655 +      if test -f $dir/gcc || test -f $dir/gcc$ac_exeext; then
  13.656 +	CC="gcc"
  13.657 +	break
  13.658 +      fi
  13.659 +    done
  13.660 +    IFS="$save_ifs"
  13.661 +
  13.662 +    if test -n "$CC"; then
  13.663 +      echo "$ac_t$CC" 1>&6
  13.664 +    else
  13.665 +      echo "$ac_t"no 1>&6
  13.666 +    fi
  13.667 +  fi
  13.668 +
  13.669 +  # Not "gcc", so try "cc", rejecting "/usr/ucb/cc".
  13.670 +  if test -z "$CC"; then
  13.671 +    echo $ac_n "checking for cc... $ac_c" 1>&6
  13.672 +    IFS="${IFS= 	}"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
  13.673 +    cc_rejected=no
  13.674 +    for dir in $PATH; do
  13.675 +      test -z "$dir" && dir=.
  13.676 +      if test -f $dir/cc || test -f $dir/cc$ac_exeext; then
  13.677 +	if test "$dir/cc" = "/usr/ucb/cc"; then
  13.678 +	  cc_rejected=yes
  13.679 +	  continue
  13.680 +	fi
  13.681 +	CC="cc"
  13.682 +	break
  13.683 +      fi
  13.684 +    done
  13.685 +    IFS="$save_ifs"
  13.686 +    if test $cc_rejected = yes; then
  13.687 +      # We found a bogon in the path, so make sure we never use it.
  13.688 +      set dummy $CC
  13.689 +      shift
  13.690 +      if test $# -gt 0; then
  13.691 +	# We chose a different compiler from the bogus one.
  13.692 +	# However, it has the same name, so the bogon will be chosen
  13.693 +	# first if we set CC to just the name; use the full file name.
  13.694 +	shift
  13.695 +	set dummy "$dir/cc" "$@"
  13.696 +	shift
  13.697 +	CC="$@"
  13.698 +      fi
  13.699 +    fi
  13.700 +
  13.701 +    if test -n "$CC"; then
  13.702 +      echo "$ac_t$CC" 1>&6
  13.703 +    else
  13.704 +      echo "$ac_t"no 1>&6
  13.705 +    fi
  13.706 +
  13.707 +    if test -z "$CC"; then
  13.708 +      echo "$progname: error: no acceptable cc found in \$PATH" 1>&2
  13.709 +      exit 1
  13.710 +    fi
  13.711 +  fi
  13.712 +
  13.713 +  # Now see if the compiler is really GCC.
  13.714 +  with_gcc=no
  13.715 +  echo $ac_n "checking whether we are using GNU C... $ac_c" 1>&6
  13.716 +  echo "$progname:713: checking whether we are using GNU C" >&5
  13.717 +
  13.718 +  $rm conftest.c
  13.719 +  cat > conftest.c <<EOF
  13.720 +#ifdef __GNUC__
  13.721 +  yes;
  13.722 +#endif
  13.723 +EOF
  13.724 +  if { ac_try='${CC-cc} -E conftest.c'; { (eval echo $progname:721: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
  13.725 +    with_gcc=yes
  13.726 +  fi
  13.727 +  $rm conftest.c
  13.728 +  echo "$ac_t$with_gcc" 1>&6
  13.729 +fi
  13.730 +
  13.731 +echo $ac_n "checking for objdir... $ac_c" 1>&6
  13.732 +rm -f .libs 2>/dev/null
  13.733 +mkdir .libs 2>/dev/null
  13.734 +if test -d .libs; then
  13.735 +  objdir=.libs
  13.736 +else
  13.737 +  # MS-DOS does not allow filenames that begin with a dot.
  13.738 +  objdir=_libs
  13.739 +fi
  13.740 +rmdir .libs 2>/dev/null
  13.741 +echo "$ac_t$objdir" 1>&6
  13.742 +
  13.743 +echo $ac_n "checking for object suffix... $ac_c" 1>&6
  13.744 +echo "$progname:741: checking for object suffix" 1>&5
  13.745 +if test "X${ac_cv_objext+set}" = Xset; then
  13.746 +  echo $ac_n "(cached) $ac_c" 1>&6
  13.747 +else
  13.748 +  ac_cv_objext="no"
  13.749 +  $rm conftest*
  13.750 +  echo 'int i = 1;' > conftest.c
  13.751 +  if { (eval echo $progname:748: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; }; then
  13.752 +    # Append any warnings to the config.log.
  13.753 +    cat conftest.err 1>&5
  13.754 +
  13.755 +    for ac_file in conftest.*; do
  13.756 +      case $ac_file in
  13.757 +      *.c | *.err) ;;
  13.758 +      *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
  13.759 +      esac
  13.760 +    done
  13.761 +  else
  13.762 +    cat conftest.err 1>&5
  13.763 +    echo "$progname: failed program was:" >&5
  13.764 +    cat conftest.c >&5
  13.765 +  fi
  13.766 +  $rm conftest*
  13.767 +fi
  13.768 +if test "X$ac_cv_objext" = Xno; then
  13.769 +  objext=""
  13.770 +else
  13.771 +  objext="$ac_cv_objext"
  13.772 +fi
  13.773 +echo "$ac_t$ac_cv_objext" 1>&6
  13.774 +
  13.775 +echo $ac_n "checking for executable suffix... $ac_c" 1>&6
  13.776 +echo "$progname:773: checking for executable suffix" 1>&5
  13.777 +if test "X${ac_cv_exeext+set}" = Xset; then
  13.778 +  echo $ac_n "(cached) $ac_c" 1>&6
  13.779 +else
  13.780 +  ac_cv_exeext="no"
  13.781 +  $rm conftest*
  13.782 +  echo 'main () { return 0; }' > conftest.c
  13.783 +  if { (eval echo $progname:780: \"$ac_link\") 1>&5; (eval $ac_link) 2>conftest.err; }; then
  13.784 +    # Append any warnings to the config.log.
  13.785 +    cat conftest.err 1>&5
  13.786 +
  13.787 +    for ac_file in conftest.*; do
  13.788 +      case $ac_file in
  13.789 +      *.c | *.err | *.$objext ) ;;
  13.790 +      *) ac_cv_exeext=.`echo $ac_file | sed -e s/conftest.//` ;;
  13.791 +      esac
  13.792 +    done
  13.793 +  else
  13.794 +    cat conftest.err 1>&5
  13.795 +    echo "$progname: failed program was:" >&5
  13.796 +    cat conftest.c >&5
  13.797 +  fi
  13.798 +  $rm conftest*
  13.799 +fi
  13.800 +if test "X$ac_cv_exeext" = Xno; then
  13.801 +  exeext=""
  13.802 +else
  13.803 +  exeext="$ac_cv_exeext"
  13.804 +fi
  13.805 +echo "$ac_t$ac_cv_exeext" 1>&6
  13.806 +
  13.807 +# Allow CC to be a program name with arguments.
  13.808 +set dummy $CC
  13.809 +compiler="$2"
  13.810 +
  13.811 +# We assume here that the value for ac_cv_prog_cc_pic will not be cached
  13.812 +# in isolation, and that seeing it set (from the cache) indicates that
  13.813 +# the associated values are set (in the cache) correctly too.
  13.814 +echo $ac_n "checking for $compiler option to produce PIC... $ac_c" 1>&6
  13.815 +echo "$progname:812:checking for $compiler option to produce PIC" 1>&5
  13.816 +if test "X${ac_cv_prog_cc_pic+set}" = Xset; then
  13.817 +  echo $ac_n "(cached) $ac_c" 1>&6
  13.818 +else
  13.819 +  ac_cv_prog_cc_pic=
  13.820 +  ac_cv_prog_cc_shlib=
  13.821 +  ac_cv_prog_cc_wl=
  13.822 +  ac_cv_prog_cc_static=
  13.823 +  ac_cv_prog_cc_no_builtin=
  13.824 +  ac_cv_prog_cc_can_build_shared=$can_build_shared
  13.825 +
  13.826 +  if test "$with_gcc" = yes; then
  13.827 +    ac_cv_prog_cc_wl='-Wl,'
  13.828 +    ac_cv_prog_cc_static='-static'
  13.829 +
  13.830 +    case "$host_os" in
  13.831 +    beos* | irix5* | irix6* | osf3* | osf4*)
  13.832 +      # PIC is the default for these OSes.
  13.833 +      ;;
  13.834 +    aix*)
  13.835 +      # Below there is a dirty hack to force normal static linking with -ldl
  13.836 +      # The problem is because libdl dynamically linked with both libc and
  13.837 +      # libC (AIX C++ library), which obviously doesn't included in libraries
  13.838 +      # list by gcc. This cause undefined symbols with -static flags.
  13.839 +      # This hack allows C programs to be linked with "-static -ldl", but
  13.840 +      # we not sure about C++ programs.
  13.841 +      ac_cv_prog_cc_static="$ac_cv_prog_cc_static ${ac_cv_prog_cc_wl}-lC"
  13.842 +      ;;
  13.843 +    cygwin* | mingw* | os2*)
  13.844 +      # This hack is so that the source file can tell whether it is being
  13.845 +      # built for inclusion in a dll (and should export symbols for example).
  13.846 +      ac_cv_prog_cc_pic='-DDLL_EXPORT'
  13.847 +      ;;
  13.848 +    amigaos*)
  13.849 +      # FIXME: we need at least 68020 code to build shared libraries, but
  13.850 +      # adding the `-m68020' flag to GCC prevents building anything better,
  13.851 +      # like `-m68040'.
  13.852 +      ac_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  13.853 +      ;;
  13.854 +    sysv4*MP*)
  13.855 +      if test -d /usr/nec; then
  13.856 +	 ac_cv_prog_cc_pic=-Kconform_pic
  13.857 +      fi
  13.858 +      ;;
  13.859 +    *)
  13.860 +      ac_cv_prog_cc_pic='-fPIC'
  13.861 +      ;;
  13.862 +    esac
  13.863 +  else
  13.864 +    # PORTME Check for PIC flags for the system compiler.
  13.865 +    case "$host_os" in
  13.866 +    aix3* | aix4*)
  13.867 +     # All AIX code is PIC.
  13.868 +      ac_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  13.869 +      ;;
  13.870 +
  13.871 +    hpux9* | hpux10* | hpux11*)
  13.872 +      # Is there a better ac_cv_prog_cc_static that works with the bundled CC?
  13.873 +      ac_cv_prog_cc_wl='-Wl,'
  13.874 +      ac_cv_prog_cc_static="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  13.875 +      ac_cv_prog_cc_pic='+Z'
  13.876 +      ;;
  13.877 +
  13.878 +    irix5* | irix6*)
  13.879 +      ac_cv_prog_cc_wl='-Wl,'
  13.880 +      ac_cv_prog_cc_static='-non_shared'
  13.881 +      # PIC (with -KPIC) is the default.
  13.882 +      ;;
  13.883 +
  13.884 +    cygwin* | mingw* | os2*)
  13.885 +      # This hack is so that the source file can tell whether it is being
  13.886 +      # built for inclusion in a dll (and should export symbols for example).
  13.887 +      ac_cv_prog_cc_pic='-DDLL_EXPORT'
  13.888 +      ;;
  13.889 +
  13.890 +    osf3* | osf4*)
  13.891 +      # All OSF/1 code is PIC.
  13.892 +      ac_cv_prog_cc_wl='-Wl,'
  13.893 +      ac_cv_prog_cc_static='-non_shared'
  13.894 +      ;;
  13.895 +
  13.896 +    sco3.2v5*)
  13.897 +      ac_cv_prog_cc_pic='-Kpic'
  13.898 +      ac_cv_prog_cc_static='-dn'
  13.899 +      ac_cv_prog_cc_shlib='-belf'
  13.900 +      ;;
  13.901 +
  13.902 +    solaris*)
  13.903 +      ac_cv_prog_cc_pic='-KPIC'
  13.904 +      ac_cv_prog_cc_static='-Bstatic'
  13.905 +      ac_cv_prog_cc_wl='-Wl,'
  13.906 +      ;;
  13.907 +
  13.908 +    sunos4*)
  13.909 +      ac_cv_prog_cc_pic='-PIC'
  13.910 +      ac_cv_prog_cc_static='-Bstatic'
  13.911 +      ac_cv_prog_cc_wl='-Qoption ld '
  13.912 +      ;;
  13.913 +
  13.914 +    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  13.915 +      ac_cv_prog_cc_pic='-KPIC'
  13.916 +      ac_cv_prog_cc_static='-Bstatic'
  13.917 +      ac_cv_prog_cc_wl='-Wl,'
  13.918 +      ;;
  13.919 +
  13.920 +    uts4*)
  13.921 +      ac_cv_prog_cc_pic='-pic'
  13.922 +      ac_cv_prog_cc_static='-Bstatic'
  13.923 +      ;;
  13.924 +
  13.925 +    sysv4*MP*)
  13.926 +      if test -d /usr/nec ;then
  13.927 +	ac_cv_prog_cc_pic='-Kconform_pic'
  13.928 +	ac_cv_prog_cc_static='-Bstatic'
  13.929 +      fi
  13.930 +      ;;
  13.931 +
  13.932 +    *)
  13.933 +      ac_cv_prog_cc_can_build_shared=no
  13.934 +      ;;
  13.935 +    esac
  13.936 +  fi
  13.937 +fi
  13.938 +if test -z "$ac_cv_prog_cc_pic"; then
  13.939 +  echo "$ac_t"none 1>&6
  13.940 +else  
  13.941 +  echo "$ac_t""$ac_cv_prog_cc_pic" 1>&6
  13.942 +
  13.943 +  # Check to make sure the pic_flag actually works.
  13.944 +  echo $ac_n "checking if $compiler PIC flag $ac_cv_prog_cc_pic works... $ac_c" 1>&6
  13.945 +  echo "$progname:942:checking that $compiler PIC flag $ac_cv_prog_cc_pic works." 1>&5
  13.946 +  if test "X${ac_cv_prog_cc_pic_works+set}" = Xset; then
  13.947 +    echo $ac_n "(cached) $ac_c" 1>&6
  13.948 +  else
  13.949 +    ac_cv_prog_cc_pic_works=yes
  13.950 +    $rm conftest*
  13.951 +    echo "int some_variable = 0;" > conftest.c
  13.952 +    save_CFLAGS="$CFLAGS"
  13.953 +    CFLAGS="$CFLAGS $ac_cv_prog_cc_pic -DPIC"
  13.954 +    if { (eval echo $progname:951: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.$objext; then
  13.955 +      # Append any warnings to the config.log.
  13.956 +      cat conftest.err 1>&5
  13.957 +    
  13.958 +      case "$host_os" in
  13.959 +      hpux9* | hpux10* | hpux11*)
  13.960 +	# On HP-UX, both CC and GCC only warn that PIC is supported... then
  13.961 +	# they create non-PIC objects.  So, if there were any warnings, we
  13.962 +	# assume that PIC is not supported.
  13.963 +	if test -s conftest.err; then
  13.964 +	  ac_cv_prog_cc_pic_works=no
  13.965 +	  ac_cv_prog_cc_can_build_shared=no
  13.966 +	  ac_cv_prog_cc_pic=
  13.967 +	else
  13.968 +	  ac_cv_prog_cc_pic_works=yes
  13.969 +	  ac_cv_prog_cc_pic=" $ac_cv_prog_cc_pic"
  13.970 +	fi
  13.971 +	;;
  13.972 +      *)
  13.973 +	ac_cv_prog_cc_pic_works=yes
  13.974 +	ac_cv_prog_cc_pic=" $ac_cv_prog_cc_pic"
  13.975 +	;;
  13.976 +      esac
  13.977 +    else
  13.978 +      # Append any errors to the config.log.
  13.979 +      cat conftest.err 1>&5
  13.980 +      ac_cv_prog_cc_pic_works=no
  13.981 +      ac_cv_prog_cc_can_build_shared=no
  13.982 +      ac_cv_prog_cc_pic=
  13.983 +    fi
  13.984 +    CFLAGS="$save_CFLAGS"
  13.985 +    $rm conftest*
  13.986 +  fi
  13.987 +  # Belt *and* braces to stop my trousers falling down:
  13.988 +  if test "X$ac_cv_prog_cc_pic_works" = Xno; then
  13.989 +    ac_cv_prog_cc_pic=
  13.990 +    ac_cv_prog_cc_can_build_shared=no
  13.991 +  fi
  13.992 +  echo "$ac_t""$ac_cv_prog_cc_pic_works" 1>&6
  13.993 +fi
  13.994 +
  13.995 +# Check for any special shared library compilation flags.
  13.996 +if test -n "$ac_cv_prog_cc_shlib"; then
  13.997 +  echo "$progname: warning: \`$CC' requires \`$ac_cv_prog_cc_shlib' to build shared libraries" 1>&2
  13.998 +  if echo "$old_CC $old_CFLAGS " | egrep -e "[ 	]$ac_cv_prog_cc_shlib[ 	]" >/dev/null; then :
  13.999 +  else
 13.1000 +    echo "$progname: add \`$ac_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
 13.1001 +    ac_cv_prog_cc_can_build_shared=no
 13.1002 +  fi
 13.1003 +fi
 13.1004 +
 13.1005 +echo $ac_n "checking if $compiler static flag $ac_cv_prog_cc_static works... $ac_c" 1>&6
 13.1006 +echo "$progname:1003: checking if $compiler static flag $ac_cv_prog_cc_static works" >&5
 13.1007 +if test "X${ac_cv_prog_cc_static_works+set}" = Xset; then
 13.1008 +  echo $ac_n "(cached) $ac_c" 1>&6
 13.1009 +else
 13.1010 +  $rm conftest*
 13.1011 +  echo 'main(){return(0);}' > conftest.c
 13.1012 +  save_LDFLAGS="$LDFLAGS"
 13.1013 +  LDFLAGS="$LDFLAGS $ac_cv_prog_cc_static"
 13.1014 +  if { (eval echo $progname:1011: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
 13.1015 +    ac_cv_prog_cc_static_works=yes
 13.1016 +  else
 13.1017 +    ac_cv_prog_cc_static_works=no
 13.1018 +    ac_cv_prog_cc_static=
 13.1019 +  fi
 13.1020 +  LDFLAGS="$save_LDFLAGS"
 13.1021 +  $rm conftest*
 13.1022 +fi
 13.1023 +# Belt *and* braces to stop my trousers falling down:
 13.1024 +if test "X$ac_cv_prog_cc_static_works" = Xno; then
 13.1025 +  ac_cv_prog_cc_static=
 13.1026 +fi
 13.1027 +echo "$ac_t""$ac_cv_prog_cc_static_works" 1>&6
 13.1028 +pic_flag="$ac_cv_prog_cc_pic"
 13.1029 +special_shlib_compile_flags="$ac_cv_prog_cc_shlib"
 13.1030 +wl="$ac_cv_prog_cc_wl"
 13.1031 +link_static_flag="$ac_cv_prog_cc_static"
 13.1032 +no_builtin_flag="$ac_cv_prog_cc_no_builtin"
 13.1033 +can_build_shared="$ac_cv_prog_cc_can_build_shared"
 13.1034 +
 13.1035 +# Check to see if options -o and -c are simultaneously supported by compiler
 13.1036 +echo $ac_n "checking if $compiler supports -c -o file.o... $ac_c" 1>&6
 13.1037 +$rm -r conftest 2>/dev/null
 13.1038 +mkdir conftest
 13.1039 +cd conftest
 13.1040 +$rm conftest*
 13.1041 +echo "int some_variable = 0;" > conftest.c
 13.1042 +mkdir out
 13.1043 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 13.1044 +# that will create temporary files in the current directory regardless of
 13.1045 +# the output directory.  Thus, making CWD read-only will cause this test
 13.1046 +# to fail, enabling locking or at least warning the user not to do parallel
 13.1047 +# builds.
 13.1048 +chmod -w .
 13.1049 +save_CFLAGS="$CFLAGS"
 13.1050 +CFLAGS="$CFLAGS -o out/conftest2.o"
 13.1051 +echo "$progname:1048: checking if $compiler supports -c -o file.o" >&5
 13.1052 +if { (eval echo $progname:1049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.o; then
 13.1053 +
 13.1054 +  # The compiler can only warn and ignore the option if not recognized
 13.1055 +  # So say no if there are warnings
 13.1056 +    if test -s out/conftest.err; then
 13.1057 +      echo "$ac_t"no 1>&6
 13.1058 +      compiler_c_o=no
 13.1059 +    else
 13.1060 +      echo "$ac_t"yes 1>&6
 13.1061 +      compiler_c_o=yes
 13.1062 +    fi
 13.1063 +else
 13.1064 +  # Append any errors to the config.log.
 13.1065 +  cat out/conftest.err 1>&5
 13.1066 +  compiler_c_o=no
 13.1067 +  echo "$ac_t"no 1>&6
 13.1068 +fi
 13.1069 +CFLAGS="$save_CFLAGS"
 13.1070 +chmod u+w .
 13.1071 +$rm conftest* out/*
 13.1072 +rmdir out
 13.1073 +cd ..
 13.1074 +rmdir conftest
 13.1075 +$rm -r conftest 2>/dev/null
 13.1076 +
 13.1077 +if test x"$compiler_c_o" = x"yes"; then
 13.1078 +  # Check to see if we can write to a .lo
 13.1079 +  echo $ac_n "checking if $compiler supports -c -o file.lo... $ac_c" 1>&6
 13.1080 +  $rm conftest*
 13.1081 +  echo "int some_variable = 0;" > conftest.c
 13.1082 +  save_CFLAGS="$CFLAGS"
 13.1083 +  CFLAGS="$CFLAGS -c -o conftest.lo"
 13.1084 +  echo "$progname:1081: checking if $compiler supports -c -o file.lo" >&5
 13.1085 +if { (eval echo $progname:1082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.lo; then
 13.1086 +
 13.1087 +    # The compiler can only warn and ignore the option if not recognized
 13.1088 +    # So say no if there are warnings
 13.1089 +      if test -s conftest.err; then
 13.1090 +	echo "$ac_t"no 1>&6
 13.1091 +	compiler_o_lo=no
 13.1092 +      else
 13.1093 +	echo "$ac_t"yes 1>&6
 13.1094 +	compiler_o_lo=yes
 13.1095 +      fi
 13.1096 +  else
 13.1097 +    # Append any errors to the config.log.
 13.1098 +    cat conftest.err 1>&5
 13.1099 +    compiler_o_lo=no
 13.1100 +    echo "$ac_t"no 1>&6
 13.1101 +  fi
 13.1102 +  CFLAGS="$save_CFLAGS"
 13.1103 +  $rm conftest*
 13.1104 +else
 13.1105 +  compiler_o_lo=no
 13.1106 +fi
 13.1107 +
 13.1108 +# Check to see if we can do hard links to lock some files if needed
 13.1109 +hard_links="nottested"
 13.1110 +if test "$compiler_c_o" = no && test "$need_locks" != no; then
 13.1111 +  # do not overwrite the value of need_locks provided by the user
 13.1112 +  echo $ac_n "checking if we can lock with hard links... $ac_c" 1>&6
 13.1113 +  hard_links=yes
 13.1114 +  $rm conftest*
 13.1115 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 13.1116 +  touch conftest.a
 13.1117 +  ln conftest.a conftest.b 2>&5 || hard_links=no
 13.1118 +  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 13.1119 +  echo "$ac_t$hard_links" 1>&6
 13.1120 +  $rm conftest*
 13.1121 +  if test "$hard_links" = no; then
 13.1122 +    echo "*** WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2
 13.1123 +    need_locks=warn
 13.1124 +  fi
 13.1125 +else
 13.1126 +  need_locks=no
 13.1127 +fi
 13.1128 +
 13.1129 +if test "$with_gcc" = yes; then
 13.1130 +  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 13.1131 +  echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions ... $ac_c" 1>&6
 13.1132 +  $rm conftest*
 13.1133 +  echo "int some_variable = 0;" > conftest.c
 13.1134 +  save_CFLAGS="$CFLAGS"
 13.1135 +  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.c"
 13.1136 +  echo "$progname:1133: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 13.1137 +  if { (eval echo $progname:1134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>conftest.err; } && test -s conftest.o; then
 13.1138 +
 13.1139 +    # The compiler can only warn and ignore the option if not recognized
 13.1140 +    # So say no if there are warnings
 13.1141 +      if test -s conftest.err; then
 13.1142 +	echo "$ac_t"no 1>&6
 13.1143 +	compiler_rtti_exceptions=no
 13.1144 +      else
 13.1145 +	echo "$ac_t"yes 1>&6
 13.1146 +	compiler_rtti_exceptions=yes
 13.1147 +      fi
 13.1148 +  else
 13.1149 +    # Append any errors to the config.log.
 13.1150 +    cat conftest.err 1>&5
 13.1151 +    compiler_rtti_exceptions=no
 13.1152 +    echo "$ac_t"no 1>&6
 13.1153 +  fi
 13.1154 +  CFLAGS="$save_CFLAGS"
 13.1155 +  $rm conftest*
 13.1156 +
 13.1157 +  if test "$compiler_rtti_exceptions" = "yes"; then
 13.1158 +    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 13.1159 +  else
 13.1160 +    no_builtin_flag=' -fno-builtin'
 13.1161 +  fi
 13.1162 +  
 13.1163 +fi
 13.1164 +
 13.1165 +# Make sure LD is an absolute path.
 13.1166 +if test -z "$LD"; then
 13.1167 +  ac_prog=ld
 13.1168 +  if test "$with_gcc" = yes; then
 13.1169 +    # Check if gcc -print-prog-name=ld gives a path.
 13.1170 +    echo $ac_n "checking for ld used by GCC... $ac_c" 1>&6
 13.1171 +    echo "$progname:1168: checking for ld used by GCC" >&5
 13.1172 +    case $host in
 13.1173 +    *-*-mingw*)
 13.1174 +      # gcc leaves a trailing carriage return which upsets mingw
 13.1175 +      ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 13.1176 +    *)
 13.1177 +      ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 13.1178 +    esac
 13.1179 +    case "$ac_prog" in
 13.1180 +    # Accept absolute paths.
 13.1181 +    [\\/]* | [A-Za-z]:[\\/]*)
 13.1182 +      re_direlt='/[^/][^/]*/\.\./'
 13.1183 +      # Canonicalize the path of ld
 13.1184 +      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 13.1185 +      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 13.1186 +	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 13.1187 +      done
 13.1188 +      test -z "$LD" && LD="$ac_prog"
 13.1189 +      ;;
 13.1190 +    "")
 13.1191 +      # If it fails, then pretend we are not using GCC.
 13.1192 +      ac_prog=ld
 13.1193 +      ;;
 13.1194 +    *)
 13.1195 +      # If it is relative, then search for the first ld in PATH.
 13.1196 +      with_gnu_ld=unknown
 13.1197 +      ;;
 13.1198 +    esac
 13.1199 +  elif test "$with_gnu_ld" = yes; then
 13.1200 +    echo $ac_n "checking for GNU ld... $ac_c" 1>&6
 13.1201 +    echo "$progname:1198: checking for GNU ld" >&5
 13.1202 +  else
 13.1203 +    echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 13.1204 +    echo "$progname:1201: checking for non-GNU ld" >&5
 13.1205 +  fi
 13.1206 +
 13.1207 +  if test -z "$LD"; then
 13.1208 +    IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 13.1209 +    for ac_dir in $PATH; do
 13.1210 +      test -z "$ac_dir" && ac_dir=.
 13.1211 +      if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 13.1212 +	LD="$ac_dir/$ac_prog"
 13.1213 +	# Check to see if the program is GNU ld.  I'd rather use --version,
 13.1214 +	# but a