[llvm-commits] CVS: llvm/lib/CodeGen/ELF/COPYING.LIB ChangeLog INSTALL MANIFEST Makefile.in README VERSION acconfig.h aclocal.m4 config.guess config.h.in config.sub configure configure.in install-sh mkinstalldirs stamp-h.in

Reid Spencer reid at x10sys.com
Tue Jun 21 23:36:10 PDT 2005



Changes in directory llvm/lib/CodeGen/ELF:

COPYING.LIB added (r1.1)
ChangeLog added (r1.1)
INSTALL added (r1.1)
MANIFEST added (r1.1)
Makefile.in added (r1.1)
README added (r1.1)
VERSION added (r1.1)
acconfig.h added (r1.1)
aclocal.m4 added (r1.1)
config.guess added (r1.1)
config.h.in added (r1.1)
config.sub added (r1.1)
configure added (r1.1)
configure.in added (r1.1)
install-sh added (r1.1)
mkinstalldirs added (r1.1)
stamp-h.in added (r1.1)
---
Log message:

Adding libELF 0.8.5.
This is the first baby step towards supporting direct generation of ELF
files in LLVM. Its not clear at this point that all of the software added
by this commit is actually needed. However, until requirements are 
solidified, I've included the whole thing. Note that this currently won't
be built by the makefile system. Once an LLVM interface to this software
is available, we'll start building libELF in order to provide the 
functionality.


---
Diffs of the changes:  (+9664 -0)

 COPYING.LIB   |  481 +++++++
 ChangeLog     | 1023 ++++++++++++++++
 INSTALL       |  176 ++
 MANIFEST      |   88 +
 Makefile.in   |  177 ++
 README        |  244 +++
 VERSION       |    1 
 acconfig.h    |   80 +
 aclocal.m4    |  294 ++++
 config.guess  | 1407 ++++++++++++++++++++++
 config.h.in   |  136 ++
 config.sub    | 1505 ++++++++++++++++++++++++
 configure     | 3579 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 configure.in  |  318 +++++
 install-sh    |  119 +
 mkinstalldirs |   35 
 stamp-h.in    |    1 
 17 files changed, 9664 insertions(+)


Index: llvm/lib/CodeGen/ELF/COPYING.LIB
diff -c /dev/null llvm/lib/CodeGen/ELF/COPYING.LIB:1.1
*** /dev/null	Wed Jun 22 01:36:07 2005
--- llvm/lib/CodeGen/ELF/COPYING.LIB	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,481 ----
+ 		  GNU LIBRARY GENERAL PUBLIC LICENSE
+ 		       Version 2, June 1991
+ 
+  Copyright (C) 1991 Free Software Foundation, Inc.
+     		    59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+  Everyone is permitted to copy and distribute verbatim copies
+  of this license document, but changing it is not allowed.
+ 
+ [This is the first released version of the library GPL.  It is
+  numbered 2 because it goes with version 2 of the ordinary GPL.]
+ 
+ 			    Preamble
+ 
+   The licenses for most software are designed to take away your
+ freedom to share and change it.  By contrast, the GNU General Public
+ Licenses are intended to guarantee your freedom to share and change
+ free software--to make sure the software is free for all its users.
+ 
+   This license, the Library General Public License, applies to some
+ specially designated Free Software Foundation software, and to any
+ other libraries whose authors decide to use it.  You can use it for
+ your libraries, too.
+ 
+   When we speak of free software, we are referring to freedom, not
+ price.  Our General Public Licenses are designed to make sure that you
+ have the freedom to distribute copies of free software (and charge for
+ this service if you wish), that you receive source code or can get it
+ if you want it, that you can change the software or use pieces of it
+ in new free programs; and that you know you can do these things.
+ 
+   To protect your rights, we need to make restrictions that forbid
+ anyone to deny you these rights or to ask you to surrender the rights.
+ These restrictions translate to certain responsibilities for you if
+ you distribute copies of the library, or if you modify it.
+ 
+   For example, if you distribute copies of the library, whether gratis
+ or for a fee, you must give the recipients all the rights that we gave
+ you.  You must make sure that they, too, receive or can get the source
+ code.  If you link a program with the library, you must provide
+ complete object files to the recipients so that they can relink them
+ with the library, after making changes to the library and recompiling
+ it.  And you must show them these terms so they know their rights.
+ 
+   Our method of protecting your rights has two steps: (1) copyright
+ the library, and (2) offer you this license which gives you legal
+ permission to copy, distribute and/or modify the library.
+ 
+   Also, for each distributor's protection, we want to make certain
+ that everyone understands that there is no warranty for this free
+ library.  If the library is modified by someone else and passed on, we
+ want its recipients to know that what they have is not the original
+ version, so that any problems introduced by others will not reflect on
+ the original authors' reputations.
+ 
+   Finally, any free program is threatened constantly by software
+ patents.  We wish to avoid the danger that companies distributing free
+ software will individually obtain patent licenses, thus in effect
+ transforming the program into proprietary software.  To prevent this,
+ we have made it clear that any patent must be licensed for everyone's
+ free use or not licensed at all.
+ 
+   Most GNU software, including some libraries, is covered by the ordinary
+ GNU General Public License, which was designed for utility programs.  This
+ license, the GNU Library General Public License, applies to certain
+ designated libraries.  This license is quite different from the ordinary
+ one; be sure to read it in full, and don't assume that anything in it is
+ the same as in the ordinary license.
+ 
+   The reason we have a separate public license for some libraries is that
+ they blur the distinction we usually make between modifying or adding to a
+ program and simply using it.  Linking a program with a library, without
+ changing the library, is in some sense simply using the library, and is
+ analogous to running a utility program or application program.  However, in
+ a textual and legal sense, the linked executable is a combined work, a
+ derivative of the original library, and the ordinary General Public License
+ treats it as such.
+ 
+   Because of this blurred distinction, using the ordinary General
+ Public License for libraries did not effectively promote software
+ sharing, because most developers did not use the libraries.  We
+ concluded that weaker conditions might promote sharing better.
+ 
+   However, unrestricted linking of non-free programs would deprive the
+ users of those programs of all benefit from the free status of the
+ libraries themselves.  This Library General Public License is intended to
+ permit developers of non-free programs to use free libraries, while
+ preserving your freedom as a user of such programs to change the free
+ libraries that are incorporated in them.  (We have not seen how to achieve
+ this as regards changes in header files, but we have achieved it as regards
+ changes in the actual functions of the Library.)  The hope is that this
+ will lead to faster development of free libraries.
+ 
+   The precise terms and conditions for copying, distribution and
+ modification follow.  Pay close attention to the difference between a
+ "work based on the library" and a "work that uses the library".  The
+ former contains code derived from the library, while the latter only
+ works together with the library.
+ 
+   Note that it is possible for a library to be covered by the ordinary
+ General Public License rather than by this special one.
+ 
+ 		  GNU LIBRARY GENERAL PUBLIC LICENSE
+    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+ 
+   0. This License Agreement applies to any software library which
+ contains a notice placed by the copyright holder or other authorized
+ party saying it may be distributed under the terms of this Library
+ General Public License (also called "this License").  Each licensee is
+ addressed as "you".
+ 
+   A "library" means a collection of software functions and/or data
+ prepared so as to be conveniently linked with application programs
+ (which use some of those functions and data) to form executables.
+ 
+   The "Library", below, refers to any such software library or work
+ which has been distributed under these terms.  A "work based on the
+ Library" means either the Library or any derivative work under
+ copyright law: that is to say, a work containing the Library or a
+ portion of it, either verbatim or with modifications and/or translated
+ straightforwardly into another language.  (Hereinafter, translation is
+ included without limitation in the term "modification".)
+ 
+   "Source code" for a work means the preferred form of the work for
+ making modifications to it.  For a library, complete source code means
+ all the source code for all modules it contains, plus any associated
+ interface definition files, plus the scripts used to control compilation
+ and installation of the library.
+ 
+   Activities other than copying, distribution and modification are not
+ covered by this License; they are outside its scope.  The act of
+ running a program using the Library is not restricted, and output from
+ such a program is covered only if its contents constitute a work based
+ on the Library (independent of the use of the Library in a tool for
+ writing it).  Whether that is true depends on what the Library does
+ and what the program that uses the Library does.
+   
+   1. You may copy and distribute verbatim copies of the Library's
+ complete source code as you receive it, in any medium, provided that
+ you conspicuously and appropriately publish on each copy an
+ appropriate copyright notice and disclaimer of warranty; keep intact
+ all the notices that refer to this License and to the absence of any
+ warranty; and distribute a copy of this License along with the
+ Library.
+ 
+   You may charge a fee for the physical act of transferring a copy,
+ and you may at your option offer warranty protection in exchange for a
+ fee.
+ 
+   2. You may modify your copy or copies of the Library or any portion
+ of it, thus forming a work based on the Library, and copy and
+ distribute such modifications or work under the terms of Section 1
+ above, provided that you also meet all of these conditions:
+ 
+     a) The modified work must itself be a software library.
+ 
+     b) You must cause the files modified to carry prominent notices
+     stating that you changed the files and the date of any change.
+ 
+     c) You must cause the whole of the work to be licensed at no
+     charge to all third parties under the terms of this License.
+ 
+     d) If a facility in the modified Library refers to a function or a
+     table of data to be supplied by an application program that uses
+     the facility, other than as an argument passed when the facility
+     is invoked, then you must make a good faith effort to ensure that,
+     in the event an application does not supply such function or
+     table, the facility still operates, and performs whatever part of
+     its purpose remains meaningful.
+ 
+     (For example, a function in a library to compute square roots has
+     a purpose that is entirely well-defined independent of the
+     application.  Therefore, Subsection 2d requires that any
+     application-supplied function or table used by this function must
+     be optional: if the application does not supply it, the square
+     root function must still compute square roots.)
+ 
+ These requirements apply to the modified work as a whole.  If
+ identifiable sections of that work are not derived from the Library,
+ and can be reasonably considered independent and separate works in
+ themselves, then this License, and its terms, do not apply to those
+ sections when you distribute them as separate works.  But when you
+ distribute the same sections as part of a whole which is a work based
+ on the Library, the distribution of the whole must be on the terms of
+ this License, whose permissions for other licensees extend to the
+ entire whole, and thus to each and every part regardless of who wrote
+ it.
+ 
+ Thus, it is not the intent of this section to claim rights or contest
+ your rights to work written entirely by you; rather, the intent is to
+ exercise the right to control the distribution of derivative or
+ collective works based on the Library.
+ 
+ In addition, mere aggregation of another work not based on the Library
+ with the Library (or with a work based on the Library) on a volume of
+ a storage or distribution medium does not bring the other work under
+ the scope of this License.
+ 
+   3. You may opt to apply the terms of the ordinary GNU General Public
+ License instead of this License to a given copy of the Library.  To do
+ this, you must alter all the notices that refer to this License, so
+ that they refer to the ordinary GNU General Public License, version 2,
+ instead of to this License.  (If a newer version than version 2 of the
+ ordinary GNU General Public License has appeared, then you can specify
+ that version instead if you wish.)  Do not make any other change in
+ these notices.
+ 
+   Once this change is made in a given copy, it is irreversible for
+ that copy, so the ordinary GNU General Public License applies to all
+ subsequent copies and derivative works made from that copy.
+ 
+   This option is useful when you wish to copy part of the code of
+ the Library into a program that is not a library.
+ 
+   4. You may copy and distribute the Library (or a portion or
+ derivative of it, under Section 2) in object code or executable form
+ under the terms of Sections 1 and 2 above provided that you accompany
+ it with the complete corresponding machine-readable source code, which
+ must be distributed under the terms of Sections 1 and 2 above on a
+ medium customarily used for software interchange.
+ 
+   If distribution of object code is made by offering access to copy
+ from a designated place, then offering equivalent access to copy the
+ source code from the same place satisfies the requirement to
+ distribute the source code, even though third parties are not
+ compelled to copy the source along with the object code.
+ 
+   5. A program that contains no derivative of any portion of the
+ Library, but is designed to work with the Library by being compiled or
+ linked with it, is called a "work that uses the Library".  Such a
+ work, in isolation, is not a derivative work of the Library, and
+ therefore falls outside the scope of this License.
+ 
+   However, linking a "work that uses the Library" with the Library
+ creates an executable that is a derivative of the Library (because it
+ contains portions of the Library), rather than a "work that uses the
+ library".  The executable is therefore covered by this License.
+ Section 6 states terms for distribution of such executables.
+ 
+   When a "work that uses the Library" uses material from a header file
+ that is part of the Library, the object code for the work may be a
+ derivative work of the Library even though the source code is not.
+ Whether this is true is especially significant if the work can be
+ linked without the Library, or if the work is itself a library.  The
+ threshold for this to be true is not precisely defined by law.
+ 
+   If such an object file uses only numerical parameters, data
+ structure layouts and accessors, and small macros and small inline
+ functions (ten lines or less in length), then the use of the object
+ file is unrestricted, regardless of whether it is legally a derivative
+ work.  (Executables containing this object code plus portions of the
+ Library will still fall under Section 6.)
+ 
+   Otherwise, if the work is a derivative of the Library, you may
+ distribute the object code for the work under the terms of Section 6.
+ Any executables containing that work also fall under Section 6,
+ whether or not they are linked directly with the Library itself.
+ 
+   6. As an exception to the Sections above, you may also compile or
+ link a "work that uses the Library" with the Library to produce a
+ work containing portions of the Library, and distribute that work
+ under terms of your choice, provided that the terms permit
+ modification of the work for the customer's own use and reverse
+ engineering for debugging such modifications.
+ 
+   You must give prominent notice with each copy of the work that the
+ Library is used in it and that the Library and its use are covered by
+ this License.  You must supply a copy of this License.  If the work
+ during execution displays copyright notices, you must include the
+ copyright notice for the Library among them, as well as a reference
+ directing the user to the copy of this License.  Also, you must do one
+ of these things:
+ 
+     a) Accompany the work with the complete corresponding
+     machine-readable source code for the Library including whatever
+     changes were used in the work (which must be distributed under
+     Sections 1 and 2 above); and, if the work is an executable linked
+     with the Library, with the complete machine-readable "work that
+     uses the Library", as object code and/or source code, so that the
+     user can modify the Library and then relink to produce a modified
+     executable containing the modified Library.  (It is understood
+     that the user who changes the contents of definitions files in the
+     Library will not necessarily be able to recompile the application
+     to use the modified definitions.)
+ 
+     b) Accompany the work with a written offer, valid for at
+     least three years, to give the same user the materials
+     specified in Subsection 6a, above, for a charge no more
+     than the cost of performing this distribution.
+ 
+     c) If distribution of the work is made by offering access to copy
+     from a designated place, offer equivalent access to copy the above
+     specified materials from the same place.
+ 
+     d) Verify that the user has already received a copy of these
+     materials or that you have already sent this user a copy.
+ 
+   For an executable, the required form of the "work that uses the
+ Library" must include any data and utility programs needed for
+ reproducing the executable from it.  However, as a special exception,
+ the source code distributed need not include anything that is normally
+ distributed (in either source or binary form) with the major
+ components (compiler, kernel, and so on) of the operating system on
+ which the executable runs, unless that component itself accompanies
+ the executable.
+ 
+   It may happen that this requirement contradicts the license
+ restrictions of other proprietary libraries that do not normally
+ accompany the operating system.  Such a contradiction means you cannot
+ use both them and the Library together in an executable that you
+ distribute.
+ 
+   7. You may place library facilities that are a work based on the
+ Library side-by-side in a single library together with other library
+ facilities not covered by this License, and distribute such a combined
+ library, provided that the separate distribution of the work based on
+ the Library and of the other library facilities is otherwise
+ permitted, and provided that you do these two things:
+ 
+     a) Accompany the combined library with a copy of the same work
+     based on the Library, uncombined with any other library
+     facilities.  This must be distributed under the terms of the
+     Sections above.
+ 
+     b) Give prominent notice with the combined library of the fact
+     that part of it is a work based on the Library, and explaining
+     where to find the accompanying uncombined form of the same work.
+ 
+   8. You may not copy, modify, sublicense, link with, or distribute
+ the Library except as expressly provided under this License.  Any
+ attempt otherwise to copy, modify, sublicense, link with, or
+ distribute the Library is void, and will automatically terminate your
+ rights under this License.  However, parties who have received copies,
+ or rights, from you under this License will not have their licenses
+ terminated so long as such parties remain in full compliance.
+ 
+   9. You are not required to accept this License, since you have not
+ signed it.  However, nothing else grants you permission to modify or
+ distribute the Library or its derivative works.  These actions are
+ prohibited by law if you do not accept this License.  Therefore, by
+ modifying or distributing the Library (or any work based on the
+ Library), you indicate your acceptance of this License to do so, and
+ all its terms and conditions for copying, distributing or modifying
+ the Library or works based on it.
+ 
+   10. Each time you redistribute the Library (or any work based on the
+ Library), the recipient automatically receives a license from the
+ original licensor to copy, distribute, link with or modify the Library
+ subject to these terms and conditions.  You may not impose any further
+ restrictions on the recipients' exercise of the rights granted herein.
+ You are not responsible for enforcing compliance by third parties to
+ this License.
+ 
+   11. If, as a consequence of a court judgment or allegation of patent
+ infringement or for any other reason (not limited to patent issues),
+ conditions are imposed on you (whether by court order, agreement or
+ otherwise) that contradict the conditions of this License, they do not
+ excuse you from the conditions of this License.  If you cannot
+ distribute so as to satisfy simultaneously your obligations under this
+ License and any other pertinent obligations, then as a consequence you
+ may not distribute the Library at all.  For example, if a patent
+ license would not permit royalty-free redistribution of the Library by
+ all those who receive copies directly or indirectly through you, then
+ the only way you could satisfy both it and this License would be to
+ refrain entirely from distribution of the Library.
+ 
+ If any portion of this section is held invalid or unenforceable under any
+ particular circumstance, the balance of the section is intended to apply,
+ and the section as a whole is intended to apply in other circumstances.
+ 
+ It is not the purpose of this section to induce you to infringe any
+ patents or other property right claims or to contest validity of any
+ such claims; this section has the sole purpose of protecting the
+ integrity of the free software distribution system which is
+ implemented by public license practices.  Many people have made
+ generous contributions to the wide range of software distributed
+ through that system in reliance on consistent application of that
+ system; it is up to the author/donor to decide if he or she is willing
+ to distribute software through any other system and a licensee cannot
+ impose that choice.
+ 
+ This section is intended to make thoroughly clear what is believed to
+ be a consequence of the rest of this License.
+ 
+   12. If the distribution and/or use of the Library is restricted in
+ certain countries either by patents or by copyrighted interfaces, the
+ original copyright holder who places the Library under this License may add
+ an explicit geographical distribution limitation excluding those countries,
+ so that distribution is permitted only in or among countries not thus
+ excluded.  In such case, this License incorporates the limitation as if
+ written in the body of this License.
+ 
+   13. The Free Software Foundation may publish revised and/or new
+ versions of the Library General Public License from time to time.
+ Such new versions will be similar in spirit to the present version,
+ but may differ in detail to address new problems or concerns.
+ 
+ Each version is given a distinguishing version number.  If the Library
+ specifies a version number of this License which applies to it and
+ "any later version", you have the option of following the terms and
+ conditions either of that version or of any later version published by
+ the Free Software Foundation.  If the Library does not specify a
+ license version number, you may choose any version ever published by
+ the Free Software Foundation.
+ 
+   14. If you wish to incorporate parts of the Library into other free
+ programs whose distribution conditions are incompatible with these,
+ write to the author to ask for permission.  For software which is
+ copyrighted by the Free Software Foundation, write to the Free
+ Software Foundation; we sometimes make exceptions for this.  Our
+ decision will be guided by the two goals of preserving the free status
+ of all derivatives of our free software and of promoting the sharing
+ and reuse of software generally.
+ 
+ 			    NO WARRANTY
+ 
+   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
+ WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
+ EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
+ OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
+ KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
+ LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
+ THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+ 
+   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
+ WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
+ AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
+ FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
+ CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
+ LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
+ RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
+ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
+ SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
+ DAMAGES.
+ 
+ 		     END OF TERMS AND CONDITIONS
+ 
+            How to Apply These Terms to Your New Libraries
+ 
+   If you develop a new library, and you want it to be of the greatest
+ possible use to the public, we recommend making it free software that
+ everyone can redistribute and change.  You can do so by permitting
+ redistribution under these terms (or, alternatively, under the terms of the
+ ordinary General Public License).
+ 
+   To apply these terms, attach the following notices to the library.  It is
+ safest to attach them to the start of each source file to most effectively
+ convey the exclusion of warranty; and each file should have at least the
+ "copyright" line and a pointer to where the full notice is found.
+ 
+     <one line to give the library's name and a brief idea of what it does.>
+     Copyright (C) <year>  <name of author>
+ 
+     This library is free software; you can redistribute it and/or
+     modify it under the terms of the GNU Library General Public
+     License as published by the Free Software Foundation; either
+     version 2 of the License, or (at your option) any later version.
+ 
+     This library is distributed in the hope that it will be useful,
+     but WITHOUT ANY WARRANTY; without even the implied warranty of
+     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+     Library General Public License for more details.
+ 
+     You should have received a copy of the GNU Library General Public
+     License along with this library; if not, write to the Free
+     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ 
+ Also add information on how to contact you by electronic and paper mail.
+ 
+ You should also get your employer (if you work as a programmer) or your
+ school, if any, to sign a "copyright disclaimer" for the library, if
+ necessary.  Here is a sample; alter the names:
+ 
+   Yoyodyne, Inc., hereby disclaims all copyright interest in the
+   library `Frob' (a library for tweaking knobs) written by James Random Hacker.
+ 
+   <signature of Ty Coon>, 1 April 1990
+   Ty Coon, President of Vice
+ 
+ That's all there is to it!


Index: llvm/lib/CodeGen/ELF/ChangeLog
diff -c /dev/null llvm/lib/CodeGen/ELF/ChangeLog:1.1
*** /dev/null	Wed Jun 22 01:36:09 2005
--- llvm/lib/CodeGen/ELF/ChangeLog	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,1023 ----
+ Fri Dec  5 16:25:16 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* aclocal.m4:
+ 		add explanation for --enable-maintainer-mode
+ 	* lib/Makefile.in:
+ 	* po/Makefile.in:
+ 		add instroot make variable
+ 	* README:
+ 		add hint how to use it
+ 
+ Thu Nov  6 17:35:00 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in:
+ 	* lib/Makefile.in:
+ 	* po/Makefile.in:
+ 		add check targets
+ 		add MANIFEST to distribution
+ 	* aclocal.m4:
+ 		add mr_PACKAGE macro
+ 	* configure.in:
+ 		use mr_PACKAGE macro
+ 
+ Sat Oct 25 15:22:59 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/elf_repl.h:
+ 		add EM_SPARC64
+ 
+ Thu Oct  9 23:08:56 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/x.movscn.c:
+ 	* lib/x.remscn.c:
+ 		verify that file is really an ELF file
+ 
+ Wed Oct  8 17:10:09 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* config.guess:
+ 	* config.sub:
+ 		latest versions from FSF
+ 
+ Sat May 24 18:55:14 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* config.guess:
+ 		latest version from FSF
+ 	* lib/Makefile.in:
+ 	* lib/libelf.h:
+ 	* lib/x.movscn.c:
+ 	* lib/x.remscn.c:
+ 		add elfx_movscn() and elfx_remscn()
+ 	* lib/newscn.c:
+ 		update e_shnum properly
+ 	* lib/private.h:
+ 		declare _elf_update_shnum()
+ 
+ Fri May 23 18:25:48 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* aclocal.m4:
+ 		provide name suffixes only
+ 	* lib/Makefile.in:
+ 		use name suffixes
+ 
+ Fri May 23 01:24:26 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* README:
+ 		update for 0.8.5
+ 		add section about LFS
+ 	* config.guess:
+ 		latest version from FSF
+ 	* configure.in:
+ 	* lib/Makefile.in:
+ 		use local pic object directory
+ 	* lib/checksum.c:
+ 		detect d_buf == NULL
+ 
+ Sun May 18 16:49:10 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION:
+ 		bump up to 0.8.5
+ 	* lib/strptr.c:
+ 		make elf_strptr() work safely with fragmented string tables
+ 	* lib/errors.h:
+ 		new error code and message for elf_strptr()
+ 	* po/de.po:
+ 	* po/libelf.po:
+ 		regenerated
+ 
+ Mon May 12 15:29:12 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/update.c:
+ 		improved fix for elf_update `null buffer' bug
+ 
+ Mon May 12 00:34:44 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* config.guess:
+ 	* config.sub:
+ 		latest versions from FSF
+ 
+ Sun May 11 01:44:06 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/verdef.h:
+ 	* lib/verneed.h:
+ 		fix elf_update `null buffer' error.
+ 		Thanks to Bart Trojanowski who reported the bug.
+ 
+ Wed May  7 20:26:17 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in:
+ 		fix maintainer mode default
+ 	* lib/verdef.h:
+ 	* lib/verneed.h:
+ 		only check d_buf if there is at least one element
+ 
+ Mon Mar 31 17:08:04 CEST 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION:
+ 		bump up to 0.8.4
+ 
+ Sun Mar 23 16:06:43 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in:
+ 		fix --enable-compat
+ 
+ Thu Feb 27 14:35:12 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in:
+ 		add `test-dist' target
+ 	* lib/errors.h:
+ 		new error code
+ 	* po/de.po:
+ 	* po/libelf.pot:
+ 		regenerated
+ 
+ Wed Feb 26 17:48:58 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* config.guess:
+ 	* config.sub:
+ 		latest versions from FSF
+ 
+ Wed Jan 15 22:50:53 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/begin.c:
+ 		fix overflow check
+ 
+ Sun Jan 12 04:27:31 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in:
+ 		prefer int for __libelf_i32_t (if int has 32 bits)
+ 
+ Thu Jan  2 17:40:22 CET 2003, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* README:
+ 		update for 0.8.3
+ 	* config.guess:
+ 	* config.sub:
+ 		update from ftp.gnu.org
+ 	* lib/cook.c:
+ 		require space for one SHDR only
+ 	* lib/elf_repl.h:
+ 		fix DT_ENCODING value
+ 
+ Tue Dec 31 16:27:19 CET 2002, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/cook.c:
+ 		honor ELF extensions for >= 0xff00 sections
+ 	* lib/elf_repl.h:
+ 		add definitions from lates ELF spec
+ 	* lib/errors.h:
+ 	* po/libelf.pot:
+ 	* po/de.po:
+ 		new error message
+ 	* lib/private.h:
+ 		define missing pieces
+ 	* lib/update.c:
+ 		handle >= 0xff00 sections
+ 
+ Mon Dec 23 00:23:20 CET 2002, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/Makefile.in:
+ 		fix dependencies.
+ 	* lib/cook.c:
+ 		add quirks mode for broken 64-bit architectures.
+ 	* lib/update.c:
+ 		do not override sh_entsize unless it's set to 0.
+ 	* lib/verdef.h:
+ 	* lib/verneed.h:
+ 		work around possible SEGV in translation routines.
+ 
+ Sat Dec 14 23:33:10 CET 2002, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* ChangeLog:
+ 		add missing entries for 0.8.2 release.
+ 	* VERSION:
+ 		bump up to 0.8.3.
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c:
+ 	* lib/verdef.h:
+ 	* lib/verneed.h:
+ 		fix ISO C violations (required for MacOS X).
+ 	* po/gmo2msg.c:
+ 		create SUSv3 compliant .msg files.
+ 
+ Thu Jun 11 19:00:19 CEST 2002, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* README:
+ 		update for 0.8.2.
+ 	* VERSION:
+ 		bump up to 0.8.2.
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c:
+ 		fix typos in for loop.
+ 	* lib/nlist.c:
+ 		add O_BINARY to file mode
+ 		(defaults to 0 on systems that lack it).
+ 
+ Tue Dec 25 14:42:51 CET 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION:
+ 		set version to 0.8.0.
+ 	* README:
+ 		update version.
+ 
+ Tue Oct 30 17:05:03 CET 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in:
+ 		use uid/gid=0 when creating the distribution tar file.
+ 
+ Mon Oct 15 23:47:10 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in:
+ 		check for <ar.h> and <fcntl.h>.
+ 		create ./pic when configuring.
+ 	* lib/Makefile.in:
+ 		move .o to ../pic/$@, not ../pic.
+ 	* lib/begin.c:
+ 		define struct ar_hdr and friends if <ar.h> is missing.
+ 		use lseek(..., SEEK_END).
+ 	* lib/input.c:
+ 		use lseek(..., SEEK_SET).
+ 	* lib/nlist.c:
+ 		include <fcntl.h> conditionally.
+ 		define O_RDONLY if it is missing.
+ 	* lib/private.h:
+ 		define SEEK_{SET,CUR,END} if they're missing.
+ 	* lib/update.c:
+ 		explicitly pass file descriptor to _elf_output().
+ 		use lseek(..., SEEK_SET).
+ 
+ Tue Oct  9 22:46:01 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* aclocal.m4:
+ 		remove superfluous case.
+ 
+ Mon Oct  8 17:56:04 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/opt.delscn.c:
+ 		handle versioning sections properly.
+ 
+ Mon Oct  8 17:02:43 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c:
+ 		override encoding when calculating the destination buffer
+ 		size for translation to a file.
+ 
+ Sun Oct  7 21:31:01 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in:
+ 		drop OBJS64; always compile 64-bit sources.
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c:
+ 		add translators for versioning structures.
+ 	* lib/Makefile.in:
+ 		drop OBJS64; add versioning support files.
+ 	* lib/errors.h:
+ 		add error codes for versioning support.
+ 	* lib/gelfehdr.c:
+ 	* lib/gelfphdr.c:
+ 	* lib/gelfshdr.c:
+ 	* lib/gelftrans.c:
+ 	* lib/swap64.c:
+ 		guard code with `#if __LIBELF64'.
+ 	* lib/private.h:
+ 		add translator declarations.
+ 	* po/de.po:
+ 	* po/libelf.pot:
+ 		add error messages for versioning support.
+ 
+ Sun Oct  7 16:54:15 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* acconfig.h:
+ 	* configure.in:
+ 		improve auto-configuration.
+ 	* lib/Makefile.in:
+ 	* po/Makefile.in
+ 		let users override distdir.
+ 	* lib/cook.c:
+ 		improved bugfix based on new auto-configuration.
+ 	* lib/getdata.c:
+ 		prepare src first to prevent SEGV.
+ 	* lib/private.h:
+ 	* lib/update.c:
+ 		cosmetic changes.
+ 
+ Sun Oct  7 05:50:19 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in:
+ 	* lib/cook.c:
+ 		fix compilation problem on Linux (SHT_SUNW_ver* undefined).
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c:
+ 		make translator functions calculate the destination size.
+ 		add _elf32_xltsize and _elf64_xltsize entry points.
+ 	* lib/private.h:
+ 		declare _elf32_xltsize and _elf64_xltsize.
+ 	* lib/getdata.c:
+ 	* lib/update.c:
+ 		use _elf32_xltsize and _elf64_xltsize.
+ 
+ Fri Oct  5 20:35:31 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/elf_repl.h:
+ 		add DT_VERSYM.
+ 	* lib/ext_types.h:
+ 		correct type names.
+ 	* lib/libelf.h:
+ 		add ELF_T_VDEF and ELF_T_VNEED.
+ 	* lib/32.fsize.c:
+ 		add table entries for versioning structures.
+ 	* lib/cook.c:
+ 		replace _elf_scn_types[] with _elf_scn_type().
+ 	* lib/private.h:
+ 		likewise; also remove valid_scntype() macro.
+ 	* lib/update.c:
+ 		call _elf_scn_type(), but do not set sh_entsize
+ 		for ELF_T_VDEF / ELF_T_VNEED.
+ 	* acconfig.h:
+ 	* lib/sys_elf.h.in:
+ 		added __LIBELF_SYMBOL_VERSIONS.
+ 	* configure.in:
+ 		check for symbol versioning definitions.
+ 	* lib/Makefile.in:
+ 		added gelf.h dependency.
+ 
+ Wed Oct  3 22:46:33 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/swap64.c:
+ 		new file; separate 64-bit functions.
+ 	* lib/64.xlatetof.c:
+ 		remove 64-bit conversion functions.
+ 	* lib/byteswap.h:
+ 		replace casts to long / unsigned long.
+ 		add prototypes for 64-bit conversion functions.
+ 	* configure.in:
+ 	* lib/Makefile.in:
+ 		add lib/swap64.c.
+ 	* lib/ext_types.h:
+ 		add type definitions for versioning.
+ 	* lib/elf_repl.h:
+ 	* lib/gelf.h:
+ 		cosmetic changes.
+ 
+ Wed Oct  3 00:00:27 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/elf_repl.h:
+ 		added lots of new definitions.
+ 	* lib/gelf.h:
+ 	* lib/libelf.h:
+ 	* lib/sys_elf.h.in:
+ 		cosmetic changes.
+ 
+ Fri Sep 28 22:42:36 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c:
+ 		remove `const' when compiling with -fPIC.
+ 
+ Fri Sep 28 20:14:42 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* README:
+ 		add pointers to documentation.
+ 	* lib/64.xlatetof.c:
+ 		fixed conversion thinko.
+ 		(Jakub Jelinek <jakub at redhat.com> found this - thanks!)
+ 	* lib/gelf.h:
+ 	* lib/32.fsize.c:
+ 		add gelf_msize.
+ 	* lib/libelf.h:
+ 		add comment that elf{32,64}_checksum is missing.
+ 
+ Tue Sep 11 02:43:47 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* README:
+ 		corrected typo.
+ 	* lib/cook.c:
+ 	* lib/private.h:
+ 	* lib/update.c:
+ 		replaces _ELFxx_ALIGN_xHDR with _fsize() call.
+ 
+ Sun Sep  2 20:58:09 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in:
+ 	* configure.in:
+ 	* lib/Makefile.in:
+ 	* po/Makefile.in:
+ 		add maintainer mode.
+ 
+ Sat Sep  1 15:11:42 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/sys_elf.h.in: add more fixes for broken <elf.h> files.
+ 
+ Sat Sep  1 05:01:16 CEST 2001, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* ChangeLog: major update. Yes, I'm back.
+ 
+ 	* COPYING.LIB: updated version from FSF.
+ 
+ 	* README: updated for 0.7.1.
+ 
+ Thu Apr 20 17:09:41 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/gelftrans.c:
+ 	* lib/elf_repl.h:
+ 		add explicit casts to ELF64_R_SYM and ELF64_R_INFO.
+ 
+ Thu Apr 13 20:15:45 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/update.c: better checks for overlapping sections.
+ 
+ 	* lib/errors.h:
+ 	* po/de.po:
+ 	* po/libelf.pot:
+ 		new error message.
+ 
+ Thu Apr  6 19:15:46 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/strptr.c: rename `sd' variable.
+ 
+ Fri Mar 31 20:11:14 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in: also pass CPPFLAGS and LDFLAGS to config.status.
+ 
+ Fri Mar 31 20:02:55 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* aclocal.m4: add -DPIC define when building position-independent code.
+ 
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c:
+ 	* lib/errmsg.c:
+ 		make array members const when PIC is undefined.
+ 
+ Fri Mar 31 14:42:32 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/32.newehdr.c: make _elf_newehdr() function private again.
+ 
+ 	* lib/32.newphdr.c: make _elf_newphdr() function private again.
+ 
+ 	* lib/strptr.c: add support for 64-bit ELF format.
+ 
+ Wed Mar 29 18:49:43 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/gelfshdr.c: remove ELF class check.
+ 
+ Mon Mar 27 01:24:50 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/gelf.h: #include <libelf.h> when compiling libelf.
+ 
+ Sun Mar 26 15:02:54 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/private.h: #include <gelf.h> header file.
+ 
+ 	* lib/gelfehdr.c: move gelf_newehdr() function to lib/32.newehdr.c.
+ 
+ 	* lib/gelfphdr.c: move gelf_newphdr() function to lib/32.newphdr.c.
+ 
+ 	* lib/32.newehdr.c: add gelf_newehdr() function.
+ 
+ 	* lib/32.newphdr.c: add gelf_newphdr() function.
+ 
+ 	* lib/gelfshdr.c:
+ 	* lib/gelftrans.c:
+ 		remove explicit <gelf.h> include.
+ 
+ Sun Mar 26 06:22:20 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* acconfig.h:
+ 	* configure.in:
+ 	* lib/private.h:
+ 	* lib/sys_elf.h.in:
+ 		rename NEED_LINK_H to __LIBELF_NEED_LINK_H.
+ 
+ 	* lib/32.newehdr.c: make _elf_newehdr() function public.
+ 
+ 	* lib/32.newphdr.c: make _elf_newphdr() function public.
+ 
+ 	* lib/gelf.h:
+ 		include <link.h> if needed.
+ 		choke if 64-bit is not supported.
+ 		add generic versions of ELF32_* and ELF64_* macros.
+ 
+ 	* lib/gelftrans.c:
+ 		define ELF32_R_* and ELF64_R_* macros (missing on some systems).
+ 
+ Sun Mar 26 05:27:15 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in:
+ 		add check for existing <gelf.h> header.
+ 		build new source files when 64-bit is enabled.
+ 
+ 	* lib/Makefile.in:
+ 		add new source files.
+ 		make install-compat if --enable-compat was given.
+ 
+ 	* po/de.po:
+ 	* po/libelf.pot:
+ 		new error messages.
+ 
+ Sun Mar 26 05:00:20 CEST 2000, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in:
+ 	* lib/Makefile.in:
+ 	* po/Makefile.in:
+ 		remove Makefile last in `make distclean'.
+ 
+ 	* aclocal.m4: explicitly state the default in --enable-* help texts.
+ 
+ 	* configure.in:
+ 		set ALL_LINGUAS automatically.
+ 		add `--enable-compat' option.
+ 
+ 	* lib/private.h: add sd_scn member to struct Scn_Data.
+ 
+ 	* lib/cook.c:
+ 	* lib/end.c:
+ 	* lib/getdata.c:
+ 	* lib/newdata.c:
+ 	* lib/opt.delscn.c:
+ 	* lib/rawdata.c:
+ 	* lib/update.c:
+ 		handle new sd_scn member.
+ 
+ 	* lib/gelf.h: new public header file.
+ 
+ 	* lib/gelfehdr.c: new file, implements the gelf_getehdr(),
+ 		gelf_update_ehdr() and gelf_newehdr() functions.
+ 
+ 	* lib/gelfphdr.c: new file, implements the gelf_getphdr(),
+ 		gelf_update_phdr() and gelf_newphdr() functions.
+ 
+ 	* lib/gelfshdr.c: new file, implements the gelf_getshdr()
+ 		and gelf_update_shdr() functions.
+ 
+ 	* lib/gelftrans.c: new file, implements the gelf_getsym(),
+ 		gelf_update_sym(), gelf_getdyn(), gelf_update_dyn(),
+ 		gelf_getrela(), gelf_update_rela(), gelf_getrel() and
+ 		gelf_update_rel() functions.
+ 
+ 	* lib/begin.c: add gelf_getclass() function.
+ 
+ 	* lib/32.fsize.c: add gelf_fsize() function.
+ 
+ 	* lib/32.getphdr.c: make _elf_getphdr() function public.
+ 
+ 	* lib/64.xlatetof.c:
+ 		add gelf_xlatetom() and gelf_xlatetof() functions.
+ 		remove `const' from array members.
+ 
+ 	* lib/errors.h: add GElf error messages.
+ 
+ 	* po/de.po:
+ 	* po/libelf.pot:
+ 		new error message.
+ 
+ Thu Nov  4 21:17:34 CET 1999, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/32.xlatetof.c:
+ 	* lib/errmsg.c:
+ 	* po/gmo2msg.c:
+ 		remove `const' from array members.
+ 
+ Thu Nov  4 20:16:36 CET 1999, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/Makefile.in: add assert.c; remove stamp-h in `make distclean'.
+ 
+ 	* lib/assert.c: new file, implements the __elf_assert() function.
+ 
+ 	* lib/private.h: use __elf_assert() in elf_assert() macro.
+ 
+ Wed Mar 17 16:21:02 CET 1999, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in: add "de" to ALL_LINGUAS.
+ 
+ 	* lib/elf_repl.h: lots of new #defines.
+ 
+ 	* lib/hash.c:
+ 	* lib/libelf.h:
+ 		elf_hash() takes an `const unsigned char *'.
+ 
+ 	* po/gmo2msg.c: copy comments from .gmo file.
+ 
+ Fri Mar  5 16:28:08 CET 1999, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: set version to 0.7.1.
+ 
+ 	* po/de.po: new file.
+ 
+ Fri Nov 27 22:24:00 MET 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/memset.c: rename and rewrite.
+ 	* lib/private.h: rename __memset.
+ 
+ Tue Aug 25 17:17:18 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* aclocal.m4: remove superfluous #include.
+ 
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c: fix for picky instances of cpp(1).
+ 
+ Sun Aug 23 18:26:53 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* aclocal.m4:
+ 	* lib/Makefile.in: add DEPSHLIBS, set to -lc for Linux.
+ 
+ 	* README: add DEPSHLIBS description.
+ 
+ Sat Aug 22 15:50:41 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/begin.c: add workaround for broken ar(1) & friends.
+ 
+ 	* lib/32.getshdr.c: fix typo.
+ 
+ Thu Aug  6 18:11:52 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/getdata.c: fixed SEGV bug.
+ 
+ 	* lib/cook.c:
+ 	* lib/getdata.c:
+ 	* lib/newdata.c:
+ 	* lib/rawdata.c:
+ 	* lib/private.h: removed sd_scn and (Elf_Data*) casts.
+ 
+ Fri Jun 12 21:24:50 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* lib/*.c: move rcsid[] after <private.h>.
+ 
+ 	* lib/32.xlatetof.c:
+ 	* lib/64.xlatetof.c: replace broken Exn() macro with Cat2().
+ 
+ 	* lib/64.xlatetof.c: change `char*' to `unsigned char*'.
+ 
+ 	* lib/private.h: add `extern char *realloc();'.
+ 
+ 	* aclocal.m4:
+ 	* configure.in: remove leading spaces in cpp directives.
+ 
+ Sun Jun  7 16:02:31 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* README: update for 0.7.0 release.
+ 
+ Sun Jun  4 15:26:49 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* acconfig.h: add __libelf64* and __libelf_*_t.
+ 
+ 	* configure.in: clean up, add checks for 64-bit support.
+ 
+ 	* lib/64.xlatetof.c: new file, based on lib/32.xlatetof.c.
+ 
+ 	* lib/Makefile.in: add target for 64.xlatetof.o.
+ 
+ 	* lib/cook.c: check for 32-bit overflow.
+ 
+ 	* lib/elf_repl.h:
+ 	* lib/ext_types.h: add 64-bit data types.
+ 
+ 	* lib/private.h: add 64-bit definitions.
+ 
+ 	* lib/sys_elf.h.in: add __LIBELF64* and __libelf_*_t.
+ 
+ 	* lib/update.c: add full 64-bit support.
+ 
+ Mon Jun  1 16:29:07 MEST 1998, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.7.0.
+ 
+ 	* configure.in:
+ 		add lib/sys_elf.h to AC_CONFIG_HEADER.
+ 		new option --disable-elf64.
+ 
+ 	* Makefile.in: add target for lib/sys_elf.h.
+ 
+ 	* acconfig.h: add __LIBELF_HEADER_ELF_H.
+ 
+ 	* lib/Makefile.in: add sys_elf.h(.in).
+ 
+ 	* lib/32.fsize.c:
+ 	* lib/32.getehdr.c:
+ 	* lib/32.getphdr.c:
+ 	* lib/32.getshdr.c:
+ 	* lib/32.newehdr.c:
+ 	* lib/32.newphdr.c:
+ 	* lib/cook.c:
+ 	* lib/getdata.c:
+ 	* lib/libelf.h:
+ 	* lib/newscn.c:
+ 	* lib/nlist.c:
+ 	* lib/opt.delscn.c:
+ 	* lib/private.h:
+ 	* lib/update.c:
+ 		merged with 64bit code.
+ 
+ 	* lib/begin.c:
+ 	* lib/input.c:
+ 		bug fixes.
+ 
+ Fri Aug  1 19:33:33 MEST 1997, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.6.5.
+ 	
+ 	* lib/libelf.h: add declaration for elf_memory.
+ 
+ 	* lib/private.h: add e_memory flag.
+ 	
+ 	* lib/begin.c: add elf_memory, change archive freezing logic.
+ 
+ 	* lib/end.c: do not free e_data if e_memory is set.
+ 
+ Tue Oct 22 21:31:56 MEST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* (all files): add RCS Id, import to CVS.
+ 
+ 	* Makefile.in: pass $(CC) to config.status.
+ 
+ 	* README: change for upcoming 0.6.5 release.
+ 
+ 	* aclocal.m4 (mr_ENABLE_NLS): add --enable-gnu-names option
+ 
+ 	* configure.in: change search order for <elf.h>.
+ 
+ 	* lib/begin.c (_elf_arhdr): add check for truncated archive member.
+ 
+ 	* lib/cook.c (_elf32_cook): add checks for misaligned tables.
+ 
+ 	* lib/errors.h:
+ 		fix wrong error message (ERROR_WRONLY).
+ 		add error messages for misaligned tables.
+ 
+ 	* lib/private.h: add constants for table alignments.
+ 
+ 	* po/Makefile.in: do not run mkinstalldirs directly, use $(SHELL).
+ 
+ 	* po/libelf.pot: rebuild.
+ 
+ Tue Jul 30 17:22:41 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.6.4.
+ 
+ 	* Makefile.in:
+ 		add DISTSUBDIRS.
+ 		add po/Makefile target.
+ 
+ 	* po/Makefile.in:
+ 	* po/gmo2msg.c:
+ 	* po/libelf.pot:
+ 	* po/stamp-po:
+ 		new files.
+ 
+ 	* aclocal.m4 (mr_ENABLE_NLS):
+ 		add MSGFILES.
+ 		set GMOFILES, MSGFILES and POFILES even if NLS is disabled.
+ 
+ 	* configure.in:
+ 		add ALL_LINGUAS.
+ 
+ 	* lib/nlist.c:
+ 		call elf_errno() to clear pending error.
+ 
+ Tue Jul 28 23:53:44 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.6.3.
+ 
+ 	* configure.in: fix creation of sys_elf.h.
+ 
+ 	* lib/Makefile.in:
+ 		move elf_repl.h to PRIVHDRS.
+ 		do not depend on HDRS and AUXHDRS.
+ 
+ Sat Jul 27 18:27:09 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.6.2.
+ 
+ 	* Makefile.in:
+ 		remove support from SUBDIRS.
+ 		remove subdirs/Makefile target.
+ 
+ 	* acconfig.h:
+ 		add ENABLE_DEBUG.
+ 		remove HAVE_NLS.
+ 
+ 	* aclocal.m4:
+ 		add mr_ENABLE_DEBUG.
+ 
+ 	* configure.in:
+ 		use mr_ENABLE_DEBUG.
+ 
+ 	* lib/Makefile.in:
+ 		add LD variable.
+ 		add elf_repl.h to DISTFILES.
+ 
+ 	* lib/libelf.h:
+ 		add check for __LIBELF_INTERNAL__.
+ 
+ 	* lib/private.h:
+ 		#define __LIBELF_INTERNAL__.
+ 		use ENABLE_DEBUG.
+ 
+ 	* support/elf.h:
+ 		move to lib/elf_repl.h.
+ 
+ 	* support/Makefile.in:
+ 		remove.
+ 
+ Sat Jul 27 06:25:23 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.6.1.
+ 
+ 	* aclocal.m4: add shared library support for sparc-sun-solaris2.
+ 
+ 	* lib/libelf.h.in: remove.
+ 
+ 	* lib/libelf.h: new file.
+ 
+ 	* configure.in:
+ 		remove broken check for existing installation.
+ 		remove @install_headers@ and @elf_h at .
+ 		do not build libelf.h from libelf.h.in.
+ 		create lib/sys_elf.h.
+ 
+ 	* lib/Makefile.in:
+ 		remove libelf.h and $(AUXHDRS) targets.
+ 		remove libelf.h.in from DISTFILES.
+ 		add libelf.h to DISTFILES.
+ 		add dummy_shlib target for broken make.
+ 
+ Sat Jul 27 01:01:45 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.6.0.
+ 
+ 	* lib: new directory.
+ 
+ 	* config.sub:
+ 	* config.guess:
+ 		new files.
+ 
+ 	* shared:
+ 	* shared/Makefile.in:
+ 		remove.
+ 
+ 	* aclocal.m4:
+ 	* configure.in:
+ 		add shared library check.
+ 
+ 	* Makefile.in:
+ 	* lib/Makefile.in:
+ 		change for new directory structure.
+ 		integrate shared library support.
+ 
+ 	* Makefile.in:
+ 		remove libelf.lsm from DISTFILES.
+ 
+ 	* libelf.lsm: remove.
+ 
+ Thu Jul 25 19:35:05 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.5.9.
+ 
+ 	* aclocal.m4: rewrite NLS check.
+ 
+ Tue Jul 23 18:59:05 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in: add install-compat and uninstall-compat targets.
+ 
+ 	* configure.in:
+ 	* aclocal.m4:
+ 		fix check for NLS support.
+ 
+ 	* acconfig.h: add HAVE_CATGETS and HAVE_GETTEXT.
+ 
+ 	* errmsg.c (elf_errmsg): use HAVE_GETTEXT.
+ 
+ Sun Jul 21 22:52:02 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.5.8.
+ 
+ 	* private.h:
+ 	* 32.getshdr.c:
+ 	* cook.c:
+ 	* end.c:
+ 	* newscn.c:
+ 	* opt.delscn.c:
+ 	* update.c:
+ 		change allocation of section headers.
+ 
+ 	* errors.h: fix speeling error.
+ 
+ Sat Jul 13 22:51:16 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.5.7.
+ 
+ 	* private.h: add e_dsize member to struct Elf.
+ 
+ 	* begin.c (elf_begin): set e_dsize.
+ 
+ 	* update.c (_elf32_update_pointers):
+ 		never let e_data become shorter than e_dsize bytes.
+ 		use correct base pointer.
+ 
+ Sat Jun 15 16:28:50 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* 32.xlatetof.c: change `char' to `unsigned char'.
+ 
+ Tue May 28 19:00:30 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* Makefile.in:
+ 		HP-UX make wants non-empty target, change it.
+ 		add targets for TAGS and libelf.po.
+ 
+ 	* errors.h: mark strings for GNU gettext.
+ 
+ 	* mkmsgs: recognize new errors.h format.
+ 
+ 	* errmsg.c (elf_errmsg): add gettext support.
+ 
+ Mon May 27 20:30:30 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* VERSION: change version to 0.5.6.
+ 
+ 	* aclocal.m4:
+ 	* configure.in: use new AC_CACHE_CHECK macro.
+ 
+ 	* Makefile.in:
+ 	* shared/Makefile.in: use @...dir at .
+ 
+ 	* Makefile.in: pass $(SRCS) and $(OBJS) to shared/Makefile.
+ 
+ Sat May 25 01:00:15 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* update.c (elf_update): assert e_data is malloc'ed.
+ 
+ 	* begin.c (elf_begin): mmap e_data if possible.
+ 
+ 	* end.c (elf_end): munmap e_data if necessary.
+ 
+ 	* input.c (_elf_mmap): new function.
+ 
+ 	* private.h: add _elf_mmap and e_unmap_data.
+ 
+ 	* errmsg.c: make pointer array constant.
+ 
+ Thu May 23 19:24:47 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* update.c (elf_update): mmap(MAP_SHARED) wants non-empty file.
+ 
+ Tue May 21 15:33:07 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* begin.c (elf_begin): re-read memory image of archive members.
+ 
+ 	* cook.c (_elf32_item):
+ 	* getdata.c (_elf32_cook_scn): always use memory image.
+ 
+ 	* update.c (_elf_update): use mmap if possible.
+ 
+ 	* configure.in: check for mmap.
+ 
+ Mon May 20 18:15:54 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* nlist.c (_elf_nlist): fix broken st_name range check.
+ 
+ 	* update.c (_elf32_write): check status of elf_getdata.
+ 
+ 	* cook.c (_elf32_item):
+ 	* getdata.c (_elf32_cook_scn):
+ 		use memory image when file is not an archive member.
+ 
+ 	* rawdata.c (elf_rawdata): copy raw image rather than referencing it.
+ 
+ Wed May 15 20:04:39 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* rawdata.c (elf_rawdata): use raw image if it is present.
+ 
+ 	* cntl.c (elf_cntl): fix archive handling, ignore ELF_C_FDREAD for non-ELF files.
+ 
+ Fri May 10 17:16:44 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* begin.c (_elf_arhdr): fix handling of long archive member names.
+ 
+ 	* configure.in: move version information to external file.
+ 
+ 	* Makefile.in: add VERSION to DISTFILES.
+ 
+ 	* VERSION: new file.
+ 
+ Sat May  4 20:56:43 MET DST 1996, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in: change version to 0.5.5.
+ 
+ 	* Makefile.in: add libelf.lsm and ChangeLog to DISTFILES.
+ 
+ 	* rawdata.c: reorder cases to avoid unnecessary malloc/free.
+ 
+ 	* all files: update copyright phrase.
+ 
+ 	* ChangeLog:
+ 	* libelf.lsm: new files.
+ 
+ Sun Oct 29 19:34:00 MET 1995, Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ 	* configure.in: change version to 0.5.3.
+ 
+ 	* Makefile.in:
+ 	* shared/Makefile.in: add opt.delscn.c.
+ 
+ 	* libelf.h.in: add declaration for elf_delscn.
+ 
+ 	* opt.delscn.c: new file.
+ 


Index: llvm/lib/CodeGen/ELF/INSTALL
diff -c /dev/null llvm/lib/CodeGen/ELF/INSTALL:1.1
*** /dev/null	Wed Jun 22 01:36:09 2005
--- llvm/lib/CodeGen/ELF/INSTALL	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,176 ----
+ Basic Installation
+ ==================
+ 
+    These are generic installation instructions.
+ 
+    The `configure' shell script attempts to guess correct values for
+ various system-dependent variables used during compilation.  It uses
+ those values to create a `Makefile' in each directory of the package.
+ It may also create one or more `.h' files containing system-dependent
+ definitions.  Finally, it creates a shell script `config.status' that
+ you can run in the future to recreate the current configuration, a file
+ `config.cache' that saves the results of its tests to speed up
+ reconfiguring, and a file `config.log' containing compiler output
+ (useful mainly for debugging `configure').
+ 
+    If you need to do unusual things to compile the package, please try
+ to figure out how `configure' could check whether to do them, and mail
+ diffs or instructions to the address given in the `README' so they can
+ be considered for the next release.  If at some point `config.cache'
+ contains results you don't want to keep, you may remove or edit it.
+ 
+    The file `configure.in' is used to create `configure' by a program
+ called `autoconf'.  You only need `configure.in' if you want to change
+ it or regenerate `configure' using a newer version of `autoconf'.
+ 
+ The simplest way to compile this package is:
+ 
+   1. `cd' to the directory containing the package's source code and type
+      `./configure' to configure the package for your system.  If you're
+      using `csh' on an old version of System V, you might need to type
+      `sh ./configure' instead to prevent `csh' from trying to execute
+      `configure' itself.
+ 
+      Running `configure' takes awhile.  While running, it prints some
+      messages telling which features it is checking for.
+ 
+   2. Type `make' to compile the package.
+ 
+   3. Optionally, type `make check' to run any self-tests that come with
+      the package.
+ 
+   4. Type `make install' to install the programs and any data files and
+      documentation.
+ 
+   5. You can remove the program binaries and object files from the
+      source code directory by typing `make clean'.  To also remove the
+      files that `configure' created (so you can compile the package for
+      a different kind of computer), type `make distclean'.  There is
+      also a `make maintainer-clean' target, but that is intended mainly
+      for the package's developers.  If you use it, you may have to get
+      all sorts of other programs in order to regenerate files that came
+      with the distribution.
+ 
+ Compilers and Options
+ =====================
+ 
+    Some systems require unusual options for compilation or linking that
+ the `configure' script does not know about.  You can give `configure'
+ initial values for variables by setting them in the environment.  Using
+ a Bourne-compatible shell, you can do that on the command line like
+ this:
+      CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
+ 
+ Or on systems that have the `env' program, you can do it like this:
+      env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
+ 
+ Compiling For Multiple Architectures
+ ====================================
+ 
+    You can compile the package for more than one kind of computer at the
+ same time, by placing the object files for each architecture in their
+ own directory.  To do this, you must use a version of `make' that
+ supports the `VPATH' variable, such as GNU `make'.  `cd' to the
+ directory where you want the object files and executables to go and run
+ the `configure' script.  `configure' automatically checks for the
+ source code in the directory that `configure' is in and in `..'.
+ 
+    If you have to use a `make' that does not supports the `VPATH'
+ variable, you have to compile the package for one architecture at a time
+ in the source code directory.  After you have installed the package for
+ one architecture, use `make distclean' before reconfiguring for another
+ architecture.
+ 
+ Installation Names
+ ==================
+ 
+    By default, `make install' will install the package's files in
+ `/usr/local/bin', `/usr/local/man', etc.  You can specify an
+ installation prefix other than `/usr/local' by giving `configure' the
+ option `--prefix=PATH'.
+ 
+    You can specify separate installation prefixes for
+ architecture-specific files and architecture-independent files.  If you
+ give `configure' the option `--exec-prefix=PATH', the package will use
+ PATH as the prefix for installing programs and libraries.
+ Documentation and other data files will still use the regular prefix.
+ 
+    If the package supports it, you can cause programs to be installed
+ with an extra prefix or suffix on their names by giving `configure' the
+ option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
+ 
+ Optional Features
+ =================
+ 
+    Some packages pay attention to `--enable-FEATURE' options to
+ `configure', where FEATURE indicates an optional part of the package.
+ They may also pay attention to `--with-PACKAGE' options, where PACKAGE
+ is something like `gnu-as' or `x' (for the X Window System).  The
+ `README' should mention any `--enable-' and `--with-' options that the
+ package recognizes.
+ 
+    For packages that use the X Window System, `configure' can usually
+ find the X include and library files automatically, but if it doesn't,
+ you can use the `configure' options `--x-includes=DIR' and
+ `--x-libraries=DIR' to specify their locations.
+ 
+ Specifying the System Type
+ ==========================
+ 
+    There may be some features `configure' can not figure out
+ automatically, but needs to determine by the type of host the package
+ will run on.  Usually `configure' can figure that out, but if it prints
+ a message saying it can not guess the host type, give it the
+ `--host=TYPE' option.  TYPE can either be a short name for the system
+ type, such as `sun4', or a canonical name with three fields:
+      CPU-COMPANY-SYSTEM
+ 
+ See the file `config.sub' for the possible values of each field.  If
+ `config.sub' isn't included in this package, then this package doesn't
+ need to know the host type.
+ 
+    If you are building compiler tools for cross-compiling, you can also
+ use the `--target=TYPE' option to select the type of system they will
+ produce code for and the `--build=TYPE' option to select the type of
+ system on which you are compiling the package.
+ 
+ Sharing Defaults
+ ================
+ 
+    If you want to set default values for `configure' scripts to share,
+ you can create a site shell script called `config.site' that gives
+ default values for variables like `CC', `cache_file', and `prefix'.
+ `configure' looks for `PREFIX/share/config.site' if it exists, then
+ `PREFIX/etc/config.site' if it exists.  Or, you can set the
+ `CONFIG_SITE' environment variable to the location of the site script.
+ A warning: not all `configure' scripts look for a site script.
+ 
+ Operation Controls
+ ==================
+ 
+    `configure' recognizes the following options to control how it
+ operates.
+ 
+ `--cache-file=FILE'
+      Use and save the results of the tests in FILE instead of
+      `./config.cache'.  Set FILE to `/dev/null' to disable caching, for
+      debugging `configure'.
+ 
+ `--help'
+      Print a summary of the options to `configure', and exit.
+ 
+ `--quiet'
+ `--silent'
+ `-q'
+      Do not print messages saying which checks are being made.
+ 
+ `--srcdir=DIR'
+      Look for the package's source code in directory DIR.  Usually
+      `configure' can determine that directory automatically.
+ 
+ `--version'
+      Print the version of Autoconf used to generate the `configure'
+      script, and exit.
+ 
+ `configure' also accepts some other, not widely useful, options.
+ 


Index: llvm/lib/CodeGen/ELF/MANIFEST
diff -c /dev/null llvm/lib/CodeGen/ELF/MANIFEST:1.1
*** /dev/null	Wed Jun 22 01:36:09 2005
--- llvm/lib/CodeGen/ELF/MANIFEST	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,88 ----
+   25275 ./COPYING.LIB
+   25791 ./ChangeLog
+    7462 ./INSTALL
+    5420 ./Makefile.in
+   10211 ./README
+       6 ./VERSION
+    2657 ./acconfig.h
+    7714 ./aclocal.m4
+   42037 ./config.guess
+    3580 ./config.h.in
+   30339 ./config.sub
+  101907 ./configure
+    9508 ./configure.in
+    2186 ./install-sh
+    4825 ./lib/32.fsize.c
+    1584 ./lib/32.getehdr.c
+    1584 ./lib/32.getphdr.c
+    1692 ./lib/32.getshdr.c
+    2216 ./lib/32.newehdr.c
+    2779 ./lib/32.newphdr.c
+   12010 ./lib/32.xlatetof.c
+   13909 ./lib/64.xlatetof.c
+    8155 ./lib/Makefile.in
+    1147 ./lib/assert.c
+   10319 ./lib/begin.c
+    3594 ./lib/byteswap.h
+    3965 ./lib/checksum.c
+    1929 ./lib/cntl.c
+   11520 ./lib/cook.c
+    1030 ./lib/data.c
+   22558 ./lib/elf_repl.h
+    2939 ./lib/end.c
+    2104 ./lib/errmsg.c
+    1065 ./lib/errno.c
+    6051 ./lib/errors.h
+    8135 ./lib/ext_types.h
+    1025 ./lib/fill.c
+    2428 ./lib/flag.c
+    5003 ./lib/gelf.h
+    4139 ./lib/gelfehdr.c
+    3953 ./lib/gelfphdr.c
+    3745 ./lib/gelfshdr.c
+    9483 ./lib/gelftrans.c
+    1203 ./lib/getarhdr.c
+    2381 ./lib/getarsym.c
+    1124 ./lib/getbase.c
+    3868 ./lib/getdata.c
+    1381 ./lib/getident.c
+    1477 ./lib/getscn.c
+    1239 ./lib/hash.c
+    2109 ./lib/input.c
+    1116 ./lib/kind.c
+    7490 ./lib/libelf.h
+    1446 ./lib/memset.c
+    1126 ./lib/ndxscn.c
+    1585 ./lib/newdata.c
+    3057 ./lib/newscn.c
+    1384 ./lib/next.c
+    1635 ./lib/nextscn.c
+    5772 ./lib/nlist.c
+    1405 ./lib/nlist.h
+    5098 ./lib/opt.delscn.c
+   12333 ./lib/private.h
+    1314 ./lib/rand.c
+    2570 ./lib/rawdata.c
+    1501 ./lib/rawfile.c
+    3250 ./lib/strptr.c
+    2313 ./lib/swap64.c
+    3752 ./lib/sys_elf.h.in
+   25089 ./lib/update.c
+    7643 ./lib/verdef.h
+    1614 ./lib/verdef_32_tof.c
+    1614 ./lib/verdef_32_tom.c
+    1642 ./lib/verdef_64_tof.c
+    1642 ./lib/verdef_64_tom.c
+    7904 ./lib/verneed.h
+    1283 ./lib/version.c
+    2749 ./lib/x.movscn.c
+    2898 ./lib/x.remscn.c
+     619 ./mkinstalldirs
+    4666 ./po/Makefile.in
+    8684 ./po/de.gmo
+    9027 ./po/de.msg
+   10958 ./po/de.po
+    2648 ./po/gmo2msg.c
+    5959 ./po/libelf.pot
+      10 ./po/stamp-po
+      10 ./stamp-h.in


Index: llvm/lib/CodeGen/ELF/Makefile.in
diff -c /dev/null llvm/lib/CodeGen/ELF/Makefile.in:1.1
*** /dev/null	Wed Jun 22 01:36:09 2005
--- llvm/lib/CodeGen/ELF/Makefile.in	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,177 ----
+ # Makefile for libelf.
+ # Copyright (C) 1995 - 2001, 2003 Michael Riepe <michael at stud.uni-hannover.de>
+ # 
+ # This library is free software; you can redistribute it and/or
+ # modify it under the terms of the GNU Library General Public
+ # License as published by the Free Software Foundation; either
+ # version 2 of the License, or (at your option) any later version.
+ # 
+ # This library is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ # Library General Public License for more details.
+ # 
+ # You should have received a copy of the GNU Library General Public
+ # License along with this library; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ 
+ # @(#) $Id: Makefile.in,v 1.1 2005/06/22 06:35:57 reid Exp $
+ 
+ MV = mv -f
+ RM = rm -f
+ LN_S = @LN_S@
+ 
+ CC = @CC@
+ CFLAGS = @CFLAGS@
+ CPPFLAGS = @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+ LIBS = @LIBS@
+ 
+ # no user serviceable parts below
+ 
+ PACKAGE = @PACKAGE@
+ VERSION = @VERSION@
+ 
+ SHELL = /bin/sh
+ @SET_MAKE@
+ 
+ srcdir = @srcdir@
+ VPATH = @srcdir@
+ 
+ SUBDIRS = lib @POSUB@
+ DISTSUBDIRS = lib po
+ 
+ DISTFILES = \
+ 	acconfig.h aclocal.m4 ChangeLog config.guess config.h.in \
+ 	config.sub configure configure.in COPYING.LIB INSTALL install-sh \
+ 	Makefile.in mkinstalldirs README stamp-h.in VERSION
+ 
+ all: all-recursive all-local
+ check: check-recursive check-local
+ install: install-recursive install-local
+ uninstall: uninstall-recursive uninstall-local
+ mostlyclean: mostlyclean-recursive mostlyclean-local
+ clean: clean-recursive clean-local
+ distclean: distclean-recursive distclean-local
+ maintainer-clean: maintainer-clean-recursive maintainer-clean-local
+ 
+ install-compat uninstall-compat:
+ 	cd lib && $(MAKE) $@
+ 
+ all-recursive check-recursive install-recursive uninstall-recursive \
+ clean-recursive distclean-recursive mostlyclean-recursive \
+ maintainer-clean-recursive:
+ 	@subdirs="$(SUBDIRS)"; for subdir in $$subdirs; do \
+ 	  target=`echo $@|sed 's,-recursive,,'`; \
+ 	  echo making $$target in $$subdir; \
+ 	  (cd $$subdir && $(MAKE) $$target) || exit 1; \
+ 	done
+ 
+ all-local:
+ 
+ check-local:
+ 
+ install-local:
+ 
+ uninstall-local:
+ 
+ mostlyclean-local:
+ 	$(RM) *~ core errlist
+ 
+ clean-local: mostlyclean-local
+ 
+ distclean-local: clean-local
+ 	$(RM) config.cache config.h config.log config.status stamp-h
+ 	$(RM) Makefile
+ 
+ maintainer-clean-local: distclean-local
+ 	@echo "This command is intended for maintainers to use;"
+ 	@echo "it deletes files that may require special tools to rebuild."
+ 	$(RM) config.h.in configure stamp-dist
+ 	$(RM) -r $(distdir)
+ 
+ # maintainer only
+ 
+ MAINT = @MAINT@
+ 
+ distdir = $(PACKAGE)-$(VERSION)
+ DISTPERMS = --owner=root --group=root --numeric-owner
+ $(MAINT)dist: ./stamp-dist
+ $(MAINT)./stamp-dist: $(DISTFILES)
+ 	$(RM) -r $(distdir)
+ 	mkdir $(distdir)
+ 	files="$(DISTFILES)"; for file in $$files; do \
+ 	  ln $(srcdir)/$$file $(distdir) || \
+ 	    cp -p $(srcdir)/$$file $(distdir) || exit 1; \
+ 	done
+ 	subdirs="$(DISTSUBDIRS)"; for subdir in $$subdirs; do \
+ 	  (cd $$subdir && $(MAKE) dist) || exit 1; \
+ 	done
+ 	cd $(distdir) && \
+ 	    find . -type f ! -name MANIFEST -exec wc -c {} \; | \
+ 	    sort +1 >MANIFEST
+ 	-$(RM) $(distdir).tar.gz.bak $(PACKAGE).tar.gz
+ 	-$(MV) $(distdir).tar.gz $(distdir).tar.gz.bak
+ 	tar cvhfz $(distdir).tar.gz $(DISTPERMS) $(distdir)
+ 	$(LN_S) $(distdir).tar.gz $(PACKAGE).tar.gz
+ 	$(RM) stamp-dist && echo timestamp > stamp-dist
+ 
+ $(MAINT)check-dist:
+ 	$(RM) -r disttest
+ 	mkdir disttest
+ 	@echo 'unset CC CFLAGS CPPFLAGS LDFLAGS LIBS' >disttest/config.site
+ 	@echo 'unset I_AM_THE_$(PACKAGE)_MAINTAINER' >>disttest/config.site
+ 	cd disttest && CONFIG_SITE=config.site ../$(distdir)/configure
+ 	$(MAKE) -C disttest
+ 	$(MAKE) -C disttest check
+ 
+ tags:
+ 	rm -f tags
+ 	ctags -vst lib/*.c
+ 	ctags -ast lib/*.h
+ 
+ # For the justification of the following Makefile rules, see node
+ # `Automatic Remaking' in GNU Autoconf documentation.
+ 
+ $(MAINT)$(srcdir)/configure: $(srcdir)/configure.in $(srcdir)/aclocal.m4
+ 	$(RM) $(srcdir)/configure
+ 	cd $(srcdir) && autoconf
+ 
+ $(MAINT)$(srcdir)/config.h.in: $(srcdir)/stamp-h.in
+ $(MAINT)$(srcdir)/stamp-h.in: $(srcdir)/configure.in $(srcdir)/acconfig.h
+ 	$(RM) $(srcdir)/config.h.in
+ 	cd $(srcdir) && autoheader
+ 	cd $(srcdir) && $(RM) stamp-h.in && echo timestamp > stamp-h.in
+ 
+ $(MAINT)config.h: stamp-h
+ $(MAINT)stamp-h: config.h.in config.status
+ 	CONFIG_FILES= CONFIG_HEADERS=config.h ./config.status
+ 	$(RM) stamp-h && echo timestamp > stamp-h
+ 
+ $(MAINT)Makefile: Makefile.in config.status
+ 	CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+ 
+ $(MAINT)lib/Makefile: lib/Makefile.in config.status
+ 	CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+ 
+ $(MAINT)lib/sys_elf.h: lib/stamp-h
+ $(MAINT)lib/stamp-h: lib/sys_elf.h.in config.status
+ 	CONFIG_FILES= CONFIG_HEADERS=lib/sys_elf.h ./config.status
+ 	$(RM) lib/stamp-h && echo timestamp > lib/stamp-h
+ 
+ $(MAINT)po/Makefile: po/Makefile.in config.status
+ 	CONFIG_FILES=$@ CONFIG_HEADERS= ./config.status
+ 
+ RECHECK_FLAGS = CC='$(CC)' CPPFLAGS='$(CPPFLAGS)' \
+ 	CFLAGS='$(CFLAGS)' LDFLAGS='$(LDFLAGS)' LIBS='$(LIBS)'
+ 
+ $(MAINT)config.status: configure config.h.in VERSION
+ 	$(RECHECK_FLAGS) ./config.status --recheck
+ 
+ $(MAINT)reconfig:
+ 	$(RM) config.cache
+ 	$(RECHECK_FLAGS) ./config.status --recheck
+ 
+ # Tell versions [3.59,3.63) of GNU make not to export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT:


Index: llvm/lib/CodeGen/ELF/README
diff -c /dev/null llvm/lib/CodeGen/ELF/README:1.1
*** /dev/null	Wed Jun 22 01:36:09 2005
--- llvm/lib/CodeGen/ELF/README	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,244 ----
+ This is the public release of libelf-0.8.5, a free ELF object
+ file access library. If you have problems with applications
+ that use libelf and work with the commercial (SVR4, Solaris)
+ version but not with this one, please contact me.
+ 
+ IMPORTANT NOTE: If you have libelf-0.5.2 installed, you probably
+ have a file .../include/elf.h that contains the single line
+ ``#include <libelf/elf.h>''. REMOVE THIS FILE BEFORE YOU RUN
+ configure.
+ 
+ Installation is straightforward - the package is autoconf'ed.  Just do
+ ``cd libelf-0.8.5; ./configure; make; make install''.  Header files
+ will be installed in .../include/libelf/.  If your system does not
+ provide its own versions of libelf.h, nlist.h or gelf.h, ``make
+ install'' will add the missing headers.  If you prefer not to have
+ these files installed in /usr/include, use ``--disable-compat'' and
+ add ``-I /usr/include/libelf'' to your CFLAGS when compiling
+ libelf-based programs.
+ 
+ Note to distribution makers:  You can install libelf in a separate root
+ hierarchy by using the command ``make instroot=/my/root install''.
+ You should also use the ``--enable-compat'' configure option in that
+ case, or run ``make instroot=/my/root install-compat'' manually, to
+ install all the required header files.
+ 
+ If you are running Linux with libc 5.* as the default C library,
+ and you plan to use the 64-bit functions, you must either use
+ ``-I.../include/libelf'', or remove /usr/include/libelf.h and use
+ ``--enable-compat'' when running configure. Libc 6.* (aka glibc2)
+ doesn't have its own <libelf.h>, <nlist.h> or <gelf.h>.
+ 
+ You need an ANSI/ISO C compiler to build libelf. Gcc is optimal.
+ 
+ On some systems (in particular, Solaris and all variants of Linux),
+ ``make'' will try to build a shared library. If you run into problems
+ on your system, please pass ``--disable-shared'' to configure.
+ If you build a shared library and want it to be installed as
+ ``libelf-0.8.5.so'' rather than ``libelf.so.0.8.5'', please use
+ ``./configure --enable-gnu-names''. Other files, e.g. ``libelf.so'' and
+ ``libelf.so.0'' are NOT affected.
+ 
+ Another configure option, ``--enable-debug'', adds debugging code to
+ libelf; if you don't run into problems, you will probably not need it.
+ 
+ When creating an ELF shared library, it is possible to add references
+ to other shared libraries in the DYNAMIC section of the resulting
+ file. The make variable DEPSHLIBS contains a list of libraries to add.
+ It is set to ``-lc'' on Linux systems, and empty otherwise. To
+ override this setting, use something like ``make DEPSHLIBS="-la -lb"''.
+ For Linux, `-lc' is included automagically.
+ 
+ NLS is available and enabled by default.  To turn it off, pass the
+ ``--disable-nls'' option to configure.
+ 
+ Libelf can use gettext or catgets for accessing message
+ catalogs.  If gettext is available AND is part of libc (i.e. not
+ in a separate library), it will be used. Otherwise, configure
+ will look for catgets.  If you have gettext in a separate
+ library and want to use it, you should pass the library's name
+ to configure, e.g. ``LIBS=-lintl ./configure''. Note that you
+ MUST link your libelf-based applications with -lintl then,
+ which is probably not what you want, or change the DEPSHLIBS variable
+ described above (in case you're building a shared library).
+ 
+ If you have GNU gettext 0.10 installed on your system, and if GNU gettext
+ runs on top of the catgets interface (rather old Linux systems, using
+ libc5), configure will refuse to use it and use catgets instead. If you
+ absolutely want to use GNU gettext, go ahead and rebuild it (which is
+ IMHO a good idea in general in this case):
+ 
+ 	cd .../gettext-0.10
+ 	ac_cv_func_catgets=no ac_cv_func_gettext=no ./configure
+ 	make
+ 	make install
+ 
+ After that, return to the libelf build directory, remove
+ config.cache, and start over.
+ 
+ *** Large File Support (LFS) applications ***
+ 
+ Some 32-bit systems support files that are larger than the address space
+ of the architecture.  On these, the `off_t' data type may have 32 or
+ 64 bits, depending on the API you choose.  Since off_t is also part of
+ the libelf API, in particular the Elf_Data and Elf_Arhdr structures,
+ an application compiled with large file support will need a version of
+ libelf that has also been compiled with LFS; otherwise, it won't work
+ correctly.  Similarly, a program compiled without LFS needs a library
+ compiled without LFS.
+ 
+ Note that libelf is currently unable to process large files on 32-bit
+ architectures, whether you compile it for LFS or not, for the simple
+ reason that the files won't fit into the processes' address space.
+ Therefore, libelf is compiled without LFS by default.  It can of course
+ read and write ELF files for 64-bit architectures, but they will be
+ limited in length on a 32-bit system.
+ 
+ You may compile libelf with large file support by setting CPPFLAGS at
+ configuration time:
+ 
+ 	CPPFLAGS=`getconf LFS_CFLAGS` ./configure
+ 
+ But I really, really recommend you don't, because it breaks binary
+ compatibility with existing libelf based applications.
+ 
+ *** 64-bit support ***
+ 
+ Starting with libelf-0.7.0, libelf also supports 64-bit ELF files.
+ This is enabled by default unless your system (or your compiler) does
+ not support 64-bit integers, or lacks 64-bit declarations in <elf.h>.
+ If you have problems building with 64-bit support, please do
+ 
+     ./configure --disable-elf64
+ 
+ for the moment, and contact me. Please note that I haven't tested 64-bit
+ support much.  There are still some unresolved problems, e.g. IRIX
+ uses different Elf64_Rel and Elf64_Rela structures (they replaced the
+ r_info member), and the enumeration values for Elf_Type differ from
+ the commercial (SVR4) implementation of libelf - they broke binary
+ compatibility for no good reason, and I'm not willing to follow their
+ footsteps. The result is that libelf-0.7.* ist upward compatible with
+ libelf-0.6.4 (as it should be) but INCOMPATIBLE WITH SVR4 LIBELF. If you
+ have both versions installed, you'd better make sure that you link with
+ the library that matches the <libelf.h> you're #include'ing.
+ 
+ *** Symbol Versioning ***
+ 
+ Libelf >= 0.8.0 supports the data structures and definitions used for
+ symbol versioning on Solaris and Linux, in particular, the Elfxx_Verdef,
+ Elfxx_Verdaux, Elfxx_Verneed, Elfxx_Vernaux and Elfxx_Versym structures
+ and the SHT_XXX_verdef, SHT_XXX_verneed and SHT_XXX_versym section types
+ (where `xx' is either `32' or `64', and `XXX' is either `SUNW' or `GNU').
+ Libelf now translates versioning sections to/from their external
+ representation properly (earlier versions left them in `raw' format,
+ with the data type set to ELF_T_BYTE).  This may cause problems on
+ systems which use the same (OS-specific) section types for different
+ purposes.  The configure program tries to figure out if your OS uses
+ versioning; if that check fails, you can use
+ 
+     ./configure --disable-versioning
+ 
+ to turn off versioning translation support.
+ 
+ *** Missing things ***
+ 
+ 	* There is no documentation.  You can use the Solaris
+ 	  manpages instead (available at http://docs.sun.com/).
+ 	  The ELF file format is described in several places;
+ 	  among them Suns "Linker and Libraries Guide" and the
+ 	  "System V Application Binary Interface" documents;
+ 	  http://www.caldera.com/developer/devspecs/gabi41.pdf and
+ 	  http://www.caldera.com/developer/gabi/ are probably good
+ 	  starting points. Processor-specific documentation is spread
+ 	  across a number of `Processor Supplement' documents, one
+ 	  for each architecture; you'll have to use a search engine to
+ 	  find them.
+ 
+ 	* The COFF file format is not understood. This is so obsolete
+ 	  that it will probably never be implemented.
+ 
+ 	* nlist(3) is incomplete; the n_type and n_sclass
+ 	  members of struct nl are set to zero even if type
+ 	  (that is, debug) information is available.
+ 
+ 	* Libelf does not translate Solaris' `Move' and `Syminfo'
+ 	  sections. You can read them using elf_getdata(), but you'll
+ 	  only get raw (untranslated) bytes.
+ 
+ Changes since 0.8.4:
+ 
+ 	* elf_strptr() should now work more safely with fragmented
+ 	  or badly formatted string tables.
+ 
+ Changes since 0.8.3:
+ 
+ 	* Fixed a bug in elf_update() that was introduced in 0.8.3.
+ 
+ Changes since 0.8.2:
+ 
+ 	* Should compile on MacOSX now.
+ 
+ 	* Can read and write files with more than 65280 sections
+ 
+ 	* Tries to handle 64-bit ELF files that use 8-byte hash table
+ 	  entries. In particular, libelf tries to guess the data type in
+ 	  elf_getdata(), and doesn't override sh_entsize in elf_update()
+ 	  any longer. If you want the library to pick the entry size,
+ 	  you must set its value to 0 before you call elf_update().
+ 
+ 	* No longer dumps core in elf_update() when a versioning section
+ 	  has no data. Instead, it returns an error message. Note that
+ 	  you're supposed to provide a valid d_buf for any section, unless
+ 	  it's empty or has SHT_NOBITS type.
+ 
+ 	* Building a shared library is now the default (if supported).
+ 
+ Changes since 0.8.0:
+ 
+ 	* Corrected typo in lib/{32,64}.xlatetof.c that sometimes
+ 	  caused a compilation failure.
+ 
+ 	* Use open(name, O_RDONLY|O_BINARY) in lib/nlist.c.
+ 
+ Changes since 0.7.0:
+ 
+ 	* I implemented the gelf_* interface, as found on Solaris.
+ 	  I don't know whether it's compatible -- the Solaris manpage
+ 	  isn't very specific, so I had to guess return values etc. in
+ 	  some cases.
+ 
+ 	* Added elf{32,64}_checksum (supposed to be compatible with
+ 	  Solaris).
+ 
+ 	* Added symbol versioning support.
+ 
+ Changes since 0.6.4:
+ 
+ 	* Fixed configure for IRIX systems
+ 	* Added check for truncated archive members
+ 	* Added check for misaligned SHDR/PHDR tables
+ 	* Support for building libelf together with GNU libc
+ 	* Added elf_memory(3)
+ 	* Added 64-bit support
+ 
+ Changes since 0.5.2:
+ 
+ 	* some bug fixes
+ 	* mmap support
+ 	* new directory layout
+ 	* There is a new function, elf_delscn(), that deletes
+ 	  a section from an ELF file. It also adjusts the
+ 	  sh_link and sh_info members in the section header
+ 	  table, if (and ONLY if) the ELF standard indicates
+ 	  that these values are section indices. References
+ 	  to the deleted section will be cleared, so be careful.
+ 	* my email address has changed ;)
+ 
+ Where to get libelf:
+ 
+ 	ftp://ftp.ibiblio.org/pub/Linux/libs/
+ 	http://www.stud.uni-hannover.de/~michael/software/
+ 
+ Michael "Tired" Riepe
+ <michael at stud.uni-hannover.de>
+ <michael at han.de>


Index: llvm/lib/CodeGen/ELF/VERSION
diff -c /dev/null llvm/lib/CodeGen/ELF/VERSION:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/VERSION	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1 ----
+ 0.8.5


Index: llvm/lib/CodeGen/ELF/acconfig.h
diff -c /dev/null llvm/lib/CodeGen/ELF/acconfig.h:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/acconfig.h	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,80 ----
+ /*
+ acconfig.h - Special definitions for libelf, processed by autoheader.
+ Copyright (C) 1995 - 2001 Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Library General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ 
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Library General Public License for more details.
+ 
+ You should have received a copy of the GNU Library General Public
+ License along with this library; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+ 
+ /* @(#) $Id: acconfig.h,v 1.1 2005/06/22 06:35:57 reid Exp $ */
+ 
+ /* Define if you want to include extra debugging code */
+ #undef ENABLE_DEBUG
+ 
+ /* Define if memmove() does not copy overlapping arrays correctly */
+ #undef HAVE_BROKEN_MEMMOVE
+ 
+ /* Define if you have the catgets function. */
+ #undef HAVE_CATGETS
+ 
+ /* Define if you have the gettext function. */
+ #undef HAVE_GETTEXT
+ 
+ /* Define if you have the memset function.  */
+ #undef HAVE_MEMSET
+ 
+ /* Define if struct nlist is declared in <elf.h> or <sys/elf.h> */
+ #undef HAVE_STRUCT_NLIST_DECLARATION
+ 
+ /* Define if Elf32_Dyn is declared in <link.h> */
+ #undef __LIBELF_NEED_LINK_H
+ 
+ /* Define to `<elf.h>' or `<sys/elf.h>' if one of them is present */
+ #undef __LIBELF_HEADER_ELF_H
+ 
+ /* Define if you want 64-bit support (and your system supports it) */
+ #undef __LIBELF64
+ 
+ /* Define if you want 64-bit support, and are running IRIX */
+ #undef __LIBELF64_IRIX
+ 
+ /* Define if you want 64-bit support, and are running Linux */
+ #undef __LIBELF64_LINUX
+ 
+ /* Define if you want symbol versioning (and your system supports it) */
+ #undef __LIBELF_SYMBOL_VERSIONS
+ 
+ /* Define if symbol versioning uses Sun section type (SHT_SUNW_*) */
+ #undef __LIBELF_SUN_SYMBOL_VERSIONS
+ 
+ /* Define if symbol versioning uses GNU section types (SHT_GNU_*) */
+ #undef __LIBELF_GNU_SYMBOL_VERSIONS
+ 
+ /* Define to a 64-bit signed integer type if one exists */
+ #undef __libelf_i64_t
+ 
+ /* Define to a 64-bit unsigned integer type if one exists */
+ #undef __libelf_u64_t
+ 
+ /* Define to a 32-bit signed integer type if one exists */
+ #undef __libelf_i32_t
+ 
+ /* Define to a 32-bit unsigned integer type if one exists */
+ #undef __libelf_u32_t
+ 
+ /* Define to a 16-bit signed integer type if one exists */
+ #undef __libelf_i16_t
+ 
+ /* Define to a 16-bit unsigned integer type if one exists */
+ #undef __libelf_u16_t


Index: llvm/lib/CodeGen/ELF/aclocal.m4
diff -c /dev/null llvm/lib/CodeGen/ELF/aclocal.m4:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/aclocal.m4	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,294 ----
+ # Local additions to Autoconf macros.
+ # Copyright (C) 1995 - 2003 Michael Riepe <michael at stud.uni-hannover.de>
+ 
+ # @(#) $Id: aclocal.m4,v 1.1 2005/06/22 06:35:57 reid Exp $
+ 
+ AC_PREREQ(2.13)
+ 
+ dnl mr_PACKAGE(package-name)
+ AC_DEFUN(mr_PACKAGE, [changequote(<<, >>)dnl
+   define(<<mr_MAINT>>, <<I_AM_THE_>>translit($1, [a-z-], [A-Z_])<<_MAINTAINER>>)dnl
+   changequote([, ])dnl
+   PACKAGE=$1
+   VERSION=`cat $srcdir/VERSION`
+   AC_SUBST(PACKAGE)
+   AC_SUBST(VERSION)
+   AC_ARG_ENABLE(maintainer-mode,
+     [  --enable-maintainer-mode
+                           enable maintainer-specific make rules (default: no)],
+     [mr_enable_maintainer_mode="$enableval"],
+     [mr_enable_maintainer_mode="${mr_MAINT-no}"])
+   if test x"$mr_enable_maintainer_mode" = x"yes"; then
+     MAINT=
+   else
+     MAINT='maintainer-only-'
+   fi
+   AC_SUBST(MAINT)
+   undefine(<<mr_MAINT>>)dnl
+ ])
+ 
+ AC_DEFUN(mr_ENABLE_NLS, [
+   AC_PROVIDE([$0])
+ 
+   # Needed for `make dist' even if NLS is disabled.
+   GMOFILES=
+   MSGFILES=
+   POFILES=
+   for mr_lang in $ALL_LINGUAS; do
+     GMOFILES="$GMOFILES $mr_lang.gmo"
+     MSGFILES="$MSGFILES $mr_lang.msg"
+     POFILES="$POFILES $mr_lang.po"
+   done
+   AC_SUBST(GMOFILES)
+   AC_SUBST(MSGFILES)
+   AC_SUBST(POFILES)
+ 
+   AC_MSG_CHECKING([whether NLS is requested])
+   AC_ARG_ENABLE(nls,
+     [  --enable-nls            use Native Language Support (default: yes)],
+     [mr_enable_nls="$enableval"],
+     [mr_enable_nls=yes])
+   AC_MSG_RESULT($mr_enable_nls)
+ 
+   CATOBJEXT=
+   INSTOBJEXT=
+   localedir=
+   if test "$mr_enable_nls" = yes; then
+     mr_PATH=`echo ":$PATH" | sed -e 's,:[^:]*openwin[^:]*,,g' -e 's,^:,,'`
+     AC_CACHE_CHECK([for gettext],
+       mr_cv_func_gettext, [
+ 	AC_TRY_LINK([#include <libintl.h>],
+ 	  [char *s = gettext(""); return 0],
+ 	  [mr_cv_func_gettext=yes],
+ 	  [mr_cv_func_gettext=no])
+     ])
+     if test "$mr_cv_func_gettext" = yes; then
+       AC_PATH_PROG(MSGFMT, msgfmt, no, $mr_PATH)
+       if test "$MSGFMT" != no; then
+ 	AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT, $mr_PATH)
+ 	AC_PATH_PROG(XGETTEXT, xgettext, xgettext, $mr_PATH)
+ 	AC_CACHE_CHECK([for GNU gettext],
+ 	  mr_cv_gnu_gettext, [
+ 	    AC_TRY_LINK([],
+ 	      [extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr],
+ 	      [mr_cv_gnu_gettext=yes],
+ 	      [mr_cv_gnu_gettext=no])
+ 	])
+ 	if test "$mr_cv_gnu_gettext" = yes; then
+ 	  AC_CACHE_CHECK([for losing catgets-based GNU gettext],
+ 	    mr_cv_catgets_based_gettext, [
+ 	      AC_TRY_LINK([],
+ 		[extern int _msg_tbl_length; return _msg_tbl_length],
+ 		[mr_cv_catgets_based_gettext=yes],
+ 		[mr_cv_catgets_based_gettext=no])
+ 	  ])
+ 	  if test "$mr_cv_catgets_based_gettext" = yes; then
+ 	    # This loses completely. Turn it off and use catgets.
+ 	    LIBS=`echo $LIBS | sed 's,-lintl,,g'`
+ 	    mr_cv_func_gettext=no
+ 	  else
+ 	    # Is there a better test for this case?
+ 	    AC_CACHE_CHECK([for pure GNU gettext],
+ 	      mr_cv_pure_gnu_gettext, [
+ 		AC_TRY_LINK([],
+ 		  [extern int gettext(); return gettext()],
+ 		  [mr_cv_pure_gnu_gettext=yes],
+ 		  [mr_cv_pure_gnu_gettext=no])
+ 	    ])
+ 	    if test "$mr_cv_pure_gnu_gettext" = yes; then
+ 	      CATOBJEXT=.gmo
+ 	      localedir='$(prefix)/share/locale'
+ 	    else
+ 	      CATOBJEXT=.mo
+ 	      localedir='$(prefix)/lib/locale'
+ 	    fi
+ 	    INSTOBJEXT=.mo
+ 	  fi
+ 	else
+ 	  # System provided gettext
+ 	  CATOBJEXT=.mo
+ 	  INSTOBJEXT=.mo
+ 	  localedir='$(prefix)/lib/locale'
+ 	fi
+       else
+ 	# Gettext but no msgfmt. Try catgets.
+ 	mr_cv_func_gettext=no
+       fi
+     fi
+     if test "$mr_cv_func_gettext" = yes; then
+       AC_DEFINE(HAVE_GETTEXT)
+     else
+       AC_CACHE_CHECK([for catgets], mr_cv_func_catgets, [
+ 	AC_TRY_LINK([#include <nl_types.h>],
+ 	  [catgets(catopen("",0),0,0,"");return 0;],
+ 	  [mr_cv_func_catgets=yes],
+ 	  [mr_cv_func_catgets=no])
+       ])
+       if test "$mr_cv_func_catgets" = yes; then
+ 	AC_PATH_PROG(GENCAT, gencat, no, $mr_PATH)
+ 	if test "$GENCAT" != no; then
+ 	  AC_DEFINE(HAVE_CATGETS)
+ 	  AC_PATH_PROG(GMSGFMT, [gmsgfmt msgfmt], msgfmt, $mr_PATH)
+ 	  AC_PATH_PROG(XGETTEXT, xgettext, xgettext, $mr_PATH)
+ 	  CATOBJEXT=.cat
+ 	  INSTOBJEXT=.cat
+ 	  localedir='$(prefix)/lib/locale'
+ 	fi
+       else
+ 	AC_MSG_WARN([no NLS support, disabled])
+ 	mr_enable_nls=no
+       fi
+     fi
+   fi
+   AC_SUBST(CATOBJEXT)
+   AC_SUBST(INSTOBJEXT)
+   AC_SUBST(localedir)
+ 
+   POSUB=
+   CATALOGS=
+   if test "$mr_enable_nls" = yes; then
+     AC_MSG_CHECKING([for catalogs to be installed])
+     mr_linguas=
+     for mr_lang in ${LINGUAS=$ALL_LINGUAS}; do
+       case " $ALL_LINGUAS " in
+ 	*" $mr_lang "*)
+ 	  mr_linguas="$mr_linguas$mr_lang "
+ 	  CATALOGS="$CATALOGS $mr_lang$CATOBJEXT"
+ 	  ;;
+       esac
+     done
+     AC_MSG_RESULT($mr_linguas)
+     POSUB=po
+   fi
+   AC_SUBST(CATALOGS)
+   AC_SUBST(POSUB)
+ ])
+ 
+ AC_DEFUN(mr_TARGET_ELF, [
+   AC_PROVIDE([$0])
+   AC_CACHE_CHECK([for native ELF system],
+     mr_cv_target_elf,
+     [AC_TRY_RUN(changequote(<<, >>)dnl
+ <<#include <stdio.h>
+ int
+ main(int argc, char **argv) {
+   char buf[BUFSIZ];
+   FILE *fp;
+   int n;
+ 
+   if ((fp = fopen(*argv, "r")) == NULL) {
+     exit(1);
+   }
+   n = fread(buf, 1, sizeof(buf), fp);
+   if (n >= 52
+    && buf[0] == '\177'
+    && buf[1] == 'E'
+    && buf[2] == 'L'
+    && buf[3] == 'F') {
+     exit(0);
+   }
+   exit(1);
+ }>>, changequote([, ])dnl
+       mr_cv_target_elf=yes,
+       mr_cv_target_elf=no,
+       mr_cv_target_elf=no)])])
+ 
+ AC_DEFUN(mr_ENABLE_SHARED, [
+   AC_PROVIDE([$0])
+   PICFLAGS=
+   SHLIB_SFX=
+   SHLINK_SFX=
+   SONAME_SFX=
+   LINK_SHLIB=
+   INSTALL_SHLIB=
+   DEPSHLIBS=
+   AC_MSG_CHECKING([whether to build a shared library])
+   AC_ARG_ENABLE(shared,
+     [  --enable-shared         build shared library (default: yes)],
+     [mr_enable_shared="$enableval"],
+     [mr_enable_shared=yes])
+   AC_MSG_RESULT($mr_enable_shared)
+   if test "$mr_enable_shared" = yes; then
+     AC_MSG_CHECKING([whether GNU naming conventions are requested])
+     AC_ARG_ENABLE(gnu_names,
+       [  --enable-gnu-names      use GNU library naming conventions (default: no)],
+       [mr_enable_gnu_names="$enableval"],
+       [mr_enable_gnu_names=no])
+     AC_MSG_RESULT($mr_enable_gnu_names)
+     AC_REQUIRE([AC_CANONICAL_HOST])
+     AC_REQUIRE([AC_PROG_CC])
+     AC_PATH_PROG(LD, ld, ld)
+     case "$host" in
+       *-linux*|*-gnu*)
+ 	if test "$GCC" = yes; then
+ 	  mr_TARGET_ELF
+ 	  if test "$mr_cv_target_elf" = yes; then
+ 	    PICFLAGS='-fPIC -DPIC'
+ 	    if test "$mr_enable_gnu_names" = yes
+ 	    then
+ 	      SHLIB_SFX='-$(VERSION).so'
+ 	    else
+ 	      SHLIB_SFX='.so.$(VERSION)'
+ 	    fi
+ 	    SHLINK_SFX='.so'
+ 	    SONAME_SFX='.so.$(MAJOR)'
+ 	    LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)'
+ 	    INSTALL_SHLIB='$(INSTALL_PROGRAM)'
+ 	    DEPSHLIBS='-lc'
+ 	  else
+ 	    AC_MSG_WARN([shared libraries not supported for $host])
+ 	    mr_enable_shared=no
+ 	  fi
+ 	else
+ 	  AC_MSG_WARN([GNU CC required for building shared libraries])
+ 	  mr_enable_shared=no
+ 	fi
+ 	;;
+       sparc-sun-solaris2*)
+ 	if test "$GCC" = yes; then
+ 	  PICFLAGS='-fPIC -DPIC'
+ 	else
+ 	  PICFLAGS='-K PIC -DPIC'
+ 	fi
+ 	if test "$mr_enable_gnu_names" = yes
+ 	then
+ 	  SHLIB_SFX='-$(MAJOR).so'
+ 	else
+ 	  SHLIB_SFX='.so.$(MAJOR)'
+ 	fi
+ 	SONAME_SFX='.so.$(MAJOR)'
+ 	SHLINK_SFX='.so'
+ 	LINK_SHLIB='$(LD) -G -z text -h $(SONAME)'
+ 	INSTALL_SHLIB='$(INSTALL_PROGRAM)'
+ 	;;
+       *)
+ 	AC_MSG_WARN([shared libraries not supported for $host])
+ 	mr_enable_shared=no
+ 	;;
+     esac
+   else
+     mr_enable_shared=no
+   fi
+   AC_SUBST(PICFLAGS)
+   AC_SUBST(SHLIB_SFX)
+   AC_SUBST(SHLINK_SFX)
+   AC_SUBST(SONAME_SFX)
+   AC_SUBST(LINK_SHLIB)
+   AC_SUBST(INSTALL_SHLIB)
+   AC_SUBST(DEPSHLIBS)
+   DO_SHLIB="$mr_enable_shared"
+   AC_SUBST(DO_SHLIB)
+ ])
+ 
+ AC_DEFUN(mr_ENABLE_DEBUG, [
+   AC_PROVIDE([$0])
+   AC_ARG_ENABLE(debug,
+     [  --enable-debug          include extra debugging code (default: no)],
+     [mr_enable_debug="$enableval"],
+     [mr_enable_debug=no])
+   if test "$mr_enable_debug" = yes; then
+     AC_DEFINE(ENABLE_DEBUG)
+   fi
+ ])
+ 
+ # vi: set ts=8 sw=2 :


Index: llvm/lib/CodeGen/ELF/config.guess
diff -c /dev/null llvm/lib/CodeGen/ELF/config.guess:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/config.guess	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,1407 ----
+ #! /bin/sh
+ # Attempt to guess a canonical system name.
+ #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+ #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+ 
+ timestamp='2003-07-02'
+ 
+ # This file is free software; you can redistribute it and/or modify it
+ # under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful, but
+ # WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ # General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ #
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+ # configuration script generated by Autoconf, you may include it under
+ # the same distribution terms that you use for the rest of that program.
+ 
+ # Originally written by Per Bothner <per at bothner.com>.
+ # Please send patches to <config-patches at gnu.org>.  Submit a context
+ # diff and a properly formatted ChangeLog entry.
+ #
+ # This script attempts to guess a canonical system name similar to
+ # config.sub.  If it succeeds, it prints the system name on stdout, and
+ # exits with 0.  Otherwise, it exits with 1.
+ #
+ # The plan is that this can be called by configure scripts if you
+ # don't specify an explicit build system type.
+ 
+ me=`echo "$0" | sed -e 's,.*/,,'`
+ 
+ usage="\
+ Usage: $0 [OPTION]
+ 
+ Output the configuration name of the system \`$me' is run on.
+ 
+ Operation modes:
+   -h, --help         print this help, then exit
+   -t, --time-stamp   print date of last modification, then exit
+   -v, --version      print version number, then exit
+ 
+ Report bugs and patches to <config-patches at gnu.org>."
+ 
+ version="\
+ GNU config.guess ($timestamp)
+ 
+ Originally written by Per Bothner.
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Free Software Foundation, Inc.
+ 
+ This is free software; see the source for copying conditions.  There is NO
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+ 
+ help="
+ Try \`$me --help' for more information."
+ 
+ # Parse command line
+ while test $# -gt 0 ; do
+   case $1 in
+     --time-stamp | --time* | -t )
+        echo "$timestamp" ; exit 0 ;;
+     --version | -v )
+        echo "$version" ; exit 0 ;;
+     --help | --h* | -h )
+        echo "$usage"; exit 0 ;;
+     -- )     # Stop option processing
+        shift; break ;;
+     - )	# Use stdin as input.
+        break ;;
+     -* )
+        echo "$me: invalid option $1$help" >&2
+        exit 1 ;;
+     * )
+        break ;;
+   esac
+ done
+ 
+ if test $# != 0; then
+   echo "$me: too many arguments$help" >&2
+   exit 1
+ fi
+ 
+ trap 'exit 1' 1 2 15
+ 
+ # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
+ # compiler to aid in system detection is discouraged as it requires
+ # temporary files to be created and, as you can see below, it is a
+ # headache to deal with in a portable fashion.
+ 
+ # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
+ # use `HOST_CC' if defined, but it is deprecated.
+ 
+ # Portable tmp directory creation inspired by the Autoconf team.
+ 
+ set_cc_for_build='
+ trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
+ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
+ : ${TMPDIR=/tmp} ;
+  { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
+  { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
+  { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
+  { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
+ dummy=$tmp/dummy ;
+ tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
+ case $CC_FOR_BUILD,$HOST_CC,$CC in
+  ,,)    echo "int x;" > $dummy.c ;
+ 	for c in cc gcc c89 c99 ; do
+ 	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
+ 	     CC_FOR_BUILD="$c"; break ;
+ 	  fi ;
+ 	done ;
+ 	if test x"$CC_FOR_BUILD" = x ; then
+ 	  CC_FOR_BUILD=no_compiler_found ;
+ 	fi
+ 	;;
+  ,,*)   CC_FOR_BUILD=$CC ;;
+  ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
+ esac ;'
+ 
+ # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
+ # (ghazi at noc.rutgers.edu 1994-08-24)
+ if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
+ 	PATH=$PATH:/.attbin ; export PATH
+ fi
+ 
+ UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
+ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
+ UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
+ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
+ 
+ # Note: order is significant - the case branches are not exclusive.
+ 
+ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
+     *:NetBSD:*:*)
+ 	# NetBSD (nbsd) targets should (where applicable) match one or
+ 	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
+ 	# switched to ELF, *-*-netbsd* would select the old
+ 	# object file format.  This provides both forward
+ 	# compatibility and a consistent mechanism for selecting the
+ 	# object file format.
+ 	#
+ 	# Note: NetBSD doesn't particularly care about the vendor
+ 	# portion of the name.  We always set it to "unknown".
+ 	sysctl="sysctl -n hw.machine_arch"
+ 	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
+ 	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
+ 	case "${UNAME_MACHINE_ARCH}" in
+ 	    armeb) machine=armeb-unknown ;;
+ 	    arm*) machine=arm-unknown ;;
+ 	    sh3el) machine=shl-unknown ;;
+ 	    sh3eb) machine=sh-unknown ;;
+ 	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
+ 	esac
+ 	# The Operating System including object format, if it has switched
+ 	# to ELF recently, or will in the future.
+ 	case "${UNAME_MACHINE_ARCH}" in
+ 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
+ 		eval $set_cc_for_build
+ 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
+ 			| grep __ELF__ >/dev/null
+ 		then
+ 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
+ 		    # Return netbsd for either.  FIX?
+ 		    os=netbsd
+ 		else
+ 		    os=netbsdelf
+ 		fi
+ 		;;
+ 	    *)
+ 	        os=netbsd
+ 		;;
+ 	esac
+ 	# The OS release
+ 	# Debian GNU/NetBSD machines have a different userland, and
+ 	# thus, need a distinct triplet. However, they do not need
+ 	# kernel version information, so it can be replaced with a
+ 	# suitable tag, in the style of linux-gnu.
+ 	case "${UNAME_VERSION}" in
+ 	    Debian*)
+ 		release='-gnu'
+ 		;;
+ 	    *)
+ 		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
+ 		;;
+ 	esac
+ 	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
+ 	# contains redundant information, the shorter form:
+ 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
+ 	echo "${machine}-${os}${release}"
+ 	exit 0 ;;
+     amiga:OpenBSD:*:*)
+ 	echo m68k-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     arc:OpenBSD:*:*)
+ 	echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     hp300:OpenBSD:*:*)
+ 	echo m68k-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     mac68k:OpenBSD:*:*)
+ 	echo m68k-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     macppc:OpenBSD:*:*)
+ 	echo powerpc-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     mvme68k:OpenBSD:*:*)
+ 	echo m68k-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     mvme88k:OpenBSD:*:*)
+ 	echo m88k-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     mvmeppc:OpenBSD:*:*)
+ 	echo powerpc-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     pmax:OpenBSD:*:*)
+ 	echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     sgi:OpenBSD:*:*)
+ 	echo mipseb-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     sun3:OpenBSD:*:*)
+ 	echo m68k-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     wgrisc:OpenBSD:*:*)
+ 	echo mipsel-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:OpenBSD:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
+ 	exit 0 ;;
+     alpha:OSF1:*:*)
+ 	if test $UNAME_RELEASE = "V4.0"; then
+ 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
+ 	fi
+ 	# According to Compaq, /usr/sbin/psrinfo has been available on
+ 	# OSF/1 and Tru64 systems produced since 1995.  I hope that
+ 	# covers most systems running today.  This code pipes the CPU
+ 	# types through head -n 1, so we only detect the type of CPU 0.
+ 	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
+ 	case "$ALPHA_CPU_TYPE" in
+ 	    "EV4 (21064)")
+ 		UNAME_MACHINE="alpha" ;;
+ 	    "EV4.5 (21064)")
+ 		UNAME_MACHINE="alpha" ;;
+ 	    "LCA4 (21066/21068)")
+ 		UNAME_MACHINE="alpha" ;;
+ 	    "EV5 (21164)")
+ 		UNAME_MACHINE="alphaev5" ;;
+ 	    "EV5.6 (21164A)")
+ 		UNAME_MACHINE="alphaev56" ;;
+ 	    "EV5.6 (21164PC)")
+ 		UNAME_MACHINE="alphapca56" ;;
+ 	    "EV5.7 (21164PC)")
+ 		UNAME_MACHINE="alphapca57" ;;
+ 	    "EV6 (21264)")
+ 		UNAME_MACHINE="alphaev6" ;;
+ 	    "EV6.7 (21264A)")
+ 		UNAME_MACHINE="alphaev67" ;;
+ 	    "EV6.8CB (21264C)")
+ 		UNAME_MACHINE="alphaev68" ;;
+ 	    "EV6.8AL (21264B)")
+ 		UNAME_MACHINE="alphaev68" ;;
+ 	    "EV6.8CX (21264D)")
+ 		UNAME_MACHINE="alphaev68" ;;
+ 	    "EV6.9A (21264/EV69A)")
+ 		UNAME_MACHINE="alphaev69" ;;
+ 	    "EV7 (21364)")
+ 		UNAME_MACHINE="alphaev7" ;;
+ 	    "EV7.9 (21364A)")
+ 		UNAME_MACHINE="alphaev79" ;;
+ 	esac
+ 	# A Vn.n version is a released version.
+ 	# A Tn.n version is a released field test version.
+ 	# A Xn.n version is an unreleased experimental baselevel.
+ 	# 1.2 uses "1.2" for uname -r.
+ 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ 	exit 0 ;;
+     Alpha*:OpenVMS:*:*)
+ 	echo alpha-hp-vms
+ 	exit 0 ;;
+     Alpha\ *:Windows_NT*:*)
+ 	# How do we know it's Interix rather than the generic POSIX subsystem?
+ 	# Should we change UNAME_MACHINE based on the output of uname instead
+ 	# of the specific Alpha model?
+ 	echo alpha-pc-interix
+ 	exit 0 ;;
+     21064:Windows_NT:50:3)
+ 	echo alpha-dec-winnt3.5
+ 	exit 0 ;;
+     Amiga*:UNIX_System_V:4.0:*)
+ 	echo m68k-unknown-sysv4
+ 	exit 0;;
+     *:[Aa]miga[Oo][Ss]:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-amigaos
+ 	exit 0 ;;
+     *:[Mm]orph[Oo][Ss]:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-morphos
+ 	exit 0 ;;
+     *:OS/390:*:*)
+ 	echo i370-ibm-openedition
+ 	exit 0 ;;
+     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
+ 	echo arm-acorn-riscix${UNAME_RELEASE}
+ 	exit 0;;
+     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
+ 	echo hppa1.1-hitachi-hiuxmpp
+ 	exit 0;;
+     Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
+ 	# akee at wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
+ 	if test "`(/bin/universe) 2>/dev/null`" = att ; then
+ 		echo pyramid-pyramid-sysv3
+ 	else
+ 		echo pyramid-pyramid-bsd
+ 	fi
+ 	exit 0 ;;
+     NILE*:*:*:dcosx)
+ 	echo pyramid-pyramid-svr4
+ 	exit 0 ;;
+     DRS?6000:unix:4.0:6*)
+ 	echo sparc-icl-nx6
+ 	exit 0 ;;
+     DRS?6000:UNIX_SV:4.2*:7*)
+ 	case `/usr/bin/uname -p` in
+ 	    sparc) echo sparc-icl-nx7 && exit 0 ;;
+ 	esac ;;
+     sun4H:SunOS:5.*:*)
+ 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ 	exit 0 ;;
+     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
+ 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ 	exit 0 ;;
+     i86pc:SunOS:5.*:*)
+ 	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ 	exit 0 ;;
+     sun4*:SunOS:6*:*)
+ 	# According to config.sub, this is the proper way to canonicalize
+ 	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
+ 	# it's likely to be more like Solaris than SunOS4.
+ 	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ 	exit 0 ;;
+     sun4*:SunOS:*:*)
+ 	case "`/usr/bin/arch -k`" in
+ 	    Series*|S4*)
+ 		UNAME_RELEASE=`uname -v`
+ 		;;
+ 	esac
+ 	# Japanese Language versions have a version number like `4.1.3-JL'.
+ 	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
+ 	exit 0 ;;
+     sun3*:SunOS:*:*)
+ 	echo m68k-sun-sunos${UNAME_RELEASE}
+ 	exit 0 ;;
+     sun*:*:4.2BSD:*)
+ 	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
+ 	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
+ 	case "`/bin/arch`" in
+ 	    sun3)
+ 		echo m68k-sun-sunos${UNAME_RELEASE}
+ 		;;
+ 	    sun4)
+ 		echo sparc-sun-sunos${UNAME_RELEASE}
+ 		;;
+ 	esac
+ 	exit 0 ;;
+     aushp:SunOS:*:*)
+ 	echo sparc-auspex-sunos${UNAME_RELEASE}
+ 	exit 0 ;;
+     # The situation for MiNT is a little confusing.  The machine name
+     # can be virtually everything (everything which is not
+     # "atarist" or "atariste" at least should have a processor
+     # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
+     # to the lowercase version "mint" (or "freemint").  Finally
+     # the system name "TOS" denotes a system which is actually not
+     # MiNT.  But MiNT is downward compatible to TOS, so this should
+     # be no problem.
+     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
+         echo m68k-atari-mint${UNAME_RELEASE}
+ 	exit 0 ;;
+     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
+ 	echo m68k-atari-mint${UNAME_RELEASE}
+         exit 0 ;;
+     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
+         echo m68k-atari-mint${UNAME_RELEASE}
+ 	exit 0 ;;
+     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
+         echo m68k-milan-mint${UNAME_RELEASE}
+         exit 0 ;;
+     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
+         echo m68k-hades-mint${UNAME_RELEASE}
+         exit 0 ;;
+     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
+         echo m68k-unknown-mint${UNAME_RELEASE}
+         exit 0 ;;
+     powerpc:machten:*:*)
+ 	echo powerpc-apple-machten${UNAME_RELEASE}
+ 	exit 0 ;;
+     RISC*:Mach:*:*)
+ 	echo mips-dec-mach_bsd4.3
+ 	exit 0 ;;
+     RISC*:ULTRIX:*:*)
+ 	echo mips-dec-ultrix${UNAME_RELEASE}
+ 	exit 0 ;;
+     VAX*:ULTRIX*:*:*)
+ 	echo vax-dec-ultrix${UNAME_RELEASE}
+ 	exit 0 ;;
+     2020:CLIX:*:* | 2430:CLIX:*:*)
+ 	echo clipper-intergraph-clix${UNAME_RELEASE}
+ 	exit 0 ;;
+     mips:*:*:UMIPS | mips:*:*:RISCos)
+ 	eval $set_cc_for_build
+ 	sed 's/^	//' << EOF >$dummy.c
+ #ifdef __cplusplus
+ #include <stdio.h>  /* for printf() prototype */
+ 	int main (int argc, char *argv[]) {
+ #else
+ 	int main (argc, argv) int argc; char *argv[]; {
+ #endif
+ 	#if defined (host_mips) && defined (MIPSEB)
+ 	#if defined (SYSTYPE_SYSV)
+ 	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
+ 	#endif
+ 	#if defined (SYSTYPE_SVR4)
+ 	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
+ 	#endif
+ 	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
+ 	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
+ 	#endif
+ 	#endif
+ 	  exit (-1);
+ 	}
+ EOF
+ 	$CC_FOR_BUILD -o $dummy $dummy.c \
+ 	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
+ 	  && exit 0
+ 	echo mips-mips-riscos${UNAME_RELEASE}
+ 	exit 0 ;;
+     Motorola:PowerMAX_OS:*:*)
+ 	echo powerpc-motorola-powermax
+ 	exit 0 ;;
+     Motorola:*:4.3:PL8-*)
+ 	echo powerpc-harris-powermax
+ 	exit 0 ;;
+     Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
+ 	echo powerpc-harris-powermax
+ 	exit 0 ;;
+     Night_Hawk:Power_UNIX:*:*)
+ 	echo powerpc-harris-powerunix
+ 	exit 0 ;;
+     m88k:CX/UX:7*:*)
+ 	echo m88k-harris-cxux7
+ 	exit 0 ;;
+     m88k:*:4*:R4*)
+ 	echo m88k-motorola-sysv4
+ 	exit 0 ;;
+     m88k:*:3*:R3*)
+ 	echo m88k-motorola-sysv3
+ 	exit 0 ;;
+     AViiON:dgux:*:*)
+         # DG/UX returns AViiON for all architectures
+         UNAME_PROCESSOR=`/usr/bin/uname -p`
+ 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ 	then
+ 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
+ 	       [ ${TARGET_BINARY_INTERFACE}x = x ]
+ 	    then
+ 		echo m88k-dg-dgux${UNAME_RELEASE}
+ 	    else
+ 		echo m88k-dg-dguxbcs${UNAME_RELEASE}
+ 	    fi
+ 	else
+ 	    echo i586-dg-dgux${UNAME_RELEASE}
+ 	fi
+  	exit 0 ;;
+     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
+ 	echo m88k-dolphin-sysv3
+ 	exit 0 ;;
+     M88*:*:R3*:*)
+ 	# Delta 88k system running SVR3
+ 	echo m88k-motorola-sysv3
+ 	exit 0 ;;
+     XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
+ 	echo m88k-tektronix-sysv3
+ 	exit 0 ;;
+     Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
+ 	echo m68k-tektronix-bsd
+ 	exit 0 ;;
+     *:IRIX*:*:*)
+ 	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
+ 	exit 0 ;;
+     ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
+ 	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
+ 	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
+     i*86:AIX:*:*)
+ 	echo i386-ibm-aix
+ 	exit 0 ;;
+     ia64:AIX:*:*)
+ 	if [ -x /usr/bin/oslevel ] ; then
+ 		IBM_REV=`/usr/bin/oslevel`
+ 	else
+ 		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ 	fi
+ 	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
+ 	exit 0 ;;
+     *:AIX:2:3)
+ 	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
+ 		eval $set_cc_for_build
+ 		sed 's/^		//' << EOF >$dummy.c
+ 		#include <sys/systemcfg.h>
+ 
+ 		main()
+ 			{
+ 			if (!__power_pc())
+ 				exit(1);
+ 			puts("powerpc-ibm-aix3.2.5");
+ 			exit(0);
+ 			}
+ EOF
+ 		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+ 		echo rs6000-ibm-aix3.2.5
+ 	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
+ 		echo rs6000-ibm-aix3.2.4
+ 	else
+ 		echo rs6000-ibm-aix3.2
+ 	fi
+ 	exit 0 ;;
+     *:AIX:*:[45])
+ 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
+ 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ 		IBM_ARCH=rs6000
+ 	else
+ 		IBM_ARCH=powerpc
+ 	fi
+ 	if [ -x /usr/bin/oslevel ] ; then
+ 		IBM_REV=`/usr/bin/oslevel`
+ 	else
+ 		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
+ 	fi
+ 	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
+ 	exit 0 ;;
+     *:AIX:*:*)
+ 	echo rs6000-ibm-aix
+ 	exit 0 ;;
+     ibmrt:4.4BSD:*|romp-ibm:BSD:*)
+ 	echo romp-ibm-bsd4.4
+ 	exit 0 ;;
+     ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
+ 	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
+ 	exit 0 ;;                           # report: romp-ibm BSD 4.3
+     *:BOSX:*:*)
+ 	echo rs6000-bull-bosx
+ 	exit 0 ;;
+     DPX/2?00:B.O.S.:*:*)
+ 	echo m68k-bull-sysv3
+ 	exit 0 ;;
+     9000/[34]??:4.3bsd:1.*:*)
+ 	echo m68k-hp-bsd
+ 	exit 0 ;;
+     hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
+ 	echo m68k-hp-bsd4.4
+ 	exit 0 ;;
+     9000/[34678]??:HP-UX:*:*)
+ 	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ 	case "${UNAME_MACHINE}" in
+ 	    9000/31? )            HP_ARCH=m68000 ;;
+ 	    9000/[34]?? )         HP_ARCH=m68k ;;
+ 	    9000/[678][0-9][0-9])
+ 		if [ -x /usr/bin/getconf ]; then
+ 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
+                     sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+                     case "${sc_cpu_version}" in
+                       523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
+                       528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+                       532)                      # CPU_PA_RISC2_0
+                         case "${sc_kernel_bits}" in
+                           32) HP_ARCH="hppa2.0n" ;;
+                           64) HP_ARCH="hppa2.0w" ;;
+ 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
+                         esac ;;
+                     esac
+ 		fi
+ 		if [ "${HP_ARCH}" = "" ]; then
+ 		    eval $set_cc_for_build
+ 		    sed 's/^              //' << EOF >$dummy.c
+ 
+               #define _HPUX_SOURCE
+               #include <stdlib.h>
+               #include <unistd.h>
+ 
+               int main ()
+               {
+               #if defined(_SC_KERNEL_BITS)
+                   long bits = sysconf(_SC_KERNEL_BITS);
+               #endif
+                   long cpu  = sysconf (_SC_CPU_VERSION);
+ 
+                   switch (cpu)
+               	{
+               	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+               	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+               	case CPU_PA_RISC2_0:
+               #if defined(_SC_KERNEL_BITS)
+               	    switch (bits)
+               		{
+               		case 64: puts ("hppa2.0w"); break;
+               		case 32: puts ("hppa2.0n"); break;
+               		default: puts ("hppa2.0"); break;
+               		} break;
+               #else  /* !defined(_SC_KERNEL_BITS) */
+               	    puts ("hppa2.0"); break;
+               #endif
+               	default: puts ("hppa1.0"); break;
+               	}
+                   exit (0);
+               }
+ EOF
+ 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ 		    test -z "$HP_ARCH" && HP_ARCH=hppa
+ 		fi ;;
+ 	esac
+ 	if [ ${HP_ARCH} = "hppa2.0w" ]
+ 	then
+ 	    # avoid double evaluation of $set_cc_for_build
+ 	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
+ 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
+ 	    then
+ 		HP_ARCH="hppa2.0w"
+ 	    else
+ 		HP_ARCH="hppa64"
+ 	    fi
+ 	fi
+ 	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
+ 	exit 0 ;;
+     ia64:HP-UX:*:*)
+ 	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
+ 	echo ia64-hp-hpux${HPUX_REV}
+ 	exit 0 ;;
+     3050*:HI-UX:*:*)
+ 	eval $set_cc_for_build
+ 	sed 's/^	//' << EOF >$dummy.c
+ 	#include <unistd.h>
+ 	int
+ 	main ()
+ 	{
+ 	  long cpu = sysconf (_SC_CPU_VERSION);
+ 	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
+ 	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
+ 	     results, however.  */
+ 	  if (CPU_IS_PA_RISC (cpu))
+ 	    {
+ 	      switch (cpu)
+ 		{
+ 		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
+ 		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
+ 		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
+ 		  default: puts ("hppa-hitachi-hiuxwe2"); break;
+ 		}
+ 	    }
+ 	  else if (CPU_IS_HP_MC68K (cpu))
+ 	    puts ("m68k-hitachi-hiuxwe2");
+ 	  else puts ("unknown-hitachi-hiuxwe2");
+ 	  exit (0);
+ 	}
+ EOF
+ 	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
+ 	echo unknown-hitachi-hiuxwe2
+ 	exit 0 ;;
+     9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
+ 	echo hppa1.1-hp-bsd
+ 	exit 0 ;;
+     9000/8??:4.3bsd:*:*)
+ 	echo hppa1.0-hp-bsd
+ 	exit 0 ;;
+     *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
+ 	echo hppa1.0-hp-mpeix
+ 	exit 0 ;;
+     hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
+ 	echo hppa1.1-hp-osf
+ 	exit 0 ;;
+     hp8??:OSF1:*:*)
+ 	echo hppa1.0-hp-osf
+ 	exit 0 ;;
+     i*86:OSF1:*:*)
+ 	if [ -x /usr/sbin/sysversion ] ; then
+ 	    echo ${UNAME_MACHINE}-unknown-osf1mk
+ 	else
+ 	    echo ${UNAME_MACHINE}-unknown-osf1
+ 	fi
+ 	exit 0 ;;
+     parisc*:Lites*:*:*)
+ 	echo hppa1.1-hp-lites
+ 	exit 0 ;;
+     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
+ 	echo c1-convex-bsd
+         exit 0 ;;
+     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
+ 	if getsysinfo -f scalar_acc
+ 	then echo c32-convex-bsd
+ 	else echo c2-convex-bsd
+ 	fi
+         exit 0 ;;
+     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
+ 	echo c34-convex-bsd
+         exit 0 ;;
+     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
+ 	echo c38-convex-bsd
+         exit 0 ;;
+     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
+ 	echo c4-convex-bsd
+         exit 0 ;;
+     CRAY*Y-MP:*:*:*)
+ 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ 	exit 0 ;;
+     CRAY*[A-Z]90:*:*:*)
+ 	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
+ 	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
+ 	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
+ 	      -e 's/\.[^.]*$/.X/'
+ 	exit 0 ;;
+     CRAY*TS:*:*:*)
+ 	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ 	exit 0 ;;
+     CRAY*T3E:*:*:*)
+ 	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ 	exit 0 ;;
+     CRAY*SV1:*:*:*)
+ 	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ 	exit 0 ;;
+     *:UNICOS/mp:*:*)
+ 	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
+ 	exit 0 ;;
+     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
+ 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
+         FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
+         echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+         exit 0 ;;
+     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
+ 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
+ 	exit 0 ;;
+     sparc*:BSD/OS:*:*)
+ 	echo sparc-unknown-bsdi${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:BSD/OS:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
+ 	# Determine whether the default compiler uses glibc.
+ 	eval $set_cc_for_build
+ 	sed 's/^	//' << EOF >$dummy.c
+ 	#include <features.h>
+ 	#if __GLIBC__ >= 2
+ 	LIBC=gnu
+ 	#else
+ 	LIBC=
+ 	#endif
+ EOF
+ 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+ 	# GNU/FreeBSD systems have a "k" prefix to indicate we are using
+ 	# FreeBSD's kernel, but not the complete OS.
+ 	case ${LIBC} in gnu) kernel_only='k' ;; esac
+ 	echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
+ 	exit 0 ;;
+     i*:CYGWIN*:*)
+ 	echo ${UNAME_MACHINE}-pc-cygwin
+ 	exit 0 ;;
+     i*:MINGW*:*)
+ 	echo ${UNAME_MACHINE}-pc-mingw32
+ 	exit 0 ;;
+     i*:PW*:*)
+ 	echo ${UNAME_MACHINE}-pc-pw32
+ 	exit 0 ;;
+     x86:Interix*:[34]*)
+ 	echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
+ 	exit 0 ;;
+     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
+ 	echo i${UNAME_MACHINE}-pc-mks
+ 	exit 0 ;;
+     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
+ 	# How do we know it's Interix rather than the generic POSIX subsystem?
+ 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
+ 	# UNAME_MACHINE based on the output of uname instead of i386?
+ 	echo i586-pc-interix
+ 	exit 0 ;;
+     i*:UWIN*:*)
+ 	echo ${UNAME_MACHINE}-pc-uwin
+ 	exit 0 ;;
+     p*:CYGWIN*:*)
+ 	echo powerpcle-unknown-cygwin
+ 	exit 0 ;;
+     prep*:SunOS:5.*:*)
+ 	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
+ 	exit 0 ;;
+     *:GNU:*:*)
+ 	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
+ 	exit 0 ;;
+     i*86:Minix:*:*)
+ 	echo ${UNAME_MACHINE}-pc-minix
+ 	exit 0 ;;
+     arm*:Linux:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-linux-gnu
+ 	exit 0 ;;
+     cris:Linux:*:*)
+ 	echo cris-axis-linux-gnu
+ 	exit 0 ;;
+     ia64:Linux:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-linux-gnu
+ 	exit 0 ;;
+     m68*:Linux:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-linux-gnu
+ 	exit 0 ;;
+     mips:Linux:*:*)
+ 	eval $set_cc_for_build
+ 	sed 's/^	//' << EOF >$dummy.c
+ 	#undef CPU
+ 	#undef mips
+ 	#undef mipsel
+ 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ 	CPU=mipsel
+ 	#else
+ 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ 	CPU=mips
+ 	#else
+ 	CPU=
+ 	#endif
+ 	#endif
+ EOF
+ 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+ 	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
+ 	;;
+     mips64:Linux:*:*)
+ 	eval $set_cc_for_build
+ 	sed 's/^	//' << EOF >$dummy.c
+ 	#undef CPU
+ 	#undef mips64
+ 	#undef mips64el
+ 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
+ 	CPU=mips64el
+ 	#else
+ 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
+ 	CPU=mips64
+ 	#else
+ 	CPU=
+ 	#endif
+ 	#endif
+ EOF
+ 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
+ 	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
+ 	;;
+     ppc:Linux:*:*)
+ 	echo powerpc-unknown-linux-gnu
+ 	exit 0 ;;
+     ppc64:Linux:*:*)
+ 	echo powerpc64-unknown-linux-gnu
+ 	exit 0 ;;
+     alpha:Linux:*:*)
+ 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
+ 	  EV5)   UNAME_MACHINE=alphaev5 ;;
+ 	  EV56)  UNAME_MACHINE=alphaev56 ;;
+ 	  PCA56) UNAME_MACHINE=alphapca56 ;;
+ 	  PCA57) UNAME_MACHINE=alphapca56 ;;
+ 	  EV6)   UNAME_MACHINE=alphaev6 ;;
+ 	  EV67)  UNAME_MACHINE=alphaev67 ;;
+ 	  EV68*) UNAME_MACHINE=alphaev68 ;;
+         esac
+ 	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
+ 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
+ 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
+ 	exit 0 ;;
+     parisc:Linux:*:* | hppa:Linux:*:*)
+ 	# Look for CPU level
+ 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
+ 	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
+ 	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
+ 	  *)    echo hppa-unknown-linux-gnu ;;
+ 	esac
+ 	exit 0 ;;
+     parisc64:Linux:*:* | hppa64:Linux:*:*)
+ 	echo hppa64-unknown-linux-gnu
+ 	exit 0 ;;
+     s390:Linux:*:* | s390x:Linux:*:*)
+ 	echo ${UNAME_MACHINE}-ibm-linux
+ 	exit 0 ;;
+     sh64*:Linux:*:*)
+     	echo ${UNAME_MACHINE}-unknown-linux-gnu
+ 	exit 0 ;;
+     sh*:Linux:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-linux-gnu
+ 	exit 0 ;;
+     sparc:Linux:*:* | sparc64:Linux:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-linux-gnu
+ 	exit 0 ;;
+     x86_64:Linux:*:*)
+ 	echo x86_64-unknown-linux-gnu
+ 	exit 0 ;;
+     i*86:Linux:*:*)
+ 	# The BFD linker knows what the default object file format is, so
+ 	# first see if it will tell us. cd to the root directory to prevent
+ 	# problems with other programs or directories called `ld' in the path.
+ 	# Set LC_ALL=C to ensure ld outputs messages in English.
+ 	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
+ 			 | sed -ne '/supported targets:/!d
+ 				    s/[ 	][ 	]*/ /g
+ 				    s/.*supported targets: *//
+ 				    s/ .*//
+ 				    p'`
+         case "$ld_supported_targets" in
+ 	  elf32-i386)
+ 		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
+ 		;;
+ 	  a.out-i386-linux)
+ 		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
+ 		exit 0 ;;
+ 	  coff-i386)
+ 		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
+ 		exit 0 ;;
+ 	  "")
+ 		# Either a pre-BFD a.out linker (linux-gnuoldld) or
+ 		# one that does not give us useful --help.
+ 		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
+ 		exit 0 ;;
+ 	esac
+ 	# Determine whether the default compiler is a.out or elf
+ 	eval $set_cc_for_build
+ 	sed 's/^	//' << EOF >$dummy.c
+ 	#include <features.h>
+ 	#ifdef __ELF__
+ 	# ifdef __GLIBC__
+ 	#  if __GLIBC__ >= 2
+ 	LIBC=gnu
+ 	#  else
+ 	LIBC=gnulibc1
+ 	#  endif
+ 	# else
+ 	LIBC=gnulibc1
+ 	# endif
+ 	#else
+ 	#ifdef __INTEL_COMPILER
+ 	LIBC=gnu
+ 	#else
+ 	LIBC=gnuaout
+ 	#endif
+ 	#endif
+ EOF
+ 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
+ 	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
+ 	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
+ 	;;
+     i*86:DYNIX/ptx:4*:*)
+ 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
+ 	# earlier versions are messed up and put the nodename in both
+ 	# sysname and nodename.
+ 	echo i386-sequent-sysv4
+ 	exit 0 ;;
+     i*86:UNIX_SV:4.2MP:2.*)
+         # Unixware is an offshoot of SVR4, but it has its own version
+         # number series starting with 2...
+         # I am not positive that other SVR4 systems won't match this,
+ 	# I just have to hope.  -- rms.
+         # Use sysv4.2uw... so that sysv4* matches it.
+ 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ 	exit 0 ;;
+     i*86:OS/2:*:*)
+ 	# If we were able to find `uname', then EMX Unix compatibility
+ 	# is probably installed.
+ 	echo ${UNAME_MACHINE}-pc-os2-emx
+ 	exit 0 ;;
+     i*86:XTS-300:*:STOP)
+ 	echo ${UNAME_MACHINE}-unknown-stop
+ 	exit 0 ;;
+     i*86:atheos:*:*)
+ 	echo ${UNAME_MACHINE}-unknown-atheos
+ 	exit 0 ;;
+     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
+ 	echo i386-unknown-lynxos${UNAME_RELEASE}
+ 	exit 0 ;;
+     i*86:*DOS:*:*)
+ 	echo ${UNAME_MACHINE}-pc-msdosdjgpp
+ 	exit 0 ;;
+     i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
+ 	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
+ 	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
+ 		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
+ 	else
+ 		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
+ 	fi
+ 	exit 0 ;;
+     i*86:*:5:[78]*)
+ 	case `/bin/uname -X | grep "^Machine"` in
+ 	    *486*)	     UNAME_MACHINE=i486 ;;
+ 	    *Pentium)	     UNAME_MACHINE=i586 ;;
+ 	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
+ 	esac
+ 	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
+ 	exit 0 ;;
+     i*86:*:3.2:*)
+ 	if test -f /usr/options/cb.name; then
+ 		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
+ 		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
+ 	elif /bin/uname -X 2>/dev/null >/dev/null ; then
+ 		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
+ 		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
+ 		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
+ 			&& UNAME_MACHINE=i586
+ 		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
+ 			&& UNAME_MACHINE=i686
+ 		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
+ 			&& UNAME_MACHINE=i686
+ 		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
+ 	else
+ 		echo ${UNAME_MACHINE}-pc-sysv32
+ 	fi
+ 	exit 0 ;;
+     pc:*:*:*)
+ 	# Left here for compatibility:
+         # uname -m prints for DJGPP always 'pc', but it prints nothing about
+         # the processor, so we play safe by assuming i386.
+ 	echo i386-pc-msdosdjgpp
+         exit 0 ;;
+     Intel:Mach:3*:*)
+ 	echo i386-pc-mach3
+ 	exit 0 ;;
+     paragon:*:*:*)
+ 	echo i860-intel-osf1
+ 	exit 0 ;;
+     i860:*:4.*:*) # i860-SVR4
+ 	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
+ 	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
+ 	else # Add other i860-SVR4 vendors below as they are discovered.
+ 	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
+ 	fi
+ 	exit 0 ;;
+     mini*:CTIX:SYS*5:*)
+ 	# "miniframe"
+ 	echo m68010-convergent-sysv
+ 	exit 0 ;;
+     mc68k:UNIX:SYSTEM5:3.51m)
+ 	echo m68k-convergent-sysv
+ 	exit 0 ;;
+     M680?0:D-NIX:5.3:*)
+ 	echo m68k-diab-dnix
+ 	exit 0 ;;
+     M68*:*:R3V[567]*:*)
+ 	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
+     3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
+ 	OS_REL=''
+ 	test -r /etc/.relid \
+ 	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
+ 	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ 	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
+ 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
+ 	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
+     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
+         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+           && echo i486-ncr-sysv4 && exit 0 ;;
+     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
+ 	echo m68k-unknown-lynxos${UNAME_RELEASE}
+ 	exit 0 ;;
+     mc68030:UNIX_System_V:4.*:*)
+ 	echo m68k-atari-sysv4
+ 	exit 0 ;;
+     TSUNAMI:LynxOS:2.*:*)
+ 	echo sparc-unknown-lynxos${UNAME_RELEASE}
+ 	exit 0 ;;
+     rs6000:LynxOS:2.*:*)
+ 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
+ 	exit 0 ;;
+     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
+ 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
+ 	exit 0 ;;
+     SM[BE]S:UNIX_SV:*:*)
+ 	echo mips-dde-sysv${UNAME_RELEASE}
+ 	exit 0 ;;
+     RM*:ReliantUNIX-*:*:*)
+ 	echo mips-sni-sysv4
+ 	exit 0 ;;
+     RM*:SINIX-*:*:*)
+ 	echo mips-sni-sysv4
+ 	exit 0 ;;
+     *:SINIX-*:*:*)
+ 	if uname -p 2>/dev/null >/dev/null ; then
+ 		UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ 		echo ${UNAME_MACHINE}-sni-sysv4
+ 	else
+ 		echo ns32k-sni-sysv
+ 	fi
+ 	exit 0 ;;
+     PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+                       # says <Richard.M.Bartel at ccMail.Census.GOV>
+         echo i586-unisys-sysv4
+         exit 0 ;;
+     *:UNIX_System_V:4*:FTX*)
+ 	# From Gerald Hewes <hewes at openmarket.com>.
+ 	# How about differentiating between stratus architectures? -djm
+ 	echo hppa1.1-stratus-sysv4
+ 	exit 0 ;;
+     *:*:*:FTX*)
+ 	# From seanf at swdc.stratus.com.
+ 	echo i860-stratus-sysv4
+ 	exit 0 ;;
+     *:VOS:*:*)
+ 	# From Paul.Green at stratus.com.
+ 	echo hppa1.1-stratus-vos
+ 	exit 0 ;;
+     mc68*:A/UX:*:*)
+ 	echo m68k-apple-aux${UNAME_RELEASE}
+ 	exit 0 ;;
+     news*:NEWS-OS:6*:*)
+ 	echo mips-sony-newsos6
+ 	exit 0 ;;
+     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
+ 	if [ -d /usr/nec ]; then
+ 	        echo mips-nec-sysv${UNAME_RELEASE}
+ 	else
+ 	        echo mips-unknown-sysv${UNAME_RELEASE}
+ 	fi
+         exit 0 ;;
+     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
+ 	echo powerpc-be-beos
+ 	exit 0 ;;
+     BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
+ 	echo powerpc-apple-beos
+ 	exit 0 ;;
+     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
+ 	echo i586-pc-beos
+ 	exit 0 ;;
+     SX-4:SUPER-UX:*:*)
+ 	echo sx4-nec-superux${UNAME_RELEASE}
+ 	exit 0 ;;
+     SX-5:SUPER-UX:*:*)
+ 	echo sx5-nec-superux${UNAME_RELEASE}
+ 	exit 0 ;;
+     SX-6:SUPER-UX:*:*)
+ 	echo sx6-nec-superux${UNAME_RELEASE}
+ 	exit 0 ;;
+     Power*:Rhapsody:*:*)
+ 	echo powerpc-apple-rhapsody${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:Rhapsody:*:*)
+ 	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:Darwin:*:*)
+ 	case `uname -p` in
+ 	    *86) UNAME_PROCESSOR=i686 ;;
+ 	    powerpc) UNAME_PROCESSOR=powerpc ;;
+ 	esac
+ 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:procnto*:*:* | *:QNX:[0123456789]*:*)
+ 	UNAME_PROCESSOR=`uname -p`
+ 	if test "$UNAME_PROCESSOR" = "x86"; then
+ 		UNAME_PROCESSOR=i386
+ 		UNAME_MACHINE=pc
+ 	fi
+ 	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:QNX:*:4*)
+ 	echo i386-pc-qnx
+ 	exit 0 ;;
+     NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
+ 	echo nsr-tandem-nsk${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:NonStop-UX:*:*)
+ 	echo mips-compaq-nonstopux
+ 	exit 0 ;;
+     BS2000:POSIX*:*:*)
+ 	echo bs2000-siemens-sysv
+ 	exit 0 ;;
+     DS/*:UNIX_System_V:*:*)
+ 	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
+ 	exit 0 ;;
+     *:Plan9:*:*)
+ 	# "uname -m" is not consistent, so use $cputype instead. 386
+ 	# is converted to i386 for consistency with other x86
+ 	# operating systems.
+ 	if test "$cputype" = "386"; then
+ 	    UNAME_MACHINE=i386
+ 	else
+ 	    UNAME_MACHINE="$cputype"
+ 	fi
+ 	echo ${UNAME_MACHINE}-unknown-plan9
+ 	exit 0 ;;
+     *:TOPS-10:*:*)
+ 	echo pdp10-unknown-tops10
+ 	exit 0 ;;
+     *:TENEX:*:*)
+ 	echo pdp10-unknown-tenex
+ 	exit 0 ;;
+     KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
+ 	echo pdp10-dec-tops20
+ 	exit 0 ;;
+     XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
+ 	echo pdp10-xkl-tops20
+ 	exit 0 ;;
+     *:TOPS-20:*:*)
+ 	echo pdp10-unknown-tops20
+ 	exit 0 ;;
+     *:ITS:*:*)
+ 	echo pdp10-unknown-its
+ 	exit 0 ;;
+     SEI:*:*:SEIUX)
+         echo mips-sei-seiux${UNAME_RELEASE}
+ 	exit 0 ;;
+ esac
+ 
+ #echo '(No uname command or uname output not recognized.)' 1>&2
+ #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
+ 
+ eval $set_cc_for_build
+ cat >$dummy.c <<EOF
+ #ifdef _SEQUENT_
+ # include <sys/types.h>
+ # include <sys/utsname.h>
+ #endif
+ main ()
+ {
+ #if defined (sony)
+ #if defined (MIPSEB)
+   /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
+      I don't know....  */
+   printf ("mips-sony-bsd\n"); exit (0);
+ #else
+ #include <sys/param.h>
+   printf ("m68k-sony-newsos%s\n",
+ #ifdef NEWSOS4
+           "4"
+ #else
+ 	  ""
+ #endif
+          ); exit (0);
+ #endif
+ #endif
+ 
+ #if defined (__arm) && defined (__acorn) && defined (__unix)
+   printf ("arm-acorn-riscix"); exit (0);
+ #endif
+ 
+ #if defined (hp300) && !defined (hpux)
+   printf ("m68k-hp-bsd\n"); exit (0);
+ #endif
+ 
+ #if defined (NeXT)
+ #if !defined (__ARCHITECTURE__)
+ #define __ARCHITECTURE__ "m68k"
+ #endif
+   int version;
+   version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
+   if (version < 4)
+     printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
+   else
+     printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
+   exit (0);
+ #endif
+ 
+ #if defined (MULTIMAX) || defined (n16)
+ #if defined (UMAXV)
+   printf ("ns32k-encore-sysv\n"); exit (0);
+ #else
+ #if defined (CMU)
+   printf ("ns32k-encore-mach\n"); exit (0);
+ #else
+   printf ("ns32k-encore-bsd\n"); exit (0);
+ #endif
+ #endif
+ #endif
+ 
+ #if defined (__386BSD__)
+   printf ("i386-pc-bsd\n"); exit (0);
+ #endif
+ 
+ #if defined (sequent)
+ #if defined (i386)
+   printf ("i386-sequent-dynix\n"); exit (0);
+ #endif
+ #if defined (ns32000)
+   printf ("ns32k-sequent-dynix\n"); exit (0);
+ #endif
+ #endif
+ 
+ #if defined (_SEQUENT_)
+     struct utsname un;
+ 
+     uname(&un);
+ 
+     if (strncmp(un.version, "V2", 2) == 0) {
+ 	printf ("i386-sequent-ptx2\n"); exit (0);
+     }
+     if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
+ 	printf ("i386-sequent-ptx1\n"); exit (0);
+     }
+     printf ("i386-sequent-ptx\n"); exit (0);
+ 
+ #endif
+ 
+ #if defined (vax)
+ # if !defined (ultrix)
+ #  include <sys/param.h>
+ #  if defined (BSD)
+ #   if BSD == 43
+       printf ("vax-dec-bsd4.3\n"); exit (0);
+ #   else
+ #    if BSD == 199006
+       printf ("vax-dec-bsd4.3reno\n"); exit (0);
+ #    else
+       printf ("vax-dec-bsd\n"); exit (0);
+ #    endif
+ #   endif
+ #  else
+     printf ("vax-dec-bsd\n"); exit (0);
+ #  endif
+ # else
+     printf ("vax-dec-ultrix\n"); exit (0);
+ # endif
+ #endif
+ 
+ #if defined (alliant) && defined (i860)
+   printf ("i860-alliant-bsd\n"); exit (0);
+ #endif
+ 
+   exit (1);
+ }
+ EOF
+ 
+ $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
+ 
+ # Apollos put the system type in the environment.
+ 
+ test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
+ 
+ # Convex versions that predate uname can use getsysinfo(1)
+ 
+ if [ -x /usr/convex/getsysinfo ]
+ then
+     case `getsysinfo -f cpu_type` in
+     c1*)
+ 	echo c1-convex-bsd
+ 	exit 0 ;;
+     c2*)
+ 	if getsysinfo -f scalar_acc
+ 	then echo c32-convex-bsd
+ 	else echo c2-convex-bsd
+ 	fi
+ 	exit 0 ;;
+     c34*)
+ 	echo c34-convex-bsd
+ 	exit 0 ;;
+     c38*)
+ 	echo c38-convex-bsd
+ 	exit 0 ;;
+     c4*)
+ 	echo c4-convex-bsd
+ 	exit 0 ;;
+     esac
+ fi
+ 
+ cat >&2 <<EOF
+ $0: unable to guess system type
+ 
+ This script, last modified $timestamp, has failed to recognize
+ the operating system you are using. It is advised that you
+ download the most up to date version of the config scripts from
+ 
+     ftp://ftp.gnu.org/pub/gnu/config/
+ 
+ If the version you run ($0) is already up to date, please
+ send the following data and any information you think might be
+ pertinent to <config-patches at gnu.org> in order to provide the needed
+ information to handle your system.
+ 
+ config.guess timestamp = $timestamp
+ 
+ uname -m = `(uname -m) 2>/dev/null || echo unknown`
+ uname -r = `(uname -r) 2>/dev/null || echo unknown`
+ uname -s = `(uname -s) 2>/dev/null || echo unknown`
+ uname -v = `(uname -v) 2>/dev/null || echo unknown`
+ 
+ /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
+ /bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
+ 
+ hostinfo               = `(hostinfo) 2>/dev/null`
+ /bin/universe          = `(/bin/universe) 2>/dev/null`
+ /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
+ /bin/arch              = `(/bin/arch) 2>/dev/null`
+ /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
+ /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
+ 
+ UNAME_MACHINE = ${UNAME_MACHINE}
+ UNAME_RELEASE = ${UNAME_RELEASE}
+ UNAME_SYSTEM  = ${UNAME_SYSTEM}
+ UNAME_VERSION = ${UNAME_VERSION}
+ EOF
+ 
+ exit 1
+ 
+ # Local variables:
+ # eval: (add-hook 'write-file-hooks 'time-stamp)
+ # time-stamp-start: "timestamp='"
+ # time-stamp-format: "%:y-%02m-%02d"
+ # time-stamp-end: "'"
+ # End:


Index: llvm/lib/CodeGen/ELF/config.h.in
diff -c /dev/null llvm/lib/CodeGen/ELF/config.h.in:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/config.h.in	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,136 ----
+ /* config.h.in.  Generated automatically from configure.in by autoheader.  */
+ 
+ /* Define to empty if the keyword does not work.  */
+ #undef const
+ 
+ /* Define if you have a working `mmap' system call.  */
+ #undef HAVE_MMAP
+ 
+ /* Define to `long' if <sys/types.h> doesn't define.  */
+ #undef off_t
+ 
+ /* Define to `unsigned' if <sys/types.h> doesn't define.  */
+ #undef size_t
+ 
+ /* Define if you have the ANSI C header files.  */
+ #undef STDC_HEADERS
+ 
+ /* Define if you want to include extra debugging code */
+ #undef ENABLE_DEBUG
+ 
+ /* Define if memmove() does not copy overlapping arrays correctly */
+ #undef HAVE_BROKEN_MEMMOVE
+ 
+ /* Define if you have the catgets function. */
+ #undef HAVE_CATGETS
+ 
+ /* Define if you have the gettext function. */
+ #undef HAVE_GETTEXT
+ 
+ /* Define if you have the memset function.  */
+ #undef HAVE_MEMSET
+ 
+ /* Define if struct nlist is declared in <elf.h> or <sys/elf.h> */
+ #undef HAVE_STRUCT_NLIST_DECLARATION
+ 
+ /* Define if Elf32_Dyn is declared in <link.h> */
+ #undef __LIBELF_NEED_LINK_H
+ 
+ /* Define to `<elf.h>' or `<sys/elf.h>' if one of them is present */
+ #undef __LIBELF_HEADER_ELF_H
+ 
+ /* Define if you want 64-bit support (and your system supports it) */
+ #undef __LIBELF64
+ 
+ /* Define if you want 64-bit support, and are running IRIX */
+ #undef __LIBELF64_IRIX
+ 
+ /* Define if you want 64-bit support, and are running Linux */
+ #undef __LIBELF64_LINUX
+ 
+ /* Define if you want symbol versioning (and your system supports it) */
+ #undef __LIBELF_SYMBOL_VERSIONS
+ 
+ /* Define if symbol versioning uses Sun section type (SHT_SUNW_*) */
+ #undef __LIBELF_SUN_SYMBOL_VERSIONS
+ 
+ /* Define if symbol versioning uses GNU section types (SHT_GNU_*) */
+ #undef __LIBELF_GNU_SYMBOL_VERSIONS
+ 
+ /* Define to a 64-bit signed integer type if one exists */
+ #undef __libelf_i64_t
+ 
+ /* Define to a 64-bit unsigned integer type if one exists */
+ #undef __libelf_u64_t
+ 
+ /* Define to a 32-bit signed integer type if one exists */
+ #undef __libelf_i32_t
+ 
+ /* Define to a 32-bit unsigned integer type if one exists */
+ #undef __libelf_u32_t
+ 
+ /* Define to a 16-bit signed integer type if one exists */
+ #undef __libelf_i16_t
+ 
+ /* Define to a 16-bit unsigned integer type if one exists */
+ #undef __libelf_u16_t
+ 
+ /* The number of bytes in a int.  */
+ #undef SIZEOF_INT
+ 
+ /* The number of bytes in a long.  */
+ #undef SIZEOF_LONG
+ 
+ /* The number of bytes in a long long.  */
+ #undef SIZEOF_LONG_LONG
+ 
+ /* The number of bytes in a short.  */
+ #undef SIZEOF_SHORT
+ 
+ /* Define if you have the ftruncate function.  */
+ #undef HAVE_FTRUNCATE
+ 
+ /* Define if you have the getpagesize function.  */
+ #undef HAVE_GETPAGESIZE
+ 
+ /* Define if you have the memcmp function.  */
+ #undef HAVE_MEMCMP
+ 
+ /* Define if you have the memcpy function.  */
+ #undef HAVE_MEMCPY
+ 
+ /* Define if you have the memmove function.  */
+ #undef HAVE_MEMMOVE
+ 
+ /* Define if you have the memset function.  */
+ #undef HAVE_MEMSET
+ 
+ /* Define if you have the <ar.h> header file.  */
+ #undef HAVE_AR_H
+ 
+ /* Define if you have the <elf.h> header file.  */
+ #undef HAVE_ELF_H
+ 
+ /* Define if you have the <fcntl.h> header file.  */
+ #undef HAVE_FCNTL_H
+ 
+ /* Define if you have the <gelf.h> header file.  */
+ #undef HAVE_GELF_H
+ 
+ /* Define if you have the <libelf.h> header file.  */
+ #undef HAVE_LIBELF_H
+ 
+ /* Define if you have the <link.h> header file.  */
+ #undef HAVE_LINK_H
+ 
+ /* Define if you have the <nlist.h> header file.  */
+ #undef HAVE_NLIST_H
+ 
+ /* Define if you have the <sys/elf.h> header file.  */
+ #undef HAVE_SYS_ELF_H
+ 
+ /* Define if you have the <sys/link.h> header file.  */
+ #undef HAVE_SYS_LINK_H
+ 
+ /* Define if you have the <unistd.h> header file.  */
+ #undef HAVE_UNISTD_H


Index: llvm/lib/CodeGen/ELF/config.sub
diff -c /dev/null llvm/lib/CodeGen/ELF/config.sub:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/config.sub	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,1505 ----
+ #! /bin/sh
+ # Configuration validation subroutine script.
+ #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
+ #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+ 
+ timestamp='2003-07-17'
+ 
+ # This file is (in principle) common to ALL GNU software.
+ # The presence of a machine in this file suggests that SOME GNU software
+ # can handle that machine.  It does not imply ALL GNU software can.
+ #
+ # This file is free software; you can redistribute it and/or modify
+ # it under the terms of the GNU General Public License as published by
+ # the Free Software Foundation; either version 2 of the License, or
+ # (at your option) any later version.
+ #
+ # This program is distributed in the hope that it will be useful,
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ # GNU General Public License for more details.
+ #
+ # You should have received a copy of the GNU General Public License
+ # along with this program; if not, write to the Free Software
+ # Foundation, Inc., 59 Temple Place - Suite 330,
+ # Boston, MA 02111-1307, USA.
+ 
+ # As a special exception to the GNU General Public License, if you
+ # distribute this file as part of a program that contains a
+ # configuration script generated by Autoconf, you may include it under
+ # the same distribution terms that you use for the rest of that program.
+ 
+ # Please send patches to <config-patches at gnu.org>.  Submit a context
+ # diff and a properly formatted ChangeLog entry.
+ #
+ # Configuration subroutine to validate and canonicalize a configuration type.
+ # Supply the specified configuration type as an argument.
+ # If it is invalid, we print an error message on stderr and exit with code 1.
+ # Otherwise, we print the canonical config type on stdout and succeed.
+ 
+ # This file is supposed to be the same for all GNU packages
+ # and recognize all the CPU types, system types and aliases
+ # that are meaningful with *any* GNU software.
+ # Each package is responsible for reporting which valid configurations
+ # it does not support.  The user should be able to distinguish
+ # a failure to support a valid configuration from a meaningless
+ # configuration.
+ 
+ # The goal of this file is to map all the various variations of a given
+ # machine specification into a single specification in the form:
+ #	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
+ # or in some cases, the newer four-part form:
+ #	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
+ # It is wrong to echo any other type of specification.
+ 
+ me=`echo "$0" | sed -e 's,.*/,,'`
+ 
+ usage="\
+ Usage: $0 [OPTION] CPU-MFR-OPSYS
+        $0 [OPTION] ALIAS
+ 
+ Canonicalize a configuration name.
+ 
+ Operation modes:
+   -h, --help         print this help, then exit
+   -t, --time-stamp   print date of last modification, then exit
+   -v, --version      print version number, then exit
+ 
+ Report bugs and patches to <config-patches at gnu.org>."
+ 
+ version="\
+ GNU config.sub ($timestamp)
+ 
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
+ Free Software Foundation, Inc.
+ 
+ This is free software; see the source for copying conditions.  There is NO
+ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
+ 
+ help="
+ Try \`$me --help' for more information."
+ 
+ # Parse command line
+ while test $# -gt 0 ; do
+   case $1 in
+     --time-stamp | --time* | -t )
+        echo "$timestamp" ; exit 0 ;;
+     --version | -v )
+        echo "$version" ; exit 0 ;;
+     --help | --h* | -h )
+        echo "$usage"; exit 0 ;;
+     -- )     # Stop option processing
+        shift; break ;;
+     - )	# Use stdin as input.
+        break ;;
+     -* )
+        echo "$me: invalid option $1$help"
+        exit 1 ;;
+ 
+     *local*)
+        # First pass through any local machine types.
+        echo $1
+        exit 0;;
+ 
+     * )
+        break ;;
+   esac
+ done
+ 
+ case $# in
+  0) echo "$me: missing argument$help" >&2
+     exit 1;;
+  1) ;;
+  *) echo "$me: too many arguments$help" >&2
+     exit 1;;
+ esac
+ 
+ # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
+ # Here we must recognize all the valid KERNEL-OS combinations.
+ maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+ case $maybe_os in
+   nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
+     os=-$maybe_os
+     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
+     ;;
+   *)
+     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
+     if [ $basic_machine != $1 ]
+     then os=`echo $1 | sed 's/.*-/-/'`
+     else os=; fi
+     ;;
+ esac
+ 
+ ### Let's recognize common machines as not being operating systems so
+ ### that things like config.sub decstation-3100 work.  We also
+ ### recognize some manufacturers as not being operating systems, so we
+ ### can provide default operating systems below.
+ case $os in
+ 	-sun*os*)
+ 		# Prevent following clause from handling this invalid input.
+ 		;;
+ 	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
+ 	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
+ 	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
+ 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
+ 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
+ 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
+ 	-apple | -axis)
+ 		os=
+ 		basic_machine=$1
+ 		;;
+ 	-sim | -cisco | -oki | -wec | -winbond)
+ 		os=
+ 		basic_machine=$1
+ 		;;
+ 	-scout)
+ 		;;
+ 	-wrs)
+ 		os=-vxworks
+ 		basic_machine=$1
+ 		;;
+ 	-chorusos*)
+ 		os=-chorusos
+ 		basic_machine=$1
+ 		;;
+  	-chorusrdb)
+  		os=-chorusrdb
+ 		basic_machine=$1
+  		;;
+ 	-hiux*)
+ 		os=-hiuxwe2
+ 		;;
+ 	-sco5)
+ 		os=-sco3.2v5
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-sco4)
+ 		os=-sco3.2v4
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-sco3.2.[4-9]*)
+ 		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-sco3.2v[4-9]*)
+ 		# Don't forget version if it is 3.2v4 or newer.
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-sco*)
+ 		os=-sco3.2v2
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-udk*)
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-isc)
+ 		os=-isc2.2
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-clix*)
+ 		basic_machine=clipper-intergraph
+ 		;;
+ 	-isc*)
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
+ 		;;
+ 	-lynx*)
+ 		os=-lynxos
+ 		;;
+ 	-ptx*)
+ 		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
+ 		;;
+ 	-windowsnt*)
+ 		os=`echo $os | sed -e 's/windowsnt/winnt/'`
+ 		;;
+ 	-psos*)
+ 		os=-psos
+ 		;;
+ 	-mint | -mint[0-9]*)
+ 		basic_machine=m68k-atari
+ 		os=-mint
+ 		;;
+ esac
+ 
+ # Decode aliases for certain CPU-COMPANY combinations.
+ case $basic_machine in
+ 	# Recognize the basic CPU types without company name.
+ 	# Some are omitted here because they have special meanings below.
+ 	1750a | 580 \
+ 	| a29k \
+ 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
+ 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
+ 	| am33_2.0 \
+ 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
+ 	| c4x | clipper \
+ 	| d10v | d30v | dlx | dsp16xx \
+ 	| fr30 | frv \
+ 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
+ 	| i370 | i860 | i960 | ia64 \
+ 	| ip2k | iq2000 \
+ 	| m32r | m68000 | m68k | m88k | mcore \
+ 	| mips | mipsbe | mipseb | mipsel | mipsle \
+ 	| mips16 \
+ 	| mips64 | mips64el \
+ 	| mips64vr | mips64vrel \
+ 	| mips64orion | mips64orionel \
+ 	| mips64vr4100 | mips64vr4100el \
+ 	| mips64vr4300 | mips64vr4300el \
+ 	| mips64vr5000 | mips64vr5000el \
+ 	| mipsisa32 | mipsisa32el \
+ 	| mipsisa32r2 | mipsisa32r2el \
+ 	| mipsisa64 | mipsisa64el \
+ 	| mipsisa64sb1 | mipsisa64sb1el \
+ 	| mipsisa64sr71k | mipsisa64sr71kel \
+ 	| mipstx39 | mipstx39el \
+ 	| mn10200 | mn10300 \
+ 	| msp430 \
+ 	| ns16k | ns32k \
+ 	| openrisc | or32 \
+ 	| pdp10 | pdp11 | pj | pjl \
+ 	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ 	| pyramid \
+ 	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
+ 	| sh64 | sh64le \
+ 	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
+ 	| strongarm \
+ 	| tahoe | thumb | tic4x | tic80 | tron \
+ 	| v850 | v850e \
+ 	| we32k \
+ 	| x86 | xscale | xstormy16 | xtensa \
+ 	| z8k)
+ 		basic_machine=$basic_machine-unknown
+ 		;;
+ 	m6811 | m68hc11 | m6812 | m68hc12)
+ 		# Motorola 68HC11/12.
+ 		basic_machine=$basic_machine-unknown
+ 		os=-none
+ 		;;
+ 	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
+ 		;;
+ 
+ 	# We use `pc' rather than `unknown'
+ 	# because (1) that's what they normally are, and
+ 	# (2) the word "unknown" tends to confuse beginning users.
+ 	i*86 | x86_64)
+ 	  basic_machine=$basic_machine-pc
+ 	  ;;
+ 	# Object if more than one company name word.
+ 	*-*-*)
+ 		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ 		exit 1
+ 		;;
+ 	# Recognize the basic CPU types with company name.
+ 	580-* \
+ 	| a29k-* \
+ 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
+ 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
+ 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
+ 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
+ 	| avr-* \
+ 	| bs2000-* \
+ 	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
+ 	| clipper-* | cydra-* \
+ 	| d10v-* | d30v-* | dlx-* \
+ 	| elxsi-* \
+ 	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
+ 	| h8300-* | h8500-* \
+ 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
+ 	| i*86-* | i860-* | i960-* | ia64-* \
+ 	| ip2k-* | iq2000-* \
+ 	| m32r-* \
+ 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
+ 	| m88110-* | m88k-* | mcore-* \
+ 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
+ 	| mips16-* \
+ 	| mips64-* | mips64el-* \
+ 	| mips64vr-* | mips64vrel-* \
+ 	| mips64orion-* | mips64orionel-* \
+ 	| mips64vr4100-* | mips64vr4100el-* \
+ 	| mips64vr4300-* | mips64vr4300el-* \
+ 	| mips64vr5000-* | mips64vr5000el-* \
+ 	| mipsisa32-* | mipsisa32el-* \
+ 	| mipsisa32r2-* | mipsisa32r2el-* \
+ 	| mipsisa64-* | mipsisa64el-* \
+ 	| mipsisa64sb1-* | mipsisa64sb1el-* \
+ 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
+ 	| mipstx39-* | mipstx39el-* \
+ 	| msp430-* \
+ 	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
+ 	| orion-* \
+ 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
+ 	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ 	| pyramid-* \
+ 	| romp-* | rs6000-* \
+ 	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
+ 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
+ 	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
+ 	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
+ 	| tahoe-* | thumb-* \
+ 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
+ 	| tron-* \
+ 	| v850-* | v850e-* | vax-* \
+ 	| we32k-* \
+ 	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
+ 	| xtensa-* \
+ 	| ymp-* \
+ 	| z8k-*)
+ 		;;
+ 	# Recognize the various machine names and aliases which stand
+ 	# for a CPU type and a company and sometimes even an OS.
+ 	386bsd)
+ 		basic_machine=i386-unknown
+ 		os=-bsd
+ 		;;
+ 	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
+ 		basic_machine=m68000-att
+ 		;;
+ 	3b*)
+ 		basic_machine=we32k-att
+ 		;;
+ 	a29khif)
+ 		basic_machine=a29k-amd
+ 		os=-udi
+ 		;;
+ 	adobe68k)
+ 		basic_machine=m68010-adobe
+ 		os=-scout
+ 		;;
+ 	alliant | fx80)
+ 		basic_machine=fx80-alliant
+ 		;;
+ 	altos | altos3068)
+ 		basic_machine=m68k-altos
+ 		;;
+ 	am29k)
+ 		basic_machine=a29k-none
+ 		os=-bsd
+ 		;;
+ 	amd64)
+ 		basic_machine=x86_64-pc
+ 		;;
+ 	amdahl)
+ 		basic_machine=580-amdahl
+ 		os=-sysv
+ 		;;
+ 	amiga | amiga-*)
+ 		basic_machine=m68k-unknown
+ 		;;
+ 	amigaos | amigados)
+ 		basic_machine=m68k-unknown
+ 		os=-amigaos
+ 		;;
+ 	amigaunix | amix)
+ 		basic_machine=m68k-unknown
+ 		os=-sysv4
+ 		;;
+ 	apollo68)
+ 		basic_machine=m68k-apollo
+ 		os=-sysv
+ 		;;
+ 	apollo68bsd)
+ 		basic_machine=m68k-apollo
+ 		os=-bsd
+ 		;;
+ 	aux)
+ 		basic_machine=m68k-apple
+ 		os=-aux
+ 		;;
+ 	balance)
+ 		basic_machine=ns32k-sequent
+ 		os=-dynix
+ 		;;
+ 	c90)
+ 		basic_machine=c90-cray
+ 		os=-unicos
+ 		;;
+ 	convex-c1)
+ 		basic_machine=c1-convex
+ 		os=-bsd
+ 		;;
+ 	convex-c2)
+ 		basic_machine=c2-convex
+ 		os=-bsd
+ 		;;
+ 	convex-c32)
+ 		basic_machine=c32-convex
+ 		os=-bsd
+ 		;;
+ 	convex-c34)
+ 		basic_machine=c34-convex
+ 		os=-bsd
+ 		;;
+ 	convex-c38)
+ 		basic_machine=c38-convex
+ 		os=-bsd
+ 		;;
+ 	cray | j90)
+ 		basic_machine=j90-cray
+ 		os=-unicos
+ 		;;
+ 	crds | unos)
+ 		basic_machine=m68k-crds
+ 		;;
+ 	cris | cris-* | etrax*)
+ 		basic_machine=cris-axis
+ 		;;
+ 	da30 | da30-*)
+ 		basic_machine=m68k-da30
+ 		;;
+ 	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
+ 		basic_machine=mips-dec
+ 		;;
+ 	decsystem10* | dec10*)
+ 		basic_machine=pdp10-dec
+ 		os=-tops10
+ 		;;
+ 	decsystem20* | dec20*)
+ 		basic_machine=pdp10-dec
+ 		os=-tops20
+ 		;;
+ 	delta | 3300 | motorola-3300 | motorola-delta \
+ 	      | 3300-motorola | delta-motorola)
+ 		basic_machine=m68k-motorola
+ 		;;
+ 	delta88)
+ 		basic_machine=m88k-motorola
+ 		os=-sysv3
+ 		;;
+ 	dpx20 | dpx20-*)
+ 		basic_machine=rs6000-bull
+ 		os=-bosx
+ 		;;
+ 	dpx2* | dpx2*-bull)
+ 		basic_machine=m68k-bull
+ 		os=-sysv3
+ 		;;
+ 	ebmon29k)
+ 		basic_machine=a29k-amd
+ 		os=-ebmon
+ 		;;
+ 	elxsi)
+ 		basic_machine=elxsi-elxsi
+ 		os=-bsd
+ 		;;
+ 	encore | umax | mmax)
+ 		basic_machine=ns32k-encore
+ 		;;
+ 	es1800 | OSE68k | ose68k | ose | OSE)
+ 		basic_machine=m68k-ericsson
+ 		os=-ose
+ 		;;
+ 	fx2800)
+ 		basic_machine=i860-alliant
+ 		;;
+ 	genix)
+ 		basic_machine=ns32k-ns
+ 		;;
+ 	gmicro)
+ 		basic_machine=tron-gmicro
+ 		os=-sysv
+ 		;;
+ 	go32)
+ 		basic_machine=i386-pc
+ 		os=-go32
+ 		;;
+ 	h3050r* | hiux*)
+ 		basic_machine=hppa1.1-hitachi
+ 		os=-hiuxwe2
+ 		;;
+ 	h8300hms)
+ 		basic_machine=h8300-hitachi
+ 		os=-hms
+ 		;;
+ 	h8300xray)
+ 		basic_machine=h8300-hitachi
+ 		os=-xray
+ 		;;
+ 	h8500hms)
+ 		basic_machine=h8500-hitachi
+ 		os=-hms
+ 		;;
+ 	harris)
+ 		basic_machine=m88k-harris
+ 		os=-sysv3
+ 		;;
+ 	hp300-*)
+ 		basic_machine=m68k-hp
+ 		;;
+ 	hp300bsd)
+ 		basic_machine=m68k-hp
+ 		os=-bsd
+ 		;;
+ 	hp300hpux)
+ 		basic_machine=m68k-hp
+ 		os=-hpux
+ 		;;
+ 	hp3k9[0-9][0-9] | hp9[0-9][0-9])
+ 		basic_machine=hppa1.0-hp
+ 		;;
+ 	hp9k2[0-9][0-9] | hp9k31[0-9])
+ 		basic_machine=m68000-hp
+ 		;;
+ 	hp9k3[2-9][0-9])
+ 		basic_machine=m68k-hp
+ 		;;
+ 	hp9k6[0-9][0-9] | hp6[0-9][0-9])
+ 		basic_machine=hppa1.0-hp
+ 		;;
+ 	hp9k7[0-79][0-9] | hp7[0-79][0-9])
+ 		basic_machine=hppa1.1-hp
+ 		;;
+ 	hp9k78[0-9] | hp78[0-9])
+ 		# FIXME: really hppa2.0-hp
+ 		basic_machine=hppa1.1-hp
+ 		;;
+ 	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
+ 		# FIXME: really hppa2.0-hp
+ 		basic_machine=hppa1.1-hp
+ 		;;
+ 	hp9k8[0-9][13679] | hp8[0-9][13679])
+ 		basic_machine=hppa1.1-hp
+ 		;;
+ 	hp9k8[0-9][0-9] | hp8[0-9][0-9])
+ 		basic_machine=hppa1.0-hp
+ 		;;
+ 	hppa-next)
+ 		os=-nextstep3
+ 		;;
+ 	hppaosf)
+ 		basic_machine=hppa1.1-hp
+ 		os=-osf
+ 		;;
+ 	hppro)
+ 		basic_machine=hppa1.1-hp
+ 		os=-proelf
+ 		;;
+ 	i370-ibm* | ibm*)
+ 		basic_machine=i370-ibm
+ 		;;
+ # I'm not sure what "Sysv32" means.  Should this be sysv3.2?
+ 	i*86v32)
+ 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ 		os=-sysv32
+ 		;;
+ 	i*86v4*)
+ 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ 		os=-sysv4
+ 		;;
+ 	i*86v)
+ 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ 		os=-sysv
+ 		;;
+ 	i*86sol2)
+ 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ 		os=-solaris2
+ 		;;
+ 	i386mach)
+ 		basic_machine=i386-mach
+ 		os=-mach
+ 		;;
+ 	i386-vsta | vsta)
+ 		basic_machine=i386-unknown
+ 		os=-vsta
+ 		;;
+ 	iris | iris4d)
+ 		basic_machine=mips-sgi
+ 		case $os in
+ 		    -irix*)
+ 			;;
+ 		    *)
+ 			os=-irix4
+ 			;;
+ 		esac
+ 		;;
+ 	isi68 | isi)
+ 		basic_machine=m68k-isi
+ 		os=-sysv
+ 		;;
+ 	m88k-omron*)
+ 		basic_machine=m88k-omron
+ 		;;
+ 	magnum | m3230)
+ 		basic_machine=mips-mips
+ 		os=-sysv
+ 		;;
+ 	merlin)
+ 		basic_machine=ns32k-utek
+ 		os=-sysv
+ 		;;
+ 	mingw32)
+ 		basic_machine=i386-pc
+ 		os=-mingw32
+ 		;;
+ 	miniframe)
+ 		basic_machine=m68000-convergent
+ 		;;
+ 	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
+ 		basic_machine=m68k-atari
+ 		os=-mint
+ 		;;
+ 	mips3*-*)
+ 		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
+ 		;;
+ 	mips3*)
+ 		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
+ 		;;
+ 	mmix*)
+ 		basic_machine=mmix-knuth
+ 		os=-mmixware
+ 		;;
+ 	monitor)
+ 		basic_machine=m68k-rom68k
+ 		os=-coff
+ 		;;
+ 	morphos)
+ 		basic_machine=powerpc-unknown
+ 		os=-morphos
+ 		;;
+ 	msdos)
+ 		basic_machine=i386-pc
+ 		os=-msdos
+ 		;;
+ 	mvs)
+ 		basic_machine=i370-ibm
+ 		os=-mvs
+ 		;;
+ 	ncr3000)
+ 		basic_machine=i486-ncr
+ 		os=-sysv4
+ 		;;
+ 	netbsd386)
+ 		basic_machine=i386-unknown
+ 		os=-netbsd
+ 		;;
+ 	netwinder)
+ 		basic_machine=armv4l-rebel
+ 		os=-linux
+ 		;;
+ 	news | news700 | news800 | news900)
+ 		basic_machine=m68k-sony
+ 		os=-newsos
+ 		;;
+ 	news1000)
+ 		basic_machine=m68030-sony
+ 		os=-newsos
+ 		;;
+ 	news-3600 | risc-news)
+ 		basic_machine=mips-sony
+ 		os=-newsos
+ 		;;
+ 	necv70)
+ 		basic_machine=v70-nec
+ 		os=-sysv
+ 		;;
+ 	next | m*-next )
+ 		basic_machine=m68k-next
+ 		case $os in
+ 		    -nextstep* )
+ 			;;
+ 		    -ns2*)
+ 		      os=-nextstep2
+ 			;;
+ 		    *)
+ 		      os=-nextstep3
+ 			;;
+ 		esac
+ 		;;
+ 	nh3000)
+ 		basic_machine=m68k-harris
+ 		os=-cxux
+ 		;;
+ 	nh[45]000)
+ 		basic_machine=m88k-harris
+ 		os=-cxux
+ 		;;
+ 	nindy960)
+ 		basic_machine=i960-intel
+ 		os=-nindy
+ 		;;
+ 	mon960)
+ 		basic_machine=i960-intel
+ 		os=-mon960
+ 		;;
+ 	nonstopux)
+ 		basic_machine=mips-compaq
+ 		os=-nonstopux
+ 		;;
+ 	np1)
+ 		basic_machine=np1-gould
+ 		;;
+ 	nv1)
+ 		basic_machine=nv1-cray
+ 		os=-unicosmp
+ 		;;
+ 	nsr-tandem)
+ 		basic_machine=nsr-tandem
+ 		;;
+ 	op50n-* | op60c-*)
+ 		basic_machine=hppa1.1-oki
+ 		os=-proelf
+ 		;;
+ 	or32 | or32-*)
+ 		basic_machine=or32-unknown
+ 		os=-coff
+ 		;;
+ 	OSE68000 | ose68000)
+ 		basic_machine=m68000-ericsson
+ 		os=-ose
+ 		;;
+ 	os68k)
+ 		basic_machine=m68k-none
+ 		os=-os68k
+ 		;;
+ 	pa-hitachi)
+ 		basic_machine=hppa1.1-hitachi
+ 		os=-hiuxwe2
+ 		;;
+ 	paragon)
+ 		basic_machine=i860-intel
+ 		os=-osf
+ 		;;
+ 	pbd)
+ 		basic_machine=sparc-tti
+ 		;;
+ 	pbb)
+ 		basic_machine=m68k-tti
+ 		;;
+ 	pc532 | pc532-*)
+ 		basic_machine=ns32k-pc532
+ 		;;
+ 	pentium | p5 | k5 | k6 | nexgen | viac3)
+ 		basic_machine=i586-pc
+ 		;;
+ 	pentiumpro | p6 | 6x86 | athlon | athlon_*)
+ 		basic_machine=i686-pc
+ 		;;
+ 	pentiumii | pentium2 | pentiumiii | pentium3)
+ 		basic_machine=i686-pc
+ 		;;
+ 	pentium4)
+ 		basic_machine=i786-pc
+ 		;;
+ 	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
+ 		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	pentiumpro-* | p6-* | 6x86-* | athlon-*)
+ 		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
+ 		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	pentium4-*)
+ 		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	pn)
+ 		basic_machine=pn-gould
+ 		;;
+ 	power)	basic_machine=power-ibm
+ 		;;
+ 	ppc)	basic_machine=powerpc-unknown
+ 		;;
+ 	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	ppcle | powerpclittle | ppc-le | powerpc-little)
+ 		basic_machine=powerpcle-unknown
+ 		;;
+ 	ppcle-* | powerpclittle-*)
+ 		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	ppc64)	basic_machine=powerpc64-unknown
+ 		;;
+ 	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ 		basic_machine=powerpc64le-unknown
+ 		;;
+ 	ppc64le-* | powerpc64little-*)
+ 		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	ps2)
+ 		basic_machine=i386-ibm
+ 		;;
+ 	pw32)
+ 		basic_machine=i586-unknown
+ 		os=-pw32
+ 		;;
+ 	rom68k)
+ 		basic_machine=m68k-rom68k
+ 		os=-coff
+ 		;;
+ 	rm[46]00)
+ 		basic_machine=mips-siemens
+ 		;;
+ 	rtpc | rtpc-*)
+ 		basic_machine=romp-ibm
+ 		;;
+ 	s390 | s390-*)
+ 		basic_machine=s390-ibm
+ 		;;
+ 	s390x | s390x-*)
+ 		basic_machine=s390x-ibm
+ 		;;
+ 	sa29200)
+ 		basic_machine=a29k-amd
+ 		os=-udi
+ 		;;
+ 	sb1)
+ 		basic_machine=mipsisa64sb1-unknown
+ 		;;
+ 	sb1el)
+ 		basic_machine=mipsisa64sb1el-unknown
+ 		;;
+ 	sei)
+ 		basic_machine=mips-sei
+ 		os=-seiux
+ 		;;
+ 	sequent)
+ 		basic_machine=i386-sequent
+ 		;;
+ 	sh)
+ 		basic_machine=sh-hitachi
+ 		os=-hms
+ 		;;
+ 	sh64)
+ 		basic_machine=sh64-unknown
+ 		;;
+ 	sparclite-wrs | simso-wrs)
+ 		basic_machine=sparclite-wrs
+ 		os=-vxworks
+ 		;;
+ 	sps7)
+ 		basic_machine=m68k-bull
+ 		os=-sysv2
+ 		;;
+ 	spur)
+ 		basic_machine=spur-unknown
+ 		;;
+ 	st2000)
+ 		basic_machine=m68k-tandem
+ 		;;
+ 	stratus)
+ 		basic_machine=i860-stratus
+ 		os=-sysv4
+ 		;;
+ 	sun2)
+ 		basic_machine=m68000-sun
+ 		;;
+ 	sun2os3)
+ 		basic_machine=m68000-sun
+ 		os=-sunos3
+ 		;;
+ 	sun2os4)
+ 		basic_machine=m68000-sun
+ 		os=-sunos4
+ 		;;
+ 	sun3os3)
+ 		basic_machine=m68k-sun
+ 		os=-sunos3
+ 		;;
+ 	sun3os4)
+ 		basic_machine=m68k-sun
+ 		os=-sunos4
+ 		;;
+ 	sun4os3)
+ 		basic_machine=sparc-sun
+ 		os=-sunos3
+ 		;;
+ 	sun4os4)
+ 		basic_machine=sparc-sun
+ 		os=-sunos4
+ 		;;
+ 	sun4sol2)
+ 		basic_machine=sparc-sun
+ 		os=-solaris2
+ 		;;
+ 	sun3 | sun3-*)
+ 		basic_machine=m68k-sun
+ 		;;
+ 	sun4)
+ 		basic_machine=sparc-sun
+ 		;;
+ 	sun386 | sun386i | roadrunner)
+ 		basic_machine=i386-sun
+ 		;;
+ 	sv1)
+ 		basic_machine=sv1-cray
+ 		os=-unicos
+ 		;;
+ 	symmetry)
+ 		basic_machine=i386-sequent
+ 		os=-dynix
+ 		;;
+ 	t3e)
+ 		basic_machine=alphaev5-cray
+ 		os=-unicos
+ 		;;
+ 	t90)
+ 		basic_machine=t90-cray
+ 		os=-unicos
+ 		;;
+ 	tic54x | c54x*)
+ 		basic_machine=tic54x-unknown
+ 		os=-coff
+ 		;;
+ 	tic55x | c55x*)
+ 		basic_machine=tic55x-unknown
+ 		os=-coff
+ 		;;
+ 	tic6x | c6x*)
+ 		basic_machine=tic6x-unknown
+ 		os=-coff
+ 		;;
+ 	tx39)
+ 		basic_machine=mipstx39-unknown
+ 		;;
+ 	tx39el)
+ 		basic_machine=mipstx39el-unknown
+ 		;;
+ 	toad1)
+ 		basic_machine=pdp10-xkl
+ 		os=-tops20
+ 		;;
+ 	tower | tower-32)
+ 		basic_machine=m68k-ncr
+ 		;;
+ 	udi29k)
+ 		basic_machine=a29k-amd
+ 		os=-udi
+ 		;;
+ 	ultra3)
+ 		basic_machine=a29k-nyu
+ 		os=-sym1
+ 		;;
+ 	v810 | necv810)
+ 		basic_machine=v810-nec
+ 		os=-none
+ 		;;
+ 	vaxv)
+ 		basic_machine=vax-dec
+ 		os=-sysv
+ 		;;
+ 	vms)
+ 		basic_machine=vax-dec
+ 		os=-vms
+ 		;;
+ 	vpp*|vx|vx-*)
+ 		basic_machine=f301-fujitsu
+ 		;;
+ 	vxworks960)
+ 		basic_machine=i960-wrs
+ 		os=-vxworks
+ 		;;
+ 	vxworks68)
+ 		basic_machine=m68k-wrs
+ 		os=-vxworks
+ 		;;
+ 	vxworks29k)
+ 		basic_machine=a29k-wrs
+ 		os=-vxworks
+ 		;;
+ 	w65*)
+ 		basic_machine=w65-wdc
+ 		os=-none
+ 		;;
+ 	w89k-*)
+ 		basic_machine=hppa1.1-winbond
+ 		os=-proelf
+ 		;;
+ 	xps | xps100)
+ 		basic_machine=xps100-honeywell
+ 		;;
+ 	ymp)
+ 		basic_machine=ymp-cray
+ 		os=-unicos
+ 		;;
+ 	z8k-*-coff)
+ 		basic_machine=z8k-unknown
+ 		os=-sim
+ 		;;
+ 	none)
+ 		basic_machine=none-none
+ 		os=-none
+ 		;;
+ 
+ # Here we handle the default manufacturer of certain CPU types.  It is in
+ # some cases the only manufacturer, in others, it is the most popular.
+ 	w89k)
+ 		basic_machine=hppa1.1-winbond
+ 		;;
+ 	op50n)
+ 		basic_machine=hppa1.1-oki
+ 		;;
+ 	op60c)
+ 		basic_machine=hppa1.1-oki
+ 		;;
+ 	romp)
+ 		basic_machine=romp-ibm
+ 		;;
+ 	rs6000)
+ 		basic_machine=rs6000-ibm
+ 		;;
+ 	vax)
+ 		basic_machine=vax-dec
+ 		;;
+ 	pdp10)
+ 		# there are many clones, so DEC is not a safe bet
+ 		basic_machine=pdp10-unknown
+ 		;;
+ 	pdp11)
+ 		basic_machine=pdp11-dec
+ 		;;
+ 	we32k)
+ 		basic_machine=we32k-att
+ 		;;
+ 	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
+ 		basic_machine=sh-unknown
+ 		;;
+ 	sh64)
+ 		basic_machine=sh64-unknown
+ 		;;
+ 	sparc | sparcv9 | sparcv9b)
+ 		basic_machine=sparc-sun
+ 		;;
+ 	cydra)
+ 		basic_machine=cydra-cydrome
+ 		;;
+ 	orion)
+ 		basic_machine=orion-highlevel
+ 		;;
+ 	orion105)
+ 		basic_machine=clipper-highlevel
+ 		;;
+ 	mac | mpw | mac-mpw)
+ 		basic_machine=m68k-apple
+ 		;;
+ 	pmac | pmac-mpw)
+ 		basic_machine=powerpc-apple
+ 		;;
+ 	*-unknown)
+ 		# Make sure to match an already-canonicalized machine name.
+ 		;;
+ 	*)
+ 		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
+ 		exit 1
+ 		;;
+ esac
+ 
+ # Here we canonicalize certain aliases for manufacturers.
+ case $basic_machine in
+ 	*-digital*)
+ 		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
+ 		;;
+ 	*-commodore*)
+ 		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
+ 		;;
+ 	*)
+ 		;;
+ esac
+ 
+ # Decode manufacturer-specific aliases for certain operating systems.
+ 
+ if [ x"$os" != x"" ]
+ then
+ case $os in
+         # First match some system type aliases
+         # that might get confused with valid system types.
+ 	# -solaris* is a basic system type, with this one exception.
+ 	-solaris1 | -solaris1.*)
+ 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
+ 		;;
+ 	-solaris)
+ 		os=-solaris2
+ 		;;
+ 	-svr4*)
+ 		os=-sysv4
+ 		;;
+ 	-unixware*)
+ 		os=-sysv4.2uw
+ 		;;
+ 	-gnu/linux*)
+ 		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
+ 		;;
+ 	# First accept the basic system types.
+ 	# The portable systems comes first.
+ 	# Each alternative MUST END IN A *, to match a version number.
+ 	# -sysv* is not here because it comes later, after sysvr4.
+ 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
+ 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
+ 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
+ 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
+ 	      | -aos* \
+ 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
+ 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
+ 	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
+ 	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
+ 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
+ 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
+ 	      | -chorusos* | -chorusrdb* \
+ 	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ 	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
+ 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
+ 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
+ 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
+ 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
+ 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
+ 	# Remember, each alternative MUST END IN *, to match a version number.
+ 		;;
+ 	-qnx*)
+ 		case $basic_machine in
+ 		    x86-* | i*86-*)
+ 			;;
+ 		    *)
+ 			os=-nto$os
+ 			;;
+ 		esac
+ 		;;
+ 	-nto-qnx*)
+ 		;;
+ 	-nto*)
+ 		os=`echo $os | sed -e 's|nto|nto-qnx|'`
+ 		;;
+ 	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
+ 	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
+ 	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
+ 		;;
+ 	-mac*)
+ 		os=`echo $os | sed -e 's|mac|macos|'`
+ 		;;
+ 	-linux*)
+ 		os=`echo $os | sed -e 's|linux|linux-gnu|'`
+ 		;;
+ 	-sunos5*)
+ 		os=`echo $os | sed -e 's|sunos5|solaris2|'`
+ 		;;
+ 	-sunos6*)
+ 		os=`echo $os | sed -e 's|sunos6|solaris3|'`
+ 		;;
+ 	-opened*)
+ 		os=-openedition
+ 		;;
+ 	-wince*)
+ 		os=-wince
+ 		;;
+ 	-osfrose*)
+ 		os=-osfrose
+ 		;;
+ 	-osf*)
+ 		os=-osf
+ 		;;
+ 	-utek*)
+ 		os=-bsd
+ 		;;
+ 	-dynix*)
+ 		os=-bsd
+ 		;;
+ 	-acis*)
+ 		os=-aos
+ 		;;
+ 	-atheos*)
+ 		os=-atheos
+ 		;;
+ 	-386bsd)
+ 		os=-bsd
+ 		;;
+ 	-ctix* | -uts*)
+ 		os=-sysv
+ 		;;
+ 	-nova*)
+ 		os=-rtmk-nova
+ 		;;
+ 	-ns2 )
+ 		os=-nextstep2
+ 		;;
+ 	-nsk*)
+ 		os=-nsk
+ 		;;
+ 	# Preserve the version number of sinix5.
+ 	-sinix5.*)
+ 		os=`echo $os | sed -e 's|sinix|sysv|'`
+ 		;;
+ 	-sinix*)
+ 		os=-sysv4
+ 		;;
+ 	-triton*)
+ 		os=-sysv3
+ 		;;
+ 	-oss*)
+ 		os=-sysv3
+ 		;;
+ 	-svr4)
+ 		os=-sysv4
+ 		;;
+ 	-svr3)
+ 		os=-sysv3
+ 		;;
+ 	-sysvr4)
+ 		os=-sysv4
+ 		;;
+ 	# This must come after -sysvr4.
+ 	-sysv*)
+ 		;;
+ 	-ose*)
+ 		os=-ose
+ 		;;
+ 	-es1800*)
+ 		os=-ose
+ 		;;
+ 	-xenix)
+ 		os=-xenix
+ 		;;
+ 	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ 		os=-mint
+ 		;;
+ 	-aros*)
+ 		os=-aros
+ 		;;
+ 	-kaos*)
+ 		os=-kaos
+ 		;;
+ 	-none)
+ 		;;
+ 	*)
+ 		# Get rid of the `-' at the beginning of $os.
+ 		os=`echo $os | sed 's/[^-]*-//'`
+ 		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
+ 		exit 1
+ 		;;
+ esac
+ else
+ 
+ # Here we handle the default operating systems that come with various machines.
+ # The value should be what the vendor currently ships out the door with their
+ # machine or put another way, the most popular os provided with the machine.
+ 
+ # Note that if you're going to try to match "-MANUFACTURER" here (say,
+ # "-sun"), then you have to tell the case statement up towards the top
+ # that MANUFACTURER isn't an operating system.  Otherwise, code above
+ # will signal an error saying that MANUFACTURER isn't an operating
+ # system, and we'll never get to this point.
+ 
+ case $basic_machine in
+ 	*-acorn)
+ 		os=-riscix1.2
+ 		;;
+ 	arm*-rebel)
+ 		os=-linux
+ 		;;
+ 	arm*-semi)
+ 		os=-aout
+ 		;;
+     c4x-* | tic4x-*)
+         os=-coff
+         ;;
+ 	# This must come before the *-dec entry.
+ 	pdp10-*)
+ 		os=-tops20
+ 		;;
+ 	pdp11-*)
+ 		os=-none
+ 		;;
+ 	*-dec | vax-*)
+ 		os=-ultrix4.2
+ 		;;
+ 	m68*-apollo)
+ 		os=-domain
+ 		;;
+ 	i386-sun)
+ 		os=-sunos4.0.2
+ 		;;
+ 	m68000-sun)
+ 		os=-sunos3
+ 		# This also exists in the configure program, but was not the
+ 		# default.
+ 		# os=-sunos4
+ 		;;
+ 	m68*-cisco)
+ 		os=-aout
+ 		;;
+ 	mips*-cisco)
+ 		os=-elf
+ 		;;
+ 	mips*-*)
+ 		os=-elf
+ 		;;
+ 	or32-*)
+ 		os=-coff
+ 		;;
+ 	*-tti)	# must be before sparc entry or we get the wrong os.
+ 		os=-sysv3
+ 		;;
+ 	sparc-* | *-sun)
+ 		os=-sunos4.1.1
+ 		;;
+ 	*-be)
+ 		os=-beos
+ 		;;
+ 	*-ibm)
+ 		os=-aix
+ 		;;
+ 	*-wec)
+ 		os=-proelf
+ 		;;
+ 	*-winbond)
+ 		os=-proelf
+ 		;;
+ 	*-oki)
+ 		os=-proelf
+ 		;;
+ 	*-hp)
+ 		os=-hpux
+ 		;;
+ 	*-hitachi)
+ 		os=-hiux
+ 		;;
+ 	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
+ 		os=-sysv
+ 		;;
+ 	*-cbm)
+ 		os=-amigaos
+ 		;;
+ 	*-dg)
+ 		os=-dgux
+ 		;;
+ 	*-dolphin)
+ 		os=-sysv3
+ 		;;
+ 	m68k-ccur)
+ 		os=-rtu
+ 		;;
+ 	m88k-omron*)
+ 		os=-luna
+ 		;;
+ 	*-next )
+ 		os=-nextstep
+ 		;;
+ 	*-sequent)
+ 		os=-ptx
+ 		;;
+ 	*-crds)
+ 		os=-unos
+ 		;;
+ 	*-ns)
+ 		os=-genix
+ 		;;
+ 	i370-*)
+ 		os=-mvs
+ 		;;
+ 	*-next)
+ 		os=-nextstep3
+ 		;;
+ 	*-gould)
+ 		os=-sysv
+ 		;;
+ 	*-highlevel)
+ 		os=-bsd
+ 		;;
+ 	*-encore)
+ 		os=-bsd
+ 		;;
+ 	*-sgi)
+ 		os=-irix
+ 		;;
+ 	*-siemens)
+ 		os=-sysv4
+ 		;;
+ 	*-masscomp)
+ 		os=-rtu
+ 		;;
+ 	f30[01]-fujitsu | f700-fujitsu)
+ 		os=-uxpv
+ 		;;
+ 	*-rom68k)
+ 		os=-coff
+ 		;;
+ 	*-*bug)
+ 		os=-coff
+ 		;;
+ 	*-apple)
+ 		os=-macos
+ 		;;
+ 	*-atari*)
+ 		os=-mint
+ 		;;
+ 	*)
+ 		os=-none
+ 		;;
+ esac
+ fi
+ 
+ # Here we handle the case where we know the os, and the CPU type, but not the
+ # manufacturer.  We pick the logical manufacturer.
+ vendor=unknown
+ case $basic_machine in
+ 	*-unknown)
+ 		case $os in
+ 			-riscix*)
+ 				vendor=acorn
+ 				;;
+ 			-sunos*)
+ 				vendor=sun
+ 				;;
+ 			-aix*)
+ 				vendor=ibm
+ 				;;
+ 			-beos*)
+ 				vendor=be
+ 				;;
+ 			-hpux*)
+ 				vendor=hp
+ 				;;
+ 			-mpeix*)
+ 				vendor=hp
+ 				;;
+ 			-hiux*)
+ 				vendor=hitachi
+ 				;;
+ 			-unos*)
+ 				vendor=crds
+ 				;;
+ 			-dgux*)
+ 				vendor=dg
+ 				;;
+ 			-luna*)
+ 				vendor=omron
+ 				;;
+ 			-genix*)
+ 				vendor=ns
+ 				;;
+ 			-mvs* | -opened*)
+ 				vendor=ibm
+ 				;;
+ 			-ptx*)
+ 				vendor=sequent
+ 				;;
+ 			-vxsim* | -vxworks* | -windiss*)
+ 				vendor=wrs
+ 				;;
+ 			-aux*)
+ 				vendor=apple
+ 				;;
+ 			-hms*)
+ 				vendor=hitachi
+ 				;;
+ 			-mpw* | -macos*)
+ 				vendor=apple
+ 				;;
+ 			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
+ 				vendor=atari
+ 				;;
+ 			-vos*)
+ 				vendor=stratus
+ 				;;
+ 		esac
+ 		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
+ 		;;
+ esac
+ 
+ echo $basic_machine$os
+ exit 0
+ 
+ # Local variables:
+ # eval: (add-hook 'write-file-hooks 'time-stamp)
+ # time-stamp-start: "timestamp='"
+ # time-stamp-format: "%:y-%02m-%02d"
+ # time-stamp-end: "'"
+ # End:


Index: llvm/lib/CodeGen/ELF/configure
diff -c /dev/null llvm/lib/CodeGen/ELF/configure:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/configure	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,3579 ----
+ #! /bin/sh
+ 
+ # Guess values for system-dependent variables and create Makefiles.
+ # Generated automatically using autoconf version 2.13 
+ # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
+ #
+ # This configure script is free software; the Free Software Foundation
+ # gives unlimited permission to copy, distribute and modify it.
+ 
+ # Defaults:
+ ac_help=
+ ac_default_prefix=/usr/local
+ # Any additions from configure.in:
+ ac_help="$ac_help
+   --enable-maintainer-mode
+                           enable maintainer-specific make rules (default: no)"
+ ac_help="$ac_help
+   --enable-compat         install <libelf.h>, <nlist.h> and <gelf.h> (default: auto)"
+ ac_help="$ac_help
+   --enable-elf64          compile in 64-bit support (default: auto)"
+ ac_help="$ac_help
+   --enable-versioning     compile in versioning support (default: auto)"
+ ac_help="$ac_help
+   --enable-nls            use Native Language Support (default: yes)"
+ ac_help="$ac_help
+   --enable-shared         build shared library (default: yes)"
+ ac_help="$ac_help
+   --enable-gnu-names      use GNU library naming conventions (default: no)"
+ ac_help="$ac_help
+   --enable-debug          include extra debugging code (default: no)"
+ 
+ # Initialize some variables set by options.
+ # The variables have the same names as the options, with
+ # dashes changed to underlines.
+ build=NONE
+ cache_file=./config.cache
+ exec_prefix=NONE
+ host=NONE
+ no_create=
+ nonopt=NONE
+ no_recursion=
+ prefix=NONE
+ program_prefix=NONE
+ program_suffix=NONE
+ program_transform_name=s,x,x,
+ silent=
+ site=
+ srcdir=
+ target=NONE
+ verbose=
+ x_includes=NONE
+ x_libraries=NONE
+ bindir='${exec_prefix}/bin'
+ sbindir='${exec_prefix}/sbin'
+ libexecdir='${exec_prefix}/libexec'
+ datadir='${prefix}/share'
+ sysconfdir='${prefix}/etc'
+ sharedstatedir='${prefix}/com'
+ localstatedir='${prefix}/var'
+ libdir='${exec_prefix}/lib'
+ includedir='${prefix}/include'
+ oldincludedir='/usr/include'
+ infodir='${prefix}/info'
+ mandir='${prefix}/man'
+ 
+ # Initialize some other variables.
+ subdirs=
+ MFLAGS= MAKEFLAGS=
+ SHELL=${CONFIG_SHELL-/bin/sh}
+ # Maximum number of lines to put in a shell here document.
+ ac_max_here_lines=12
+ 
+ ac_prev=
+ for ac_option
+ do
+ 
+   # If the previous option needs an argument, assign it.
+   if test -n "$ac_prev"; then
+     eval "$ac_prev=\$ac_option"
+     ac_prev=
+     continue
+   fi
+ 
+   case "$ac_option" in
+   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
+   *) ac_optarg= ;;
+   esac
+ 
+   # Accept the important Cygnus configure options, so we can diagnose typos.
+ 
+   case "$ac_option" in
+ 
+   -bindir | --bindir | --bindi | --bind | --bin | --bi)
+     ac_prev=bindir ;;
+   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+     bindir="$ac_optarg" ;;
+ 
+   -build | --build | --buil | --bui | --bu)
+     ac_prev=build ;;
+   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
+     build="$ac_optarg" ;;
+ 
+   -cache-file | --cache-file | --cache-fil | --cache-fi \
+   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
+     ac_prev=cache_file ;;
+   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
+   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
+     cache_file="$ac_optarg" ;;
+ 
+   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
+     ac_prev=datadir ;;
+   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+   | --da=*)
+     datadir="$ac_optarg" ;;
+ 
+   -disable-* | --disable-*)
+     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
+     # Reject names that are not valid shell variable names.
+     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
+       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
+     fi
+     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
+     eval "enable_${ac_feature}=no" ;;
+ 
+   -enable-* | --enable-*)
+     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
+     # Reject names that are not valid shell variable names.
+     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
+       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
+     fi
+     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
+     case "$ac_option" in
+       *=*) ;;
+       *) ac_optarg=yes ;;
+     esac
+     eval "enable_${ac_feature}='$ac_optarg'" ;;
+ 
+   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+   | --exec | --exe | --ex)
+     ac_prev=exec_prefix ;;
+   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+   | --exec=* | --exe=* | --ex=*)
+     exec_prefix="$ac_optarg" ;;
+ 
+   -gas | --gas | --ga | --g)
+     # Obsolete; use --with-gas.
+     with_gas=yes ;;
+ 
+   -help | --help | --hel | --he)
+     # Omit some internal or obsolete options to make the list less imposing.
+     # This message is too long to be a string in the A/UX 3.1 sh.
+     cat << EOF
+ Usage: configure [options] [host]
+ Options: [defaults in brackets after descriptions]
+ Configuration:
+   --cache-file=FILE       cache test results in FILE
+   --help                  print this message
+   --no-create             do not create output files
+   --quiet, --silent       do not print \`checking...' messages
+   --version               print the version of autoconf that created configure
+ Directory and file names:
+   --prefix=PREFIX         install architecture-independent files in PREFIX
+                           [$ac_default_prefix]
+   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
+                           [same as prefix]
+   --bindir=DIR            user executables in DIR [EPREFIX/bin]
+   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
+   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
+   --datadir=DIR           read-only architecture-independent data in DIR
+                           [PREFIX/share]
+   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
+   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
+                           [PREFIX/com]
+   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
+   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
+   --includedir=DIR        C header files in DIR [PREFIX/include]
+   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
+   --infodir=DIR           info documentation in DIR [PREFIX/info]
+   --mandir=DIR            man documentation in DIR [PREFIX/man]
+   --srcdir=DIR            find the sources in DIR [configure dir or ..]
+   --program-prefix=PREFIX prepend PREFIX to installed program names
+   --program-suffix=SUFFIX append SUFFIX to installed program names
+   --program-transform-name=PROGRAM
+                           run sed PROGRAM on installed program names
+ EOF
+     cat << EOF
+ Host type:
+   --build=BUILD           configure for building on BUILD [BUILD=HOST]
+   --host=HOST             configure for HOST [guessed]
+   --target=TARGET         configure for TARGET [TARGET=HOST]
+ Features and packages:
+   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
+   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
+   --x-includes=DIR        X include files are in DIR
+   --x-libraries=DIR       X library files are in DIR
+ EOF
+     if test -n "$ac_help"; then
+       echo "--enable and --with options recognized:$ac_help"
+     fi
+     exit 0 ;;
+ 
+   -host | --host | --hos | --ho)
+     ac_prev=host ;;
+   -host=* | --host=* | --hos=* | --ho=*)
+     host="$ac_optarg" ;;
+ 
+   -includedir | --includedir | --includedi | --included | --include \
+   | --includ | --inclu | --incl | --inc)
+     ac_prev=includedir ;;
+   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+   | --includ=* | --inclu=* | --incl=* | --inc=*)
+     includedir="$ac_optarg" ;;
+ 
+   -infodir | --infodir | --infodi | --infod | --info | --inf)
+     ac_prev=infodir ;;
+   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+     infodir="$ac_optarg" ;;
+ 
+   -libdir | --libdir | --libdi | --libd)
+     ac_prev=libdir ;;
+   -libdir=* | --libdir=* | --libdi=* | --libd=*)
+     libdir="$ac_optarg" ;;
+ 
+   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+   | --libexe | --libex | --libe)
+     ac_prev=libexecdir ;;
+   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+   | --libexe=* | --libex=* | --libe=*)
+     libexecdir="$ac_optarg" ;;
+ 
+   -localstatedir | --localstatedir | --localstatedi | --localstated \
+   | --localstate | --localstat | --localsta | --localst \
+   | --locals | --local | --loca | --loc | --lo)
+     ac_prev=localstatedir ;;
+   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+     localstatedir="$ac_optarg" ;;
+ 
+   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+     ac_prev=mandir ;;
+   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+     mandir="$ac_optarg" ;;
+ 
+   -nfp | --nfp | --nf)
+     # Obsolete; use --without-fp.
+     with_fp=no ;;
+ 
+   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+   | --no-cr | --no-c)
+     no_create=yes ;;
+ 
+   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
+     no_recursion=yes ;;
+ 
+   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
+   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
+   | --oldin | --oldi | --old | --ol | --o)
+     ac_prev=oldincludedir ;;
+   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
+   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
+   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
+     oldincludedir="$ac_optarg" ;;
+ 
+   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
+     ac_prev=prefix ;;
+   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
+     prefix="$ac_optarg" ;;
+ 
+   -program-prefix | --program-prefix | --program-prefi | --program-pref \
+   | --program-pre | --program-pr | --program-p)
+     ac_prev=program_prefix ;;
+   -program-prefix=* | --program-prefix=* | --program-prefi=* \
+   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
+     program_prefix="$ac_optarg" ;;
+ 
+   -program-suffix | --program-suffix | --program-suffi | --program-suff \
+   | --program-suf | --program-su | --program-s)
+     ac_prev=program_suffix ;;
+   -program-suffix=* | --program-suffix=* | --program-suffi=* \
+   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
+     program_suffix="$ac_optarg" ;;
+ 
+   -program-transform-name | --program-transform-name \
+   | --program-transform-nam | --program-transform-na \
+   | --program-transform-n | --program-transform- \
+   | --program-transform | --program-transfor \
+   | --program-transfo | --program-transf \
+   | --program-trans | --program-tran \
+   | --progr-tra | --program-tr | --program-t)
+     ac_prev=program_transform_name ;;
+   -program-transform-name=* | --program-transform-name=* \
+   | --program-transform-nam=* | --program-transform-na=* \
+   | --program-transform-n=* | --program-transform-=* \
+   | --program-transform=* | --program-transfor=* \
+   | --program-transfo=* | --program-transf=* \
+   | --program-trans=* | --program-tran=* \
+   | --progr-tra=* | --program-tr=* | --program-t=*)
+     program_transform_name="$ac_optarg" ;;
+ 
+   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+   | -silent | --silent | --silen | --sile | --sil)
+     silent=yes ;;
+ 
+   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
+     ac_prev=sbindir ;;
+   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
+   | --sbi=* | --sb=*)
+     sbindir="$ac_optarg" ;;
+ 
+   -sharedstatedir | --sharedstatedir | --sharedstatedi \
+   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
+   | --sharedst | --shareds | --shared | --share | --shar \
+   | --sha | --sh)
+     ac_prev=sharedstatedir ;;
+   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
+   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
+   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
+   | --sha=* | --sh=*)
+     sharedstatedir="$ac_optarg" ;;
+ 
+   -site | --site | --sit)
+     ac_prev=site ;;
+   -site=* | --site=* | --sit=*)
+     site="$ac_optarg" ;;
+ 
+   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
+     ac_prev=srcdir ;;
+   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
+     srcdir="$ac_optarg" ;;
+ 
+   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
+   | --syscon | --sysco | --sysc | --sys | --sy)
+     ac_prev=sysconfdir ;;
+   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
+   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
+     sysconfdir="$ac_optarg" ;;
+ 
+   -target | --target | --targe | --targ | --tar | --ta | --t)
+     ac_prev=target ;;
+   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
+     target="$ac_optarg" ;;
+ 
+   -v | -verbose | --verbose | --verbos | --verbo | --verb)
+     verbose=yes ;;
+ 
+   -version | --version | --versio | --versi | --vers)
+     echo "configure generated by autoconf version 2.13"
+     exit 0 ;;
+ 
+   -with-* | --with-*)
+     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
+     # Reject names that are not valid shell variable names.
+     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
+       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
+     fi
+     ac_package=`echo $ac_package| sed 's/-/_/g'`
+     case "$ac_option" in
+       *=*) ;;
+       *) ac_optarg=yes ;;
+     esac
+     eval "with_${ac_package}='$ac_optarg'" ;;
+ 
+   -without-* | --without-*)
+     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
+     # Reject names that are not valid shell variable names.
+     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
+       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
+     fi
+     ac_package=`echo $ac_package| sed 's/-/_/g'`
+     eval "with_${ac_package}=no" ;;
+ 
+   --x)
+     # Obsolete; use --with-x.
+     with_x=yes ;;
+ 
+   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
+   | --x-incl | --x-inc | --x-in | --x-i)
+     ac_prev=x_includes ;;
+   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
+   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
+     x_includes="$ac_optarg" ;;
+ 
+   -x-libraries | --x-libraries | --x-librarie | --x-librari \
+   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
+     ac_prev=x_libraries ;;
+   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
+   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
+     x_libraries="$ac_optarg" ;;
+ 
+   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
+     ;;
+ 
+   *)
+     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
+       echo "configure: warning: $ac_option: invalid host type" 1>&2
+     fi
+     if test "x$nonopt" != xNONE; then
+       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
+     fi
+     nonopt="$ac_option"
+     ;;
+ 
+   esac
+ done
+ 
+ if test -n "$ac_prev"; then
+   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
+ fi
+ 
+ trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ 
+ # File descriptor usage:
+ # 0 standard input
+ # 1 file creation
+ # 2 errors and warnings
+ # 3 some systems may open it to /dev/tty
+ # 4 used on the Kubota Titan
+ # 6 checking for... messages and results
+ # 5 compiler messages saved in config.log
+ if test "$silent" = yes; then
+   exec 6>/dev/null
+ else
+   exec 6>&1
+ fi
+ exec 5>./config.log
+ 
+ echo "\
+ This file contains any messages produced by compilers while
+ running configure, to aid debugging if configure makes a mistake.
+ " 1>&5
+ 
+ # Strip out --no-create and --no-recursion so they do not pile up.
+ # Also quote any args containing shell metacharacters.
+ ac_configure_args=
+ for ac_arg
+ do
+   case "$ac_arg" in
+   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+   | --no-cr | --no-c) ;;
+   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
+   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
+   *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
+   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
+   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
+   esac
+ done
+ 
+ # NLS nuisances.
+ # Only set these to C if already set.  These must not be set unconditionally
+ # because not all systems understand e.g. LANG=C (notably SCO).
+ # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
+ # Non-C LC_CTYPE values break the ctype check.
+ if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
+ if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
+ if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
+ if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
+ 
+ # confdefs.h avoids OS command line length limits that DEFS can exceed.
+ rm -rf conftest* confdefs.h
+ # AIX cpp loses on an empty file, so make sure it contains at least a newline.
+ echo > confdefs.h
+ 
+ # A filename unique to this package, relative to the directory that
+ # configure is in, which we can look for to find out if srcdir is correct.
+ ac_unique_file=VERSION
+ 
+ # Find the source files, if location was not specified.
+ if test -z "$srcdir"; then
+   ac_srcdir_defaulted=yes
+   # Try the directory containing this script, then its parent.
+   ac_prog=$0
+   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
+   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
+   srcdir=$ac_confdir
+   if test ! -r $srcdir/$ac_unique_file; then
+     srcdir=..
+   fi
+ else
+   ac_srcdir_defaulted=no
+ fi
+ if test ! -r $srcdir/$ac_unique_file; then
+   if test "$ac_srcdir_defaulted" = yes; then
+     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
+   else
+     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
+   fi
+ fi
+ srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
+ 
+ # Prefer explicitly selected file to automatically selected ones.
+ if test -z "$CONFIG_SITE"; then
+   if test "x$prefix" != xNONE; then
+     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+   else
+     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+   fi
+ fi
+ for ac_site_file in $CONFIG_SITE; do
+   if test -r "$ac_site_file"; then
+     echo "loading site script $ac_site_file"
+     . "$ac_site_file"
+   fi
+ done
+ 
+ if test -r "$cache_file"; then
+   echo "loading cache $cache_file"
+   . $cache_file
+ else
+   echo "creating cache $cache_file"
+   > $cache_file
+ fi
+ 
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
+ ac_exeext=
+ ac_objext=o
+ if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
+   # Stardent Vistra SVR4 grep lacks -e, says ghazi at caip.rutgers.edu.
+   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
+     ac_n= ac_c='
+ ' ac_t='	'
+   else
+     ac_n=-n ac_c= ac_t=
+   fi
+ else
+   ac_n= ac_c='\c' ac_t=
+ fi
+ 
+ 
+ 
+ 
+ 
+ 
+       PACKAGE=libelf
+   VERSION=`cat $srcdir/VERSION`
+   
+   
+   # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
+ if test "${enable_maintainer_mode+set}" = set; then
+   enableval="$enable_maintainer_mode"
+   mr_enable_maintainer_mode="$enableval"
+ else
+   mr_enable_maintainer_mode="${I_AM_THE_LIBELF_MAINTAINER-no}"
+ fi
+ 
+   if test x"$mr_enable_maintainer_mode" = x"yes"; then
+     MAINT=
+   else
+     MAINT='maintainer-only-'
+   fi
+   
+   
+ 
+ ALL_LINGUAS=`cd $srcdir/po && echo *.po | sed 's/\.po//g'`
+ 
+ set `echo $VERSION | sed 's/\./ /g'`
+ MAJOR=${1-1}
+ MINOR=${2-0}
+ PATCH=${3-0}
+ 
+ 
+ echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
+ echo "configure:575: checking whether ${MAKE-make} sets \${MAKE}" >&5
+ set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
+ if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftestmake <<\EOF
+ all:
+ 	@echo 'ac_maketemp="${MAKE}"'
+ EOF
+ # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
+ eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
+ if test -n "$ac_maketemp"; then
+   eval ac_cv_prog_make_${ac_make}_set=yes
+ else
+   eval ac_cv_prog_make_${ac_make}_set=no
+ fi
+ rm -f conftestmake
+ fi
+ if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+   SET_MAKE=
+ else
+   echo "$ac_t""no" 1>&6
+   SET_MAKE="MAKE=${MAKE-make}"
+ fi
+ 
+ # Extract the first word of "gcc", so it can be a program name with args.
+ set dummy gcc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:604: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test -n "$CC"; then
+   ac_cv_prog_CC="$CC" # Let the user override the test.
+ else
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$PATH"
+   for ac_dir in $ac_dummy; do
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_prog_CC="gcc"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+ fi
+ fi
+ CC="$ac_cv_prog_CC"
+ if test -n "$CC"; then
+   echo "$ac_t""$CC" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ if test -z "$CC"; then
+   # Extract the first word of "cc", so it can be a program name with args.
+ set dummy cc; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:634: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test -n "$CC"; then
+   ac_cv_prog_CC="$CC" # Let the user override the test.
+ else
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_prog_rejected=no
+   ac_dummy="$PATH"
+   for ac_dir in $ac_dummy; do
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
+         ac_prog_rejected=yes
+ 	continue
+       fi
+       ac_cv_prog_CC="cc"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+ if test $ac_prog_rejected = yes; then
+   # We found a bogon in the path, so make sure we never use it.
+   set dummy $ac_cv_prog_CC
+   shift
+   if test $# -gt 0; then
+     # We chose a different compiler from the bogus one.
+     # However, it has the same basename, so the bogon will be chosen
+     # first if we set CC to just the basename; use the full file name.
+     shift
+     set dummy "$ac_dir/$ac_word" "$@"
+     shift
+     ac_cv_prog_CC="$@"
+   fi
+ fi
+ fi
+ fi
+ CC="$ac_cv_prog_CC"
+ if test -n "$CC"; then
+   echo "$ac_t""$CC" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+   if test -z "$CC"; then
+     case "`uname -s`" in
+     *win32* | *WIN32*)
+       # Extract the first word of "cl", so it can be a program name with args.
+ set dummy cl; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:685: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test -n "$CC"; then
+   ac_cv_prog_CC="$CC" # Let the user override the test.
+ else
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$PATH"
+   for ac_dir in $ac_dummy; do
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_prog_CC="cl"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+ fi
+ fi
+ CC="$ac_cv_prog_CC"
+ if test -n "$CC"; then
+   echo "$ac_t""$CC" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+  ;;
+     esac
+   fi
+   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
+ fi
+ 
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
+ echo "configure:717: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+ 
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
+ cat > conftest.$ac_ext << EOF
+ 
+ #line 728 "configure"
+ #include "confdefs.h"
+ 
+ main(){return(0);}
+ EOF
+ if { (eval echo configure:733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   ac_cv_prog_cc_works=yes
+   # If we can't run a trivial program, we are probably using a cross compiler.
+   if (./conftest; exit) 2>/dev/null; then
+     ac_cv_prog_cc_cross=no
+   else
+     ac_cv_prog_cc_cross=yes
+   fi
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   ac_cv_prog_cc_works=no
+ fi
+ rm -fr conftest*
+ ac_ext=c
+ # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
+ ac_cpp='$CPP $CPPFLAGS'
+ ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
+ ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
+ echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
+ if test $ac_cv_prog_cc_works = no; then
+   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
+ fi
+ echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
+ echo "configure:759: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+ echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
+ cross_compiling=$ac_cv_prog_cc_cross
+ 
+ echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
+ echo "configure:764: checking whether we are using GNU C" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.c <<EOF
+ #ifdef __GNUC__
+   yes;
+ #endif
+ EOF
+ if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:773: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+   ac_cv_prog_gcc=yes
+ else
+   ac_cv_prog_gcc=no
+ fi
+ fi
+ 
+ echo "$ac_t""$ac_cv_prog_gcc" 1>&6
+ 
+ if test $ac_cv_prog_gcc = yes; then
+   GCC=yes
+ else
+   GCC=
+ fi
+ 
+ ac_test_CFLAGS="${CFLAGS+set}"
+ ac_save_CFLAGS="$CFLAGS"
+ CFLAGS=
+ echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
+ echo "configure:792: checking whether ${CC-cc} accepts -g" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   echo 'void f(){}' > conftest.c
+ if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
+   ac_cv_prog_cc_g=yes
+ else
+   ac_cv_prog_cc_g=no
+ fi
+ rm -f conftest*
+ 
+ fi
+ 
+ echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
+ if test "$ac_test_CFLAGS" = set; then
+   CFLAGS="$ac_save_CFLAGS"
+ elif test $ac_cv_prog_cc_g = yes; then
+   if test "$GCC" = yes; then
+     CFLAGS="-g -O2"
+   else
+     CFLAGS="-g"
+   fi
+ else
+   if test "$GCC" = yes; then
+     CFLAGS="-O2"
+   else
+     CFLAGS=
+   fi
+ fi
+ 
+ echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
+ echo "configure:824: checking how to run the C preprocessor" >&5
+ # On Suns, sometimes $CPP names a directory.
+ if test -n "$CPP" && test -d "$CPP"; then
+   CPP=
+ fi
+ if test -z "$CPP"; then
+ if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+     # This must be in double quotes, not single quotes, because CPP may get
+   # substituted into the Makefile and "${CC-cc}" will confuse make.
+   CPP="${CC-cc} -E"
+   # On the NeXT, cc -E runs the code through the compiler's parser,
+   # not just through cpp.
+   cat > conftest.$ac_ext <<EOF
+ #line 839 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+ Syntax Error
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:845: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+   :
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   CPP="${CC-cc} -E -traditional-cpp"
+   cat > conftest.$ac_ext <<EOF
+ #line 856 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+ Syntax Error
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+   :
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   CPP="${CC-cc} -nologo -E"
+   cat > conftest.$ac_ext <<EOF
+ #line 873 "configure"
+ #include "confdefs.h"
+ #include <assert.h>
+ Syntax Error
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:879: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+   :
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   CPP=/lib/cpp
+ fi
+ rm -f conftest*
+ fi
+ rm -f conftest*
+ fi
+ rm -f conftest*
+   ac_cv_prog_CPP="$CPP"
+ fi
+   CPP="$ac_cv_prog_CPP"
+ else
+   ac_cv_prog_CPP="$CPP"
+ fi
+ echo "$ac_t""$CPP" 1>&6
+ 
+ ac_aux_dir=
+ for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
+   if test -f $ac_dir/install-sh; then
+     ac_aux_dir=$ac_dir
+     ac_install_sh="$ac_aux_dir/install-sh -c"
+     break
+   elif test -f $ac_dir/install.sh; then
+     ac_aux_dir=$ac_dir
+     ac_install_sh="$ac_aux_dir/install.sh -c"
+     break
+   fi
+ done
+ if test -z "$ac_aux_dir"; then
+   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
+ fi
+ ac_config_guess=$ac_aux_dir/config.guess
+ ac_config_sub=$ac_aux_dir/config.sub
+ ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
+ 
+ # Find a good install program.  We prefer a C program (faster),
+ # so one script is as good as another.  But avoid the broken or
+ # incompatible versions:
+ # SysV /etc/install, /usr/sbin/install
+ # SunOS /usr/etc/install
+ # IRIX /sbin/install
+ # AIX /bin/install
+ # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
+ # AFS /usr/afsws/bin/install, which mishandles nonexistent args
+ # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
+ # ./install, which can be erroneously created by make from ./install.sh.
+ echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
+ echo "configure:934: checking for a BSD compatible install" >&5
+ if test -z "$INSTALL"; then
+ if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+     IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
+   for ac_dir in $PATH; do
+     # Account for people who put trailing slashes in PATH elements.
+     case "$ac_dir/" in
+     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
+     *)
+       # OSF1 and SCO ODT 3.0 have their own names for install.
+       # Don't use installbsd from OSF since it installs stuff as root
+       # by default.
+       for ac_prog in ginstall scoinst install; do
+         if test -f $ac_dir/$ac_prog; then
+ 	  if test $ac_prog = install &&
+             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
+ 	    # AIX install.  It has an incompatible calling convention.
+ 	    :
+ 	  else
+ 	    ac_cv_path_install="$ac_dir/$ac_prog -c"
+ 	    break 2
+ 	  fi
+ 	fi
+       done
+       ;;
+     esac
+   done
+   IFS="$ac_save_IFS"
+ 
+ fi
+   if test "${ac_cv_path_install+set}" = set; then
+     INSTALL="$ac_cv_path_install"
+   else
+     # As a last resort, use the slow shell script.  We don't cache a
+     # path for INSTALL within a source directory, because that will
+     # break other packages using the cache if that directory is
+     # removed, or if the path is relative.
+     INSTALL="$ac_install_sh"
+   fi
+ fi
+ echo "$ac_t""$INSTALL" 1>&6
+ 
+ # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
+ # It thinks the first close brace ends the variable substitution.
+ test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
+ 
+ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
+ 
+ test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
+ 
+ # Extract the first word of "ranlib", so it can be a program name with args.
+ set dummy ranlib; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:989: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test -n "$RANLIB"; then
+   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
+ else
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$PATH"
+   for ac_dir in $ac_dummy; do
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_prog_RANLIB="ranlib"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
+ fi
+ fi
+ RANLIB="$ac_cv_prog_RANLIB"
+ if test -n "$RANLIB"; then
+   echo "$ac_t""$RANLIB" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
+ echo "configure:1017: checking whether ln -s works" >&5
+ if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   rm -f conftestdata
+ if ln -s X conftestdata 2>/dev/null
+ then
+   rm -f conftestdata
+   ac_cv_prog_LN_S="ln -s"
+ else
+   ac_cv_prog_LN_S=ln
+ fi
+ fi
+ LN_S="$ac_cv_prog_LN_S"
+ if test "$ac_cv_prog_LN_S" = "ln -s"; then
+   echo "$ac_t""yes" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ 
+ 
+ echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
+ echo "configure:1040: checking for ANSI C header files" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1045 "configure"
+ #include "confdefs.h"
+ #include <stdlib.h>
+ #include <stdarg.h>
+ #include <string.h>
+ #include <float.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+   rm -rf conftest*
+   ac_cv_header_stdc=yes
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   ac_cv_header_stdc=no
+ fi
+ rm -f conftest*
+ 
+ if test $ac_cv_header_stdc = yes; then
+   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
+ cat > conftest.$ac_ext <<EOF
+ #line 1070 "configure"
+ #include "confdefs.h"
+ #include <string.h>
+ EOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+   egrep "memchr" >/dev/null 2>&1; then
+   :
+ else
+   rm -rf conftest*
+   ac_cv_header_stdc=no
+ fi
+ rm -f conftest*
+ 
+ fi
+ 
+ if test $ac_cv_header_stdc = yes; then
+   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
+ cat > conftest.$ac_ext <<EOF
+ #line 1088 "configure"
+ #include "confdefs.h"
+ #include <stdlib.h>
+ EOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+   egrep "free" >/dev/null 2>&1; then
+   :
+ else
+   rm -rf conftest*
+   ac_cv_header_stdc=no
+ fi
+ rm -f conftest*
+ 
+ fi
+ 
+ if test $ac_cv_header_stdc = yes; then
+   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
+ if test "$cross_compiling" = yes; then
+   :
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1109 "configure"
+ #include "confdefs.h"
+ #include <ctype.h>
+ #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
+ #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
+ #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
+ int main () { int i; for (i = 0; i < 256; i++)
+ if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
+ exit (0); }
+ 
+ EOF
+ if { (eval echo configure:1120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   :
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_header_stdc=no
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ fi
+ 
+ echo "$ac_t""$ac_cv_header_stdc" 1>&6
+ if test $ac_cv_header_stdc = yes; then
+   cat >> confdefs.h <<\EOF
+ #define STDC_HEADERS 1
+ EOF
+ 
+ fi
+ 
+ for ac_hdr in unistd.h fcntl.h elf.h sys/elf.h link.h sys/link.h
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1147: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1152 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=yes"
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=no"
+ fi
+ rm -f conftest*
+ fi
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_hdr 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ done
+ 
+ if test "$ac_cv_header_elf_h" = yes; then
+   cat >> confdefs.h <<\EOF
+ #define __LIBELF_HEADER_ELF_H <elf.h>
+ EOF
+ 
+ elif test "$ac_cv_header_sys_elf_h" = yes; then
+   cat >> confdefs.h <<\EOF
+ #define __LIBELF_HEADER_ELF_H <sys/elf.h>
+ EOF
+ 
+ fi
+ 
+ for ac_hdr in ar.h libelf.h nlist.h gelf.h
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1199: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1204 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:1209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=yes"
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=no"
+ fi
+ rm -f conftest*
+ fi
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_hdr 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ done
+ 
+ echo $ac_n "checking whether to install <libelf.h>, <nlist.h> and <gelf.h>""... $ac_c" 1>&6
+ echo "configure:1236: checking whether to install <libelf.h>, <nlist.h> and <gelf.h>" >&5
+ # Check whether --enable-compat or --disable-compat was given.
+ if test "${enable_compat+set}" = set; then
+   enableval="$enable_compat"
+   DO_COMPAT="$enableval"
+ else
+   if test "$ac_cv_header_libelf_h$ac_cv_header_nlist_h$ac_cv_header_gelf_h" = yesyesyes
+   then DO_COMPAT=no
+   else DO_COMPAT=yes
+   fi
+ fi
+ 
+ echo "$ac_t""$DO_COMPAT" 1>&6
+ 
+ 
+ echo $ac_n "checking for working const""... $ac_c" 1>&6
+ echo "configure:1252: checking for working const" >&5
+ if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1257 "configure"
+ #include "confdefs.h"
+ 
+ int main() {
+ 
+ /* Ultrix mips cc rejects this.  */
+ typedef int charset[2]; const charset x;
+ /* SunOS 4.1.1 cc rejects this.  */
+ char const *const *ccp;
+ char **p;
+ /* NEC SVR4.0.2 mips cc rejects this.  */
+ struct point {int x, y;};
+ static struct point const zero = {0,0};
+ /* AIX XL C 1.02.0.0 rejects this.
+    It does not let you subtract one const X* pointer from another in an arm
+    of an if-expression whose if-part is not a constant expression */
+ const char *g = "string";
+ ccp = &g + (g ? g-g : 0);
+ /* HPUX 7.0 cc rejects these. */
+ ++ccp;
+ p = (char**) ccp;
+ ccp = (char const *const *) p;
+ { /* SCO 3.2v4 cc rejects this.  */
+   char *t;
+   char const *s = 0 ? (char *) 0 : (char const *) 0;
+ 
+   *t++ = 0;
+ }
+ { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
+   int x[] = {25, 17};
+   const int *foo = &x[0];
+   ++foo;
+ }
+ { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
+   typedef const int *iptr;
+   iptr p = 0;
+   ++p;
+ }
+ { /* AIX XL C 1.02.0.0 rejects this saying
+      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
+   struct s { int j; const int *ap[3]; };
+   struct s *b; b->j = 5;
+ }
+ { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
+   const int foo = 10;
+ }
+ 
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   ac_cv_c_const=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   ac_cv_c_const=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$ac_cv_c_const" 1>&6
+ if test $ac_cv_c_const = no; then
+   cat >> confdefs.h <<\EOF
+ #define const 
+ EOF
+ 
+ fi
+ 
+ echo $ac_n "checking for off_t""... $ac_c" 1>&6
+ echo "configure:1327: checking for off_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1332 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #if STDC_HEADERS
+ #include <stdlib.h>
+ #include <stddef.h>
+ #endif
+ EOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+   egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+   rm -rf conftest*
+   ac_cv_type_off_t=yes
+ else
+   rm -rf conftest*
+   ac_cv_type_off_t=no
+ fi
+ rm -f conftest*
+ 
+ fi
+ echo "$ac_t""$ac_cv_type_off_t" 1>&6
+ if test $ac_cv_type_off_t = no; then
+   cat >> confdefs.h <<\EOF
+ #define off_t long
+ EOF
+ 
+ fi
+ 
+ echo $ac_n "checking for size_t""... $ac_c" 1>&6
+ echo "configure:1360: checking for size_t" >&5
+ if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1365 "configure"
+ #include "confdefs.h"
+ #include <sys/types.h>
+ #if STDC_HEADERS
+ #include <stdlib.h>
+ #include <stddef.h>
+ #endif
+ EOF
+ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
+   egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
+   rm -rf conftest*
+   ac_cv_type_size_t=yes
+ else
+   rm -rf conftest*
+   ac_cv_type_size_t=no
+ fi
+ rm -f conftest*
+ 
+ fi
+ echo "$ac_t""$ac_cv_type_size_t" 1>&6
+ if test $ac_cv_type_size_t = no; then
+   cat >> confdefs.h <<\EOF
+ #define size_t unsigned
+ EOF
+ 
+ fi
+ 
+ 
+ echo $ac_n "checking size of short""... $ac_c" 1>&6
+ echo "configure:1394: checking size of short" >&5
+ if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+   ac_cv_sizeof_short=2
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1402 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+ main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
+   fprintf(f, "%d\n", sizeof(short));
+   exit(0);
+ }
+ EOF
+ if { (eval echo configure:1413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_sizeof_short=`cat conftestval`
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_sizeof_short=0
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ echo "$ac_t""$ac_cv_sizeof_short" 1>&6
+ cat >> confdefs.h <<EOF
+ #define SIZEOF_SHORT $ac_cv_sizeof_short
+ EOF
+ 
+ 
+ echo $ac_n "checking size of int""... $ac_c" 1>&6
+ echo "configure:1433: checking size of int" >&5
+ if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+   ac_cv_sizeof_int=4
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1441 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+ main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
+   fprintf(f, "%d\n", sizeof(int));
+   exit(0);
+ }
+ EOF
+ if { (eval echo configure:1452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_sizeof_int=`cat conftestval`
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_sizeof_int=0
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ echo "$ac_t""$ac_cv_sizeof_int" 1>&6
+ cat >> confdefs.h <<EOF
+ #define SIZEOF_INT $ac_cv_sizeof_int
+ EOF
+ 
+ 
+ echo $ac_n "checking size of long""... $ac_c" 1>&6
+ echo "configure:1472: checking size of long" >&5
+ if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+   ac_cv_sizeof_long=4
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1480 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+ main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
+   fprintf(f, "%d\n", sizeof(long));
+   exit(0);
+ }
+ EOF
+ if { (eval echo configure:1491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_sizeof_long=`cat conftestval`
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_sizeof_long=0
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ echo "$ac_t""$ac_cv_sizeof_long" 1>&6
+ cat >> confdefs.h <<EOF
+ #define SIZEOF_LONG $ac_cv_sizeof_long
+ EOF
+ 
+ 
+ echo $ac_n "checking size of long long""... $ac_c" 1>&6
+ echo "configure:1511: checking size of long long" >&5
+ if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+   ac_cv_sizeof_long_long=0
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1519 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+ main()
+ {
+   FILE *f=fopen("conftestval", "w");
+   if (!f) exit(1);
+   fprintf(f, "%d\n", sizeof(long long));
+   exit(0);
+ }
+ EOF
+ if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_sizeof_long_long=`cat conftestval`
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_sizeof_long_long=0
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
+ cat >> confdefs.h <<EOF
+ #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
+ EOF
+ 
+ 
+ 
+ if test "$ac_cv_header_elf_h" = yes \
+ || test "$ac_cv_header_sys_elf_h" = yes; then
+ 
+   # Slowaris declares Elf32_Dyn in <link.h>.
+   echo $ac_n "checking for struct Elf32_Dyn""... $ac_c" 1>&6
+ echo "configure:1555: checking for struct Elf32_Dyn" >&5
+ if eval "test \"`echo '$''{'libelf_cv_struct_elf32_dyn'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+     cat > conftest.$ac_ext <<EOF
+ #line 1561 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ Elf32_Dyn x
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1568: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_struct_elf32_dyn=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   cat > conftest.$ac_ext <<EOF
+ #line 1576 "configure"
+ #include "confdefs.h"
+ #include <link.h>
+ int main() {
+ Elf32_Dyn x
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_struct_elf32_dyn=link.h
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_struct_elf32_dyn=no
+ fi
+ rm -f conftest*
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_struct_elf32_dyn" 1>&6
+   if test "$libelf_cv_struct_elf32_dyn" = link.h; then
+     cat >> confdefs.h <<\EOF
+ #define __LIBELF_NEED_LINK_H 1
+ EOF
+ 
+   elif test "$libelf_cv_struct_elf32_dyn" = no; then
+     { echo "configure: error: no declaration for Elf32_Dyn" 1>&2; exit 1; }
+   fi
+ 
+   # Linux declares struct nlist in <elf.h>.
+   echo $ac_n "checking for struct nlist in elf.h""... $ac_c" 1>&6
+ echo "configure:1609: checking for struct nlist in elf.h" >&5
+ if eval "test \"`echo '$''{'libelf_cv_struct_nlist'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+     cat > conftest.$ac_ext <<EOF
+ #line 1615 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ struct nlist nl
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_struct_nlist=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_struct_nlist=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_struct_nlist" 1>&6
+   if test "$libelf_cv_struct_nlist" = yes; then
+     cat >> confdefs.h <<\EOF
+ #define HAVE_STRUCT_NLIST_DECLARATION 1
+ EOF
+ 
+   fi
+ 
+   # Check for 64-bit data types.
+   echo $ac_n "checking for struct Elf64_Ehdr""... $ac_c" 1>&6
+ echo "configure:1644: checking for struct Elf64_Ehdr" >&5
+ if eval "test \"`echo '$''{'libelf_cv_struct_elf64_ehdr'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1649 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ Elf64_Ehdr x
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_struct_elf64_ehdr=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_struct_elf64_ehdr=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_struct_elf64_ehdr" 1>&6
+ 
+   # Linux lacks typedefs for scalar ELF64_* types.
+   echo $ac_n "checking for Elf64_Addr""... $ac_c" 1>&6
+ echo "configure:1672: checking for Elf64_Addr" >&5
+ if eval "test \"`echo '$''{'libelf_cv_type_elf64_addr'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1677 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ Elf64_Addr x
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1684: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_type_elf64_addr=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_type_elf64_addr=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_type_elf64_addr" 1>&6
+ 
+   # IRIX' struct Elf64_Rel is slightly different. Ugh.
+   echo $ac_n "checking for struct Elf64_Rel""... $ac_c" 1>&6
+ echo "configure:1700: checking for struct Elf64_Rel" >&5
+ if eval "test \"`echo '$''{'libelf_cv_struct_elf64_rel'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1705 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ Elf64_Rel x; x.r_info = 1
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1712: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_struct_elf64_rel=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   cat > conftest.$ac_ext <<EOF
+ #line 1720 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ Elf64_Rel x; x.r_sym = 1
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_struct_elf64_rel=irix
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_struct_elf64_rel=no
+ fi
+ rm -f conftest*
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_struct_elf64_rel" 1>&6
+ 
+   case "$libelf_cv_struct_elf64_ehdr:\
+ $libelf_cv_type_elf64_addr:\
+ $libelf_cv_struct_elf64_rel" in
+     yes:yes:yes)
+       libelf_64bit=yes;;
+     yes:yes:irix)
+       cat >> confdefs.h <<\EOF
+ #define __LIBELF64_IRIX 1
+ EOF
+ 
+       libelf_64bit=yes;;
+     yes:no:yes)
+       cat >> confdefs.h <<\EOF
+ #define __LIBELF64_LINUX 1
+ EOF
+ 
+       libelf_64bit=yes;;
+     *)
+       libelf_64bit=no;;
+   esac
+ 
+   # Check for symbol versioning definitions
+   echo $ac_n "checking for Elf32_Verdef""... $ac_c" 1>&6
+ echo "configure:1766: checking for Elf32_Verdef" >&5
+ if eval "test \"`echo '$''{'libelf_cv_verdef32'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1771 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+       #if __LIBELF_NEED_LINK_H
+       #include <link.h>	/* Solaris wants this */
+       #endif
+ int main() {
+ struct {
+ 	Elf32_Verdef vd;
+ 	Elf32_Verdaux vda;
+ 	Elf32_Verneed vn;
+ 	Elf32_Vernaux vna;
+       } x
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_verdef32=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_verdef32=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_verdef32" 1>&6
+ 
+   echo $ac_n "checking for Elf64_Verdef""... $ac_c" 1>&6
+ echo "configure:1801: checking for Elf64_Verdef" >&5
+ if eval "test \"`echo '$''{'libelf_cv_verdef64'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1806 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+       #if __LIBELF_NEED_LINK_H
+       #include <link.h>	/* Solaris wants this */
+       #endif
+ int main() {
+ struct {
+ 	Elf64_Verdef vd;
+ 	Elf64_Verdaux vda;
+ 	Elf64_Verneed vn;
+ 	Elf64_Vernaux vna;
+       } x
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1821: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_verdef64=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_verdef64=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_verdef64" 1>&6
+ 
+   echo $ac_n "checking for SHT_SUNW_verdef""... $ac_c" 1>&6
+ echo "configure:1836: checking for SHT_SUNW_verdef" >&5
+ if eval "test \"`echo '$''{'libelf_cv_sun_verdef'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1841 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ Elf32_Word x = SHT_SUNW_verdef + SHT_SUNW_verneed + SHT_SUNW_versym
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1848: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_sun_verdef=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_sun_verdef=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_sun_verdef" 1>&6
+ 
+   echo $ac_n "checking for SHT_GNU_verdef""... $ac_c" 1>&6
+ echo "configure:1863: checking for SHT_GNU_verdef" >&5
+ if eval "test \"`echo '$''{'libelf_cv_gnu_verdef'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1868 "configure"
+ #include "confdefs.h"
+ #include __LIBELF_HEADER_ELF_H
+ int main() {
+ Elf32_Word x = SHT_GNU_verdef + SHT_GNU_verneed + SHT_GNU_versym
+ ; return 0; }
+ EOF
+ if { (eval echo configure:1875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+   rm -rf conftest*
+   libelf_cv_gnu_verdef=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   libelf_cv_gnu_verdef=no
+ fi
+ rm -f conftest*
+ fi
+ 
+ echo "$ac_t""$libelf_cv_gnu_verdef" 1>&6
+ else
+   # lib/elf_repl.h supports 64-bit
+   libelf_64bit=yes
+ 
+   # lib/elf_repl.h supports symbol versioning
+   libelf_cv_verdef32=yes
+   libelf_cv_verdef64=yes
+   libelf_cv_sun_verdef=yes
+   libelf_cv_gnu_verdef=yes
+ fi
+ 
+ echo $ac_n "checking for 64-bit integer""... $ac_c" 1>&6
+ echo "configure:1900: checking for 64-bit integer" >&5
+ if eval "test \"`echo '$''{'libelf_cv_int64'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+   if test "$ac_cv_sizeof_long" = 8; then
+     libelf_cv_int64='long'
+   elif test "$ac_cv_sizeof_long_long" = 8; then
+     libelf_cv_int64='long long'
+   else
+     libelf_cv_int64=no
+   fi
+ fi
+ 
+ echo "$ac_t""$libelf_cv_int64" 1>&6
+ if test "$libelf_cv_int64" = no; then
+   libelf_64bit=no
+ else
+   cat >> confdefs.h <<EOF
+ #define __libelf_i64_t $libelf_cv_int64
+ EOF
+ 
+   cat >> confdefs.h <<EOF
+ #define __libelf_u64_t unsigned $libelf_cv_int64
+ EOF
+ 
+ fi
+ 
+ echo $ac_n "checking for 32-bit integer""... $ac_c" 1>&6
+ echo "configure:1929: checking for 32-bit integer" >&5
+ if eval "test \"`echo '$''{'libelf_cv_int32'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+   if test "$ac_cv_sizeof_int" = 4; then
+     libelf_cv_int32='int'
+   elif test "$ac_cv_sizeof_long" = 4; then
+     libelf_cv_int32='long'
+   else
+     libelf_cv_int32=no
+   fi
+ fi
+ 
+ echo "$ac_t""$libelf_cv_int32" 1>&6
+ if test "$libelf_cv_int32" = no; then
+   { echo "configure: error: neither int nor long is 32-bit" 1>&2; exit 1; }
+ else
+   cat >> confdefs.h <<EOF
+ #define __libelf_i32_t $libelf_cv_int32
+ EOF
+ 
+   cat >> confdefs.h <<EOF
+ #define __libelf_u32_t unsigned $libelf_cv_int32
+ EOF
+ 
+ fi
+ 
+ echo $ac_n "checking for 16-bit integer""... $ac_c" 1>&6
+ echo "configure:1958: checking for 16-bit integer" >&5
+ if eval "test \"`echo '$''{'libelf_cv_int16'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+   if test "$ac_cv_sizeof_short" = 2; then
+     libelf_cv_int16='short'
+   elif test "$ac_cv_sizeof_int" = 2; then
+     libelf_cv_int16='int'
+   else
+     libelf_cv_int16=no
+   fi
+ fi
+ 
+ echo "$ac_t""$libelf_cv_int16" 1>&6
+ if test "$libelf_cv_int16" = no; then
+   { echo "configure: error: neither short nor int is 16-bit" 1>&2; exit 1; }
+ else
+   cat >> confdefs.h <<EOF
+ #define __libelf_i16_t $libelf_cv_int16
+ EOF
+ 
+   cat >> confdefs.h <<EOF
+ #define __libelf_u16_t unsigned $libelf_cv_int16
+ EOF
+ 
+ fi
+ 
+ for ac_hdr in unistd.h
+ do
+ ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
+ echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
+ echo "configure:1990: checking for $ac_hdr" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 1995 "configure"
+ #include "confdefs.h"
+ #include <$ac_hdr>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:2000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+ ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
+ if test -z "$ac_err"; then
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=yes"
+ else
+   echo "$ac_err" >&5
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_header_$ac_safe=no"
+ fi
+ rm -f conftest*
+ fi
+ if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_hdr 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ done
+ 
+ for ac_func in getpagesize
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2029: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 2034 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+     which can conflict with char $ac_func(); below.  */
+ #include <assert.h>
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+     builtin and then its argument prototype would still apply.  */
+ char $ac_func();
+ 
+ int main() {
+ 
+ /* The GNU C library defines this for functions which it implements
+     to always fail with ENOSYS.  Some functions are actually named
+     something starting with __ and the normal name is an alias.  */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+ $ac_func();
+ #endif
+ 
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=no"
+ fi
+ rm -f conftest*
+ fi
+ 
+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_func 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ done
+ 
+ echo $ac_n "checking for working mmap""... $ac_c" 1>&6
+ echo "configure:2082: checking for working mmap" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+   ac_cv_func_mmap_fixed_mapped=no
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 2090 "configure"
+ #include "confdefs.h"
+ 
+ /* Thanks to Mike Haertel and Jim Avera for this test.
+    Here is a matrix of mmap possibilities:
+ 	mmap private not fixed
+ 	mmap private fixed at somewhere currently unmapped
+ 	mmap private fixed at somewhere already mapped
+ 	mmap shared not fixed
+ 	mmap shared fixed at somewhere currently unmapped
+ 	mmap shared fixed at somewhere already mapped
+    For private mappings, we should verify that changes cannot be read()
+    back from the file, nor mmap's back from the file at a different
+    address.  (There have been systems where private was not correctly
+    implemented like the infamous i386 svr4.0, and systems where the
+    VM page cache was not coherent with the filesystem buffer cache
+    like early versions of FreeBSD and possibly contemporary NetBSD.)
+    For shared mappings, we should conversely verify that changes get
+    propogated back to all the places they're supposed to be.
+ 
+    Grep wants private fixed already mapped.
+    The main things grep needs to know about mmap are:
+    * does it exist and is it safe to write into the mmap'd area
+    * how to use it (BSD variants)  */
+ #include <sys/types.h>
+ #include <fcntl.h>
+ #include <sys/mman.h>
+ 
+ /* This mess was copied from the GNU getpagesize.h.  */
+ #ifndef HAVE_GETPAGESIZE
+ # ifdef HAVE_UNISTD_H
+ #  include <unistd.h>
+ # endif
+ 
+ /* Assume that all systems that can run configure have sys/param.h.  */
+ # ifndef HAVE_SYS_PARAM_H
+ #  define HAVE_SYS_PARAM_H 1
+ # endif
+ 
+ # ifdef _SC_PAGESIZE
+ #  define getpagesize() sysconf(_SC_PAGESIZE)
+ # else /* no _SC_PAGESIZE */
+ #  ifdef HAVE_SYS_PARAM_H
+ #   include <sys/param.h>
+ #   ifdef EXEC_PAGESIZE
+ #    define getpagesize() EXEC_PAGESIZE
+ #   else /* no EXEC_PAGESIZE */
+ #    ifdef NBPG
+ #     define getpagesize() NBPG * CLSIZE
+ #     ifndef CLSIZE
+ #      define CLSIZE 1
+ #     endif /* no CLSIZE */
+ #    else /* no NBPG */
+ #     ifdef NBPC
+ #      define getpagesize() NBPC
+ #     else /* no NBPC */
+ #      ifdef PAGESIZE
+ #       define getpagesize() PAGESIZE
+ #      endif /* PAGESIZE */
+ #     endif /* no NBPC */
+ #    endif /* no NBPG */
+ #   endif /* no EXEC_PAGESIZE */
+ #  else /* no HAVE_SYS_PARAM_H */
+ #   define getpagesize() 8192	/* punt totally */
+ #  endif /* no HAVE_SYS_PARAM_H */
+ # endif /* no _SC_PAGESIZE */
+ 
+ #endif /* no HAVE_GETPAGESIZE */
+ 
+ #ifdef __cplusplus
+ extern "C" { void *malloc(unsigned); }
+ #else
+ char *malloc();
+ #endif
+ 
+ int
+ main()
+ {
+ 	char *data, *data2, *data3;
+ 	int i, pagesize;
+ 	int fd;
+ 
+ 	pagesize = getpagesize();
+ 
+ 	/*
+ 	 * First, make a file with some known garbage in it.
+ 	 */
+ 	data = malloc(pagesize);
+ 	if (!data)
+ 		exit(1);
+ 	for (i = 0; i < pagesize; ++i)
+ 		*(data + i) = rand();
+ 	umask(0);
+ 	fd = creat("conftestmmap", 0600);
+ 	if (fd < 0)
+ 		exit(1);
+ 	if (write(fd, data, pagesize) != pagesize)
+ 		exit(1);
+ 	close(fd);
+ 
+ 	/*
+ 	 * Next, try to mmap the file at a fixed address which
+ 	 * already has something else allocated at it.  If we can,
+ 	 * also make sure that we see the same garbage.
+ 	 */
+ 	fd = open("conftestmmap", O_RDWR);
+ 	if (fd < 0)
+ 		exit(1);
+ 	data2 = malloc(2 * pagesize);
+ 	if (!data2)
+ 		exit(1);
+ 	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
+ 	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
+ 	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
+ 		exit(1);
+ 	for (i = 0; i < pagesize; ++i)
+ 		if (*(data + i) != *(data2 + i))
+ 			exit(1);
+ 
+ 	/*
+ 	 * Finally, make sure that changes to the mapped area
+ 	 * do not percolate back to the file as seen by read().
+ 	 * (This is a bug on some variants of i386 svr4.0.)
+ 	 */
+ 	for (i = 0; i < pagesize; ++i)
+ 		*(data2 + i) = *(data2 + i) + 1;
+ 	data3 = malloc(pagesize);
+ 	if (!data3)
+ 		exit(1);
+ 	if (read(fd, data3, pagesize) != pagesize)
+ 		exit(1);
+ 	for (i = 0; i < pagesize; ++i)
+ 		if (*(data + i) != *(data3 + i))
+ 			exit(1);
+ 	close(fd);
+ 	unlink("conftestmmap");
+ 	exit(0);
+ }
+ 
+ EOF
+ if { (eval echo configure:2230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+   ac_cv_func_mmap_fixed_mapped=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   ac_cv_func_mmap_fixed_mapped=no
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ 
+ echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
+ if test $ac_cv_func_mmap_fixed_mapped = yes; then
+   cat >> confdefs.h <<\EOF
+ #define HAVE_MMAP 1
+ EOF
+ 
+ fi
+ 
+ for ac_func in ftruncate memcmp memcpy memmove
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2255: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 2260 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+     which can conflict with char $ac_func(); below.  */
+ #include <assert.h>
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+     builtin and then its argument prototype would still apply.  */
+ char $ac_func();
+ 
+ int main() {
+ 
+ /* The GNU C library defines this for functions which it implements
+     to always fail with ENOSYS.  Some functions are actually named
+     something starting with __ and the normal name is an alias.  */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+ $ac_func();
+ #endif
+ 
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=no"
+ fi
+ rm -f conftest*
+ fi
+ 
+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_func 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ done
+ 
+ for ac_func in memset
+ do
+ echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
+ echo "configure:2310: checking for $ac_func" >&5
+ if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 2315 "configure"
+ #include "confdefs.h"
+ /* System header to define __stub macros and hopefully few prototypes,
+     which can conflict with char $ac_func(); below.  */
+ #include <assert.h>
+ /* Override any gcc2 internal prototype to avoid an error.  */
+ /* We use char because int might match the return type of a gcc2
+     builtin and then its argument prototype would still apply.  */
+ char $ac_func();
+ 
+ int main() {
+ 
+ /* The GNU C library defines this for functions which it implements
+     to always fail with ENOSYS.  Some functions are actually named
+     something starting with __ and the normal name is an alias.  */
+ #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
+ choke me
+ #else
+ $ac_func();
+ #endif
+ 
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2338: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=yes"
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   eval "ac_cv_func_$ac_func=no"
+ fi
+ rm -f conftest*
+ fi
+ 
+ if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
+   echo "$ac_t""yes" 1>&6
+     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
+   cat >> confdefs.h <<EOF
+ #define $ac_tr_func 1
+ EOF
+  
+ else
+   echo "$ac_t""no" 1>&6
+ LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}"
+ fi
+ done
+ 
+ 
+ if test "$ac_cv_func_memset" = yes; then
+   cat >> confdefs.h <<\EOF
+ #define HAVE_MEMSET 1
+ EOF
+ 
+ fi
+ 
+ echo $ac_n "checking whether overlapping arrays are copied correctly""... $ac_c" 1>&6
+ echo "configure:2372: checking whether overlapping arrays are copied correctly" >&5
+ if eval "test \"`echo '$''{'libelf_cv_working_memmove'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+   libelf_cv_working_memmove='maybe not'
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 2380 "configure"
+ #include "confdefs.h"
+ #include "confdefs.h"
+ #if HAVE_MEMMOVE
+ extern void *memmove();
+ #else
+ extern void bcopy();
+ #define memmove(d,s,n) bcopy((s),(d),(n))
+ #endif
+ extern int strcmp();
+ main() {
+   char buf[] = "0123456789";
+   memmove(buf + 1, buf, 9);
+   if (strcmp(buf, "0012345678")) exit(1);
+   exit(0);
+ }
+ EOF
+ if { (eval echo configure:2397: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+       libelf_cv_working_memmove=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   libelf_cv_working_memmove=no
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ 
+ echo "$ac_t""$libelf_cv_working_memmove" 1>&6
+ if test "$libelf_cv_working_memmove" != yes; then
+   cat >> confdefs.h <<\EOF
+ #define HAVE_BROKEN_MEMMOVE 1
+ EOF
+ 
+ fi
+ 
+ echo $ac_n "checking the coffee machine""... $ac_c" 1>&6
+ echo "configure:2420: checking the coffee machine" >&5
+ if eval "test \"`echo '$''{'mr_cv_coffee_machine'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   mr_cv_coffee_machine='empty - operator may not work as expected'
+ fi
+ 
+ echo "$ac_t""$mr_cv_coffee_machine" 1>&6
+ 
+ echo $ac_n "checking whether 64-bit ELF support is sufficient""... $ac_c" 1>&6
+ echo "configure:2430: checking whether 64-bit ELF support is sufficient" >&5
+ echo "$ac_t""$libelf_64bit" 1>&6
+ echo $ac_n "checking whether to include 64-bit support""... $ac_c" 1>&6
+ echo "configure:2433: checking whether to include 64-bit support" >&5
+ if test "$libelf_64bit" = no; then
+   libelf_enable_64bit=no
+ else
+   # Check whether --enable-elf64 or --disable-elf64 was given.
+ if test "${enable_elf64+set}" = set; then
+   enableval="$enable_elf64"
+   libelf_enable_64bit="$enableval"
+ else
+   libelf_enable_64bit=yes
+ fi
+ 
+ fi
+ echo "$ac_t""$libelf_enable_64bit" 1>&6
+ if test "$libelf_enable_64bit" = yes; then
+   cat >> confdefs.h <<\EOF
+ #define __LIBELF64 1
+ EOF
+ 
+ fi
+ 
+ echo $ac_n "checking whether versioning support is sufficient""... $ac_c" 1>&6
+ echo "configure:2455: checking whether versioning support is sufficient" >&5
+ libelf_versioning=no
+ case "$libelf_enable_64bit:$libelf_cv_verdef32:$libelf_cv_verdef64" in
+   no:yes:* | yes:yes:yes)
+     if test "$libelf_cv_sun_verdef" = yes; then
+       cat >> confdefs.h <<\EOF
+ #define __LIBELF_SUN_SYMBOL_VERSIONS 1
+ EOF
+ 
+       libelf_versioning=yes
+     elif test "$libelf_cv_gnu_verdef" = yes; then
+       cat >> confdefs.h <<\EOF
+ #define __LIBELF_GNU_SYMBOL_VERSIONS 1
+ EOF
+ 
+       libelf_versioning=yes
+     fi;;
+ esac
+ echo "$ac_t""$libelf_versioning" 1>&6
+ echo $ac_n "checking whether to include versioning support""... $ac_c" 1>&6
+ echo "configure:2475: checking whether to include versioning support" >&5
+ if test "$libelf_versioning" = no; then
+   libelf_enable_versioning=no
+ else
+   # Check whether --enable-versioning or --disable-versioning was given.
+ if test "${enable_versioning+set}" = set; then
+   enableval="$enable_versioning"
+   libelf_enable_versioning="$enableval"
+ else
+   libelf_enable_versioning=yes
+ fi
+ 
+ fi
+ echo "$ac_t""$libelf_enable_versioning" 1>&6
+ if test "$libelf_enable_versioning" = yes; then
+   cat >> confdefs.h <<\EOF
+ #define __LIBELF_SYMBOL_VERSIONS 1
+ EOF
+ 
+ fi
+ 
+ 
+   
+ 
+   # Needed for `make dist' even if NLS is disabled.
+   GMOFILES=
+   MSGFILES=
+   POFILES=
+   for mr_lang in $ALL_LINGUAS; do
+     GMOFILES="$GMOFILES $mr_lang.gmo"
+     MSGFILES="$MSGFILES $mr_lang.msg"
+     POFILES="$POFILES $mr_lang.po"
+   done
+   
+   
+   
+ 
+   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
+ echo "configure:2513: checking whether NLS is requested" >&5
+   # Check whether --enable-nls or --disable-nls was given.
+ if test "${enable_nls+set}" = set; then
+   enableval="$enable_nls"
+   mr_enable_nls="$enableval"
+ else
+   mr_enable_nls=yes
+ fi
+ 
+   echo "$ac_t""$mr_enable_nls" 1>&6
+ 
+   CATOBJEXT=
+   INSTOBJEXT=
+   localedir=
+   if test "$mr_enable_nls" = yes; then
+     mr_PATH=`echo ":$PATH" | sed -e 's,:^:*openwin^:*,,g' -e 's,^:,,'`
+     echo $ac_n "checking for gettext""... $ac_c" 1>&6
+ echo "configure:2530: checking for gettext" >&5
+ if eval "test \"`echo '$''{'mr_cv_func_gettext'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+ 	cat > conftest.$ac_ext <<EOF
+ #line 2536 "configure"
+ #include "confdefs.h"
+ #include <libintl.h>
+ int main() {
+ char *s = gettext(""); return 0
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   mr_cv_func_gettext=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   mr_cv_func_gettext=no
+ fi
+ rm -f conftest*
+     
+ fi
+ 
+ echo "$ac_t""$mr_cv_func_gettext" 1>&6
+     if test "$mr_cv_func_gettext" = yes; then
+       # Extract the first word of "msgfmt", so it can be a program name with args.
+ set dummy msgfmt; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:2561: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   case "$MSGFMT" in
+   /*)
+   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
+   ;;
+   ?:/*)			 
+   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a dos path.
+   ;;
+   *)
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$mr_PATH"
+   for ac_dir in $ac_dummy; do 
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_path_MSGFMT="$ac_dir/$ac_word"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
+   ;;
+ esac
+ fi
+ MSGFMT="$ac_cv_path_MSGFMT"
+ if test -n "$MSGFMT"; then
+   echo "$ac_t""$MSGFMT" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+       if test "$MSGFMT" != no; then
+ 	# Extract the first word of "gmsgfmt", so it can be a program name with args.
+ set dummy gmsgfmt; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:2598: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   case "$GMSGFMT" in
+   /*)
+   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
+   ;;
+   ?:/*)			 
+   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
+   ;;
+   *)
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$mr_PATH"
+   for ac_dir in $ac_dummy; do 
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
+   ;;
+ esac
+ fi
+ GMSGFMT="$ac_cv_path_GMSGFMT"
+ if test -n "$GMSGFMT"; then
+   echo "$ac_t""$GMSGFMT" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ 	# Extract the first word of "xgettext", so it can be a program name with args.
+ set dummy xgettext; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:2634: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   case "$XGETTEXT" in
+   /*)
+   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
+   ;;
+   ?:/*)			 
+   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a dos path.
+   ;;
+   *)
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$mr_PATH"
+   for ac_dir in $ac_dummy; do 
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
+   ;;
+ esac
+ fi
+ XGETTEXT="$ac_cv_path_XGETTEXT"
+ if test -n "$XGETTEXT"; then
+   echo "$ac_t""$XGETTEXT" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ 	echo $ac_n "checking for GNU gettext""... $ac_c" 1>&6
+ echo "configure:2668: checking for GNU gettext" >&5
+ if eval "test \"`echo '$''{'mr_cv_gnu_gettext'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+ 	    cat > conftest.$ac_ext <<EOF
+ #line 2674 "configure"
+ #include "confdefs.h"
+ 
+ int main() {
+ extern int _nl_msg_cat_cntr; return _nl_msg_cat_cntr
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   mr_cv_gnu_gettext=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   mr_cv_gnu_gettext=no
+ fi
+ rm -f conftest*
+ 	
+ fi
+ 
+ echo "$ac_t""$mr_cv_gnu_gettext" 1>&6
+ 	if test "$mr_cv_gnu_gettext" = yes; then
+ 	  echo $ac_n "checking for losing catgets-based GNU gettext""... $ac_c" 1>&6
+ echo "configure:2697: checking for losing catgets-based GNU gettext" >&5
+ if eval "test \"`echo '$''{'mr_cv_catgets_based_gettext'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+ 	      cat > conftest.$ac_ext <<EOF
+ #line 2703 "configure"
+ #include "confdefs.h"
+ 
+ int main() {
+ extern int _msg_tbl_length; return _msg_tbl_length
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   mr_cv_catgets_based_gettext=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   mr_cv_catgets_based_gettext=no
+ fi
+ rm -f conftest*
+ 	  
+ fi
+ 
+ echo "$ac_t""$mr_cv_catgets_based_gettext" 1>&6
+ 	  if test "$mr_cv_catgets_based_gettext" = yes; then
+ 	    # This loses completely. Turn it off and use catgets.
+ 	    LIBS=`echo $LIBS | sed 's,-lintl,,g'`
+ 	    mr_cv_func_gettext=no
+ 	  else
+ 	    # Is there a better test for this case?
+ 	    echo $ac_n "checking for pure GNU gettext""... $ac_c" 1>&6
+ echo "configure:2731: checking for pure GNU gettext" >&5
+ if eval "test \"`echo '$''{'mr_cv_pure_gnu_gettext'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+ 		cat > conftest.$ac_ext <<EOF
+ #line 2737 "configure"
+ #include "confdefs.h"
+ 
+ int main() {
+ extern int gettext(); return gettext()
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   mr_cv_pure_gnu_gettext=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   mr_cv_pure_gnu_gettext=no
+ fi
+ rm -f conftest*
+ 	    
+ fi
+ 
+ echo "$ac_t""$mr_cv_pure_gnu_gettext" 1>&6
+ 	    if test "$mr_cv_pure_gnu_gettext" = yes; then
+ 	      CATOBJEXT=.gmo
+ 	      localedir='$(prefix)/share/locale'
+ 	    else
+ 	      CATOBJEXT=.mo
+ 	      localedir='$(prefix)/lib/locale'
+ 	    fi
+ 	    INSTOBJEXT=.mo
+ 	  fi
+ 	else
+ 	  # System provided gettext
+ 	  CATOBJEXT=.mo
+ 	  INSTOBJEXT=.mo
+ 	  localedir='$(prefix)/lib/locale'
+ 	fi
+       else
+ 	# Gettext but no msgfmt. Try catgets.
+ 	mr_cv_func_gettext=no
+       fi
+     fi
+     if test "$mr_cv_func_gettext" = yes; then
+       cat >> confdefs.h <<\EOF
+ #define HAVE_GETTEXT 1
+ EOF
+ 
+     else
+       echo $ac_n "checking for catgets""... $ac_c" 1>&6
+ echo "configure:2785: checking for catgets" >&5
+ if eval "test \"`echo '$''{'mr_cv_func_catgets'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   
+ 	cat > conftest.$ac_ext <<EOF
+ #line 2791 "configure"
+ #include "confdefs.h"
+ #include <nl_types.h>
+ int main() {
+ catgets(catopen("",0),0,0,"");return 0;
+ ; return 0; }
+ EOF
+ if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+   rm -rf conftest*
+   mr_cv_func_catgets=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -rf conftest*
+   mr_cv_func_catgets=no
+ fi
+ rm -f conftest*
+       
+ fi
+ 
+ echo "$ac_t""$mr_cv_func_catgets" 1>&6
+       if test "$mr_cv_func_catgets" = yes; then
+ 	# Extract the first word of "gencat", so it can be a program name with args.
+ set dummy gencat; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:2816: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   case "$GENCAT" in
+   /*)
+   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
+   ;;
+   ?:/*)			 
+   ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a dos path.
+   ;;
+   *)
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$mr_PATH"
+   for ac_dir in $ac_dummy; do 
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_path_GENCAT="$ac_dir/$ac_word"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
+   ;;
+ esac
+ fi
+ GENCAT="$ac_cv_path_GENCAT"
+ if test -n "$GENCAT"; then
+   echo "$ac_t""$GENCAT" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ 	if test "$GENCAT" != no; then
+ 	  cat >> confdefs.h <<\EOF
+ #define HAVE_CATGETS 1
+ EOF
+ 
+ 	  # Extract the first word of "gmsgfmt msgfmt", so it can be a program name with args.
+ set dummy gmsgfmt msgfmt; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:2857: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   case "$GMSGFMT" in
+   /*)
+   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
+   ;;
+   ?:/*)			 
+   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
+   ;;
+   *)
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$mr_PATH"
+   for ac_dir in $ac_dummy; do 
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="msgfmt"
+   ;;
+ esac
+ fi
+ GMSGFMT="$ac_cv_path_GMSGFMT"
+ if test -n "$GMSGFMT"; then
+   echo "$ac_t""$GMSGFMT" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ 	  # Extract the first word of "xgettext", so it can be a program name with args.
+ set dummy xgettext; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:2893: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   case "$XGETTEXT" in
+   /*)
+   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
+   ;;
+   ?:/*)			 
+   ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a dos path.
+   ;;
+   *)
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$mr_PATH"
+   for ac_dir in $ac_dummy; do 
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT="xgettext"
+   ;;
+ esac
+ fi
+ XGETTEXT="$ac_cv_path_XGETTEXT"
+ if test -n "$XGETTEXT"; then
+   echo "$ac_t""$XGETTEXT" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+ 	  CATOBJEXT=.cat
+ 	  INSTOBJEXT=.cat
+ 	  localedir='$(prefix)/lib/locale'
+ 	fi
+       else
+ 	echo "configure: warning: no NLS support, disabled" 1>&2
+ 	mr_enable_nls=no
+       fi
+     fi
+   fi
+   
+   
+   
+ 
+   POSUB=
+   CATALOGS=
+   if test "$mr_enable_nls" = yes; then
+     echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
+ echo "configure:2944: checking for catalogs to be installed" >&5
+     mr_linguas=
+     for mr_lang in ${LINGUAS=$ALL_LINGUAS}; do
+       case " $ALL_LINGUAS " in
+ 	*" $mr_lang "*)
+ 	  mr_linguas="$mr_linguas$mr_lang "
+ 	  CATALOGS="$CATALOGS $mr_lang$CATOBJEXT"
+ 	  ;;
+       esac
+     done
+     echo "$ac_t""$mr_linguas" 1>&6
+     POSUB=po
+   fi
+   
+   
+ 
+ 
+ 
+ # Make sure we can run config.sub.
+ if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
+ else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
+ fi
+ 
+ echo $ac_n "checking host system type""... $ac_c" 1>&6
+ echo "configure:2968: checking host system type" >&5
+ 
+ host_alias=$host
+ case "$host_alias" in
+ NONE)
+   case $nonopt in
+   NONE)
+     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
+     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
+     fi ;;
+   *) host_alias=$nonopt ;;
+   esac ;;
+ esac
+ 
+ host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
+ host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
+ host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
+ host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
+ echo "$ac_t""$host" 1>&6
+ 
+ 
+   
+   PICFLAGS=
+   SHLIB_SFX=
+   SHLINK_SFX=
+   SONAME_SFX=
+   LINK_SHLIB=
+   INSTALL_SHLIB=
+   DEPSHLIBS=
+   echo $ac_n "checking whether to build a shared library""... $ac_c" 1>&6
+ echo "configure:2998: checking whether to build a shared library" >&5
+   # Check whether --enable-shared or --disable-shared was given.
+ if test "${enable_shared+set}" = set; then
+   enableval="$enable_shared"
+   mr_enable_shared="$enableval"
+ else
+   mr_enable_shared=yes
+ fi
+ 
+   echo "$ac_t""$mr_enable_shared" 1>&6
+   if test "$mr_enable_shared" = yes; then
+     echo $ac_n "checking whether GNU naming conventions are requested""... $ac_c" 1>&6
+ echo "configure:3010: checking whether GNU naming conventions are requested" >&5
+     # Check whether --enable-gnu_names or --disable-gnu_names was given.
+ if test "${enable_gnu_names+set}" = set; then
+   enableval="$enable_gnu_names"
+   mr_enable_gnu_names="$enableval"
+ else
+   mr_enable_gnu_names=no
+ fi
+ 
+     echo "$ac_t""$mr_enable_gnu_names" 1>&6
+     
+     
+     # Extract the first word of "ld", so it can be a program name with args.
+ set dummy ld; ac_word=$2
+ echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
+ echo "configure:3025: checking for $ac_word" >&5
+ if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   case "$LD" in
+   /*)
+   ac_cv_path_LD="$LD" # Let the user override the test with a path.
+   ;;
+   ?:/*)			 
+   ac_cv_path_LD="$LD" # Let the user override the test with a dos path.
+   ;;
+   *)
+   IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
+   ac_dummy="$PATH"
+   for ac_dir in $ac_dummy; do 
+     test -z "$ac_dir" && ac_dir=.
+     if test -f $ac_dir/$ac_word; then
+       ac_cv_path_LD="$ac_dir/$ac_word"
+       break
+     fi
+   done
+   IFS="$ac_save_ifs"
+   test -z "$ac_cv_path_LD" && ac_cv_path_LD="ld"
+   ;;
+ esac
+ fi
+ LD="$ac_cv_path_LD"
+ if test -n "$LD"; then
+   echo "$ac_t""$LD" 1>&6
+ else
+   echo "$ac_t""no" 1>&6
+ fi
+ 
+     case "$host" in
+       *-linux*|*-gnu*)
+ 	if test "$GCC" = yes; then
+ 	  
+   
+   echo $ac_n "checking for native ELF system""... $ac_c" 1>&6
+ echo "configure:3064: checking for native ELF system" >&5
+ if eval "test \"`echo '$''{'mr_cv_target_elf'+set}'`\" = set"; then
+   echo $ac_n "(cached) $ac_c" 1>&6
+ else
+   if test "$cross_compiling" = yes; then
+   mr_cv_target_elf=no
+ else
+   cat > conftest.$ac_ext <<EOF
+ #line 3072 "configure"
+ #include "confdefs.h"
+ #include <stdio.h>
+ int
+ main(int argc, char **argv) {
+   char buf[BUFSIZ];
+   FILE *fp;
+   int n;
+ 
+   if ((fp = fopen(*argv, "r")) == NULL) {
+     exit(1);
+   }
+   n = fread(buf, 1, sizeof(buf), fp);
+   if (n >= 52
+    && buf[0] == '\177'
+    && buf[1] == 'E'
+    && buf[2] == 'L'
+    && buf[3] == 'F') {
+     exit(0);
+   }
+   exit(1);
+ }
+ EOF
+ if { (eval echo configure:3095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
+ then
+         mr_cv_target_elf=yes
+ else
+   echo "configure: failed program was:" >&5
+   cat conftest.$ac_ext >&5
+   rm -fr conftest*
+   mr_cv_target_elf=no
+ fi
+ rm -fr conftest*
+ fi
+ 
+ fi
+ 
+ echo "$ac_t""$mr_cv_target_elf" 1>&6
+ 	  if test "$mr_cv_target_elf" = yes; then
+ 	    PICFLAGS='-fPIC -DPIC'
+ 	    if test "$mr_enable_gnu_names" = yes
+ 	    then
+ 	      SHLIB_SFX='-$(VERSION).so'
+ 	    else
+ 	      SHLIB_SFX='.so.$(VERSION)'
+ 	    fi
+ 	    SHLINK_SFX='.so'
+ 	    SONAME_SFX='.so.$(MAJOR)'
+ 	    LINK_SHLIB='$(CC) -shared -Wl,-soname,$(SONAME)'
+ 	    INSTALL_SHLIB='$(INSTALL_PROGRAM)'
+ 	    DEPSHLIBS='-lc'
+ 	  else
+ 	    echo "configure: warning: shared libraries not supported for $host" 1>&2
+ 	    mr_enable_shared=no
+ 	  fi
+ 	else
+ 	  echo "configure: warning: GNU CC required for building shared libraries" 1>&2
+ 	  mr_enable_shared=no
+ 	fi
+ 	;;
+       sparc-sun-solaris2*)
+ 	if test "$GCC" = yes; then
+ 	  PICFLAGS='-fPIC -DPIC'
+ 	else
+ 	  PICFLAGS='-K PIC -DPIC'
+ 	fi
+ 	if test "$mr_enable_gnu_names" = yes
+ 	then
+ 	  SHLIB_SFX='-$(MAJOR).so'
+ 	else
+ 	  SHLIB_SFX='.so.$(MAJOR)'
+ 	fi
+ 	SONAME_SFX='.so.$(MAJOR)'
+ 	SHLINK_SFX='.so'
+ 	LINK_SHLIB='$(LD) -G -z text -h $(SONAME)'
+ 	INSTALL_SHLIB='$(INSTALL_PROGRAM)'
+ 	;;
+       *)
+ 	echo "configure: warning: shared libraries not supported for $host" 1>&2
+ 	mr_enable_shared=no
+ 	;;
+     esac
+   else
+     mr_enable_shared=no
+   fi
+   
+   
+   
+   
+   
+   
+   
+   DO_SHLIB="$mr_enable_shared"
+   
+ 
+ 
+ 
+   
+   # Check whether --enable-debug or --disable-debug was given.
+ if test "${enable_debug+set}" = set; then
+   enableval="$enable_debug"
+   mr_enable_debug="$enableval"
+ else
+   mr_enable_debug=no
+ fi
+ 
+   if test "$mr_enable_debug" = yes; then
+     cat >> confdefs.h <<\EOF
+ #define ENABLE_DEBUG 1
+ EOF
+ 
+   fi
+ 
+ 
+ trap '' 1 2 15
+ cat > confcache <<\EOF
+ # This file is a shell script that caches the results of configure
+ # tests run on this system so they can be shared between configure
+ # scripts and configure runs.  It is not useful on other systems.
+ # If it contains results you don't want to keep, you may remove or edit it.
+ #
+ # By default, configure uses ./config.cache as the cache file,
+ # creating it if it does not exist already.  You can give configure
+ # the --cache-file=FILE option to use a different cache file; that is
+ # what configure does when it calls configure scripts in
+ # subdirectories, so they share the cache.
+ # Giving --cache-file=/dev/null disables caching, for debugging configure.
+ # config.status only pays attention to the cache file if you give it the
+ # --recheck option to rerun configure.
+ #
+ EOF
+ # The following way of writing the cache mishandles newlines in values,
+ # but we know of no workaround that is simple, portable, and efficient.
+ # So, don't put newlines in cache variables' values.
+ # Ultrix sh set writes to stderr and can't be redirected directly,
+ # and sets the high bit in the cache file unless we assign to the vars.
+ (set) 2>&1 |
+   case `(ac_space=' '; set | grep ac_space) 2>&1` in
+   *ac_space=\ *)
+     # `set' does not quote correctly, so add quotes (double-quote substitution
+     # turns \\\\ into \\, and sed turns \\ into \).
+     sed -n \
+       -e "s/'/'\\\\''/g" \
+       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
+     ;;
+   *)
+     # `set' quotes correctly as required by POSIX, so do not add quotes.
+     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
+     ;;
+   esac >> confcache
+ if cmp -s $cache_file confcache; then
+   :
+ else
+   if test -w $cache_file; then
+     echo "updating cache $cache_file"
+     cat confcache > $cache_file
+   else
+     echo "not updating unwritable cache $cache_file"
+   fi
+ fi
+ rm -f confcache
+ 
+ trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
+ 
+ test "x$prefix" = xNONE && prefix=$ac_default_prefix
+ # Let make expand exec_prefix.
+ test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
+ 
+ # Any assignment to VPATH causes Sun make to only execute
+ # the first set of double-colon rules, so remove it if not needed.
+ # If there is a colon in the path, we need to keep it.
+ if test "x$srcdir" = x.; then
+   ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
+ fi
+ 
+ trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
+ 
+ DEFS=-DHAVE_CONFIG_H
+ 
+ # Without the "./", some shells look in PATH for config.status.
+ : ${CONFIG_STATUS=./config.status}
+ 
+ echo creating $CONFIG_STATUS
+ rm -f $CONFIG_STATUS
+ cat > $CONFIG_STATUS <<EOF
+ #! /bin/sh
+ # Generated automatically by configure.
+ # Run this file to recreate the current configuration.
+ # This directory was configured as follows,
+ # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
+ #
+ # $0 $ac_configure_args
+ #
+ # Compiler output produced by configure, useful for debugging
+ # configure, is in ./config.log if it exists.
+ 
+ ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
+ for ac_option
+ do
+   case "\$ac_option" in
+   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
+     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
+   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
+     echo "$CONFIG_STATUS generated by autoconf version 2.13"
+     exit 0 ;;
+   -help | --help | --hel | --he | --h)
+     echo "\$ac_cs_usage"; exit 0 ;;
+   *) echo "\$ac_cs_usage"; exit 1 ;;
+   esac
+ done
+ 
+ ac_given_srcdir=$srcdir
+ ac_given_INSTALL="$INSTALL"
+ 
+ trap 'rm -fr `echo "Makefile lib/Makefile po/Makefile config.h lib/sys_elf.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
+ 
+ # Protect against being on the right side of a sed subst in config.status.
+ sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
+  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
+ $ac_vpsub
+ $extrasub
+ s%@SHELL@%$SHELL%g
+ s%@CFLAGS@%$CFLAGS%g
+ s%@CPPFLAGS@%$CPPFLAGS%g
+ s%@CXXFLAGS@%$CXXFLAGS%g
+ s%@FFLAGS@%$FFLAGS%g
+ s%@DEFS@%$DEFS%g
+ s%@LDFLAGS@%$LDFLAGS%g
+ s%@LIBS@%$LIBS%g
+ s%@exec_prefix@%$exec_prefix%g
+ s%@prefix@%$prefix%g
+ s%@program_transform_name@%$program_transform_name%g
+ s%@bindir@%$bindir%g
+ s%@sbindir@%$sbindir%g
+ s%@libexecdir@%$libexecdir%g
+ s%@datadir@%$datadir%g
+ s%@sysconfdir@%$sysconfdir%g
+ s%@sharedstatedir@%$sharedstatedir%g
+ s%@localstatedir@%$localstatedir%g
+ s%@libdir@%$libdir%g
+ s%@includedir@%$includedir%g
+ s%@oldincludedir@%$oldincludedir%g
+ s%@infodir@%$infodir%g
+ s%@mandir@%$mandir%g
+ s%@PACKAGE@%$PACKAGE%g
+ s%@VERSION@%$VERSION%g
+ s%@MAINT@%$MAINT%g
+ s%@MAJOR@%$MAJOR%g
+ s%@SET_MAKE@%$SET_MAKE%g
+ s%@CC@%$CC%g
+ s%@CPP@%$CPP%g
+ s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
+ s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
+ s%@INSTALL_DATA@%$INSTALL_DATA%g
+ s%@RANLIB@%$RANLIB%g
+ s%@LN_S@%$LN_S%g
+ s%@DO_COMPAT@%$DO_COMPAT%g
+ s%@LIBOBJS@%$LIBOBJS%g
+ s%@GMOFILES@%$GMOFILES%g
+ s%@MSGFILES@%$MSGFILES%g
+ s%@POFILES@%$POFILES%g
+ s%@MSGFMT@%$MSGFMT%g
+ s%@GMSGFMT@%$GMSGFMT%g
+ s%@XGETTEXT@%$XGETTEXT%g
+ s%@GENCAT@%$GENCAT%g
+ s%@CATOBJEXT@%$CATOBJEXT%g
+ s%@INSTOBJEXT@%$INSTOBJEXT%g
+ s%@localedir@%$localedir%g
+ s%@CATALOGS@%$CATALOGS%g
+ s%@POSUB@%$POSUB%g
+ s%@host@%$host%g
+ s%@host_alias@%$host_alias%g
+ s%@host_cpu@%$host_cpu%g
+ s%@host_vendor@%$host_vendor%g
+ s%@host_os@%$host_os%g
+ s%@LD@%$LD%g
+ s%@PICFLAGS@%$PICFLAGS%g
+ s%@SHLIB_SFX@%$SHLIB_SFX%g
+ s%@SHLINK_SFX@%$SHLINK_SFX%g
+ s%@SONAME_SFX@%$SONAME_SFX%g
+ s%@LINK_SHLIB@%$LINK_SHLIB%g
+ s%@INSTALL_SHLIB@%$INSTALL_SHLIB%g
+ s%@DEPSHLIBS@%$DEPSHLIBS%g
+ s%@DO_SHLIB@%$DO_SHLIB%g
+ 
+ CEOF
+ EOF
+ 
+ cat >> $CONFIG_STATUS <<\EOF
+ 
+ # Split the substitutions into bite-sized pieces for seds with
+ # small command number limits, like on Digital OSF/1 and HP-UX.
+ ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
+ ac_file=1 # Number of current file.
+ ac_beg=1 # First line for current file.
+ ac_end=$ac_max_sed_cmds # Line after last line for current file.
+ ac_more_lines=:
+ ac_sed_cmds=""
+ while $ac_more_lines; do
+   if test $ac_beg -gt 1; then
+     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
+   else
+     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
+   fi
+   if test ! -s conftest.s$ac_file; then
+     ac_more_lines=false
+     rm -f conftest.s$ac_file
+   else
+     if test -z "$ac_sed_cmds"; then
+       ac_sed_cmds="sed -f conftest.s$ac_file"
+     else
+       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
+     fi
+     ac_file=`expr $ac_file + 1`
+     ac_beg=$ac_end
+     ac_end=`expr $ac_end + $ac_max_sed_cmds`
+   fi
+ done
+ if test -z "$ac_sed_cmds"; then
+   ac_sed_cmds=cat
+ fi
+ EOF
+ 
+ cat >> $CONFIG_STATUS <<EOF
+ 
+ CONFIG_FILES=\${CONFIG_FILES-"Makefile lib/Makefile po/Makefile"}
+ EOF
+ cat >> $CONFIG_STATUS <<\EOF
+ for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
+   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+   case "$ac_file" in
+   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+   *) ac_file_in="${ac_file}.in" ;;
+   esac
+ 
+   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
+ 
+   # Remove last slash and all that follows it.  Not all systems have dirname.
+   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+     # The file is in a subdirectory.
+     test ! -d "$ac_dir" && mkdir "$ac_dir"
+     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
+     # A "../" for each directory in $ac_dir_suffix.
+     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
+   else
+     ac_dir_suffix= ac_dots=
+   fi
+ 
+   case "$ac_given_srcdir" in
+   .)  srcdir=.
+       if test -z "$ac_dots"; then top_srcdir=.
+       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
+   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
+   *) # Relative path.
+     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
+     top_srcdir="$ac_dots$ac_given_srcdir" ;;
+   esac
+ 
+   case "$ac_given_INSTALL" in
+   [/$]*) INSTALL="$ac_given_INSTALL" ;;
+   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
+   esac
+ 
+   echo creating "$ac_file"
+   rm -f "$ac_file"
+   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
+   case "$ac_file" in
+   *Makefile*) ac_comsub="1i\\
+ # $configure_input" ;;
+   *) ac_comsub= ;;
+   esac
+ 
+   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+   sed -e "$ac_comsub
+ s%@configure_input@%$configure_input%g
+ s%@srcdir@%$srcdir%g
+ s%@top_srcdir@%$top_srcdir%g
+ s%@INSTALL@%$INSTALL%g
+ " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
+ fi; done
+ rm -f conftest.s*
+ 
+ # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
+ # NAME is the cpp macro being defined and VALUE is the value it is being given.
+ #
+ # ac_d sets the value in "#define NAME VALUE" lines.
+ ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
+ ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
+ ac_dC='\3'
+ ac_dD='%g'
+ # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
+ ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
+ ac_uB='\([ 	]\)%\1#\2define\3'
+ ac_uC=' '
+ ac_uD='\4%g'
+ # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
+ ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
+ ac_eB='$%\1#\2define\3'
+ ac_eC=' '
+ ac_eD='%g'
+ 
+ if test "${CONFIG_HEADERS+set}" != set; then
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
+   CONFIG_HEADERS="config.h lib/sys_elf.h"
+ EOF
+ cat >> $CONFIG_STATUS <<\EOF
+ fi
+ for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
+   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+   case "$ac_file" in
+   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
+        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
+   *) ac_file_in="${ac_file}.in" ;;
+   esac
+ 
+   echo creating $ac_file
+ 
+   rm -f conftest.frag conftest.in conftest.out
+   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
+   cat $ac_file_inputs > conftest.in
+ 
+ EOF
+ 
+ # Transform confdefs.h into a sed script conftest.vals that substitutes
+ # the proper values into config.h.in to produce config.h.  And first:
+ # Protect against being on the right side of a sed subst in config.status.
+ # Protect against being in an unquoted here document in config.status.
+ rm -f conftest.vals
+ cat > conftest.hdr <<\EOF
+ s/[\\&%]/\\&/g
+ s%[\\$`]%\\&%g
+ s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
+ s%ac_d%ac_u%gp
+ s%ac_u%ac_e%gp
+ EOF
+ sed -n -f conftest.hdr confdefs.h > conftest.vals
+ rm -f conftest.hdr
+ 
+ # This sed command replaces #undef with comments.  This is necessary, for
+ # example, in the case of _POSIX_SOURCE, which is predefined and required
+ # on some systems where configure will not decide to define it.
+ cat >> conftest.vals <<\EOF
+ s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
+ EOF
+ 
+ # Break up conftest.vals because some shells have a limit on
+ # the size of here documents, and old seds have small limits too.
+ 
+ rm -f conftest.tail
+ while :
+ do
+   ac_lines=`grep -c . conftest.vals`
+   # grep -c gives empty output for an empty file on some AIX systems.
+   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
+   # Write a limited-size here document to conftest.frag.
+   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
+   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
+   echo 'CEOF
+   sed -f conftest.frag conftest.in > conftest.out
+   rm -f conftest.in
+   mv conftest.out conftest.in
+ ' >> $CONFIG_STATUS
+   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
+   rm -f conftest.vals
+   mv conftest.tail conftest.vals
+ done
+ rm -f conftest.vals
+ 
+ cat >> $CONFIG_STATUS <<\EOF
+   rm -f conftest.frag conftest.h
+   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
+   cat conftest.in >> conftest.h
+   rm -f conftest.in
+   if cmp -s $ac_file conftest.h 2>/dev/null; then
+     echo "$ac_file is unchanged"
+     rm -f conftest.h
+   else
+     # Remove last slash and all that follows it.  Not all systems have dirname.
+       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
+       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
+       # The file is in a subdirectory.
+       test ! -d "$ac_dir" && mkdir "$ac_dir"
+     fi
+     rm -f $ac_file
+     mv conftest.h $ac_file
+   fi
+ fi; done
+ 
+ EOF
+ cat >> $CONFIG_STATUS <<EOF
+ 
+ EOF
+ cat >> $CONFIG_STATUS <<\EOF
+ echo timestamp > stamp-h
+ echo timestamp > lib/stamp-h
+ exit 0
+ EOF
+ chmod +x $CONFIG_STATUS
+ rm -fr confdefs* $ac_clean_files
+ test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
+ 
+ 
+ # vi: set ts=8 sw=2 :


Index: llvm/lib/CodeGen/ELF/configure.in
diff -c /dev/null llvm/lib/CodeGen/ELF/configure.in:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/configure.in	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,318 ----
+ # configure.in - Configure template for libelf.
+ # Copyright (C) 1995 - 2003 Michael Riepe <michael at stud.uni-hannover.de>
+ # Process this file with autoconf to produce a configure script.
+ 
+ # @(#) $Id: configure.in,v 1.1 2005/06/22 06:35:57 reid Exp $
+ 
+ AC_INIT(VERSION)
+ AC_CONFIG_HEADER(config.h lib/sys_elf.h)
+ 
+ AC_PREREQ(2.13)
+ 
+ mr_PACKAGE(libelf)
+ 
+ dnl NOTE: there must be at least one .po file!
+ ALL_LINGUAS=`cd $srcdir/po && echo *.po | sed 's/\.po//g'`
+ 
+ dnl Assuming all arguments have already been processed...
+ set `echo $VERSION | sed 's/\./ /g'`
+ MAJOR=${1-1}
+ MINOR=${2-0}
+ PATCH=${3-0}
+ AC_SUBST(MAJOR)
+ 
+ dnl Checks for programs.
+ AC_PROG_MAKE_SET
+ AC_PROG_CC
+ AC_PROG_CPP
+ AC_PROG_INSTALL
+ AC_PROG_RANLIB
+ AC_PROG_LN_S
+ 
+ dnl Checks for libraries.
+ 
+ dnl Checks for header files.
+ AC_HEADER_STDC
+ AC_CHECK_HEADERS(unistd.h fcntl.h elf.h sys/elf.h link.h sys/link.h)
+ if test "$ac_cv_header_elf_h" = yes; then
+   AC_DEFINE(__LIBELF_HEADER_ELF_H, [<elf.h>])
+ elif test "$ac_cv_header_sys_elf_h" = yes; then
+   AC_DEFINE(__LIBELF_HEADER_ELF_H, [<sys/elf.h>])
+ fi
+ 
+ AC_CHECK_HEADERS(ar.h libelf.h nlist.h gelf.h)
+ AC_MSG_CHECKING([whether to install <libelf.h>, <nlist.h> and <gelf.h>])
+ AC_ARG_ENABLE(compat,
+   [  --enable-compat         install <libelf.h>, <nlist.h> and <gelf.h> (default: auto)],
+   [DO_COMPAT="$enableval"],
+   [if test "$ac_cv_header_libelf_h$ac_cv_header_nlist_h$ac_cv_header_gelf_h" = yesyesyes
+   then DO_COMPAT=no
+   else DO_COMPAT=yes
+   fi])
+ AC_MSG_RESULT($DO_COMPAT)
+ AC_SUBST(DO_COMPAT)
+ 
+ dnl Checks for typedefs, structures, and compiler characteristics.
+ AC_C_CONST
+ AC_TYPE_OFF_T
+ AC_TYPE_SIZE_T
+ 
+ AC_CHECK_SIZEOF(short,2)
+ AC_CHECK_SIZEOF(int,4)
+ AC_CHECK_SIZEOF(long,4)
+ AC_CHECK_SIZEOF(long long,0)
+ 
+ if test "$ac_cv_header_elf_h" = yes \
+ || test "$ac_cv_header_sys_elf_h" = yes; then
+ 
+   # Slowaris declares Elf32_Dyn in <link.h>.
+   AC_CACHE_CHECK([for struct Elf32_Dyn], libelf_cv_struct_elf32_dyn, [
+     AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H], [Elf32_Dyn x],
+       [libelf_cv_struct_elf32_dyn=yes],
+       AC_TRY_COMPILE([#include <link.h>], [Elf32_Dyn x],
+ 	[libelf_cv_struct_elf32_dyn=link.h],
+ 	[libelf_cv_struct_elf32_dyn=no]))])
+   if test "$libelf_cv_struct_elf32_dyn" = link.h; then
+     AC_DEFINE(__LIBELF_NEED_LINK_H)
+   elif test "$libelf_cv_struct_elf32_dyn" = no; then
+     AC_MSG_ERROR([no declaration for Elf32_Dyn])
+   fi
+ 
+   # Linux declares struct nlist in <elf.h>.
+   AC_CACHE_CHECK([for struct nlist in elf.h], libelf_cv_struct_nlist, [
+     AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H], [struct nlist nl],
+       [libelf_cv_struct_nlist=yes],
+       [libelf_cv_struct_nlist=no])])
+   if test "$libelf_cv_struct_nlist" = yes; then
+     AC_DEFINE(HAVE_STRUCT_NLIST_DECLARATION)
+   fi
+ 
+   # Check for 64-bit data types.
+   AC_CACHE_CHECK([for struct Elf64_Ehdr], libelf_cv_struct_elf64_ehdr,
+     AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H],
+       [Elf64_Ehdr x],
+       [libelf_cv_struct_elf64_ehdr=yes],
+       [libelf_cv_struct_elf64_ehdr=no]))
+ 
+   # Linux lacks typedefs for scalar ELF64_* types.
+   AC_CACHE_CHECK([for Elf64_Addr], libelf_cv_type_elf64_addr,
+     AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H],
+       [Elf64_Addr x],
+       [libelf_cv_type_elf64_addr=yes],
+       [libelf_cv_type_elf64_addr=no]))
+ 
+   # IRIX' struct Elf64_Rel is slightly different. Ugh.
+   AC_CACHE_CHECK([for struct Elf64_Rel], libelf_cv_struct_elf64_rel,
+     AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H],
+       [Elf64_Rel x; x.r_info = 1],
+       [libelf_cv_struct_elf64_rel=yes],
+       AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H],
+ 	[Elf64_Rel x; x.r_sym = 1],
+ 	[libelf_cv_struct_elf64_rel=irix],
+ 	[libelf_cv_struct_elf64_rel=no])))
+ 
+   case "$libelf_cv_struct_elf64_ehdr:\
+ $libelf_cv_type_elf64_addr:\
+ $libelf_cv_struct_elf64_rel" in
+     yes:yes:yes)
+       libelf_64bit=yes;;
+     yes:yes:irix)
+       AC_DEFINE(__LIBELF64_IRIX)
+       libelf_64bit=yes;;
+     yes:no:yes)
+       AC_DEFINE(__LIBELF64_LINUX)
+       libelf_64bit=yes;;
+     *)
+       libelf_64bit=no;;
+   esac
+ 
+   # Check for symbol versioning definitions
+   AC_CACHE_CHECK([for Elf32_Verdef], libelf_cv_verdef32,
+     AC_TRY_COMPILE(
+       [#include __LIBELF_HEADER_ELF_H
+       #if __LIBELF_NEED_LINK_H
+       #include <link.h>	/* Solaris wants this */
+       #endif],
+       [struct {
+ 	Elf32_Verdef vd;
+ 	Elf32_Verdaux vda;
+ 	Elf32_Verneed vn;
+ 	Elf32_Vernaux vna;
+       } x],
+       [libelf_cv_verdef32=yes],
+       [libelf_cv_verdef32=no]))
+ 
+   AC_CACHE_CHECK([for Elf64_Verdef], libelf_cv_verdef64,
+     AC_TRY_COMPILE(
+       [#include __LIBELF_HEADER_ELF_H
+       #if __LIBELF_NEED_LINK_H
+       #include <link.h>	/* Solaris wants this */
+       #endif],
+       [struct {
+ 	Elf64_Verdef vd;
+ 	Elf64_Verdaux vda;
+ 	Elf64_Verneed vn;
+ 	Elf64_Vernaux vna;
+       } x],
+       [libelf_cv_verdef64=yes],
+       [libelf_cv_verdef64=no]))
+ 
+   AC_CACHE_CHECK([for SHT_SUNW_verdef], libelf_cv_sun_verdef,
+     AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H],
+       [Elf32_Word x = SHT_SUNW_verdef + SHT_SUNW_verneed + SHT_SUNW_versym],
+       [libelf_cv_sun_verdef=yes],
+       [libelf_cv_sun_verdef=no]))
+ 
+   AC_CACHE_CHECK([for SHT_GNU_verdef], libelf_cv_gnu_verdef,
+     AC_TRY_COMPILE([#include __LIBELF_HEADER_ELF_H],
+       [Elf32_Word x = SHT_GNU_verdef + SHT_GNU_verneed + SHT_GNU_versym],
+       [libelf_cv_gnu_verdef=yes],
+       [libelf_cv_gnu_verdef=no]))
+ else
+   # lib/elf_repl.h supports 64-bit
+   libelf_64bit=yes
+ 
+   # lib/elf_repl.h supports symbol versioning
+   libelf_cv_verdef32=yes
+   libelf_cv_verdef64=yes
+   libelf_cv_sun_verdef=yes
+   libelf_cv_gnu_verdef=yes
+ fi
+ 
+ AC_CACHE_CHECK([for 64-bit integer], libelf_cv_int64, [
+   if test "$ac_cv_sizeof_long" = 8; then
+     libelf_cv_int64='long'
+   elif test "$ac_cv_sizeof_long_long" = 8; then
+     libelf_cv_int64='long long'
+   else
+     libelf_cv_int64=no
+   fi])
+ if test "$libelf_cv_int64" = no; then
+   libelf_64bit=no
+ else
+   AC_DEFINE_UNQUOTED(__libelf_i64_t, [$libelf_cv_int64])
+   AC_DEFINE_UNQUOTED(__libelf_u64_t, [unsigned $libelf_cv_int64])
+ fi
+ 
+ AC_CACHE_CHECK([for 32-bit integer], libelf_cv_int32, [
+   if test "$ac_cv_sizeof_int" = 4; then
+     libelf_cv_int32='int'
+   elif test "$ac_cv_sizeof_long" = 4; then
+     libelf_cv_int32='long'
+   else
+     libelf_cv_int32=no
+   fi])
+ if test "$libelf_cv_int32" = no; then
+   AC_MSG_ERROR([neither int nor long is 32-bit])
+ else
+   AC_DEFINE_UNQUOTED(__libelf_i32_t, [$libelf_cv_int32])
+   AC_DEFINE_UNQUOTED(__libelf_u32_t, [unsigned $libelf_cv_int32])
+ fi
+ 
+ AC_CACHE_CHECK([for 16-bit integer], libelf_cv_int16, [
+   if test "$ac_cv_sizeof_short" = 2; then
+     libelf_cv_int16='short'
+   elif test "$ac_cv_sizeof_int" = 2; then
+     libelf_cv_int16='int'
+   else
+     libelf_cv_int16=no
+   fi])
+ if test "$libelf_cv_int16" = no; then
+   AC_MSG_ERROR([neither short nor int is 16-bit])
+ else
+   AC_DEFINE_UNQUOTED(__libelf_i16_t, [$libelf_cv_int16])
+   AC_DEFINE_UNQUOTED(__libelf_u16_t, [unsigned $libelf_cv_int16])
+ fi
+ 
+ dnl Checks for library functions.
+ AC_FUNC_MMAP
+ AC_CHECK_FUNCS(ftruncate memcmp memcpy memmove)
+ AC_REPLACE_FUNCS(memset)
+ if test "$ac_cv_func_memset" = yes; then
+   AC_DEFINE(HAVE_MEMSET)
+ fi
+ 
+ AC_CACHE_CHECK([whether overlapping arrays are copied correctly],
+   libelf_cv_working_memmove,
+   [AC_TRY_RUN(changequote(<<, >>)dnl
+ <<#include "confdefs.h"
+ #if HAVE_MEMMOVE
+ extern void *memmove();
+ #else
+ extern void bcopy();
+ #define memmove(d,s,n) bcopy((s),(d),(n))
+ #endif
+ extern int strcmp();
+ main() {
+   char buf[] = "0123456789";
+   memmove(buf + 1, buf, 9);
+   if (strcmp(buf, "0012345678")) exit(1);
+   exit(0);
+ }>>, changequote([, ])dnl
+     libelf_cv_working_memmove=yes,
+     libelf_cv_working_memmove=no,
+     libelf_cv_working_memmove='maybe not')])
+ if test "$libelf_cv_working_memmove" != yes; then
+   AC_DEFINE(HAVE_BROKEN_MEMMOVE)
+ fi
+ 
+ AC_CACHE_CHECK([the coffee machine], mr_cv_coffee_machine,
+   [mr_cv_coffee_machine='empty - operator may not work as expected'])
+ 
+ dnl Check for 64-bit support.
+ AC_MSG_CHECKING([whether 64-bit ELF support is sufficient])
+ AC_MSG_RESULT($libelf_64bit)
+ AC_MSG_CHECKING([whether to include 64-bit support])
+ if test "$libelf_64bit" = no; then
+   libelf_enable_64bit=no
+ else
+   AC_ARG_ENABLE(elf64,
+     [  --enable-elf64          compile in 64-bit support (default: auto)],
+     [libelf_enable_64bit="$enableval"],
+     [libelf_enable_64bit=yes])
+ fi
+ AC_MSG_RESULT($libelf_enable_64bit)
+ if test "$libelf_enable_64bit" = yes; then
+   AC_DEFINE(__LIBELF64)
+ fi
+ 
+ AC_MSG_CHECKING([whether versioning support is sufficient])
+ libelf_versioning=no
+ case "$libelf_enable_64bit:$libelf_cv_verdef32:$libelf_cv_verdef64" in
+   no:yes:* | yes:yes:yes)
+     if test "$libelf_cv_sun_verdef" = yes; then
+       AC_DEFINE(__LIBELF_SUN_SYMBOL_VERSIONS)
+       libelf_versioning=yes
+     elif test "$libelf_cv_gnu_verdef" = yes; then
+       AC_DEFINE(__LIBELF_GNU_SYMBOL_VERSIONS)
+       libelf_versioning=yes
+     fi;;
+ esac
+ AC_MSG_RESULT($libelf_versioning)
+ AC_MSG_CHECKING([whether to include versioning support])
+ if test "$libelf_versioning" = no; then
+   libelf_enable_versioning=no
+ else
+   AC_ARG_ENABLE(versioning,
+     [  --enable-versioning     compile in versioning support (default: auto)],
+     [libelf_enable_versioning="$enableval"],
+     [libelf_enable_versioning=yes])
+ fi
+ AC_MSG_RESULT($libelf_enable_versioning)
+ if test "$libelf_enable_versioning" = yes; then
+   AC_DEFINE(__LIBELF_SYMBOL_VERSIONS)
+ fi
+ 
+ dnl Check for NLS support.
+ mr_ENABLE_NLS
+ 
+ dnl Check for shared library support.
+ mr_ENABLE_SHARED
+ 
+ dnl Check for debug support.
+ mr_ENABLE_DEBUG
+ 
+ AC_OUTPUT([Makefile lib/Makefile po/Makefile], [echo timestamp > stamp-h
+ echo timestamp > lib/stamp-h])
+ 
+ # vi: set ts=8 sw=2 :


Index: llvm/lib/CodeGen/ELF/install-sh
diff -c /dev/null llvm/lib/CodeGen/ELF/install-sh:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/install-sh	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,119 ----
+ #!/bin/sh
+ 
+ #
+ # install - install a program, script, or datafile
+ # This comes from X11R5; it is not part of GNU.
+ #
+ # $XConsortium: install.sh,v 1.2 89/12/18 14:47:22 jim Exp $
+ #
+ # This script is compatible with the BSD install script, but was written
+ # from scratch.
+ #
+ 
+ 
+ # set DOITPROG to echo to test this script
+ 
+ # Don't use :- since 4.3BSD and earlier shells don't like it.
+ doit="${DOITPROG-}"
+ 
+ 
+ # put in absolute paths if you don't have them in your path; or use env. vars.
+ 
+ mvprog="${MVPROG-mv}"
+ cpprog="${CPPROG-cp}"
+ chmodprog="${CHMODPROG-chmod}"
+ chownprog="${CHOWNPROG-chown}"
+ chgrpprog="${CHGRPPROG-chgrp}"
+ stripprog="${STRIPPROG-strip}"
+ rmprog="${RMPROG-rm}"
+ 
+ instcmd="$mvprog"
+ chmodcmd=""
+ chowncmd=""
+ chgrpcmd=""
+ stripcmd=""
+ rmcmd="$rmprog -f"
+ mvcmd="$mvprog"
+ src=""
+ dst=""
+ 
+ while [ x"$1" != x ]; do
+     case $1 in
+ 	-c) instcmd="$cpprog"
+ 	    shift
+ 	    continue;;
+ 
+ 	-m) chmodcmd="$chmodprog $2"
+ 	    shift
+ 	    shift
+ 	    continue;;
+ 
+ 	-o) chowncmd="$chownprog $2"
+ 	    shift
+ 	    shift
+ 	    continue;;
+ 
+ 	-g) chgrpcmd="$chgrpprog $2"
+ 	    shift
+ 	    shift
+ 	    continue;;
+ 
+ 	-s) stripcmd="$stripprog"
+ 	    shift
+ 	    continue;;
+ 
+ 	*)  if [ x"$src" = x ]
+ 	    then
+ 		src=$1
+ 	    else
+ 		dst=$1
+ 	    fi
+ 	    shift
+ 	    continue;;
+     esac
+ done
+ 
+ if [ x"$src" = x ]
+ then
+ 	echo "install:  no input file specified"
+ 	exit 1
+ fi
+ 
+ if [ x"$dst" = x ]
+ then
+ 	echo "install:  no destination specified"
+ 	exit 1
+ fi
+ 
+ 
+ # If destination is a directory, append the input filename; if your system
+ # does not like double slashes in filenames, you may need to add some logic
+ 
+ if [ -d $dst ]
+ then
+ 	dst="$dst"/`basename $src`
+ fi
+ 
+ # Make a temp file name in the proper directory.
+ 
+ dstdir=`dirname $dst`
+ dsttmp=$dstdir/#inst.$$#
+ 
+ # Move or copy the file name to the temp name
+ 
+ $doit $instcmd $src $dsttmp
+ 
+ # and set any options; do chmod last to preserve setuid bits
+ 
+ if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; fi
+ if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; fi
+ if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; fi
+ if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; fi
+ 
+ # Now rename the file to the real destination.
+ 
+ $doit $rmcmd $dst
+ $doit $mvcmd $dsttmp $dst
+ 
+ 
+ exit 0


Index: llvm/lib/CodeGen/ELF/mkinstalldirs
diff -c /dev/null llvm/lib/CodeGen/ELF/mkinstalldirs:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/mkinstalldirs	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1,35 ----
+ #!/bin/sh
+ # Make directory hierarchy. 
+ # Written by Noah Friedman <friedman at prep.ai.mit.edu>
+ # Public domain.
+ 
+ defaultIFS=' 	
+ '
+ IFS="${IFS-${defaultIFS}}"
+ 
+ errstatus=0
+ 
+ for file in ${1+"$@"} ; do 
+    oIFS="${IFS}"
+    # Some sh's can't handle IFS=/ for some reason.
+    IFS='%'
+    set - `echo ${file} | sed -e 's@/@%@g' -e 's@^%@/@'`
+    IFS="${oIFS}"
+ 
+    pathcomp=''
+ 
+    for d in ${1+"$@"} ; do
+      pathcomp="${pathcomp}${d}"
+ 
+      if test ! -d "${pathcomp}"; then
+         echo "mkdir $pathcomp" 1>&2
+         mkdir "${pathcomp}" || errstatus=$?
+      fi
+ 
+      pathcomp="${pathcomp}/"
+    done
+ done
+ 
+ exit $errstatus
+ 
+ # eof


Index: llvm/lib/CodeGen/ELF/stamp-h.in
diff -c /dev/null llvm/lib/CodeGen/ELF/stamp-h.in:1.1
*** /dev/null	Wed Jun 22 01:36:10 2005
--- llvm/lib/CodeGen/ELF/stamp-h.in	Wed Jun 22 01:35:57 2005
***************
*** 0 ****
--- 1 ----
+ timestamp






More information about the llvm-commits mailing list