]> jfr.im git - irc/thales.git/commitdiff
Started from scratch
authorDmitry Bogatov <redacted>
Thu, 11 Oct 2012 17:29:46 +0000 (21:29 +0400)
committerDmitry Bogatov <redacted>
Sat, 13 Oct 2012 10:21:03 +0000 (14:21 +0400)
160 files changed:
AUTHORS
BUGS [deleted file]
COPYING
ChangeLog
INSTALL
Makefile.am
Makefile.in [deleted file]
NEWS
NeedMaintainers [deleted file]
README
README.coders [deleted file]
ReportUsage.sh [deleted file]
TODO
UnrealModules [deleted file]
acinclude.m4 [deleted file]
aclocal.m4 [deleted file]
compile [deleted file]
configure [deleted file]
configure.ac [new file with mode: 0644]
configure.in [deleted file]
data/Makefile.am [deleted file]
data/Makefile.in [deleted file]
data/mysql-bahamut.sql [deleted file]
data/mysql-hybrid.sql [deleted file]
data/mysql-ircdru.sql [deleted file]
data/mysql-ultimate28.sql [deleted file]
data/mysql-ultimate30.sql [deleted file]
data/mysql-unreal.sql [deleted file]
data/thales.conf.default [deleted file]
depcomp [deleted file]
examples/MRTG/thalesinfo.pl [deleted file]
examples/README [deleted file]
examples/clones/clones.php [deleted file]
examples/counter/README [deleted file]
examples/counter/compteur_js.php [deleted file]
examples/counter/pictures/1/0.PNG [deleted file]
examples/counter/pictures/1/1.PNG [deleted file]
examples/counter/pictures/1/2.PNG [deleted file]
examples/counter/pictures/1/3.PNG [deleted file]
examples/counter/pictures/1/4.PNG [deleted file]
examples/counter/pictures/1/5.PNG [deleted file]
examples/counter/pictures/1/6.PNG [deleted file]
examples/counter/pictures/1/7.PNG [deleted file]
examples/counter/pictures/1/8.PNG [deleted file]
examples/counter/pictures/1/9.PNG [deleted file]
examples/counter/pictures/1/deb.PNG [deleted file]
examples/counter/pictures/1/visites.PNG [deleted file]
examples/counter/pictures/2/0.PNG [deleted file]
examples/counter/pictures/2/1.PNG [deleted file]
examples/counter/pictures/2/2.PNG [deleted file]
examples/counter/pictures/2/3.PNG [deleted file]
examples/counter/pictures/2/4.PNG [deleted file]
examples/counter/pictures/2/5.PNG [deleted file]
examples/counter/pictures/2/6.PNG [deleted file]
examples/counter/pictures/2/7.PNG [deleted file]
examples/counter/pictures/2/8.PNG [deleted file]
examples/counter/pictures/2/9.PNG [deleted file]
examples/counter/pictures/2/deb.PNG [deleted file]
examples/counter/pictures/2/visites.PNG [deleted file]
examples/counter/pictures/3/0.PNG [deleted file]
examples/counter/pictures/3/1.PNG [deleted file]
examples/counter/pictures/3/2.PNG [deleted file]
examples/counter/pictures/3/3.PNG [deleted file]
examples/counter/pictures/3/4.PNG [deleted file]
examples/counter/pictures/3/5.PNG [deleted file]
examples/counter/pictures/3/6.PNG [deleted file]
examples/counter/pictures/3/7.PNG [deleted file]
examples/counter/pictures/3/8.PNG [deleted file]
examples/counter/pictures/3/9.PNG [deleted file]
examples/counter/pictures/3/deb.PNG [deleted file]
examples/counter/pictures/3/visites.PNG [deleted file]
examples/counter/pictures/4/0.PNG [deleted file]
examples/counter/pictures/4/1.PNG [deleted file]
examples/counter/pictures/4/2.PNG [deleted file]
examples/counter/pictures/4/3.PNG [deleted file]
examples/counter/pictures/4/4.PNG [deleted file]
examples/counter/pictures/4/5.PNG [deleted file]
examples/counter/pictures/4/6.PNG [deleted file]
examples/counter/pictures/4/7.PNG [deleted file]
examples/counter/pictures/4/8.PNG [deleted file]
examples/counter/pictures/4/9.PNG [deleted file]
examples/counter/pictures/4/deb.PNG [deleted file]
examples/counter/pictures/4/visites.PNG [deleted file]
examples/counter/pictures/5/0.PNG [deleted file]
examples/counter/pictures/5/1.PNG [deleted file]
examples/counter/pictures/5/2.PNG [deleted file]
examples/counter/pictures/5/3.PNG [deleted file]
examples/counter/pictures/5/4.PNG [deleted file]
examples/counter/pictures/5/5.PNG [deleted file]
examples/counter/pictures/5/6.PNG [deleted file]
examples/counter/pictures/5/7.PNG [deleted file]
examples/counter/pictures/5/8.PNG [deleted file]
examples/counter/pictures/5/9.PNG [deleted file]
examples/counter/pictures/5/deb.PNG [deleted file]
examples/counter/pictures/5/visites.PNG [deleted file]
examples/memphistools/README [deleted file]
examples/memphistools/common.php [deleted file]
examples/memphistools/counters/chan_po.php [deleted file]
examples/memphistools/counters/chans_max.php [deleted file]
examples/memphistools/counters/chans_tc.php [deleted file]
examples/memphistools/counters/servers_tc.php [deleted file]
examples/memphistools/counters/users_max.php [deleted file]
examples/memphistools/counters/users_tc.php [deleted file]
examples/memphistools/mysql.ini.php [deleted file]
examples/memphistools/status/chan_topic.php [deleted file]
examples/memphistools/status/server_on.php [deleted file]
examples/memphistools/status/user_ison.php [deleted file]
examples/memphistools/status/user_status.php [deleted file]
examples/nickinfo/README [deleted file]
examples/nickinfo/img/offline.gif [deleted file]
examples/nickinfo/img/online.gif [deleted file]
examples/nickinfo/nickinfo.php [deleted file]
examples/recycledcounter/README [deleted file]
examples/recycledcounter/recycpt.php [deleted file]
examples/whois/dowhois.php [deleted file]
examples/whois/whois.html [deleted file]
install-sh [deleted file]
missing [deleted file]
mkinstalldirs [deleted file]
src/.indent.pro [deleted file]
src/Makefile.am
src/Makefile.in [deleted file]
src/actions.c [deleted file]
src/actions.h [deleted file]
src/compat.c [deleted file]
src/compat.h [deleted file]
src/conf.c [deleted file]
src/conf.h [deleted file]
src/config.h.in [deleted file]
src/db.c [deleted file]
src/db.h [deleted file]
src/defs.h [deleted file]
src/hashlist.c [deleted file]
src/hashlist.h [deleted file]
src/log.c [deleted file]
src/log.h [deleted file]
src/main.c
src/memory.c [deleted file]
src/memory.h [deleted file]
src/messages.c [deleted file]
src/messages.h [deleted file]
src/misc.c [deleted file]
src/misc.h [deleted file]
src/process.c [deleted file]
src/process.h [deleted file]
src/send.c [deleted file]
src/send.h [deleted file]
src/sockutil.c [deleted file]
src/sockutil.h [deleted file]
src/stamp-h.in [deleted file]
src/thales.h [deleted file]
tools/README [deleted file]
tools/crontab/cron.sh [deleted file]
tools/logfilter/README [deleted file]
tools/logfilter/logfilter.sh [deleted file]
tools/testbed/README [deleted file]
tools/testbed/chgCacheTime.sh [deleted file]
tools/testbed/compileall.sh [deleted file]
tools/testbed/killall.sh [deleted file]
tools/testbed/killrunall.sh [deleted file]

diff --git a/AUTHORS b/AUTHORS
index 5cedd4d5ee6b81ea0de5114bf30f794fc10ad3b5..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -1,4 +0,0 @@
-Lucas Nussbaum <lucas@lucas-nussbaum.net>
-Claudio Fontana <claudio@gnu.org>
-Herve Rousseau <zed@apinc.org>
-Klaus Weiss <klaus.weiss@nanet.at>
\ No newline at end of file
diff --git a/BUGS b/BUGS
deleted file mode 100644 (file)
index d8d0c34..0000000
--- a/BUGS
+++ /dev/null
@@ -1 +0,0 @@
-Thales doesn't handle correctly messages from servers using a different codepage. You should disable the hashlist (see INSTALL) if you experience hashlist-related crashes because of this.
diff --git a/COPYING b/COPYING
index d60c31a97a544b53039088d14fe9114583c0efc3..94a9ed024d3859793618152ea559a168bbcbb5e2 100644 (file)
--- a/COPYING
+++ b/COPYING
-                   GNU GENERAL PUBLIC LICENSE
-                      Version 2, June 1991
+                    GNU GENERAL PUBLIC LICENSE
+                       Version 3, 29 June 2007
 
- Copyright (C) 1989, 1991 Free Software Foundation, Inc.
-     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
  Everyone is permitted to copy and distribute verbatim copies
  of this license document, but changing it is not allowed.
 
-                           Preamble
+                            Preamble
 
-  The licenses for most software are designed to take away your
-freedom to share and change it.  By contrast, the GNU General Public
-License is intended to guarantee your freedom to share and change free
-software--to make sure the software is free for all its users.  This
-General Public License applies to most of the Free Software
-Foundation's software and to any other program whose authors commit to
-using it.  (Some other Free Software Foundation software is covered by
-the GNU Library General Public License instead.)  You can apply it to
+  The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+  The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works.  By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users.  We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors.  You can apply it to
 your programs, 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.
+them 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 software, or if you modify it.
+  To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights.  Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
 
   For example, if you distribute copies of such a program, whether
-gratis or for a fee, you must give the recipients all the rights that
-you have.  You must make sure that they, too, receive or can get the
-source code.  And you must show them these terms so they know their
-rights.
-
-  We protect your rights with two steps: (1) copyright the software, and
-(2) offer you this license which gives you legal permission to copy,
-distribute and/or modify the software.
-
-  Also, for each author's protection and ours, we want to make certain
-that everyone understands that there is no warranty for this free
-software.  If the software is modified by someone else and passed on, we
-want its recipients to know that what they have is not the original, 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 redistributors of a free
-program will individually obtain patent licenses, in effect making the
-program proprietary.  To prevent this, we have made it clear that any
-patent must be licensed for everyone's free use or not licensed at all.
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received.  You must make sure that they, too, receive
+or can get the source code.  And you must show them these terms so they
+know their rights.
+
+  Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+  For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software.  For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+  Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so.  This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software.  The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable.  Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products.  If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+  Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary.  To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
 
   The precise terms and conditions for copying, distribution and
 modification follow.
-\f
-                   GNU GENERAL PUBLIC LICENSE
-   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
-  0. This License applies to any program or other work which contains
-a notice placed by the copyright holder saying it may be distributed
-under the terms of this General Public License.  The "Program", below,
-refers to any such program or work, and a "work based on the Program"
-means either the Program or any derivative work under copyright law:
-that is to say, a work containing the Program or a portion of it,
-either verbatim or with modifications and/or translated into another
-language.  (Hereinafter, translation is included without limitation in
-the term "modification".)  Each licensee is addressed as "you".
-
-Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope.  The act of
-running the Program is not restricted, and the output from the Program
-is covered only if its contents constitute a work based on the
-Program (independent of having been made by running the Program).
-Whether that is true depends on what the Program does.
-
-  1. You may copy and distribute verbatim copies of the Program's
-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 give any other recipients of the Program a copy of this License
-along with the Program.
-
-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 Program or any portion
-of it, thus forming a work based on the Program, 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) You must cause the modified files to carry prominent notices
-    stating that you changed the files and the date of any change.
-
-    b) You must cause any work that you distribute or publish, that in
-    whole or in part contains or is derived from the Program or any
-    part thereof, to be licensed as a whole at no charge to all third
-    parties under the terms of this License.
-
-    c) If the modified program normally reads commands interactively
-    when run, you must cause it, when started running for such
-    interactive use in the most ordinary way, to print or display an
-    announcement including an appropriate copyright notice and a
-    notice that there is no warranty (or else, saying that you provide
-    a warranty) and that users may redistribute the program under
-    these conditions, and telling the user how to view a copy of this
-    License.  (Exception: if the Program itself is interactive but
-    does not normally print such an announcement, your work based on
-    the Program is not required to print an announcement.)
-\f
-These requirements apply to the modified work as a whole.  If
-identifiable sections of that work are not derived from the Program,
-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 Program, 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 Program.
-
-In addition, mere aggregation of another work not based on the Program
-with the Program (or with a work based on the Program) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
-  3. You may copy and distribute the Program (or a work based on it,
-under Section 2) in object code or executable form under the terms of
-Sections 1 and 2 above provided that you also do one of the following:
-
-    a) 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; or,
-
-    b) Accompany it with a written offer, valid for at least three
-    years, to give any third party, for a charge no more than your
-    cost of physically performing source distribution, a complete
-    machine-readable copy of the corresponding source code, to be
-    distributed under the terms of Sections 1 and 2 above on a medium
-    customarily used for software interchange; or,
-
-    c) Accompany it with the information you received as to the offer
-    to distribute corresponding source code.  (This alternative is
-    allowed only for noncommercial distribution and only if you
-    received the program in object code or executable form with such
-    an offer, in accord with Subsection b above.)
-
-The source code for a work means the preferred form of the work for
-making modifications to it.  For an executable work, 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 executable.  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.
-
-If distribution of executable or 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 counts as
-distribution of the source code, even though third parties are not
-compelled to copy the source along with the object code.
-\f
-  4. You may not copy, modify, sublicense, or distribute the Program
-except as expressly provided under this License.  Any attempt
-otherwise to copy, modify, sublicense or distribute the Program 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.
-
-  5. 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 Program or its derivative works.  These actions are
-prohibited by law if you do not accept this License.  Therefore, by
-modifying or distributing the Program (or any work based on the
-Program), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Program or works based on it.
-
-  6. Each time you redistribute the Program (or any work based on the
-Program), the recipient automatically receives a license from the
-original licensor to copy, distribute or modify the Program 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
+
+                       TERMS AND CONDITIONS
+
+  0. Definitions.
+
+  "This License" refers to version 3 of the GNU General Public License.
+
+  "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+  "The Program" refers to any copyrightable work licensed under this
+License.  Each licensee is addressed as "you".  "Licensees" and
+"recipients" may be individuals or organizations.
+
+  To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy.  The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+  A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+  To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy.  Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+  To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies.  Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+  An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License.  If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+  1. Source Code.
+
+  The "source code" for a work means the preferred form of the work
+for making modifications to it.  "Object code" means any non-source
+form of a work.
+
+  A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+  The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form.  A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+  The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities.  However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work.  For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+  The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+  The Corresponding Source for a work in source code form is that
+same work.
+
+  2. Basic Permissions.
+
+  All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met.  This License explicitly affirms your unlimited
+permission to run the unmodified Program.  The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work.  This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+  You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force.  You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright.  Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+  Conveying under any other circumstances is permitted solely under
+the conditions stated below.  Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+  No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+  When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+  4. Conveying Verbatim Copies.
+
+  You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+  You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+  5. Conveying Modified Source Versions.
+
+  You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+    a) The work must carry prominent notices stating that you modified
+    it, and giving a relevant date.
+
+    b) The work must carry prominent notices stating that it is
+    released under this License and any conditions added under section
+    7.  This requirement modifies the requirement in section 4 to
+    "keep intact all notices".
+
+    c) You must license the entire work, as a whole, under this
+    License to anyone who comes into possession of a copy.  This
+    License will therefore apply, along with any applicable section 7
+    additional terms, to the whole of the work, and all its parts,
+    regardless of how they are packaged.  This License gives no
+    permission to license the work in any other way, but it does not
+    invalidate such permission if you have separately received it.
+
+    d) If the work has interactive user interfaces, each must display
+    Appropriate Legal Notices; however, if the Program has interactive
+    interfaces that do not display Appropriate Legal Notices, your
+    work need not make them do so.
+
+  A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit.  Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+  6. Conveying Non-Source Forms.
+
+  You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+    a) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by the
+    Corresponding Source fixed on a durable physical medium
+    customarily used for software interchange.
+
+    b) Convey the object code in, or embodied in, a physical product
+    (including a physical distribution medium), accompanied by a
+    written offer, valid for at least three years and valid for as
+    long as you offer spare parts or customer support for that product
+    model, to give anyone who possesses the object code either (1) a
+    copy of the Corresponding Source for all the software in the
+    product that is covered by this License, on a durable physical
+    medium customarily used for software interchange, for a price no
+    more than your reasonable cost of physically performing this
+    conveying of source, or (2) access to copy the
+    Corresponding Source from a network server at no charge.
+
+    c) Convey individual copies of the object code with a copy of the
+    written offer to provide the Corresponding Source.  This
+    alternative is allowed only occasionally and noncommercially, and
+    only if you received the object code with such an offer, in accord
+    with subsection 6b.
+
+    d) Convey the object code by offering access from a designated
+    place (gratis or for a charge), and offer equivalent access to the
+    Corresponding Source in the same way through the same place at no
+    further charge.  You need not require recipients to copy the
+    Corresponding Source along with the object code.  If the place to
+    copy the object code is a network server, the Corresponding Source
+    may be on a different server (operated by you or a third party)
+    that supports equivalent copying facilities, provided you maintain
+    clear directions next to the object code saying where to find the
+    Corresponding Source.  Regardless of what server hosts the
+    Corresponding Source, you remain obligated to ensure that it is
+    available for as long as needed to satisfy these requirements.
+
+    e) Convey the object code using peer-to-peer transmission, provided
+    you inform other peers where the object code and Corresponding
+    Source of the work are being offered to the general public at no
+    charge under subsection 6d.
+
+  A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+  A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling.  In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage.  For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product.  A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+  "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source.  The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+  If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information.  But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+  The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed.  Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+  Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+  7. Additional Terms.
+
+  "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law.  If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+  When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it.  (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.)  You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+  Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+    a) Disclaiming warranty or limiting liability differently from the
+    terms of sections 15 and 16 of this License; or
+
+    b) Requiring preservation of specified reasonable legal notices or
+    author attributions in that material or in the Appropriate Legal
+    Notices displayed by works containing it; or
+
+    c) Prohibiting misrepresentation of the origin of that material, or
+    requiring that modified versions of such material be marked in
+    reasonable ways as different from the original version; or
+
+    d) Limiting the use for publicity purposes of names of licensors or
+    authors of the material; or
+
+    e) Declining to grant rights under trademark law for use of some
+    trade names, trademarks, or service marks; or
+
+    f) Requiring indemnification of licensors and authors of that
+    material by anyone who conveys the material (or modified versions of
+    it) with contractual assumptions of liability to the recipient, for
+    any liability that these contractual assumptions directly impose on
+    those licensors and authors.
+
+  All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10.  If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term.  If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+  If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+  Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+  8. Termination.
+
+  You may not propagate or modify a covered work except as expressly
+provided under this License.  Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+  However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+  Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+  Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License.  If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+  9. Acceptance Not Required for Having Copies.
+
+  You are not required to accept this License in order to receive or
+run a copy of the Program.  Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance.  However,
+nothing other than this License grants you permission to propagate or
+modify any covered work.  These actions infringe copyright if you do
+not accept this License.  Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+  10. Automatic Licensing of Downstream Recipients.
+
+  Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License.  You are not responsible
+for enforcing compliance by third parties with this License.
+
+  An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations.  If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+  You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License.  For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+  11. Patents.
+
+  A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based.  The
+work thus licensed is called the contributor's "contributor version".
+
+  A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version.  For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
 this License.
 
-  7. 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
+  Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+  In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement).  To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+  If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients.  "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+  If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+  A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License.  You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+  Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+  12. No Surrender of Others' Freedom.
+
+  If 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 Program at all.  For example, if a patent
-license would not permit royalty-free redistribution of the Program 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 Program.
-
-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.
-\f
-  8. If the distribution and/or use of the Program is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Program 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.
-
-  9. The Free Software Foundation may publish revised and/or new versions
-of the General Public License from time to time.  Such new versions will
+excuse you from the conditions of this License.  If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all.  For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+  13. Use with the GNU Affero General Public License.
+
+  Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work.  The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+  14. Revised Versions of this License.
+
+  The Free Software Foundation may publish revised and/or new versions of
+the GNU 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 Program
-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 Program does not specify a version number of
-this License, you may choose any version ever published by the Free Software
-Foundation.
-
-  10. If you wish to incorporate parts of the Program into other free
-programs whose distribution conditions are different, 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
-
-  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-PROVIDE THE PROGRAM "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 PROGRAM IS WITH YOU.  SHOULD THE
-PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
-REPAIR OR CORRECTION.
-
-  12. 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 PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER
-PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
-POSSIBILITY OF SUCH DAMAGES.
-
-                    END OF TERMS AND CONDITIONS
-\f
-           How to Apply These Terms to Your New Programs
+  Each version is given a distinguishing version number.  If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation.  If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+  If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+  Later license versions may give you additional or different
+permissions.  However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+  15. Disclaimer of Warranty.
+
+  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "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 PROGRAM
+IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+  16. Limitation of Liability.
+
+  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM 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 PROGRAM (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 PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+  17. Interpretation of Sections 15 and 16.
+
+  If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+                     END OF TERMS AND CONDITIONS
+
+            How to Apply These Terms to Your New Programs
 
   If you develop a new program, and you want it to be of the greatest
 possible use to the public, the best way to achieve this is to make it
@@ -287,15 +628,15 @@ free software which everyone can redistribute and change under these terms.
 
   To do so, attach the following notices to the program.  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
+state 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 program's name and a brief idea of what it does.>
     Copyright (C) <year>  <name of author>
 
-    This program is free software; you can redistribute it and/or modify
+    This program is free software: you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
+    the Free Software Foundation, either version 3 of the License, or
     (at your option) any later version.
 
     This program is distributed in the hope that it will be useful,
@@ -304,37 +645,30 @@ the "copyright" line and a pointer to where the full notice is found.
     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
-
+    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 Also add information on how to contact you by electronic and paper mail.
 
-If the program is interactive, make it output a short notice like this
-when it starts in an interactive mode:
+  If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
 
-    Gnomovision version 69, Copyright (C) year  name of author
-    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+    <program>  Copyright (C) <year>  <name of author>
+    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
     This is free software, and you are welcome to redistribute it
     under certain conditions; type `show c' for details.
 
 The hypothetical commands `show w' and `show c' should show the appropriate
-parts of the General Public License.  Of course, the commands you use may
-be called something other than `show w' and `show c'; they could even be
-mouse-clicks or menu items--whatever suits your program.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the program, if
-necessary.  Here is a sample; alter the names:
-
-  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
-  `Gnomovision' (which makes passes at compilers) written by James Hacker.
-
-  <signature of Ty Coon>, 1 April 1989
-  Ty Coon, President of Vice
-
-This General Public License does not permit incorporating your program into
-proprietary programs.  If your program is a subroutine library, you may
-consider it more useful to permit linking proprietary applications with the
-library.  If this is what you want to do, use the GNU Library General
-Public License instead of this License.
+parts of the General Public License.  Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+  You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+<http://www.gnu.org/licenses/>.
+
+  The GNU General Public License does not permit incorporating your program
+into proprietary programs.  If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library.  If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.  But first, please read
+<http://www.gnu.org/philosophy/why-not-lgpl.html>.
index 0b6f73249406d00830f2bbce568afbdda8c3fa0c..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,31 +0,0 @@
-2007-02-03  Klaus Weiss  <klaus.weiss@nanet.at>
-
-       * src/conf.c (directives): added MysqlPort and MysqlPrefix
-       * src/db.c (db_connect): enables MysqlPort and MysqlPrefix
-       * src/db.c (db_checkserver, db_getserver, db_checknick) 
-       (db_getnick_unsure, db_getnick, db_getservfromnick, db_removenick)
-       (db_removefromchans, db_checkemtpychan, db_getlusers, db_getchannel)
-       (db_getchancreate, db_cleanserver, db_cleanuser, db_offlineusers):
-       enables MysqlPrefix
-
-2007-02-02  Klaus Weiss  <klaus.weiss@nanet.at>
-
-       * src/main.c (main): added getopt_long() support
-       added -c parameter to allow changing the config file path.
-       * src/conf.c (read_config): changed interface
-       * src/conf.c (error): exchanged THALES_CONF with thales_conf variable
-       * src/Makefile.am: removed THALES_CONF definition
-
-2006-11-18    Claudio Fontana <claudio@gnu.org>
-       
-       * ReportUsage.sh: removed.
-       * configure.in: do not get input from stdin, do not mail reports
-         to the original author. Fix to satisfy GNU standards.
-         Replace AM_CONFIG_HEADER with AC_CONFIG_HEADERS.
-       * src/Makefile.am: configuration file path fixed.
-       * src/conf.h: remove THALES_CONF definition.
-       * data/Makefile.am: support DESTDIR, use correct variables for data.
-       * ChangeLog: recreated in GNU format, moved old to NEWS.
-       * Makefile.am: adjust for the changes, remove foreign option.
-       * autogen.sh: new file
-
diff --git a/INSTALL b/INSTALL
index 3164f352d6d7eba98bf914ed739d8ae1b1bfef34..6e90e07d271f34826b3868acf577d68a5761c0c1 100644 (file)
--- a/INSTALL
+++ b/INSTALL
-GNU Thales Installation
-=======================
-
-Thales's installation is quite straightforward.
-- Untar the archive
-
-- cd to the directory newly created
-
-- ./configure
-
-  * You need to have installed the packages with the files libmysqlclient.so
-    and mysql.h. (with Debian, libmysqlclient-dev and libmysqlclient12)
-
-  * You might want to use --with-mysql=PREFIX to specify where to look for mysql
-    includes and libraries.
-
-  * You might also want to specify where thales will be installed. It defaults
-    to $HOME/thales, but can be forced using --prefix=DESTDIR.
-        
-  * You can specify the IRCD type on the command line. If you don't, you'll be
-    asked for it. Use --with-ircd=IRCDTYPE, where IRCDTYPE is bahamut, hybrid,
-    ircdru, unreal, ultimate28 or ultimate30.
-        
-  * If the compiled binary fails to work (often because of a linking problem),
-    you can try the --enable-static option, so that the generated binary will
-    be statically linked.
-        
-  * If you don't want modes to be stored in the chan and user tables, use the
-    --enable-no-modes option. This will decrease CPU usage. Modes in the ison
-    table will still be stored.
-        
-  * If you experience hashlist-related crashes, you might want to disable it.
-    Use --with-hashlist=NO, but thales will run 20% slower.
-        
-  * You can use different SQL tables names (Thales will use user, chan, ison,
-    server and maxvalues). See "Using Different Tables Names" below.
-
-- make (or gmake on BSD systems)
-
-- make install
-
-- cd to destination directory
-
-- edit thales.conf and configure everything
-
-- create the mysql database if needed
-
-- load the tables (usually with mysql -u user -p database < mysql-IRCDTYPE.sql
-
-- add the C/N lines for Thales in your ircd.conf. No U lines are needed.
-
-- start thales : ./thales
-  It runs in the background. to run it in the
-  foreground, use -d. To provide a verbose log (always interesting to see how
-  it works), use -v.
-  If thales doesn't start because of a libmysqlclient problem, your mysql
-  installation is bogus. Try to compile it statically (see above :
-  --enable-static).
-
-- enjoy :)
-
-Using Different Tables Names
-============================
-If for some reason, you can't use the tables named user, chan, ison, server and
-maxvalues for Thales (if the database is shared with another application, for
-example), you can change this.
-- (Optionnally) Change the table names prefix with
-  ./configure --with-tableprefix=blop_ (tables will be named blop_chan etc)
-- Change the name of the tables in the data/mysql-*.sql file for your ircd, and
-  load the file into MySQL to create the tables. Alternatively, you can rename
-  the existing Thales tables with ALTER TABLE oldname RENAME AS newname;
-- Edit src/db.h, and modify TBL_USER, TBL_CHAN, TBL_ISON, and/or TBL_MAXV.
-- Recompile Thales.
-
-Please note that all your scripts will probably need modifications too.
-
--------------------------------------------------------------------------
-Here are the autoconf instrutions, if you need more info about the
-installation process.
+Installation Instructions
+*************************
+
+Copyright (C) 1994-1996, 1999-2002, 2004-2012 Free Software Foundation,
+Inc.
+
+   Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.  This file is offered as-is,
+without warranty of any kind.
 
 Basic Installation
 ==================
 
-   These are generic installation instructions.
+   Briefly, the shell commands `./configure; make; make install' should
+configure, build, and install this package.  The following
+more-detailed instructions are generic; see the `README' file for
+instructions specific to this package.  Some packages provide this
+`INSTALL' file but do not implement all of the features documented
+below.  The lack of an optional feature in a given package is not
+necessarily a bug.  More recommendations for GNU packages can be found
+in *note Makefile Conventions: (standards)Makefile Conventions.
 
    The `configure' shell script attempts to guess correct values for
 various system-dependent variables used during compilation.  It uses
 those values to create a `Makefile' in each directory of the package.
 It may also create one or more `.h' files containing system-dependent
 definitions.  Finally, it creates a shell script `config.status' that
-you can run in the future to recreate the current configuration, 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').
+you can run in the future to recreate the current configuration, and a
+file `config.log' containing compiler output (useful mainly for
+debugging `configure').
+
+   It can also use an optional file (typically called `config.cache'
+and enabled with `--cache-file=config.cache' or simply `-C') that saves
+the results of its tests to speed up reconfiguring.  Caching is
+disabled by default to prevent problems with accidental use of stale
+cache files.
 
    If you need to do unusual things to compile the package, please try
 to figure out how `configure' could check whether to do them, and mail
 diffs or instructions to the address given in the `README' so they can
-be considered for the next release.  If at some point `config.cache'
-contains results you don't want to keep, you may remove or edit it.
+be considered for the next release.  If you are using the cache, and at
+some point `config.cache' contains results you don't want to keep, you
+may remove or edit it.
 
-   The file `configure.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 file `configure.ac' (or `configure.in') is used to create
+`configure' by a program called `autoconf'.  You need `configure.ac' if
+you want to change it or regenerate `configure' using a newer version
+of `autoconf'.
 
-The simplest way to compile this package is:
+   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.
+     `./configure' to configure the package for your system.
 
-     Running `configure' takes awhile.  While running, it prints some
-     messages telling which features it is checking for.
+     Running `configure' might take a while.  While running, it prints
+     some messages telling which features it is checking for.
 
   2. Type `make' to compile the package.
 
   3. Optionally, type `make check' to run any self-tests that come with
-     the package.
+     the package, generally using the just-built uninstalled binaries.
 
   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
+     documentation.  When installing into a prefix owned by root, it is
+     recommended that the package be configured and built as a regular
+     user, and only the `make install' phase executed with root
+     privileges.
+
+  5. Optionally, type `make installcheck' to repeat any self-tests, but
+     this time using the binaries in their final installed location.
+     This target does not install anything.  Running this target as a
+     regular user, particularly if the prior `make install' required
+     root privileges, verifies that the installation completed
+     correctly.
+
+  6. You can remove the program binaries and object files from the
      source code directory by typing `make clean'.  To also remove the
      files that `configure' created (so you can compile the package for
      a different kind of computer), type `make distclean'.  There is
@@ -131,62 +83,119 @@ The simplest way to compile this package is:
      all sorts of other programs in order to regenerate files that came
      with the distribution.
 
+  7. Often, you can also type `make uninstall' to remove the installed
+     files again.  In practice, not all packages have tested that
+     uninstallation works correctly, even though it is required by the
+     GNU Coding Standards.
+
+  8. Some packages, particularly those that use Automake, provide `make
+     distcheck', which can by used by developers to test that all other
+     targets like `make install' and `make uninstall' work correctly.
+     This target is generally not run by end users.
+
 Compilers and Options
 =====================
 
    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
+the `configure' script does not know about.  Run `./configure --help'
+for details on some of the pertinent environment variables.
 
-Or on systems that have the `env' program, you can do it like this:
-     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
+   You can give `configure' initial values for configuration parameters
+by setting variables in the command line or in the environment.  Here
+is an example:
+
+     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
+
+   *Note Defining Variables::, for more details.
 
 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
+own directory.  To do this, you can use GNU `make'.  `cd' to the
 directory where you want the object files and executables to go and run
 the `configure' script.  `configure' automatically checks for the
-source code in the directory that `configure' is in and in `..'.
+source code in the directory that `configure' is in and in `..'.  This
+is known as a "VPATH" build.
+
+   With a non-GNU `make', it is safer to compile the package for one
+architecture at a time in the source code directory.  After you have
+installed the package for one architecture, use `make distclean' before
+reconfiguring for another architecture.
+
+   On MacOS X 10.5 and later systems, you can create libraries and
+executables that work on multiple system types--known as "fat" or
+"universal" binaries--by specifying multiple `-arch' options to the
+compiler but only a single `-arch' option to the preprocessor.  Like
+this:
+
+     ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+                 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
+                 CPP="gcc -E" CXXCPP="g++ -E"
 
-   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.
+   This is not guaranteed to produce working output in all cases, you
+may have to build one architecture at a time and combine the results
+using the `lipo' tool if you have problems.
 
 Installation Names
 ==================
 
-   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'.
+   By default, `make install' installs the package's commands under
+`/usr/local/bin', include files under `/usr/local/include', etc.  You
+can specify an installation prefix other than `/usr/local' by giving
+`configure' the option `--prefix=PREFIX', where PREFIX must be an
+absolute file name.
 
    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.
+pass the option `--exec-prefix=PREFIX' to `configure', the package uses
+PREFIX as the prefix for installing programs and libraries.
+Documentation and other data files still use the regular prefix.
 
    In addition, if you use an unusual directory layout you can give
-options like `--bindir=PATH' to specify different values for particular
+options like `--bindir=DIR' to specify different values for particular
 kinds of files.  Run `configure --help' for a list of the directories
-you can set and what kinds of files go in them.
+you can set and what kinds of files go in them.  In general, the
+default for these options is expressed in terms of `${prefix}', so that
+specifying just `--prefix' will affect all of the other directory
+specifications that were not explicitly provided.
+
+   The most portable way to affect installation locations is to pass the
+correct locations to `configure'; however, many packages provide one or
+both of the following shortcuts of passing variable assignments to the
+`make install' command line to change installation locations without
+having to reconfigure or recompile.
+
+   The first method involves providing an override variable for each
+affected directory.  For example, `make install
+prefix=/alternate/directory' will choose an alternate location for all
+directory configuration variables that were expressed in terms of
+`${prefix}'.  Any directories that were specified during `configure',
+but not in terms of `${prefix}', must each be overridden at install
+time for the entire installation to be relocated.  The approach of
+makefile variable overrides for each directory variable is required by
+the GNU Coding Standards, and ideally causes no recompilation.
+However, some platforms have known limitations with the semantics of
+shared libraries that end up requiring recompilation when using this
+method, particularly noticeable in packages that use GNU Libtool.
+
+   The second method involves providing the `DESTDIR' variable.  For
+example, `make install DESTDIR=/alternate/directory' will prepend
+`/alternate/directory' before all installation names.  The approach of
+`DESTDIR' overrides is not required by the GNU Coding Standards, and
+does not work on platforms that have drive letters.  On the other hand,
+it does better at avoiding recompilation issues, and works well even
+when some directory options were not specified in terms of `${prefix}'
+at `configure' time.
+
+Optional Features
+=================
 
    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
@@ -199,25 +208,80 @@ 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.
 
+   Some packages offer the ability to configure how verbose the
+execution of `make' will be.  For these packages, running `./configure
+--enable-silent-rules' sets the default to minimal output, which can be
+overridden with `make V=1'; while running `./configure
+--disable-silent-rules' sets the default to verbose, which can be
+overridden with `make V=0'.
+
+Particular systems
+==================
+
+   On HP-UX, the default C compiler is not ANSI C compatible.  If GNU
+CC is not installed, it is recommended to use the following options in
+order to use an ANSI C compiler:
+
+     ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
+
+and if that doesn't work, install pre-built binaries of GCC for HP-UX.
+
+   HP-UX `make' updates targets which have the same time stamps as
+their prerequisites, which makes it generally unusable when shipped
+generated files such as `configure' are involved.  Use GNU `make'
+instead.
+
+   On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
+parse its `<wchar.h>' header file.  The option `-nodtk' can be used as
+a workaround.  If GNU CC is not installed, it is therefore recommended
+to try
+
+     ./configure CC="cc"
+
+and if that doesn't work, try
+
+     ./configure CC="cc -nodtk"
+
+   On Solaris, don't put `/usr/ucb' early in your `PATH'.  This
+directory contains several dysfunctional programs; working variants of
+these programs are available in `/usr/bin'.  So, if you need `/usr/ucb'
+in your `PATH', put it _after_ `/usr/bin'.
+
+   On Haiku, software installed for all users goes in `/boot/common',
+not `/usr/local'.  It is recommended to use the following options:
+
+     ./configure --prefix=/boot/common
+
 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:
+   There may be some features `configure' cannot figure out
+automatically, but needs to determine by the type of machine the package
+will run on.  Usually, assuming the package is built to be run on the
+_same_ architectures, `configure' can figure that out, but if it prints
+a message saying it cannot guess the machine type, give it the
+`--build=TYPE' option.  TYPE can either be a short name for the system
+type, such as `sun4', or a canonical name which has the form:
+
      CPU-COMPANY-SYSTEM
 
-See the file `config.sub' for the possible values of each field.  If
+where SYSTEM can have one of these forms:
+
+     OS
+     KERNEL-OS
+
+   See the file `config.sub' for the possible values of each field.  If
 `config.sub' isn't included in this package, then this package doesn't
-need to know the host type.
+need to know the machine 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.
+   If you are _building_ compiler tools for cross-compiling, you should
+use the option `--target=TYPE' to select the type of system they will
+produce code for.
+
+   If you want to _use_ a cross compiler, that generates code for a
+platform different from the build platform, you should specify the
+"host" platform (i.e., that on which the generated programs will
+eventually be run) with `--host=TYPE'.
 
 Sharing Defaults
 ================
@@ -230,19 +294,56 @@ default values for variables like `CC', `cache_file', and `prefix'.
 `CONFIG_SITE' environment variable to the location of the site script.
 A warning: not all `configure' scripts look for a site script.
 
-Operation Controls
+Defining Variables
 ==================
 
+   Variables not defined in a site shell script can be set in the
+environment passed to `configure'.  However, some packages may run
+configure again during the build, and the customized values of these
+variables may be lost.  In order to avoid this problem, you should set
+them in the `configure' command line, using `VAR=value'.  For example:
+
+     ./configure CC=/usr/local2/bin/gcc
+
+causes the specified `gcc' to be used as the C compiler (unless it is
+overridden in the site shell script).
+
+Unfortunately, this technique does not work for `CONFIG_SHELL' due to
+an Autoconf limitation.  Until the limitation is lifted, you can use
+this workaround:
+
+     CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
+
+`configure' Invocation
+======================
+
    `configure' recognizes the following options to control how it
 operates.
 
+`--help'
+`-h'
+     Print a summary of all of the options to `configure', and exit.
+
+`--help=short'
+`--help=recursive'
+     Print a summary of the options unique to this package's
+     `configure', and exit.  The `short' variant lists options used
+     only in the top level, while the `recursive' variant lists options
+     also present in any nested packages.
+
+`--version'
+`-V'
+     Print the version of Autoconf used to generate the `configure'
+     script, and exit.
+
 `--cache-file=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'.
+     Enable the cache: use and save the results of the tests in FILE,
+     traditionally `config.cache'.  FILE defaults to `/dev/null' to
+     disable caching.
 
-`--help'
-     Print a summary of the options to `configure', and exit.
+`--config-cache'
+`-C'
+     Alias for `--cache-file=config.cache'.
 
 `--quiet'
 `--silent'
@@ -255,8 +356,15 @@ operates.
      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.
+`--prefix=DIR'
+     Use DIR as the installation prefix.  *note Installation Names::
+     for more details, including other options available for fine-tuning
+     the installation locations.
+
+`--no-create'
+`-n'
+     Run the configure checks, but stop before creating any output
+     files.
 
-`configure' also accepts some other, not widely useful, options.
+`configure' also accepts some other, not widely useful, options.  Run
+`configure --help' for more details.
index f5a02ef2dd3e36b132074cbc27a9a4677b15d0bd..af437a64d6d80a47ea903fd842a648fc59cbcd9a 100644 (file)
@@ -1,2 +1 @@
-SUBDIRS = src data
-EXTRA_DIST = README.coders tools examples UnrealModules NeedMaintainers
+SUBDIRS = src
diff --git a/Makefile.in b/Makefile.in
deleted file mode 100644 (file)
index c31a7b2..0000000
+++ /dev/null
@@ -1,561 +0,0 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005  Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = .
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-INSTALL = @INSTALL@
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-subdir = .
-DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
-       $(srcdir)/Makefile.in $(top_srcdir)/configure AUTHORS COPYING \
-       ChangeLog INSTALL NEWS TODO compile depcomp install-sh missing \
-       mkinstalldirs
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
-       $(top_srcdir)/configure.in
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-       $(ACLOCAL_M4)
-am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
- configure.lineno configure.status.lineno
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
-       html-recursive info-recursive install-data-recursive \
-       install-exec-recursive install-info-recursive \
-       install-recursive installcheck-recursive installdirs-recursive \
-       pdf-recursive ps-recursive uninstall-info-recursive \
-       uninstall-recursive
-ETAGS = etags
-CTAGS = ctags
-DIST_SUBDIRS = $(SUBDIRS)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-distdir = $(PACKAGE)-$(VERSION)
-top_distdir = $(distdir)
-am__remove_distdir = \
-  { test ! -d $(distdir) \
-    || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
-         && rm -fr $(distdir); }; }
-DIST_ARCHIVES = $(distdir).tar.gz
-GZIP_ENV = --best
-distuninstallcheck_listfiles = find . -type f -print
-distcleancheck_listfiles = find . -type f -print
-ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
-AMTAR = @AMTAR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GREP = @GREP@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-ac_ct_CC = @ac_ct_CC@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build_alias = @build_alias@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host_alias = @host_alias@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-SUBDIRS = src data
-EXTRA_DIST = README.coders tools examples UnrealModules NeedMaintainers
-all: all-recursive
-
-.SUFFIXES:
-am--refresh:
-       @:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-       @for dep in $?; do \
-         case '$(am__configure_deps)' in \
-           *$$dep*) \
-             echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
-             cd $(srcdir) && $(AUTOMAKE) --gnu  \
-               && exit 0; \
-             exit 1;; \
-         esac; \
-       done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  Makefile'; \
-       cd $(top_srcdir) && \
-         $(AUTOMAKE) --gnu  Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-       @case '$?' in \
-         *config.status*) \
-           echo ' $(SHELL) ./config.status'; \
-           $(SHELL) ./config.status;; \
-         *) \
-           echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
-           cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
-       esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-       $(SHELL) ./config.status --recheck
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-       cd $(srcdir) && $(AUTOCONF)
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-       cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
-uninstall-info-am:
-
-# This directory's subdirectories are mostly independent; you can cd
-# into them and run `make' without going through this Makefile.
-# To change the values of `make' variables: instead of editing Makefiles,
-# (1) if the variable is set in `config.status', edit `config.status'
-#     (which will cause the Makefiles to be regenerated when you run `make');
-# (2) otherwise, pass the desired values on the `make' command line.
-$(RECURSIVE_TARGETS):
-       @failcom='exit 1'; \
-       for f in x $$MAKEFLAGS; do \
-         case $$f in \
-           *=* | --[!k]*);; \
-           *k*) failcom='fail=yes';; \
-         esac; \
-       done; \
-       dot_seen=no; \
-       target=`echo $@ | sed s/-recursive//`; \
-       list='$(SUBDIRS)'; for subdir in $$list; do \
-         echo "Making $$target in $$subdir"; \
-         if test "$$subdir" = "."; then \
-           dot_seen=yes; \
-           local_target="$$target-am"; \
-         else \
-           local_target="$$target"; \
-         fi; \
-         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-         || eval $$failcom; \
-       done; \
-       if test "$$dot_seen" = "no"; then \
-         $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
-       fi; test -z "$$fail"
-
-mostlyclean-recursive clean-recursive distclean-recursive \
-maintainer-clean-recursive:
-       @failcom='exit 1'; \
-       for f in x $$MAKEFLAGS; do \
-         case $$f in \
-           *=* | --[!k]*);; \
-           *k*) failcom='fail=yes';; \
-         esac; \
-       done; \
-       dot_seen=no; \
-       case "$@" in \
-         distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
-         *) list='$(SUBDIRS)' ;; \
-       esac; \
-       rev=''; for subdir in $$list; do \
-         if test "$$subdir" = "."; then :; else \
-           rev="$$subdir $$rev"; \
-         fi; \
-       done; \
-       rev="$$rev ."; \
-       target=`echo $@ | sed s/-recursive//`; \
-       for subdir in $$rev; do \
-         echo "Making $$target in $$subdir"; \
-         if test "$$subdir" = "."; then \
-           local_target="$$target-am"; \
-         else \
-           local_target="$$target"; \
-         fi; \
-         (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
-         || eval $$failcom; \
-       done && test -z "$$fail"
-tags-recursive:
-       list='$(SUBDIRS)'; for subdir in $$list; do \
-         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
-       done
-ctags-recursive:
-       list='$(SUBDIRS)'; for subdir in $$list; do \
-         test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
-       done
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
-       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-       unique=`for i in $$list; do \
-           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-         done | \
-         $(AWK) '    { files[$$0] = 1; } \
-              END { for (i in files) print i; }'`; \
-       mkid -fID $$unique
-tags: TAGS
-
-TAGS: tags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-               $(TAGS_FILES) $(LISP)
-       tags=; \
-       here=`pwd`; \
-       if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
-         include_option=--etags-include; \
-         empty_fix=.; \
-       else \
-         include_option=--include; \
-         empty_fix=; \
-       fi; \
-       list='$(SUBDIRS)'; for subdir in $$list; do \
-         if test "$$subdir" = .; then :; else \
-           test ! -f $$subdir/TAGS || \
-             tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
-         fi; \
-       done; \
-       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-       unique=`for i in $$list; do \
-           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-         done | \
-         $(AWK) '    { files[$$0] = 1; } \
-              END { for (i in files) print i; }'`; \
-       if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
-         test -n "$$unique" || unique=$$empty_fix; \
-         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-           $$tags $$unique; \
-       fi
-ctags: CTAGS
-CTAGS: ctags-recursive $(HEADERS) $(SOURCES)  $(TAGS_DEPENDENCIES) \
-               $(TAGS_FILES) $(LISP)
-       tags=; \
-       here=`pwd`; \
-       list='$(SOURCES) $(HEADERS)  $(LISP) $(TAGS_FILES)'; \
-       unique=`for i in $$list; do \
-           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-         done | \
-         $(AWK) '    { files[$$0] = 1; } \
-              END { for (i in files) print i; }'`; \
-       test -z "$(CTAGS_ARGS)$$tags$$unique" \
-         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-            $$tags $$unique
-
-GTAGS:
-       here=`$(am__cd) $(top_builddir) && pwd` \
-         && cd $(top_srcdir) \
-         && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
-       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-       $(am__remove_distdir)
-       mkdir $(distdir)
-       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
-       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
-       list='$(DISTFILES)'; for file in $$list; do \
-         case $$file in \
-           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
-           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
-         esac; \
-         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
-         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
-           dir="/$$dir"; \
-           $(mkdir_p) "$(distdir)$$dir"; \
-         else \
-           dir=''; \
-         fi; \
-         if test -d $$d/$$file; then \
-           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
-           fi; \
-           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
-         else \
-           test -f $(distdir)/$$file \
-           || cp -p $$d/$$file $(distdir)/$$file \
-           || exit 1; \
-         fi; \
-       done
-       list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
-         if test "$$subdir" = .; then :; else \
-           test -d "$(distdir)/$$subdir" \
-           || $(mkdir_p) "$(distdir)/$$subdir" \
-           || exit 1; \
-           distdir=`$(am__cd) $(distdir) && pwd`; \
-           top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
-           (cd $$subdir && \
-             $(MAKE) $(AM_MAKEFLAGS) \
-               top_distdir="$$top_distdir" \
-               distdir="$$distdir/$$subdir" \
-               distdir) \
-             || exit 1; \
-         fi; \
-       done
-       -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
-         ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
-         ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
-         ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
-       || chmod -R a+r $(distdir)
-dist-gzip: distdir
-       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-       $(am__remove_distdir)
-
-dist-bzip2: distdir
-       tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
-       $(am__remove_distdir)
-
-dist-tarZ: distdir
-       tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
-       $(am__remove_distdir)
-
-dist-shar: distdir
-       shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
-       $(am__remove_distdir)
-
-dist-zip: distdir
-       -rm -f $(distdir).zip
-       zip -rq $(distdir).zip $(distdir)
-       $(am__remove_distdir)
-
-dist dist-all: distdir
-       tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-       $(am__remove_distdir)
-
-# This target untars the dist file and tries a VPATH configuration.  Then
-# it guarantees that the distribution is self-contained by making another
-# tarfile.
-distcheck: dist
-       case '$(DIST_ARCHIVES)' in \
-       *.tar.gz*) \
-         GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
-       *.tar.bz2*) \
-         bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
-       *.tar.Z*) \
-         uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
-       *.shar.gz*) \
-         GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
-       *.zip*) \
-         unzip $(distdir).zip ;;\
-       esac
-       chmod -R a-w $(distdir); chmod a+w $(distdir)
-       mkdir $(distdir)/_build
-       mkdir $(distdir)/_inst
-       chmod a-w $(distdir)
-       dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
-         && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
-         && cd $(distdir)/_build \
-         && ../configure --srcdir=.. --prefix="$$dc_install_base" \
-           $(DISTCHECK_CONFIGURE_FLAGS) \
-         && $(MAKE) $(AM_MAKEFLAGS) \
-         && $(MAKE) $(AM_MAKEFLAGS) dvi \
-         && $(MAKE) $(AM_MAKEFLAGS) check \
-         && $(MAKE) $(AM_MAKEFLAGS) install \
-         && $(MAKE) $(AM_MAKEFLAGS) installcheck \
-         && $(MAKE) $(AM_MAKEFLAGS) uninstall \
-         && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
-               distuninstallcheck \
-         && chmod -R a-w "$$dc_install_base" \
-         && ({ \
-              (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
-              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
-              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
-              && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
-                   distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
-             } || { rm -rf "$$dc_destdir"; exit 1; }) \
-         && rm -rf "$$dc_destdir" \
-         && $(MAKE) $(AM_MAKEFLAGS) dist \
-         && rm -rf $(DIST_ARCHIVES) \
-         && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
-       $(am__remove_distdir)
-       @(echo "$(distdir) archives ready for distribution: "; \
-         list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
-         sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
-distuninstallcheck:
-       @cd $(distuninstallcheck_dir) \
-       && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
-          || { echo "ERROR: files left after uninstall:" ; \
-               if test -n "$(DESTDIR)"; then \
-                 echo "  (check DESTDIR support)"; \
-               fi ; \
-               $(distuninstallcheck_listfiles) ; \
-               exit 1; } >&2
-distcleancheck: distclean
-       @if test '$(srcdir)' = . ; then \
-         echo "ERROR: distcleancheck can only run from a VPATH build" ; \
-         exit 1 ; \
-       fi
-       @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
-         || { echo "ERROR: files left in build directory after distclean:" ; \
-              $(distcleancheck_listfiles) ; \
-              exit 1; } >&2
-check-am: all-am
-check: check-recursive
-all-am: Makefile
-installdirs: installdirs-recursive
-installdirs-am:
-install: install-recursive
-install-exec: install-exec-recursive
-install-data: install-data-recursive
-uninstall: uninstall-recursive
-
-install-am: all-am
-       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-recursive
-install-strip:
-       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-         `test -z '$(STRIP)' || \
-           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
-       @echo "This command is intended for maintainers to use"
-       @echo "it deletes files that may require special tools to rebuild."
-clean: clean-recursive
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-recursive
-       -rm -f $(am__CONFIG_DISTCLEAN_FILES)
-       -rm -f Makefile
-distclean-am: clean-am distclean-generic distclean-tags
-
-dvi: dvi-recursive
-
-dvi-am:
-
-html: html-recursive
-
-info: info-recursive
-
-info-am:
-
-install-data-am:
-
-install-exec-am:
-
-install-info: install-info-recursive
-
-install-man:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-recursive
-       -rm -f $(am__CONFIG_DISTCLEAN_FILES)
-       -rm -rf $(top_srcdir)/autom4te.cache
-       -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-recursive
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-recursive
-
-pdf-am:
-
-ps: ps-recursive
-
-ps-am:
-
-uninstall-am: uninstall-info-am
-
-uninstall-info: uninstall-info-recursive
-
-.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
-       check-am clean clean-generic clean-recursive ctags \
-       ctags-recursive dist dist-all dist-bzip2 dist-gzip dist-shar \
-       dist-tarZ dist-zip distcheck distclean distclean-generic \
-       distclean-recursive distclean-tags distcleancheck distdir \
-       distuninstallcheck dvi dvi-am html html-am info info-am \
-       install install-am install-data install-data-am install-exec \
-       install-exec-am install-info install-info-am install-man \
-       install-strip installcheck installcheck-am installdirs \
-       installdirs-am maintainer-clean maintainer-clean-generic \
-       maintainer-clean-recursive mostlyclean mostlyclean-generic \
-       mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
-       uninstall uninstall-am uninstall-info-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/NEWS b/NEWS
index be829c094407d910d10dde3a40bc676b2eb2ef1c..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,163 +0,0 @@
-GNU Thales 1.1 (03/02/2007)
-   - added getopt_long() support
-   - added capability to change mysql port within configuration file
-   - path of configuration file can now be changed without rebuilding
-GNU Thales 1.0 (09/05/2004)
-   - added a workaround for a possible unreal bug.
-   - using autoconf 2.59 instead of autoconf 2.13.
-   - no longer report usage if you are using Unreal.
-   - added support for unreal modules' modes. see the UnrealModules file.
-   - added Memphisnet.org's memphistools ! see examples/memphistools/.
-     Provided by XytraS <xytras@memphisnet.org>
-   - added secondary keys to ison table, which provided a 10% speed benefit.
-   - added unreal's +T cmode.
-   - added unreal's +D umode (needed for PrivDeaf module)
-   - added unreal's +z umode. patch from nick martini <nick@misanthropia.nu>
-   - nickinfo, an example from Andreas Lindemann <admiral@1sq.org> !
-   - Recycled-counter, an example from ProPheT <prophet@recycled-irc.org> !
-   - server.linkedto is now an int (was a tinyint).
-GNU Thales 0.9.5 (08/02/2004)
-   - Fixed user/chan modes for Unreal beta19 support (chanmodes +I and +H not
-     used anymore)
-   - NeedMaintainers file added.
-   - removed Sequana support
-   - safely ignore Unreal's EOS messages, but send one after login.
-   - now keeps track of max number of servers too.
-   - hardcoded url (motd, admin) changes to savannah.
-   - Unreal's SWHOIS support.
-   - server.lastsplit is not overwritten when a server rejoins.
-   - changed "Thales" to "GNU Thales" where it was relevant.
-   - renamed log() to mylog(), and log_perror() to mylog_perror() to prevent
-     conflicts.
-   - added TBUST to hybrid CAPAB line. Credits go to Wes Baehr
-     <iwes@totalmac.net>
-   - added a php script for clones detection. contributed by
-     Jens 'DukePyrolator' Voss <DukePyrolator@wiredirc.net>
-   - added Unreal mode +M
-Thales 0.9.4 (19/03/2003)
-   - away status was not properly restored in Caching mode. (reported
-     by admiral@ns.elbenstern.de)
-   - renamed strlwr to strtolwr (misc.c) to be able to compile on cygwin.
-   - improved ReportUsage.sh POSIX compatibility
-   - added Unreal usermodes +R & +V
-   - increased nickname length in SQL table user for hybrid ircd.
-   - re-indented the whole code using indent
-   - fixed bug in caching mode
-   - added log messages to the hash functions in verbose mode
-   - fixed bug in caching mode
-Thales 0.9.3 (04/02/2003)
-   - removed debug message
-Thales 0.9.2 (03/02/2003)
-   - added support for ultimate 2.8 +L chanmode
-   - thales could receive SJOIN for nonexisting users under some race
-     conditions. Now ignore them.
-   - added a workaround for Unreal bug (sending multiple SJOINs for
-     same (user, channel))
-   - removed some compilation warnings
-Thales 0.9.1 (12/02/2003)
-   - fixed small parsing bug from ircservices code
-   - fixed bugs in ultimate 2.8 support
-   - ability to hide channel passwords in config file
-   - included Wes Baehr's patch to fix TOPICs on Hybrid
-   - added --enable-noreportusage configure option to disable the usage report
-   - new hash function (should improve performance)
-   - Modified ReportUsage.sh to send mail to thales-usage@ and include Thales
-     version.
-   - SQL tables names are defined in db.h. They can be changed.
-Thales 0.9.0 (05/11/2002)
-   - added usage survey
-   - more detailed info about libmysqlclient linking problem.
-   - fixed ultimate 2.8 support
-   - removed nonexistent ultimate umode +q
-Thales 0.1.5 (23/10/2002)
-   - Ultimate 2.8 support
-   - MOTDFile option removed from config
-   - Hybrid 7 support
-   - now says for which ircd it was compiled on startup.
-   - New contrib : counter/ by z-master <z-master@apinc.org>
-Thales 0.1.4 (24/06/2002)
-   - hashlist support can now be disabled to fix some crashes. Anyway,
-     I'm very interested in fixing those crashes, so please tell me if
-     you experience those.
-   - now keeps an history. See the UserCacheTime & ServerCacheTime
-     parameters in the config.
-   - now includes contrib/logfilter to generate smaller logfiles for bug
-     reporting purposes.
-   - fixed a small memleak in db_getnick()
-Thales 0.1.3 (18/05/2002)
-   - new configure options : --enable-static and --enable-no-modes.
-     see INSTALL for details.
-   - thales entered an infinite loop when logging an unknown mode.
-     log an unknown mode only once, and give an example IRC message.
-   - fflush the logfile after logging
-   - renamed data/thales-*.sql to data/mysql-*.sql and changed the doc
-     accordingly (that's to prepare PostgreSQL support).  
-   - the ircd type can now be specified using the --with-ircd=IRCDTYPE
-     configure option.
-   - added info on how to keep maxvalues data after an upgrade in the
-     README.
-   - LUSERS command is now fully implemented.
-   - added a connecttime field to the server table to be able to know
-     when a server connected to the net. (table structure must be reloaded,
-     see README file)
-   - now crashes without segfaulting if it can't connect to the DBMS.
-   - now sends a GLOBOPS before going down, giving a reason.
-Thales 0.1.2 (03/05/2002)
-   - optimized things using internal hashlists instead of querying the
-     database. resources usage decreased by 20%.
-   - rewrote messages.*, removing all DBMS stuff, and putting it in
-     actions.* to prepare PostgreSQL support. As a consequence, it's
-     no longer possible to ignore the epona bug which causes services
-     to join a channel where they already are.
-   - now checks if modes are known before trying to save them
-     (prevents crashes :o) )
-   - corrected a bug in mode -k handling and cleaned up mode handling
-   - re-added +R usermode for bahamut, ircdru and sequana (It wasn't
-     displayed as an available user mode on connect)
-   - added LUSERS command.
-   - now stores max number of users and channels in the "maxvalues" table.
-   - added NICKIP support for Bahamut, Sequana, IRCD-RU and Ultimate. The IP
-     address is stored in the "user" table with the name "ipaddr". You must
-     reload the database structure before running the new version for the
-     first time.  
-
-Thales 0.1.1 (28/04/2002)
-   - improved autoconf's mysql test
-   - now uses mysql_real_* instead of mysql_*
-   - cleaned modes checks
-   - added IRCD-RU support (patch provided by Bob Ershov <raveman@wenet.ru>)
-   - added Magnet <magnet@epiknet.org>'s path for MDESC on Unreal
-   - added Partizanu <partizanu@expres.ro>'s digit2img script to contrib
-   - added Andy Smith <andy@strugglers.net>'s channels list script to contrib
-
-Thales 0.1.0 (20/04/2002)
-   - there's now a mailing list ! see README.
-   - cleaned up .sql files : this should decrease disk usage and improve perf a
-     little.
-   - added UltimateIRCD 3.0.0 support
-                                     (helped by salk@junglebean.co.za)
-   - make install doesn't overwrite thales.conf anymore.
-   - improved Unreal support a little
-                                     (reported by magnet@epiknet.org)
-   - Channel modes arguments (+k) can now contain quotes
-                                     (reported by shadow@homelanfed.com)
-   - Corrected the bug which (I suppose) caused many crashes
-                                     (reported by magnet@epiknet.org)
-
-Thales 0.0.9 (14/04/2002)
-   - corrected a small MySQL linking problem in autoconf/automake 
-                                     (reported by mikep1230@att.net)
-
-Thales 0.0.8 (12/04/2002)
-   - added /TIME, /ADMIN, /MOTD
-   - gindented all the code (looks better now ;p)
-   - added Bahamut support
-   - removed a few warnings in log.c
-   - added copyright info to all files
-   - Thales now uses autoconf & automake, and IRCD is selected in ./configure
-   - AWAY and {CHG,SET}{HOST,IDENT,NAME} are now supported.
-
-Thales 0.0.7 (07/04/2002)
-   - First described version
-   - Unreal and Sequana support
-   - Docs written
diff --git a/NeedMaintainers b/NeedMaintainers
deleted file mode 100644 (file)
index 0f41f3c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-Support for other ircds :
-=========================
-Most of the people using GNU Thales use it with the Unreal IRCD. However, from
-time to time, people want to use it with another IRCD, which might be
-unsupported. We can't afford to port Thales to all known IRCDs. But if you are
-interested in porting Thales to another IRCD, we can help you :
-- By giving you cvs commit access to the Repository at savannah.gnu.org.
-- By helping you understand the current codebase.
-
-Don't hesitate to contact us for more info.
diff --git a/README b/README
index 32a917ecc1b97fda7c63d876c21724329096ab45..737c4eafa00d277c147e0d7a28ba2f59ea1bf45d 100644 (file)
--- a/README
+++ b/README
@@ -1,87 +1,3 @@
-GNU Thales
-----------
-by Lucas Nussbaum <lucas@lucas-nussbaum.net>
-
--- Introduction --
-
-GNU Thales is a IRC-to-MySQL gateway. It connects to your IRC network as a
-server (like other services), and store everything it receives in a MySQL
-database. It doesn't build stats itself, it just fills 5 MySQL tables called
-user, server, chan, ison and maxvalues. You can then query the database with
-SQL queries to retrieve the information you need.
-
-To see examples of how to use Thales, please refer to the contrib/ dir.
-
--- Installation --
-
-Please read the INSTALL file.
-
--- Upgrade --
-
-When upgrading from an older version of thales, you might want to keep the data
-stored in the maxvalues table. If you reload the database structure, you will
-overwrite it. To prevent that, you must dump the table data before the upgrade,
-and put it back after the upgrade.
-Dumping the table data :
-run mysqldump --no-defaults --user=<your_username> --password --complete-insert
---no-create-info <your_database> maxvalues > maxvalues.sql
-<your_username> and <your_database> must be replaced by what looks appropriate.
-then, proceed with the table structure upgrade, and end with :
-mysql --user=<your_username> --password <your_database> < maxvalues.sql
-to insert the data back into the table.
-
--- Important Notes --
-
-1. Assumptions about the protocol
-Thales uses the database very intensively. To prevent an enormous increase of
-its usage, it makes asumptions about the validity of the data sent by the IRC
-server. For example, when it receives a JOIN, it doesn't check if the user is
-already on the channel.
-The problem is that most servers make the same assumptions about the information
-they receive. A bogus server could then crash Thales. If Thales crashes on your
-network, please run it with the -v option (IRC protocol info will be logged),
-and provide me with a log of the problem. (use contrib/logfilter/)
-
-2. Why is named Thales ?
-Thales was first developped to be used on the Langochat.net IRC network.
-Another stats service, based on eggdrop and stats.mod, already existed and was
-called Euclide. So we decided to go on with famous mathematicians, and
-Eratosthene was such a difficult word ...
-
--- Comments/Contact/Help --
-
-This is my first real Open Source project. I just hope you users will act not
-to make it be my last one ;)
-You can contact me at lucas@lucas-nussbaum.net .
-
-A mailing list has been created. To be subscribed, mail
-majordomo@ox.lucas-nussbaum.net with "subscribe thales" in the body. A
-confirmation will be sent.
-
--- Bug reports --
-
-If you experience problems, please send a complete description of the problem
-with the output of :
-gcc -v
-uname -a
-mysql -V
-...
-If you reproduce the bug, please run thales with the -v option to generate a
-more verbose log.  Before sending the log, please use 
-tools/logfilter/logfilter.sh to filter & gzip the logfile.
-
--- Credits --
-
-Much code is based on Epona's <http://www.epona.org>, written by lara. Epona is
-itself based on IRCServices, so some code probably comes from
-IRCServices too.
-
-Many people helped me :
-I would like to thank Jollino <jollino@sogno.net> : He helped me a lot with
-Unreal support.
-I would like to thank Partizanu <partizanu@netchat.ro> for his contribs and his
-help.
-I would like to thank Virginie (admin on Kewl.Org IRC network) for providing me
-a good occasion to laugh. She didn't want me to test Thales on Kewl.Org because
-she though I would be able to get passwords this way. She also told me she knew
-the IRC protocol.
+This is attempt to totally rewrite GNU Thales. 
+If you are intrested in source of previous version, feel free to 
+use cvs repository.
\ No newline at end of file
diff --git a/README.coders b/README.coders
deleted file mode 100644 (file)
index cc7616d..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-GNU Thales structures :
-=======================
-
-If you are interested in improving thales, you might want to read the following
-about thales structure.
-
-IRC messages handling, and database handling, are done in :
-- messages.*
-- actions.*
-- db.*
-
-messages.* handles the basic IRC commands, like PING, MOTD, etc ... using m_*
-functions.  When a command requires to query the database, it is forwarded to
-the corresponding do_* function in actions.*.  do_* use db_* functions (in
-db.*) to query the database.
-
-Patches :
-
-If you want to send a patch, please use diff -burN, and review your patch by
-hand. I particularly dislikes reading patches which include your config.log,
-makefiles, etc ... :)
-
-IRCD modes :
-
-Here are the modes for the ircds supported by thales :
-Ultimate 3.0 : 
-  channels :
-    include/struct.h:1164
-    src/channel.c:1405
-  nicks :
-    src/s_user.c:78
-
-Unreal 3.2 :
-   channels :
-      src/channel.c:129
-   users :
-      src/umodes.c:120
-      grep UmodeAdd umodes.c |grep UMODE | grep -v UMODE_LOCAL | grep -E "[a-z]'" | sed "s/^.*NULL, '\(.\)', UMODE.*$/\1/" | sort | tr -d '\n'
-      grep UmodeAdd umodes.c |grep UMODE | grep -v UMODE_LOCAL | grep -E "[A-Z]'" | sed "s/^.*NULL, '\(.\)', UMODE.*$/\1/" | sort | tr -d '\n'
-
-You should also grep for stuff like that :
-       req.paracount = 0;
-       req.is_ok = extcmode_default_requirechop;
-       req.flag = 'T';
-       CmodeAdd(NULL, req, &EXTMODE_NONOTICE);
diff --git a/ReportUsage.sh b/ReportUsage.sh
deleted file mode 100755 (executable)
index aa89d2f..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/bin/sh
-
-echo "You selected an ircd which isn't much used. I'd like to collect some"
-echo "infos about who is using thales with this ircd. It will only take a"
-echo "few seconds to answer the questions."
-echo
-echo "Do you agree to answer them now [Y/N] ? (You don't need to answer them,"
-echo "and it won't affect your usage of GNU Thales) "
-echo -n "[Y] > "
-read answer
-if [ "X$answer" = "XN" -o "X$answer" = "Xn" ]; then
-       exit 0
-fi
-
-echo "On which network are you using thales ? Please give exact name, so that I"
-echo "can eventually connect and say hi !"
-echo -n "> "
-read network
-echo
-echo "Which ircd are you using (please give the exact version number) ?"
-echo -n "> "
-read ircd
-echo
-echo "What is the main language used on your network ?"
-echo -n "> "
-read lang
-echo
-echo "What is the approximate number of users on your network ?"
-echo -n "> "
-read size
-echo
-echo "What is your email address ? (you don't _need_ to answer this one)"
-echo -n "> "
-read email
-
-version=`cat configure.in |grep AM_INIT_AUTOMAKE\(thales |sed -e 's/.*thales, \(.*\))/\1/'`
-cat > mail.txt << ENDOFFILE
-THALES USAGE
-
-Network : $network
-Ircd : $ircd
-Language : $lang
-Size : $size
-Email : $email
-Version : $version
-
-Please mail this file to thales-misc@gnu.org
-ENDOFFILE
-
-echo "OK, that's all. Here are the results, saved in mail.txt :"
-echo "--------------"
-cat mail.txt
-echo "--------------"
-echo "Do you want me to mail the file using the standard unix 'mail'"
-echo "command ? [Y/N]"
-echo -n "[Y] > "
-read answer
-if [ "X$answer" = "XN" -o "X$answer" = "Xn" ]; then
-       echo "OK, please mail the content of mail.txt to thales-misc@gnu.org"
-       exit 0
-fi
-
-cat mail.txt |mail -s "thales usage" thales-misc@gnu.org
-echo "mail sent, thanks !"
-rm mail.txt
-echo
diff --git a/TODO b/TODO
index a6161741775c975039ac1c8f8810ae405721c5e8..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,14 +0,0 @@
-** Unreal cloacking for 3.1.4 and 3.2 **
-provide the algorithm as a PHP script
-
-** PostgreSQL support **
-because MySQL is MySQL.
-
-** IPv6 support **
-do_ipdecode for IPv6 addresses forwarded using NICKIP ?
-
-** optimize tables each X minutes **
-can someone prove me it really improves performance ?
-
-** makes thales optionnally send WALLOPS when the network max user & chan load is reached. **
-nobody seems to be interested in this.
diff --git a/UnrealModules b/UnrealModules
deleted file mode 100644 (file)
index 2b04520..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-Those modules are supported by Thales. If you are using a module that isn't
-supported, please report it.
-
-For UserModes and ChanModes, if the mode is followed by a ":", it needs an
-argument.
-
-Name             Version UserModes ChanModes Supported Tested
---------------------------------------------------------------
-jointhrottle        2.4                 j:        Y       N
-m_blocknonalpha     1.0                  y        Y       N
-noctcp              1.3                  D        Y       N
-privdeaf            0.0.6      D                  Y       N
diff --git a/acinclude.m4 b/acinclude.m4
deleted file mode 100644 (file)
index 8a99cc5..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-AC_DEFUN(AC_CHECK_LIB_LOC,
-[AC_MSG_CHECKING([for lib$2 in $1])
-ac_lib_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
-AC_CACHE_VAL(ac_cv_lib_loc_$ac_lib_var,
-[ac_save_LIBS="$LIBS"
-LIBS="-L$1 -l$2 $6 $LIBS"
-AC_TRY_LINK(
-[/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char $3();
-],
-            [$3()],
-            eval "ac_cv_lib_loc_$ac_lib_var=yes",
-            eval "ac_cv_lib_loc_$ac_lib_var=no")
-LIBS="$ac_save_LIBS"
-])dnl
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  AC_MSG_RESULT(yes)
-  ifelse([$4], ,
-[LIBS="-L$1 -l$2 $LIBS"
-], [$4])
-else
-  AC_MSG_RESULT(no)
-ifelse([$5], , , [$5
-])dnl
-fi
-])
diff --git a/aclocal.m4 b/aclocal.m4
deleted file mode 100644 (file)
index 40593d9..0000000
+++ /dev/null
@@ -1,851 +0,0 @@
-# generated automatically by aclocal 1.9.6 -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
-# 2005  Free Software Foundation, Inc.
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-# Copyright (C) 2002, 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_AUTOMAKE_VERSION(VERSION)
-# ----------------------------
-# Automake X.Y traces this macro to ensure aclocal.m4 has been
-# generated from the m4 files accompanying Automake X.Y.
-AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
-
-# AM_SET_CURRENT_AUTOMAKE_VERSION
-# -------------------------------
-# Call AM_AUTOMAKE_VERSION so it can be traced.
-# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
-AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
-        [AM_AUTOMAKE_VERSION([1.9.6])])
-
-# AM_AUX_DIR_EXPAND                                         -*- Autoconf -*-
-
-# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
-# $ac_aux_dir to `$srcdir/foo'.  In other projects, it is set to
-# `$srcdir', `$srcdir/..', or `$srcdir/../..'.
-#
-# Of course, Automake must honor this variable whenever it calls a
-# tool from the auxiliary directory.  The problem is that $srcdir (and
-# therefore $ac_aux_dir as well) can be either absolute or relative,
-# depending on how configure is run.  This is pretty annoying, since
-# it makes $ac_aux_dir quite unusable in subdirectories: in the top
-# source directory, any form will work fine, but in subdirectories a
-# relative path needs to be adjusted first.
-#
-# $ac_aux_dir/missing
-#    fails when called from a subdirectory if $ac_aux_dir is relative
-# $top_srcdir/$ac_aux_dir/missing
-#    fails if $ac_aux_dir is absolute,
-#    fails when called from a subdirectory in a VPATH build with
-#          a relative $ac_aux_dir
-#
-# The reason of the latter failure is that $top_srcdir and $ac_aux_dir
-# are both prefixed by $srcdir.  In an in-source build this is usually
-# harmless because $srcdir is `.', but things will broke when you
-# start a VPATH build or use an absolute $srcdir.
-#
-# So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
-# iff we strip the leading $srcdir from $ac_aux_dir.  That would be:
-#   am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
-# and then we would define $MISSING as
-#   MISSING="\${SHELL} $am_aux_dir/missing"
-# This will work as long as MISSING is not called from configure, because
-# unfortunately $(top_srcdir) has no meaning in configure.
-# However there are other variables, like CC, which are often used in
-# configure, and could therefore not use this "fixed" $ac_aux_dir.
-#
-# Another solution, used here, is to always expand $ac_aux_dir to an
-# absolute PATH.  The drawback is that using absolute paths prevent a
-# configured tree to be moved without reconfiguration.
-
-AC_DEFUN([AM_AUX_DIR_EXPAND],
-[dnl Rely on autoconf to set up CDPATH properly.
-AC_PREREQ([2.50])dnl
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-])
-
-# AM_CONDITIONAL                                            -*- Autoconf -*-
-
-# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 7
-
-# AM_CONDITIONAL(NAME, SHELL-CONDITION)
-# -------------------------------------
-# Define a conditional.
-AC_DEFUN([AM_CONDITIONAL],
-[AC_PREREQ(2.52)dnl
- ifelse([$1], [TRUE],  [AC_FATAL([$0: invalid condition: $1])],
-       [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
-AC_SUBST([$1_TRUE])
-AC_SUBST([$1_FALSE])
-if $2; then
-  $1_TRUE=
-  $1_FALSE='#'
-else
-  $1_TRUE='#'
-  $1_FALSE=
-fi
-AC_CONFIG_COMMANDS_PRE(
-[if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
-  AC_MSG_ERROR([[conditional "$1" was never defined.
-Usually this means the macro was only invoked conditionally.]])
-fi])])
-
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 8
-
-# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
-# written in clear, in which case automake, when reading aclocal.m4,
-# will think it sees a *use*, and therefore will trigger all it's
-# C support machinery.  Also note that it means that autoscan, seeing
-# CC etc. in the Makefile, will ask for an AC_PROG_CC use...
-
-
-# _AM_DEPENDENCIES(NAME)
-# ----------------------
-# See how the compiler implements dependency checking.
-# NAME is "CC", "CXX", "GCJ", or "OBJC".
-# We try a few techniques and use that to set a single cache variable.
-#
-# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
-# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
-# dependency, and given that the user is not expected to run this macro,
-# just rely on AC_PROG_CC.
-AC_DEFUN([_AM_DEPENDENCIES],
-[AC_REQUIRE([AM_SET_DEPDIR])dnl
-AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
-AC_REQUIRE([AM_MAKE_INCLUDE])dnl
-AC_REQUIRE([AM_DEP_TRACK])dnl
-
-ifelse([$1], CC,   [depcc="$CC"   am_compiler_list=],
-       [$1], CXX,  [depcc="$CXX"  am_compiler_list=],
-       [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
-       [$1], GCJ,  [depcc="$GCJ"  am_compiler_list='gcc3 gcc'],
-                   [depcc="$$1"   am_compiler_list=])
-
-AC_CACHE_CHECK([dependency style of $depcc],
-               [am_cv_$1_dependencies_compiler_type],
-[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
-  # We make a subdir and do the tests there.  Otherwise we can end up
-  # making bogus files that we don't know about and never remove.  For
-  # instance it was reported that on HP-UX the gcc test will end up
-  # making a dummy file named `D' -- because `-MD' means `put the output
-  # in D'.
-  mkdir conftest.dir
-  # Copy depcomp to subdir because otherwise we won't find it if we're
-  # using a relative directory.
-  cp "$am_depcomp" conftest.dir
-  cd conftest.dir
-  # We will build objects and dependencies in a subdirectory because
-  # it helps to detect inapplicable dependency modes.  For instance
-  # both Tru64's cc and ICC support -MD to output dependencies as a
-  # side effect of compilation, but ICC will put the dependencies in
-  # the current directory while Tru64 will put them in the object
-  # directory.
-  mkdir sub
-
-  am_cv_$1_dependencies_compiler_type=none
-  if test "$am_compiler_list" = ""; then
-     am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
-  fi
-  for depmode in $am_compiler_list; do
-    # Setup a source with many dependencies, because some compilers
-    # like to wrap large dependency lists on column 80 (with \), and
-    # we should not choose a depcomp mode which is confused by this.
-    #
-    # We need to recreate these files for each test, as the compiler may
-    # overwrite some of them when testing with obscure command lines.
-    # This happens at least with the AIX C compiler.
-    : > sub/conftest.c
-    for i in 1 2 3 4 5 6; do
-      echo '#include "conftst'$i'.h"' >> sub/conftest.c
-      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
-      # Solaris 8's {/usr,}/bin/sh.
-      touch sub/conftst$i.h
-    done
-    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
-    case $depmode in
-    nosideeffect)
-      # after this tag, mechanisms are not by side-effect, so they'll
-      # only be used when explicitly requested
-      if test "x$enable_dependency_tracking" = xyes; then
-       continue
-      else
-       break
-      fi
-      ;;
-    none) break ;;
-    esac
-    # We check with `-c' and `-o' for the sake of the "dashmstdout"
-    # mode.  It turns out that the SunPro C++ compiler does not properly
-    # handle `-M -o', and we need to detect this.
-    if depmode=$depmode \
-       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
-       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
-       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
-         >/dev/null 2>conftest.err &&
-       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
-       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
-       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
-      # icc doesn't choke on unknown options, it will just issue warnings
-      # or remarks (even with -Werror).  So we grep stderr for any message
-      # that says an option was ignored or not supported.
-      # When given -MP, icc 7.0 and 7.1 complain thusly:
-      #   icc: Command line warning: ignoring option '-M'; no argument required
-      # The diagnosis changed in icc 8.0:
-      #   icc: Command line remark: option '-MP' not supported
-      if (grep 'ignoring option' conftest.err ||
-          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
-        am_cv_$1_dependencies_compiler_type=$depmode
-        break
-      fi
-    fi
-  done
-
-  cd ..
-  rm -rf conftest.dir
-else
-  am_cv_$1_dependencies_compiler_type=none
-fi
-])
-AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
-AM_CONDITIONAL([am__fastdep$1], [
-  test "x$enable_dependency_tracking" != xno \
-  && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
-])
-
-
-# AM_SET_DEPDIR
-# -------------
-# Choose a directory name for dependency files.
-# This macro is AC_REQUIREd in _AM_DEPENDENCIES
-AC_DEFUN([AM_SET_DEPDIR],
-[AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
-])
-
-
-# AM_DEP_TRACK
-# ------------
-AC_DEFUN([AM_DEP_TRACK],
-[AC_ARG_ENABLE(dependency-tracking,
-[  --disable-dependency-tracking  speeds up one-time build
-  --enable-dependency-tracking   do not reject slow dependency extractors])
-if test "x$enable_dependency_tracking" != xno; then
-  am_depcomp="$ac_aux_dir/depcomp"
-  AMDEPBACKSLASH='\'
-fi
-AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
-AC_SUBST([AMDEPBACKSLASH])
-])
-
-# Generate code to set up dependency tracking.              -*- Autoconf -*-
-
-# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-#serial 3
-
-# _AM_OUTPUT_DEPENDENCY_COMMANDS
-# ------------------------------
-AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
-[for mf in $CONFIG_FILES; do
-  # Strip MF so we end up with the name of the file.
-  mf=`echo "$mf" | sed -e 's/:.*$//'`
-  # Check whether this is an Automake generated Makefile or not.
-  # We used to match only the files named `Makefile.in', but
-  # some people rename them; so instead we look at the file content.
-  # Grep'ing the first line is not enough: some people post-process
-  # each Makefile.in and add a new line on top of each file to say so.
-  # So let's grep whole file.
-  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
-    dirpart=`AS_DIRNAME("$mf")`
-  else
-    continue
-  fi
-  # Extract the definition of DEPDIR, am__include, and am__quote
-  # from the Makefile without running `make'.
-  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
-  test -z "$DEPDIR" && continue
-  am__include=`sed -n 's/^am__include = //p' < "$mf"`
-  test -z "am__include" && continue
-  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
-  # When using ansi2knr, U may be empty or an underscore; expand it
-  U=`sed -n 's/^U = //p' < "$mf"`
-  # Find all dependency output files, they are included files with
-  # $(DEPDIR) in their names.  We invoke sed twice because it is the
-  # simplest approach to changing $(DEPDIR) to its actual value in the
-  # expansion.
-  for file in `sed -n "
-    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
-       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
-    # Make sure the directory exists.
-    test -f "$dirpart/$file" && continue
-    fdir=`AS_DIRNAME(["$file"])`
-    AS_MKDIR_P([$dirpart/$fdir])
-    # echo "creating $dirpart/$file"
-    echo '# dummy' > "$dirpart/$file"
-  done
-done
-])# _AM_OUTPUT_DEPENDENCY_COMMANDS
-
-
-# AM_OUTPUT_DEPENDENCY_COMMANDS
-# -----------------------------
-# This macro should only be invoked once -- use via AC_REQUIRE.
-#
-# This code is only required when automatic dependency tracking
-# is enabled.  FIXME.  This creates each `.P' file that we will
-# need in order to bootstrap the dependency handling code.
-AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
-[AC_CONFIG_COMMANDS([depfiles],
-     [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
-     [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
-])
-
-# Do all the work for Automake.                             -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 12
-
-# This macro actually does too much.  Some checks are only needed if
-# your package does certain things.  But this isn't really a big deal.
-
-# AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
-# AM_INIT_AUTOMAKE([OPTIONS])
-# -----------------------------------------------
-# The call with PACKAGE and VERSION arguments is the old style
-# call (pre autoconf-2.50), which is being phased out.  PACKAGE
-# and VERSION should now be passed to AC_INIT and removed from
-# the call to AM_INIT_AUTOMAKE.
-# We support both call styles for the transition.  After
-# the next Automake release, Autoconf can make the AC_INIT
-# arguments mandatory, and then we can depend on a new Autoconf
-# release and drop the old call support.
-AC_DEFUN([AM_INIT_AUTOMAKE],
-[AC_PREREQ([2.58])dnl
-dnl Autoconf wants to disallow AM_ names.  We explicitly allow
-dnl the ones we care about.
-m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
-AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
-AC_REQUIRE([AC_PROG_INSTALL])dnl
-# test to see if srcdir already configured
-if test "`cd $srcdir && pwd`" != "`pwd`" &&
-   test -f $srcdir/config.status; then
-  AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
-  if (cygpath --version) >/dev/null 2>/dev/null; then
-    CYGPATH_W='cygpath -w'
-  else
-    CYGPATH_W=echo
-  fi
-fi
-AC_SUBST([CYGPATH_W])
-
-# Define the identity of the package.
-dnl Distinguish between old-style and new-style calls.
-m4_ifval([$2],
-[m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
- AC_SUBST([PACKAGE], [$1])dnl
- AC_SUBST([VERSION], [$2])],
-[_AM_SET_OPTIONS([$1])dnl
- AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
- AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
-
-_AM_IF_OPTION([no-define],,
-[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
- AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
-
-# Some tools Automake needs.
-AC_REQUIRE([AM_SANITY_CHECK])dnl
-AC_REQUIRE([AC_ARG_PROGRAM])dnl
-AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
-AM_MISSING_PROG(AUTOCONF, autoconf)
-AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
-AM_MISSING_PROG(AUTOHEADER, autoheader)
-AM_MISSING_PROG(MAKEINFO, makeinfo)
-AM_PROG_INSTALL_SH
-AM_PROG_INSTALL_STRIP
-AC_REQUIRE([AM_PROG_MKDIR_P])dnl
-# We need awk for the "check" target.  The system "awk" is bad on
-# some platforms.
-AC_REQUIRE([AC_PROG_AWK])dnl
-AC_REQUIRE([AC_PROG_MAKE_SET])dnl
-AC_REQUIRE([AM_SET_LEADING_DOT])dnl
-_AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
-              [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
-                            [_AM_PROG_TAR([v7])])])
-_AM_IF_OPTION([no-dependencies],,
-[AC_PROVIDE_IFELSE([AC_PROG_CC],
-                  [_AM_DEPENDENCIES(CC)],
-                  [define([AC_PROG_CC],
-                          defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
-AC_PROVIDE_IFELSE([AC_PROG_CXX],
-                  [_AM_DEPENDENCIES(CXX)],
-                  [define([AC_PROG_CXX],
-                          defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
-])
-])
-
-
-# When config.status generates a header, we must update the stamp-h file.
-# This file resides in the same directory as the config header
-# that is generated.  The stamp files are numbered to have different names.
-
-# Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
-# loop where config.status creates the headers, so we can generate
-# our stamp files there.
-AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
-[# Compute $1's index in $config_headers.
-_am_stamp_count=1
-for _am_header in $config_headers :; do
-  case $_am_header in
-    $1 | $1:* )
-      break ;;
-    * )
-      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
-  esac
-done
-echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
-
-# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_SH
-# ------------------
-# Define $install_sh.
-AC_DEFUN([AM_PROG_INSTALL_SH],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-install_sh=${install_sh-"$am_aux_dir/install-sh"}
-AC_SUBST(install_sh)])
-
-# Copyright (C) 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# Check whether the underlying file-system supports filenames
-# with a leading dot.  For instance MS-DOS doesn't.
-AC_DEFUN([AM_SET_LEADING_DOT],
-[rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
-  am__leading_dot=.
-else
-  am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-AC_SUBST([am__leading_dot])])
-
-# Check to see how 'make' treats includes.                 -*- Autoconf -*-
-
-# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 3
-
-# AM_MAKE_INCLUDE()
-# -----------------
-# Check to see how make treats includes.
-AC_DEFUN([AM_MAKE_INCLUDE],
-[am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
-       @echo done
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-AC_MSG_CHECKING([for style of include used by $am_make])
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# We grep out `Entering directory' and `Leaving directory'
-# messages which can occur if `w' ends up in MAKEFLAGS.
-# In particular we don't look at `^make:' because GNU make might
-# be invoked under some other name (usually "gmake"), in which
-# case it prints its new name instead of `make'.
-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
-   am__include=include
-   am__quote=
-   _am_result=GNU
-fi
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
-   echo '.include "confinc"' > confmf
-   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
-      am__include=.include
-      am__quote="\""
-      _am_result=BSD
-   fi
-fi
-AC_SUBST([am__include])
-AC_SUBST([am__quote])
-AC_MSG_RESULT([$_am_result])
-rm -f confinc confmf
-])
-
-# Fake the existence of programs that GNU maintainers use.  -*- Autoconf -*-
-
-# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 4
-
-# AM_MISSING_PROG(NAME, PROGRAM)
-# ------------------------------
-AC_DEFUN([AM_MISSING_PROG],
-[AC_REQUIRE([AM_MISSING_HAS_RUN])
-$1=${$1-"${am_missing_run}$2"}
-AC_SUBST($1)])
-
-
-# AM_MISSING_HAS_RUN
-# ------------------
-# Define MISSING if not defined so far and test if it supports --run.
-# If it does, set am_missing_run to use it, otherwise, to nothing.
-AC_DEFUN([AM_MISSING_HAS_RUN],
-[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
-# Use eval to expand $SHELL
-if eval "$MISSING --run true"; then
-  am_missing_run="$MISSING --run "
-else
-  am_missing_run=
-  AC_MSG_WARN([`missing' script is too old or missing])
-fi
-])
-
-# Copyright (C) 2003, 2004, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_MKDIR_P
-# ---------------
-# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
-#
-# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
-# created by `make install' are always world readable, even if the
-# installer happens to have an overly restrictive umask (e.g. 077).
-# This was a mistake.  There are at least two reasons why we must not
-# use `-m 0755':
-#   - it causes special bits like SGID to be ignored,
-#   - it may be too restrictive (some setups expect 775 directories).
-#
-# Do not use -m 0755 and let people choose whatever they expect by
-# setting umask.
-#
-# We cannot accept any implementation of `mkdir' that recognizes `-p'.
-# Some implementations (such as Solaris 8's) are not thread-safe: if a
-# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
-# concurrently, both version can detect that a/ is missing, but only
-# one can create it and the other will error out.  Consequently we
-# restrict ourselves to GNU make (using the --version option ensures
-# this.)
-AC_DEFUN([AM_PROG_MKDIR_P],
-[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
-  # We used to keeping the `.' as first argument, in order to
-  # allow $(mkdir_p) to be used without argument.  As in
-  #   $(mkdir_p) $(somedir)
-  # where $(somedir) is conditionally defined.  However this is wrong
-  # for two reasons:
-  #  1. if the package is installed by a user who cannot write `.'
-  #     make install will fail,
-  #  2. the above comment should most certainly read
-  #     $(mkdir_p) $(DESTDIR)$(somedir)
-  #     so it does not work when $(somedir) is undefined and
-  #     $(DESTDIR) is not.
-  #  To support the latter case, we have to write
-  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
-  #  so the `.' trick is pointless.
-  mkdir_p='mkdir -p --'
-else
-  # On NextStep and OpenStep, the `mkdir' command does not
-  # recognize any option.  It will interpret all options as
-  # directories to create, and then abort because `.' already
-  # exists.
-  for d in ./-p ./--version;
-  do
-    test -d $d && rmdir $d
-  done
-  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
-  if test -f "$ac_aux_dir/mkinstalldirs"; then
-    mkdir_p='$(mkinstalldirs)'
-  else
-    mkdir_p='$(install_sh) -d'
-  fi
-fi
-AC_SUBST([mkdir_p])])
-
-# Helper functions for option handling.                     -*- Autoconf -*-
-
-# Copyright (C) 2001, 2002, 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 3
-
-# _AM_MANGLE_OPTION(NAME)
-# -----------------------
-AC_DEFUN([_AM_MANGLE_OPTION],
-[[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
-
-# _AM_SET_OPTION(NAME)
-# ------------------------------
-# Set option NAME.  Presently that only means defining a flag for this option.
-AC_DEFUN([_AM_SET_OPTION],
-[m4_define(_AM_MANGLE_OPTION([$1]), 1)])
-
-# _AM_SET_OPTIONS(OPTIONS)
-# ----------------------------------
-# OPTIONS is a space-separated list of Automake options.
-AC_DEFUN([_AM_SET_OPTIONS],
-[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
-
-# _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
-# -------------------------------------------
-# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
-AC_DEFUN([_AM_IF_OPTION],
-[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
-
-# Check to make sure that the build environment is sane.    -*- Autoconf -*-
-
-# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
-# Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 4
-
-# AM_SANITY_CHECK
-# ---------------
-AC_DEFUN([AM_SANITY_CHECK],
-[AC_MSG_CHECKING([whether build environment is sane])
-# Just in case
-sleep 1
-echo timestamp > conftest.file
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments.  Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
-   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
-   if test "$[*]" = "X"; then
-      # -L didn't work.
-      set X `ls -t $srcdir/configure conftest.file`
-   fi
-   rm -f conftest.file
-   if test "$[*]" != "X $srcdir/configure conftest.file" \
-      && test "$[*]" != "X conftest.file $srcdir/configure"; then
-
-      # If neither matched, then we have a broken ls.  This can happen
-      # if, for instance, CONFIG_SHELL is bash and it inherits a
-      # broken ls alias from the environment.  This has actually
-      # happened.  Such a system could not be considered "sane".
-      AC_MSG_ERROR([ls -t appears to fail.  Make sure there is not a broken
-alias in your environment])
-   fi
-
-   test "$[2]" = conftest.file
-   )
-then
-   # Ok.
-   :
-else
-   AC_MSG_ERROR([newly created file is older than distributed files!
-Check your system clock])
-fi
-AC_MSG_RESULT(yes)])
-
-# Copyright (C) 2001, 2003, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# AM_PROG_INSTALL_STRIP
-# ---------------------
-# One issue with vendor `install' (even GNU) is that you can't
-# specify the program used to strip binaries.  This is especially
-# annoying in cross-compiling environments, where the build's strip
-# is unlikely to handle the host's binaries.
-# Fortunately install-sh will honor a STRIPPROG variable, so we
-# always use install-sh in `make install-strip', and initialize
-# STRIPPROG with the value of the STRIP variable (set by the user).
-AC_DEFUN([AM_PROG_INSTALL_STRIP],
-[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
-# Installed binaries are usually stripped using `strip' when the user
-# run `make install-strip'.  However `strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the `STRIP' environment variable to overrule this program.
-dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
-if test "$cross_compiling" != no; then
-  AC_CHECK_TOOL([STRIP], [strip], :)
-fi
-INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
-AC_SUBST([INSTALL_STRIP_PROGRAM])])
-
-# Check how to create a tarball.                            -*- Autoconf -*-
-
-# Copyright (C) 2004, 2005  Free Software Foundation, Inc.
-#
-# This file is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# serial 2
-
-# _AM_PROG_TAR(FORMAT)
-# --------------------
-# Check how to create a tarball in format FORMAT.
-# FORMAT should be one of `v7', `ustar', or `pax'.
-#
-# Substitute a variable $(am__tar) that is a command
-# writing to stdout a FORMAT-tarball containing the directory
-# $tardir.
-#     tardir=directory && $(am__tar) > result.tar
-#
-# Substitute a variable $(am__untar) that extract such
-# a tarball read from stdin.
-#     $(am__untar) < result.tar
-AC_DEFUN([_AM_PROG_TAR],
-[# Always define AMTAR for backward compatibility.
-AM_MISSING_PROG([AMTAR], [tar])
-m4_if([$1], [v7],
-     [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
-     [m4_case([$1], [ustar],, [pax],,
-              [m4_fatal([Unknown tar format])])
-AC_MSG_CHECKING([how to create a $1 tar archive])
-# Loop over all known methods to create a tar archive until one works.
-_am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
-_am_tools=${am_cv_prog_tar_$1-$_am_tools}
-# Do not fold the above two line into one, because Tru64 sh and
-# Solaris sh will not grok spaces in the rhs of `-'.
-for _am_tool in $_am_tools
-do
-  case $_am_tool in
-  gnutar)
-    for _am_tar in tar gnutar gtar;
-    do
-      AM_RUN_LOG([$_am_tar --version]) && break
-    done
-    am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
-    am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
-    am__untar="$_am_tar -xf -"
-    ;;
-  plaintar)
-    # Must skip GNU tar: if it does not support --format= it doesn't create
-    # ustar tarball either.
-    (tar --version) >/dev/null 2>&1 && continue
-    am__tar='tar chf - "$$tardir"'
-    am__tar_='tar chf - "$tardir"'
-    am__untar='tar xf -'
-    ;;
-  pax)
-    am__tar='pax -L -x $1 -w "$$tardir"'
-    am__tar_='pax -L -x $1 -w "$tardir"'
-    am__untar='pax -r'
-    ;;
-  cpio)
-    am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
-    am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
-    am__untar='cpio -i -H $1 -d'
-    ;;
-  none)
-    am__tar=false
-    am__tar_=false
-    am__untar=false
-    ;;
-  esac
-
-  # If the value was cached, stop now.  We just wanted to have am__tar
-  # and am__untar set.
-  test -n "${am_cv_prog_tar_$1}" && break
-
-  # tar/untar a dummy directory, and stop if the command works
-  rm -rf conftest.dir
-  mkdir conftest.dir
-  echo GrepMe > conftest.dir/file
-  AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
-  rm -rf conftest.dir
-  if test -s conftest.tar; then
-    AM_RUN_LOG([$am__untar <conftest.tar])
-    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
-  fi
-done
-rm -rf conftest.dir
-
-AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
-AC_MSG_RESULT([$am_cv_prog_tar_$1])])
-AC_SUBST([am__tar])
-AC_SUBST([am__untar])
-]) # _AM_PROG_TAR
-
-m4_include([acinclude.m4])
diff --git a/compile b/compile
deleted file mode 100755 (executable)
index 9bb997a..0000000
--- a/compile
+++ /dev/null
@@ -1,99 +0,0 @@
-#! /bin/sh
-
-# Wrapper for compilers which do not understand `-c -o'.
-
-# Copyright 1999, 2000 Free Software Foundation, Inc.
-# Written by Tom Tromey <tromey@cygnus.com>.
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, 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.
-
-# Usage:
-# compile PROGRAM [ARGS]...
-# `-o FOO.o' is removed from the args passed to the actual compile.
-
-prog=$1
-shift
-
-ofile=
-cfile=
-args=
-while test $# -gt 0; do
-   case "$1" in
-    -o)
-       # configure might choose to run compile as `compile cc -o foo foo.c'.
-       # So we do something ugly here.
-       ofile=$2
-       shift
-       case "$ofile" in
-       *.o | *.obj)
-          ;;
-       *)
-          args="$args -o $ofile"
-          ofile=
-          ;;
-       esac
-       ;;
-    *.c)
-       cfile=$1
-       args="$args $1"
-       ;;
-    *)
-       args="$args $1"
-       ;;
-   esac
-   shift
-done
-
-if test -z "$ofile" || test -z "$cfile"; then
-   # If no `-o' option was seen then we might have been invoked from a
-   # pattern rule where we don't need one.  That is ok -- this is a
-   # normal compilation that the losing compiler can handle.  If no
-   # `.c' file was seen then we are probably linking.  That is also
-   # ok.
-   exec "$prog" $args
-fi
-
-# Name of file we expect compiler to create.
-cofile=`echo $cfile | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
-
-# Create the lock directory.
-# Note: use `[/.-]' here to ensure that we don't use the same name
-# that we are using for the .o file.  Also, base the name on the expected
-# object file name, since that is what matters with a parallel build.
-lockdir=`echo $cofile | sed -e 's|[/.-]|_|g'`.d
-while true; do
-   if mkdir $lockdir > /dev/null 2>&1; then
-      break
-   fi
-   sleep 1
-done
-# FIXME: race condition here if user kills between mkdir and trap.
-trap "rmdir $lockdir; exit 1" 1 2 15
-
-# Run the compile.
-"$prog" $args
-status=$?
-
-if test -f "$cofile"; then
-   mv "$cofile" "$ofile"
-fi
-
-rmdir $lockdir
-exit $status
diff --git a/configure b/configure
deleted file mode 100755 (executable)
index 4e68121..0000000
--- a/configure
+++ /dev/null
@@ -1,9289 +0,0 @@
-#! /bin/sh
-# Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.61 for GNU Thales 1.1.
-#
-# Report bugs to <klaus.weiss@nanet.at>.
-#
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-# This configure script is free software; the Free Software Foundation
-# gives unlimited permission to copy, distribute and modify it.
-## --------------------- ##
-## M4sh Initialization.  ##
-## --------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in
-  *posix*) set -o posix ;;
-esac
-
-fi
-
-
-
-
-# PATH needs CR
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  echo "#! /bin/sh" >conf$$.sh
-  echo  "exit 0"   >>conf$$.sh
-  chmod +x conf$$.sh
-  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
-    PATH_SEPARATOR=';'
-  else
-    PATH_SEPARATOR=:
-  fi
-  rm -f conf$$.sh
-fi
-
-# Support unset when possible.
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
-  as_unset=unset
-else
-  as_unset=false
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-as_nl='
-'
-IFS=" ""       $as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-case $0 in
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-done
-IFS=$as_save_IFS
-
-     ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
-  { (exit 1); exit 1; }
-fi
-
-# Work around bugs in pre-3.0 UWIN ksh.
-for as_var in ENV MAIL MAILPATH
-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-for as_var in \
-  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
-  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
-  LC_TELEPHONE LC_TIME
-do
-  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
-    eval $as_var=C; export $as_var
-  else
-    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-  fi
-done
-
-# Required to use basename.
-if expr a : '\(a\)' >/dev/null 2>&1 &&
-   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-  as_expr=expr
-else
-  as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
-  as_basename=basename
-else
-  as_basename=false
-fi
-
-
-# Name of the executable.
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
-        X"$0" : 'X\(//\)$' \| \
-        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-echo X/"$0" |
-    sed '/^.*\/\([^/][^/]*\)\/*$/{
-           s//\1/
-           q
-         }
-         /^X\/\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\/\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-
-# CDPATH.
-$as_unset CDPATH
-
-
-if test "x$CONFIG_SHELL" = x; then
-  if (eval ":") 2>/dev/null; then
-  as_have_required=yes
-else
-  as_have_required=no
-fi
-
-  if test $as_have_required = yes &&    (eval ":
-(as_func_return () {
-  (exit \$1)
-}
-as_func_success () {
-  as_func_return 0
-}
-as_func_failure () {
-  as_func_return 1
-}
-as_func_ret_success () {
-  return 0
-}
-as_func_ret_failure () {
-  return 1
-}
-
-exitcode=0
-if as_func_success; then
-  :
-else
-  exitcode=1
-  echo as_func_success failed.
-fi
-
-if as_func_failure; then
-  exitcode=1
-  echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
-  :
-else
-  exitcode=1
-  echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
-  exitcode=1
-  echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
-  :
-else
-  exitcode=1
-  echo positional parameters were not saved.
-fi
-
-test \$exitcode = 0) || { (exit 1); exit 1; }
-
-(
-  as_lineno_1=\$LINENO
-  as_lineno_2=\$LINENO
-  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
-  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
-") 2> /dev/null; then
-  :
-else
-  as_candidate_shells=
-    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  case $as_dir in
-        /*)
-          for as_base in sh bash ksh sh5; do
-            as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
-          done;;
-       esac
-done
-IFS=$as_save_IFS
-
-
-      for as_shell in $as_candidate_shells $SHELL; do
-        # Try only shells that exist, to save several forks.
-        if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
-               { ("$as_shell") 2> /dev/null <<\_ASEOF
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in
-  *posix*) set -o posix ;;
-esac
-
-fi
-
-
-:
-_ASEOF
-}; then
-  CONFIG_SHELL=$as_shell
-              as_have_required=yes
-              if { "$as_shell" 2> /dev/null <<\_ASEOF
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in
-  *posix*) set -o posix ;;
-esac
-
-fi
-
-
-:
-(as_func_return () {
-  (exit $1)
-}
-as_func_success () {
-  as_func_return 0
-}
-as_func_failure () {
-  as_func_return 1
-}
-as_func_ret_success () {
-  return 0
-}
-as_func_ret_failure () {
-  return 1
-}
-
-exitcode=0
-if as_func_success; then
-  :
-else
-  exitcode=1
-  echo as_func_success failed.
-fi
-
-if as_func_failure; then
-  exitcode=1
-  echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
-  :
-else
-  exitcode=1
-  echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
-  exitcode=1
-  echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = "$1" ); then
-  :
-else
-  exitcode=1
-  echo positional parameters were not saved.
-fi
-
-test $exitcode = 0) || { (exit 1); exit 1; }
-
-(
-  as_lineno_1=$LINENO
-  as_lineno_2=$LINENO
-  test "x$as_lineno_1" != "x$as_lineno_2" &&
-  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
-
-_ASEOF
-}; then
-  break
-fi
-
-fi
-
-      done
-
-      if test "x$CONFIG_SHELL" != x; then
-  for as_var in BASH_ENV ENV
-        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-        done
-        export CONFIG_SHELL
-        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
-fi
-
-
-    if test $as_have_required = no; then
-  echo This script requires a shell more modern than all the
-      echo shells that I found on your system.  Please install a
-      echo modern shell, or manually run the script under such a
-      echo shell if you do have one.
-      { (exit 1); exit 1; }
-fi
-
-
-fi
-
-fi
-
-
-
-(eval "as_func_return () {
-  (exit \$1)
-}
-as_func_success () {
-  as_func_return 0
-}
-as_func_failure () {
-  as_func_return 1
-}
-as_func_ret_success () {
-  return 0
-}
-as_func_ret_failure () {
-  return 1
-}
-
-exitcode=0
-if as_func_success; then
-  :
-else
-  exitcode=1
-  echo as_func_success failed.
-fi
-
-if as_func_failure; then
-  exitcode=1
-  echo as_func_failure succeeded.
-fi
-
-if as_func_ret_success; then
-  :
-else
-  exitcode=1
-  echo as_func_ret_success failed.
-fi
-
-if as_func_ret_failure; then
-  exitcode=1
-  echo as_func_ret_failure succeeded.
-fi
-
-if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
-  :
-else
-  exitcode=1
-  echo positional parameters were not saved.
-fi
-
-test \$exitcode = 0") || {
-  echo No shell found that supports shell functions.
-  echo Please tell autoconf@gnu.org about your system,
-  echo including any error possibly output before this
-  echo message
-}
-
-
-
-  as_lineno_1=$LINENO
-  as_lineno_2=$LINENO
-  test "x$as_lineno_1" != "x$as_lineno_2" &&
-  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
-
-  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
-  # uniformly replaced by the line number.  The first 'sed' inserts a
-  # line-number line after each line using $LINENO; the second 'sed'
-  # does the real work.  The second script uses 'N' to pair each
-  # line-number line with the line containing $LINENO, and appends
-  # trailing '-' during substitution so that $LINENO is not a special
-  # case at line end.
-  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
-  # scripts with optimization help from Paolo Bonzini.  Blame Lee
-  # E. McMahon (1931-1989) for sed's syntax.  :-)
-  sed -n '
-    p
-    /[$]LINENO/=
-  ' <$as_myself |
-    sed '
-      s/[$]LINENO.*/&-/
-      t lineno
-      b
-      :lineno
-      N
-      :loop
-      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
-      t loop
-      s/-\n.*//
-    ' >$as_me.lineno &&
-  chmod +x "$as_me.lineno" ||
-    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
-   { (exit 1); exit 1; }; }
-
-  # Don't try to exec as it changes $[0], causing all sort of problems
-  # (the dirname of $[0] is not the place where we might find the
-  # original and so on.  Autoconf is especially sensitive to this).
-  . "./$as_me.lineno"
-  # Exit status is that of the last command.
-  exit
-}
-
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
-  as_dirname=dirname
-else
-  as_dirname=false
-fi
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in
--n*)
-  case `echo 'x\c'` in
-  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
-  *)   ECHO_C='\c';;
-  esac;;
-*)
-  ECHO_N='-n';;
-esac
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
-   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-  as_expr=expr
-else
-  as_expr=false
-fi
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
-  rm -f conf$$.dir/conf$$.file
-else
-  rm -f conf$$.dir
-  mkdir conf$$.dir
-fi
-echo >conf$$.file
-if ln -s conf$$.file conf$$ 2>/dev/null; then
-  as_ln_s='ln -s'
-  # ... but there are two gotchas:
-  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
-  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
-  # In both cases, we have to default to `cp -p'.
-  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
-    as_ln_s='cp -p'
-elif ln conf$$.file conf$$ 2>/dev/null; then
-  as_ln_s=ln
-else
-  as_ln_s='cp -p'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-if mkdir -p . 2>/dev/null; then
-  as_mkdir_p=:
-else
-  test -d ./-p && rmdir ./-p
-  as_mkdir_p=false
-fi
-
-if test -x / >/dev/null 2>&1; then
-  as_test_x='test -x'
-else
-  if ls -dL / >/dev/null 2>&1; then
-    as_ls_L_option=L
-  else
-    as_ls_L_option=
-  fi
-  as_test_x='
-    eval sh -c '\''
-      if test -d "$1"; then
-        test -d "$1/.";
-      else
-       case $1 in
-        -*)set "./$1";;
-       esac;
-       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
-       ???[sx]*):;;*)false;;esac;fi
-    '\'' sh
-  '
-fi
-as_executable_p=$as_test_x
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-
-exec 7<&0 </dev/null 6>&1
-
-# Name of the host.
-# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
-# so uname gets run too.
-ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
-
-#
-# Initializations.
-#
-ac_default_prefix=/usr/local
-ac_clean_files=
-ac_config_libobj_dir=.
-LIBOBJS=
-cross_compiling=no
-subdirs=
-MFLAGS=
-MAKEFLAGS=
-SHELL=${CONFIG_SHELL-/bin/sh}
-
-# Identity of this package.
-PACKAGE_NAME='GNU Thales'
-PACKAGE_TARNAME='thales'
-PACKAGE_VERSION='1.1'
-PACKAGE_STRING='GNU Thales 1.1'
-PACKAGE_BUGREPORT='klaus.weiss@nanet.at'
-
-# Factoring default headers for most tests.
-ac_includes_default="\
-#include <stdio.h>
-#ifdef HAVE_SYS_TYPES_H
-# include <sys/types.h>
-#endif
-#ifdef HAVE_SYS_STAT_H
-# include <sys/stat.h>
-#endif
-#ifdef STDC_HEADERS
-# include <stdlib.h>
-# include <stddef.h>
-#else
-# ifdef HAVE_STDLIB_H
-#  include <stdlib.h>
-# endif
-#endif
-#ifdef HAVE_STRING_H
-# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
-#  include <memory.h>
-# endif
-# include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-# include <strings.h>
-#endif
-#ifdef HAVE_INTTYPES_H
-# include <inttypes.h>
-#endif
-#ifdef HAVE_STDINT_H
-# include <stdint.h>
-#endif
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif"
-
-ac_subst_vars='SHELL
-PATH_SEPARATOR
-PACKAGE_NAME
-PACKAGE_TARNAME
-PACKAGE_VERSION
-PACKAGE_STRING
-PACKAGE_BUGREPORT
-exec_prefix
-prefix
-program_transform_name
-bindir
-sbindir
-libexecdir
-datarootdir
-datadir
-sysconfdir
-sharedstatedir
-localstatedir
-includedir
-oldincludedir
-docdir
-infodir
-htmldir
-dvidir
-pdfdir
-psdir
-libdir
-localedir
-mandir
-DEFS
-ECHO_C
-ECHO_N
-ECHO_T
-LIBS
-build_alias
-host_alias
-target_alias
-INSTALL_PROGRAM
-INSTALL_SCRIPT
-INSTALL_DATA
-CYGPATH_W
-PACKAGE
-VERSION
-ACLOCAL
-AUTOCONF
-AUTOMAKE
-AUTOHEADER
-MAKEINFO
-install_sh
-STRIP
-INSTALL_STRIP_PROGRAM
-mkdir_p
-AWK
-SET_MAKE
-am__leading_dot
-AMTAR
-am__tar
-am__untar
-CC
-CFLAGS
-LDFLAGS
-CPPFLAGS
-ac_ct_CC
-EXEEXT
-OBJEXT
-DEPDIR
-am__include
-am__quote
-AMDEP_TRUE
-AMDEP_FALSE
-AMDEPBACKSLASH
-CCDEPMODE
-am__fastdepCC_TRUE
-am__fastdepCC_FALSE
-LN_S
-CPP
-GREP
-EGREP
-LIBOBJS
-LTLIBOBJS'
-ac_subst_files=''
-      ac_precious_vars='build_alias
-host_alias
-target_alias
-CC
-CFLAGS
-LDFLAGS
-LIBS
-CPPFLAGS
-CPP'
-
-
-# Initialize some variables set by options.
-ac_init_help=
-ac_init_version=false
-# The variables have the same names as the options, with
-# dashes changed to underlines.
-cache_file=/dev/null
-exec_prefix=NONE
-no_create=
-no_recursion=
-prefix=NONE
-program_prefix=NONE
-program_suffix=NONE
-program_transform_name=s,x,x,
-silent=
-site=
-srcdir=
-verbose=
-x_includes=NONE
-x_libraries=NONE
-
-# Installation directory options.
-# These are left unexpanded so users can "make install exec_prefix=/foo"
-# and all the variables that are supposed to be based on exec_prefix
-# by default will actually change.
-# Use braces instead of parens because sh, perl, etc. also accept them.
-# (The list follows the same order as the GNU Coding Standards.)
-bindir='${exec_prefix}/bin'
-sbindir='${exec_prefix}/sbin'
-libexecdir='${exec_prefix}/libexec'
-datarootdir='${prefix}/share'
-datadir='${datarootdir}'
-sysconfdir='${prefix}/etc'
-sharedstatedir='${prefix}/com'
-localstatedir='${prefix}/var'
-includedir='${prefix}/include'
-oldincludedir='/usr/include'
-docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
-infodir='${datarootdir}/info'
-htmldir='${docdir}'
-dvidir='${docdir}'
-pdfdir='${docdir}'
-psdir='${docdir}'
-libdir='${exec_prefix}/lib'
-localedir='${datarootdir}/locale'
-mandir='${datarootdir}/man'
-
-ac_prev=
-ac_dashdash=
-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=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
-  *)   ac_optarg=yes ;;
-  esac
-
-  # Accept the important Cygnus configure options, so we can diagnose typos.
-
-  case $ac_dashdash$ac_option in
-  --)
-    ac_dashdash=yes ;;
-
-  -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_alias ;;
-  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
-    build_alias=$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 ;;
-
-  --config-cache | -C)
-    cache_file=config.cache ;;
-
-  -datadir | --datadir | --datadi | --datad)
-    ac_prev=datadir ;;
-  -datadir=* | --datadir=* | --datadi=* | --datad=*)
-    datadir=$ac_optarg ;;
-
-  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
-  | --dataroo | --dataro | --datar)
-    ac_prev=datarootdir ;;
-  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
-  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
-    datarootdir=$ac_optarg ;;
-
-  -disable-* | --disable-*)
-    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
-   { (exit 1); exit 1; }; }
-    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
-    eval enable_$ac_feature=no ;;
-
-  -docdir | --docdir | --docdi | --doc | --do)
-    ac_prev=docdir ;;
-  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
-    docdir=$ac_optarg ;;
-
-  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
-    ac_prev=dvidir ;;
-  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
-    dvidir=$ac_optarg ;;
-
-  -enable-* | --enable-*)
-    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
-   { (exit 1); exit 1; }; }
-    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
-    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 | -h)
-    ac_init_help=long ;;
-  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
-    ac_init_help=recursive ;;
-  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
-    ac_init_help=short ;;
-
-  -host | --host | --hos | --ho)
-    ac_prev=host_alias ;;
-  -host=* | --host=* | --hos=* | --ho=*)
-    host_alias=$ac_optarg ;;
-
-  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
-    ac_prev=htmldir ;;
-  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
-  | --ht=*)
-    htmldir=$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 ;;
-
-  -localedir | --localedir | --localedi | --localed | --locale)
-    ac_prev=localedir ;;
-  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
-    localedir=$ac_optarg ;;
-
-  -localstatedir | --localstatedir | --localstatedi | --localstated \
-  | --localstate | --localstat | --localsta | --localst | --locals)
-    ac_prev=localstatedir ;;
-  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
-  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
-    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 | -n)
-    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 ;;
-
-  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
-    ac_prev=pdfdir ;;
-  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
-    pdfdir=$ac_optarg ;;
-
-  -psdir | --psdir | --psdi | --psd | --ps)
-    ac_prev=psdir ;;
-  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
-    psdir=$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_alias ;;
-  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
-    target_alias=$ac_optarg ;;
-
-  -v | -verbose | --verbose | --verbos | --verbo | --verb)
-    verbose=yes ;;
-
-  -version | --version | --versio | --versi | --vers | -V)
-    ac_init_version=: ;;
-
-  -with-* | --with-*)
-    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-      { echo "$as_me: error: invalid package name: $ac_package" >&2
-   { (exit 1); exit 1; }; }
-    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
-    eval with_$ac_package=\$ac_optarg ;;
-
-  -without-* | --without-*)
-    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-      { echo "$as_me: error: invalid package name: $ac_package" >&2
-   { (exit 1); exit 1; }; }
-    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 "$as_me: error: unrecognized option: $ac_option
-Try \`$0 --help' for more information." >&2
-   { (exit 1); exit 1; }; }
-    ;;
-
-  *=*)
-    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
-    # Reject names that are not valid shell variable names.
-    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
-      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
-   { (exit 1); exit 1; }; }
-    eval $ac_envvar=\$ac_optarg
-    export $ac_envvar ;;
-
-  *)
-    # FIXME: should be removed in autoconf 3.0.
-    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
-    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
-      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
-    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
-    ;;
-
-  esac
-done
-
-if test -n "$ac_prev"; then
-  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
-  { echo "$as_me: error: missing argument to $ac_option" >&2
-   { (exit 1); exit 1; }; }
-fi
-
-# Be sure to have absolute directory names.
-for ac_var in  exec_prefix prefix bindir sbindir libexecdir datarootdir \
-               datadir sysconfdir sharedstatedir localstatedir includedir \
-               oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
-               libdir localedir mandir
-do
-  eval ac_val=\$$ac_var
-  case $ac_val in
-    [\\/$]* | ?:[\\/]* )  continue;;
-    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
-  esac
-  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
-   { (exit 1); exit 1; }; }
-done
-
-# There might be people who depend on the old broken behavior: `$host'
-# used to hold the argument of --host etc.
-# FIXME: To remove some day.
-build=$build_alias
-host=$host_alias
-target=$target_alias
-
-# FIXME: To remove some day.
-if test "x$host_alias" != x; then
-  if test "x$build_alias" = x; then
-    cross_compiling=maybe
-    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
-    If a cross compiler is detected then cross compile mode will be used." >&2
-  elif test "x$build_alias" != "x$host_alias"; then
-    cross_compiling=yes
-  fi
-fi
-
-ac_tool_prefix=
-test -n "$host_alias" && ac_tool_prefix=$host_alias-
-
-test "$silent" = yes && exec 6>/dev/null
-
-
-ac_pwd=`pwd` && test -n "$ac_pwd" &&
-ac_ls_di=`ls -di .` &&
-ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
-  { echo "$as_me: error: Working directory cannot be determined" >&2
-   { (exit 1); exit 1; }; }
-test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
-  { echo "$as_me: error: pwd does not report name of working directory" >&2
-   { (exit 1); exit 1; }; }
-
-
-# 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 the parent directory.
-  ac_confdir=`$as_dirname -- "$0" ||
-$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$0" : 'X\(//\)[^/]' \| \
-        X"$0" : 'X\(//\)$' \| \
-        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$0" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)[^/].*/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-  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
-  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
-  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
-   { (exit 1); exit 1; }; }
-fi
-ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
-ac_abs_confdir=`(
-       cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
-   { (exit 1); exit 1; }; }
-       pwd)`
-# When building in place, set srcdir=.
-if test "$ac_abs_confdir" = "$ac_pwd"; then
-  srcdir=.
-fi
-# Remove unnecessary trailing slashes from srcdir.
-# Double slashes in file names in object file debugging info
-# mess up M-x gdb in Emacs.
-case $srcdir in
-*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
-esac
-for ac_var in $ac_precious_vars; do
-  eval ac_env_${ac_var}_set=\${${ac_var}+set}
-  eval ac_env_${ac_var}_value=\$${ac_var}
-  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
-  eval ac_cv_env_${ac_var}_value=\$${ac_var}
-done
-
-#
-# Report the --help message.
-#
-if test "$ac_init_help" = "long"; then
-  # 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 <<_ACEOF
-\`configure' configures GNU Thales 1.1 to adapt to many kinds of systems.
-
-Usage: $0 [OPTION]... [VAR=VALUE]...
-
-To assign environment variables (e.g., CC, CFLAGS...), specify them as
-VAR=VALUE.  See below for descriptions of some of the useful variables.
-
-Defaults for the options are specified in brackets.
-
-Configuration:
-  -h, --help              display this help and exit
-      --help=short        display options specific to this package
-      --help=recursive    display the short help of all the included packages
-  -V, --version           display version information and exit
-  -q, --quiet, --silent   do not print \`checking...' messages
-      --cache-file=FILE   cache test results in FILE [disabled]
-  -C, --config-cache      alias for \`--cache-file=config.cache'
-  -n, --no-create         do not create output files
-      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
-
-Installation directories:
-  --prefix=PREFIX         install architecture-independent files in PREFIX
-                         [$ac_default_prefix]
-  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
-                         [PREFIX]
-
-By default, \`make install' will install all the files in
-\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
-an installation prefix other than \`$ac_default_prefix' using \`--prefix',
-for instance \`--prefix=\$HOME'.
-
-For better control, use the options below.
-
-Fine tuning of the installation directories:
-  --bindir=DIR           user executables [EPREFIX/bin]
-  --sbindir=DIR          system admin executables [EPREFIX/sbin]
-  --libexecdir=DIR       program executables [EPREFIX/libexec]
-  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
-  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
-  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
-  --libdir=DIR           object code libraries [EPREFIX/lib]
-  --includedir=DIR       C header files [PREFIX/include]
-  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
-  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
-  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
-  --infodir=DIR          info documentation [DATAROOTDIR/info]
-  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
-  --mandir=DIR           man documentation [DATAROOTDIR/man]
-  --docdir=DIR           documentation root [DATAROOTDIR/doc/thales]
-  --htmldir=DIR          html documentation [DOCDIR]
-  --dvidir=DIR           dvi documentation [DOCDIR]
-  --pdfdir=DIR           pdf documentation [DOCDIR]
-  --psdir=DIR            ps documentation [DOCDIR]
-_ACEOF
-
-  cat <<\_ACEOF
-
-Program names:
-  --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
-_ACEOF
-fi
-
-if test -n "$ac_init_help"; then
-  case $ac_init_help in
-     short | recursive ) echo "Configuration of GNU Thales 1.1:";;
-   esac
-  cat <<\_ACEOF
-
-Optional Features:
-  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
-  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
-  --disable-dependency-tracking  speeds up one-time build
-  --enable-dependency-tracking   do not reject slow dependency extractors
-  --enable-static links statically
-  --enable-no-modes Disables modes in the database (modes are enabled by default)
-
-Optional Packages:
-  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
-  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
-  --with-ircd=ircdtype  type of the ircd used with thales (bahamut, hybrid, ircdru, unreal, ultimate28 or ultimate30)
-  --tableprefix=string  prefix to add to all SQL tables names. database creation scripts need to be modified accordingly.)
-  --with-hashlist=YES/NO  Use an internal hashlist to store some data ? (that makes Thales run faster)
-  --with-mysql=PFX        Prefix where MySQL is installed (usually /usr/local)
-  --with-mysql-includes=PFX Prefix where MySQL includes are found (usually
-                           /usr/local/include/mysql)
-  --with-mysql-libraries=PFX Prefix where MySQL libraries are found (usually
-                           /usr/local/lib/mysql)
-
-Some influential environment variables:
-  CC          C compiler command
-  CFLAGS      C compiler flags
-  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
-              nonstandard directory <lib dir>
-  LIBS        libraries to pass to the linker, e.g. -l<library>
-  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
-              you have headers in a nonstandard directory <include dir>
-  CPP         C preprocessor
-
-Use these variables to override the choices made by `configure' or to help
-it to find libraries and programs with nonstandard names/locations.
-
-Report bugs to <klaus.weiss@nanet.at>.
-_ACEOF
-ac_status=$?
-fi
-
-if test "$ac_init_help" = "recursive"; then
-  # If there are subdirs, report their specific --help.
-  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
-    test -d "$ac_dir" || continue
-    ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
-  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
-  # A ".." for each directory in $ac_dir_suffix.
-  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
-  case $ac_top_builddir_sub in
-  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
-  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
-  esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
-  .)  # We are building in place.
-    ac_srcdir=.
-    ac_top_srcdir=$ac_top_builddir_sub
-    ac_abs_top_srcdir=$ac_pwd ;;
-  [\\/]* | ?:[\\/]* )  # Absolute name.
-    ac_srcdir=$srcdir$ac_dir_suffix;
-    ac_top_srcdir=$srcdir
-    ac_abs_top_srcdir=$srcdir ;;
-  *) # Relative name.
-    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
-    ac_top_srcdir=$ac_top_build_prefix$srcdir
-    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-    cd "$ac_dir" || { ac_status=$?; continue; }
-    # Check for guested configure.
-    if test -f "$ac_srcdir/configure.gnu"; then
-      echo &&
-      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
-    elif test -f "$ac_srcdir/configure"; then
-      echo &&
-      $SHELL "$ac_srcdir/configure" --help=recursive
-    else
-      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
-    fi || ac_status=$?
-    cd "$ac_pwd" || { ac_status=$?; break; }
-  done
-fi
-
-test -n "$ac_init_help" && exit $ac_status
-if $ac_init_version; then
-  cat <<\_ACEOF
-GNU Thales configure 1.1
-generated by GNU Autoconf 2.61
-
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
-This configure script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it.
-_ACEOF
-  exit
-fi
-cat >config.log <<_ACEOF
-This file contains any messages produced by compilers while
-running configure, to aid debugging if configure makes a mistake.
-
-It was created by GNU Thales $as_me 1.1, which was
-generated by GNU Autoconf 2.61.  Invocation command line was
-
-  $ $0 $@
-
-_ACEOF
-exec 5>>config.log
-{
-cat <<_ASUNAME
-## --------- ##
-## Platform. ##
-## --------- ##
-
-hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
-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 || echo unknown`
-/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
-
-/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
-/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
-/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
-/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
-/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
-/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
-/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
-
-_ASUNAME
-
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  echo "PATH: $as_dir"
-done
-IFS=$as_save_IFS
-
-} >&5
-
-cat >&5 <<_ACEOF
-
-
-## ----------- ##
-## Core tests. ##
-## ----------- ##
-
-_ACEOF
-
-
-# Keep a trace of the command line.
-# Strip out --no-create and --no-recursion so they do not pile up.
-# Strip out --silent because we don't want to record it for future runs.
-# Also quote any args containing shell meta-characters.
-# Make two passes to allow for proper duplicate-argument suppression.
-ac_configure_args=
-ac_configure_args0=
-ac_configure_args1=
-ac_must_keep_next=false
-for ac_pass in 1 2
-do
-  for ac_arg
-  do
-    case $ac_arg in
-    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
-    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-    | -silent | --silent | --silen | --sile | --sil)
-      continue ;;
-    *\'*)
-      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
-    esac
-    case $ac_pass in
-    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
-    2)
-      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
-      if test $ac_must_keep_next = true; then
-       ac_must_keep_next=false # Got value, back to normal.
-      else
-       case $ac_arg in
-         *=* | --config-cache | -C | -disable-* | --disable-* \
-         | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
-         | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
-         | -with-* | --with-* | -without-* | --without-* | --x)
-           case "$ac_configure_args0 " in
-             "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
-           esac
-           ;;
-         -* ) ac_must_keep_next=true ;;
-       esac
-      fi
-      ac_configure_args="$ac_configure_args '$ac_arg'"
-      ;;
-    esac
-  done
-done
-$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
-$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
-
-# When interrupted or exit'd, cleanup temporary files, and complete
-# config.log.  We remove comments because anyway the quotes in there
-# would cause problems or look ugly.
-# WARNING: Use '\'' to represent an apostrophe within the trap.
-# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
-trap 'exit_status=$?
-  # Save into config.log some information that might help in debugging.
-  {
-    echo
-
-    cat <<\_ASBOX
-## ---------------- ##
-## Cache variables. ##
-## ---------------- ##
-_ASBOX
-    echo
-    # The following way of writing the cache mishandles newlines in values,
-(
-  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
-    eval ac_val=\$$ac_var
-    case $ac_val in #(
-    *${as_nl}*)
-      case $ac_var in #(
-      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
-      esac
-      case $ac_var in #(
-      _ | IFS | as_nl) ;; #(
-      *) $as_unset $ac_var ;;
-      esac ;;
-    esac
-  done
-  (set) 2>&1 |
-    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
-    *${as_nl}ac_space=\ *)
-      sed -n \
-       "s/'\''/'\''\\\\'\'''\''/g;
-         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
-      ;; #(
-    *)
-      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
-      ;;
-    esac |
-    sort
-)
-    echo
-
-    cat <<\_ASBOX
-## ----------------- ##
-## Output variables. ##
-## ----------------- ##
-_ASBOX
-    echo
-    for ac_var in $ac_subst_vars
-    do
-      eval ac_val=\$$ac_var
-      case $ac_val in
-      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
-      esac
-      echo "$ac_var='\''$ac_val'\''"
-    done | sort
-    echo
-
-    if test -n "$ac_subst_files"; then
-      cat <<\_ASBOX
-## ------------------- ##
-## File substitutions. ##
-## ------------------- ##
-_ASBOX
-      echo
-      for ac_var in $ac_subst_files
-      do
-       eval ac_val=\$$ac_var
-       case $ac_val in
-       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
-       esac
-       echo "$ac_var='\''$ac_val'\''"
-      done | sort
-      echo
-    fi
-
-    if test -s confdefs.h; then
-      cat <<\_ASBOX
-## ----------- ##
-## confdefs.h. ##
-## ----------- ##
-_ASBOX
-      echo
-      cat confdefs.h
-      echo
-    fi
-    test "$ac_signal" != 0 &&
-      echo "$as_me: caught signal $ac_signal"
-    echo "$as_me: exit $exit_status"
-  } >&5
-  rm -f core *.core core.conftest.* &&
-    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
-    exit $exit_status
-' 0
-for ac_signal in 1 2 13 15; do
-  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
-done
-ac_signal=0
-
-# confdefs.h avoids OS command line length limits that DEFS can exceed.
-rm -f -r conftest* confdefs.h
-
-# Predefined preprocessor variables.
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_NAME "$PACKAGE_NAME"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_VERSION "$PACKAGE_VERSION"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_STRING "$PACKAGE_STRING"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
-_ACEOF
-
-
-# Let the site file select an alternate cache file if it wants to.
-# Prefer explicitly selected file to automatically selected ones.
-if test -n "$CONFIG_SITE"; then
-  set x "$CONFIG_SITE"
-elif test "x$prefix" != xNONE; then
-  set x "$prefix/share/config.site" "$prefix/etc/config.site"
-else
-  set x "$ac_default_prefix/share/config.site" \
-       "$ac_default_prefix/etc/config.site"
-fi
-shift
-for ac_site_file
-do
-  if test -r "$ac_site_file"; then
-    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
-echo "$as_me: loading site script $ac_site_file" >&6;}
-    sed 's/^/| /' "$ac_site_file" >&5
-    . "$ac_site_file"
-  fi
-done
-
-if test -r "$cache_file"; then
-  # Some versions of bash will fail to source /dev/null (special
-  # files actually), so we avoid doing that.
-  if test -f "$cache_file"; then
-    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
-echo "$as_me: loading cache $cache_file" >&6;}
-    case $cache_file in
-      [\\/]* | ?:[\\/]* ) . "$cache_file";;
-      *)                      . "./$cache_file";;
-    esac
-  fi
-else
-  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
-echo "$as_me: creating cache $cache_file" >&6;}
-  >$cache_file
-fi
-
-# Check that the precious variables saved in the cache have kept the same
-# value.
-ac_cache_corrupted=false
-for ac_var in $ac_precious_vars; do
-  eval ac_old_set=\$ac_cv_env_${ac_var}_set
-  eval ac_new_set=\$ac_env_${ac_var}_set
-  eval ac_old_val=\$ac_cv_env_${ac_var}_value
-  eval ac_new_val=\$ac_env_${ac_var}_value
-  case $ac_old_set,$ac_new_set in
-    set,)
-      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
-echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
-      ac_cache_corrupted=: ;;
-    ,set)
-      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
-echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
-      ac_cache_corrupted=: ;;
-    ,);;
-    *)
-      if test "x$ac_old_val" != "x$ac_new_val"; then
-       { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
-echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
-       { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
-echo "$as_me:   former value:  $ac_old_val" >&2;}
-       { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
-echo "$as_me:   current value: $ac_new_val" >&2;}
-       ac_cache_corrupted=:
-      fi;;
-  esac
-  # Pass precious variables to config.status.
-  if test "$ac_new_set" = set; then
-    case $ac_new_val in
-    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
-    *) ac_arg=$ac_var=$ac_new_val ;;
-    esac
-    case " $ac_configure_args " in
-      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
-      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
-    esac
-  fi
-done
-if $ac_cache_corrupted; then
-  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
-echo "$as_me: error: changes in the environment can compromise the build" >&2;}
-  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
-echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-ac_config_headers="$ac_config_headers src/config.h"
-
-am__api_version="1.9"
-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
-  elif test -f "$ac_dir/shtool"; then
-    ac_aux_dir=$ac_dir
-    ac_install_sh="$ac_aux_dir/shtool install -c"
-    break
-  fi
-done
-if test -z "$ac_aux_dir"; then
-  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
-echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-# These three variables are undocumented and unsupported,
-# and are intended to be withdrawn in a future Autoconf release.
-# They can cause serious problems if a builder's source tree is in a directory
-# whose full name contains unusual characters.
-ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
-ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
-ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
-
-
-# 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
-# AmigaOS /C/install, which installs bootblocks on floppy discs
-# 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"
-# OS/2's system install, which has a completely different semantic
-# ./install, which can be erroneously created by make from ./install.sh.
-{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
-if test -z "$INSTALL"; then
-if test "${ac_cv_path_install+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  # Account for people who put trailing slashes in PATH elements.
-case $as_dir/ in
-  ./ | .// | /cC/* | \
-  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
-  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
-  /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
-      for ac_exec_ext in '' $ac_executable_extensions; do
-       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
-         if test $ac_prog = install &&
-           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
-           # AIX install.  It has an incompatible calling convention.
-           :
-         elif test $ac_prog = install &&
-           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
-           # program-specific install script used by HP pwplus--don't use.
-           :
-         else
-           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
-           break 3
-         fi
-       fi
-      done
-    done
-    ;;
-esac
-done
-IFS=$as_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.  Don't cache a
-    # value for INSTALL within a source directory, because that will
-    # break other packages using the cache if that directory is
-    # removed, or if the value is a relative name.
-    INSTALL=$ac_install_sh
-  fi
-fi
-{ echo "$as_me:$LINENO: result: $INSTALL" >&5
-echo "${ECHO_T}$INSTALL" >&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}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
-echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
-# Just in case
-sleep 1
-echo timestamp > conftest.file
-# Do `set' in a subshell so we don't clobber the current shell's
-# arguments.  Must try -L first in case configure is actually a
-# symlink; some systems play weird games with the mod time of symlinks
-# (eg FreeBSD returns the mod time of the symlink's containing
-# directory).
-if (
-   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
-   if test "$*" = "X"; then
-      # -L didn't work.
-      set X `ls -t $srcdir/configure conftest.file`
-   fi
-   rm -f conftest.file
-   if test "$*" != "X $srcdir/configure conftest.file" \
-      && test "$*" != "X conftest.file $srcdir/configure"; then
-
-      # If neither matched, then we have a broken ls.  This can happen
-      # if, for instance, CONFIG_SHELL is bash and it inherits a
-      # broken ls alias from the environment.  This has actually
-      # happened.  Such a system could not be considered "sane".
-      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
-alias in your environment" >&5
-echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
-alias in your environment" >&2;}
-   { (exit 1); exit 1; }; }
-   fi
-
-   test "$2" = conftest.file
-   )
-then
-   # Ok.
-   :
-else
-   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
-Check your system clock" >&5
-echo "$as_me: error: newly created file is older than distributed files!
-Check your system clock" >&2;}
-   { (exit 1); exit 1; }; }
-fi
-{ echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-test "$program_prefix" != NONE &&
-  program_transform_name="s&^&$program_prefix&;$program_transform_name"
-# Use a double $ so make ignores it.
-test "$program_suffix" != NONE &&
-  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
-# Double any \ or $.  echo might interpret backslashes.
-# By default was `s,x,x', remove it if useless.
-cat <<\_ACEOF >conftest.sed
-s/[\\$]/&&/g;s/;s,x,x,$//
-_ACEOF
-program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
-rm -f conftest.sed
-
-# expand $ac_aux_dir to an absolute path
-am_aux_dir=`cd $ac_aux_dir && pwd`
-
-test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
-# Use eval to expand $SHELL
-if eval "$MISSING --run true"; then
-  am_missing_run="$MISSING --run "
-else
-  am_missing_run=
-  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
-echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
-fi
-
-if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
-  # We used to keeping the `.' as first argument, in order to
-  # allow $(mkdir_p) to be used without argument.  As in
-  #   $(mkdir_p) $(somedir)
-  # where $(somedir) is conditionally defined.  However this is wrong
-  # for two reasons:
-  #  1. if the package is installed by a user who cannot write `.'
-  #     make install will fail,
-  #  2. the above comment should most certainly read
-  #     $(mkdir_p) $(DESTDIR)$(somedir)
-  #     so it does not work when $(somedir) is undefined and
-  #     $(DESTDIR) is not.
-  #  To support the latter case, we have to write
-  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
-  #  so the `.' trick is pointless.
-  mkdir_p='mkdir -p --'
-else
-  # On NextStep and OpenStep, the `mkdir' command does not
-  # recognize any option.  It will interpret all options as
-  # directories to create, and then abort because `.' already
-  # exists.
-  for d in ./-p ./--version;
-  do
-    test -d $d && rmdir $d
-  done
-  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
-  if test -f "$ac_aux_dir/mkinstalldirs"; then
-    mkdir_p='$(mkinstalldirs)'
-  else
-    mkdir_p='$(install_sh) -d'
-  fi
-fi
-
-for ac_prog in gawk mawk nawk awk
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_AWK+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$AWK"; then
-  ac_cv_prog_AWK="$AWK" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_AWK="$ac_prog"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
-  { echo "$as_me:$LINENO: result: $AWK" >&5
-echo "${ECHO_T}$AWK" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-  test -n "$AWK" && break
-done
-
-{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
-echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
-set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
-if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.make <<\_ACEOF
-SHELL = /bin/sh
-all:
-       @echo '@@@%%%=$(MAKE)=@@@%%%'
-_ACEOF
-# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
-case `${MAKE-make} -f conftest.make 2>/dev/null` in
-  *@@@%%%=?*=@@@%%%*)
-    eval ac_cv_prog_make_${ac_make}_set=yes;;
-  *)
-    eval ac_cv_prog_make_${ac_make}_set=no;;
-esac
-rm -f conftest.make
-fi
-if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  SET_MAKE=
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-  SET_MAKE="MAKE=${MAKE-make}"
-fi
-
-rm -rf .tst 2>/dev/null
-mkdir .tst 2>/dev/null
-if test -d .tst; then
-  am__leading_dot=.
-else
-  am__leading_dot=_
-fi
-rmdir .tst 2>/dev/null
-
-# test to see if srcdir already configured
-if test "`cd $srcdir && pwd`" != "`pwd`" &&
-   test -f $srcdir/config.status; then
-  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
-echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-# test whether we have cygpath
-if test -z "$CYGPATH_W"; then
-  if (cygpath --version) >/dev/null 2>/dev/null; then
-    CYGPATH_W='cygpath -w'
-  else
-    CYGPATH_W=echo
-  fi
-fi
-
-
-# Define the identity of the package.
- PACKAGE='thales'
- VERSION='1.1'
-
-
-cat >>confdefs.h <<_ACEOF
-#define PACKAGE "$PACKAGE"
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define VERSION "$VERSION"
-_ACEOF
-
-# Some tools Automake needs.
-
-ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
-
-
-AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
-
-
-AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
-
-
-AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
-
-
-MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
-
-install_sh=${install_sh-"$am_aux_dir/install-sh"}
-
-# Installed binaries are usually stripped using `strip' when the user
-# run `make install-strip'.  However `strip' might not be the right
-# tool to use in cross-compilation environments, therefore Automake
-# will honor the `STRIP' environment variable to overrule this program.
-if test "$cross_compiling" != no; then
-  if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
-set dummy ${ac_tool_prefix}strip; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_STRIP+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$STRIP"; then
-  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-STRIP=$ac_cv_prog_STRIP
-if test -n "$STRIP"; then
-  { echo "$as_me:$LINENO: result: $STRIP" >&5
-echo "${ECHO_T}$STRIP" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_STRIP"; then
-  ac_ct_STRIP=$STRIP
-  # Extract the first word of "strip", so it can be a program name with args.
-set dummy strip; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$ac_ct_STRIP"; then
-  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_STRIP="strip"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
-if test -n "$ac_ct_STRIP"; then
-  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
-echo "${ECHO_T}$ac_ct_STRIP" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-  if test "x$ac_ct_STRIP" = x; then
-    STRIP=":"
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet.  If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet.  If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
-    STRIP=$ac_ct_STRIP
-  fi
-else
-  STRIP="$ac_cv_prog_STRIP"
-fi
-
-fi
-INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
-
-# We need awk for the "check" target.  The system "awk" is bad on
-# some platforms.
-# Always define AMTAR for backward compatibility.
-
-AMTAR=${AMTAR-"${am_missing_run}tar"}
-
-am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
-
-
-
-
-
-for ac_prog in gawk mawk nawk awk
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_AWK+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$AWK"; then
-  ac_cv_prog_AWK="$AWK" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_AWK="$ac_prog"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-AWK=$ac_cv_prog_AWK
-if test -n "$AWK"; then
-  { echo "$as_me:$LINENO: result: $AWK" >&5
-echo "${ECHO_T}$AWK" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-  test -n "$AWK" && break
-done
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-if test -n "$ac_tool_prefix"; then
-  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}gcc; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_CC="${ac_tool_prefix}gcc"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-fi
-if test -z "$ac_cv_prog_CC"; then
-  ac_ct_CC=$CC
-  # Extract the first word of "gcc", so it can be a program name with args.
-set dummy gcc; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$ac_ct_CC"; then
-  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_CC="gcc"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
-  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-echo "${ECHO_T}$ac_ct_CC" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-  if test "x$ac_ct_CC" = x; then
-    CC=""
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet.  If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet.  If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
-    CC=$ac_ct_CC
-  fi
-else
-  CC="$ac_cv_prog_CC"
-fi
-
-if test -z "$CC"; then
-          if test -n "$ac_tool_prefix"; then
-    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
-set dummy ${ac_tool_prefix}cc; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_CC="${ac_tool_prefix}cc"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-  fi
-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 "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-  ac_prog_rejected=no
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
-       ac_prog_rejected=yes
-       continue
-     fi
-    ac_cv_prog_CC="cc"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_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 $# != 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
-    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
-  fi
-fi
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-fi
-if test -z "$CC"; then
-  if test -n "$ac_tool_prefix"; then
-  for ac_prog in cl.exe
-  do
-    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
-set dummy $ac_tool_prefix$ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_CC+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$CC"; then
-  ac_cv_prog_CC="$CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-CC=$ac_cv_prog_CC
-if test -n "$CC"; then
-  { echo "$as_me:$LINENO: result: $CC" >&5
-echo "${ECHO_T}$CC" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-    test -n "$CC" && break
-  done
-fi
-if test -z "$CC"; then
-  ac_ct_CC=$CC
-  for ac_prog in cl.exe
-do
-  # Extract the first word of "$ac_prog", so it can be a program name with args.
-set dummy $ac_prog; ac_word=$2
-{ echo "$as_me:$LINENO: checking for $ac_word" >&5
-echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
-if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -n "$ac_ct_CC"; then
-  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
-else
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_exec_ext in '' $ac_executable_extensions; do
-  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
-    ac_cv_prog_ac_ct_CC="$ac_prog"
-    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
-    break 2
-  fi
-done
-done
-IFS=$as_save_IFS
-
-fi
-fi
-ac_ct_CC=$ac_cv_prog_ac_ct_CC
-if test -n "$ac_ct_CC"; then
-  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
-echo "${ECHO_T}$ac_ct_CC" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-
-  test -n "$ac_ct_CC" && break
-done
-
-  if test "x$ac_ct_CC" = x; then
-    CC=""
-  else
-    case $cross_compiling:$ac_tool_warned in
-yes:)
-{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet.  If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&5
-echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
-whose name does not start with the host triplet.  If you think this
-configuration is useful to you, please write to autoconf@gnu.org." >&2;}
-ac_tool_warned=yes ;;
-esac
-    CC=$ac_ct_CC
-  fi
-fi
-
-fi
-
-
-test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
-See \`config.log' for more details." >&5
-echo "$as_me: error: no acceptable C compiler found in \$PATH
-See \`config.log' for more details." >&2;}
-   { (exit 1); exit 1; }; }
-
-# Provide some information about the compiler.
-echo "$as_me:$LINENO: checking for C compiler version" >&5
-ac_compiler=`set X $ac_compile; echo $2`
-{ (ac_try="$ac_compiler --version >&5"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compiler --version >&5") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-{ (ac_try="$ac_compiler -v >&5"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compiler -v >&5") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-{ (ac_try="$ac_compiler -V >&5"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compiler -V >&5") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }
-
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files a.out a.exe b.out"
-# Try to create an executable without -o first, disregard a.out.
-# It will help us diagnose broken compilers, and finding out an intuition
-# of exeext.
-{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
-echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
-ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
-#
-# List of possible output files, starting from the most likely.
-# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
-# only as a last resort.  b.out is created by i960 compilers.
-ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
-#
-# The IRIX 6 linker writes into existing files which may not be
-# executable, retaining their permissions.  Remove them first so a
-# subsequent execution test works.
-ac_rmfiles=
-for ac_file in $ac_files
-do
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
-    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
-  esac
-done
-rm -f $ac_rmfiles
-
-if { (ac_try="$ac_link_default"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link_default") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; then
-  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
-# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
-# in a Makefile.  We should not override ac_cv_exeext if it was cached,
-# so that the user can short-circuit this test for compilers unknown to
-# Autoconf.
-for ac_file in $ac_files ''
-do
-  test -f "$ac_file" || continue
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
-       ;;
-    [ab].out )
-       # We found the default executable, but exeext='' is most
-       # certainly right.
-       break;;
-    *.* )
-        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
-       then :; else
-          ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
-       fi
-       # We set ac_cv_exeext here because the later test for it is not
-       # safe: cross compilers may not add the suffix if given an `-o'
-       # argument, so we may need to know it at that point already.
-       # Even if this section looks crufty: it has the advantage of
-       # actually working.
-       break;;
-    * )
-       break;;
-  esac
-done
-test "$ac_cv_exeext" = no && ac_cv_exeext=
-
-else
-  ac_file=''
-fi
-
-{ echo "$as_me:$LINENO: result: $ac_file" >&5
-echo "${ECHO_T}$ac_file" >&6; }
-if test -z "$ac_file"; then
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
-See \`config.log' for more details." >&5
-echo "$as_me: error: C compiler cannot create executables
-See \`config.log' for more details." >&2;}
-   { (exit 77); exit 77; }; }
-fi
-
-ac_exeext=$ac_cv_exeext
-
-# Check that the compiler produces executables we can run.  If not, either
-# the compiler is broken, or we cross compile.
-{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
-echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
-# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
-# If not cross compiling, check that we can run a simple program.
-if test "$cross_compiling" != yes; then
-  if { ac_try='./$ac_file'
-  { (case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-    cross_compiling=no
-  else
-    if test "$cross_compiling" = maybe; then
-       cross_compiling=yes
-    else
-       { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot run C compiled programs.
-If you meant to cross compile, use \`--host'.
-See \`config.log' for more details." >&2;}
-   { (exit 1); exit 1; }; }
-    fi
-  fi
-fi
-{ echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-
-rm -f a.out a.exe conftest$ac_cv_exeext b.out
-ac_clean_files=$ac_clean_files_save
-# Check that the compiler produces executables we can run.  If not, either
-# the compiler is broken, or we cross compile.
-{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
-echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
-{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
-echo "${ECHO_T}$cross_compiling" >&6; }
-
-{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
-echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; then
-  # If both `conftest.exe' and `conftest' are `present' (well, observable)
-# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
-# work properly (i.e., refer to `conftest.exe'), while it won't with
-# `rm'.
-for ac_file in conftest.exe conftest conftest.*; do
-  test -f "$ac_file" || continue
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
-    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
-         break;;
-    * ) break;;
-  esac
-done
-else
-  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
-See \`config.log' for more details." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-rm -f conftest$ac_cv_exeext
-{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
-echo "${ECHO_T}$ac_cv_exeext" >&6; }
-
-rm -f conftest.$ac_ext
-EXEEXT=$ac_cv_exeext
-ac_exeext=$EXEEXT
-{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
-echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
-if test "${ac_cv_objext+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.o conftest.obj
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; then
-  for ac_file in conftest.o conftest.obj conftest.*; do
-  test -f "$ac_file" || continue;
-  case $ac_file in
-    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
-    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
-       break;;
-  esac
-done
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
-See \`config.log' for more details." >&5
-echo "$as_me: error: cannot compute suffix of object files: cannot compile
-See \`config.log' for more details." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-rm -f conftest.$ac_cv_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
-echo "${ECHO_T}$ac_cv_objext" >&6; }
-OBJEXT=$ac_cv_objext
-ac_objext=$OBJEXT
-{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
-echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
-if test "${ac_cv_c_compiler_gnu+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-#ifndef __GNUC__
-       choke me
-#endif
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_compiler_gnu=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_compiler_gnu=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-ac_cv_c_compiler_gnu=$ac_compiler_gnu
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
-echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
-GCC=`test $ac_compiler_gnu = yes && echo yes`
-ac_test_CFLAGS=${CFLAGS+set}
-ac_save_CFLAGS=$CFLAGS
-{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
-echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
-if test "${ac_cv_prog_cc_g+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_c_werror_flag=$ac_c_werror_flag
-   ac_c_werror_flag=yes
-   ac_cv_prog_cc_g=no
-   CFLAGS="-g"
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_prog_cc_g=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       CFLAGS=""
-      cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  :
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_c_werror_flag=$ac_save_c_werror_flag
-        CFLAGS="-g"
-        cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_prog_cc_g=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-   ac_c_werror_flag=$ac_save_c_werror_flag
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
-echo "${ECHO_T}$ac_cv_prog_cc_g" >&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 "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
-echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
-if test "${ac_cv_prog_cc_c89+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_prog_cc_c89=no
-ac_save_CC=$CC
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <stdarg.h>
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
-struct buf { int x; };
-FILE * (*rcsopen) (struct buf *, struct stat *, int);
-static char *e (p, i)
-     char **p;
-     int i;
-{
-  return p[i];
-}
-static char *f (char * (*g) (char **, int), char **p, ...)
-{
-  char *s;
-  va_list v;
-  va_start (v,p);
-  s = g (p, va_arg (v,int));
-  va_end (v);
-  return s;
-}
-
-/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
-   function prototypes and stuff, but not '\xHH' hex character constants.
-   These don't provoke an error unfortunately, instead are silently treated
-   as 'x'.  The following induces an error, until -std is added to get
-   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
-   array size at least.  It's necessary to write '\x00'==0 to get something
-   that's true only with -std.  */
-int osf4_cc_array ['\x00' == 0 ? 1 : -1];
-
-/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
-   inside strings and character constants.  */
-#define FOO(x) 'x'
-int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
-
-int test (int i, double x);
-struct s1 {int (*f) (int a);};
-struct s2 {int (*f) (double a);};
-int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
-int argc;
-char **argv;
-int
-main ()
-{
-return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
-  ;
-  return 0;
-}
-_ACEOF
-for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
-       -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
-do
-  CC="$ac_save_CC $ac_arg"
-  rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_prog_cc_c89=$ac_arg
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext
-  test "x$ac_cv_prog_cc_c89" != "xno" && break
-done
-rm -f conftest.$ac_ext
-CC=$ac_save_CC
-
-fi
-# AC_CACHE_VAL
-case "x$ac_cv_prog_cc_c89" in
-  x)
-    { echo "$as_me:$LINENO: result: none needed" >&5
-echo "${ECHO_T}none needed" >&6; } ;;
-  xno)
-    { echo "$as_me:$LINENO: result: unsupported" >&5
-echo "${ECHO_T}unsupported" >&6; } ;;
-  *)
-    CC="$CC $ac_cv_prog_cc_c89"
-    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
-echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
-esac
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-DEPDIR="${am__leading_dot}deps"
-
-ac_config_commands="$ac_config_commands depfiles"
-
-
-am_make=${MAKE-make}
-cat > confinc << 'END'
-am__doit:
-       @echo done
-.PHONY: am__doit
-END
-# If we don't find an include directive, just comment out the code.
-{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
-echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
-am__include="#"
-am__quote=
-_am_result=none
-# First try GNU make style include.
-echo "include confinc" > confmf
-# We grep out `Entering directory' and `Leaving directory'
-# messages which can occur if `w' ends up in MAKEFLAGS.
-# In particular we don't look at `^make:' because GNU make might
-# be invoked under some other name (usually "gmake"), in which
-# case it prints its new name instead of `make'.
-if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
-   am__include=include
-   am__quote=
-   _am_result=GNU
-fi
-# Now try BSD make style include.
-if test "$am__include" = "#"; then
-   echo '.include "confinc"' > confmf
-   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
-      am__include=.include
-      am__quote="\""
-      _am_result=BSD
-   fi
-fi
-
-
-{ echo "$as_me:$LINENO: result: $_am_result" >&5
-echo "${ECHO_T}$_am_result" >&6; }
-rm -f confinc confmf
-
-# Check whether --enable-dependency-tracking was given.
-if test "${enable_dependency_tracking+set}" = set; then
-  enableval=$enable_dependency_tracking;
-fi
-
-if test "x$enable_dependency_tracking" != xno; then
-  am_depcomp="$ac_aux_dir/depcomp"
-  AMDEPBACKSLASH='\'
-fi
-
-
-if test "x$enable_dependency_tracking" != xno; then
-  AMDEP_TRUE=
-  AMDEP_FALSE='#'
-else
-  AMDEP_TRUE='#'
-  AMDEP_FALSE=
-fi
-
-
-
-
-depcc="$CC"   am_compiler_list=
-
-{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
-echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
-if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
-  # We make a subdir and do the tests there.  Otherwise we can end up
-  # making bogus files that we don't know about and never remove.  For
-  # instance it was reported that on HP-UX the gcc test will end up
-  # making a dummy file named `D' -- because `-MD' means `put the output
-  # in D'.
-  mkdir conftest.dir
-  # Copy depcomp to subdir because otherwise we won't find it if we're
-  # using a relative directory.
-  cp "$am_depcomp" conftest.dir
-  cd conftest.dir
-  # We will build objects and dependencies in a subdirectory because
-  # it helps to detect inapplicable dependency modes.  For instance
-  # both Tru64's cc and ICC support -MD to output dependencies as a
-  # side effect of compilation, but ICC will put the dependencies in
-  # the current directory while Tru64 will put them in the object
-  # directory.
-  mkdir sub
-
-  am_cv_CC_dependencies_compiler_type=none
-  if test "$am_compiler_list" = ""; then
-     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
-  fi
-  for depmode in $am_compiler_list; do
-    # Setup a source with many dependencies, because some compilers
-    # like to wrap large dependency lists on column 80 (with \), and
-    # we should not choose a depcomp mode which is confused by this.
-    #
-    # We need to recreate these files for each test, as the compiler may
-    # overwrite some of them when testing with obscure command lines.
-    # This happens at least with the AIX C compiler.
-    : > sub/conftest.c
-    for i in 1 2 3 4 5 6; do
-      echo '#include "conftst'$i'.h"' >> sub/conftest.c
-      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
-      # Solaris 8's {/usr,}/bin/sh.
-      touch sub/conftst$i.h
-    done
-    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
-
-    case $depmode in
-    nosideeffect)
-      # after this tag, mechanisms are not by side-effect, so they'll
-      # only be used when explicitly requested
-      if test "x$enable_dependency_tracking" = xyes; then
-       continue
-      else
-       break
-      fi
-      ;;
-    none) break ;;
-    esac
-    # We check with `-c' and `-o' for the sake of the "dashmstdout"
-    # mode.  It turns out that the SunPro C++ compiler does not properly
-    # handle `-M -o', and we need to detect this.
-    if depmode=$depmode \
-       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
-       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
-       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
-         >/dev/null 2>conftest.err &&
-       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
-       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
-       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
-      # icc doesn't choke on unknown options, it will just issue warnings
-      # or remarks (even with -Werror).  So we grep stderr for any message
-      # that says an option was ignored or not supported.
-      # When given -MP, icc 7.0 and 7.1 complain thusly:
-      #   icc: Command line warning: ignoring option '-M'; no argument required
-      # The diagnosis changed in icc 8.0:
-      #   icc: Command line remark: option '-MP' not supported
-      if (grep 'ignoring option' conftest.err ||
-          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
-        am_cv_CC_dependencies_compiler_type=$depmode
-        break
-      fi
-    fi
-  done
-
-  cd ..
-  rm -rf conftest.dir
-else
-  am_cv_CC_dependencies_compiler_type=none
-fi
-
-fi
-{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
-echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
-CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
-
-
-
-if
-  test "x$enable_dependency_tracking" != xno \
-  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
-  am__fastdepCC_TRUE=
-  am__fastdepCC_FALSE='#'
-else
-  am__fastdepCC_TRUE='#'
-  am__fastdepCC_FALSE=
-fi
-
-
-# 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
-# AmigaOS /C/install, which installs bootblocks on floppy discs
-# 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"
-# OS/2's system install, which has a completely different semantic
-# ./install, which can be erroneously created by make from ./install.sh.
-{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
-echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
-if test -z "$INSTALL"; then
-if test "${ac_cv_path_install+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  # Account for people who put trailing slashes in PATH elements.
-case $as_dir/ in
-  ./ | .// | /cC/* | \
-  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
-  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
-  /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
-      for ac_exec_ext in '' $ac_executable_extensions; do
-       if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
-         if test $ac_prog = install &&
-           grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
-           # AIX install.  It has an incompatible calling convention.
-           :
-         elif test $ac_prog = install &&
-           grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
-           # program-specific install script used by HP pwplus--don't use.
-           :
-         else
-           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
-           break 3
-         fi
-       fi
-      done
-    done
-    ;;
-esac
-done
-IFS=$as_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.  Don't cache a
-    # value for INSTALL within a source directory, because that will
-    # break other packages using the cache if that directory is
-    # removed, or if the value is a relative name.
-    INSTALL=$ac_install_sh
-  fi
-fi
-{ echo "$as_me:$LINENO: result: $INSTALL" >&5
-echo "${ECHO_T}$INSTALL" >&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}'
-
-test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
-
-{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
-echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
-LN_S=$as_ln_s
-if test "$LN_S" = "ln -s"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-else
-  { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
-echo "${ECHO_T}no, using $LN_S" >&6; }
-fi
-
-
-
-{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
-echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
-if test "${ac_cv_lib_socket_connect+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lsocket  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char connect ();
-int
-main ()
-{
-return connect ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_lib_socket_connect=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_lib_socket_connect=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
-echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
-if test $ac_cv_lib_socket_connect = yes; then
-  gethostbyname
-fi
-
-
-{ echo "$as_me:$LINENO: checking for compress in -lz" >&5
-echo $ECHO_N "checking for compress in -lz... $ECHO_C" >&6; }
-if test "${ac_cv_lib_z_compress+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lz  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char compress ();
-int
-main ()
-{
-return compress ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_lib_z_compress=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_lib_z_compress=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
-echo "${ECHO_T}$ac_cv_lib_z_compress" >&6; }
-if test $ac_cv_lib_z_compress = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBZ 1
-_ACEOF
-
-  LIBS="-lz $LIBS"
-
-fi
-
-
-{ echo "$as_me:$LINENO: checking for floor in -lm" >&5
-echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6; }
-if test "${ac_cv_lib_m_floor+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lm  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char floor ();
-int
-main ()
-{
-return floor ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_lib_m_floor=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_lib_m_floor=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
-echo "${ECHO_T}$ac_cv_lib_m_floor" >&6; }
-if test $ac_cv_lib_m_floor = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define HAVE_LIBM 1
-_ACEOF
-
-  LIBS="-lm $LIBS"
-
-fi
-
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
-echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
-# On Suns, sometimes $CPP names a directory.
-if test -n "$CPP" && test -d "$CPP"; then
-  CPP=
-fi
-if test -z "$CPP"; then
-  if test "${ac_cv_prog_CPP+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-      # Double quotes because CPP needs to be expanded
-    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
-    do
-      ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
-  # Use a header file that comes with gcc, so configuring glibc
-  # with a fresh cross-compiler works.
-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-  # <limits.h> exists even on freestanding compilers.
-  # On the NeXT, cc -E runs the code through the compiler's parser,
-  # not just through cpp. "Syntax error" is here to catch this case.
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-                    Syntax error
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  :
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  # Broken: fails on valid input.
-continue
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-  # OK, works on sane cases.  Now check whether nonexistent headers
-  # can be detected and how.
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  # Broken: success on invalid input.
-continue
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then
-  break
-fi
-
-    done
-    ac_cv_prog_CPP=$CPP
-
-fi
-  CPP=$ac_cv_prog_CPP
-else
-  ac_cv_prog_CPP=$CPP
-fi
-{ echo "$as_me:$LINENO: result: $CPP" >&5
-echo "${ECHO_T}$CPP" >&6; }
-ac_preproc_ok=false
-for ac_c_preproc_warn_flag in '' yes
-do
-  # Use a header file that comes with gcc, so configuring glibc
-  # with a fresh cross-compiler works.
-  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-  # <limits.h> exists even on freestanding compilers.
-  # On the NeXT, cc -E runs the code through the compiler's parser,
-  # not just through cpp. "Syntax error" is here to catch this case.
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-                    Syntax error
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  :
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  # Broken: fails on valid input.
-continue
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-  # OK, works on sane cases.  Now check whether nonexistent headers
-  # can be detected and how.
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <ac_nonexistent.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  # Broken: success on invalid input.
-continue
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  # Passes both tests.
-ac_preproc_ok=:
-break
-fi
-
-rm -f conftest.err conftest.$ac_ext
-
-done
-# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
-rm -f conftest.err conftest.$ac_ext
-if $ac_preproc_ok; then
-  :
-else
-  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." >&5
-echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
-See \`config.log' for more details." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-ac_ext=c
-ac_cpp='$CPP $CPPFLAGS'
-ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
-ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
-ac_compiler_gnu=$ac_cv_c_compiler_gnu
-
-
-{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
-echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
-if test "${ac_cv_path_GREP+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  # Extract the first word of "grep ggrep" to use in msg output
-if test -z "$GREP"; then
-set dummy grep ggrep; ac_prog_name=$2
-if test "${ac_cv_path_GREP+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_path_GREP_found=false
-# Loop through the user's path and test for each of PROGNAME-LIST
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_prog in grep ggrep; do
-  for ac_exec_ext in '' $ac_executable_extensions; do
-    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
-    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
-    # Check for GNU ac_path_GREP and select it if it is found.
-  # Check for GNU $ac_path_GREP
-case `"$ac_path_GREP" --version 2>&1` in
-*GNU*)
-  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
-*)
-  ac_count=0
-  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    echo 'GREP' >> "conftest.nl"
-    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    ac_count=`expr $ac_count + 1`
-    if test $ac_count -gt ${ac_path_GREP_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_GREP="$ac_path_GREP"
-      ac_path_GREP_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-
-    $ac_path_GREP_found && break 3
-  done
-done
-
-done
-IFS=$as_save_IFS
-
-
-fi
-
-GREP="$ac_cv_path_GREP"
-if test -z "$GREP"; then
-  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-else
-  ac_cv_path_GREP=$GREP
-fi
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
-echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
- GREP="$ac_cv_path_GREP"
-
-
-{ echo "$as_me:$LINENO: checking for egrep" >&5
-echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
-if test "${ac_cv_path_EGREP+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
-   then ac_cv_path_EGREP="$GREP -E"
-   else
-     # Extract the first word of "egrep" to use in msg output
-if test -z "$EGREP"; then
-set dummy egrep; ac_prog_name=$2
-if test "${ac_cv_path_EGREP+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_path_EGREP_found=false
-# Loop through the user's path and test for each of PROGNAME-LIST
-as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  for ac_prog in egrep; do
-  for ac_exec_ext in '' $ac_executable_extensions; do
-    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
-    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
-    # Check for GNU ac_path_EGREP and select it if it is found.
-  # Check for GNU $ac_path_EGREP
-case `"$ac_path_EGREP" --version 2>&1` in
-*GNU*)
-  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
-*)
-  ac_count=0
-  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
-  while :
-  do
-    cat "conftest.in" "conftest.in" >"conftest.tmp"
-    mv "conftest.tmp" "conftest.in"
-    cp "conftest.in" "conftest.nl"
-    echo 'EGREP' >> "conftest.nl"
-    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
-    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
-    ac_count=`expr $ac_count + 1`
-    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
-      # Best one so far, save it but keep looking for a better one
-      ac_cv_path_EGREP="$ac_path_EGREP"
-      ac_path_EGREP_max=$ac_count
-    fi
-    # 10*(2^10) chars as input seems more than enough
-    test $ac_count -gt 10 && break
-  done
-  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
-esac
-
-
-    $ac_path_EGREP_found && break 3
-  done
-done
-
-done
-IFS=$as_save_IFS
-
-
-fi
-
-EGREP="$ac_cv_path_EGREP"
-if test -z "$EGREP"; then
-  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
-echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-else
-  ac_cv_path_EGREP=$EGREP
-fi
-
-
-   fi
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
-echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
- EGREP="$ac_cv_path_EGREP"
-
-
-{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
-echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
-if test "${ac_cv_header_stdc+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <stdlib.h>
-#include <stdarg.h>
-#include <string.h>
-#include <float.h>
-
-int
-main ()
-{
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_header_stdc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_header_stdc=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-
-if test $ac_cv_header_stdc = yes; then
-  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <string.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "memchr" >/dev/null 2>&1; then
-  :
-else
-  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 <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <stdlib.h>
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "free" >/dev/null 2>&1; then
-  :
-else
-  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 <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <ctype.h>
-#include <stdlib.h>
-#if ((' ' & 0x0FF) == 0x020)
-# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
-# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
-#else
-# define ISLOWER(c) \
-                  (('a' <= (c) && (c) <= 'i') \
-                    || ('j' <= (c) && (c) <= 'r') \
-                    || ('s' <= (c) && (c) <= 'z'))
-# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
-#endif
-
-#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))
-      return 2;
-  return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-  { (case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  :
-else
-  echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_header_stdc=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
-echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
-if test $ac_cv_header_stdc = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define STDC_HEADERS 1
-_ACEOF
-
-fi
-
-# On IRIX 5.3, sys/types and inttypes.h are conflicting.
-
-
-
-
-
-
-
-
-
-for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
-                 inttypes.h stdint.h unistd.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  eval "$as_ac_Header=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "$as_ac_Header=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-
-
-
-
-
-
-for ac_header in limits.h sys/time.h unistd.h netdb.h netinet/in.h sys/socket.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
-echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
-if test "${ac_cv_c_const+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-int
-main ()
-{
-/* FIXME: Include the comments suggested by Paul. */
-#ifndef __cplusplus
-  /* Ultrix mips cc rejects this.  */
-  typedef int charset[2];
-  const charset cs;
-  /* SunOS 4.1.1 cc rejects this.  */
-  char const *const *pcpcc;
-  char **ppc;
-  /* 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";
-  pcpcc = &g + (g ? g-g : 0);
-  /* HPUX 7.0 cc rejects these. */
-  ++pcpcc;
-  ppc = (char**) pcpcc;
-  pcpcc = (char const *const *) ppc;
-  { /* SCO 3.2v4 cc rejects this.  */
-    char *t;
-    char const *s = 0 ? (char *) 0 : (char const *) 0;
-
-    *t++ = 0;
-    if (s) return 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;
-    if (!foo) return 0;
-  }
-  return !cs[0] && !zero.x;
-#endif
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_c_const=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_c_const=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
-echo "${ECHO_T}$ac_cv_c_const" >&6; }
-if test $ac_cv_c_const = no; then
-
-cat >>confdefs.h <<\_ACEOF
-#define const
-_ACEOF
-
-fi
-
-{ echo "$as_me:$LINENO: checking for size_t" >&5
-echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_size_t+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-typedef size_t ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
-  return 0;
-if (sizeof (ac__type_new_))
-  return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_type_size_t=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_type_size_t=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
-echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
-if test $ac_cv_type_size_t = yes; then
-  :
-else
-
-cat >>confdefs.h <<_ACEOF
-#define size_t unsigned int
-_ACEOF
-
-fi
-
-{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
-echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
-if test "${ac_cv_header_time+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <sys/time.h>
-#include <time.h>
-
-int
-main ()
-{
-if ((struct tm *) 0)
-return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_header_time=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_header_time=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
-echo "${ECHO_T}$ac_cv_header_time" >&6; }
-if test $ac_cv_header_time = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define TIME_WITH_SYS_TIME 1
-_ACEOF
-
-fi
-
-{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
-echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
-if test "${ac_cv_struct_tm+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <sys/types.h>
-#include <time.h>
-
-int
-main ()
-{
-struct tm tm;
-                                    int *p = &tm.tm_sec;
-                                    return !p;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_struct_tm=time.h
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_struct_tm=sys/time.h
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
-echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
-if test $ac_cv_struct_tm = sys/time.h; then
-
-cat >>confdefs.h <<\_ACEOF
-#define TM_IN_SYS_TIME 1
-_ACEOF
-
-fi
-
-
-
-for ac_func in strftime
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $ac_func (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef $ac_func
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char $ac_func ();
-/* 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
-#endif
-
-int
-main ()
-{
-return $ac_func ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "$as_ac_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "$as_ac_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_var'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_var'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-else
-  # strftime is in -lintl on SCO UNIX.
-{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
-echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
-if test "${ac_cv_lib_intl_strftime+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lintl  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char strftime ();
-int
-main ()
-{
-return strftime ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_lib_intl_strftime=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_lib_intl_strftime=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
-echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
-if test $ac_cv_lib_intl_strftime = yes; then
-  cat >>confdefs.h <<\_ACEOF
-#define HAVE_STRFTIME 1
-_ACEOF
-
-LIBS="-lintl $LIBS"
-fi
-
-fi
-done
-
-
-for ac_func in vprintf
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $ac_func (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef $ac_func
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char $ac_func ();
-/* 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
-#endif
-
-int
-main ()
-{
-return $ac_func ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "$as_ac_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "$as_ac_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_var'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_var'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-{ echo "$as_me:$LINENO: checking for _doprnt" >&5
-echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
-if test "${ac_cv_func__doprnt+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define _doprnt innocuous__doprnt
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char _doprnt (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef _doprnt
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char _doprnt ();
-/* 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__doprnt || defined __stub____doprnt
-choke me
-#endif
-
-int
-main ()
-{
-return _doprnt ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_func__doprnt=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_func__doprnt=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
-echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
-if test $ac_cv_func__doprnt = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_DOPRNT 1
-_ACEOF
-
-fi
-
-fi
-done
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-for ac_func in gettimeofday select socket strcspn strdup strerror strspn strtol gethostbyname memmove memset strcasecmp strchr strpbrk strtoul
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $ac_func (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef $ac_func
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char $ac_func ();
-/* 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
-#endif
-
-int
-main ()
-{
-return $ac_func ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "$as_ac_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "$as_ac_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_var'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_var'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-{ echo "$as_me:$LINENO: checking for error_at_line" >&5
-echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
-if test "${ac_cv_lib_error_at_line+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <error.h>
-int
-main ()
-{
-error_at_line (0, 0, "", 0, "an error occurred");
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_lib_error_at_line=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_lib_error_at_line=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
-echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
-if test $ac_cv_lib_error_at_line = no; then
-  case " $LIBOBJS " in
-  *" error.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS error.$ac_objext"
- ;;
-esac
-
-fi
-
-{ echo "$as_me:$LINENO: checking for pid_t" >&5
-echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
-if test "${ac_cv_type_pid_t+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-typedef pid_t ac__type_new_;
-int
-main ()
-{
-if ((ac__type_new_ *) 0)
-  return 0;
-if (sizeof (ac__type_new_))
-  return 0;
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_type_pid_t=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_type_pid_t=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
-echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
-if test $ac_cv_type_pid_t = yes; then
-  :
-else
-
-cat >>confdefs.h <<_ACEOF
-#define pid_t int
-_ACEOF
-
-fi
-
-
-for ac_header in vfork.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-
-
-for ac_func in fork vfork
-do
-as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
-{ echo "$as_me:$LINENO: checking for $ac_func" >&5
-echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
-if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
-   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
-#define $ac_func innocuous_$ac_func
-
-/* System header to define __stub macros and hopefully few prototypes,
-    which can conflict with char $ac_func (); below.
-    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
-    <limits.h> exists even on freestanding compilers.  */
-
-#ifdef __STDC__
-# include <limits.h>
-#else
-# include <assert.h>
-#endif
-
-#undef $ac_func
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char $ac_func ();
-/* 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
-#endif
-
-int
-main ()
-{
-return $ac_func ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "$as_ac_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "$as_ac_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-fi
-ac_res=`eval echo '${'$as_ac_var'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-if test `eval echo '${'$as_ac_var'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-done
-
-if test "x$ac_cv_func_fork" = xyes; then
-  { echo "$as_me:$LINENO: checking for working fork" >&5
-echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
-if test "${ac_cv_func_fork_works+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test "$cross_compiling" = yes; then
-  ac_cv_func_fork_works=cross
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-int
-main ()
-{
-
-         /* By Ruediger Kuhlmann. */
-         return fork () < 0;
-
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-  { (case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_func_fork_works=yes
-else
-  echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_func_fork_works=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
-echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
-
-else
-  ac_cv_func_fork_works=$ac_cv_func_fork
-fi
-if test "x$ac_cv_func_fork_works" = xcross; then
-  case $host in
-    *-*-amigaos* | *-*-msdosdjgpp*)
-      # Override, as these systems have only a dummy fork() stub
-      ac_cv_func_fork_works=no
-      ;;
-    *)
-      ac_cv_func_fork_works=yes
-      ;;
-  esac
-  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
-echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
-fi
-ac_cv_func_vfork_works=$ac_cv_func_vfork
-if test "x$ac_cv_func_vfork" = xyes; then
-  { echo "$as_me:$LINENO: checking for working vfork" >&5
-echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
-if test "${ac_cv_func_vfork_works+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test "$cross_compiling" = yes; then
-  ac_cv_func_vfork_works=cross
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* Thanks to Paul Eggert for this test.  */
-$ac_includes_default
-#include <sys/wait.h>
-#ifdef HAVE_VFORK_H
-# include <vfork.h>
-#endif
-/* On some sparc systems, changes by the child to local and incoming
-   argument registers are propagated back to the parent.  The compiler
-   is told about this with #include <vfork.h>, but some compilers
-   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
-   static variable whose address is put into a register that is
-   clobbered by the vfork.  */
-static void
-#ifdef __cplusplus
-sparc_address_test (int arg)
-# else
-sparc_address_test (arg) int arg;
-#endif
-{
-  static pid_t child;
-  if (!child) {
-    child = vfork ();
-    if (child < 0) {
-      perror ("vfork");
-      _exit(2);
-    }
-    if (!child) {
-      arg = getpid();
-      write(-1, "", 0);
-      _exit (arg);
-    }
-  }
-}
-
-int
-main ()
-{
-  pid_t parent = getpid ();
-  pid_t child;
-
-  sparc_address_test (0);
-
-  child = vfork ();
-
-  if (child == 0) {
-    /* Here is another test for sparc vfork register problems.  This
-       test uses lots of local variables, at least as many local
-       variables as main has allocated so far including compiler
-       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
-       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
-       reuse the register of parent for one of the local variables,
-       since it will think that parent can't possibly be used any more
-       in this routine.  Assigning to the local variable will thus
-       munge parent in the parent process.  */
-    pid_t
-      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
-      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
-    /* Convince the compiler that p..p7 are live; otherwise, it might
-       use the same hardware register for all 8 local variables.  */
-    if (p != p1 || p != p2 || p != p3 || p != p4
-       || p != p5 || p != p6 || p != p7)
-      _exit(1);
-
-    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
-       from child file descriptors.  If the child closes a descriptor
-       before it execs or exits, this munges the parent's descriptor
-       as well.  Test for this by closing stdout in the child.  */
-    _exit(close(fileno(stdout)) != 0);
-  } else {
-    int status;
-    struct stat st;
-
-    while (wait(&status) != child)
-      ;
-    return (
-        /* Was there some problem with vforking?  */
-        child < 0
-
-        /* Did the child fail?  (This shouldn't happen.)  */
-        || status
-
-        /* Did the vfork/compiler bug occur?  */
-        || parent != getpid()
-
-        /* Did the file descriptor bug occur?  */
-        || fstat(fileno(stdout), &st) != 0
-        );
-  }
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-  { (case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_func_vfork_works=yes
-else
-  echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_func_vfork_works=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
-echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
-
-fi;
-if test "x$ac_cv_func_fork_works" = xcross; then
-  ac_cv_func_vfork_works=$ac_cv_func_vfork
-  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
-echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
-fi
-
-if test "x$ac_cv_func_vfork_works" = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_WORKING_VFORK 1
-_ACEOF
-
-else
-
-cat >>confdefs.h <<\_ACEOF
-#define vfork fork
-_ACEOF
-
-fi
-if test "x$ac_cv_func_fork_works" = xyes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_WORKING_FORK 1
-_ACEOF
-
-fi
-
-
-for ac_header in stdlib.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
-echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
-if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test "$cross_compiling" = yes; then
-  ac_cv_func_malloc_0_nonnull=no
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#if defined STDC_HEADERS || defined HAVE_STDLIB_H
-# include <stdlib.h>
-#else
-char *malloc ();
-#endif
-
-int
-main ()
-{
-return ! malloc (0);
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-  { (case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_func_malloc_0_nonnull=yes
-else
-  echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_func_malloc_0_nonnull=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
-echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
-if test $ac_cv_func_malloc_0_nonnull = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_MALLOC 1
-_ACEOF
-
-else
-  cat >>confdefs.h <<\_ACEOF
-#define HAVE_MALLOC 0
-_ACEOF
-
-   case " $LIBOBJS " in
-  *" malloc.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
- ;;
-esac
-
-
-cat >>confdefs.h <<\_ACEOF
-#define malloc rpl_malloc
-_ACEOF
-
-fi
-
-
-
-
-for ac_header in stdlib.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
-echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
-if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  if test "$cross_compiling" = yes; then
-  ac_cv_func_realloc_0_nonnull=no
-else
-  cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#if defined STDC_HEADERS || defined HAVE_STDLIB_H
-# include <stdlib.h>
-#else
-char *realloc ();
-#endif
-
-int
-main ()
-{
-return ! realloc (0, 0);
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
-  { (case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_try") 2>&5
-  ac_status=$?
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); }; }; then
-  ac_cv_func_realloc_0_nonnull=yes
-else
-  echo "$as_me: program exited with status $ac_status" >&5
-echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-( exit $ac_status )
-ac_cv_func_realloc_0_nonnull=no
-fi
-rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
-fi
-
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
-echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
-if test $ac_cv_func_realloc_0_nonnull = yes; then
-
-cat >>confdefs.h <<\_ACEOF
-#define HAVE_REALLOC 1
-_ACEOF
-
-else
-  cat >>confdefs.h <<\_ACEOF
-#define HAVE_REALLOC 0
-_ACEOF
-
-   case " $LIBOBJS " in
-  *" realloc.$ac_objext "* ) ;;
-  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
- ;;
-esac
-
-
-cat >>confdefs.h <<\_ACEOF
-#define realloc rpl_realloc
-_ACEOF
-
-fi
-
-
-
-
-
-for ac_header in sys/select.h sys/socket.h
-do
-as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
-echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$ac_header>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
-echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$ac_header>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for $ac_header" >&5
-echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  cat >>confdefs.h <<_ACEOF
-#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
-_ACEOF
-
-fi
-
-done
-
-{ echo "$as_me:$LINENO: checking types of arguments for select" >&5
-echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
-if test "${ac_cv_func_select_args+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
- for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
-  for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
-   cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#ifdef HAVE_SYS_SELECT_H
-# include <sys/select.h>
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-# include <sys/socket.h>
-#endif
-
-int
-main ()
-{
-extern int select ($ac_arg1,
-                                           $ac_arg234, $ac_arg234, $ac_arg234,
-                                           $ac_arg5);
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-  done
- done
-done
-# Provide a safe default value.
-: ${ac_cv_func_select_args='int,int *,struct timeval *'}
-
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
-echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
-ac_save_IFS=$IFS; IFS=','
-set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
-IFS=$ac_save_IFS
-shift
-
-cat >>confdefs.h <<_ACEOF
-#define SELECT_TYPE_ARG1 $1
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define SELECT_TYPE_ARG234 ($2)
-_ACEOF
-
-
-cat >>confdefs.h <<_ACEOF
-#define SELECT_TYPE_ARG5 ($3)
-_ACEOF
-
-rm -f conftest*
-
-
-
-# Check whether --with-ircd was given.
-if test "${with_ircd+set}" = set; then
-  withval=$with_ircd;
-fi
-
-
-# Check whether --with-tableprefix was given.
-if test "${with_tableprefix+set}" = set; then
-  withval=$with_tableprefix;
-fi
-
-
-# Check whether --with-hashlist was given.
-if test "${with_hashlist+set}" = set; then
-  withval=$with_hashlist;
-fi
-
-
-# Check whether --with-mysql was given.
-if test "${with_mysql+set}" = set; then
-  withval=$with_mysql;
-fi
-
-
-# Check whether --with-mysql-includes was given.
-if test "${with_mysql_includes+set}" = set; then
-  withval=$with_mysql_includes;
-fi
-
-
-# Check whether --with-mysql-libraries was given.
-if test "${with_mysql_libraries+set}" = set; then
-  withval=$with_mysql_libraries;
-fi
-
-
-
-mysqlhead=0
-mysqllib=0
-
-{ echo "$as_me:$LINENO: checking for mysql_real_connect in -lmysqlclient" >&5
-echo $ECHO_N "checking for mysql_real_connect in -lmysqlclient... $ECHO_C" >&6; }
-if test "${ac_cv_lib_mysqlclient_mysql_real_connect+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_check_lib_save_LIBS=$LIBS
-LIBS="-lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-
-/* Override any GCC internal prototype to avoid an error.
-   Use char because int might match the return type of a GCC
-   builtin and then its argument prototype would still apply.  */
-#ifdef __cplusplus
-extern "C"
-#endif
-char mysql_real_connect ();
-int
-main ()
-{
-return mysql_real_connect ();
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  ac_cv_lib_mysqlclient_mysql_real_connect=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_cv_lib_mysqlclient_mysql_real_connect=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS=$ac_check_lib_save_LIBS
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlclient_mysql_real_connect" >&5
-echo "${ECHO_T}$ac_cv_lib_mysqlclient_mysql_real_connect" >&6; }
-if test $ac_cv_lib_mysqlclient_mysql_real_connect = yes; then
-  LIBS="-lmysqlclient $LIBS"; mysqllib=1
-fi
-
-
-if test "x$with_mysql_includes" != "x"; then
-       as_ac_Header=`echo "ac_cv_header_$with_mysql_includes/mysql.h" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for $with_mysql_includes/mysql.h" >&5
-echo $ECHO_N "checking for $with_mysql_includes/mysql.h... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $with_mysql_includes/mysql.h usability" >&5
-echo $ECHO_N "checking $with_mysql_includes/mysql.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$with_mysql_includes/mysql.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $with_mysql_includes/mysql.h presence" >&5
-echo $ECHO_N "checking $with_mysql_includes/mysql.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$with_mysql_includes/mysql.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql_includes/mysql.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $with_mysql_includes/mysql.h: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for $with_mysql_includes/mysql.h" >&5
-echo $ECHO_N "checking for $with_mysql_includes/mysql.h... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  CFLAGS="$CFLAGS -I$with_mysql_includes" ; mysqlinc=1
-fi
-
-
-fi
-
-if test "x$with_mysql_libraries" != "x"; then
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in $with_mysql_libraries" >&5
-echo $ECHO_N "checking for libmysqlclient in $with_mysql_libraries... $ECHO_C" >&6; }
-ac_lib_var=`echo $with_mysql_libraries'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L$with_mysql_libraries -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L$with_mysql_libraries -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-fi
-
-if test "x$with_mysql" != "x"; then
-       if test "x$with_mysql_libraries" = "x"; then
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in $with_mysql/lib/mysql" >&5
-echo $ECHO_N "checking for libmysqlclient in $with_mysql/lib/mysql... $ECHO_C" >&6; }
-ac_lib_var=`echo $with_mysql/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L$with_mysql/lib/mysql -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L$with_mysql_libraries -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-       fi
-       if test "x$with_mysql_includes" = "x"; then
-               as_ac_Header=`echo "ac_cv_header_$with_mysql/include/mysql/mysql.h" | $as_tr_sh`
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  { echo "$as_me:$LINENO: checking for $with_mysql/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for $with_mysql/include/mysql/mysql.h... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking $with_mysql/include/mysql/mysql.h usability" >&5
-echo $ECHO_N "checking $with_mysql/include/mysql/mysql.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include <$with_mysql/include/mysql/mysql.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking $with_mysql/include/mysql/mysql.h presence" >&5
-echo $ECHO_N "checking $with_mysql/include/mysql/mysql.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include <$with_mysql/include/mysql/mysql.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: $with_mysql/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: $with_mysql/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for $with_mysql/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for $with_mysql/include/mysql/mysql.h... $ECHO_C" >&6; }
-if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  eval "$as_ac_Header=\$ac_header_preproc"
-fi
-ac_res=`eval echo '${'$as_ac_Header'}'`
-              { echo "$as_me:$LINENO: result: $ac_res" >&5
-echo "${ECHO_T}$ac_res" >&6; }
-
-fi
-if test `eval echo '${'$as_ac_Header'}'` = yes; then
-  CFLAGS="$CFLAGS -I$with_mysql/include/mysql" ; mysqlhead=1
-fi
-
-
-       fi
-else
-       if test "x$with_mysql_libraries" = "x"; then
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in /opt/lib/mysql" >&5
-echo $ECHO_N "checking for libmysqlclient in /opt/lib/mysql... $ECHO_C" >&6; }
-ac_lib_var=`echo /opt/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L/opt/lib/mysql -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L/opt/lib/mysql -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in /usr/local/lib/mysql" >&5
-echo $ECHO_N "checking for libmysqlclient in /usr/local/lib/mysql... $ECHO_C" >&6; }
-ac_lib_var=`echo /usr/local/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L/usr/local/lib/mysql -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L/usr/local/lib/mysql -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in /usr/lib/mysql" >&5
-echo $ECHO_N "checking for libmysqlclient in /usr/lib/mysql... $ECHO_C" >&6; }
-ac_lib_var=`echo /usr/lib/mysql'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L/usr/lib/mysql -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L/usr/lib/mysql -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in /usr/local/lib" >&5
-echo $ECHO_N "checking for libmysqlclient in /usr/local/lib... $ECHO_C" >&6; }
-ac_lib_var=`echo /usr/local/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L/usr/local/lib -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L/usr/local/lib -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in /opt/lib" >&5
-echo $ECHO_N "checking for libmysqlclient in /opt/lib... $ECHO_C" >&6; }
-ac_lib_var=`echo /opt/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L/opt/lib -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L/opt/lib -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-               if test $mysqllib -eq 0; then
-                       { echo "$as_me:$LINENO: checking for libmysqlclient in /usr/lib" >&5
-echo $ECHO_N "checking for libmysqlclient in /usr/lib... $ECHO_C" >&6; }
-ac_lib_var=`echo /usr/lib'_'mysqlclient | sed 'y%./+-%__p_%'`
-if { as_var=ac_cv_lib_loc_$ac_lib_var; eval "test \"\${$as_var+set}\" = set"; }; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_save_LIBS="$LIBS"
-LIBS="-L/usr/lib -lmysqlclient  $LIBS"
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-/* We use char because int might match the return type of a gcc2
-    builtin and then its argument prototype would still apply.  */
-char mysql_real_connect();
-
-int
-main ()
-{
-mysql_real_connect()
-  ;
-  return 0;
-}
-_ACEOF
-rm -f conftest.$ac_objext conftest$ac_exeext
-if { (ac_try="$ac_link"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_link") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest$ac_exeext &&
-       $as_test_x conftest$ac_exeext; then
-  eval "ac_cv_lib_loc_$ac_lib_var=yes"
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       eval "ac_cv_lib_loc_$ac_lib_var=no"
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
-      conftest$ac_exeext conftest.$ac_ext
-LIBS="$ac_save_LIBS"
-
-fi
-if eval "test \"`echo '$ac_cv_lib_loc_'$ac_lib_var`\" = yes"; then
-  { echo "$as_me:$LINENO: result: yes" >&5
-echo "${ECHO_T}yes" >&6; }
-  LIBS="-L/usr/lib -lmysqlclient $LIBS"; mysqllib=1
-else
-  { echo "$as_me:$LINENO: result: no" >&5
-echo "${ECHO_T}no" >&6; }
-fi
-
-               fi
-       fi
-       if test "x$with_mysql_includes" = "x"; then
-               if test "${ac_cv_header__opt_include_mysql_mysql_h+set}" = set; then
-  { echo "$as_me:$LINENO: checking for /opt/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for /opt/include/mysql/mysql.h... $ECHO_C" >&6; }
-if test "${ac_cv_header__opt_include_mysql_mysql_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header__opt_include_mysql_mysql_h" >&5
-echo "${ECHO_T}$ac_cv_header__opt_include_mysql_mysql_h" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking /opt/include/mysql/mysql.h usability" >&5
-echo $ECHO_N "checking /opt/include/mysql/mysql.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include </opt/include/mysql/mysql.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking /opt/include/mysql/mysql.h presence" >&5
-echo $ECHO_N "checking /opt/include/mysql/mysql.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include </opt/include/mysql/mysql.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /opt/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: /opt/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for /opt/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for /opt/include/mysql/mysql.h... $ECHO_C" >&6; }
-if test "${ac_cv_header__opt_include_mysql_mysql_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_header__opt_include_mysql_mysql_h=$ac_header_preproc
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header__opt_include_mysql_mysql_h" >&5
-echo "${ECHO_T}$ac_cv_header__opt_include_mysql_mysql_h" >&6; }
-
-fi
-if test $ac_cv_header__opt_include_mysql_mysql_h = yes; then
-  CFLAGS="$CFLAGS -I/opt/include/mysql" ; mysqlhead=1
-fi
-
-
-               if test "${ac_cv_header__usr_local_include_mysql_mysql_h+set}" = set; then
-  { echo "$as_me:$LINENO: checking for /usr/local/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for /usr/local/include/mysql/mysql.h... $ECHO_C" >&6; }
-if test "${ac_cv_header__usr_local_include_mysql_mysql_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_mysql_mysql_h" >&5
-echo "${ECHO_T}$ac_cv_header__usr_local_include_mysql_mysql_h" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking /usr/local/include/mysql/mysql.h usability" >&5
-echo $ECHO_N "checking /usr/local/include/mysql/mysql.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include </usr/local/include/mysql/mysql.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking /usr/local/include/mysql/mysql.h presence" >&5
-echo $ECHO_N "checking /usr/local/include/mysql/mysql.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include </usr/local/include/mysql/mysql.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/local/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: /usr/local/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for /usr/local/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for /usr/local/include/mysql/mysql.h... $ECHO_C" >&6; }
-if test "${ac_cv_header__usr_local_include_mysql_mysql_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_header__usr_local_include_mysql_mysql_h=$ac_header_preproc
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_local_include_mysql_mysql_h" >&5
-echo "${ECHO_T}$ac_cv_header__usr_local_include_mysql_mysql_h" >&6; }
-
-fi
-if test $ac_cv_header__usr_local_include_mysql_mysql_h = yes; then
-  CFLAGS="$CFLAGS -I/usr/local/include/mysql" ; mysqlhead=1
-fi
-
-
-               if test "${ac_cv_header__usr_include_mysql_mysql_h+set}" = set; then
-  { echo "$as_me:$LINENO: checking for /usr/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for /usr/include/mysql/mysql.h... $ECHO_C" >&6; }
-if test "${ac_cv_header__usr_include_mysql_mysql_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_mysql_mysql_h" >&5
-echo "${ECHO_T}$ac_cv_header__usr_include_mysql_mysql_h" >&6; }
-else
-  # Is the header compilable?
-{ echo "$as_me:$LINENO: checking /usr/include/mysql/mysql.h usability" >&5
-echo $ECHO_N "checking /usr/include/mysql/mysql.h usability... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-$ac_includes_default
-#include </usr/include/mysql/mysql.h>
-_ACEOF
-rm -f conftest.$ac_objext
-if { (ac_try="$ac_compile"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_compile") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } && {
-        test -z "$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       } && test -s conftest.$ac_objext; then
-  ac_header_compiler=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-       ac_header_compiler=no
-fi
-
-rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
-echo "${ECHO_T}$ac_header_compiler" >&6; }
-
-# Is the header present?
-{ echo "$as_me:$LINENO: checking /usr/include/mysql/mysql.h presence" >&5
-echo $ECHO_N "checking /usr/include/mysql/mysql.h presence... $ECHO_C" >&6; }
-cat >conftest.$ac_ext <<_ACEOF
-/* confdefs.h.  */
-_ACEOF
-cat confdefs.h >>conftest.$ac_ext
-cat >>conftest.$ac_ext <<_ACEOF
-/* end confdefs.h.  */
-#include </usr/include/mysql/mysql.h>
-_ACEOF
-if { (ac_try="$ac_cpp conftest.$ac_ext"
-case "(($ac_try" in
-  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
-  *) ac_try_echo=$ac_try;;
-esac
-eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
-  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
-  ac_status=$?
-  grep -v '^ *+' conftest.er1 >conftest.err
-  rm -f conftest.er1
-  cat conftest.err >&5
-  echo "$as_me:$LINENO: \$? = $ac_status" >&5
-  (exit $ac_status); } >/dev/null && {
-        test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
-        test ! -s conftest.err
-       }; then
-  ac_header_preproc=yes
-else
-  echo "$as_me: failed program was:" >&5
-sed 's/^/| /' conftest.$ac_ext >&5
-
-  ac_header_preproc=no
-fi
-
-rm -f conftest.err conftest.$ac_ext
-{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
-echo "${ECHO_T}$ac_header_preproc" >&6; }
-
-# So?  What about this header?
-case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
-  yes:no: )
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: proceeding with the compiler's result" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h: proceeding with the compiler's result" >&2;}
-    ac_header_preproc=yes
-    ;;
-  no:yes:* )
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: present but cannot be compiled" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h: present but cannot be compiled" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h:     check for missing prerequisite headers?" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h:     check for missing prerequisite headers?" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: see the Autoconf documentation" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h: see the Autoconf documentation" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h:     section \"Present But Cannot Be Compiled\"" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: proceeding with the preprocessor's result" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h: proceeding with the preprocessor's result" >&2;}
-    { echo "$as_me:$LINENO: WARNING: /usr/include/mysql/mysql.h: in the future, the compiler will take precedence" >&5
-echo "$as_me: WARNING: /usr/include/mysql/mysql.h: in the future, the compiler will take precedence" >&2;}
-    ( cat <<\_ASBOX
-## ----------------------------------- ##
-## Report this to klaus.weiss@nanet.at ##
-## ----------------------------------- ##
-_ASBOX
-     ) | sed "s/^/$as_me: WARNING:     /" >&2
-    ;;
-esac
-{ echo "$as_me:$LINENO: checking for /usr/include/mysql/mysql.h" >&5
-echo $ECHO_N "checking for /usr/include/mysql/mysql.h... $ECHO_C" >&6; }
-if test "${ac_cv_header__usr_include_mysql_mysql_h+set}" = set; then
-  echo $ECHO_N "(cached) $ECHO_C" >&6
-else
-  ac_cv_header__usr_include_mysql_mysql_h=$ac_header_preproc
-fi
-{ echo "$as_me:$LINENO: result: $ac_cv_header__usr_include_mysql_mysql_h" >&5
-echo "${ECHO_T}$ac_cv_header__usr_include_mysql_mysql_h" >&6; }
-
-fi
-if test $ac_cv_header__usr_include_mysql_mysql_h = yes; then
-  CFLAGS="$CFLAGS -I/usr/include/mysql"; mysqlhead=1
-fi
-
-
-       fi
-fi
-if test $mysqlhead -eq 0; then
-       { { echo "$as_me:$LINENO: error: Need MySQL includes! You have to install the libmysqlclient-dev package." >&5
-echo "$as_me: error: Need MySQL includes! You have to install the libmysqlclient-dev package." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-if test $mysqllib -eq 0; then
-       { { echo "$as_me:$LINENO: error: Need MySQL library! You have to install the libmysqlclient package." >&5
-echo "$as_me: error: Need MySQL library! You have to install the libmysqlclient package." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-CFLAGS="$CFLAGS -Wall"
-
-# Check whether --enable-static was given.
-if test "${enable_static+set}" = set; then
-  enableval=$enable_static; LDFLAGS="$LDFLAGS -static"
-fi
-
-
-
-ok=0
-if test "x$with_tableprefix" != "x"; then
-
-cat >>confdefs.h <<_ACEOF
-#define TBL_PREFIX "$with_tableprefix"
-_ACEOF
-
-fi
-
-
-
-ok=0
-if test "x$with_hashlist" != "x"; then
-       case $with_hashlist in
-               [Nn][Oo])
-                       echo "Hashlist support disabled : Thales will run slower."
-                       ok=1
-                       ;;
-       esac
-fi
-if test $ok -eq 0; then
-
-cat >>confdefs.h <<_ACEOF
-#define HASHLISTSUPPORT 1
-_ACEOF
-
-fi
-
-
-if test "x$with_ircd" == "x"; then
-with_ircd=bahamut
-fi
-
-case $with_ircd in
-    [Bb][Aa][Hh][Aa][Mm][Uu][Tt])
-
-cat >>confdefs.h <<_ACEOF
-#define IRCD_BAHAMUT 1
-_ACEOF
-
-       echo "Using Bahamut IRCD"
-       ;;
-    [Hh][Yy][Bb][Rr][Ii][Dd])
-
-cat >>confdefs.h <<_ACEOF
-#define IRCD_HYBRID 1
-_ACEOF
-
-       echo "Using Hybrid IRCD"
-       ;;
-    [Ii][Rr][Cc][Dd][Rr][Uu])
-
-cat >>confdefs.h <<_ACEOF
-#define IRCD_IRCDRU 1
-_ACEOF
-
-       echo "Using IRCD-RU IRCD"
-       ;;
-    [Uu][Nn][Rr][Ee][Aa][Ll])
-
-cat >>confdefs.h <<_ACEOF
-#define IRCD_UNREAL 1
-_ACEOF
-
-       echo "Using Unreal IRCD"
-       ;;
-    [Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]28)
-
-cat >>confdefs.h <<_ACEOF
-#define IRCD_ULTI28 1
-_ACEOF
-
-       echo "Using Ultimate IRCD 2.8"
-       ;;
-    [Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]30)
-
-cat >>confdefs.h <<_ACEOF
-#define IRCD_ULTIMATE 1
-_ACEOF
-
-       echo "Using Ultimate IRCD 3.0"
-       ;;
-    *)
-       { { echo "$as_me:$LINENO: error: IRCD type unrecognized" >&5
-echo "$as_me: error: IRCD type unrecognized" >&2;}
-   { (exit 1); exit 1; }; }
-esac
-
-# Check whether --enable-no-modes was given.
-if test "${enable_no_modes+set}" = set; then
-  enableval=$enable_no_modes;
-cat >>confdefs.h <<_ACEOF
-#define NOMODES 1
-_ACEOF
-
-fi
-
-
-ac_config_files="$ac_config_files src/Makefile data/Makefile Makefile"
-
-cat >confcache <<\_ACEOF
-# 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, see configure's option --config-cache.
-# It is not useful on other systems.  If it contains results you don't
-# want to keep, you may remove or edit it.
-#
-# config.status only pays attention to the cache file if you give it
-# the --recheck option to rerun configure.
-#
-# `ac_cv_env_foo' variables (set or unset) will be overridden when
-# loading this file, other *unset* `ac_cv_foo' will be assigned the
-# following values.
-
-_ACEOF
-
-# The following way of writing the cache mishandles newlines in values,
-# but we know of no workaround that is simple, portable, and efficient.
-# So, we kill variables containing newlines.
-# 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.
-(
-  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
-    eval ac_val=\$$ac_var
-    case $ac_val in #(
-    *${as_nl}*)
-      case $ac_var in #(
-      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
-echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
-      esac
-      case $ac_var in #(
-      _ | IFS | as_nl) ;; #(
-      *) $as_unset $ac_var ;;
-      esac ;;
-    esac
-  done
-
-  (set) 2>&1 |
-    case $as_nl`(ac_space=' '; set) 2>&1` in #(
-    *${as_nl}ac_space=\ *)
-      # `set' does not quote correctly, so add quotes (double-quote
-      # substitution turns \\\\ into \\, and sed turns \\ into \).
-      sed -n \
-       "s/'/'\\\\''/g;
-         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
-      ;; #(
-    *)
-      # `set' quotes correctly as required by POSIX, so do not add quotes.
-      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
-      ;;
-    esac |
-    sort
-) |
-  sed '
-     /^ac_cv_env_/b end
-     t clear
-     :clear
-     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
-     t end
-     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
-     :end' >>confcache
-if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
-  if test -w "$cache_file"; then
-    test "x$cache_file" != "x/dev/null" &&
-      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
-echo "$as_me: updating cache $cache_file" >&6;}
-    cat confcache >$cache_file
-  else
-    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
-echo "$as_me: not updating unwritable cache $cache_file" >&6;}
-  fi
-fi
-rm -f confcache
-
-test "x$prefix" = xNONE && prefix=$ac_default_prefix
-# Let make expand exec_prefix.
-test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
-
-DEFS=-DHAVE_CONFIG_H
-
-ac_libobjs=
-ac_ltlibobjs=
-for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
-  # 1. Remove the extension, and $U if already installed.
-  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
-  ac_i=`echo "$ac_i" | sed "$ac_script"`
-  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
-  #    will be set to the directory where LIBOBJS objects are built.
-  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
-  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
-done
-LIBOBJS=$ac_libobjs
-
-LTLIBOBJS=$ac_ltlibobjs
-
-
-if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
-  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"AMDEP\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
-  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&5
-echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
-Usually this means the macro was only invoked conditionally." >&2;}
-   { (exit 1); exit 1; }; }
-fi
-
-: ${CONFIG_STATUS=./config.status}
-ac_clean_files_save=$ac_clean_files
-ac_clean_files="$ac_clean_files $CONFIG_STATUS"
-{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
-echo "$as_me: creating $CONFIG_STATUS" >&6;}
-cat >$CONFIG_STATUS <<_ACEOF
-#! $SHELL
-# Generated by $as_me.
-# Run this file to recreate the current configuration.
-# Compiler output produced by configure, useful for debugging
-# configure, is in config.log if it exists.
-
-debug=false
-ac_cs_recheck=false
-ac_cs_silent=false
-SHELL=\${CONFIG_SHELL-$SHELL}
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-## --------------------- ##
-## M4sh Initialization.  ##
-## --------------------- ##
-
-# Be more Bourne compatible
-DUALCASE=1; export DUALCASE # for MKS sh
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
-  emulate sh
-  NULLCMD=:
-  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
-  # is contrary to our usage.  Disable this feature.
-  alias -g '${1+"$@"}'='"$@"'
-  setopt NO_GLOB_SUBST
-else
-  case `(set -o) 2>/dev/null` in
-  *posix*) set -o posix ;;
-esac
-
-fi
-
-
-
-
-# PATH needs CR
-# Avoid depending upon Character Ranges.
-as_cr_letters='abcdefghijklmnopqrstuvwxyz'
-as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-as_cr_Letters=$as_cr_letters$as_cr_LETTERS
-as_cr_digits='0123456789'
-as_cr_alnum=$as_cr_Letters$as_cr_digits
-
-# The user is always right.
-if test "${PATH_SEPARATOR+set}" != set; then
-  echo "#! /bin/sh" >conf$$.sh
-  echo  "exit 0"   >>conf$$.sh
-  chmod +x conf$$.sh
-  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
-    PATH_SEPARATOR=';'
-  else
-    PATH_SEPARATOR=:
-  fi
-  rm -f conf$$.sh
-fi
-
-# Support unset when possible.
-if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
-  as_unset=unset
-else
-  as_unset=false
-fi
-
-
-# IFS
-# We need space, tab and new line, in precisely that order.  Quoting is
-# there to prevent editors from complaining about space-tab.
-# (If _AS_PATH_WALK were called with IFS unset, it would disable word
-# splitting by setting IFS to empty value.)
-as_nl='
-'
-IFS=" ""       $as_nl"
-
-# Find who we are.  Look in the path if we contain no directory separator.
-case $0 in
-  *[\\/]* ) as_myself=$0 ;;
-  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
-for as_dir in $PATH
-do
-  IFS=$as_save_IFS
-  test -z "$as_dir" && as_dir=.
-  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
-done
-IFS=$as_save_IFS
-
-     ;;
-esac
-# We did not find ourselves, most probably we were run as `sh COMMAND'
-# in which case we are not to be found in the path.
-if test "x$as_myself" = x; then
-  as_myself=$0
-fi
-if test ! -f "$as_myself"; then
-  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
-  { (exit 1); exit 1; }
-fi
-
-# Work around bugs in pre-3.0 UWIN ksh.
-for as_var in ENV MAIL MAILPATH
-do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-done
-PS1='$ '
-PS2='> '
-PS4='+ '
-
-# NLS nuisances.
-for as_var in \
-  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
-  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
-  LC_TELEPHONE LC_TIME
-do
-  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
-    eval $as_var=C; export $as_var
-  else
-    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
-  fi
-done
-
-# Required to use basename.
-if expr a : '\(a\)' >/dev/null 2>&1 &&
-   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-  as_expr=expr
-else
-  as_expr=false
-fi
-
-if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
-  as_basename=basename
-else
-  as_basename=false
-fi
-
-
-# Name of the executable.
-as_me=`$as_basename -- "$0" ||
-$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
-        X"$0" : 'X\(//\)$' \| \
-        X"$0" : 'X\(/\)' \| . 2>/dev/null ||
-echo X/"$0" |
-    sed '/^.*\/\([^/][^/]*\)\/*$/{
-           s//\1/
-           q
-         }
-         /^X\/\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\/\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-
-# CDPATH.
-$as_unset CDPATH
-
-
-
-  as_lineno_1=$LINENO
-  as_lineno_2=$LINENO
-  test "x$as_lineno_1" != "x$as_lineno_2" &&
-  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
-
-  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
-  # uniformly replaced by the line number.  The first 'sed' inserts a
-  # line-number line after each line using $LINENO; the second 'sed'
-  # does the real work.  The second script uses 'N' to pair each
-  # line-number line with the line containing $LINENO, and appends
-  # trailing '-' during substitution so that $LINENO is not a special
-  # case at line end.
-  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
-  # scripts with optimization help from Paolo Bonzini.  Blame Lee
-  # E. McMahon (1931-1989) for sed's syntax.  :-)
-  sed -n '
-    p
-    /[$]LINENO/=
-  ' <$as_myself |
-    sed '
-      s/[$]LINENO.*/&-/
-      t lineno
-      b
-      :lineno
-      N
-      :loop
-      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
-      t loop
-      s/-\n.*//
-    ' >$as_me.lineno &&
-  chmod +x "$as_me.lineno" ||
-    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
-   { (exit 1); exit 1; }; }
-
-  # Don't try to exec as it changes $[0], causing all sort of problems
-  # (the dirname of $[0] is not the place where we might find the
-  # original and so on.  Autoconf is especially sensitive to this).
-  . "./$as_me.lineno"
-  # Exit status is that of the last command.
-  exit
-}
-
-
-if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
-  as_dirname=dirname
-else
-  as_dirname=false
-fi
-
-ECHO_C= ECHO_N= ECHO_T=
-case `echo -n x` in
--n*)
-  case `echo 'x\c'` in
-  *c*) ECHO_T='        ';;     # ECHO_T is single tab character.
-  *)   ECHO_C='\c';;
-  esac;;
-*)
-  ECHO_N='-n';;
-esac
-
-if expr a : '\(a\)' >/dev/null 2>&1 &&
-   test "X`expr 00001 : '.*\(...\)'`" = X001; then
-  as_expr=expr
-else
-  as_expr=false
-fi
-
-rm -f conf$$ conf$$.exe conf$$.file
-if test -d conf$$.dir; then
-  rm -f conf$$.dir/conf$$.file
-else
-  rm -f conf$$.dir
-  mkdir conf$$.dir
-fi
-echo >conf$$.file
-if ln -s conf$$.file conf$$ 2>/dev/null; then
-  as_ln_s='ln -s'
-  # ... but there are two gotchas:
-  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
-  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
-  # In both cases, we have to default to `cp -p'.
-  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
-    as_ln_s='cp -p'
-elif ln conf$$.file conf$$ 2>/dev/null; then
-  as_ln_s=ln
-else
-  as_ln_s='cp -p'
-fi
-rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
-rmdir conf$$.dir 2>/dev/null
-
-if mkdir -p . 2>/dev/null; then
-  as_mkdir_p=:
-else
-  test -d ./-p && rmdir ./-p
-  as_mkdir_p=false
-fi
-
-if test -x / >/dev/null 2>&1; then
-  as_test_x='test -x'
-else
-  if ls -dL / >/dev/null 2>&1; then
-    as_ls_L_option=L
-  else
-    as_ls_L_option=
-  fi
-  as_test_x='
-    eval sh -c '\''
-      if test -d "$1"; then
-        test -d "$1/.";
-      else
-       case $1 in
-        -*)set "./$1";;
-       esac;
-       case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
-       ???[sx]*):;;*)false;;esac;fi
-    '\'' sh
-  '
-fi
-as_executable_p=$as_test_x
-
-# Sed expression to map a string onto a valid CPP name.
-as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
-
-# Sed expression to map a string onto a valid variable name.
-as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
-
-
-exec 6>&1
-
-# Save the log message, to keep $[0] and so on meaningful, and to
-# report actual input values of CONFIG_FILES etc. instead of their
-# values after options handling.
-ac_log="
-This file was extended by GNU Thales $as_me 1.1, which was
-generated by GNU Autoconf 2.61.  Invocation command line was
-
-  CONFIG_FILES    = $CONFIG_FILES
-  CONFIG_HEADERS  = $CONFIG_HEADERS
-  CONFIG_LINKS    = $CONFIG_LINKS
-  CONFIG_COMMANDS = $CONFIG_COMMANDS
-  $ $0 $@
-
-on `(hostname || uname -n) 2>/dev/null | sed 1q`
-"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<_ACEOF
-# Files that config.status was made for.
-config_files="$ac_config_files"
-config_headers="$ac_config_headers"
-config_commands="$ac_config_commands"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-ac_cs_usage="\
-\`$as_me' instantiates files from templates according to the
-current configuration.
-
-Usage: $0 [OPTIONS] [FILE]...
-
-  -h, --help       print this help, then exit
-  -V, --version    print version number and configuration settings, then exit
-  -q, --quiet      do not print progress messages
-  -d, --debug      don't remove temporary files
-      --recheck    update $as_me by reconfiguring in the same conditions
-  --file=FILE[:TEMPLATE]
-                  instantiate the configuration file FILE
-  --header=FILE[:TEMPLATE]
-                  instantiate the configuration header FILE
-
-Configuration files:
-$config_files
-
-Configuration headers:
-$config_headers
-
-Configuration commands:
-$config_commands
-
-Report bugs to <bug-autoconf@gnu.org>."
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-ac_cs_version="\\
-GNU Thales config.status 1.1
-configured by $0, generated by GNU Autoconf 2.61,
-  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
-
-Copyright (C) 2006 Free Software Foundation, Inc.
-This config.status script is free software; the Free Software Foundation
-gives unlimited permission to copy, distribute and modify it."
-
-ac_pwd='$ac_pwd'
-srcdir='$srcdir'
-INSTALL='$INSTALL'
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-# If no file are specified by the user, then we need to provide default
-# value.  By we need to know if files were specified by the user.
-ac_need_defaults=:
-while test $# != 0
-do
-  case $1 in
-  --*=*)
-    ac_option=`expr "X$1" : 'X\([^=]*\)='`
-    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
-    ac_shift=:
-    ;;
-  *)
-    ac_option=$1
-    ac_optarg=$2
-    ac_shift=shift
-    ;;
-  esac
-
-  case $ac_option in
-  # Handling of the options.
-  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
-    ac_cs_recheck=: ;;
-  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
-    echo "$ac_cs_version"; exit ;;
-  --debug | --debu | --deb | --de | --d | -d )
-    debug=: ;;
-  --file | --fil | --fi | --f )
-    $ac_shift
-    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
-    ac_need_defaults=false;;
-  --header | --heade | --head | --hea )
-    $ac_shift
-    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
-    ac_need_defaults=false;;
-  --he | --h)
-    # Conflict between --help and --header
-    { echo "$as_me: error: ambiguous option: $1
-Try \`$0 --help' for more information." >&2
-   { (exit 1); exit 1; }; };;
-  --help | --hel | -h )
-    echo "$ac_cs_usage"; exit ;;
-  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
-  | -silent | --silent | --silen | --sile | --sil | --si | --s)
-    ac_cs_silent=: ;;
-
-  # This is an error.
-  -*) { echo "$as_me: error: unrecognized option: $1
-Try \`$0 --help' for more information." >&2
-   { (exit 1); exit 1; }; } ;;
-
-  *) ac_config_targets="$ac_config_targets $1"
-     ac_need_defaults=false ;;
-
-  esac
-  shift
-done
-
-ac_configure_extra_args=
-
-if $ac_cs_silent; then
-  exec 6>/dev/null
-  ac_configure_extra_args="$ac_configure_extra_args --silent"
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-if \$ac_cs_recheck; then
-  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
-  CONFIG_SHELL=$SHELL
-  export CONFIG_SHELL
-  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
-fi
-
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-exec 5>>config.log
-{
-  echo
-  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
-## Running $as_me. ##
-_ASBOX
-  echo "$ac_log"
-} >&5
-
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-#
-# INIT-COMMANDS
-#
-AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
-
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-
-# Handling of arguments.
-for ac_config_target in $ac_config_targets
-do
-  case $ac_config_target in
-    "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
-    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
-    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
-    "data/Makefile") CONFIG_FILES="$CONFIG_FILES data/Makefile" ;;
-    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
-
-  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
-echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
-   { (exit 1); exit 1; }; };;
-  esac
-done
-
-
-# If the user did not use the arguments to specify the items to instantiate,
-# then the envvar interface is used.  Set only those that are not.
-# We use the long form for the default assignment because of an extremely
-# bizarre bug on SunOS 4.1.3.
-if $ac_need_defaults; then
-  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
-  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
-  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
-fi
-
-# Have a temporary directory for convenience.  Make it in the build tree
-# simply because there is no reason against having it here, and in addition,
-# creating and moving files from /tmp can sometimes cause problems.
-# Hook for its removal unless debugging.
-# Note that there is a small window in which the directory will not be cleaned:
-# after its creation but before its name has been assigned to `$tmp'.
-$debug ||
-{
-  tmp=
-  trap 'exit_status=$?
-  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
-' 0
-  trap '{ (exit 1); exit 1; }' 1 2 13 15
-}
-# Create a (secure) tmp directory for tmp files.
-
-{
-  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
-  test -n "$tmp" && test -d "$tmp"
-}  ||
-{
-  tmp=./conf$$-$RANDOM
-  (umask 077 && mkdir "$tmp")
-} ||
-{
-   echo "$me: cannot create a temporary directory in ." >&2
-   { (exit 1); exit 1; }
-}
-
-#
-# Set up the sed scripts for CONFIG_FILES section.
-#
-
-# No need to generate the scripts if there are no CONFIG_FILES.
-# This happens for instance when ./config.status config.h
-if test -n "$CONFIG_FILES"; then
-
-_ACEOF
-
-
-
-ac_delim='%!_!# '
-for ac_last_try in false false false false false :; do
-  cat >conf$$subs.sed <<_ACEOF
-SHELL!$SHELL$ac_delim
-PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
-PACKAGE_NAME!$PACKAGE_NAME$ac_delim
-PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
-PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
-PACKAGE_STRING!$PACKAGE_STRING$ac_delim
-PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
-exec_prefix!$exec_prefix$ac_delim
-prefix!$prefix$ac_delim
-program_transform_name!$program_transform_name$ac_delim
-bindir!$bindir$ac_delim
-sbindir!$sbindir$ac_delim
-libexecdir!$libexecdir$ac_delim
-datarootdir!$datarootdir$ac_delim
-datadir!$datadir$ac_delim
-sysconfdir!$sysconfdir$ac_delim
-sharedstatedir!$sharedstatedir$ac_delim
-localstatedir!$localstatedir$ac_delim
-includedir!$includedir$ac_delim
-oldincludedir!$oldincludedir$ac_delim
-docdir!$docdir$ac_delim
-infodir!$infodir$ac_delim
-htmldir!$htmldir$ac_delim
-dvidir!$dvidir$ac_delim
-pdfdir!$pdfdir$ac_delim
-psdir!$psdir$ac_delim
-libdir!$libdir$ac_delim
-localedir!$localedir$ac_delim
-mandir!$mandir$ac_delim
-DEFS!$DEFS$ac_delim
-ECHO_C!$ECHO_C$ac_delim
-ECHO_N!$ECHO_N$ac_delim
-ECHO_T!$ECHO_T$ac_delim
-LIBS!$LIBS$ac_delim
-build_alias!$build_alias$ac_delim
-host_alias!$host_alias$ac_delim
-target_alias!$target_alias$ac_delim
-INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
-INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
-INSTALL_DATA!$INSTALL_DATA$ac_delim
-CYGPATH_W!$CYGPATH_W$ac_delim
-PACKAGE!$PACKAGE$ac_delim
-VERSION!$VERSION$ac_delim
-ACLOCAL!$ACLOCAL$ac_delim
-AUTOCONF!$AUTOCONF$ac_delim
-AUTOMAKE!$AUTOMAKE$ac_delim
-AUTOHEADER!$AUTOHEADER$ac_delim
-MAKEINFO!$MAKEINFO$ac_delim
-install_sh!$install_sh$ac_delim
-STRIP!$STRIP$ac_delim
-INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
-mkdir_p!$mkdir_p$ac_delim
-AWK!$AWK$ac_delim
-SET_MAKE!$SET_MAKE$ac_delim
-am__leading_dot!$am__leading_dot$ac_delim
-AMTAR!$AMTAR$ac_delim
-am__tar!$am__tar$ac_delim
-am__untar!$am__untar$ac_delim
-CC!$CC$ac_delim
-CFLAGS!$CFLAGS$ac_delim
-LDFLAGS!$LDFLAGS$ac_delim
-CPPFLAGS!$CPPFLAGS$ac_delim
-ac_ct_CC!$ac_ct_CC$ac_delim
-EXEEXT!$EXEEXT$ac_delim
-OBJEXT!$OBJEXT$ac_delim
-DEPDIR!$DEPDIR$ac_delim
-am__include!$am__include$ac_delim
-am__quote!$am__quote$ac_delim
-AMDEP_TRUE!$AMDEP_TRUE$ac_delim
-AMDEP_FALSE!$AMDEP_FALSE$ac_delim
-AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
-CCDEPMODE!$CCDEPMODE$ac_delim
-am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
-am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
-LN_S!$LN_S$ac_delim
-CPP!$CPP$ac_delim
-GREP!$GREP$ac_delim
-EGREP!$EGREP$ac_delim
-LIBOBJS!$LIBOBJS$ac_delim
-LTLIBOBJS!$LTLIBOBJS$ac_delim
-_ACEOF
-
-  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
-    break
-  elif $ac_last_try; then
-    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
-echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
-   { (exit 1); exit 1; }; }
-  else
-    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
-  fi
-done
-
-ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
-if test -n "$ac_eof"; then
-  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
-  ac_eof=`expr $ac_eof + 1`
-fi
-
-cat >>$CONFIG_STATUS <<_ACEOF
-cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
-_ACEOF
-sed '
-s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
-s/^/s,@/; s/!/@,|#_!!_#|/
-:n
-t n
-s/'"$ac_delim"'$/,g/; t
-s/$/\\/; p
-N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
-' >>$CONFIG_STATUS <conf$$subs.sed
-rm -f conf$$subs.sed
-cat >>$CONFIG_STATUS <<_ACEOF
-:end
-s/|#_!!_#|//g
-CEOF$ac_eof
-_ACEOF
-
-
-# VPATH may cause trouble with some makes, so we remove $(srcdir),
-# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
-# trailing colons and then remove the whole line if VPATH becomes empty
-# (actually we leave an empty line to preserve line numbers).
-if test "x$srcdir" = x.; then
-  ac_vpsub='/^[         ]*VPATH[        ]*=/{
-s/:*\$(srcdir):*/:/
-s/:*\${srcdir}:*/:/
-s/:*@srcdir@:*/:/
-s/^\([^=]*=[    ]*\):*/\1/
-s/:*$//
-s/^[^=]*=[      ]*$//
-}'
-fi
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-fi # test -n "$CONFIG_FILES"
-
-
-for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
-do
-  case $ac_tag in
-  :[FHLC]) ac_mode=$ac_tag; continue;;
-  esac
-  case $ac_mode$ac_tag in
-  :[FHL]*:*);;
-  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
-echo "$as_me: error: Invalid tag $ac_tag." >&2;}
-   { (exit 1); exit 1; }; };;
-  :[FH]-) ac_tag=-:-;;
-  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
-  esac
-  ac_save_IFS=$IFS
-  IFS=:
-  set x $ac_tag
-  IFS=$ac_save_IFS
-  shift
-  ac_file=$1
-  shift
-
-  case $ac_mode in
-  :L) ac_source=$1;;
-  :[FH])
-    ac_file_inputs=
-    for ac_f
-    do
-      case $ac_f in
-      -) ac_f="$tmp/stdin";;
-      *) # Look for the file first in the build tree, then in the source tree
-        # (if the path is not absolute).  The absolute path cannot be DOS-style,
-        # because $ac_f cannot contain `:'.
-        test -f "$ac_f" ||
-          case $ac_f in
-          [\\/$]*) false;;
-          *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
-          esac ||
-          { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
-echo "$as_me: error: cannot find input file: $ac_f" >&2;}
-   { (exit 1); exit 1; }; };;
-      esac
-      ac_file_inputs="$ac_file_inputs $ac_f"
-    done
-
-    # Let's still pretend it is `configure' which instantiates (i.e., don't
-    # use $as_me), people would be surprised to read:
-    #    /* config.h.  Generated by config.status.  */
-    configure_input="Generated from "`IFS=:
-         echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
-    if test x"$ac_file" != x-; then
-      configure_input="$ac_file.  $configure_input"
-      { echo "$as_me:$LINENO: creating $ac_file" >&5
-echo "$as_me: creating $ac_file" >&6;}
-    fi
-
-    case $ac_tag in
-    *:-:* | *:-) cat >"$tmp/stdin";;
-    esac
-    ;;
-  esac
-
-  ac_dir=`$as_dirname -- "$ac_file" ||
-$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$ac_file" : 'X\(//\)[^/]' \| \
-        X"$ac_file" : 'X\(//\)$' \| \
-        X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$ac_file" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)[^/].*/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-  { as_dir="$ac_dir"
-  case $as_dir in #(
-  -*) as_dir=./$as_dir;;
-  esac
-  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
-    as_dirs=
-    while :; do
-      case $as_dir in #(
-      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
-      *) as_qdir=$as_dir;;
-      esac
-      as_dirs="'$as_qdir' $as_dirs"
-      as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$as_dir" : 'X\(//\)[^/]' \| \
-        X"$as_dir" : 'X\(//\)$' \| \
-        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$as_dir" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)[^/].*/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-      test -d "$as_dir" && break
-    done
-    test -z "$as_dirs" || eval "mkdir $as_dirs"
-  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
-echo "$as_me: error: cannot create directory $as_dir" >&2;}
-   { (exit 1); exit 1; }; }; }
-  ac_builddir=.
-
-case "$ac_dir" in
-.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
-*)
-  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
-  # A ".." for each directory in $ac_dir_suffix.
-  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
-  case $ac_top_builddir_sub in
-  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
-  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
-  esac ;;
-esac
-ac_abs_top_builddir=$ac_pwd
-ac_abs_builddir=$ac_pwd$ac_dir_suffix
-# for backward compatibility:
-ac_top_builddir=$ac_top_build_prefix
-
-case $srcdir in
-  .)  # We are building in place.
-    ac_srcdir=.
-    ac_top_srcdir=$ac_top_builddir_sub
-    ac_abs_top_srcdir=$ac_pwd ;;
-  [\\/]* | ?:[\\/]* )  # Absolute name.
-    ac_srcdir=$srcdir$ac_dir_suffix;
-    ac_top_srcdir=$srcdir
-    ac_abs_top_srcdir=$srcdir ;;
-  *) # Relative name.
-    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
-    ac_top_srcdir=$ac_top_build_prefix$srcdir
-    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
-esac
-ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
-
-
-  case $ac_mode in
-  :F)
-  #
-  # CONFIG_FILE
-  #
-
-  case $INSTALL in
-  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
-  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
-  esac
-_ACEOF
-
-cat >>$CONFIG_STATUS <<\_ACEOF
-# If the template does not know about datarootdir, expand it.
-# FIXME: This hack should be removed a few years after 2.60.
-ac_datarootdir_hack=; ac_datarootdir_seen=
-
-case `sed -n '/datarootdir/ {
-  p
-  q
-}
-/@datadir@/p
-/@docdir@/p
-/@infodir@/p
-/@localedir@/p
-/@mandir@/p
-' $ac_file_inputs` in
-*datarootdir*) ac_datarootdir_seen=yes;;
-*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
-  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
-echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
-_ACEOF
-cat >>$CONFIG_STATUS <<_ACEOF
-  ac_datarootdir_hack='
-  s&@datadir@&$datadir&g
-  s&@docdir@&$docdir&g
-  s&@infodir@&$infodir&g
-  s&@localedir@&$localedir&g
-  s&@mandir@&$mandir&g
-    s&\\\${datarootdir}&$datarootdir&g' ;;
-esac
-_ACEOF
-
-# Neutralize VPATH when `$srcdir' = `.'.
-# Shell code in configure.ac might set extrasub.
-# FIXME: do we really want to maintain this feature?
-cat >>$CONFIG_STATUS <<_ACEOF
-  sed "$ac_vpsub
-$extrasub
-_ACEOF
-cat >>$CONFIG_STATUS <<\_ACEOF
-:t
-/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
-s&@configure_input@&$configure_input&;t t
-s&@top_builddir@&$ac_top_builddir_sub&;t t
-s&@srcdir@&$ac_srcdir&;t t
-s&@abs_srcdir@&$ac_abs_srcdir&;t t
-s&@top_srcdir@&$ac_top_srcdir&;t t
-s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
-s&@builddir@&$ac_builddir&;t t
-s&@abs_builddir@&$ac_abs_builddir&;t t
-s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
-s&@INSTALL@&$ac_INSTALL&;t t
-$ac_datarootdir_hack
-" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
-
-test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
-  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
-  { ac_out=`sed -n '/^[         ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
-  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined.  Please make sure it is defined." >&5
-echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
-which seems to be undefined.  Please make sure it is defined." >&2;}
-
-  rm -f "$tmp/stdin"
-  case $ac_file in
-  -) cat "$tmp/out"; rm -f "$tmp/out";;
-  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
-  esac
- ;;
-  :H)
-  #
-  # CONFIG_HEADER
-  #
-_ACEOF
-
-# Transform confdefs.h into a sed script `conftest.defines', that
-# substitutes the proper values into config.h.in to produce config.h.
-rm -f conftest.defines conftest.tail
-# First, append a space to every undef/define line, to ease matching.
-echo 's/$/ /' >conftest.defines
-# Then, protect against being on the right side of a sed subst, or in
-# an unquoted here document, in config.status.  If some macros were
-# called several times there might be several #defines for the same
-# symbol, which is useless.  But do not sort them, since the last
-# AC_DEFINE must be honored.
-ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
-# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
-# NAME is the cpp macro being defined, VALUE is the value it is being given.
-# PARAMS is the parameter list in the macro definition--in most cases, it's
-# just an empty string.
-ac_dA='s,^\\([  #]*\\)[^        ]*\\([  ]*'
-ac_dB='\\)[     (].*,\\1define\\2'
-ac_dC=' '
-ac_dD=' ,'
-
-uniq confdefs.h |
-  sed -n '
-       t rset
-       :rset
-       s/^[     ]*#[    ]*define[       ][      ]*//
-       t ok
-       d
-       :ok
-       s/[\\&,]/\\&/g
-       s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
-       s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
-  ' >>conftest.defines
-
-# Remove the space that was appended to ease matching.
-# Then replace #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.
-# (The regexp can be short, since the line contains either #define or #undef.)
-echo 's/ $//
-s,^[    #]*u.*,/* & */,' >>conftest.defines
-
-# Break up conftest.defines:
-ac_max_sed_lines=50
-
-# First sed command is:         sed -f defines.sed $ac_file_inputs >"$tmp/out1"
-# Second one is:        sed -f defines.sed "$tmp/out1" >"$tmp/out2"
-# Third one will be:    sed -f defines.sed "$tmp/out2" >"$tmp/out1"
-# et cetera.
-ac_in='$ac_file_inputs'
-ac_out='"$tmp/out1"'
-ac_nxt='"$tmp/out2"'
-
-while :
-do
-  # Write a here document:
-    cat >>$CONFIG_STATUS <<_ACEOF
-    # First, check the format of the line:
-    cat >"\$tmp/defines.sed" <<\\CEOF
-/^[     ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
-/^[     ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
-b
-:def
-_ACEOF
-  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
-  echo 'CEOF
-    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
-  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
-  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
-  grep . conftest.tail >/dev/null || break
-  rm -f conftest.defines
-  mv conftest.tail conftest.defines
-done
-rm -f conftest.defines conftest.tail
-
-echo "ac_result=$ac_in" >>$CONFIG_STATUS
-cat >>$CONFIG_STATUS <<\_ACEOF
-  if test x"$ac_file" != x-; then
-    echo "/* $configure_input  */" >"$tmp/config.h"
-    cat "$ac_result" >>"$tmp/config.h"
-    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
-      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
-echo "$as_me: $ac_file is unchanged" >&6;}
-    else
-      rm -f $ac_file
-      mv "$tmp/config.h" $ac_file
-    fi
-  else
-    echo "/* $configure_input  */"
-    cat "$ac_result"
-  fi
-  rm -f "$tmp/out12"
-# Compute $ac_file's index in $config_headers.
-_am_stamp_count=1
-for _am_header in $config_headers :; do
-  case $_am_header in
-    $ac_file | $ac_file:* )
-      break ;;
-    * )
-      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
-  esac
-done
-echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
-$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X$ac_file : 'X\(//\)[^/]' \| \
-        X$ac_file : 'X\(//\)$' \| \
-        X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
-echo X$ac_file |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)[^/].*/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`/stamp-h$_am_stamp_count
- ;;
-
-  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
-echo "$as_me: executing $ac_file commands" >&6;}
- ;;
-  esac
-
-
-  case $ac_file$ac_mode in
-    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
-  # Strip MF so we end up with the name of the file.
-  mf=`echo "$mf" | sed -e 's/:.*$//'`
-  # Check whether this is an Automake generated Makefile or not.
-  # We used to match only the files named `Makefile.in', but
-  # some people rename them; so instead we look at the file content.
-  # Grep'ing the first line is not enough: some people post-process
-  # each Makefile.in and add a new line on top of each file to say so.
-  # So let's grep whole file.
-  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
-    dirpart=`$as_dirname -- "$mf" ||
-$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$mf" : 'X\(//\)[^/]' \| \
-        X"$mf" : 'X\(//\)$' \| \
-        X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$mf" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)[^/].*/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-  else
-    continue
-  fi
-  # Extract the definition of DEPDIR, am__include, and am__quote
-  # from the Makefile without running `make'.
-  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
-  test -z "$DEPDIR" && continue
-  am__include=`sed -n 's/^am__include = //p' < "$mf"`
-  test -z "am__include" && continue
-  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
-  # When using ansi2knr, U may be empty or an underscore; expand it
-  U=`sed -n 's/^U = //p' < "$mf"`
-  # Find all dependency output files, they are included files with
-  # $(DEPDIR) in their names.  We invoke sed twice because it is the
-  # simplest approach to changing $(DEPDIR) to its actual value in the
-  # expansion.
-  for file in `sed -n "
-    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
-       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
-    # Make sure the directory exists.
-    test -f "$dirpart/$file" && continue
-    fdir=`$as_dirname -- "$file" ||
-$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$file" : 'X\(//\)[^/]' \| \
-        X"$file" : 'X\(//\)$' \| \
-        X"$file" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$file" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)[^/].*/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-    { as_dir=$dirpart/$fdir
-  case $as_dir in #(
-  -*) as_dir=./$as_dir;;
-  esac
-  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
-    as_dirs=
-    while :; do
-      case $as_dir in #(
-      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
-      *) as_qdir=$as_dir;;
-      esac
-      as_dirs="'$as_qdir' $as_dirs"
-      as_dir=`$as_dirname -- "$as_dir" ||
-$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
-        X"$as_dir" : 'X\(//\)[^/]' \| \
-        X"$as_dir" : 'X\(//\)$' \| \
-        X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
-echo X"$as_dir" |
-    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)[^/].*/{
-           s//\1/
-           q
-         }
-         /^X\(\/\/\)$/{
-           s//\1/
-           q
-         }
-         /^X\(\/\).*/{
-           s//\1/
-           q
-         }
-         s/.*/./; q'`
-      test -d "$as_dir" && break
-    done
-    test -z "$as_dirs" || eval "mkdir $as_dirs"
-  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
-echo "$as_me: error: cannot create directory $as_dir" >&2;}
-   { (exit 1); exit 1; }; }; }
-    # echo "creating $dirpart/$file"
-    echo '# dummy' > "$dirpart/$file"
-  done
-done
- ;;
-
-  esac
-done # for ac_tag
-
-
-{ (exit 0); exit 0; }
-_ACEOF
-chmod +x $CONFIG_STATUS
-ac_clean_files=$ac_clean_files_save
-
-
-# configure is writing to config.log, and then calls config.status.
-# config.status does its own redirection, appending to config.log.
-# Unfortunately, on DOS this fails, as config.log is still kept open
-# by configure, so config.status won't be able to write to it; its
-# output is simply discarded.  So we exec the FD to /dev/null,
-# effectively closing config.log, so it can be properly (re)opened and
-# appended to by config.status.  When coming back to configure, we
-# need to make the FD available again.
-if test "$no_create" != yes; then
-  ac_cs_success=:
-  ac_config_status_args=
-  test "$silent" = yes &&
-    ac_config_status_args="$ac_config_status_args --quiet"
-  exec 5>/dev/null
-  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
-  exec 5>>config.log
-  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
-  # would make configure fail if this is the last instruction.
-  $ac_cs_success || { (exit 1); exit 1; }
-fi
-
-
-echo
-echo "Thales will be installed in ${prefix}. To change this, run :"
-echo "     ./configure --prefix=DIRECTORY"
-echo "To compile Thales, run make (or gmake on non-GNU systems)"
-echo "To install Thales, run make install (or gmake install on non-GNU systems)"
-echo
-echo "Don't forget to read the README and INSTALL files for more detailed instructions"
-echo
diff --git a/configure.ac b/configure.ac
new file mode 100644 (file)
index 0000000..85a1d43
--- /dev/null
@@ -0,0 +1,19 @@
+AC_PREREQ([2.69])
+AC_INIT([GNU Thales], [1.91], [thales-misc@gnu.org])
+AC_CONFIG_HEADERS([config.h])
+AM_INIT_AUTOMAKE
+# Checks for programs.
+AC_PROG_CC
+gl_EARLY
+gl_INIT
+AC_GNU_SOURCE
+# Checks for libraries.
+
+# Checks for header files.
+
+# Checks for typedefs, structures, and compiler characteristics.
+
+# Checks for library functions.
+AC_CONFIG_FILES([Makefile
+                                  src/Makefile])
+AC_OUTPUT
diff --git a/configure.in b/configure.in
deleted file mode 100755 (executable)
index 2cd6c55..0000000
+++ /dev/null
@@ -1,191 +0,0 @@
-dnl Process this file with autoconf to produce a configure script.
-AC_INIT([GNU Thales], [1.1], [klaus.weiss@nanet.at])
-AC_CONFIG_HEADERS(src/config.h)
-AM_INIT_AUTOMAKE()
-dnl Checks for programs.
-AC_PROG_AWK
-AC_PROG_CC
-AC_PROG_INSTALL
-AC_PROG_LN_S
-
-dnl Checks for libraries.
-AC_CHECK_LIB(socket, connect, gethostbyname)
-AC_CHECK_LIB(z, compress)
-AC_CHECK_LIB(m, floor)
-
-dnl Checks for header files.
-AC_HEADER_STDC
-AC_CHECK_HEADERS(limits.h sys/time.h unistd.h netdb.h netinet/in.h sys/socket.h)
-
-dnl Checks for typedefs, structures, and compiler characteristics.
-AC_C_CONST
-AC_TYPE_SIZE_T
-AC_HEADER_TIME
-AC_STRUCT_TM
-
-dnl Checks for library functions.
-AC_FUNC_STRFTIME
-AC_FUNC_VPRINTF
-AC_CHECK_FUNCS(gettimeofday select socket strcspn strdup strerror strspn strtol gethostbyname memmove memset strcasecmp strchr strpbrk strtoul)
-AC_FUNC_ERROR_AT_LINE
-AC_FUNC_FORK
-AC_FUNC_MALLOC
-AC_FUNC_REALLOC
-AC_FUNC_SELECT_ARGTYPES
-
-AC_ARG_WITH(ircd, 
-[  --with-ircd=ircdtype  type of the ircd used with thales (bahamut, hybrid, ircdru, unreal, ultimate28 or ultimate30)])
-AC_ARG_WITH(tableprefix, 
-[  --tableprefix=string  prefix to add to all SQL tables names. database creation scripts need to be modified accordingly.)])
-AC_ARG_WITH(hashlist, 
-[  --with-hashlist=YES/NO  Use an internal hashlist to store some data ? (that makes Thales run faster)])
-AC_ARG_WITH(mysql,
-[  --with-mysql=PFX        Prefix where MySQL is installed (usually /usr/local)])
-AC_ARG_WITH(mysql-includes, 
-[  --with-mysql-includes=PFX Prefix where MySQL includes are found (usually
-                           /usr/local/include/mysql)])
-AC_ARG_WITH(mysql-libraries, 
-[  --with-mysql-libraries=PFX Prefix where MySQL libraries are found (usually
-                           /usr/local/lib/mysql)])
-
-dnl Check usr/local first, in case sys admin has installed a later version
-dnl than was included with the OS (in which case the older will be in  /usr)
-
-mysqlhead=0
-mysqllib=0
-
-AC_CHECK_LIB(mysqlclient,mysql_real_connect, [LIBS="-lmysqlclient $LIBS"; mysqllib=1])
-
-if test "x$with_mysql_includes" != "x"; then
-       AC_CHECK_HEADER($with_mysql_includes/mysql.h,
-               [CFLAGS="$CFLAGS -I$with_mysql_includes" ; mysqlinc=1])
-fi
-
-if test "x$with_mysql_libraries" != "x"; then
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC($with_mysql_libraries,mysqlclient,mysql_real_connect, [LIBS="-L$with_mysql_libraries -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-fi
-
-if test "x$with_mysql" != "x"; then
-       if test "x$with_mysql_libraries" = "x"; then
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC($with_mysql/lib/mysql,mysqlclient,mysql_real_connect, [LIBS="-L$with_mysql_libraries -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-       fi
-       if test "x$with_mysql_includes" = "x"; then
-               AC_CHECK_HEADER($with_mysql/include/mysql/mysql.h,
-                       [CFLAGS="$CFLAGS -I$with_mysql/include/mysql" ; mysqlhead=1])
-       fi
-else
-       if test "x$with_mysql_libraries" = "x"; then
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC(/opt/lib/mysql,mysqlclient,mysql_real_connect,[LIBS="-L/opt/lib/mysql -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC(/usr/local/lib/mysql,mysqlclient,mysql_real_connect,[LIBS="-L/usr/local/lib/mysql -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC(/usr/lib/mysql,mysqlclient,mysql_real_connect,[LIBS="-L/usr/lib/mysql -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC(/usr/local/lib,mysqlclient,mysql_real_connect,[LIBS="-L/usr/local/lib -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC(/opt/lib,mysqlclient,mysql_real_connect,[LIBS="-L/opt/lib -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-               if test $mysqllib -eq 0; then
-                       AC_CHECK_LIB_LOC(/usr/lib,mysqlclient,mysql_real_connect,[LIBS="-L/usr/lib -lmysqlclient $LIBS"; mysqllib=1])
-               fi
-       fi
-       if test "x$with_mysql_includes" = "x"; then
-               AC_CHECK_HEADER(/opt/include/mysql/mysql.h, [CFLAGS="$CFLAGS -I/opt/include/mysql" ; mysqlhead=1])
-               AC_CHECK_HEADER(/usr/local/include/mysql/mysql.h, [CFLAGS="$CFLAGS -I/usr/local/include/mysql" ; mysqlhead=1])
-               AC_CHECK_HEADER(/usr/include/mysql/mysql.h, [CFLAGS="$CFLAGS -I/usr/include/mysql"; mysqlhead=1])
-       fi
-fi
-if test $mysqlhead -eq 0; then
-       AC_MSG_ERROR(Need MySQL includes! You have to install the libmysqlclient-dev package.)
-fi
-if test $mysqllib -eq 0; then
-       AC_MSG_ERROR(Need MySQL library! You have to install the libmysqlclient package.)
-fi
-
-CFLAGS="$CFLAGS -Wall"
-
-AC_ARG_ENABLE(static, 
-[  --enable-static links statically],
-[LDFLAGS="$LDFLAGS -static"])
-
-dnl Table prefix
-
-ok=0
-if test "x$with_tableprefix" != "x"; then
-       AC_DEFINE_UNQUOTED(TBL_PREFIX, "$with_tableprefix", 'table prefix to use')
-fi
-
-
-dnl Hashlist ?
-
-ok=0
-if test "x$with_hashlist" != "x"; then
-       case $with_hashlist in
-               [[Nn][Oo]])
-                       echo "Hashlist support disabled : Thales will run slower."
-                       ok=1
-                       ;;
-       esac
-fi
-if test $ok -eq 0; then
-       AC_DEFINE_UNQUOTED(HASHLISTSUPPORT, 1, 'use internal hashlist')
-fi
-
-dnl IRCD type
-
-if test "x$with_ircd" == "x"; then
-with_ircd=bahamut
-fi
-
-case $with_ircd in
-    [[Bb][Aa][Hh][Aa][Mm][Uu][Tt]])
-       AC_DEFINE_UNQUOTED(IRCD_BAHAMUT, 1, 'ircd type')
-       echo "Using Bahamut IRCD"
-       ;;
-    [[Hh][Yy][Bb][Rr][Ii][Dd]])
-       AC_DEFINE_UNQUOTED(IRCD_HYBRID, 1, 'ircd type')
-       echo "Using Hybrid IRCD"
-       ;;
-    [[Ii][Rr][Cc][Dd][Rr][Uu]])
-       AC_DEFINE_UNQUOTED(IRCD_IRCDRU, 1, 'ircd type')
-       echo "Using IRCD-RU IRCD"
-       ;;
-    [[Uu][Nn][Rr][Ee][Aa][Ll]])
-       AC_DEFINE_UNQUOTED(IRCD_UNREAL, 1, 'ircd type')
-       echo "Using Unreal IRCD"
-       ;;
-    [[Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]28])
-       AC_DEFINE_UNQUOTED(IRCD_ULTI28, 1, 'ircd type')
-       echo "Using Ultimate IRCD 2.8"
-       ;;
-    [[Uu][Ll][Tt][Ii][Mm][Aa][Tt][Ee]30])
-       AC_DEFINE_UNQUOTED(IRCD_ULTIMATE, 1, 'ircd type')
-       echo "Using Ultimate IRCD 3.0"
-       ;;
-    *)
-       AC_MSG_ERROR([IRCD type unrecognized])
-esac
-
-AC_ARG_ENABLE(no-modes, 
-[  --enable-no-modes Disables modes in the database (modes are enabled by default)],
-       [AC_DEFINE_UNQUOTED(NOMODES, 1, 'dont store modes in the database ?')])
-
-AC_OUTPUT(src/Makefile data/Makefile Makefile)
-
-echo
-echo "Thales will be installed in ${prefix}. To change this, run :"
-echo "     ./configure --prefix=DIRECTORY"
-echo "To compile Thales, run make (or gmake on non-GNU systems)"
-echo "To install Thales, run make install (or gmake install on non-GNU systems)"
-echo
-echo "Don't forget to read the README and INSTALL files for more detailed instructions"
-echo
diff --git a/data/Makefile.am b/data/Makefile.am
deleted file mode 100644 (file)
index 2b32503..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-data_DATA = mysql-bahamut.sql mysql-unreal.sql mysql-ultimate28.sql mysql-ultimate30.sql mysql-hybrid.sql mysql-ircdru.sql
-
-sysconf_DATA = thales.conf.default
-
-EXTRA_DIST = mysql-bahamut.sql mysql-unreal.sql mysql-ultimate28.sql mysql-ultimate30.sql mysql-hybrid.sql mysql-ircdru.sql thales.conf.default
-
-install-data-hook:
-       @if test -f $(DESTDIR)$(sysconfdir)/thales.conf ; then \
-               echo "warning: not overwriting existing thales.conf" >&2 ; \
-       else \
-               cp $(DESTDIR)$(sysconfdir)/thales.conf.default \
-                  $(DESTDIR)$(sysconfdir)/thales.conf ; \
-       fi
-
-uninstall-hook:
-       rm -f $(DESTDIR)$(sysconfdir)/thales.conf
diff --git a/data/Makefile.in b/data/Makefile.in
deleted file mode 100644 (file)
index 4db63f9..0000000
+++ /dev/null
@@ -1,349 +0,0 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005  Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-INSTALL = @INSTALL@
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-subdir = data
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
-       $(top_srcdir)/configure.in
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-       $(ACLOCAL_M4)
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = $(top_builddir)/src/config.h
-CONFIG_CLEAN_FILES =
-SOURCES =
-DIST_SOURCES =
-am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
-am__vpath_adj = case $$p in \
-    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
-    *) f=$$p;; \
-  esac;
-am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
-am__installdirs = "$(DESTDIR)$(datadir)" "$(DESTDIR)$(sysconfdir)"
-dataDATA_INSTALL = $(INSTALL_DATA)
-sysconfDATA_INSTALL = $(INSTALL_DATA)
-DATA = $(data_DATA) $(sysconf_DATA)
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
-AMTAR = @AMTAR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GREP = @GREP@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-ac_ct_CC = @ac_ct_CC@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build_alias = @build_alias@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host_alias = @host_alias@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-data_DATA = mysql-bahamut.sql mysql-unreal.sql mysql-ultimate28.sql mysql-ultimate30.sql mysql-hybrid.sql mysql-ircdru.sql
-sysconf_DATA = thales.conf.default
-EXTRA_DIST = mysql-bahamut.sql mysql-unreal.sql mysql-ultimate28.sql mysql-ultimate30.sql mysql-hybrid.sql mysql-ircdru.sql thales.conf.default
-all: all-am
-
-.SUFFIXES:
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-       @for dep in $?; do \
-         case '$(am__configure_deps)' in \
-           *$$dep*) \
-             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-               && exit 0; \
-             exit 1;; \
-         esac; \
-       done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  data/Makefile'; \
-       cd $(top_srcdir) && \
-         $(AUTOMAKE) --gnu  data/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-       @case '$?' in \
-         *config.status*) \
-           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-         *) \
-           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-       esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-uninstall-info-am:
-install-dataDATA: $(data_DATA)
-       @$(NORMAL_INSTALL)
-       test -z "$(datadir)" || $(mkdir_p) "$(DESTDIR)$(datadir)"
-       @list='$(data_DATA)'; for p in $$list; do \
-         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-         f=$(am__strip_dir) \
-         echo " $(dataDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(datadir)/$$f'"; \
-         $(dataDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(datadir)/$$f"; \
-       done
-
-uninstall-dataDATA:
-       @$(NORMAL_UNINSTALL)
-       @list='$(data_DATA)'; for p in $$list; do \
-         f=$(am__strip_dir) \
-         echo " rm -f '$(DESTDIR)$(datadir)/$$f'"; \
-         rm -f "$(DESTDIR)$(datadir)/$$f"; \
-       done
-install-sysconfDATA: $(sysconf_DATA)
-       @$(NORMAL_INSTALL)
-       test -z "$(sysconfdir)" || $(mkdir_p) "$(DESTDIR)$(sysconfdir)"
-       @list='$(sysconf_DATA)'; for p in $$list; do \
-         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
-         f=$(am__strip_dir) \
-         echo " $(sysconfDATA_INSTALL) '$$d$$p' '$(DESTDIR)$(sysconfdir)/$$f'"; \
-         $(sysconfDATA_INSTALL) "$$d$$p" "$(DESTDIR)$(sysconfdir)/$$f"; \
-       done
-
-uninstall-sysconfDATA:
-       @$(NORMAL_UNINSTALL)
-       @list='$(sysconf_DATA)'; for p in $$list; do \
-         f=$(am__strip_dir) \
-         echo " rm -f '$(DESTDIR)$(sysconfdir)/$$f'"; \
-         rm -f "$(DESTDIR)$(sysconfdir)/$$f"; \
-       done
-tags: TAGS
-TAGS:
-
-ctags: CTAGS
-CTAGS:
-
-
-distdir: $(DISTFILES)
-       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
-       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
-       list='$(DISTFILES)'; for file in $$list; do \
-         case $$file in \
-           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
-           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
-         esac; \
-         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
-         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
-           dir="/$$dir"; \
-           $(mkdir_p) "$(distdir)$$dir"; \
-         else \
-           dir=''; \
-         fi; \
-         if test -d $$d/$$file; then \
-           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
-           fi; \
-           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
-         else \
-           test -f $(distdir)/$$file \
-           || cp -p $$d/$$file $(distdir)/$$file \
-           || exit 1; \
-         fi; \
-       done
-check-am: all-am
-check: check-am
-all-am: Makefile $(DATA)
-installdirs:
-       for dir in "$(DESTDIR)$(datadir)" "$(DESTDIR)$(sysconfdir)"; do \
-         test -z "$$dir" || $(mkdir_p) "$$dir"; \
-       done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-         `test -z '$(STRIP)' || \
-           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
-       @echo "This command is intended for maintainers to use"
-       @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-generic mostlyclean-am
-
-distclean: distclean-am
-       -rm -f Makefile
-distclean-am: clean-am distclean-generic
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am: install-dataDATA
-       @$(NORMAL_INSTALL)
-       $(MAKE) $(AM_MAKEFLAGS) install-data-hook
-
-install-exec-am: install-sysconfDATA
-
-install-info: install-info-am
-
-install-man:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-       -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-dataDATA uninstall-info-am \
-       uninstall-sysconfDATA
-       @$(NORMAL_INSTALL)
-       $(MAKE) $(AM_MAKEFLAGS) uninstall-hook
-
-.PHONY: all all-am check check-am clean clean-generic distclean \
-       distclean-generic distdir dvi dvi-am html html-am info info-am \
-       install install-am install-data install-data-am \
-       install-data-hook install-dataDATA install-exec \
-       install-exec-am install-info install-info-am install-man \
-       install-strip install-sysconfDATA installcheck installcheck-am \
-       installdirs maintainer-clean maintainer-clean-generic \
-       mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \
-       uninstall-am uninstall-dataDATA uninstall-hook \
-       uninstall-info-am uninstall-sysconfDATA
-
-
-install-data-hook:
-       @if test -f $(DESTDIR)$(sysconfdir)/thales.conf ; then \
-               echo "warning: not overwriting existing thales.conf" >&2 ; \
-       else \
-               cp $(DESTDIR)$(sysconfdir)/thales.conf.default \
-                  $(DESTDIR)$(sysconfdir)/thales.conf ; \
-       fi
-
-uninstall-hook:
-       rm -f $(DESTDIR)$(sysconfdir)/thales.conf
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/data/mysql-bahamut.sql b/data/mysql-bahamut.sql
deleted file mode 100644 (file)
index 16162bc..0000000
+++ /dev/null
@@ -1,99 +0,0 @@
-DROP TABLE IF EXISTS chan;
-DROP TABLE IF EXISTS ison;
-DROP TABLE IF EXISTS server;
-DROP TABLE IF EXISTS user;
-DROP TABLE IF EXISTS maxvalues;
-
-CREATE TABLE chan (
-  chanid int unsigned NOT NULL auto_increment,
-  channel varchar(33) binary NOT NULL default '',
-  topic text,
-  topicauthor varchar(31) default NULL,
-  topictime datetime default NULL,
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ll enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',      
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_ul enum('Y','N') NOT NULL default 'N',
-  mode_um enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_ll_data int(10) NOT NULL default '0',
-  mode_lk_data varchar(23) NOT NULL default '',
-  PRIMARY KEY  (chanid),
-  UNIQUE KEY channel (channel)
-) TYPE=MyISAM;
-
-CREATE TABLE ison (
-  nickid int unsigned NOT NULL default '0',
-  chanid int unsigned NOT NULL default '0',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid,chanid),
-  KEY nickid (nickid),
-  KEY chanid (chanid)
-) TYPE=MyISAM;
-
-CREATE TABLE server (
-  servid int unsigned NOT NULL auto_increment,
-  server varchar(64) NOT NULL default '',
-  comment varchar(255) NOT NULL default '',
-  linkedto int unsigned default NULL,
-  connecttime datetime default NULL,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastsplit datetime default NULL,
-  PRIMARY KEY  (servid),
-  UNIQUE KEY server (server),
-  KEY linkedto (linkedto)
-) TYPE=MyISAM;
-
-
-CREATE TABLE user (
-  nickid int unsigned NOT NULL auto_increment,
-  nick varchar(31) NOT NULL default '',
-  realname varchar(51) NOT NULL default '',
-  hostname varchar(64) NOT NULL default '',
-  ipaddr varchar(16) NOT NULL default '',
-  username varchar(11) NOT NULL default '',
-  connecttime datetime NOT NULL default '0000-00-00 00:00:00',
-  servid int unsigned NOT NULL default '0',
-  away enum('Y','N') NOT NULL default 'N',
-  awaymsg text,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastquit datetime default NULL,
-  mode_la enum ('Y','N') NOT NULL default 'N',
-  mode_lb enum('Y','N') NOT NULL default 'N',  
-  mode_lc enum('Y','N') NOT NULL default 'N',  
-  mode_ld enum('Y','N') NOT NULL default 'N',  
-  mode_le enum('Y','N') NOT NULL default 'N',  
-  mode_lf enum('Y','N') NOT NULL default 'N',  
-  mode_lg enum('Y','N') NOT NULL default 'N',  
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_ly enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid),
-  UNIQUE KEY nick (nick),
-  KEY servid (servid)
-) TYPE=MyISAM;
-
-CREATE TABLE maxvalues (
-  type varchar(10) NOT NULL default '',
-  val int unsigned NOT NULL default '0',
-  time datetime NOT NULL default '0000-00-00 00:00:00',
-  PRIMARY KEY(type)
-) TYPE=MyISAM;
diff --git a/data/mysql-hybrid.sql b/data/mysql-hybrid.sql
deleted file mode 100644 (file)
index 8b11a86..0000000
+++ /dev/null
@@ -1,175 +0,0 @@
-DROP TABLE IF EXISTS chan;
-DROP TABLE IF EXISTS ison;
-DROP TABLE IF EXISTS server;
-DROP TABLE IF EXISTS user;
-DROP TABLE IF EXISTS maxvalues;
-
-CREATE TABLE chan (
-  chanid int unsigned NOT NULL auto_increment,
-  channel varchar(200) binary NOT NULL default '',
-  topic text,
-  topicauthor varchar(31) default NULL,
-  topictime datetime default NULL,
-  mode_la enum('Y','N') NOT NULL default 'N',
-  mode_lb enum('Y','N') NOT NULL default 'N',
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_ld enum('Y','N') NOT NULL default 'N',
-  mode_le enum('Y','N') NOT NULL default 'N',
-  mode_lf enum('Y','N') NOT NULL default 'N',
-  mode_lg enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lj enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ll enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lq enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_lu enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_lx enum('Y','N') NOT NULL default 'N',
-  mode_ly enum('Y','N') NOT NULL default 'N',
-  mode_lz enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_ub enum('Y','N') NOT NULL default 'N',
-  mode_uc enum('Y','N') NOT NULL default 'N',
-  mode_ud enum('Y','N') NOT NULL default 'N',
-  mode_ue enum('Y','N') NOT NULL default 'N',
-  mode_uf enum('Y','N') NOT NULL default 'N',
-  mode_ug enum('Y','N') NOT NULL default 'N',
-  mode_uh enum('Y','N') NOT NULL default 'N',
-  mode_ui enum('Y','N') NOT NULL default 'N',
-  mode_uj enum('Y','N') NOT NULL default 'N',
-  mode_uk enum('Y','N') NOT NULL default 'N',
-  mode_ul enum('Y','N') NOT NULL default 'N',
-  mode_um enum('Y','N') NOT NULL default 'N',
-  mode_un enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_up enum('Y','N') NOT NULL default 'N',
-  mode_uq enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_us enum('Y','N') NOT NULL default 'N',
-  mode_ut enum('Y','N') NOT NULL default 'N',
-  mode_uu enum('Y','N') NOT NULL default 'N',
-  mode_uv enum('Y','N') NOT NULL default 'N',
-  mode_uw enum('Y','N') NOT NULL default 'N',
-  mode_ux enum('Y','N') NOT NULL default 'N',
-  mode_uy enum('Y','N') NOT NULL default 'N',
-  mode_uz enum('Y','N') NOT NULL default 'N',
-  mode_ll_data int(10) NOT NULL default '0',
-  mode_lk_data varchar(23) NOT NULL default '',
-  UNIQUE KEY channel (channel),
-  PRIMARY KEY  (chanid)
-) TYPE=MyISAM;
-
-
-CREATE TABLE ison (
-  nickid int unsigned NOT NULL default '0',
-  chanid int unsigned NOT NULL default '0',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid,chanid),
-  KEY nickid (nickid),
-  KEY chanid (chanid)
-) TYPE=MyISAM;
-
-CREATE TABLE server (
-  servid int unsigned NOT NULL auto_increment,
-  server varchar(64) NOT NULL default '',
-  comment varchar(255) NOT NULL default '',
-  linkedto int unsigned default NULL,
-  connecttime datetime default NULL,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastsplit datetime default NULL,
-  PRIMARY KEY  (servid),
-  UNIQUE KEY server (server),
-  KEY linkedto (linkedto)
-) TYPE=MyISAM;
-
-
-CREATE TABLE user (
-  nickid int unsigned NOT NULL auto_increment,
-  nick varchar(64) NOT NULL default '',
-  realname varchar(51) NOT NULL default '',
-  hostname varchar(64) NOT NULL default '',
-  hiddenhostname varchar(64) NOT NULL default '',
-  ipaddr varchar(16) NOT NULL default '',
-  username varchar(11) NOT NULL default '',
-  connecttime datetime NOT NULL default '0000-00-00 00:00:00',
-  servid int unsigned NOT NULL default '0',
-  away enum('Y','N') NOT NULL default 'N',
-  awaymsg text,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastquit datetime default NULL,
-  mode_la enum('Y','N') NOT NULL default 'N',
-  mode_lb enum('Y','N') NOT NULL default 'N',
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_ld enum('Y','N') NOT NULL default 'N',
-  mode_le enum('Y','N') NOT NULL default 'N',
-  mode_lf enum('Y','N') NOT NULL default 'N',
-  mode_lg enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lj enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ll enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lq enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_lu enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_lx enum('Y','N') NOT NULL default 'N',
-  mode_ly enum('Y','N') NOT NULL default 'N',
-  mode_lz enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_ub enum('Y','N') NOT NULL default 'N',
-  mode_uc enum('Y','N') NOT NULL default 'N',
-  mode_ud enum('Y','N') NOT NULL default 'N',
-  mode_ue enum('Y','N') NOT NULL default 'N',
-  mode_uf enum('Y','N') NOT NULL default 'N',
-  mode_ug enum('Y','N') NOT NULL default 'N',
-  mode_uh enum('Y','N') NOT NULL default 'N',
-  mode_ui enum('Y','N') NOT NULL default 'N',
-  mode_uj enum('Y','N') NOT NULL default 'N',
-  mode_uk enum('Y','N') NOT NULL default 'N',
-  mode_ul enum('Y','N') NOT NULL default 'N',
-  mode_um enum('Y','N') NOT NULL default 'N',
-  mode_un enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_up enum('Y','N') NOT NULL default 'N',
-  mode_uq enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_us enum('Y','N') NOT NULL default 'N',
-  mode_ut enum('Y','N') NOT NULL default 'N',
-  mode_uu enum('Y','N') NOT NULL default 'N',
-  mode_uv enum('Y','N') NOT NULL default 'N',
-  mode_uw enum('Y','N') NOT NULL default 'N',
-  mode_ux enum('Y','N') NOT NULL default 'N',
-  mode_uy enum('Y','N') NOT NULL default 'N',
-  mode_uz enum('Y','N') NOT NULL default 'N',
-  UNIQUE KEY nick (nick),
-  PRIMARY KEY  (nickid),
-  KEY servid (servid)
-) TYPE=MyISAM;
-
-
-
-CREATE TABLE maxvalues (
-  type varchar(10) NOT NULL default '',
-  val int unsigned NOT NULL default '0',
-  time datetime NOT NULL default '0000-00-00 00:00:00',
-  PRIMARY KEY(type)
-) TYPE=MyISAM;
diff --git a/data/mysql-ircdru.sql b/data/mysql-ircdru.sql
deleted file mode 100644 (file)
index 233d3f9..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-DROP TABLE IF EXISTS chan;
-DROP TABLE IF EXISTS ison;
-DROP TABLE IF EXISTS server;
-DROP TABLE IF EXISTS user;
-DROP TABLE IF EXISTS maxvalues;
-
-CREATE TABLE chan (
-  chanid int unsigned NOT NULL auto_increment,
-  channel varchar(33) binary NOT NULL default '',
-  topic text,
-  topicauthor varchar(31) default NULL,
-  topictime datetime default NULL,
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ll enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_l7 enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',      
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_ul enum('Y','N') NOT NULL default 'N',
-  mode_um enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_ll_data int(10) NOT NULL default '0',
-  mode_lk_data varchar(23) NOT NULL default '',
-  PRIMARY KEY  (chanid),
-  UNIQUE KEY channel (channel)
-) TYPE=MyISAM;
-
-CREATE TABLE ison (
-  nickid int unsigned NOT NULL default '0',
-  chanid int unsigned NOT NULL default '0',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid,chanid),
-  KEY nickid (nickid),
-  KEY chanid (chanid)
-) TYPE=MyISAM;
-
-CREATE TABLE server (
-  servid int unsigned NOT NULL auto_increment,
-  server varchar(64) NOT NULL default '',
-  comment varchar(255) NOT NULL default '',
-  linkedto int unsigned default NULL,
-  connecttime datetime default NULL,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastsplit datetime default NULL,
-  PRIMARY KEY  (servid),
-  UNIQUE KEY server (server),
-  KEY linkedto (linkedto)
-) TYPE=MyISAM;
-
-
-CREATE TABLE user (
-  nickid int unsigned NOT NULL auto_increment,
-  nick varchar(31) NOT NULL default '',
-  realname varchar(51) NOT NULL default '',
-  hostname varchar(64) NOT NULL default '',
-  ipaddr varchar(16) NOT NULL default '',
-  username varchar(11) NOT NULL default '',
-  connecttime datetime NOT NULL default '0000-00-00 00:00:00',
-  servid int unsigned NOT NULL default '0',
-  away enum('Y','N') NOT NULL default 'N',
-  awaymsg text,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastquit datetime default NULL,
-  mode_la enum('Y','N') NOT NULL default 'N',  
-  mode_lb enum('Y','N') NOT NULL default 'N',  
-  mode_lc enum('Y','N') NOT NULL default 'N',  
-  mode_ld enum('Y','N') NOT NULL default 'N',  
-  mode_le enum('Y','N') NOT NULL default 'N',  
-  mode_lf enum('Y','N') NOT NULL default 'N',  
-  mode_lg enum('Y','N') NOT NULL default 'N',  
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_ly enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid),
-  UNIQUE KEY nick (nick),
-  KEY servid (servid)
-) TYPE=MyISAM;
-
-CREATE TABLE maxvalues (
-  type varchar(10) NOT NULL default '',
-  val int unsigned NOT NULL default '0',
-  time datetime NOT NULL default '0000-00-00 00:00:00',
-  PRIMARY KEY(type)
-) TYPE=MyISAM;
diff --git a/data/mysql-ultimate28.sql b/data/mysql-ultimate28.sql
deleted file mode 100644 (file)
index 57f5c13..0000000
+++ /dev/null
@@ -1,124 +0,0 @@
-DROP TABLE IF EXISTS chan;
-DROP TABLE IF EXISTS ison;
-DROP TABLE IF EXISTS server;
-DROP TABLE IF EXISTS user;
-DROP TABLE IF EXISTS maxvalues;
-
-CREATE TABLE chan (
-  chanid int unsigned NOT NULL auto_increment,
-  channel varchar(33) binary NOT NULL default '',
-  topic text,
-  topicauthor varchar(31) default NULL,
-  topictime datetime default NULL,
-  mode_le enum('Y','N') NOT NULL default 'N',
-  mode_lf enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ll enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  mode_lx enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_ui enum('Y','N') NOT NULL default 'N',
-  mode_uk enum('Y','N') NOT NULL default 'N',
-  mode_ul enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_us enum('Y','N') NOT NULL default 'N',
-  mode_ll_data int(10) NOT NULL default '0',
-  mode_lk_data varchar(23) NOT NULL default '',
-  mode_ul_data varchar(33) NOT NULL default '',
-  PRIMARY KEY  (chanid),
-  UNIQUE KEY channel (channel)
-) TYPE=MyISAM;
-
-CREATE TABLE ison (
-  nickid int unsigned NOT NULL default '0',
-  chanid int unsigned NOT NULL default '0',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid,chanid),
-  KEY nickid (nickid),
-  KEY chanid (chanid)
-) TYPE=MyISAM;
-
-CREATE TABLE server (
-  servid int unsigned NOT NULL auto_increment,
-  server varchar(64) NOT NULL default '',
-  comment varchar(255) NOT NULL default '',
-  linkedto int unsigned default NULL,
-  connecttime datetime default NULL,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastsplit datetime default NULL,
-  PRIMARY KEY  (servid),
-  UNIQUE KEY server (server),
-  KEY linkedto (linkedto)
-) TYPE=MyISAM;
-
-
-CREATE TABLE user (
-  nickid int unsigned NOT NULL auto_increment,
-  nick varchar(31) NOT NULL default '',
-  realname varchar(51) NOT NULL default '',
-  hostname varchar(64) NOT NULL default '',
-  hiddenhostname varchar(64) NOT NULL default '',
-  ipaddr varchar(16) NOT NULL default '',
-  username varchar(11) NOT NULL default '',
-  connecttime datetime NOT NULL default '0000-00-00 00:00:00',
-  servid int unsigned NOT NULL default '0',
-  away enum('Y','N') NOT NULL default 'N',
-  awaymsg text,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastquit datetime default NULL, 
-  mode_la enum('Y','N') NOT NULL default 'N',
-  mode_lb enum('Y','N') NOT NULL default 'N',
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_ld enum('Y','N') NOT NULL default 'N',
-  mode_lf enum('Y','N') NOT NULL default 'N',
-  mode_lg enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_lx enum('Y','N') NOT NULL default 'N',
-  mode_lz enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_ub enum('Y','N') NOT NULL default 'N',
-  mode_uc enum('Y','N') NOT NULL default 'N',
-  mode_uf enum('Y','N') NOT NULL default 'N',
-  mode_ug enum('Y','N') NOT NULL default 'N',
-  mode_um enum('Y','N') NOT NULL default 'N',
-  mode_un enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_up enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_us enum('Y','N') NOT NULL default 'N',
-  mode_ut enum('Y','N') NOT NULL default 'N',
-  mode_uw enum('Y','N') NOT NULL default 'N',
-  mode_ux enum('Y','N') NOT NULL default 'N',
-  mode_uz enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid),
-  UNIQUE KEY nick (nick),
-  KEY servid (servid)
-) TYPE=MyISAM;
-
-CREATE TABLE maxvalues (
-  type varchar(10) NOT NULL default '',
-  val int unsigned NOT NULL default '0',
-  time datetime NOT NULL default '0000-00-00 00:00:00',
-  PRIMARY KEY(type)
-) TYPE=MyISAM;
diff --git a/data/mysql-ultimate30.sql b/data/mysql-ultimate30.sql
deleted file mode 100644 (file)
index 0d20e78..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-DROP TABLE IF EXISTS chan;
-DROP TABLE IF EXISTS ison;
-DROP TABLE IF EXISTS server;
-DROP TABLE IF EXISTS user;
-DROP TABLE IF EXISTS maxvalues;
-
-CREATE TABLE chan (
-  chanid int unsigned NOT NULL auto_increment,
-  channel varchar(33) binary NOT NULL default '',
-  topic text,
-  topicauthor varchar(31) default NULL,
-  topictime datetime default NULL,
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_le enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ll enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_uk enum('Y','N') NOT NULL default 'N',
-  mode_un enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_ll_data int(10) NOT NULL default '0',
-  mode_lk_data varchar(23) NOT NULL default '',
-  PRIMARY KEY  (chanid),
-  UNIQUE KEY channel (channel)
-) TYPE=MyISAM;
-
-CREATE TABLE ison (
-  nickid int unsigned NOT NULL default '0',
-  chanid int unsigned NOT NULL default '0',
-  mode_la enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid,chanid),
-  KEY nickid (nickid),
-  KEY chanid (chanid)
-) TYPE=MyISAM;
-
-CREATE TABLE server (
-  servid int unsigned NOT NULL auto_increment,
-  server varchar(64) NOT NULL default '',
-  comment varchar(255) NOT NULL default '',
-  linkedto int unsigned default NULL,
-  connecttime datetime default NULL,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastsplit datetime default NULL,
-  PRIMARY KEY  (servid),
-  UNIQUE KEY server (server),
-  KEY linkedto (linkedto)
-) TYPE=MyISAM;
-
-
-CREATE TABLE user (
-  nickid int unsigned NOT NULL auto_increment,
-  nick varchar(31) NOT NULL default '',
-  realname varchar(51) NOT NULL default '',
-  hostname varchar(64) NOT NULL default '',
-  hiddenhostname varchar(64) NOT NULL default '',
-  ipaddr varchar(16) NOT NULL default '',
-  username varchar(11) NOT NULL default '',
-  connecttime datetime NOT NULL default '0000-00-00 00:00:00',
-  servid int unsigned NOT NULL default '0',
-  away enum('Y','N') NOT NULL default 'N',
-  awaymsg text,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastquit datetime default NULL, 
-  mode_la enum('Y','N') NOT NULL default 'N',
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_ld enum('Y','N') NOT NULL default 'N',
-  mode_le enum('Y','N') NOT NULL default 'N',
-  mode_lf enum('Y','N') NOT NULL default 'N',
-  mode_lg enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lj enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_lx enum('Y','N') NOT NULL default 'N',
-  mode_ly enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_uc enum('Y','N') NOT NULL default 'N',
-  mode_ud enum('Y','N') NOT NULL default 'N',
-  mode_uf enum('Y','N') NOT NULL default 'N',
-  mode_uj enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_up enum('Y','N') NOT NULL default 'N',
-  mode_us enum('Y','N') NOT NULL default 'N',
-  mode_ut enum('Y','N') NOT NULL default 'N',
-  mode_uw enum('Y','N') NOT NULL default 'N',
-  mode_uz enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid),
-  UNIQUE KEY nick (nick),
-  KEY servid (servid)
-) TYPE=MyISAM;
-
-CREATE TABLE maxvalues (
-  type varchar(10) NOT NULL default '',
-  val int unsigned NOT NULL default '0',
-  time datetime NOT NULL default '0000-00-00 00:00:00',
-  PRIMARY KEY(type)
-) TYPE=MyISAM;
diff --git a/data/mysql-unreal.sql b/data/mysql-unreal.sql
deleted file mode 100644 (file)
index 6c4eb49..0000000
+++ /dev/null
@@ -1,133 +0,0 @@
-DROP TABLE IF EXISTS chan;
-DROP TABLE IF EXISTS ison;
-DROP TABLE IF EXISTS server;
-DROP TABLE IF EXISTS user;
-DROP TABLE IF EXISTS maxvalues;
-
-CREATE TABLE chan (
-  chanid int unsigned NOT NULL auto_increment,
-  channel varchar(33) binary NOT NULL default '',
-  topic text,
-  topicauthor varchar(31) default NULL,
-  topictime datetime default NULL,
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_lf enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lj enum('Y','N') NOT NULL default 'N',
-  mode_lk enum('Y','N') NOT NULL default 'N',
-  mode_ll enum('Y','N') NOT NULL default 'N',
-  mode_lm enum('Y','N') NOT NULL default 'N',
-  mode_ln enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_ls enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_lu enum('Y','N') NOT NULL default 'N',
-  mode_ly enum('Y','N') NOT NULL default 'N',
-  mode_lz enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_uc enum('Y','N') NOT NULL default 'N',
-  mode_ud enum('Y','N') NOT NULL default 'N',
-  mode_ug enum('Y','N') NOT NULL default 'N',
-  mode_uh enum('Y','N') NOT NULL default 'N',
-  mode_uk enum('Y','N') NOT NULL default 'N',
-  mode_ul enum('Y','N') NOT NULL default 'N',
-  mode_um enum('Y','N') NOT NULL default 'N',
-  mode_un enum('Y','N') NOT NULL default 'N',
-  mode_uo enum('Y','N') NOT NULL default 'N',
-  mode_uq enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_us enum('Y','N') NOT NULL default 'N',
-  mode_ut enum('Y','N') NOT NULL default 'N',
-  mode_uv enum('Y','N') NOT NULL default 'N',
-  mode_ux enum('Y','N') NOT NULL default 'N',
-  mode_uu enum('Y','N') NOT NULL default 'N',
-  mode_lf_data varchar(20) NOT NULL default '',
-  mode_lj_data varchar(5) NOT NULL default '',
-  mode_lk_data varchar(23) NOT NULL default '',
-  mode_ll_data int(10) NOT NULL default '0',
-  mode_ul_data varchar(33) NOT NULL default '',
-  PRIMARY KEY  (chanid),
-  UNIQUE KEY channel (channel)
-) TYPE=MyISAM;
-
-CREATE TABLE ison (
-  nickid int unsigned NOT NULL default '0',
-  chanid int unsigned NOT NULL default '0',
-  mode_la enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lq enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid,chanid),
-  KEY nickid (nickid),
-  KEY chanid (chanid)
-) TYPE=MyISAM;
-
-CREATE TABLE server (
-  servid int unsigned NOT NULL auto_increment,
-  server varchar(64) NOT NULL default '',
-  comment varchar(255) NOT NULL default '',
-  linkedto int unsigned default NULL,
-  connecttime datetime default NULL,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastsplit datetime default NULL, 
-  PRIMARY KEY  (servid),
-  UNIQUE KEY server (server),
-  KEY linkedto (linkedto)
-) TYPE=MyISAM;
-
-
-CREATE TABLE user (
-  nickid int unsigned NOT NULL auto_increment,
-  nick varchar(31) NOT NULL default '',
-  realname varchar(51) NOT NULL default '',
-  hostname varchar(64) NOT NULL default '',
-  hiddenhostname varchar(64) NOT NULL default '',
-  username varchar(11) NOT NULL default '',
-  swhois varchar(32) NOT NULL default '',
-  connecttime datetime NOT NULL default '0000-00-00 00:00:00',
-  servid int unsigned NOT NULL default '0',
-  away enum('Y','N') NOT NULL default 'N',
-  awaymsg text,
-  online enum('Y','N') NOT NULL DEFAULT 'Y',
-  lastquit datetime default NULL,
-  mode_la enum('Y','N') NOT NULL default 'N',
-  mode_lc enum('Y','N') NOT NULL default 'N',
-  mode_ld enum('Y','N') NOT NULL default 'N',
-  mode_lg enum('Y','N') NOT NULL default 'N',
-  mode_lh enum('Y','N') NOT NULL default 'N',
-  mode_li enum('Y','N') NOT NULL default 'N',
-  mode_lo enum('Y','N') NOT NULL default 'N',
-  mode_lp enum('Y','N') NOT NULL default 'N',
-  mode_lq enum('Y','N') NOT NULL default 'N',
-  mode_lr enum('Y','N') NOT NULL default 'N',
-  mode_lt enum('Y','N') NOT NULL default 'N',
-  mode_lv enum('Y','N') NOT NULL default 'N',
-  mode_lw enum('Y','N') NOT NULL default 'N',
-  mode_lx enum('Y','N') NOT NULL default 'N',
-  mode_lz enum('Y','N') NOT NULL default 'N',
-  mode_ua enum('Y','N') NOT NULL default 'N',
-  mode_ub enum('Y','N') NOT NULL default 'N',
-  mode_uc enum('Y','N') NOT NULL default 'N',
-  mode_ud enum('Y','N') NOT NULL default 'N',
-  mode_ug enum('Y','N') NOT NULL default 'N',
-  mode_uh enum('Y','N') NOT NULL default 'N',
-  mode_un enum('Y','N') NOT NULL default 'N',
-  mode_ur enum('Y','N') NOT NULL default 'N',
-  mode_us enum('Y','N') NOT NULL default 'N',
-  mode_ut enum('Y','N') NOT NULL default 'N',
-  mode_uv enum('Y','N') NOT NULL default 'N',
-  mode_uu enum('Y','N') NOT NULL default 'N',
-  mode_uw enum('Y','N') NOT NULL default 'N',
-  PRIMARY KEY  (nickid),
-  UNIQUE KEY nick (nick),
-  KEY servid (servid)
-) TYPE=MyISAM;
-
-CREATE TABLE maxvalues (
-  type varchar(10) NOT NULL default '',
-  val int unsigned NOT NULL default '0',
-  time datetime NOT NULL default '0000-00-00 00:00:00',
-  PRIMARY KEY(type)
-) TYPE=MyISAM;
diff --git a/data/thales.conf.default b/data/thales.conf.default
deleted file mode 100644 (file)
index 3f267b2..0000000
+++ /dev/null
@@ -1,204 +0,0 @@
-# Configuration file for Thales.
-#
-# The format of this file is fairly simple: a line beginning with a # is a
-# comment, and any other non-blank line is expected to be a directive and
-# parameters, separated by spaces or tabs.  For example:
-#
-#   Directive Parameter-1 Parameter-2 ...
-#
-# Directives are case-insensitive.  Note that some directives do not take
-# any parameters; these are typically "on-off" directives, for which simply
-# including the directive in this file (or removing it) has an effect on
-# Services' functionality.
-#
-# If a parameter's value is a string which includes spaces, enclose the
-# string in double quotation marks, like the example below.  Quotes may be
-# used around any string at all for clarity.
-#
-#   "This is a parameter string with spaces in it"
-#
-# If you need to include a double quote inside a quoted string, precede it
-# by a backslash:
-#
-#   "This string has \"double quotes\" in it"
-#
-# Time parameters can be specified either as an integer representing a
-# number of seconds (e.g. "3600" = 1 hour), or as an integer with a unit
-# specifier: "s" = seconds, "m" = minutes, "h" = hours, "d" = days.
-# Combinations (such as "1h30m") are not permitted.  Examples (all of which
-# represent the same length of time, one day):
-#
-#   "86400", "86400s", "1440m", "24h", "1d"
-#
-# In the documentation for each directive, one of the following will be
-# included to indicate whether an option is required:
-#
-# [REQUIRED]
-#     Indicates a directive which must be given.  Without it, Services will
-#     not start.
-#
-# [RECOMMENDED]
-#     Indicates a directive which may be omitted, but omitting it may cause
-#     undesirable side effects.
-#
-# [OPTIONAL]
-#     Indicates a directive which is optional.  If not given, the feature
-#     will typically be disabled.  If this is not the case, more
-#     information will be given in the documentation.
-#
-# [DISCOURAGED]
-#     Indicates a directive which may cause undesirable side effects if
-#     specified.
-#
-# [DEPRECATED]
-#     Indicates a directive which will disappear in a future version of
-#     Services, usually because its functionality has been either
-#     superseded by that of other directives or incorporated into the main
-#     program.
-
-###########################################################################
-#
-# Remote server configuration
-#
-###########################################################################
-
-# RemoteServer <hostname> <port> <password>  [REQUIRED]
-#     Specifies the remote server hostname and port.  The hostname may
-#     either be a standard Internet hostname or dotted-quad numeric
-#     address; the port number must be an integer between 1 and 65535
-#     inclusive.  The password is a string which should be enclosed in
-#     double quotes if it contains any spaces (or just for clarity).
-
-RemoteServer    localhost 6667 "mypass"
-
-# LocalAddress <hostname> [port]  [OPTIONAL]
-#     Specifies the local address to bind to before connecting to the
-#     remote server.  This may be useful on multihomed hosts.  The hostname
-#     and port number are specified the same way as with the RemoteServer
-#     directive.  If this is not specified, Thales will let the operating
-#     system choose the local address.  If only a hostname is specified,
-#     Thales will bind to that address but let the operating system
-#     choose the local port number.
-#
-#     If you don't know what this means or don't need to use it, just leave
-#     the directive commented out.
-
-#LocalAddress   nowhere. 0
-
-###########################################################################
-#
-# Thales identification
-#
-###########################################################################
-
-# ServerName <name>  [REQUIRED]
-#     Specifies the IRC server name which Services should use.  May be
-#     overridden by the -name command-line option.
-
-ServerName  "localhost"
-
-# ServerDesc <text>  [REQUIRED]
-#     Specifies the text which should appear as the server's information in
-#     /whois and similar queries.  May be overridden by the -desc
-#     command-line option.
-
-ServerDesc  "Thales IRC2MySQL Gateway"
-
-###########################################################################
-#
-# MySQL Configuration
-#
-###########################################################################
-
-# MysqlServer <name>  [REQUIRED]
-#     Specifies the address of the MySQL server you want to use.
-#     Should probably stay "localhost"
-
-MysqlServer  "localhost"
-
-
-# MysqlPort <port> [REQUIRED]
-#     Specifies the port of the MySQL server you want to use.
-#     Default is 3306
-MysqlPort 3307
-
-
-# MysqlDatabase <name>  [REQUIRED]
-#     Specifies the name of the MySQL database you want to store data in.
-#     The Database must exist, and the user specified below must have enough
-#     access to it.
-
-MysqlDatabase "thales"
-
-
-# MysqlPrefix <prefix> [OPTIONAL]
-#     Specifies the table prefix e.g. prefix_user or prefix2_user
-#     This will only edit the SQL queries within the program,
-#     existing tables have to be renamed manual! You should only
-#     change here something if you know exactly what you do!
-MysqlPrefix ""
-
-# MysqlUser <name> [REQUIRED]
-#     Username to use when connecting to MySQL
-
-MysqlUser "root"
-
-# MysqlPassword <password> [REQUIRED]
-#     Password to use when connecting to MySQL.
-
-MysqlPassword ""
-
-###########################################################################
-#
-# Thales data filenames
-#
-###########################################################################
-
-# NOTE: All filenames are relative to the Thales directory.
-
-# PIDFile <filename>  [REQUIRED]
-#     Specifies the name of the file containing Services' process ID.
-
-PIDFile     thales.pid
-
-# LogFile <filename> [REQUIRED]
-#     Specifies the name of the log file.
-
-LogFile     thales.log
-
-###########################################################################
-#
-# Cache configuration
-#
-###########################################################################
-
-# Thales is now able to keep nicknames and servers in the tables after they
-# quit/split. Using this feature, you can add a "last seen" function to your
-# web WHOIS system.
-# To disable this feature, set ServerCacheTime and UserCacheTime to 0 (that's
-# the default)
-
-# Number of seconds during which we must keep servers in the server table.
-# Since servers split are uncommon, we keep them for a week.
-
-#ServerCacheTime 604800
-ServerCacheTime 0
-
-# How often (in seconds) to we check for obsoleted servers ?
-
-ServerCleanFreq 60480
-
-# Number of seconds during which we must keep users in the user table.
-# Since users connect/disconnect are very common, we don't keep them for a
-# long time. 2 days looks reasonnable.
-
-#UserCacheTime 172800
-UserCacheTime 0
-
-# How often (in seconds) to we check for obsoleted users ?
-
-UserCleanFreq 3600
-
-# PRIVACY SETTING : Hide +k channels' passwords in the chan table
-
-HidePasswords
diff --git a/depcomp b/depcomp
deleted file mode 100755 (executable)
index 6589965..0000000
--- a/depcomp
+++ /dev/null
@@ -1,411 +0,0 @@
-#! /bin/sh
-
-# depcomp - compile a program generating dependencies as side-effects
-# Copyright 1999, 2000 Free Software Foundation, Inc.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, 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 Alexandre Oliva <oliva@dcc.unicamp.br>.
-
-if test -z "$depmode" || test -z "$source" || test -z "$object"; then
-  echo "depcomp: Variables source, object and depmode must be set" 1>&2
-  exit 1
-fi
-# `libtool' can also be set to `yes' or `no'.
-
-depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`}
-tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
-
-rm -f "$tmpdepfile"
-
-# Some modes work just like other modes, but use different flags.  We
-# parameterize here, but still list the modes in the big case below,
-# to make depend.m4 easier to write.  Note that we *cannot* use a case
-# here, because this file can only contain one case statement.
-if test "$depmode" = hp; then
-  # HP compiler uses -M and no extra arg.
-  gccflag=-M
-  depmode=gcc
-fi
-
-if test "$depmode" = dashXmstdout; then
-   # This is just like dashmstdout with a different argument.
-   dashmflag=-xM
-   depmode=dashmstdout
-fi
-
-case "$depmode" in
-gcc3)
-## gcc 3 implements dependency tracking that does exactly what
-## we want.  Yay!  Note: for some reason libtool 1.4 doesn't like
-## it if -MD -MP comes after the -MF stuff.  Hmm.
-  "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  mv "$tmpdepfile" "$depfile"
-  ;;
-
-gcc)
-## There are various ways to get dependency output from gcc.  Here's
-## why we pick this rather obscure method:
-## - Don't want to use -MD because we'd like the dependencies to end
-##   up in a subdir.  Having to rename by hand is ugly.
-##   (We might end up doing this anyway to support other compilers.)
-## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
-##   -MM, not -M (despite what the docs say).
-## - Using -M directly means running the compiler twice (even worse
-##   than renaming).
-  if test -z "$gccflag"; then
-    gccflag=-MD,
-  fi
-  "$@" -Wp,"$gccflag$tmpdepfile"
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  rm -f "$depfile"
-  echo "$object : \\" > "$depfile"
-  alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
-## The second -e expression handles DOS-style file names with drive letters.
-  sed -e 's/^[^:]*: / /' \
-      -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
-## This next piece of magic avoids the `deleted header file' problem.
-## The problem is that when a header file which appears in a .P file
-## is deleted, the dependency causes make to die (because there is
-## typically no way to rebuild the header).  We avoid this by adding
-## dummy dependencies for each header file.  Too bad gcc doesn't do
-## this for us directly.
-  tr ' ' '
-' < "$tmpdepfile" |
-## Some versions of gcc put a space before the `:'.  On the theory
-## that the space means something, we add a space to the output as
-## well.
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly.  Breaking it into two sed invocations is a workaround.
-    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-hp)
-  # This case exists only to let depend.m4 do its work.  It works by
-  # looking at the text of this script.  This case will never be run,
-  # since it is checked for above.
-  exit 1
-  ;;
-
-sgi)
-  if test "$libtool" = yes; then
-    "$@" "-Wp,-MDupdate,$tmpdepfile"
-  else
-    "$@" -MDupdate "$tmpdepfile"
-  fi
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-  rm -f "$depfile"
-
-  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
-    echo "$object : \\" > "$depfile"
-
-    # Clip off the initial element (the dependent).  Don't try to be
-    # clever and replace this with sed code, as IRIX sed won't handle
-    # lines with more than a fixed number of characters (4096 in
-    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
-    # the IRIX cc adds comments like `#:fec' to the end of the
-    # dependency line.
-    tr ' ' '
-' < "$tmpdepfile" \
-    | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
-    tr '
-' ' ' >> $depfile
-    echo >> $depfile
-
-    # The second pass generates a dummy entry for each header file.
-    tr ' ' '
-' < "$tmpdepfile" \
-   | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
-   >> $depfile
-  else
-    # The sourcefile does not contain any dependencies, so just
-    # store a dummy comment line, to avoid errors with the Makefile
-    # "include basename.Plo" scheme.
-    echo "#dummy" > "$depfile"
-  fi
-  rm -f "$tmpdepfile"
-  ;;
-
-aix)
-  # The C for AIX Compiler uses -M and outputs the dependencies
-  # in a .u file.  This file always lives in the current directory.
-  # Also, the AIX compiler puts `$object:' at the start of each line;
-  # $object doesn't have directory information.
-  stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
-  tmpdepfile="$stripped.u"
-  outname="$stripped.o"
-  if test "$libtool" = yes; then
-    "$@" -Wc,-M
-  else
-    "$@" -M
-  fi
-
-  stat=$?
-  if test $stat -eq 0; then :
-  else
-    rm -f "$tmpdepfile"
-    exit $stat
-  fi
-
-  if test -f "$tmpdepfile"; then
-    # Each line is of the form `foo.o: dependent.h'.
-    # Do two passes, one to just change these to
-    # `$object: dependent.h' and one to simply `dependent.h:'.
-    sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
-    sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
-  else
-    # The sourcefile does not contain any dependencies, so just
-    # store a dummy comment line, to avoid errors with the Makefile
-    # "include basename.Plo" scheme.
-    echo "#dummy" > "$depfile"
-  fi
-  rm -f "$tmpdepfile"
-  ;;
-
-tru64)
-   # The Tru64 AIX compiler uses -MD to generate dependencies as a side
-   # effect.  `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
-   # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put 
-   # dependencies in `foo.d' instead, so we check for that too.
-   # Subdirectories are respected.
-
-   tmpdepfile1="$object.d"
-   tmpdepfile2=`echo "$object" | sed -e 's/.o$/.d/'` 
-   if test "$libtool" = yes; then
-      "$@" -Wc,-MD
-   else
-      "$@" -MD
-   fi
-
-   stat=$?
-   if test $stat -eq 0; then :
-   else
-      rm -f "$tmpdepfile1" "$tmpdepfile2"
-      exit $stat
-   fi
-
-   if test -f "$tmpdepfile1"; then
-      tmpdepfile="$tmpdepfile1"
-   else
-      tmpdepfile="$tmpdepfile2"
-   fi
-   if test -f "$tmpdepfile"; then
-      sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
-      # That's a space and a tab in the [].
-      sed -e 's,^.*\.[a-z]*:[  ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
-   else
-      echo "#dummy" > "$depfile"
-   fi
-   rm -f "$tmpdepfile"
-   ;;
-
-#nosideeffect)
-  # This comment above is used by automake to tell side-effect
-  # dependency tracking mechanisms from slower ones.
-
-dashmstdout)
-  # Important note: in order to support this mode, a compiler *must*
-  # always write the proprocessed file to stdout, regardless of -o,
-  # because we must use -o when running libtool.
-  test -z "$dashmflag" && dashmflag=-M
-  ( IFS=" "
-    case " $* " in
-    *" --mode=compile "*) # this is libtool, let us make it quiet
-      for arg
-      do # cycle over the arguments
-        case "$arg" in
-       "--mode=compile")
-         # insert --quiet before "--mode=compile"
-         set fnord "$@" --quiet
-         shift # fnord
-         ;;
-       esac
-       set fnord "$@" "$arg"
-       shift # fnord
-       shift # "$arg"
-      done
-      ;;
-    esac
-    "$@" $dashmflag | sed 's:^[^:]*\:[         ]*:'"$object"'\: :' > "$tmpdepfile"
-  ) &
-  proc=$!
-  "$@"
-  stat=$?
-  wait "$proc"
-  if test "$stat" != 0; then exit $stat; fi
-  rm -f "$depfile"
-  cat < "$tmpdepfile" > "$depfile"
-  tr ' ' '
-' < "$tmpdepfile" | \
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly.  Breaking it into two sed invocations is a workaround.
-    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-dashXmstdout)
-  # This case only exists to satisfy depend.m4.  It is never actually
-  # run, as this mode is specially recognized in the preamble.
-  exit 1
-  ;;
-
-makedepend)
-  # X makedepend
-  (
-    shift
-    cleared=no
-    for arg in "$@"; do
-      case $cleared in no)
-        set ""; shift
-       cleared=yes
-      esac
-      case "$arg" in
-        -D*|-I*)
-         set fnord "$@" "$arg"; shift;;
-       -*)
-         ;;
-       *)
-         set fnord "$@" "$arg"; shift;;
-      esac
-    done
-    obj_suffix="`echo $object | sed 's/^.*\././'`"
-    touch "$tmpdepfile"
-    ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@"
-  ) &
-  proc=$!
-  "$@"
-  stat=$?
-  wait "$proc"
-  if test "$stat" != 0; then exit $stat; fi
-  rm -f "$depfile"
-  cat < "$tmpdepfile" > "$depfile"
-  tail +3 "$tmpdepfile" | tr ' ' '
-' | \
-## Some versions of the HPUX 10.20 sed can't process this invocation
-## correctly.  Breaking it into two sed invocations is a workaround.
-    sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile" "$tmpdepfile".bak
-  ;;
-
-cpp)
-  # Important note: in order to support this mode, a compiler *must*
-  # always write the proprocessed file to stdout, regardless of -o,
-  # because we must use -o when running libtool.
-  ( IFS=" "
-    case " $* " in
-    *" --mode=compile "*)
-      for arg
-      do # cycle over the arguments
-        case $arg in
-       "--mode=compile")
-         # insert --quiet before "--mode=compile"
-         set fnord "$@" --quiet
-         shift # fnord
-         ;;
-       esac
-       set fnord "$@" "$arg"
-       shift # fnord
-       shift # "$arg"
-      done
-      ;;
-    esac
-    "$@" -E |
-    sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
-    sed '$ s: \\$::' > "$tmpdepfile"
-  ) &
-  proc=$!
-  "$@"
-  stat=$?
-  wait "$proc"
-  if test "$stat" != 0; then exit $stat; fi
-  rm -f "$depfile"
-  echo "$object : \\" > "$depfile"
-  cat < "$tmpdepfile" >> "$depfile"
-  sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-msvisualcpp)
-  # Important note: in order to support this mode, a compiler *must*
-  # always write the proprocessed file to stdout, regardless of -o,
-  # because we must use -o when running libtool.
-  ( IFS=" "
-    case " $* " in
-    *" --mode=compile "*)
-      for arg
-      do # cycle over the arguments
-        case $arg in
-       "--mode=compile")
-         # insert --quiet before "--mode=compile"
-         set fnord "$@" --quiet
-         shift # fnord
-         ;;
-       esac
-       set fnord "$@" "$arg"
-       shift # fnord
-       shift # "$arg"
-      done
-      ;;
-    esac
-    "$@" -E |
-    sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
-  ) &
-  proc=$!
-  "$@"
-  stat=$?
-  wait "$proc"
-  if test "$stat" != 0; then exit $stat; fi
-  rm -f "$depfile"
-  echo "$object : \\" > "$depfile"
-  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::   \1 \\:p' >> "$depfile"
-  echo "       " >> "$depfile"
-  . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
-  rm -f "$tmpdepfile"
-  ;;
-
-none)
-  exec "$@"
-  ;;
-
-*)
-  echo "Unknown depmode $depmode" 1>&2
-  exit 1
-  ;;
-esac
-
-exit 0
diff --git a/examples/MRTG/thalesinfo.pl b/examples/MRTG/thalesinfo.pl
deleted file mode 100755 (executable)
index 6bc10ff..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/perl
-
-# ============================================================================ 
-# IRC Network usage script (powered by Thales) for mrtg 
-# Copyright (C) 2003 Partizanu | partizanu@netchat.ro
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 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 (in docs/LICENSE); if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-#
-#    File:     thalesinfo.pl
-#    Author:    Partizanu | partizanu@netchat.ro
-#    Version:  0.1
-#    Input:    mySQL data from Thales tables
-#    Output:   users, channels, some strings to match MRTG external script output 
-#              (see http://people.ee.ethz.ch/~oetiker/webtools/mrtg/reference.html - "External Monitoring Scripts")
-#
-#    Make sure to:
-#      1) Install DBI Perl module so you can access mySQL server (I use DBI 1.13) - http://search.cpan.org
-#      2) Change $mysqluser and $mysqlpass
-#      3) set permision and flush privileges in mysql so that script can connect
-#      4) have fun
-# ============================================================================
-
-$mysqluser=some_sql_user;
-$mysqlpass=some_sql_password;
-$network=name_of_your_irc_network;
-
-use DBI();
-
-# 1) Get users
-$dbh = DBI->connect("DBI:mysql:database=thales;host=www.netchat.ro", $mysqluser, $mysqlpass, {'RaiseError' => 1});
-$q = $dbh->prepare("select count(*) as users from user");
-$q->execute();
-while ($answer = $q->fetchrow_hashref()) { $users = $answer->{'users'}; }
-$q->finish();
-
-# 2) Get channels
-$q = $dbh->prepare("select count(*) as channels from chan");
-$q->execute();
-while ($answer = $q->fetchrow_hashref()) { $channels = $answer->{'channels'}; }
-$q->finish();      
-
-$dbh->disconnect();
-
-print $users."\n";
-print $channels."\n";
-print "some time"."\n";
-print $network ."\n";
diff --git a/examples/README b/examples/README
deleted file mode 100644 (file)
index 6c87dfb..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-If you wrote some scripts of interest, please send them to me so that I can
-include them in this directory. They must be released under GPL v.2 or later.
-Thank you,
-
-- Lucas
diff --git a/examples/clones/clones.php b/examples/clones/clones.php
deleted file mode 100644 (file)
index 9a26e63..0000000
+++ /dev/null
@@ -1,101 +0,0 @@
-<?php
-/*  Clones detection script
- *  Copyright (C) 2002 Jens 'DukePyrolator' Voss <DukePyrolator@wiredirc.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-/* ============================================================================
- * clone-detecting-script www (powered by Thales)
- *
- *    File:      clones.php
- *    Author:    Jens 'DukePyrolator' Voss | DukePyrolator@wiredirc.de
- *    Version:   0.1
- *    Input:     mySQL data from Thales tables
- *    Output:    all clones on chan (a la mIRC)
- *    Usage:     htp://.../clones.php?chan=mychan (without the leading '#')
- *
- * ===========================================================================
- */
-
-
-
-$start = doubleval(time() + microtime());
-
-
-function safe_mysql_pconnect()
-{
-
-    $db_host = "localhost";
-    $db_user = "thales";
-    $db_pass = "mysecretpass";
-    $db_name = "thales";
-                   
-    $mysql_link = mysql_connect($db_host, $db_user, $db_pass) or die("Can't connect to mysql");
-    mysql_select_db($db_name);
-    return($mysql_link);
-}
-
-$mysql_link = safe_mysql_pconnect();
-
-
-$chan = "#$chan";
-echo $chan; 
-echo "<br> <br>";
-
-
-$clones = mysql_query("SELECT nick, hostname
-                       FROM ison,chan,user
-                      WHERE channel=\"$chan\" and ison.chanid=chan.chanid and user.nickid=ison.nickid");
-
-echo mysql_error();
-
-
-$i = 1;
-while ($clones_f = mysql_fetch_row ($clones)) {
-      $u_nick[$i] = $clones_f[0];
-      $u_host[$i] = $clones_f[1];
-      $u_found[$i] = 0;
-      $i = $i + 1;
-};
-$groesse = $i + 1;
-
-
-for ($i=1;$i<$groesse;$i++) {
-       $found= 0;    
-       for ($j=1;$j<$groesse;$j++) {  
-         if (($u_host[$i] == $u_host[$j]) AND !($i == $j) AND ($u_found[$i]==0)){
-            if ($found == 0) { 
-                 echo $u_nick[$i];
-                $found=1;
-             }  
-             echo "    ", $u_nick[$j]; 
-             $u_found[$j] = 1;
-         }
-       }
-       if ($found == 1) { 
-           echo "<br>\n";
-          $u_found[$i]=1;
-       }
-}
-
-
-
-echo "\n<br><br>\n";
-echo "  ", round(((time() + microtime())-$start),6), " Sek";
-
-
-mysql_close($mysql_link);
-?>
diff --git a/examples/counter/README b/examples/counter/README
deleted file mode 100644 (file)
index a59076e..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-counter - Web page counter for Thales\r
-Copyright (C) 2003 Hervé Rousseau <z-master@apinc.org>\r
-///////////////////////\r
-This is the Thales based IRC user counter\r
-It works like a hit counter on web pages, but with irc & thales.\r
-To see it working, you can point your browser to\r
-http://www.dwchat.net/tools/thales/compteur.php?chan=dwchat&skin=1 \r
-(for the direct html output)\r
-or to \r
-http://www.dwchat.net/tools/thales/compteur_js.php?chan=dwchat&skin=1 \r
-(for the non-php aware hosting services).\r
-\r
-This script is based on digits2imgs script delivered with thales too.\r
-\r
-So, to use it, you will have to configure the MySQL & site variables to fit your\r
-environnement. That's to say, the mysql host, user, pass & database,\r
-and the "webpath" to pictures (http://www.dwchat.net/pictures for example).\r
-/////////////////////\r
-If you are having problems using this tool, feel free to contact me via\r
-z-master@apinc.org\r
-or by IRC : irc.apinc.org / #apinc & #opers\r
diff --git a/examples/counter/compteur_js.php b/examples/counter/compteur_js.php
deleted file mode 100644 (file)
index 36aa973..0000000
+++ /dev/null
@@ -1,81 +0,0 @@
-<?\r
-//-----------------------------------------------------------------------------\r
-# compteur_js.php - Web page counter for Thales\r
-# Copyright (C) 2003 Hervé Rousseau <z-master@apinc.org>\r
-#\r
-# This program is free software; you can redistribute it and/or modify\r
-# it under the terms of the GNU General Public License as published by\r
-# the Free Software Foundation; either version 2 of the License, or\r
-# (at your option) any later version.\r
-\r
-# This program is distributed in the hope that it will be useful,\r
-# but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-# GNU General Public License for more details.\r
-\r
-# You should have received a copy of the GNU General Public License\r
-# along with this program (in docs/LICENSE); if not, write to the Free Software\r
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
-\r
-# Little hack from digits2img script by me [ z-master@apinc.org ]\r
-# Contact me for bug, requests etc...\r
-//-----------------------------------------------------------------------------\r
-\r
-/* MySQL Configuration */\r
-$host = "localhost";\r
-$user = "lucas";\r
-$pass = "X";\r
-$bdd = "thales";\r
-function writenumbers($number,$funcset)\r
-       {\r
-               //Number of digits to show\r
-               $digits = 3;\r
-               //The "webpath" to the pictures/ directory\r
-               $path = "http://www.dwchat.net/tools/thales/compteur/" ;\r
-               \r
-               $img = NULL;\r
-               if (!is_numeric($funcset)) return $img;\r
-               if (is_numeric($number))\r
-                       {\r
-                               $number = str_pad($number, $digits, "0", STR_PAD_LEFT);\r
-                               for ($k = 0; $k < $digits;$k++)\r
-                                       {\r
-                                               $tmp = substr($number,$k,1);\r
-                                               $img = $img . "<img src=\"".$path."".$funcset."/".$tmp.".png\" title=\"".$number."\">";\r
-                                       }\r
-                       }\r
-               else return $img;\r
-       return $img;\r
-       }\r
-\r
-/* MySQL Connection*/\r
-$link = mysql_connect ("$host", "$user", "$pass") or die ("Unable to connect to MySQL Server");\r
-mysql_select_db("$bdd");\r
-\r
-/* The request */\r
-$q = mysql_query("select count(*) users from chan, ison where chan.chanid = ison.chanid and channel=\"#$chan\"");\r
-\r
-/* We get back the results */\r
-$r = mysql_result($q,"users");\r
-\r
-/* And make the output */\r
-\r
-if(!$skin)\r
-{\r
-       /* Text output */\r
-       print("document.write('$r');");\r
-       print("\n");\r
-}\r
-else\r
-{\r
-       /* Images output */\r
-       $img_tags = writenumbers($r,$skin,$chan);\r
-       //echo("<!-- Thales IRC UserCounter -->\n");\r
-       print("document.write('$img_tags');");\r
-//     echo "\n<br>";\r
-}\r
-\r
-/* That's all */\r
-\r
-mysql_close($link);\r
-?>\r
diff --git a/examples/counter/pictures/1/0.PNG b/examples/counter/pictures/1/0.PNG
deleted file mode 100644 (file)
index 751acb9..0000000
Binary files a/examples/counter/pictures/1/0.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/1.PNG b/examples/counter/pictures/1/1.PNG
deleted file mode 100644 (file)
index b2449ac..0000000
Binary files a/examples/counter/pictures/1/1.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/2.PNG b/examples/counter/pictures/1/2.PNG
deleted file mode 100644 (file)
index eef1b25..0000000
Binary files a/examples/counter/pictures/1/2.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/3.PNG b/examples/counter/pictures/1/3.PNG
deleted file mode 100644 (file)
index 68fe17a..0000000
Binary files a/examples/counter/pictures/1/3.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/4.PNG b/examples/counter/pictures/1/4.PNG
deleted file mode 100644 (file)
index ca4ed32..0000000
Binary files a/examples/counter/pictures/1/4.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/5.PNG b/examples/counter/pictures/1/5.PNG
deleted file mode 100644 (file)
index 42909a9..0000000
Binary files a/examples/counter/pictures/1/5.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/6.PNG b/examples/counter/pictures/1/6.PNG
deleted file mode 100644 (file)
index 7b2fdff..0000000
Binary files a/examples/counter/pictures/1/6.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/7.PNG b/examples/counter/pictures/1/7.PNG
deleted file mode 100644 (file)
index 9b4d426..0000000
Binary files a/examples/counter/pictures/1/7.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/8.PNG b/examples/counter/pictures/1/8.PNG
deleted file mode 100644 (file)
index 56ebd75..0000000
Binary files a/examples/counter/pictures/1/8.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/9.PNG b/examples/counter/pictures/1/9.PNG
deleted file mode 100644 (file)
index 18e7f61..0000000
Binary files a/examples/counter/pictures/1/9.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/deb.PNG b/examples/counter/pictures/1/deb.PNG
deleted file mode 100644 (file)
index c8153f2..0000000
Binary files a/examples/counter/pictures/1/deb.PNG and /dev/null differ
diff --git a/examples/counter/pictures/1/visites.PNG b/examples/counter/pictures/1/visites.PNG
deleted file mode 100644 (file)
index 967c44d..0000000
Binary files a/examples/counter/pictures/1/visites.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/0.PNG b/examples/counter/pictures/2/0.PNG
deleted file mode 100644 (file)
index a5557d5..0000000
Binary files a/examples/counter/pictures/2/0.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/1.PNG b/examples/counter/pictures/2/1.PNG
deleted file mode 100644 (file)
index 385ba5a..0000000
Binary files a/examples/counter/pictures/2/1.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/2.PNG b/examples/counter/pictures/2/2.PNG
deleted file mode 100644 (file)
index d248ae2..0000000
Binary files a/examples/counter/pictures/2/2.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/3.PNG b/examples/counter/pictures/2/3.PNG
deleted file mode 100644 (file)
index 5bfe7de..0000000
Binary files a/examples/counter/pictures/2/3.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/4.PNG b/examples/counter/pictures/2/4.PNG
deleted file mode 100644 (file)
index 7e2b105..0000000
Binary files a/examples/counter/pictures/2/4.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/5.PNG b/examples/counter/pictures/2/5.PNG
deleted file mode 100644 (file)
index 02b7df9..0000000
Binary files a/examples/counter/pictures/2/5.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/6.PNG b/examples/counter/pictures/2/6.PNG
deleted file mode 100644 (file)
index 18239c1..0000000
Binary files a/examples/counter/pictures/2/6.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/7.PNG b/examples/counter/pictures/2/7.PNG
deleted file mode 100644 (file)
index 71a4780..0000000
Binary files a/examples/counter/pictures/2/7.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/8.PNG b/examples/counter/pictures/2/8.PNG
deleted file mode 100644 (file)
index 3ef8b09..0000000
Binary files a/examples/counter/pictures/2/8.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/9.PNG b/examples/counter/pictures/2/9.PNG
deleted file mode 100644 (file)
index 200182b..0000000
Binary files a/examples/counter/pictures/2/9.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/deb.PNG b/examples/counter/pictures/2/deb.PNG
deleted file mode 100644 (file)
index 0043536..0000000
Binary files a/examples/counter/pictures/2/deb.PNG and /dev/null differ
diff --git a/examples/counter/pictures/2/visites.PNG b/examples/counter/pictures/2/visites.PNG
deleted file mode 100644 (file)
index 53a08db..0000000
Binary files a/examples/counter/pictures/2/visites.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/0.PNG b/examples/counter/pictures/3/0.PNG
deleted file mode 100644 (file)
index 6af62e6..0000000
Binary files a/examples/counter/pictures/3/0.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/1.PNG b/examples/counter/pictures/3/1.PNG
deleted file mode 100644 (file)
index d69b81d..0000000
Binary files a/examples/counter/pictures/3/1.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/2.PNG b/examples/counter/pictures/3/2.PNG
deleted file mode 100644 (file)
index e4ce3be..0000000
Binary files a/examples/counter/pictures/3/2.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/3.PNG b/examples/counter/pictures/3/3.PNG
deleted file mode 100644 (file)
index 5deb3a2..0000000
Binary files a/examples/counter/pictures/3/3.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/4.PNG b/examples/counter/pictures/3/4.PNG
deleted file mode 100644 (file)
index 48cbb5b..0000000
Binary files a/examples/counter/pictures/3/4.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/5.PNG b/examples/counter/pictures/3/5.PNG
deleted file mode 100644 (file)
index d1646a5..0000000
Binary files a/examples/counter/pictures/3/5.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/6.PNG b/examples/counter/pictures/3/6.PNG
deleted file mode 100644 (file)
index dd7e9ef..0000000
Binary files a/examples/counter/pictures/3/6.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/7.PNG b/examples/counter/pictures/3/7.PNG
deleted file mode 100644 (file)
index 67fc1b0..0000000
Binary files a/examples/counter/pictures/3/7.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/8.PNG b/examples/counter/pictures/3/8.PNG
deleted file mode 100644 (file)
index 5428d02..0000000
Binary files a/examples/counter/pictures/3/8.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/9.PNG b/examples/counter/pictures/3/9.PNG
deleted file mode 100644 (file)
index 16adc2b..0000000
Binary files a/examples/counter/pictures/3/9.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/deb.PNG b/examples/counter/pictures/3/deb.PNG
deleted file mode 100644 (file)
index b25584b..0000000
Binary files a/examples/counter/pictures/3/deb.PNG and /dev/null differ
diff --git a/examples/counter/pictures/3/visites.PNG b/examples/counter/pictures/3/visites.PNG
deleted file mode 100644 (file)
index 10445bc..0000000
Binary files a/examples/counter/pictures/3/visites.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/0.PNG b/examples/counter/pictures/4/0.PNG
deleted file mode 100644 (file)
index eed02c1..0000000
Binary files a/examples/counter/pictures/4/0.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/1.PNG b/examples/counter/pictures/4/1.PNG
deleted file mode 100644 (file)
index bb63803..0000000
Binary files a/examples/counter/pictures/4/1.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/2.PNG b/examples/counter/pictures/4/2.PNG
deleted file mode 100644 (file)
index 99eb504..0000000
Binary files a/examples/counter/pictures/4/2.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/3.PNG b/examples/counter/pictures/4/3.PNG
deleted file mode 100644 (file)
index 7b87ed3..0000000
Binary files a/examples/counter/pictures/4/3.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/4.PNG b/examples/counter/pictures/4/4.PNG
deleted file mode 100644 (file)
index 75ac54c..0000000
Binary files a/examples/counter/pictures/4/4.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/5.PNG b/examples/counter/pictures/4/5.PNG
deleted file mode 100644 (file)
index 9c37546..0000000
Binary files a/examples/counter/pictures/4/5.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/6.PNG b/examples/counter/pictures/4/6.PNG
deleted file mode 100644 (file)
index fa2ff2f..0000000
Binary files a/examples/counter/pictures/4/6.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/7.PNG b/examples/counter/pictures/4/7.PNG
deleted file mode 100644 (file)
index 10630a2..0000000
Binary files a/examples/counter/pictures/4/7.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/8.PNG b/examples/counter/pictures/4/8.PNG
deleted file mode 100644 (file)
index 92b0e4f..0000000
Binary files a/examples/counter/pictures/4/8.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/9.PNG b/examples/counter/pictures/4/9.PNG
deleted file mode 100644 (file)
index 93159aa..0000000
Binary files a/examples/counter/pictures/4/9.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/deb.PNG b/examples/counter/pictures/4/deb.PNG
deleted file mode 100644 (file)
index f407d65..0000000
Binary files a/examples/counter/pictures/4/deb.PNG and /dev/null differ
diff --git a/examples/counter/pictures/4/visites.PNG b/examples/counter/pictures/4/visites.PNG
deleted file mode 100644 (file)
index 1594a05..0000000
Binary files a/examples/counter/pictures/4/visites.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/0.PNG b/examples/counter/pictures/5/0.PNG
deleted file mode 100644 (file)
index 76d79dd..0000000
Binary files a/examples/counter/pictures/5/0.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/1.PNG b/examples/counter/pictures/5/1.PNG
deleted file mode 100644 (file)
index 71dac62..0000000
Binary files a/examples/counter/pictures/5/1.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/2.PNG b/examples/counter/pictures/5/2.PNG
deleted file mode 100644 (file)
index b737c63..0000000
Binary files a/examples/counter/pictures/5/2.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/3.PNG b/examples/counter/pictures/5/3.PNG
deleted file mode 100644 (file)
index c3938c4..0000000
Binary files a/examples/counter/pictures/5/3.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/4.PNG b/examples/counter/pictures/5/4.PNG
deleted file mode 100644 (file)
index a6593d9..0000000
Binary files a/examples/counter/pictures/5/4.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/5.PNG b/examples/counter/pictures/5/5.PNG
deleted file mode 100644 (file)
index fe4acc6..0000000
Binary files a/examples/counter/pictures/5/5.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/6.PNG b/examples/counter/pictures/5/6.PNG
deleted file mode 100644 (file)
index 26e277f..0000000
Binary files a/examples/counter/pictures/5/6.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/7.PNG b/examples/counter/pictures/5/7.PNG
deleted file mode 100644 (file)
index e7aa118..0000000
Binary files a/examples/counter/pictures/5/7.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/8.PNG b/examples/counter/pictures/5/8.PNG
deleted file mode 100644 (file)
index 40bff9d..0000000
Binary files a/examples/counter/pictures/5/8.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/9.PNG b/examples/counter/pictures/5/9.PNG
deleted file mode 100644 (file)
index 34be4f6..0000000
Binary files a/examples/counter/pictures/5/9.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/deb.PNG b/examples/counter/pictures/5/deb.PNG
deleted file mode 100644 (file)
index 1309b90..0000000
Binary files a/examples/counter/pictures/5/deb.PNG and /dev/null differ
diff --git a/examples/counter/pictures/5/visites.PNG b/examples/counter/pictures/5/visites.PNG
deleted file mode 100644 (file)
index 43a0bbf..0000000
Binary files a/examples/counter/pictures/5/visites.PNG and /dev/null differ
diff --git a/examples/memphistools/README b/examples/memphistools/README
deleted file mode 100644 (file)
index fe936bb..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-GNU Thales Example Tools\r
-----------\r
-by XytraS <xytras@memphisnet.org>\r
-\r
-\r
--- Introduction --\r
-\r
-These are example scripts using GNU Thales on your network. These tools are\r
-written in PHP, but can generate both PHP and JavaScript display.\r
-\r
-\r
--- Installation --\r
-\r
-Just fill the mysql.ini.php file correctly.\r
-\r
-\r
--- List of files --\r
-\r
-- mysql.ini.php\r
-   mysql information needed for the db connection\r
-   \r
-- common.php\r
-   mysql connection\r
-   \r
-- counters/users_tc.php\r
-   count the number of users on the network\r
-   readfile('http://tools.yournetwork.org/counters/users_tc.php');\r
-   \r
-- counters/chans_tc.php\r
-   count the number of chans on the network\r
-   readfile('http://tools.yournetwork.org/counters/chans_tc.php');\r
-   \r
-- counters/servers_tc.php\r
-   count the number of servers on the network\r
-   readfile('http://tools.yournetwork.org/counters/servers_tc.php');\r
-\r
-- counters/chans_po.php\r
-   count the number of people on a given chan\r
-   readfile('http://tools.yournetwork.org/counters/chan_po.php?c=CHAN');\r
-   \r
-- counters/users_max.php\r
-   users maxvalue\r
-   readfile('http://tools.yournetwork.org/counters/users_max.php');\r
-   \r
-- counters/chans_max.php\r
-   chans maxvalue\r
-   readfile('http://tools.yournetwork.org/counters/chans_max.php');\r
-   \r
-- status/user_ison.php\r
-   get the list of users on a channel\r
-   readfile('http://tools.yournetwork.org/status/user_ison.php?c=CHAN');\r
-   \r
-- status/user_status.php\r
-   return the status of an user\r
-   readfile('http://tools.memphisnet.org/status/user_status.php?n=NICK');\r
-   \r
-- status/chan_topic.php\r
-   get the current topic of a chan\r
-   readfile('http://tools.yournetwork.org/status/chan_topic.php?c=CHAN');\r
-   \r
-- status/server_on.php\r
-   return the status of a server (internal tool)\r
-   readfile('http://tools.yournetwork.org/status/server_on.php?s=irc.yournetwork.org');\r
-\r
-\r
--- Important Notes --\r
-\r
-1. There is more information in script files\r
-\r
-2. How to generate JavaScript code? Just add " m=js ". Here is an example!\r
-   <script type="text/javascript" src="http://tools.yournetwork.org/counters/users_tc.php?m=js"></script>\r
-   \r
-3. You can see these scripts running on http://tools.memphisnet.org\r
-\r
-4. I don't provide any help running these scripts, but you can contact the\r
-Thales Mailing List.\r
-   See GNU Thales README file for more information\r
diff --git a/examples/memphistools/common.php b/examples/memphistools/common.php
deleted file mode 100644 (file)
index ff09e19..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<?php
-
-//
-// mysql connection
-// (c) tools.memphisnet.org 2003-2004
-//
-
-//error_reporting(E_ALL);
-
-if (!function_exists('dump'))
-{
-       function dump($var)
-       {
-               echo '<pre>'; var_dump($var); echo '</pre>';
-       }
-}
-$db = parse_ini_file(dirname(__FILE__) . '/mysql.ini.php');
-
-$lid = mysql_connect($db['server'], $db['user'], $db['pass']);
-mysql_select_db($db['db'], $lid);
-
-?>
diff --git a/examples/memphistools/counters/chan_po.php b/examples/memphistools/counters/chan_po.php
deleted file mode 100644 (file)
index fee21f0..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-//
-// count the number of people on a given chan
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-if (ereg('^#', $_GET['c'])) { $chan = $_GET['c']; } else { $chan = '#' . $_GET['c']; }
-$chan = strtolower(mysql_escape_string($chan));
-
-$sql  = 'SELECT COUNT(*) as chan_po FROM ison, chan WHERE ';
-$sql .= 'chan.channel = \'' . $chan . '\' ';
-$sql .= 'AND ison.chanid = chan.chanid';
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo ('js' == $_GET['m']) ? "document.write('${tmp['chan_po']}')" : $tmp['chan_po'];
-
-?>
diff --git a/examples/memphistools/counters/chans_max.php b/examples/memphistools/counters/chans_max.php
deleted file mode 100644 (file)
index f576ead..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-//
-// chans maxvalue
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$sql  = 'SELECT val FROM maxvalues WHERE type = \'channels\'';
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo ($_GET['m'] == 'js') ? "document.write('${tmp['val']}')" : $tmp['val'];
-
-?>
diff --git a/examples/memphistools/counters/chans_tc.php b/examples/memphistools/counters/chans_tc.php
deleted file mode 100644 (file)
index 58b60e8..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-//
-// count the number of chans on the network
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$sql  = 'SELECT COUNT(*) as chans_tc FROM chan';
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo ($_GET['m'] == 'js') ? "document.write('${tmp['chans_tc']}')" : $tmp['chans_tc'];
-
-?>
diff --git a/examples/memphistools/counters/servers_tc.php b/examples/memphistools/counters/servers_tc.php
deleted file mode 100644 (file)
index 007a254..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-//
-// count the number of servers on the network
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$sql  = 'SELECT COUNT(*) as servers_tc FROM server';
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo ($_GET['m'] == 'js') ? "document.write('${tmp['servers_tc']}')" : $tmp['servers_tc'];
-
-?>
diff --git a/examples/memphistools/counters/users_max.php b/examples/memphistools/counters/users_max.php
deleted file mode 100644 (file)
index 9cc2e15..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-//
-// users maxvalue
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$sql  = 'SELECT val FROM maxvalues WHERE type = \'users\'';
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo ($_GET['m'] == 'js') ? "document.write('${tmp['val']}')" : $tmp['val'];
-
-?>
diff --git a/examples/memphistools/counters/users_tc.php b/examples/memphistools/counters/users_tc.php
deleted file mode 100644 (file)
index 7d21891..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-<?php
-
-//
-// count the number of users on the network
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$sql  = 'SELECT COUNT(*) as users_tc FROM user';
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo ($_GET['m'] == 'js') ? "document.write('${tmp['users_tc']}')" : $tmp['users_tc'];
-
-?>
diff --git a/examples/memphistools/mysql.ini.php b/examples/memphistools/mysql.ini.php
deleted file mode 100644 (file)
index a40aed9..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-;<?php die(); ?>
-
-server = localhost
-user = username
-pass = password
-db = thales
diff --git a/examples/memphistools/status/chan_topic.php b/examples/memphistools/status/chan_topic.php
deleted file mode 100644 (file)
index 770fffc..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-//
-// get the current topic of a chan
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-if (ereg('^#', $_GET['c'])) { $chan = $_GET['c']; } else { $chan = '#' . $_GET['c']; }
-$chan = mysql_escape_string($chan);
-$chan = strtolower($chan);
-
-$sql  = 'SELECT topic FROM chan WHERE ';
-$sql .= 'channel = \'' . $chan . '\'';
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo ($_GET['m'] == 'js') ? "document.write('". addslashes($tmp['topic']) . "')" : $tmp['topic'];
-
-?>
diff --git a/examples/memphistools/status/server_on.php b/examples/memphistools/status/server_on.php
deleted file mode 100644 (file)
index 6b3c85d..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-<?php
-
-//
-// return the status of a server
-//
-// 0 = offline
-// 1 = online
-//
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$server = mysql_escape_string($_GET['s']);
-$sql    = "SELECT servid FROM server WHERE server = '$server';";
-
-$tmp = mysql_query($sql, $lid);
-$tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-mysql_close($lid);
-
-echo $tmp ? 1 : 0;
-
-?>
diff --git a/examples/memphistools/status/user_ison.php b/examples/memphistools/status/user_ison.php
deleted file mode 100644 (file)
index ec49358..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php
-
-//
-// get the list of users on a channel
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$chan = mysql_escape_string($_GET['c']);
-$chan = strtolower($chan);
-//$m = mysql_escape_string($_GET['m']);
-
-if ($_GET['m'] == 'js') { echo "document.write('"; }
-
-$query='SELECT user.nick, COUNT(user.nick), ison.mode_lo, ison.mode_lh, ison.mode_lv, ison.mode_lq FROM ison, chan, user WHERE chan.chanid = ison.chanid AND ison.nickid = user.nickid AND chan.channel = \'\#' . $chan . '\' AND chan.mode_lp = \'N\' AND chan.mode_ls = \'N\' GROUP BY user.nick';
-$result=mysql_query($query);
-$cpt= mysql_num_rows($result);
-
-$sql ='SELECT user.nick, ison.mode_lo, ison.mode_lh, ison.mode_lv, ison.mode_lq, ison.mode_la FROM ison, chan, user WHERE chan.chanid = ison.chanid AND ison.nickid = user.nickid AND chan.channel = \'\#' . $chan . '\' AND chan.mode_lp = \'N\' AND chan.mode_ls = \'N\' ORDER BY ison.mode_lq, ison.mode_la, ison.mode_lo, ison.mode_lh, ison.mode_lv';
-
-$result = mysql_query($sql, $lid);
-$num_of_rows = mysql_num_rows($result) or die ("Pas de correspondances");
-while ($tmp = mysql_fetch_row($result))
-{
-       $ison = $tmp[0];
-       $mo = $tmp[1];
-       $mh = $tmp[2];
-       $mv = $tmp[3];
-       $mq = $tmp[4];
-       $ma = $tmp[5];
-       
-       $mode="";
-       if ($mv == "Y") { $mode="+"; }
-       if ($mh == "Y") { $mode="%"; }
-       if ($mo == "Y") { $mode="@"; }
-       if ($ma == "Y") { $mode="&"; }
-       if ($mq == "Y") { $mode="~"; }
-       $cpt--;
-       if ($cpt == "0") { $sep=""; }
-       else { $sep=", "; }
-       echo $mode . $ison . $sep;
-}
-
-mysql_close($lid);
-
-if ($_GET['m'] == 'js') { echo "')"; }
-?>
diff --git a/examples/memphistools/status/user_status.php b/examples/memphistools/status/user_status.php
deleted file mode 100644 (file)
index 40d6be5..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<?php
-
-//
-// return the status of an user
-//
-// 0 = offline
-// 1 = online
-// 2 = away
-//
-// (c) tools.memphisnet.org 2003-2004
-//
-
-require_once('../common.php');
-
-$nick = mysql_escape_string($_GET['n']);
-
-$sql  = 'SELECT away FROM user WHERE nick = \'' . $nick . '\'';
-
-$tmp = mysql_query($sql, $lid);
-
-if (!mysql_num_rows($tmp))
-{
-
-       $status = 'offline';
-
-} else {
-
-       $tmp = mysql_fetch_array($tmp, MYSQL_ASSOC);
-
-       if ('Y' == $tmp['away'])
-       {
-
-               $status = 'away';
-
-       } else {
-
-               $status = 'online';
-
-       }
-
-}
-
-//mysql_close($db);
-
-echo ($_GET['m'] == 'js') ? "document.write('$status')" : $status;
-
-?>
diff --git a/examples/nickinfo/README b/examples/nickinfo/README
deleted file mode 100644 (file)
index 81f851b..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Comments in nickinfo.php explain what this script does and how.
-
-Contributed by :
-Andreas 'AdmiralAccident' Lindemann
-Network Administrator irc.insiderZ.DE
diff --git a/examples/nickinfo/img/offline.gif b/examples/nickinfo/img/offline.gif
deleted file mode 100644 (file)
index 105495e..0000000
Binary files a/examples/nickinfo/img/offline.gif and /dev/null differ
diff --git a/examples/nickinfo/img/online.gif b/examples/nickinfo/img/online.gif
deleted file mode 100644 (file)
index 01c8668..0000000
Binary files a/examples/nickinfo/img/online.gif and /dev/null differ
diff --git a/examples/nickinfo/nickinfo.php b/examples/nickinfo/nickinfo.php
deleted file mode 100644 (file)
index 2d0bd17..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-<?php\r
-\r
-/* ********************************************************************\r
-   nickinfo.php                                                   \r
-   Copyright (C) 2003/2004 Andreas 'AdmiralAccident' Lindemann\r
-   Network Administrator irc.insiderZ.DE\r
-\r
-   This program is free software; you can redistribute it and/or\r
-   modify it under the terms of the GNU General Public License\r
-   as published by the Free Software Foundation; either version 2\r
-   of the License, or (at your option) any later version.\r
-\r
-   This program is distributed in the hope that it will be useful,\r
-   but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-   GNU General Public License for more details.\r
-\r
-   You should have received a copy of the GNU General Public License\r
-   along with this program; if not, write to the Free Software\r
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.\r
-\r
-\r
-   ********************************************************************\r
-   What this script does:\r
-\r
-   This script will return an image (jpg) indicating if the given nickname\r
-   is currently online or offline. Optionally it can return a     \r
-   number (0 or 1) for further processing in other scripts.       \r
-                                                                   \r
-   I suggest calling this script via a html img tag                 \r
-   <img src="http://your.host.here/nickinfo.php?nick=Your_nick&number=0" border="0" alt="" width="88" height="27"> \r
-   \r
-   It is mainly meant to be integrated into forum Templates (like ICQ online/offline pics).\r
-   You might want to replace the online/offline graphics in the img folder with something \r
-   more appropriate for your network :-)\r
-\r
-   ******************************************************************** */\r
-\r
-$dbhost = "your_db_host";\r
-$dbuser = "your_db_user";\r
-$dbpass = "your_db_password";\r
-$dbname = "your_db_name";\r
-\r
-mysql_connect($dbhost, $dbuser, $dbpass) or die("An error occurred while connecting to the database. Context: connect.");\r
-mysql_select_db($dbname) or die("An error occurred while connecting to the database. Context: select database.");\r
-\r
-\r
-function returnOfflinejpg() {\r
-       $im = ImageCreateFromgif ("img/offline.gif");\r
-       if (!$im) {                    \r
-         die("Error while loading Image");   \r
-       }\r
-       Header("Content-type: image/jpeg");\r
-       Imagejpeg($im);\r
-}\r
-\r
-function returnOnlinejpg() {\r
-       $im = ImageCreateFromgif ("img/online.gif");\r
-       if (!$im) {                    \r
-         die("Error while loading Image");   \r
-       }\r
-       Header("Content-type: image/jpeg");\r
-       Imagejpeg($im);\r
-}\r
-\r
-function Nickinfo($nick,$numbers) {\r
-       $result = mysql_query("SELECT online FROM user WHERE user.nick = '$nick'")\r
-       or die("Database query failure");\r
-       $line = mysql_fetch_array($result, MYSQL_ASSOC);\r
-       \r
-       if($numbers) {\r
-         if($line["online"] == 'Y') echo "1";\r
-         else echo "0";\r
-       } else {\r
-         if($line["online"] == 'Y') returnOnlinejpg();\r
-         else returnOfflinejpg();\r
-       }\r
-}\r
-\r
-\r
-if ($number == '1') {\r
-   Nickinfo($nick,true);\r
-} else {\r
-   Nickinfo($nick,false);\r
-}\r
-?>\r
diff --git a/examples/recycledcounter/README b/examples/recycledcounter/README
deleted file mode 100644 (file)
index dc55d6b..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-Recycled-counter, the counter that you recycle ;)\r
-ProPheT <prophet@recycled-irc.org>\r
------------------------\r
-This is a Thales based graphical counter\r
-It can display the number of users on the network, the number of channels and the number of users on au specific channel.\r
-Edit recycpt.php to change connection information ($db_host, $db_user, $db_pass and $db_name)\r
-This script produces a single image that you can use like all PNG images\r
-http://www.your.site/dir/recycpt.php display the number of users\r
-http://www.your.site/dir/recycpt.php?type=nbchan display the number of channels\r
-http://www.your.site/dir/recycpt.php?chan=disku display the number of users on the channel #disku\r
-http://www.your.site/dir/recycpt.php?texte=yes display the number of users in text (to use it in an other script)\r
-\r
-you can change the colour of the output by giving bg and fg arguments\r
-recycpt.php?bg=X&fg=Y\r
-X = background RGB colour in decimal\r
-Y = foreground RGB colour in decimal\r
-\r
-an exemple ?\r
-look at http://stats.recycled-irc.org/cpt.php\r
------------------------\r
-If you are having problems using this tool, feel free to contact me via\r
-prophet@recycled-irc.org\r
-or by IRC : irc.recycled-irc.org / #disku & #help\r
diff --git a/examples/recycledcounter/recycpt.php b/examples/recycledcounter/recycpt.php
deleted file mode 100644 (file)
index 6fd6c35..0000000
+++ /dev/null
@@ -1,78 +0,0 @@
-<?php\r
-\r
-//informations\r
-$db_host = "localhost";\r
-$db_user = "login";\r
-$db_pass = "password";\r
-$db_name = "database";\r
-\r
-\r
-\r
-\r
-//on va chercher le nombre d'users\r
-\r
-//compteur de chans ?\r
-$nbchan = ($_REQUEST['type'] == "nbchan");\r
-\r
-//nom du chan\r
-$chan = '#'.strtolower($_REQUEST['chan']);\r
-\r
-//mode texte ?\r
-$texte = $_REQUEST['texte'];\r
-\r
-//couleurs\r
-$fg = $_REQUEST['fg'];\r
-$bg = $_REQUEST['bg'];\r
-if ($fg == "") $fg = 0;\r
-if ($bg == "") $bg = 0xFFFFFF;\r
-\r
-//fond\r
-$rgb[0]=intval($bg/0x10000);\r
-$rgb[1]=intval(($bg/0x100)/0x100);\r
-$rgb[2]=intval($bg%0x100);\r
-\r
-//ecriture\r
-$rgb[3]=intval($fg/0x10000);\r
-$rgb[4]=intval(($fg/0x100)/0x100);\r
-$rgb[5]=intval($fg%0x100);\r
-\r
-if ($chan != "#") $requete = "SELECT COUNT(*) FROM user, ison, chan WHERE user.nickid = ison.nickid AND ison.chanid = chan.chanid AND channel = \"$chan\"";\r
-else if ($nbchan) $requete = "SELECT COUNT(*) FROM chan;";\r
-else $requete = "SELECT COUNT(*) FROM user;";\r
-\r
-\r
-//connexion Ã  la base de données\r
-$mysql_link = mysql_connect($db_host, $db_user, $db_pass) or die("Probleme avec la base de données");\r
-mysql_select_db($db_name) or die("Probleme avec la base de données (A)");\r
-\r
-$nbu = mysql_query($requete) or die("Probleme avec la base de données (D)");\r
-$nb = mysql_fetch_array ($nbu) or die ("Probleme avec la base de données (E)");\r
-$compteur = $nb[0];\r
-\r
-if ($texte == "") {\r
-       $font=5; /*font de 1 Ã  5 */\r
-       $largeur_compteur=strlen($compteur);\r
-       $largeur_font=imagefontwidth($font);\r
-       $hauteur_font=imagefontheight($font);\r
-       $largeur_image=($largeur_compteur+2)*$largeur_font;\r
-       $hauteur_image=$hauteur_font*2;\r
-\r
-       /* envoie du code mime dans le header */\r
-       header ("Content-type: image/png");\r
-\r
-       $image = @imagecreate ($largeur_image, $hauteur_image) or die ("Impossible d'initialiser la librairie GD");\r
-\r
-       $background_color =imagecolorallocate ($image, $rgb[0],$rgb[1],$rgb[2]);\r
-       $text_color = imagecolorallocate ($image, $rgb[3],$rgb[4],$rgb[5]);\r
-\r
-       imagerectangle ($image,0,0,$largeur_image-1,$hauteur_image-1, $text_color);\r
-       imagestring ($image, $font, $largeur_font, $hauteur_font/2, "$compteur ", $text_color);\r
-\r
-       imagepng ($image);\r
-}\r
-else {\r
-       echo $compteur;\r
-}\r
-\r
-mysql_close($mysql_link);\r
-?>\r
diff --git a/examples/whois/dowhois.php b/examples/whois/dowhois.php
deleted file mode 100644 (file)
index 190c790..0000000
+++ /dev/null
@@ -1,116 +0,0 @@
-<?
-/* ============================================================================ 
-# whois emulation for www (powered by Thales)
-# Copyright (C) 2003 Partizanu | partizanu@netchat.ro
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 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 (in docs/LICENSE); if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
-# 
-#    File:     dowhois.php
-#    Author:    Partizanu | partizanu@netchat.ro
-#    Version:  0.1
-#    Input:    mySQL data from Thales tables
-#    Output:   whois info (a la mIRC)
-#
-#
-#    Make sure to:
-#      1) Change $mysqluser and $mysqlpassword
-#      2) set permision and flush privileges in mysql so that script can connect
-#      3) place the html and the php files in the same dir (or change paths in source)
-#      4) IMPORTANT!!!: this script takes $nickname from the POST of the html file
-#              This variable may be "dirty" (eg. bad javascript code, SQL inject etc)
-#              Use whatever function makes you confortable to add security to this code (eg. strip_tags,addslashes,htmlspecialchars,quotemeta etc.)
-#              The (main) reason why this script doesn't use em is because I (the author) don't want to get mail-bombed with "Your security sux, they hacked my site coz of your stupid script" so do your "security" thing :)
-#      5) change isok variable from 1 to 0 so I can know that you read this :)
-#      6) have fun
-# ============================================================================*/
-
-$mysqluser = "php";
-$mysqlpassword = "phprulez";
-$isok=1;
-
-
-
-//===Don't change anything below this unless you know what you'r doing (yeah, right)
-
-$link = mysql_connect ("localhost", $mysqluser, $mysqlpassword) or die ("Can't connect");
-mysql_select_db("thales");
-
-
-
-$q = mysql_query("select * from user where nick=\"$nickname\" ");
-if (mysql_num_rows($q) < 1) 
-       {
-       mysql_close($link);
-       die($nickname ." No such nick/channel");
-       }
-
-if ($isok==1) die("Read instructions from head of php file!");
-while ($row = mysql_fetch_array($q))
-       {
-       $id = $row["nickid"];
-       $rname = $row["realname"];
-       $hostname = $row["hostname"];
-       $username = $row["username"];
-       $connecttime = $row["connecttime"];
-       $servid  = $row["servid"];
-       $away = $row["away"];
-       if ($away == "Y") $awaymsg = $row["awaymsg"];
-       $isircop = $row["mode_lo"];
-       $issadmin = $row["mode_la"]; //bahamut only?
-       $isreg = $row["mode_lr"]; //bahamut only? depends of type of services?
-       }
-
-$q_servers = mysql_query ("select server,comment from server where servid=$servid");
-$r = mysql_fetch_row($q_servers);
-$server = $r[0];
-$scomm = $r[1];
-
-$chid = Array();
-$chname = Array();
-$channels = NULL;
-$q_channs = mysql_query ("select channel from ison,chan,user where nick = \"$nickname\" and (ison.chanid=chan.chanid and user.nickid=ison.nickid)");
-while ($r = mysql_fetch_array ($q_channs))
-               {
-               $tmp = $r["channel"];
-               $q_mode = mysql_query("select mode_ls,mode_lp,chanid from chan where channel=\"$tmp\" ");
-       $q_mode_r = mysql_fetch_row($q_mode);
-               if ($q_mode_r[0] == "N" && $q_mode_r[1] == "N") 
-                       {
-               $q_getop=mysql_query("select mode_lo,mode_lv from ison where chanid=$q_mode_r[2] and nickid=$id");
-               $chmode = mysql_fetch_row($q_getop);
-               if ($chmode[0]=="Y") $channels = $channels . " @" . $tmp;
-                       elseif ($chmode[1]=="Y") $channels = $channels . " +" . $tmp;
-                       else $channels = $channels . " " . $tmp;
-                       }
-               }
-mysql_close($link);
-
-
-echo "<table width=\"550\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">";
-echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname is ".$username."@".$hostname." * ".$rname."</font></td></tr>";
-echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname is connected since $connecttime</font></td></tr>";
-
-if (!is_null($channels)) echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname on $channels</font></td></tr>";
-echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname using $server $scomm</font></td></tr>";
-if ($isreg == "Y") echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname has identified for this nick</font></td></tr>";
-if ($away == "N") echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname is not away</font></td></tr>";
-else echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname is away: $awaymsg</font></td></tr>";
-if ($isircop == "Y") echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname is an IRC Operator</font></td></tr>";
-if ($issadmin == "Y") echo "<tr><td><font face=\"Arial, Helvetica, sans-serif\" size=\"2\">$nickname is a Service Administrator</font></td></tr>";
-echo "<tr><td align=\"center\"><font face=\"Arial, Helvetica, sans-serif\" size=\"2\"><hr></font></td></tr>";
-echo "<tr><td align=\"center\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-2\">Whois by <a href=\"mailto:partizanu@netchat.ro\">Partizanu</a></font></td></tr>";
-echo "<tr><td align=\"center\"><font face=\"Arial, Helvetica, sans-serif\" size=\"-2\">Unleash &#147;<a href=\"http://www.lucas-nussbaum.net/thales/\">Thales</a>&#148; power!</font></td></tr>";
-echo "</table>";
-?>
diff --git a/examples/whois/whois.html b/examples/whois/whois.html
deleted file mode 100644 (file)
index bd3cc82..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<html>
-<head>
-<title>Thales whois</title>
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
-</head>
-
-<body bgcolor="#CCCCCC" text="#000000">
-<table width="750" border="0" cellspacing="0" cellpadding="0" align="center">
-  <tr> 
-    <td> 
-      <p align="center"><font face="Arial, Helvetica, sans-serif" size="2"><b>Thales Simple 'Whois' Query</b></font></p>
-      <form name="form" method="post" action="dowhois">
-        <div align="center"><font face="Arial, Helvetica, sans-serif" size="2">Nickname 
-          <input type="text" name="nickname" maxlength="40" size="40">
-          <input type="submit" name="Submit" value="Whois">
-          </font> </div>
-      </form>
-    </td>
-  </tr>
-</table>
-</body>
-</html>
diff --git a/install-sh b/install-sh
deleted file mode 100755 (executable)
index e9de238..0000000
+++ /dev/null
@@ -1,251 +0,0 @@
-#!/bin/sh
-#
-# install - install a program, script, or datafile
-# This comes from X11R5 (mit/util/scripts/install.sh).
-#
-# Copyright 1991 by the Massachusetts Institute of Technology
-#
-# Permission to use, copy, modify, distribute, and sell this software and its
-# documentation for any purpose is hereby granted without fee, provided that
-# the above copyright notice appear in all copies and that both that
-# copyright notice and this permission notice appear in supporting
-# documentation, and that the name of M.I.T. not be used in advertising or
-# publicity pertaining to distribution of the software without specific,
-# written prior permission.  M.I.T. makes no representations about the
-# suitability of this software for any purpose.  It is provided "as is"
-# without express or implied warranty.
-#
-# Calling this script install-sh is preferred over install.sh, to prevent
-# `make' implicit rules from creating a file called install from it
-# when there is no Makefile.
-#
-# This script is compatible with the BSD install script, but was written
-# from scratch.  It can only install one file at a time, a restriction
-# shared with many OS's install programs.
-
-
-# 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}"
-mkdirprog="${MKDIRPROG-mkdir}"
-
-transformbasename=""
-transform_arg=""
-instcmd="$mvprog"
-chmodcmd="$chmodprog 0755"
-chowncmd=""
-chgrpcmd=""
-stripcmd=""
-rmcmd="$rmprog -f"
-mvcmd="$mvprog"
-src=""
-dst=""
-dir_arg=""
-
-while [ x"$1" != x ]; do
-    case $1 in
-       -c) instcmd="$cpprog"
-           shift
-           continue;;
-
-       -d) dir_arg=true
-           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;;
-
-       -t=*) transformarg=`echo $1 | sed 's/-t=//'`
-           shift
-           continue;;
-
-       -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
-           shift
-           continue;;
-
-       *)  if [ x"$src" = x ]
-           then
-               src=$1
-           else
-               # this colon is to work around a 386BSD /bin/sh bug
-               :
-               dst=$1
-           fi
-           shift
-           continue;;
-    esac
-done
-
-if [ x"$src" = x ]
-then
-       echo "install:  no input file specified"
-       exit 1
-else
-       true
-fi
-
-if [ x"$dir_arg" != x ]; then
-       dst=$src
-       src=""
-       
-       if [ -d $dst ]; then
-               instcmd=:
-               chmodcmd=""
-       else
-               instcmd=mkdir
-       fi
-else
-
-# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
-# might cause directories to be created, which would be especially bad 
-# if $src (and thus $dsttmp) contains '*'.
-
-       if [ -f $src -o -d $src ]
-       then
-               true
-       else
-               echo "install:  $src does not exist"
-               exit 1
-       fi
-       
-       if [ x"$dst" = x ]
-       then
-               echo "install:  no destination specified"
-               exit 1
-       else
-               true
-       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`
-       else
-               true
-       fi
-fi
-
-## this sed command emulates the dirname command
-dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
-
-# Make sure that the destination directory exists.
-#  this part is taken from Noah Friedman's mkinstalldirs script
-
-# Skip lots of stat calls in the usual case.
-if [ ! -d "$dstdir" ]; then
-defaultIFS='   
-'
-IFS="${IFS-${defaultIFS}}"
-
-oIFS="${IFS}"
-# Some sh's can't handle IFS=/ for some reason.
-IFS='%'
-set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
-IFS="${oIFS}"
-
-pathcomp=''
-
-while [ $# -ne 0 ] ; do
-       pathcomp="${pathcomp}${1}"
-       shift
-
-       if [ ! -d "${pathcomp}" ] ;
-        then
-               $mkdirprog "${pathcomp}"
-       else
-               true
-       fi
-
-       pathcomp="${pathcomp}/"
-done
-fi
-
-if [ x"$dir_arg" != x ]
-then
-       $doit $instcmd $dst &&
-
-       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi &&
-       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi &&
-       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi &&
-       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi
-else
-
-# If we're going to rename the final executable, determine the name now.
-
-       if [ x"$transformarg" = x ] 
-       then
-               dstfile=`basename $dst`
-       else
-               dstfile=`basename $dst $transformbasename | 
-                       sed $transformarg`$transformbasename
-       fi
-
-# don't allow the sed command to completely eliminate the filename
-
-       if [ x"$dstfile" = x ] 
-       then
-               dstfile=`basename $dst`
-       else
-               true
-       fi
-
-# Make a temp file name in the proper directory.
-
-       dsttmp=$dstdir/#inst.$$#
-
-# Move or copy the file name to the temp name
-
-       $doit $instcmd $src $dsttmp &&
-
-       trap "rm -f ${dsttmp}" 0 &&
-
-# and set any options; do chmod last to preserve setuid bits
-
-# If any of these fail, we abort the whole thing.  If we want to
-# ignore errors from any of these, just make sure not to ignore
-# errors from the above "$doit $instcmd $src $dsttmp" command.
-
-       if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
-       if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
-       if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
-       if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&
-
-# Now rename the file to the real destination.
-
-       $doit $rmcmd -f $dstdir/$dstfile &&
-       $doit $mvcmd $dsttmp $dstdir/$dstfile 
-
-fi &&
-
-
-exit 0
diff --git a/missing b/missing
deleted file mode 100755 (executable)
index 0a7fb5a..0000000
--- a/missing
+++ /dev/null
@@ -1,283 +0,0 @@
-#! /bin/sh
-# Common stub for a few missing GNU programs while installing.
-# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc.
-# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
-
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2, or (at your option)
-# any later version.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, 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.
-
-if test $# -eq 0; then
-  echo 1>&2 "Try \`$0 --help' for more information"
-  exit 1
-fi
-
-run=:
-
-# In the cases where this matters, `missing' is being run in the
-# srcdir already.
-if test -f configure.ac; then
-  configure_ac=configure.ac
-else
-  configure_ac=configure.in
-fi
-
-case "$1" in
---run)
-  # Try to run requested program, and just exit if it succeeds.
-  run=
-  shift
-  "$@" && exit 0
-  ;;
-esac
-
-# If it does not exist, or fails to run (possibly an outdated version),
-# try to emulate it.
-case "$1" in
-
-  -h|--h|--he|--hel|--help)
-    echo "\
-$0 [OPTION]... PROGRAM [ARGUMENT]...
-
-Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
-error status if there is no known handling for PROGRAM.
-
-Options:
-  -h, --help      display this help and exit
-  -v, --version   output version information and exit
-  --run           try to run the given command, and emulate it if it fails
-
-Supported PROGRAM values:
-  aclocal      touch file \`aclocal.m4'
-  autoconf     touch file \`configure'
-  autoheader   touch file \`config.h.in'
-  automake     touch all \`Makefile.in' files
-  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
-  flex         create \`lex.yy.c', if possible, from existing .c
-  help2man     touch the output file
-  lex          create \`lex.yy.c', if possible, from existing .c
-  makeinfo     touch the output file
-  tar          try tar, gnutar, gtar, then tar without non-portable flags
-  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]"
-    ;;
-
-  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
-    echo "missing 0.3 - GNU automake"
-    ;;
-
-  -*)
-    echo 1>&2 "$0: Unknown \`$1' option"
-    echo 1>&2 "Try \`$0 --help' for more information"
-    exit 1
-    ;;
-
-  aclocal)
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
-         to install the \`Automake' and \`Perl' packages.  Grab them from
-         any GNU archive site."
-    touch aclocal.m4
-    ;;
-
-  autoconf)
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-         you modified \`${configure_ac}'.  You might want to install the
-         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
-         archive site."
-    touch configure
-    ;;
-
-  autoheader)
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
-         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
-         from any GNU archive site."
-    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
-    test -z "$files" && files="config.h"
-    touch_files=
-    for f in $files; do
-      case "$f" in
-      *:*) touch_files="$touch_files "`echo "$f" |
-                                      sed -e 's/^[^:]*://' -e 's/:.*//'`;;
-      *) touch_files="$touch_files $f.in";;
-      esac
-    done
-    touch $touch_files
-    ;;
-
-  automake)
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
-         You might want to install the \`Automake' and \`Perl' packages.
-         Grab them from any GNU archive site."
-    find . -type f -name Makefile.am -print |
-          sed 's/\.am$/.in/' |
-          while read f; do touch "$f"; done
-    ;;
-
-  bison|yacc)
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-         you modified a \`.y' file.  You may need the \`Bison' package
-         in order for those modifications to take effect.  You can get
-         \`Bison' from any GNU archive site."
-    rm -f y.tab.c y.tab.h
-    if [ $# -ne 1 ]; then
-        eval LASTARG="\${$#}"
-       case "$LASTARG" in
-       *.y)
-           SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
-           if [ -f "$SRCFILE" ]; then
-                cp "$SRCFILE" y.tab.c
-           fi
-           SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
-           if [ -f "$SRCFILE" ]; then
-                cp "$SRCFILE" y.tab.h
-           fi
-         ;;
-       esac
-    fi
-    if [ ! -f y.tab.h ]; then
-       echo >y.tab.h
-    fi
-    if [ ! -f y.tab.c ]; then
-       echo 'main() { return 0; }' >y.tab.c
-    fi
-    ;;
-
-  lex|flex)
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-         you modified a \`.l' file.  You may need the \`Flex' package
-         in order for those modifications to take effect.  You can get
-         \`Flex' from any GNU archive site."
-    rm -f lex.yy.c
-    if [ $# -ne 1 ]; then
-        eval LASTARG="\${$#}"
-       case "$LASTARG" in
-       *.l)
-           SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
-           if [ -f "$SRCFILE" ]; then
-                cp "$SRCFILE" lex.yy.c
-           fi
-         ;;
-       esac
-    fi
-    if [ ! -f lex.yy.c ]; then
-       echo 'main() { return 0; }' >lex.yy.c
-    fi
-    ;;
-
-  help2man)
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-        you modified a dependency of a manual page.  You may need the
-        \`Help2man' package in order for those modifications to take
-        effect.  You can get \`Help2man' from any GNU archive site."
-
-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
-    if test -z "$file"; then
-       file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
-    fi
-    if [ -f "$file" ]; then
-       touch $file
-    else
-       test -z "$file" || exec >$file
-       echo ".ab help2man is required to generate this page"
-       exit 1
-    fi
-    ;;
-
-  makeinfo)
-    if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
-       # We have makeinfo, but it failed.
-       exit 1
-    fi
-
-    echo 1>&2 "\
-WARNING: \`$1' is missing on your system.  You should only need it if
-         you modified a \`.texi' or \`.texinfo' file, or any other file
-         indirectly affecting the aspect of the manual.  The spurious
-         call might also be the consequence of using a buggy \`make' (AIX,
-         DU, IRIX).  You might want to install the \`Texinfo' package or
-         the \`GNU make' package.  Grab either from any GNU archive site."
-    file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
-    if test -z "$file"; then
-      file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
-      file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
-    fi
-    touch $file
-    ;;
-
-  tar)
-    shift
-    if test -n "$run"; then
-      echo 1>&2 "ERROR: \`tar' requires --run"
-      exit 1
-    fi
-
-    # We have already tried tar in the generic part.
-    # Look for gnutar/gtar before invocation to avoid ugly error
-    # messages.
-    if (gnutar --version > /dev/null 2>&1); then
-       gnutar ${1+"$@"} && exit 0
-    fi
-    if (gtar --version > /dev/null 2>&1); then
-       gtar ${1+"$@"} && exit 0
-    fi
-    firstarg="$1"
-    if shift; then
-       case "$firstarg" in
-       *o*)
-           firstarg=`echo "$firstarg" | sed s/o//`
-           tar "$firstarg" ${1+"$@"} && exit 0
-           ;;
-       esac
-       case "$firstarg" in
-       *h*)
-           firstarg=`echo "$firstarg" | sed s/h//`
-           tar "$firstarg" ${1+"$@"} && exit 0
-           ;;
-       esac
-    fi
-
-    echo 1>&2 "\
-WARNING: I can't seem to be able to run \`tar' with the given arguments.
-         You may want to install GNU tar or Free paxutils, or check the
-         command line arguments."
-    exit 1
-    ;;
-
-  *)
-    echo 1>&2 "\
-WARNING: \`$1' is needed, and you do not seem to have it handy on your
-         system.  You might have modified some files without having the
-         proper tools for further handling them.  Check the \`README' file,
-         it often tells you about the needed prerequirements for installing
-         this package.  You may also peek at any GNU archive site, in case
-         some other package would contain this missing \`$1' program."
-    exit 1
-    ;;
-esac
-
-exit 0
diff --git a/mkinstalldirs b/mkinstalldirs
deleted file mode 100755 (executable)
index 6b3b5fc..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-#! /bin/sh
-# mkinstalldirs --- make directory hierarchy
-# Author: Noah Friedman <friedman@prep.ai.mit.edu>
-# Created: 1993-05-16
-# Public domain
-
-# $Id$
-
-errstatus=0
-
-for file
-do
-   set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
-   shift
-
-   pathcomp=
-   for d
-   do
-     pathcomp="$pathcomp$d"
-     case "$pathcomp" in
-       -* ) pathcomp=./$pathcomp ;;
-     esac
-
-     if test ! -d "$pathcomp"; then
-        echo "mkdir $pathcomp"
-
-        mkdir "$pathcomp" || lasterr=$?
-
-        if test ! -d "$pathcomp"; then
-         errstatus=$lasterr
-        fi
-     fi
-
-     pathcomp="$pathcomp/"
-   done
-done
-
-exit $errstatus
-
-# mkinstalldirs ends here
diff --git a/src/.indent.pro b/src/.indent.pro
deleted file mode 100644 (file)
index c01c1c9..0000000
+++ /dev/null
@@ -1 +0,0 @@
--gnu -npsl -bli0 -ut -i3 -ts3 -l75 -lc78 -sc -npcs -nbc
index 6795f4526a40943a1e0590d5da1acbbd7ef459c4..27a631241ad8c94236aca86561e969214128373e 100644 (file)
@@ -1,2 +1,2 @@
 bin_PROGRAMS = thales
-thales_SOURCES = main.c log.c log.h thales.h conf.c conf.h compat.c compat.h misc.c misc.h defs.h send.c send.h sockutil.c sockutil.h messages.c messages.h process.c process.h memory.c memory.h db.c db.h actions.c actions.h hashlist.c hashlist.h
\ No newline at end of file
+thales_SOURCES = main.c
diff --git a/src/Makefile.in b/src/Makefile.in
deleted file mode 100644 (file)
index 7600a29..0000000
+++ /dev/null
@@ -1,433 +0,0 @@
-# Makefile.in generated by automake 1.9.6 from Makefile.am.
-# @configure_input@
-
-# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-# 2003, 2004, 2005  Free Software Foundation, Inc.
-# This Makefile.in is free software; the Free Software Foundation
-# gives unlimited permission to copy and/or distribute it,
-# with or without modifications, as long as this notice is preserved.
-
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
-# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
-# PARTICULAR PURPOSE.
-
-@SET_MAKE@
-
-srcdir = @srcdir@
-top_srcdir = @top_srcdir@
-VPATH = @srcdir@
-pkgdatadir = $(datadir)/@PACKAGE@
-pkglibdir = $(libdir)/@PACKAGE@
-pkgincludedir = $(includedir)/@PACKAGE@
-top_builddir = ..
-am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
-INSTALL = @INSTALL@
-install_sh_DATA = $(install_sh) -c -m 644
-install_sh_PROGRAM = $(install_sh) -c
-install_sh_SCRIPT = $(install_sh) -c
-INSTALL_HEADER = $(INSTALL_DATA)
-transform = $(program_transform_name)
-NORMAL_INSTALL = :
-PRE_INSTALL = :
-POST_INSTALL = :
-NORMAL_UNINSTALL = :
-PRE_UNINSTALL = :
-POST_UNINSTALL = :
-bin_PROGRAMS = thales$(EXEEXT)
-subdir = src
-DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
-       $(srcdir)/config.h.in
-ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
-am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
-       $(top_srcdir)/configure.in
-am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
-       $(ACLOCAL_M4)
-mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
-CONFIG_HEADER = config.h
-CONFIG_CLEAN_FILES =
-am__installdirs = "$(DESTDIR)$(bindir)"
-binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
-PROGRAMS = $(bin_PROGRAMS)
-am_thales_OBJECTS = main.$(OBJEXT) log.$(OBJEXT) conf.$(OBJEXT) \
-       compat.$(OBJEXT) misc.$(OBJEXT) send.$(OBJEXT) \
-       sockutil.$(OBJEXT) messages.$(OBJEXT) process.$(OBJEXT) \
-       memory.$(OBJEXT) db.$(OBJEXT) actions.$(OBJEXT) \
-       hashlist.$(OBJEXT)
-thales_OBJECTS = $(am_thales_OBJECTS)
-thales_LDADD = $(LDADD)
-DEFAULT_INCLUDES = -I. -I$(srcdir) -I.
-depcomp = $(SHELL) $(top_srcdir)/depcomp
-am__depfiles_maybe = depfiles
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
-       $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
-SOURCES = $(thales_SOURCES)
-DIST_SOURCES = $(thales_SOURCES)
-ETAGS = etags
-CTAGS = ctags
-DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
-ACLOCAL = @ACLOCAL@
-AMDEP_FALSE = @AMDEP_FALSE@
-AMDEP_TRUE = @AMDEP_TRUE@
-AMTAR = @AMTAR@
-AUTOCONF = @AUTOCONF@
-AUTOHEADER = @AUTOHEADER@
-AUTOMAKE = @AUTOMAKE@
-AWK = @AWK@
-CC = @CC@
-CCDEPMODE = @CCDEPMODE@
-CFLAGS = @CFLAGS@
-CPP = @CPP@
-CPPFLAGS = @CPPFLAGS@
-CYGPATH_W = @CYGPATH_W@
-DEFS = @DEFS@
-DEPDIR = @DEPDIR@
-ECHO_C = @ECHO_C@
-ECHO_N = @ECHO_N@
-ECHO_T = @ECHO_T@
-EGREP = @EGREP@
-EXEEXT = @EXEEXT@
-GREP = @GREP@
-INSTALL_DATA = @INSTALL_DATA@
-INSTALL_PROGRAM = @INSTALL_PROGRAM@
-INSTALL_SCRIPT = @INSTALL_SCRIPT@
-INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
-LDFLAGS = @LDFLAGS@
-LIBOBJS = @LIBOBJS@
-LIBS = @LIBS@
-LN_S = @LN_S@
-LTLIBOBJS = @LTLIBOBJS@
-MAKEINFO = @MAKEINFO@
-OBJEXT = @OBJEXT@
-PACKAGE = @PACKAGE@
-PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
-PACKAGE_NAME = @PACKAGE_NAME@
-PACKAGE_STRING = @PACKAGE_STRING@
-PACKAGE_TARNAME = @PACKAGE_TARNAME@
-PACKAGE_VERSION = @PACKAGE_VERSION@
-PATH_SEPARATOR = @PATH_SEPARATOR@
-SET_MAKE = @SET_MAKE@
-SHELL = @SHELL@
-STRIP = @STRIP@
-VERSION = @VERSION@
-ac_ct_CC = @ac_ct_CC@
-am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
-am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
-am__include = @am__include@
-am__leading_dot = @am__leading_dot@
-am__quote = @am__quote@
-am__tar = @am__tar@
-am__untar = @am__untar@
-bindir = @bindir@
-build_alias = @build_alias@
-datadir = @datadir@
-datarootdir = @datarootdir@
-docdir = @docdir@
-dvidir = @dvidir@
-exec_prefix = @exec_prefix@
-host_alias = @host_alias@
-htmldir = @htmldir@
-includedir = @includedir@
-infodir = @infodir@
-install_sh = @install_sh@
-libdir = @libdir@
-libexecdir = @libexecdir@
-localedir = @localedir@
-localstatedir = @localstatedir@
-mandir = @mandir@
-mkdir_p = @mkdir_p@
-oldincludedir = @oldincludedir@
-pdfdir = @pdfdir@
-prefix = @prefix@
-program_transform_name = @program_transform_name@
-psdir = @psdir@
-sbindir = @sbindir@
-sharedstatedir = @sharedstatedir@
-sysconfdir = @sysconfdir@
-target_alias = @target_alias@
-thales_SOURCES = main.c log.c log.h thales.h conf.c conf.h compat.c compat.h misc.c misc.h defs.h send.c send.h sockutil.c sockutil.h messages.c messages.h process.c process.h memory.c memory.h db.c db.h actions.c actions.h hashlist.c hashlist.h
-all: config.h
-       $(MAKE) $(AM_MAKEFLAGS) all-am
-
-.SUFFIXES:
-.SUFFIXES: .c .o .obj
-$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
-       @for dep in $?; do \
-         case '$(am__configure_deps)' in \
-           *$$dep*) \
-             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
-               && exit 0; \
-             exit 1;; \
-         esac; \
-       done; \
-       echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu  src/Makefile'; \
-       cd $(top_srcdir) && \
-         $(AUTOMAKE) --gnu  src/Makefile
-.PRECIOUS: Makefile
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
-       @case '$?' in \
-         *config.status*) \
-           cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
-         *) \
-           echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
-           cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
-       esac;
-
-$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
-       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-$(top_srcdir)/configure:  $(am__configure_deps)
-       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-$(ACLOCAL_M4):  $(am__aclocal_m4_deps)
-       cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
-
-config.h: stamp-h1
-       @if test ! -f $@; then \
-         rm -f stamp-h1; \
-         $(MAKE) stamp-h1; \
-       else :; fi
-
-stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
-       @rm -f stamp-h1
-       cd $(top_builddir) && $(SHELL) ./config.status src/config.h
-$(srcdir)/config.h.in:  $(am__configure_deps) 
-       cd $(top_srcdir) && $(AUTOHEADER)
-       rm -f stamp-h1
-       touch $@
-
-distclean-hdr:
-       -rm -f config.h stamp-h1
-install-binPROGRAMS: $(bin_PROGRAMS)
-       @$(NORMAL_INSTALL)
-       test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
-       @list='$(bin_PROGRAMS)'; for p in $$list; do \
-         p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
-         if test -f $$p \
-         ; then \
-           f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
-          echo " $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
-          $(INSTALL_PROGRAM_ENV) $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
-         else :; fi; \
-       done
-
-uninstall-binPROGRAMS:
-       @$(NORMAL_UNINSTALL)
-       @list='$(bin_PROGRAMS)'; for p in $$list; do \
-         f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
-         echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
-         rm -f "$(DESTDIR)$(bindir)/$$f"; \
-       done
-
-clean-binPROGRAMS:
-       -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
-thales$(EXEEXT): $(thales_OBJECTS) $(thales_DEPENDENCIES) 
-       @rm -f thales$(EXEEXT)
-       $(LINK) $(thales_LDFLAGS) $(thales_OBJECTS) $(thales_LDADD) $(LIBS)
-
-mostlyclean-compile:
-       -rm -f *.$(OBJEXT)
-
-distclean-compile:
-       -rm -f *.tab.c
-
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/actions.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/compat.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/conf.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/db.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hashlist.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/log.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/memory.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/messages.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/process.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/send.Po@am__quote@
-@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sockutil.Po@am__quote@
-
-.c.o:
-@am__fastdepCC_TRUE@   if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(COMPILE) -c $<
-
-.c.obj:
-@am__fastdepCC_TRUE@   if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
-@am__fastdepCC_TRUE@   then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
-@AMDEP_TRUE@@am__fastdepCC_FALSE@      DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
-@am__fastdepCC_FALSE@  $(COMPILE) -c `$(CYGPATH_W) '$<'`
-uninstall-info-am:
-
-ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
-       list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
-       unique=`for i in $$list; do \
-           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-         done | \
-         $(AWK) '    { files[$$0] = 1; } \
-              END { for (i in files) print i; }'`; \
-       mkid -fID $$unique
-tags: TAGS
-
-TAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
-               $(TAGS_FILES) $(LISP)
-       tags=; \
-       here=`pwd`; \
-       list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
-       unique=`for i in $$list; do \
-           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-         done | \
-         $(AWK) '    { files[$$0] = 1; } \
-              END { for (i in files) print i; }'`; \
-       if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
-         test -n "$$unique" || unique=$$empty_fix; \
-         $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
-           $$tags $$unique; \
-       fi
-ctags: CTAGS
-CTAGS:  $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
-               $(TAGS_FILES) $(LISP)
-       tags=; \
-       here=`pwd`; \
-       list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
-       unique=`for i in $$list; do \
-           if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
-         done | \
-         $(AWK) '    { files[$$0] = 1; } \
-              END { for (i in files) print i; }'`; \
-       test -z "$(CTAGS_ARGS)$$tags$$unique" \
-         || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
-            $$tags $$unique
-
-GTAGS:
-       here=`$(am__cd) $(top_builddir) && pwd` \
-         && cd $(top_srcdir) \
-         && gtags -i $(GTAGS_ARGS) $$here
-
-distclean-tags:
-       -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
-
-distdir: $(DISTFILES)
-       @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
-       topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
-       list='$(DISTFILES)'; for file in $$list; do \
-         case $$file in \
-           $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
-           $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
-         esac; \
-         if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
-         dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
-         if test "$$dir" != "$$file" && test "$$dir" != "."; then \
-           dir="/$$dir"; \
-           $(mkdir_p) "$(distdir)$$dir"; \
-         else \
-           dir=''; \
-         fi; \
-         if test -d $$d/$$file; then \
-           if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
-             cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
-           fi; \
-           cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
-         else \
-           test -f $(distdir)/$$file \
-           || cp -p $$d/$$file $(distdir)/$$file \
-           || exit 1; \
-         fi; \
-       done
-check-am: all-am
-check: check-am
-all-am: Makefile $(PROGRAMS) config.h
-installdirs:
-       for dir in "$(DESTDIR)$(bindir)"; do \
-         test -z "$$dir" || $(mkdir_p) "$$dir"; \
-       done
-install: install-am
-install-exec: install-exec-am
-install-data: install-data-am
-uninstall: uninstall-am
-
-install-am: all-am
-       @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
-
-installcheck: installcheck-am
-install-strip:
-       $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
-         install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
-         `test -z '$(STRIP)' || \
-           echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
-mostlyclean-generic:
-
-clean-generic:
-
-distclean-generic:
-       -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-
-maintainer-clean-generic:
-       @echo "This command is intended for maintainers to use"
-       @echo "it deletes files that may require special tools to rebuild."
-clean: clean-am
-
-clean-am: clean-binPROGRAMS clean-generic mostlyclean-am
-
-distclean: distclean-am
-       -rm -rf ./$(DEPDIR)
-       -rm -f Makefile
-distclean-am: clean-am distclean-compile distclean-generic \
-       distclean-hdr distclean-tags
-
-dvi: dvi-am
-
-dvi-am:
-
-html: html-am
-
-info: info-am
-
-info-am:
-
-install-data-am:
-
-install-exec-am: install-binPROGRAMS
-
-install-info: install-info-am
-
-install-man:
-
-installcheck-am:
-
-maintainer-clean: maintainer-clean-am
-       -rm -rf ./$(DEPDIR)
-       -rm -f Makefile
-maintainer-clean-am: distclean-am maintainer-clean-generic
-
-mostlyclean: mostlyclean-am
-
-mostlyclean-am: mostlyclean-compile mostlyclean-generic
-
-pdf: pdf-am
-
-pdf-am:
-
-ps: ps-am
-
-ps-am:
-
-uninstall-am: uninstall-binPROGRAMS uninstall-info-am
-
-.PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
-       clean-generic ctags distclean distclean-compile \
-       distclean-generic distclean-hdr distclean-tags distdir dvi \
-       dvi-am html html-am info info-am install install-am \
-       install-binPROGRAMS install-data install-data-am install-exec \
-       install-exec-am install-info install-info-am install-man \
-       install-strip installcheck installcheck-am installdirs \
-       maintainer-clean maintainer-clean-generic mostlyclean \
-       mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \
-       tags uninstall uninstall-am uninstall-binPROGRAMS \
-       uninstall-info-am
-
-# Tell versions [3.59,3.63) of GNU make to not export all variables.
-# Otherwise a system limit (for SysV at least) may be exceeded.
-.NOEXPORT:
diff --git a/src/actions.c b/src/actions.c
deleted file mode 100644 (file)
index 30abe81..0000000
+++ /dev/null
@@ -1,917 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "actions.h"
-#include "db.h"
-#include "send.h"
-#include "misc.h"
-#include "compat.h"
-#include "memory.h"
-#include "log.h"
-#include "sockutil.h"
-
-extern char *ServerName;
-extern char *RemoteServer;
-extern time_t start_time;
-extern char inbuf[];
-extern int ServerCacheTime;
-extern int UserCacheTime;
-extern int HidePasswords;
-
-/*************************************************************************/
-/*
- * Max values calculation
- */
-
-unsigned int nbusers = 0;
-unsigned int nbusers_max = 0;
-unsigned int nbchans = 0;
-unsigned int nbchans_max = 0;
-unsigned int nbservs = 0;
-unsigned int nbservs_max = 0;
-/* keep track of logged umodes et cmodes, init to 0 by default */
-int log_umode[256];
-int log_cmode[256];
-
-/* check if nbchans > nbchans_max */
-void do_checknbchansmax()
-{
-       if (nbchans > nbchans_max)
-       {
-               nbchans_max = nbchans;
-               db_query
-                       ("UPDATE " TBL_MAXV
-                        " SET val=\'%d\', time=NOW() WHERE type='channels'",
-                        nbchans_max);
-       }
-}
-
-/* check if nbusers > nbusers_max */
-void do_checknbusersmax()
-{
-       if (nbusers > nbusers_max)
-       {
-               nbusers_max = nbusers;
-               db_query
-                       ("UPDATE " TBL_MAXV
-                        " SET val=\'%d\', time=NOW() WHERE type='users'", nbusers_max);
-       }
-}
-
-/* check if nbservs > nbservs_max */
-void do_checknbservsmax()
-{
-       if (nbservs > nbservs_max)
-       {
-               nbservs_max = nbservs;
-               db_query
-                       ("UPDATE " TBL_MAXV
-                        " SET val=\'%d\', time=NOW() WHERE type='servers'", nbservs_max);
-       }
-}
-
-/*************************************************************************/
-/*
- * general purpose functions
- */
-
-#if !(defined(IRCD_UNREAL)||defined(IRCD_HYBRID)||defined(IRCD_ULTI28))
-/* converts an IP numeric to a char * */
-static char *do_ipdecode(char *ipaddr)
-{
-       static char buf[16];                      /* enough for an IPv4 address. TODO IPv6 ? */
-       unsigned int ip = (unsigned int) strtoul(ipaddr, (char **) NULL, 10);
-       snprintf(buf, 16, "%u.%u.%u.%u", (unsigned int) ip >> 24,
-                               (unsigned int) (ip & 0xff0000) >> 16,
-                               (unsigned int) (ip & 0xff00) >> 8, (unsigned int) ip & 0xff);
-       return buf;
-}
-#endif
-
-/* adds modes to a given chanid */
-static void do_chanmodes(int chanid, char **av, int ac)
-{
-       /* the ircd parses the mode before forwarding it to thales, so there's no buffer overrun
-        * possibility here.   - lucas
-        */
-       int atleastone = 0;
-       char db[1000];                                    /* should be enough for long queries */
-       char tmp[14] = "mode_XX=\"X\", ";
-       char *modes = av[0];
-       int argptr = 1;
-       if (*modes == '0')
-               return;
-       strcpy(db, "UPDATE " TBL_CHAN " SET ");
-       while (*modes)
-       {
-               switch (*modes)
-               {
-               case '+':
-                       tmp[9] = 'Y';
-                       break;
-               case '-':
-                       tmp[9] = 'N';
-                       break;
-               default:
-                       if (!strchr(CHANMODES, *modes))
-                       {
-                               if (!log_cmode[(int) *modes])
-                               {
-                                       mylog("unknown mode : chanmode %c (in %s)", *modes, inbuf);
-                                       log_cmode[(int) *modes] = TRUE;
-                               }
-                       }
-#ifdef IRCD_ULTI28
-                       else if (*modes == 'b' || *modes == 'e' || *modes == 'f')       /* ignore them */
-                               argptr++;
-#else
-                       else if (*modes == 'b' || *modes == 'e' || *modes == 'I')       /* ignore them */
-                               argptr++;
-#endif
-#ifdef IRCD_IRCDRU
-                       else if (*modes == 'B' || *modes == 'X' || *modes == 'E')       /* ignore them too */
-                               argptr++;
-#endif
-
-#if defined(IRCD_BAHAMUT)||defined(IRCD_IRCDRU)
-                       else if (*modes == 'o' || *modes == 'v')
-#elif defined(IRCD_HYBRID)||defined(IRCD_ULTI28)
-                       else if (*modes == 'o' || *modes == 'v' || *modes == 'h')
-#elif defined(IRCD_ULTIMATE)
-                       else if (*modes == 'o' || *modes == 'v'
-                                               || *modes == 'a' || *modes == 'h')
-#elif defined(IRCD_UNREAL)
-                       else if (*modes == 'o' || *modes == 'v'
-                                               || *modes == 'a' || *modes == 'h' || *modes == 'q')
-#endif
-                       {
-                               char *user;
-                               user = db_escape(av[argptr++]);
-                               db_query
-                                       ("UPDATE " TBL_ISON
-                                        " SET mode_l%c=\"%c\" WHERE chanid=\"%d\" AND nickid=\"%d\"",
-                                        *modes, tmp[9], chanid, db_getnick(user));
-                               free(user);
-                       }
-                       else
-                       {
-                               atleastone = 1;
-                               tmp[5] = ((*modes >= 'a') ? 'l' : 'u');
-                               tmp[6] = tolower(*modes);
-                               strcat(db, tmp);
-                               if (*modes == 'k')
-                               {
-                                       if (tmp[9] == 'Y')
-                                       {
-                                               char *key = db_escape(av[argptr++]);
-                                               if (HidePasswords)
-                                               {
-                                                       strcat(db, "mode_lk_data=\"HIDDEN\", ");
-                                               }
-                                               else
-                                               {
-                                                       strcat(db, "mode_lk_data=\"");
-                                                       strcat(db, key);
-                                                       strcat(db, "\", ");
-                                               }
-                                               free(key);
-                                       }
-                                       else
-                                       {
-                                               strcat(db, "mode_lk_data=\"\", ");
-                                               argptr++;         /* mode -k needs a parameter */
-                                       }
-                               }
-                               else if (*modes == 'l')
-                               {
-                                       if (tmp[9] == 'Y')
-                                       {
-                                               strcat(db, "mode_ll_data=\"");
-                                               strcat(db, av[argptr++]);
-                                               strcat(db, "\", ");
-                                       }
-                                       else
-                                       {
-                                               strcat(db, "mode_ll_data=\"\", ");
-                                       }
-                               }
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTI28)
-                               else if (*modes == 'L')
-                               {
-                                       if (tmp[9] == 'Y')
-                                       {
-                                               char *ch = db_escape(av[argptr++]);
-                                               strcat(db, "mode_ul_data=\"");
-                                               strcat(db, ch);
-                                               strcat(db, "\", ");
-                                               free(ch);
-                                       }
-                                       else
-                                       {
-                                               strcat(db, "mode_ul_data=\"\", ");
-                                       }
-                               }
-#endif
-#ifdef IRCD_UNREAL
-                               else if (*modes == 'f')
-                               {
-                                       if (tmp[9] == 'Y')
-                                       {
-                                               strcat(db, "mode_lf_data=\"");
-                                               strcat(db, av[argptr++]);
-                                               strcat(db, "\", ");
-                                       }
-                                       else
-                                       {
-                                               strcat(db, "mode_lf_data=\"\", ");
-                                       }
-                               }
-                               else if (*modes == 'j')
-                               {
-                                       if (tmp[9] == 'Y')
-                                       {
-                                               strcat(db, "mode_lj_data=\"");
-                                               strcat(db, av[argptr++]);
-                                               strcat(db, "\", ");
-                                       }
-                                       else
-                                       {
-                                               strcat(db, "mode_lj_data=\"\", ");
-                                       }
-                               }
-#endif
-                       }
-                       break;
-               }
-               modes++;
-       }
-#ifndef NOMODES
-       if (atleastone)
-       {
-               sprintf(&db[strlen(db) - 2], " WHERE chanid=\'%d\'", chanid);
-               db_query(db);
-       }
-#endif /* !NOMODES */
-}
-
-/* add one or more users to a chanid */
-static void do_addusers(int chanid, char *users)
-{
-       int op, voice, halfop, owner, protect;
-       char *nextusers;
-       int nickid;
-       while (users && (*users))
-       {
-               /* Neostats is broken and sends an additional space. */
-               if (*users == ' ')
-                       users++;
-#if defined(IRCD_UNREAL)
-               /* Unreal uses SJOIN to send bans and exempts. Just ignore them. */
-               if ((*users == '&') || (*users == '\"'))
-               {
-                       nextusers = strchr(users, ' ');
-                       if (nextusers)
-                               *nextusers = '\0';
-                       users = nextusers;
-                       if (users)
-                               users++;
-                       continue;
-               }
-#endif
-               op = 0;
-               halfop = 0;
-               voice = 0;
-               owner = 0;
-               protect = 0;
-#if defined(IRCD_ULTIMATE)||defined(IRCD_ULTI28)
-#if defined(IRCD_ULTIMATE)
-               if ((*users == '!') || (*users == '¤'))
-               {
-                       users++;
-                       owner = 1;
-               }
-#endif
-               if (*users == '*')
-               {
-                       users++;
-                       owner = 1;
-               }
-               if (*users == '%')
-               {
-                       users++;
-                       halfop = 1;
-               }
-#endif
-               if (*users == '@')
-               {
-                       users++;
-                       op = 1;
-               }
-               if (*users == '+')
-               {
-                       users++;
-                       voice = 1;
-               }
-#if defined(IRCD_UNREAL)||defined(IRCD_HYBRID)
-               if (*users == '%')
-               {
-                       users++;
-                       halfop = 1;
-               }
-#endif
-#if defined(IRCD_UNREAL)
-               if (*users == '*')
-               {
-                       users++;
-                       owner = 1;
-               }
-               if (*users == '~')
-               {
-                       users++;
-                       protect = 1;
-               }
-#endif
-               nextusers = strchr(users, ' ');
-               if (nextusers)
-                       *nextusers = '\0';
-               users = db_escape(users);
-               nickid = db_checknick(users);
-               if (nickid != -1)
-               {
-#if defined(IRCD_BAHAMUT)||defined(IRCD_IRCDRU)
-                       db_query("INSERT INTO " TBL_ISON
-                                               " (nickid, chanid, mode_lo, mode_lv) VALUES (\'%d\', \'%d\',\'%s\',\'%s\')",
-                                               nickid, chanid, (op ? "Y" : "N"), (voice ? "Y" : "N"));
-#elif defined(IRCD_UNREAL)
-                       db_query("INSERT IGNORE INTO " TBL_ISON
-                                               " (nickid, chanid, mode_lo, mode_lv, mode_lq, mode_lh, mode_la) VALUES (\'%d\', \'%d\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\')",
-                                               nickid, chanid, (op ? "Y" : "N"), (voice ? "Y" : "N"),
-                                               (owner ? "Y" : "N"), (halfop ? "Y" : "N"),
-                                               (protect ? "Y" : "N"));
-#elif defined(IRCD_HYBRID)
-                       db_query("INSERT INTO " TBL_ISON
-                                               " (nickid, chanid, mode_lo, mode_lv, mode_lh) VALUES (\'%d\', \'%d\',\'%s\',\'%s\', \'%s\')",
-                                               nickid, chanid, (op ? "Y" : "N"), (voice ? "Y" : "N"),
-                                               (halfop ? "Y" : "N"));
-#elif defined(IRCD_ULTI28)
-                       db_query("INSERT INTO " TBL_ISON
-                                               " (nickid, chanid, mode_lo, mode_lv, mode_lh) VALUES (\'%d\', \'%d\',\'%s\',\'%s\',\'%s\')",
-                                               nickid, chanid, (op ? "Y" : "N"), (voice ? "Y" : "N"),
-                                               (halfop ? "Y" : "N"));
-#elif defined(IRCD_ULTIMATE)
-                       db_query("INSERT INTO " TBL_ISON
-                                               " (nickid, chanid, mode_lo, mode_lv, mode_lh, mode_la) VALUES (\'%d\', \'%d\',\'%s\',\'%s\',\'%s\',\'%s\')",
-                                               nickid, chanid, (op ? "Y" : "N"), (voice ? "Y" : "N"),
-                                               (halfop ? "Y" : "N"), (owner ? "Y" : "N"));
-#endif
-               }
-               else
-               {
-                       mylog("received join of non-existing user %s on channel ID %d",
-                                       users, chanid);
-               }
-               free(users);
-               users = nextusers;
-               if (users)
-                       users++;
-       }
-}
-
-/* add modes to a nickid */
-static void do_usermodes(int nickid, char *modes)
-{
-#ifndef NOMODES
-       int atleastone = 0;
-       char db[1000];                                    /*should be enough for long queries */
-       char tmp[14] = "mode_XX=\"X\", ";
-       strcpy(db, "UPDATE " TBL_USER " SET ");
-       while (*modes)
-       {
-               switch (*modes)
-               {
-               case '+':
-                       tmp[9] = 'Y';
-                       break;
-               case '-':
-                       tmp[9] = 'N';
-                       break;
-               default:
-                       if (!strchr(USERMODES, *modes))
-                       {
-                               if (!log_umode[(int) *modes])
-                               {
-                                       mylog("unknown mode : usermode %c (in %s)", *modes, inbuf);
-                                       log_umode[(int) *modes] = TRUE;
-                               }
-                       }
-                       else
-                       {
-                               atleastone = 1;
-                               tmp[5] = ((*modes >= 'a') ? 'l' : 'u');
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTIMATE)
-                               if (tmp[9] == 'N' && *modes == 'x')     /* lame Unreal ... */
-                                       db_query
-                                               ("UPDATE " TBL_USER
-                                                " SET hiddenhostname='*' WHERE nickid='%d'", nickid);
-#endif
-                               tmp[6] = tolower(*modes);
-                               strcat(db, tmp);
-                       }
-                       break;
-               }
-               modes++;
-       }
-       if (atleastone)
-       {
-               sprintf(&db[strlen(db) - 2], " WHERE nickid=\'%d\'", nickid);
-               db_query(db);
-       }
-#endif /* !NOMODES */
-}
-
-/*************************************************************************/
-/*
- * IRC messages handlers
- */
-
-/* SERVER */
-void do_server(char *server, char *comment, char *linkedto)
-{
-       int servid;
-       int add = 1;
-       server = db_escape(server);
-       comment = db_escape(comment);
-       linkedto = db_escape(linkedto);
-       if (ServerCacheTime && ((servid = db_checkserver(server)) != -1))
-       {
-               db_query("UPDATE " TBL_SERV
-                                       " SET server=\"%s\", comment=\"%s\", linkedto=\"%d\", connecttime=NOW(), online=\"Y\" WHERE servid=\"%d\"",
-                                       server, comment, db_getserver(linkedto), servid);
-               db_addserver(server, servid);
-               add = 0;
-       }
-       if (add)
-       {
-               db_query
-                       ("INSERT INTO " TBL_SERV
-                        " (server, comment, linkedto, connecttime) VALUES(\'%s\','\%s\',\'%d\', NOW())",
-                        server, comment, db_getserver(linkedto));
-               db_addserver(server, db_insertid());
-       }
-       if (ServerCacheTime)
-               db_cleanserver();
-       free(server);
-       free(comment);
-       free(linkedto);
-       nbservs++;
-       do_checknbservsmax();
-}
-
-/* SQUIT */
-void do_squit(char *server)
-{
-       server = db_escape(server);
-       
-       /* We guess which users are now offline (for NOQUIT support) */
-       db_offlineusers(db_getserver(server));  
-       if (ServerCacheTime)
-       {
-               db_query("UPDATE " TBL_SERV
-                                       " SET online=\"N\", lastsplit=NOW(),linkedto=NULL WHERE servid=\"%d\"",
-                                       db_getserver(server));
-               db_cleanserver();
-
-       }
-       else
-       {
-               db_query("DELETE FROM " TBL_SERV " WHERE server=\'%s\'", server);
-               db_delserver(server);
-       }
-       free(server);
-       nbservs--;
-}
-
-/* NICK (new nick) */
-void do_nick_new(int ac, char **av)
-{
-       char *nick, *realname, *hostname, *username, *serv;
-#ifndef IRCD_ULTI28
-       char *hiddenhost;
-#endif
-#if !(defined(IRCD_UNREAL)||defined(IRCD_HYBRID)||defined(IRCD_ULTI28))
-       char *ipaddr;
-#endif
-       unsigned int connecttime;
-       int servid;
-       int add = 1;
-       int nickid;
-
-       nick = db_escape(av[0]);
-       connecttime = atoi(av[2]);
-#if defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU)||defined(IRCD_HYBRID)
-       username = db_escape(av[4]);
-       hostname = db_escape(av[5]);
-       serv = db_escape(av[6]);
-#if defined(IRCD_HYBRID)
-       hiddenhost = "";
-       realname = db_escape(av[7]);
-#else
-       hiddenhost = "";
-       ipaddr = do_ipdecode(av[8]);
-       realname = db_escape(av[9]);
-#endif
-#elif defined(IRCD_UNREAL)||defined(IRCD_ULTI28)
-       username = db_escape(av[3]);
-       hostname = db_escape(av[4]);
-       serv = db_escape(av[5]);
-#ifdef IRCD_UNREAL
-       hiddenhost = db_escape(av[8]);
-       realname = db_escape(av[9]);
-#else
-       realname = db_escape(av[7]);
-#endif
-#endif
-       servid = db_getserver(serv);
-
-       if (UserCacheTime && ((nickid = db_checknick(nick)) != -1))
-       {
-#if defined(IRCD_BAHAMUT)||defined(IRCD_IRCDRU)        /* with nickip */
-               db_query
-                       ("UPDATE " TBL_USER
-                        " SET nick=\'%s\', realname=\'%s\', hostname=\'%s\', ipaddr=\'%s\', username=\'%s\', connecttime=FROM_UNIXTIME(\'%d\'), servid=\'%d\',lastquit=NULL, online=\'Y\', away=\'N\', awaymsg=\'\' WHERE nickid=\'%d\'",
-                        nick, realname, hostname, ipaddr, username, connecttime, servid,
-                        nickid);
-#elif defined(IRCD_ULTIMATE)     /* with nickip & hiddenhost */
-               db_query
-                       ("UPDATE " TBL_USER
-                        " SET nick=\'%s\', realname=\'%s\', hostname=\'%s\', hiddenhostname=\"%s\", ipaddr=\'%s\', username=\'%s\', connecttime=FROM_UNIXTIME(\'%d\'), servid=\'%d\', lastquit=NULL, online=\'Y\', away=\'N\', awaymsg=\'\' WHERE nickid=\'%d\'",
-                        nick, realname, hostname, hiddenhost, ipaddr, username,
-                        connecttime, servid, nickid);
-#elif defined(IRCD_UNREAL)||defined(IRCD_HYBRID)       /* with hiddenhost */
-               db_query
-                       ("UPDATE " TBL_USER
-                        " SET nick=\'%s\', realname=\'%s\', hostname=\'%s\', hiddenhostname=\"%s\", username=\'%s\', connecttime=FROM_UNIXTIME(\'%d\'), servid=\'%d\', lastquit=NULL, online=\'Y\', away=\'N\', awaymsg=\'\' WHERE nickid=\'%d\'",
-                        nick, realname, hostname, hiddenhost, username, connecttime,
-                        servid, nickid);
-#elif defined(IRCD_ULTI28)               /* without nickip */
-               db_query
-                       ("UPDATE " TBL_USER
-                        " SET nick=\'%s\', realname=\'%s\', hostname=\'%s\', username=\'%s\', connecttime=FROM_UNIXTIME(\'%d\'), servid=\'%d\',lastquit=NULL, online=\'Y\', away=\'N\', awaymsg=\'\' WHERE nickid=\'%d\'",
-                        nick, realname, hostname, username, connecttime, servid, nickid);
-#endif
-               add = 0;
-       }
-       if (add)
-       {
-#if defined(IRCD_BAHAMUT)||defined(IRCD_IRCDRU)        /* with nickip */
-               db_query
-                       ("INSERT INTO " TBL_USER
-                        " (nick, realname, hostname, ipaddr, username, connecttime, servid) VALUES(\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',FROM_UNIXTIME(\'%d\'),\'%d\')",
-                        nick, realname, hostname, ipaddr, username, connecttime, servid);
-#elif defined(IRCD_ULTIMATE)     /* with nickip & hiddenhost */
-               db_query
-                       ("INSERT INTO " TBL_USER
-                        " (nick, realname, hostname, hiddenhostname, ipaddr, username, connecttime, servid) VALUES(\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',FROM_UNIXTIME(\'%d\'),\'%d\')",
-                        nick, realname, hostname, hiddenhost, ipaddr, username,
-                        connecttime, servid);
-#elif defined(IRCD_UNREAL)||defined(IRCD_HYBRID)       /* with hiddenhost */
-               db_query
-                       ("INSERT INTO " TBL_USER
-                        " (nick, realname, hostname, hiddenhostname, username, connecttime, servid) VALUES(\'%s\',\'%s\',\'%s\',\'%s\',\'%s\',FROM_UNIXTIME(\'%d\'),\'%d\')",
-                        nick, realname, hostname, hiddenhost, username, connecttime,
-                        servid);
-#elif defined(IRCD_ULTI28)               /* without nickip */
-               db_query
-                       ("INSERT INTO " TBL_USER
-                        " (nick, realname, hostname, username, connecttime, servid) VALUES(\'%s\',\'%s\',\'%s\',\'%s\',FROM_UNIXTIME(\'%d\'),\'%d\')",
-                        nick, realname, hostname, username, connecttime, servid);
-#endif
-               db_addnick(nick, db_insertid());
-       }
-       if (UserCacheTime)
-               db_cleanuser();
-       free(nick);
-       free(username);
-       free(hostname);
-       free(serv);
-#if defined(IRCD_UNREAL)
-       free(hiddenhost);
-#endif
-       free(realname);
-#if defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU)||defined(IRCD_HYBRID)
-       do_usermodes(db_insertid(), av[3]);
-#elif defined(IRCD_UNREAL)
-       do_usermodes(db_insertid(), av[7]);
-#endif
-       nbusers++;
-       do_checknbusersmax();
-}
-
-/* NICK (nick change) */
-void do_nick_chg(char *newnick, char *oldnick)
-{
-       int nickid;
-
-       newnick = db_escape(newnick);
-       oldnick = db_escape(oldnick);
-       /* the target nickname might already exist if caching is enabled */
-       if (UserCacheTime && (strcasecmp(newnick, oldnick))
-                && ((nickid = db_checknick(newnick)) != -1))
-       {
-               /* In this case, we don't keep a record of the old nick. It would be :
-                * - technically difficult, because we'd have to make a copy of the record
-                * - dangerous, because it would provide an easy way to fill up the DB */
-               db_delnick(newnick);
-               db_query("DELETE from " TBL_USER " WHERE nickid=\'%d\'", nickid);
-       }
-       /* we update the nickname */
-       db_query("UPDATE " TBL_USER " SET nick=\'%s\' WHERE nick=\'%s\'",
-                               newnick, oldnick);
-       db_chgnick(newnick, oldnick);
-       free(newnick);
-       free(oldnick);
-}
-
-/* PART */
-void do_part(char *chan, char *nick)
-{
-       chan = db_escape(chan);
-       nick = db_escape(nick);
-       db_query("DELETE FROM " TBL_ISON
-                               " WHERE nickid=\'%d\' AND chanid=\'%d\'", db_getnick(nick),
-                               db_getchannel(chan));
-       db_checkemptychan(db_getchannel(chan), chan);
-       free(chan);
-       free(nick);
-}
-
-/* JOIN - join 0 */
-void do_partall(char *nick)
-{
-       nick = db_escape(nick);
-       db_removefromchans(db_getnick(nick));
-       free(nick);
-}
-
-/* JOIN */
-void do_join(char *chan, char *nick)
-{
-       chan = db_escape(chan);
-       /* we don't escape nick because do_addusers does. */
-       do_addusers(db_getchancreate(chan), nick);
-       free(chan);
-}
-
-/* QUIT */
-void do_quit(char *nick)
-{
-       nick = db_escape(nick);
-       db_removenick(nick);                      /* sql */
-       if (UserCacheTime)
-       {
-               db_cleanuser();
-       }
-       else
-       {
-               db_delnick(nick);                         /* hash */
-       }
-       free(nick);
-       nbusers--;
-}
-
-/* SJOIN */
-void do_sjoin(char *chan, char *users, char **modes, int nbmodes)
-{
-       chan = db_escape(chan);
-       do_addusers(db_getchancreate(chan), users);
-       if (nbmodes)
-               do_chanmodes(db_getchannel(chan), modes, nbmodes);
-       free(chan);
-}
-
-/* [SVS]MODE - user */
-void do_umode(char *nick, char *modes)
-{
-       nick = db_escape(nick);
-       do_usermodes(db_getnick(nick), modes);
-       free(nick);
-}
-
-/* [SVS]MODE - channel */
-void do_cmode(char *chan, char **modes, int nbmodes)
-{
-       chan = db_escape(chan);
-       do_chanmodes(db_getchannel(chan), modes, nbmodes);
-       free(chan);
-}
-
-/* TOPIC */
-/* hybrid7 patches -iwes */
-#ifdef IRCD_HYBRID
-void do_topic(char *author, char *chan, char *topic)
-{
-       chan = db_escape(chan);
-       author = db_escape(author);
-       topic = db_escape(topic);
-       db_query
-               ("UPDATE " TBL_CHAN
-                " SET topic=\'%s\', topicauthor=\'%s\', topictime=NOW() WHERE chanid=\'%d\'",
-                topic ? topic : "", author, db_getchannel(chan));
-       free(chan);
-       free(author);
-       if (topic)
-               free(topic);
-}
-#else  /* regular topic */
-void do_topic(char *chan, char *author, char *time, char *topic)
-{
-       chan = db_escape(chan);
-       author = db_escape(author);
-       topic = db_escape(topic);
-       db_query
-               ("UPDATE " TBL_CHAN
-                " SET topic=\'%s\', topicauthor=\'%s\', topictime=FROM_UNIXTIME(\'%s\') WHERE chanid=\'%d\'",
-                topic ? topic : "", author, time, db_getchannel(chan));
-       free(chan);
-       free(author);
-       if (topic)
-               free(topic);
-}
-#endif /* IRCD_HYBRID */
-
-/* TBURST -iwes */
-#ifdef IRCD_HYBRID
-void do_tburst(char *chan, char *time, char *author, char *topic)
-{
-       chan = db_escape(chan);
-       author = db_escape(author);
-       topic = db_escape(topic);
-       db_query
-               ("UPDATE " TBL_CHAN
-                " SET topic=\'%s\', topicauthor=\'%s\', topictime=FROM_UNIXTIME(\'%s\') WHERE chanid=\'%d\'",
-                topic ? topic : "", author, time, db_getchannel(chan));
-       free(chan);
-       free(author);
-       if (topic)
-               free(topic);
-}
-#endif /* IRCD_HYBRID */
-
-
-/* AWAY set */
-void do_away_set(char *nick, char *msg)
-{
-       nick = db_escape(nick);
-       msg = db_escape(msg);
-       db_query("UPDATE " TBL_USER
-                               " SET away=\'Y\', awaymsg=\'%s\' WHERE nickid=\'%d\'", msg,
-                               db_getnick(nick));
-       free(nick);
-       free(msg);
-}
-
-/* AWAY unset */
-void do_away_unset(char *nick)
-{
-       nick = db_escape(nick);
-       db_query("UPDATE " TBL_USER
-                               " SET away=\'N\', awaymsg=\'\' WHERE nickid=\'%d\'",
-                               db_getnick(nick));
-       free(nick);
-}
-
-/* LUSERS queries */
-void do_lusers(char *nick)
-{
-       send_cmd(ServerName,
-                               "251 %s :There are %d users and %d invisible on %d servers",
-                               nick, db_getlusers(LUSERS_USERS),
-                               db_getlusers(LUSERS_USERSINV), db_getlusers(LUSERS_SERV));
-       send_cmd(ServerName, "252 %s :%d :IRC Operators online", nick,
-                               db_getlusers(LUSERS_OPERS));
-       send_cmd(ServerName, "254 %s :%d :channels formed", nick, nbchans,
-                               db_getlusers(LUSERS_CHAN));
-       send_cmd(ServerName, "255 %s :I have 0 clients and 1 servers", nick);
-       send_cmd(ServerName, "265 %s :Current local users: 0 Max: 0", nick);
-       send_cmd(ServerName, "266 %s :Current global users: %d Max: %d", nick,
-                               db_getlusers(LUSERS_USERSGLOB), db_getlusers(LUSERS_USERSMAX));
-}
-
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTIMATE)||defined(IRCD_ULTI28)
-/* (CHG|SET)HOST */
-void do_defhost(char *user, char *msg)
-{
-       user = db_escape(user);
-       msg = db_escape(msg);
-       db_query
-               ("UPDATE " TBL_USER
-                " SET mode_lx=\'Y\', mode_lt=\'Y\', hiddenhostname=\'%s\' WHERE nickid=\'%d\'",
-                msg, db_getnick(user));
-       free(msg);
-       free(user);
-}
-
-#endif
-
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTI28)
-
-/* (CHG|SET)NAME */
-void do_defname(char *user, char *msg)
-{
-       user = db_escape(user);
-       msg = db_escape(msg);
-       db_query
-               ("UPDATE " TBL_USER " SET realname=\'%s\' WHERE nickid=\'%d\'",
-                msg, db_getnick(user));
-       free(msg);
-       free(user);
-}
-
-/* (CHG|SET)IDENT */
-void do_defident(char *user, char *msg)
-{
-       user = db_escape(user);
-       msg = db_escape(msg);
-       db_query
-               ("UPDATE " TBL_USER " SET username=\'%s\' WHERE nickid=\'%d\'",
-                msg, db_getnick(user));
-       free(msg);
-       free(user);
-}
-#endif
-
-#ifdef IRCD_UNREAL
-
-/* SDESC */
-void do_sdesc(char *user, char *msg)
-{
-       user = db_escape(user);
-       msg = db_escape(msg);
-       db_query("UPDATE " TBL_SERV " SET comment=\'%s\' WHERE servid=\'%d\'",
-                               msg, db_getservfromnick(user));
-       free(user);
-       free(msg);
-}
-
-#define SWHOISBUGFREQ 20
-
-void do_swhois(char *user, char *msg)
-{
-       int nickid;
-       static int count = 0;
-       user = db_escape(user);
-       msg = db_escape(msg);
-       nickid = db_getnick_unsure(user);
-       if (nickid == -1)
-       {
-               if (count % SWHOISBUGFREQ == 0)
-                       wallops(NULL, "ERROR! Received SWHOIS for %s, but %s is not"
-                                         " registered yet! Please contact lucas@lucas-nussbaum.net"
-                                         " if you see this. I will only report this once every %d times"
-                                         " to avoid flooding you.", user, user, SWHOISBUGFREQ);
-               count++;
-               mylog
-                       ("Received SWHOIS for unregistered user %s. This is an ircd bug. "
-                        "Contact lucas@lucas-nussbaum.net if you see this on your"
-                        " network.", user);
-       }
-       else
-               db_query
-                       ("UPDATE " TBL_USER " SET swhois=\'%s\' WHERE nickid=\'%d\'",
-                        msg, nickid);
-       free(user);
-       free(msg);
-}
-
-#endif
-
-#ifdef IRCD_HYBRID
-/* REALHOST */
-void do_realhost(char *user, char *host)
-{
-       user = db_escape(user);
-       host = db_escape(host);
-       db_query("UPDATE " TBL_USER
-                               " SET hiddenhostname=\'%s\' WHERE nickid=\'%d\'", host,
-                               db_getnick(user));
-       free(user);
-       free(host);
-}
-
-#endif
diff --git a/src/actions.h b/src/actions.h
deleted file mode 100644 (file)
index 385fe6e..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#ifndef _ACTIONS_H_
-#define _ACTIONS_H_
-
-void do_checknbchansmax();
-void do_checknbusersmax();
-void do_checknbservsmax();
-
-void do_server(char *server, char *comment, char *linkedto);
-void do_squit(char *server);
-void do_nick_new(int ac, char **av);
-void do_nick_chg(char *newnick, char *oldnick);
-void do_part(char *chan, char *nick);
-void do_partall(char *nick);
-void do_join(char *chan, char *nick);
-void do_quit(char *nick);
-void do_sjoin(char *chan, char *users, char **modes, int nbmodes);
-void do_umode(char *nick, char *modes);
-void do_cmode(char *chan, char **modes, int nbmodes);
-#ifdef IRCD_HYBRID
-void do_topic(char *author, char *chan, char *topic);
-#else
-void do_topic(char *chan, char *author, char *time, char *topic);
-#endif /* IRCD_HYBRID */
-void do_away_set(char *nick, char *msg);
-void do_away_unset(char *nick);
-void do_lusers(char *nick);
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTIMATE)||defined(IRCD_ULTI28)
-void do_defhost(char *user, char *msg);
-#endif
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTI28)
-void do_defname(char *user, char *msg);
-void do_defident(char *user, char *msg);
-void do_sdesc(char *user, char *msg);
-#endif
-#if defined(IRCD_UNREAL)
-void do_swhois(char * user, char * msg);
-#endif
-#ifdef IRCD_HYBRID
-void do_realhost(char *user, char *host);
-#endif
-
-/* tburst stuff -iwes */
-#ifdef IRCD_HYBRID
-void do_tburst(char *chan, char *time, char *author, char *topic);
-#endif /* IRCD_HYBRID */
-
-/* available modes for each ircd */
-#if defined(IRCD_BAHAMUT)
-#define USERMODES "abcdefghiknorswyAR"
-#define CHANMODES "beIovciklmnprstLMRO"
-#elif defined(IRCD_IRCDRU)
-#define USERMODES "abcdefghiknorswyAR"
-#define CHANMODES "beIBXEovciklmnw7prstLMRO"
-#elif defined(IRCD_UNREAL)
-#define USERMODES "acdghiopqrtvwxzABCDGHNRSTUVW"
-#define CHANMODES "bceIovahqcfijklmnprstuyzACDGHKLMNOQRSTUV"
-#elif defined(IRCD_ULTIMATE)
-#define USERMODES "acdefghijkmnoprstwxyACDFJOPSTWZ"
-#define CHANMODES "beIovahceiklmnprstKNOR"
-#elif defined(IRCD_ULTI28)
-#define USERMODES "abcdfghikmnoprswxzABCFGMNOPRSTWXZ"
-#define CHANMODES "befhiklmnoprstvxAIKLORS"
-#elif defined(IRCD_HYBRID)
-#define USERMODES "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
-#define CHANMODES "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
-
-#endif
-
-#endif
diff --git a/src/compat.c b/src/compat.c
deleted file mode 100644 (file)
index 6754af1..0000000
+++ /dev/null
@@ -1,63 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-
-/*************************************************************************/
-
-#if !HAVE_STRDUP
-char *strdup(const char *s)
-{
-       char *new = calloc(strlen(s) + 1, 1);
-       if (new)
-               strcpy(new, s);
-       return new;
-}
-#endif
-
-/*************************************************************************/
-
-#if !HAVE_STRSPN
-size_t strspn(const char *s, const char *accept)
-{
-       size_t i = 0;
-
-       while (*s && strchr(accept, *s))
-               ++i, ++s;
-       return i;
-}
-#endif
-
-/*************************************************************************/
-
-#if !HAVE_STRERROR
-# if HAVE_SYS_ERRLIST
-extern char *sys_errlist[];
-# endif
-
-char *strerror(int errnum)
-{
-# if HAVE_SYS_ERRLIST
-       return sys_errlist[errnum];
-# else
-       static char buf[20];
-       snprintf(buf, sizeof(buf), "Error %d", errnum);
-       return buf;
-# endif
-}
-#endif
diff --git a/src/compat.h b/src/compat.h
deleted file mode 100644 (file)
index a85eed5..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-#ifndef _COMPAT_H_
-#define _COMPAT_H_
-
-#if !HAVE_STRDUP
-char *strdup(const char *s);
-#endif
-#if !HAVE_STRSPN
-size_t strspn(const char *s, const char *accept);
-#endif
-#if !HAVE_STRERROR
-char *strerror(int errnum);
-#endif
-
-#endif
diff --git a/src/conf.c b/src/conf.c
deleted file mode 100644 (file)
index a18c537..0000000
+++ /dev/null
@@ -1,345 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-/* Configuration file handling. */
-
-#include "conf.h"
-#include "misc.h"
-#include "compat.h"
-
-extern int debug;
-
-
-/* configuration variables: */
-char *thales_conf;
-char *RemoteServer;
-int RemotePort;
-char *RemotePassword;
-char *LocalHost;
-int LocalPort;
-
-char *ServerName;
-char *ServerDesc;
-char *PIDFilename;
-char *LogFilename;
-
-char *MysqlServer;
-int *MysqlPort;
-char *MysqlDatabase;
-char *MysqlPrefix;
-char *MysqlUser;
-char *MysqlPassword;
-
-int UserCacheTime;
-int UserCleanFreq;
-
-int ServerCacheTime;
-int ServerCleanFreq;
-
-int HidePasswords;
-
-Directive directives[] = {
-       {"RemoteServer", {{PARAM_STRING, 0, &RemoteServer},
-                                                       {PARAM_PORT, 0, &RemotePort},
-                                                       {PARAM_STRING, 0, &RemotePassword}}},
-       {"LocalAddress", {{PARAM_STRING, 0, &LocalHost},
-                                                       {PARAM_PORT, PARAM_OPTIONAL, &LocalPort}}},
-       {"ServerDesc", {{PARAM_STRING, 0, &ServerDesc}}},
-       {"ServerName", {{PARAM_STRING, 0, &ServerName}}},
-       {"MysqlServer", {{PARAM_STRING, 0, &MysqlServer}}},
-       {"MysqlPort", {{PARAM_POSINT, 0, &MysqlPort}}}, 
-       {"MysqlDatabase", {{PARAM_STRING, 0, &MysqlDatabase}}},
-       {"MysqlPrefix", {{PARAM_STRING, 0, &MysqlPrefix}}},
-       {"MysqlUser", {{PARAM_STRING, 0, &MysqlUser}}},
-       {"MysqlPassword", {{PARAM_STRING, 0, &MysqlPassword}}},
-       {"PIDFile", {{PARAM_STRING, 0, &PIDFilename}}},
-       {"LogFile", {{PARAM_STRING, 0, &LogFilename}}},
-       {"UserCacheTime", {{PARAM_POSINT, 0, &UserCacheTime}}},
-       {"ServerCacheTime", {{PARAM_POSINT, 0, &ServerCacheTime}}},
-       {"UserCleanFreq", {{PARAM_POSINT, 0, &UserCleanFreq}}},
-       {"ServerCleanFreq", {{PARAM_POSINT, 0, &ServerCleanFreq}}},
-       {"HidePasswords", {{PARAM_SET, 0, &HidePasswords}}},
-};
-
-/*************************************************************************/
-
-/* Print an error message to the log (and the console, if open). */
-
-void error(int linenum, char *message, ...)
-{
-       char buf[4096];
-       va_list args;
-
-       va_start(args, message);
-       vsnprintf(buf, sizeof(buf), message, args);
-       if (linenum)
-               mylog("%s:%d: %s", thales_conf, linenum, buf);
-       else
-               mylog("%s: %s", thales_conf, buf);
-       if (!debug && isatty(2))
-       {
-               if (linenum)
-                       fprintf(stderr, "%s:%d: %s\n", thales_conf, linenum, buf);
-               else
-                       fprintf(stderr, "%s: %s\n", thales_conf, buf);
-       }
-}
-
-/*************************************************************************/
-
-/* Parse a configuration line.  Return 1 on success; otherwise, print an
- * appropriate error message and return 0.  Destroys the buffer by side
- * effect.
- */
-
-int parse(char *buf, int linenum, int reload)
-{
-       char *s, *t, *dir;
-       int i, n, optind, val;
-       int retval = 1;
-       int ac = 0;
-       char *av[MAXPARAMS];
-
-       dir = strtok(buf, " \t\r\n");
-       s = strtok(NULL, "");
-       if (s)
-       {
-               while (isspace(*s))
-                       s++;
-               while (*s)
-               {
-                       if (ac >= MAXPARAMS)
-                       {
-                               error(linenum, "Warning: too many parameters (%d max)",
-                                               MAXPARAMS);
-                               break;
-                       }
-                       t = s;
-                       if (*s == '"')
-                       {
-                               t++;
-                               s++;
-                               while (*s && *s != '"')
-                               {
-                                       if (*s == '\\' && s[1] != 0)
-                                               s++;
-                                       s++;
-                               }
-                               if (!*s)
-                                       error(linenum,
-                                                       "Warning: unterminated double-quoted string");
-                               else
-                                       *s++ = 0;
-                       }
-                       else
-                       {
-                               s += strcspn(s, " \t\r\n");
-                               if (*s)
-                                       *s++ = 0;
-                       }
-                       av[ac++] = t;
-                       while (isspace(*s))
-                               s++;
-               }
-       }
-
-       if (!dir)
-               return 1;
-
-       for (n = 0; n < lenof(directives); n++)
-       {
-               Directive *d = &directives[n];
-               if (strcasecmp(dir, d->name) != 0)
-                       continue;
-               optind = 0;
-               for (i = 0; i < MAXPARAMS && d->params[i].type != PARAM_NONE; i++)
-               {
-                       if (reload && !(d->params[i].flags & PARAM_RELOAD))
-                               continue;
-
-                       if (d->params[i].type == PARAM_SET)
-                       {
-                               *(int *) d->params[i].ptr = 1;
-                               continue;
-                       }
-#ifdef STREAMLINED
-                       if (d->params[i].flags & PARAM_FULLONLY)
-                       {
-                               error(linenum,
-                                               "Directive `%s' not available in STREAMLINED mode",
-                                               d->name);
-                               break;
-                       }
-#endif
-
-                       if (d->params[i].type == PARAM_DEPRECATED)
-                       {
-                               void (*func) (void);
-                               error(linenum, "Deprecated directive `%s' used", d->name);
-                               func = (void (*)(void)) (d->params[i].ptr);
-                               func();                           /* For clarity */
-                               continue;
-                       }
-                       if (optind >= ac)
-                       {
-                               if (!(d->params[i].flags & PARAM_OPTIONAL))
-                               {
-                                       error(linenum, "Not enough parameters for `%s'", d->name);
-                                       retval = 0;
-                               }
-                               break;
-                       }
-                       switch (d->params[i].type)
-                       {
-                       case PARAM_INT:
-                               val = strtol(av[optind++], &s, 0);
-                               if (*s)
-                               {
-                                       error(linenum, "%s: Expected an integer for parameter %d",
-                                                       d->name, optind);
-                                       retval = 0;
-                                       break;
-                               }
-                               *(int *) d->params[i].ptr = val;
-                               break;
-                       case PARAM_POSINT:
-                               val = strtol(av[optind++], &s, 0);
-                               if (*s || val < 0)
-                               {
-                                       error(linenum,
-                                                       "%s: Expected a positive integer for parameter %d",
-                                                       d->name, optind);
-                                       retval = 0;
-                                       break;
-                               }
-                               *(int *) d->params[i].ptr = val;
-                               break;
-                       case PARAM_PORT:
-                               val = strtol(av[optind++], &s, 0);
-                               if (*s)
-                               {
-                                       error(linenum,
-                                                       "%s: Expected a port number for parameter %d",
-                                                       d->name, optind);
-                                       retval = 0;
-                                       break;
-                               }
-                               if (val < 1 || val > 65535)
-                               {
-                                       error(linenum,
-                                                       "Port numbers must be in the range 1..65535");
-                                       retval = 0;
-                                       break;
-                               }
-                               *(int *) d->params[i].ptr = val;
-                               break;
-                       case PARAM_STRING:
-/*           if (reload && *(char **)d->params[i].ptr)
-               free(*(char **)d->params[i].ptr); */
-                               *(char **) d->params[i].ptr = strdup(av[optind++]);
-                               if (!d->params[i].ptr)
-                               {
-                                       error(linenum, "%s: Out of memory", d->name);
-                                       return 0;
-                               }
-                               break;
-                       case PARAM_TIME:
-                               val = dotime(av[optind++]);
-                               if (val < 0)
-                               {
-                                       error(linenum,
-                                                       "%s: Expected a time value for parameter %d",
-                                                       d->name, optind);
-                                       retval = 0;
-                                       break;
-                               }
-                               *(int *) d->params[i].ptr = val;
-                               break;
-                       default:
-                               error(linenum, "%s: Unknown type %d for param %d",
-                                               d->name, d->params[i].type, i + 1);
-                               return 0;                         /* don't bother continuing--something's bizarre */
-                       }
-               }
-               break;                                            /* because we found a match */
-       }
-
-       if (n == lenof(directives))
-       {
-               error(linenum, "Unknown directive `%s'", dir);
-               return 1;                                         /* don't cause abort */       }
-
-       return retval;
-}
-
-/*************************************************************************/
-
-#define CHECK(v) do {                  \
-    if (!v) {                          \
-       error(0, #v " missing");        \
-       retval = 0;                     \
-    }                                  \
-} while (0)
-
-#define CHEK2(v,n) do {                        \
-    if (!v) {                          \
-       error(0, #n " missing");        \
-       retval = 0;                     \
-    }                                  \
-} while (0)
-
-/* Read the entire configuration file.  If an error occurs while reading
- * the file or a required directive is not found, print and log an
- * appropriate error message and return 0; otherwise, return 1.
- *
- * If reload is 1, will reload the configuration file.
- *             --lara
- *
- */
-
-int read_config(char *file)
-{
-       FILE *config;
-       int linenum = 0, retval = 1;
-       char buf[1024];
-       config = fopen(file, "r");
-       if (!config)
-       {
-               mylog_perror("Can't open %s", file);
-               mylog("Can't open %s", file);
-               return 0;
-       }
-
-       thales_conf = file;
-
-       while (fgets(buf, sizeof(buf), config))
-       {
-               linenum++;
-               if (*buf == '#' || *buf == '\r' || *buf == '\n')
-                       continue;
-               if (!parse(buf, linenum, 0))
-                       retval = 0;
-       }
-       fclose(config);
-
-       CHECK(RemoteServer);
-       CHECK(ServerName);
-       CHECK(ServerDesc);
-       CHEK2(PIDFilename, PIDFile);
-       return retval;
-}
diff --git a/src/conf.h b/src/conf.h
deleted file mode 100644 (file)
index c284b43..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-/* Configuration file handling. */
-#ifndef _CONF_H_
-#define _CONF_H_
-
-#include "thales.h"
-#include "log.h"
-
-/* Configuration directives. */
-#define MAXPARAMS      4
-
-typedef struct
-{
-       char *name;
-       struct
-       {
-               int type;                                         /* PARAM_* below */
-               int flags;                                        /* Same */
-               void *ptr;                                        /* Pointer to where to store the value */
-       }
-       params[MAXPARAMS];
-}
-Directive;
-
-#define PARAM_NONE     0
-#define PARAM_INT      1
-#define PARAM_POSINT   2                         /* Positive integer only */
-#define PARAM_PORT     3                         /* 1..65535 only */
-#define PARAM_STRING   4
-#define PARAM_TIME     5
-#define PARAM_STRING_ARRAY 6     /* Array of string */
-#define PARAM_SET      -1                                /* Not a real parameter; just set the
-                                                                                  * *    given integer variable to 1 */
-#define PARAM_DEPRECATED -2      /* Set for deprecated directives; `ptr'
-                                                                                  * *    is a function pointer to call */
-
-/* Flags: */
-#define PARAM_OPTIONAL 0x01
-#define PARAM_FULLONLY 0x02      /* Directive only allowed if !STREAMLINED */
-#define PARAM_RELOAD    0x04     /* Directive is reloadable */
-
-/* Print an error message to the log (and the console, if open). */
-void error(int linenum, char *message, ...);
-
-/* Parse a configuration line.  Return 1 on success; otherwise, print an
- * appropriate error message and return 0.  Destroys the buffer by side
- * effect.
- */
-
-int parse(char *buf, int linenum, int reload);
-
-/* Read the entire configuration file.  If an error occurs while reading
- * the file or a required directive is not found, print and log an
- * appropriate error message and return 0; otherwise, return 1.
- *
- * If reload is 1, will reload the configuration file.
- *             --lara
- *
- */
-
-int read_config(char *file);
-
-#endif /* _CONF_H_ */
diff --git a/src/config.h.in b/src/config.h.in
deleted file mode 100644 (file)
index d2d648c..0000000
+++ /dev/null
@@ -1,213 +0,0 @@
-/* src/config.h.in.  Generated from configure.in by autoheader.  */
-
-/* 'use internal hashlist' */
-#undef HASHLISTSUPPORT
-
-/* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
-#undef HAVE_DOPRNT
-
-/* Define to 1 if you have the `fork' function. */
-#undef HAVE_FORK
-
-/* Define to 1 if you have the `gethostbyname' function. */
-#undef HAVE_GETHOSTBYNAME
-
-/* Define to 1 if you have the `gettimeofday' function. */
-#undef HAVE_GETTIMEOFDAY
-
-/* Define to 1 if you have the <inttypes.h> header file. */
-#undef HAVE_INTTYPES_H
-
-/* Define to 1 if you have the `m' library (-lm). */
-#undef HAVE_LIBM
-
-/* Define to 1 if you have the `z' library (-lz). */
-#undef HAVE_LIBZ
-
-/* Define to 1 if you have the <limits.h> header file. */
-#undef HAVE_LIMITS_H
-
-/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
-   to 0 otherwise. */
-#undef HAVE_MALLOC
-
-/* Define to 1 if you have the `memmove' function. */
-#undef HAVE_MEMMOVE
-
-/* Define to 1 if you have the <memory.h> header file. */
-#undef HAVE_MEMORY_H
-
-/* Define to 1 if you have the `memset' function. */
-#undef HAVE_MEMSET
-
-/* Define to 1 if you have the <netdb.h> header file. */
-#undef HAVE_NETDB_H
-
-/* Define to 1 if you have the <netinet/in.h> header file. */
-#undef HAVE_NETINET_IN_H
-
-/* Define to 1 if your system has a GNU libc compatible `realloc' function,
-   and to 0 otherwise. */
-#undef HAVE_REALLOC
-
-/* Define to 1 if you have the `select' function. */
-#undef HAVE_SELECT
-
-/* Define to 1 if you have the `socket' function. */
-#undef HAVE_SOCKET
-
-/* Define to 1 if you have the <stdint.h> header file. */
-#undef HAVE_STDINT_H
-
-/* Define to 1 if you have the <stdlib.h> header file. */
-#undef HAVE_STDLIB_H
-
-/* Define to 1 if you have the `strcasecmp' function. */
-#undef HAVE_STRCASECMP
-
-/* Define to 1 if you have the `strchr' function. */
-#undef HAVE_STRCHR
-
-/* Define to 1 if you have the `strcspn' function. */
-#undef HAVE_STRCSPN
-
-/* Define to 1 if you have the `strdup' function. */
-#undef HAVE_STRDUP
-
-/* Define to 1 if you have the `strerror' function. */
-#undef HAVE_STRERROR
-
-/* Define to 1 if you have the `strftime' function. */
-#undef HAVE_STRFTIME
-
-/* Define to 1 if you have the <strings.h> header file. */
-#undef HAVE_STRINGS_H
-
-/* Define to 1 if you have the <string.h> header file. */
-#undef HAVE_STRING_H
-
-/* Define to 1 if you have the `strpbrk' function. */
-#undef HAVE_STRPBRK
-
-/* Define to 1 if you have the `strspn' function. */
-#undef HAVE_STRSPN
-
-/* Define to 1 if you have the `strtol' function. */
-#undef HAVE_STRTOL
-
-/* Define to 1 if you have the `strtoul' function. */
-#undef HAVE_STRTOUL
-
-/* Define to 1 if you have the <sys/select.h> header file. */
-#undef HAVE_SYS_SELECT_H
-
-/* Define to 1 if you have the <sys/socket.h> header file. */
-#undef HAVE_SYS_SOCKET_H
-
-/* Define to 1 if you have the <sys/stat.h> header file. */
-#undef HAVE_SYS_STAT_H
-
-/* Define to 1 if you have the <sys/time.h> header file. */
-#undef HAVE_SYS_TIME_H
-
-/* Define to 1 if you have the <sys/types.h> header file. */
-#undef HAVE_SYS_TYPES_H
-
-/* Define to 1 if you have the <unistd.h> header file. */
-#undef HAVE_UNISTD_H
-
-/* Define to 1 if you have the `vfork' function. */
-#undef HAVE_VFORK
-
-/* Define to 1 if you have the <vfork.h> header file. */
-#undef HAVE_VFORK_H
-
-/* Define to 1 if you have the `vprintf' function. */
-#undef HAVE_VPRINTF
-
-/* Define to 1 if `fork' works. */
-#undef HAVE_WORKING_FORK
-
-/* Define to 1 if `vfork' works. */
-#undef HAVE_WORKING_VFORK
-
-/* 'ircd type' */
-#undef IRCD_BAHAMUT
-
-/* 'ircd type' */
-#undef IRCD_HYBRID
-
-/* 'ircd type' */
-#undef IRCD_IRCDRU
-
-/* 'ircd type' */
-#undef IRCD_ULTI28
-
-/* 'ircd type' */
-#undef IRCD_ULTIMATE
-
-/* 'ircd type' */
-#undef IRCD_UNREAL
-
-/* 'dont store modes in the database ?' */
-#undef NOMODES
-
-/* Name of package */
-#undef PACKAGE
-
-/* Define to the address where bug reports for this package should be sent. */
-#undef PACKAGE_BUGREPORT
-
-/* Define to the full name of this package. */
-#undef PACKAGE_NAME
-
-/* Define to the full name and version of this package. */
-#undef PACKAGE_STRING
-
-/* Define to the one symbol short name of this package. */
-#undef PACKAGE_TARNAME
-
-/* Define to the version of this package. */
-#undef PACKAGE_VERSION
-
-/* Define to the type of arg 1 for `select'. */
-#undef SELECT_TYPE_ARG1
-
-/* Define to the type of args 2, 3 and 4 for `select'. */
-#undef SELECT_TYPE_ARG234
-
-/* Define to the type of arg 5 for `select'. */
-#undef SELECT_TYPE_ARG5
-
-/* Define to 1 if you have the ANSI C header files. */
-#undef STDC_HEADERS
-
-/* 'table prefix to use' */
-#undef TBL_PREFIX
-
-/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
-#undef TIME_WITH_SYS_TIME
-
-/* Define to 1 if your <sys/time.h> declares `struct tm'. */
-#undef TM_IN_SYS_TIME
-
-/* Version number of package */
-#undef VERSION
-
-/* Define to empty if `const' does not conform to ANSI C. */
-#undef const
-
-/* Define to rpl_malloc if the replacement function should be used. */
-#undef malloc
-
-/* Define to `int' if <sys/types.h> does not define. */
-#undef pid_t
-
-/* Define to rpl_realloc if the replacement function should be used. */
-#undef realloc
-
-/* Define to `unsigned int' if <sys/types.h> does not define. */
-#undef size_t
-
-/* Define as `fork' if `vfork' does not work. */
-#undef vfork
diff --git a/src/db.c b/src/db.c
deleted file mode 100644 (file)
index c41e98a..0000000
--- a/src/db.c
+++ /dev/null
@@ -1,546 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-/* Thales' database interface */
-
-#include "db.h"
-#include "misc.h"
-#include "actions.h"
-#ifdef HASHLISTSUPPORT
-#include "hashlist.h"
-#endif
-
-extern char *MysqlServer;
-extern int *MysqlPort;
-extern char *MysqlDatabase;
-extern char *MysqlPrefix;
-extern char *MysqlUser;
-extern char *MysqlPassword;
-
-extern unsigned int nbusers_max;
-extern unsigned int nbusers;
-extern unsigned int nbchans_max;
-extern unsigned int nbchans;
-extern unsigned int nbservs_max;
-extern unsigned int nbservs;
-
-extern int verbose;
-
-MYSQL *myptr;
-
-#ifdef HASHLISTSUPPORT
-hashlist hashnicks;
-hashlist hashchans;
-hashlist hashservs;
-#endif
-
-/* last time we cleaned the server table */
-static int ServerLastClean = -1;
-extern int ServerCleanFreq;
-extern int ServerCacheTime;
-
-/* last time we cleaned the user table */
-static int UserLastClean = -1;
-extern int UserCleanFreq;
-extern int UserCacheTime;
-
-
-void db_connect()
-{
-       MYSQL_RES *resptr;
-       if (myptr)
-               mysql_close(myptr);
-       /* connecting to MySQL */
-       myptr = mysql_init(NULL);
-
-       
-
-       if (mysql_real_connect
-                (myptr, MysqlServer, MysqlUser, MysqlPassword, MysqlDatabase, (int)MysqlPort,
-                 NULL, 0) == NULL)
-               fatal("Failed to connect to database : %s\n", mysql_error(myptr));
-
-       /* Cleaning up the database */
-       db_query("DELETE FROM %s" TBL_CHAN, MysqlPrefix);
-       db_query("DELETE FROM %s" TBL_ISON, MysqlPrefix);
-       db_query("DELETE FROM %s" TBL_SERV, MysqlPrefix);
-       db_query("DELETE FROM %s" TBL_USER, MysqlPrefix);
-
-       db_query("SELECT val FROM %s" TBL_MAXV " WHERE type=\'users\'", MysqlPrefix);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               nbusers_max = atoi(*mysql_fetch_row(resptr));
-       else
-               db_query("INSERT INTO %s" TBL_MAXV " VALUES ('users', '0', NOW())", MysqlPrefix);
-       mysql_free_result(resptr);
-
-       db_query("SELECT val FROM %s" TBL_MAXV " WHERE type=\'channels\'", MysqlPrefix);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               nbchans_max = atoi(*mysql_fetch_row(resptr));
-       else
-               db_query("INSERT INTO %s" TBL_MAXV " VALUES ('channels', '0', NOW())", MysqlPrefix);
-       mysql_free_result(resptr);
-
-       db_query("SELECT val FROM %s" TBL_MAXV " WHERE type=\'servers\'", MysqlPrefix);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               nbservs_max = atoi(*mysql_fetch_row(resptr));
-       else
-               db_query("INSERT INTO %s" TBL_MAXV " VALUES ('servers', '0', NOW())", MysqlPrefix);
-       mysql_free_result(resptr);
-#ifdef HASHLISTSUPPORT
-       /* init the hash lists */
-       hashnicks = newhashlist();
-       hashchans = newhashlist();
-       hashservs = newhashlist();
-#endif
-}
-
-/* escape the string */
-char *db_escape(char *ch)
-{
-       char *buf = NULL;
-       int size;
-       if (ch)
-       {
-               size = (strlen(ch)) * 2 + 1;
-               buf = (char *) malloc(sizeof(char) * size);
-               if (*ch)
-                       mysql_real_escape_string(myptr, buf, ch, strlen(ch));
-               else
-                       strcpy(buf, "");
-       }
-       return buf;
-}
-
-/* send an SQL query to the database */
-int db_query(const char *fmt, ...)
-{
-       va_list args;
-       char buf[2048];                           /* should be enough for long queries (don't underestimate :o)) */
-       va_start(args, fmt);
-       vsprintf(buf, fmt, args);
-       if (verbose)
-               mylog(">SQL : %s", buf);
-       if (mysql_real_query(myptr, buf, strlen(buf)))
-               fatal("Query failed: %s", mysql_error(myptr));
-       return 0;
-}
-
-/* serv should be db_escape'd before call */
-/* -1 if server not found, servid else */
-int db_checkserver(char *serv)
-{
-       int servid = -1;
-       MYSQL_RES *resptr;
-       db_query("SELECT servid FROM %s" TBL_SERV " WHERE server=\"%s\"", MysqlPrefix, serv);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               servid = atoi(*mysql_fetch_row(resptr));
-       mysql_free_result(resptr);
-       return servid;
-}
-
-/* serv should be db_escape'd before call */
-int db_getserver(char *serv)
-{
-#ifdef HASHLISTSUPPORT
-       strtolwr(serv);
-       return hash_find(hashservs, serv, KEYOTHER);
-#else
-       MYSQL_RES *resptr;
-       int res = 0;
-
-       db_query("SELECT servid FROM %s" TBL_SERV " WHERE server=\'%s\'", MysqlPrefix, serv);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               res = atoi(*mysql_fetch_row(resptr));
-       mysql_free_result(resptr);
-       return res;
-#endif
-}
-
-/* changes a nick in the hashlist */
-void db_chgnick(char *newnick, char *oldnick)
-{
-#ifdef HASHLISTSUPPORT
-       /* people often change from NICK-sthing to NICK-sthing */
-       strtolwr(newnick);
-       strtolwr(oldnick);
-       hash_update(hashnicks, newnick, oldnick, KEYOTHER);
-#endif
-}
-
-/* remove a server from the hashlist */
-void db_delserver(char *server)
-{
-#ifdef HASHLISTSUPPORT
-       strtolwr(server);
-       hash_del(hashservs, server, KEYOTHER);
-#endif
-}
-
-/* add a server to the hashlist */
-void db_addserver(char *server, int servid)
-{
-#ifdef HASHLISTSUPPORT
-       strtolwr(server);
-       hash_add(hashservs, server, servid, KEYOTHER);
-#endif
-}
-
-/* add a nick to the hashlist */
-void db_addnick(char *nick, int nickid)
-{
-#ifdef HASHLISTSUPPORT
-       strtolwr(nick);
-       hash_add(hashnicks, nick, nickid, KEYOTHER);
-#endif
-}
-
-/* add a nick to the hashlist */
-void db_delnick(char *nick)
-{
-#ifdef HASHLISTSUPPORT
-       strtolwr(nick);
-       hash_del(hashnicks, nick, KEYOTHER);
-#endif
-}
-
-/* nick should be db_escape'd before call */
-/* -1 if nick not found, nickid else */
-int db_checknick(char *nick)
-{
-#ifdef HASHLISTSUPPORT
-       int res = 0;
-       char *nicklow = strdup(nick);
-       strtolwr(nicklow);
-       res = hash_find_unsure(hashnicks, nicklow, KEYOTHER);
-       free(nicklow);
-       return res;
-#else
-       int nickid = -1;
-       MYSQL_RES *resptr;
-       db_query("SELECT nickid FROM %s" TBL_USER " WHERE nick=\"%s\"", MysqlPrefix, nick);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               nickid = atoi(*mysql_fetch_row(resptr));
-       mysql_free_result(resptr);
-       return nickid;
-#endif
-}
-
-/* nick should be db_escape'd before call */
-int db_getnick_unsure(char *nick)
-{
-#ifdef HASHLISTSUPPORT
-       int res = 0;
-       char *nicklow = strdup(nick);
-       strtolwr(nicklow);
-       res = hash_find_unsure(hashnicks, nicklow, KEYOTHER);
-       free(nicklow);
-       return res;
-#else
-       MYSQL_RES *resptr;
-       int res = 0;
-
-       db_query("SELECT nickid FROM %s" TBL_USER " WHERE nick=\'%s\'", MysqlPrefix, nick);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               res = atoi(*mysql_fetch_row(resptr));
-       else
-               res = -1;
-       mysql_free_result(resptr);
-       return res;
-#endif
-}
-
-
-/* nick should be db_escape'd before call */
-int db_getnick(char *nick)
-{
-#ifdef HASHLISTSUPPORT
-       int res = 0;
-       char *nicklow = strdup(nick);
-       strtolwr(nicklow);
-       res = hash_find(hashnicks, nicklow, KEYOTHER);
-       free(nicklow);
-       return res;
-#else
-       MYSQL_RES *resptr;
-       int res = 0;
-
-       db_query("SELECT nickid FROM %s" TBL_USER " WHERE nick=\'%s\'", MysqlPrefix, nick);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               res = atoi(*mysql_fetch_row(resptr));
-       else
-               fatal("nickname not found !");
-       mysql_free_result(resptr);
-       return res;
-#endif
-}
-
-int db_getservfromnick(char *nick)
-{
-       MYSQL_RES *resptr;
-       int res = 0;
-       db_query("SELECT servid FROM %s" TBL_USER " WHERE nick=\'%s\'", MysqlPrefix, nick);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               res = atoi(*mysql_fetch_row(resptr));
-       else
-               fatal("nickname not found !");
-       mysql_free_result(resptr);
-       return res;
-}
-
-int db_insertid()
-{
-       return mysql_insert_id(myptr);
-}
-
-void db_removenick(char *nick)
-{
-       int nickid = db_getnick(nick);
-       //TODO
-       if (nickid == 0)
-               fatal("nickid 0");
-       db_removefromchans(nickid);
-       if (UserCacheTime)
-               db_query("UPDATE %s" TBL_USER
-                        " SET online=\"N\", lastquit=NOW(), servid=NULL WHERE nickid=\"%d\"",
-                        MysqlPrefix, nickid);
-       else
-               db_query("DELETE FROM %s" TBL_USER " WHERE nickid=\'%d\'", MysqlPrefix, nickid);
-}
-
-
-void db_removefromchans(int nickid)
-{
-       MYSQL_RES *resptr;
-       char **res;
-       db_query("SELECT %s" TBL_ISON ".chanid, channel FROM %s" TBL_ISON ", %s"
-                TBL_CHAN " WHERE nickid=\'%d\' AND %s" TBL_CHAN ".chanid = %s"
-                TBL_ISON ".chanid", MysqlPrefix, MysqlPrefix, MysqlPrefix, nickid, MysqlPrefix, MysqlPrefix);
-       resptr = mysql_store_result(myptr);
-       db_query("DELETE FROM %s" TBL_ISON " WHERE nickid=\'%d\'", MysqlPrefix, nickid);
-       while ((res = mysql_fetch_row(resptr)))
-       {
-               char *chan = db_escape(res[1]);
-               db_checkemptychan(atoi(res[0]), chan);
-               free(chan);
-       }
-       mysql_free_result(resptr);
-}
-
-void db_checkemptychan(int chanid, char *chan)
-{
-       MYSQL_RES *resptr2;
-       db_query("SELECT chanid FROM %s" TBL_ISON " WHERE chanid=\'%d\'", MysqlPrefix, chanid);
-       resptr2 = mysql_store_result(myptr);
-       if (!mysql_num_rows(resptr2))
-       {
-               db_query("DELETE FROM %s" TBL_CHAN " WHERE chanid=\'%d\'", MysqlPrefix, chanid);
-#ifdef HASHLISTSUPPORT
-               hash_del(hashchans, chan, KEYCHAN);
-#endif
-               nbchans--;
-       }
-       mysql_free_result(resptr2);
-}
-
-int db_getlusers(int type)
-{
-       MYSQL_RES *resptr;
-       int retcode;
-       switch (type)
-       {
-       case LUSERS_USERS:
-               db_query("SELECT COUNT(*) FROM %s" TBL_USER " WHERE mode_li=\'N\'", MysqlPrefix);
-               break;
-       case LUSERS_USERSINV:
-               db_query("SELECT COUNT(*) FROM %s" TBL_USER " WHERE mode_li=\'Y\'", MysqlPrefix);
-               break;
-       case LUSERS_OPERS:
-               db_query("SELECT COUNT(*) FROM %s" TBL_USER " WHERE mode_lo=\'Y\'", MysqlPrefix);
-               break;
-       case LUSERS_CHAN:
-               db_query("SELECT COUNT(*) FROM %s" TBL_CHAN, MysqlPrefix);
-               break;
-       case LUSERS_SERV:
-               db_query("SELECT COUNT(*) FROM %s" TBL_SERV, MysqlPrefix);
-               break;
-       case LUSERS_USERSGLOB:
-               db_query("SELECT COUNT(*) FROM %s" TBL_USER, MysqlPrefix);
-               break;
-       case LUSERS_USERSMAX:
-               db_query("SELECT val FROM %s" TBL_MAXV " WHERE type='users'", MysqlPrefix);
-               break;
-       }
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               retcode = atoi(*mysql_fetch_row(resptr));
-       else
-               retcode = -1;
-       mysql_free_result(resptr);
-       return retcode;
-}
-
-/* chan should be db_escape'd before call */
-int db_getchannel(char *chan)
-{
-#ifdef HASHLISTSUPPORT
-       strtolwr(chan);
-       return hash_find(hashchans, chan, KEYCHAN);
-#else
-       int res = 0;
-
-       MYSQL_RES *resptr;
-       strtolwr(chan);
-       db_query("SELECT chanid FROM %s" TBL_CHAN " WHERE channel=\'%s\'", MysqlPrefix, chan);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               res = atoi(*mysql_fetch_row(resptr));
-       else
-               fatal("channel not found !");
-       mysql_free_result(resptr);
-       return res;
-#endif
-}
-
-/* chan should be db_escape'd before call */
-/* chan is created if not exists */
-int db_getchancreate(char *chan)
-{
-       int res = -1;
-
-#ifdef HASHLISTSUPPORT
-       strtolwr(chan);
-       res = hash_find_unsure(hashchans, chan, KEYCHAN);
-#else
-       MYSQL_RES *resptr;
-       strtolwr(chan);
-       db_query("SELECT chanid FROM %s" TBL_CHAN " WHERE channel=\'%s\'", MysqlPrefix, chan);
-       resptr = mysql_store_result(myptr);
-       if (mysql_num_rows(resptr))
-               res = atoi(*mysql_fetch_row(resptr));
-       mysql_free_result(resptr);
-#endif
-       if (res == -1)
-
-       {
-               db_query("INSERT INTO %s" TBL_CHAN " (channel) VALUES (\'%s\')", MysqlPrefix, chan);
-               res = db_insertid();
-#ifdef HASHLISTSUPPORT
-               hash_add(hashchans, chan, res, KEYCHAN);
-#endif
-               nbchans++;
-               do_checknbchansmax();
-       }
-       return res;
-}
-
-/* close connection to DBMS */
-void db_close()
-{
-       if (myptr)
-               mysql_close(myptr);
-       myptr = NULL;
-}
-
-/* cleanup the server table, removing old entries */
-void db_cleanserver()
-{
-       MYSQL_RES *resptr;
-       int curtime = time(NULL);
-       char **res;
-       if (ServerLastClean == -1)
-               ServerLastClean = curtime;
-       if (curtime > (ServerLastClean + ServerCleanFreq))
-       {
-               ServerLastClean = curtime;
-               db_query("SELECT server FROM %s" TBL_SERV
-                        " WHERE online=\"N\" AND lastsplit<FROM_UNIXTIME(\"%d\")", MysqlPrefix,
-                        curtime - ServerCacheTime);
-               resptr = mysql_store_result(myptr);
-               if (mysql_num_rows(resptr))
-               {
-                       while ((res = mysql_fetch_row(resptr)))
-                       {
-                               char *server = db_escape(res[0]);
-                               db_delserver(server);
-                               free(server);
-                       }
-                       mysql_free_result(resptr);
-                       db_query("DELETE FROM %s" TBL_SERV
-                                " WHERE online=\"N\" AND lastsplit<FROM_UNIXTIME(\"%d\")", MysqlPrefix,
-                                curtime - ServerCacheTime);
-               }
-       }
-}
-
-/* cleanup the user table, removing old entries */
-void db_cleanuser()
-{
-       MYSQL_RES *resptr;
-       int curtime = time(NULL);
-       char **res;
-       if (UserLastClean == -1)
-               UserLastClean = curtime;
-       if (curtime > (UserLastClean + UserCleanFreq))
-       {
-               UserLastClean = curtime;
-               db_query("SELECT nick FROM %s" TBL_USER
-                        " WHERE online=\"N\" AND lastquit<FROM_UNIXTIME(\"%d\")", MysqlPrefix,
-                        curtime - UserCacheTime);
-
-               resptr = mysql_store_result(myptr);
-               if (mysql_num_rows(resptr))
-               {
-                       while ((res = mysql_fetch_row(resptr)))
-                       {
-                               char *nick = db_escape(res[0]);
-                               db_delnick(nick);
-                               free(nick);
-                       }
-                       mysql_free_result(resptr);
-                       db_query("DELETE FROM %s" TBL_USER
-                                " WHERE online=\"N\" AND lastquit<FROM_UNIXTIME(\"%d\")", MysqlPrefix,
-                                curtime - UserCacheTime);
-               }
-       }
-}
-
-void db_offlineusers(int servid)
-{
-       MYSQL_RES *resptr2;
-       char **res2;
-       
-       /* We select users that went on the splitted server and send them to the appropritate functions */
-       db_query("SELECT nick, nickid FROM %s" TBL_USER " WHERE servid=\"%d\"", MysqlPrefix, servid);
-       resptr2 = mysql_store_result(myptr);
-       while ((res2 = mysql_fetch_row(resptr2)))
-       {
-               char *nick = db_escape(res2[0]);
-               int nickid = atoi(res2[1]);
-               db_removenick(nick);
-               db_removefromchans(nickid);
-               free(nick);
-       }
-}
diff --git a/src/db.h b/src/db.h
deleted file mode 100644 (file)
index 769043a..0000000
--- a/src/db.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-/* GNU Thales' database interface */
-
-#ifndef _DB_H_
-#define _DB_H_
-
-#include "thales.h"
-#include "log.h"
-
-void db_connect();
-int db_query(const char *fmt, ...);
-char *db_escape(char *);
-int db_checkserver(char *serv);
-int db_getserver(char *serv);
-int db_getservfromnick(char *nick);
-int db_checknick(char *nick);
-int db_getnick(char *nick);
-int db_getnick_unsure(char *nick);
-int db_insertid();
-void db_chgnick(char *newnick, char *oldnick);
-void db_addserver(char *server, int servid);
-void db_delserver(char *server);
-void db_addnick(char *nick, int nickid);
-void db_delnick(char *nick);
-int db_getchannel(char *chan);
-int db_getchancreate(char *chan);
-void db_removefromchans(int nickid);
-void db_removenick(char *nick);
-void db_checkemptychan(int chanid, char *chan);
-void db_close();
-void db_cleanserver();
-void db_cleanuser();
-void db_offlineusers();
-int db_getlusers(int type);
-#define LUSERS_USERS 1
-#define LUSERS_USERSINV 2
-#define LUSERS_OPERS 3
-#define LUSERS_SERV 4
-#define LUSERS_CHAN 5
-#define LUSERS_USERSGLOB 6
-#define LUSERS_USERSMAX 7
-
-#ifndef TBL_PREFIX
-#define TBL_PREFIX ""
-#endif
-
-       /* Tables names */
-#define TBL_USER TBL_PREFIX"user"
-#define TBL_CHAN TBL_PREFIX"chan"
-#define TBL_ISON TBL_PREFIX"ison"
-#define TBL_SERV TBL_PREFIX"server"
-#define TBL_MAXV TBL_PREFIX"maxvalues"
-
-#endif
diff --git a/src/defs.h b/src/defs.h
deleted file mode 100644 (file)
index f87951b..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#ifndef NAME_MAX
-# define NAME_MAX 255
-#endif
-
-#ifndef BUFSIZ
-# define BUFSIZ 256
-#else
-# if BUFSIZ < 256
-#  define BUFSIZ 256
-# endif
-#endif
-
-/* Length of an array: */
-#define lenof(a)       (sizeof(a) / sizeof(*(a)))
-
-/* Telling compilers about printf()-like functions: */
-#ifdef __GNUC__
-# define FORMAT(type,fmt,start) __attribute__((format(type,fmt,start)))
-#else
-# define FORMAT(type,fmt,start)
-#endif
-
-#define BUFSIZE 1024
-#define NET_BUFSIZE 65536
-/*************************************************************************/
diff --git a/src/hashlist.c b/src/hashlist.c
deleted file mode 100644 (file)
index 1bd477c..0000000
+++ /dev/null
@@ -1,187 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "hashlist.h"
-#include "log.h"
-
-extern int verbose;
-
-/* creates a new hashlist */
-hashlist newhashlist()
-{
-       hashlist h = (hashlist) malloc(sizeof(struct item *) * 256);
-       memset(h, 0, sizeof(struct item *) * 256);
-       return h;
-}
-
-/* returns an hashcode for the given string */
-#define HASHSHIFT 5
-int hash(char *s, int keytype)
-{
-       int h = 0;
-       if (verbose)
-               /* dont use the # if chan */
-               if (keytype == KEYCHAN)
-                       s++;
-       while (*s)
-       {
-               /* imported from ispell and modified */
-               h = (h << HASHSHIFT)
-                       | ((h >> (8 - HASHSHIFT)) & ((1 << HASHSHIFT) - 1));
-               h ^= *s++;
-       }
-       return h & ((1 << 8) - 1);
-}
-
-/* adds an element to the hashlist */
-void hash_add(hashlist h, char *str, int n, int keytype)
-{
-       struct item *pio;
-       struct item *pin;
-       int key = hash(str, keytype);
-       if (verbose)
-               mylog("HASH : hash_add %d, %s, %d, %d", (int) h, str, n, keytype);
-       pio = h[key];
-       pin = (struct item *) malloc(sizeof(struct item));
-       pin->str = strdup(str);
-       pin->n = n;
-       pin->next = pio;
-       h[key] = pin;
-}
-
-/* deletes an element from the hashlist */
-void hash_del(hashlist h, char *str, int keytype)
-{
-       struct item *pi, **piold;
-       if (verbose)
-               mylog("HASH : hash_del %d, %s, %d", (int) h, str, keytype);
-       for (piold = &h[hash(str, keytype)], pi = *piold; pi; pi = pi->next)
-       {
-               if (!strcmp(str, pi->str))
-               {
-                       *piold = pi->next;
-                       free(pi->str);
-                       free(pi);
-                       if (hash_find_unsure(h, str, keytype) != -1)
-                               fatal("deleted %s but still present !", str);
-                       return;
-               }
-               piold = &(pi->next);
-       }
-       fatal("hashlist element %s not found !", str);
-}
-
-/* finds an element in the hashlist - crash if not found */
-int hash_find(hashlist h, char *str, int keytype)
-{
-       int res;
-       if (verbose)
-               mylog("HASH : hash_find %d, %s, %d", (int) h, str, keytype);
-       res = hash_find_unsure(h, str, keytype);
-       if (res != -1)
-               return res;
-       fatal("hashlist element %s not found !", str);
-       return 0;                                                 /* prevents compiler warnings */
-}
-
-/* finds an element in the hashlist - returns -1 if not found */
-int hash_find_unsure(hashlist h, char *str, int keytype)
-{
-       struct item *pi;
-       if (verbose)
-               mylog("HASH : hash_find_unsure %d, %s, %d", (int) h, str, keytype);
-       for (pi = h[hash(str, keytype)]; pi; pi = pi->next)
-               if (!strcmp(str, pi->str))
-                       return pi->n;
-       return -1;
-}
-
-/* finds an element in the hashlist, then remove it */
-/* Findel, Luxembourg - where I worked when I wrote this :) */
-int hash_findel(hashlist h, char *str, int keytype)
-{
-       int n;
-       struct item *pi, **piold;
-       if (verbose)
-               mylog("HASH : hash_findel %d, %s, %d", (int) h, str, keytype);
-
-       for (piold = &h[hash(str, keytype)], pi = *piold; pi; pi = pi->next)
-       {
-               if (!strcmp(str, pi->str))
-               {
-                       n = pi->n;
-                       *piold = pi->next;
-                       free(pi->str);
-                       free(pi);
-                       return n;
-               }
-               piold = &(pi->next);
-       }
-       fatal("hashlist element %s not found !", str);
-       return 0;                                                 /* to prevent compiler warnings */
-}
-
-/* update an item */
-void hash_update(hashlist h, char *newinfo, char *str, int keytype)
-{
-       int key;
-       int key2;
-       if (verbose)
-               mylog("HASH : hash_update %d, %s, %s, %d", (int) h, newinfo, str,
-                        keytype);
-       if ((key = hash(str, keytype)) == (key2 = hash(newinfo, keytype)))
-       {
-               struct item *pi;
-
-               for (pi = h[key]; pi; pi = pi->next)
-                       if (!strcmp(str, pi->str))
-                       {
-                               free(pi->str);
-                               pi->str = strdup(newinfo);
-                               return;
-                       }
-               fatal("hashlist element %s not found !", str);
-       }
-       else
-       {
-               /* find and delete the old, create the new */
-               int n;
-               struct item *pi, **piold;
-               struct item *pio;
-
-               for (piold = &h[key], pi = *piold; pi; pi = pi->next)
-               {
-                       if (!strcmp(str, pi->str))
-                       {
-                               /* save and delete the old entry */
-                               n = pi->n;
-                               *piold = pi->next;
-                               free(pi->str);
-                               /* create the new */
-                               pio = h[key2];
-                               pi->str = strdup(newinfo);
-                               pi->n = n;
-                               pi->next = pio;
-                               h[key2] = pi;
-                               return;
-                       }
-                       piold = &(pi->next);
-               }
-               fatal("hashlist element %s not found !", str);
-       }
-}
diff --git a/src/hashlist.h b/src/hashlist.h
deleted file mode 100644 (file)
index db99f73..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#ifndef _HASHLIST_H_
-#define _HASHLIST_H_
-
-#define KEYOTHER 1
-#define KEYCHAN 2
-struct item
-{
-       char *str;
-       int n;
-       struct item *next;
-};
-typedef struct item **hashlist;
-
-hashlist newhashlist();
-void hash_add(hashlist h, char *str, int n, int keytype);
-void hash_del(hashlist h, char *str, int keytype);
-int hash_find_unsure(hashlist h, char *str, int keytype);
-int hash_find(hashlist h, char *str, int keytype);
-int hash_findel(hashlist h, char *str, int keytype);
-void hash_update(hashlist h, char *newinfo, char *str, int keytype);
-
-#endif
diff --git a/src/log.c b/src/log.c
deleted file mode 100644 (file)
index 90975fc..0000000
--- a/src/log.c
+++ /dev/null
@@ -1,243 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "log.h"
-#include "misc.h"
-#include "send.h"
-
-extern char *LogFilename;
-extern char inbuf[];
-
-extern int debug;
-extern int verbose;
-
-extern int servsock;
-
-FILE *logfile = NULL;
-
-/* Open the log file.  Return -1 if the log file could not be opened, else
- * return 0. */
-
-int open_log(void)
-{
-       if (logfile)
-               return 0;                                         /* logfile already opened */
-       logfile = fopen(LogFilename, "a");
-       return logfile ? 0 : -1;
-}
-
-/* Close the log file. */
-
-void close_log(void)
-{
-       if (!logfile)
-               return;
-       fclose(logfile);
-       logfile = NULL;
-}
-
-/* Log stuff to the log file with a datestamp. errno preserved. */
-void mylog(const char *fmt, ...)
-{
-       va_list args;
-       time_t t;
-       struct tm tm;
-       char buf[256];
-       int errno_save = errno;
-
-       va_start(args, fmt);
-       time(&t);
-       tm = *localtime(&t);
-#if HAVE_GETTIMEOFDAY
-       if (verbose)
-       {
-               /* if verbose is on, we log the microsecond to make a more precise analysis */
-               char *s;
-               struct timeval tv;
-               gettimeofday(&tv, NULL);
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
-               s = buf + strlen(buf);
-               s += snprintf(s, sizeof(buf) - (s - buf), ".%06ld", tv.tv_usec);
-               strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
-       }
-       else
-       {
-#endif
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S %Y] ", &tm);
-#if HAVE_GETTIMEOFDAY
-       }
-#endif
-       if (logfile)
-       {
-               fputs(buf, logfile);
-               vfprintf(logfile, fmt, args);
-               fputc('\n', logfile);
-               fflush(logfile);
-       }
-       if (debug)
-       {                                                                         /* log it to stderr */
-               fputs(buf, stderr);
-               vfprintf(stderr, fmt, args);
-               fputc('\n', stderr);
-       }
-       errno = errno_save;
-}
-
-/* Like mylog(), but tack a ": " and a system error message (as returned by
- * strerror()) onto the end.
- */
-
-void mylog_perror(const char *fmt, ...)
-{
-       va_list args;
-       time_t t;
-       struct tm tm;
-       char buf[256];
-       int errno_save = errno;
-       va_start(args, fmt);
-       time(&t);
-       tm = *localtime(&t);
-#if HAVE_GETTIMEOFDAY
-       if (verbose)
-       {
-               char *s;
-               struct timeval tv;
-               gettimeofday(&tv, NULL);
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
-               s = buf + strlen(buf);
-               s += snprintf(s, sizeof(buf) - (s - buf), ".%06ld", tv.tv_usec);
-               strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
-       }
-       else
-       {
-#endif
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S %Y] ", &tm);
-#if HAVE_GETTIMEOFDAY
-       }
-#endif
-       if (logfile)
-       {
-               fputs(buf, logfile);
-               vfprintf(logfile, fmt, args);
-               fprintf(logfile, ": %s\n", strerror(errno_save));
-               fflush(logfile);
-       }
-       if (debug)
-       {
-               fputs(buf, stderr);
-               vfprintf(stderr, fmt, args);
-               fprintf(stderr, ": %s\n", strerror(errno_save));
-       }
-       errno = errno_save;
-}
-
-/*************************************************************************/
-
-/* We've hit something we can't recover from.  Let people know what
- * happened, then go down.
- */
-
-void fatal(const char *fmt, ...)
-{
-       va_list args;
-       time_t t;
-       struct tm tm;
-       char buf[256], buf2[4096];
-
-       mylog("IRC context : %s", inbuf);
-
-       va_start(args, fmt);
-       time(&t);
-       tm = *localtime(&t);
-#if HAVE_GETTIMEOFDAY
-       if (verbose)
-       {
-               char *s;
-               struct timeval tv;
-               gettimeofday(&tv, NULL);
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
-               s = buf + strlen(buf);
-               s += snprintf(s, sizeof(buf) - (s - buf), ".%06ld", tv.tv_usec);
-               strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
-       }
-       else
-       {
-#endif
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S %Y] ", &tm);
-#if HAVE_GETTIMEOFDAY
-       }
-#endif
-       vsnprintf(buf2, sizeof(buf2), fmt, args);
-       if (logfile)
-               fprintf(logfile, "%sFATAL: %s\n", buf, buf2);
-       if (debug)
-               fprintf(stderr, "%sFATAL: %s\n", buf, buf2);
-       if (servsock >= 0)
-               wallops(NULL, "FATAL ERROR! %s (IRC context : %s)", buf2, inbuf);
-       exit(1);
-}
-
-
-/* Same thing, but do it like perror(). */
-
-void fatal_perror(const char *fmt, ...)
-{
-       va_list args;
-       time_t t;
-       struct tm tm;
-       char buf[256], buf2[4096];
-       int errno_save = errno;
-
-       mylog("IRC context : %s", inbuf);
-
-       va_start(args, fmt);
-       time(&t);
-       tm = *localtime(&t);
-#if HAVE_GETTIMEOFDAY
-       if (verbose)
-       {
-               char *s;
-               struct timeval tv;
-               gettimeofday(&tv, NULL);
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S", &tm);
-               s = buf + strlen(buf);
-               s += snprintf(s, sizeof(buf) - (s - buf), ".%06ld", tv.tv_usec);
-               strftime(s, sizeof(buf) - (s - buf) - 1, " %Y] ", &tm);
-       }
-       else
-       {
-#endif
-               strftime(buf, sizeof(buf) - 1, "[%b %d %H:%M:%S %Y] ", &tm);
-#if HAVE_GETTIMEOFDAY
-       }
-#endif
-       vsnprintf(buf2, sizeof(buf2), fmt, args);
-       if (logfile)
-               fprintf(logfile, "%sFATAL: %s: %s\n", buf, buf2,
-                                 strerror(errno_save));
-       if (debug)
-               fprintf(stderr, "%sFATAL: %s: %s\n", buf, buf2,
-                                 strerror(errno_save));
-       if (servsock >= 0)
-               wallops(NULL, "FATAL ERROR!  %s: %s (IRC context : %s)", buf2,
-                                 strerror(errno_save), inbuf);
-       exit(1);
-}
-
-/*************************************************************************/
diff --git a/src/log.h b/src/log.h
deleted file mode 100644 (file)
index 3eba0b7..0000000
--- a/src/log.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#ifndef _LOG_H_
-#define _LOG_H_
-
-#include "thales.h"
-
-/* open the log file */
-int open_log(void);
-
-/* close the log file */
-void close_log(void);
-
-/* Log stuff to the log file with a datestamp. errno preserved. */
-void mylog(const char *fmt, ...);
-
-/* Like log(), but tack a ": " and a system error message (as returned by strerror()) onto the end.
-*/
-void mylog_perror(const char *fmt, ...);
-
-/* fatal error, log then go down */
-void fatal(const char *fmt, ...);
-
-/* same, but do it like perror() */
-void fatal_perror(const char *fmt, ...);
-
-#endif /* _LOG_H_ */
index 875f37e24938bfe54946bf226fba49d3d45ab243..1eb9922bdf465995ae7e2ac518d7be5fe08c4194 100644 (file)
@@ -1,311 +1,7 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-/* GNU Thales - main file */
+#include <stdio.h>
 
-#include "thales.h"
-#include "conf.h"
-#include "log.h"
-#include "send.h"
-#include "sockutil.h"
-#include "compat.h"
-#include "memory.h"
-#include "process.h"
-#include "db.h"
-
-/* Global variables */
-
-int debug = 0;                                           /* -d , debug mode = don't fork + log to stderr */
-
-int verbose = 0;                                         /* -V, verbose output */
-
-/* Socket for talking to server */
-int servsock = -1;
-char *quitmsg;
-
-char inbuf[BUFSIZE];
-
-/* At what time were we started? */
-time_t start_time;
-
-extern char *PIDFilename;
-extern char *RemoteServer;
-extern int RemotePort;
-extern char *LocalHost;
-extern int LocalPort;
-extern char *RemotePassword;
-extern char *ServerName;
-extern char *ServerDesc;
-
-extern char *MysqlPrefix;
-
-
-void
-usage()
-{
-  printf("Usage:\n\
-  -c, --config file             load config file, passed as argument\n\
-  -d, --debug                   enable debugging mode\n\
-  -h, --help                    print this text\n\
-  -v, --version                 display version and exit\n");
-  
-}
-
-void
-version()
-{
-  printf("%s\n\
-Copyright 2007 Free Software Foundation, Inc.\n\
-This program is free software; you may redistribute it under the terms of\n\
-the GNU General Public License.  This program has absolutely no warranty.\n",
-        PACKAGE_STRING);
-  
-}
-
-
-/* Create our PID file and write the PID to it. */
-void write_pidfile(void)
+int
+main(int argc, char **argv)
 {
-       FILE *pidfile;
-
-       pidfile = fopen(PIDFilename, "w");
-       if (pidfile)
-       {
-               fprintf(pidfile, "%d\n", (int) getpid());
-               fclose(pidfile);
-       }
-       else
-       {
-               mylog_perror("Warning: cannot write to PID file %s", PIDFilename);
-       }
-}
-
-/* Main routine */
-int main(int argc, char **argv)
-{
-  char ch;
-  int i;
-  char *ch1, *ch2;
-  int opt = 0;
-  int opt_index = 0;
-  int config = 0;
-
-  static struct option thales_options[] =
-    {
-      {"version", no_argument, NULL, 'v'},
-      {"verbose", no_argument, NULL, 'V'},
-      {"help", no_argument, NULL, 'h'},
-      {"debug", no_argument, NULL, 'd'},
-      {"config", required_argument, NULL, 'c'},
-      {0, 0, 0, 0}
-    };
-
-
-  /* record start time */
-  start_time = time(NULL);
-  
-  opt = getopt_long(argc, argv, "c:hvVd",
-                   thales_options, &opt_index);
-
-  while(opt != EOF)
-    {
-      switch(opt)
-       {
-       case 'c':
-         if(!read_config(optarg))
-           {
-             exit(EXIT_FAILURE);
-           }
-
-         config = 1;
-         break;
-
-       case 'd':
-         verbose = 1;
-         debug = 1;
-         break;
-
-
-       case 'h':
-         usage();
-         exit(EXIT_SUCCESS);
-         break;
-         
-       case 'v':
-         version();
-         exit(EXIT_SUCCESS);
-         break;
-         
-       case 'V':
-         verbose = 1;
-         break;
-         
-
-       default:
-         usage();
-       }
-      
-      opt = getopt_long(argc, argv, "hvVdc:",
-                       thales_options, &opt_index);
-    }
-
-  if(config == 0)
-    {
-      fprintf(stderr, "Error: no configuration file loaded!\n");
-      exit(EXIT_FAILURE);
-    }
-
-  /* Open logfile, and complain if we didn't. */
-  if (open_log() < 0)
-    {
-      fprintf(stderr, "Warning: unable to open log file : %s\n",
-                   strerror(errno));
-      exit(1);
-    }
-  
-  /* Detach ourselves if requested. */
-  if (!debug)
-    {
-      if ((i = fork()) < 0)
-       {
-         perror("fork()");
-         return -1;
-       }
-      else if (i != 0)
-       {
-         exit(0);
-       }
-      if (isatty(0) && isatty(1) && isatty(2))
-       {
-         close(0);
-         close(1);
-         close(2);
-       }
-    }
-  write_pidfile();
-
-  /* Announce ourselves to the logfile. */
-  mylog("GNU Thales %s starting up with %s support%s", VERSION,
-#if defined(IRCD_UNREAL)
-       "unreal",
-#elif defined(IRCD_HYBRID)
-       "hybrid",
-#elif defined (IRCD_BAHAMUT)
-       "bahamut",
-#elif defined (IRCD_IRCDRU)
-       "ircdru",
-#elif defined (IRCD_ULTIMATE)
-       "ultimate30",
-#elif defined (IRCD_ULTI28)
-       "ultimate28",
-#else
-       "unknown (!)",
-#endif
-       verbose ? (debug ? " (options: debug)" : " (options: verbose") :
-       "");
-  /* I should init databases here */
-  db_connect();
-  ch1 = db_escape(ServerName);
-  ch2 = db_escape(ServerDesc);
-  db_query("INSERT INTO %s" TBL_SERV
-          " (server, comment, connecttime) values('%s', '%s', NOW())", MysqlPrefix,
-          ch1, ch2);
-  db_addserver(ch1, db_insertid());
-  free(ch1);
-  free(ch2);
-  /* connect to RemoteServer */
-  servsock = conn(RemoteServer, RemotePort, LocalHost, LocalPort);
-  if (servsock < 0)
-    {
-      fatal_perror("Can't connect to server");
-      exit(-1);
-    }
-#if defined(IRCD_UNREAL)
-  send_cmd(NULL, "PROTOCTL NICKv2 SJOIN SJOIN2 SJ3 NOQUIT");
-#endif
-#if defined(IRCD_HYBRID)
-  send_cmd(NULL, "PASS %s :TS", RemotePassword);
-  send_cmd(NULL, "CAPAB :HOPS TBURST");
-#elif defined (IRCD_BAHAMUT)
-  send_cmd(NULL, "PASS %s :TS", RemotePassword);
-  send_cmd(NULL, "CAPAB TS3 SSJOIN NICKIP NOQUIT");
-#elif defined (IRCD_IRCDRU)
-  send_cmd(NULL, "PASS %s :TS", RemotePassword);
-  send_cmd(NULL, "CAPAB TS3 SSJOIN 8BNCI NICKIP");
-  
-#elif defined (IRCD_ULTIMATE)
-  send_cmd(NULL, "PASS %s :TS", RemotePassword);
-  send_cmd(NULL, "CAPAB TS5 SSJ5 NICKIP");
-#elif defined(IRCD_ULTI28)               /* special case to prevent future errors */
-  send_cmd(NULL, "PASS %s", RemotePassword);
-#else
-  send_cmd(NULL, "PASS %s", RemotePassword);
-#endif
-  
-#if defined(IRCD_IRCDRU)
-  send_cmd(NULL, "SERVER %s 1 8 :%s", ServerName, ServerDesc);
-#else
-  send_cmd(NULL, "SERVER %s 1 :%s", ServerName, ServerDesc);
-#endif
-  
-#if defined(IRCD_BAHAMUT)||defined(IRCD_IRCDRU)
-  send_cmd(NULL, "SVINFO 3 1 0 :%ld", time(NULL));
-#elif defined(IRCD_ULTIMATE)
-  send_cmd(NULL, "SVINFO 5 3 0 :%ld", time(NULL));
-#endif
-#if defined(IRCD_UNREAL)
-   send_cmd(NULL, ":%s EOS", ServerName);
-#endif
-   sgets2(inbuf, sizeof(inbuf), servsock);
-   if (strncasecmp(inbuf, "ERROR", 5) == 0)
-     {
-       /* Close server socket first to stop wallops, since the other
-       * server doesn't want to listen to us anyway */
-       disconn(servsock);
-       servsock = -1;
-       fatal("Remote server returned: %s", inbuf);
-     }
-   /* We have a line left over from earlier, process it now */
-   process();
-   while (1)
-     {
-       i = (int) (long) sgets2(inbuf, sizeof(inbuf), servsock);
-       if (i > 0)
-        {
-          process();
-        }
-       else if (i == 0)
-        {
-          int errno_save = errno;
-          quitmsg = (char *) scalloc(BUFSIZE, 1);
-          if (quitmsg)
-            {
-              snprintf(quitmsg, BUFSIZE, "Read error from server: %s",
-                       strerror(errno_save));
-            }
-          else
-            {
-              quitmsg = "Read error from server";
-                       }
-          send_cmd(ServerName, "SQUIT %s :%s", ServerName, quitmsg);
-          disconn(servsock);
-          close_log();
-          return 0;
-        }
-     }
+  return 0;
 }
diff --git a/src/memory.c b/src/memory.c
deleted file mode 100644 (file)
index 83151f3..0000000
+++ /dev/null
@@ -1,108 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "memory.h"
-#include "log.h"
-
-/*************************************************************************/
-/*************************************************************************/
-
-/* smalloc, scalloc, srealloc, sstrdup:
- *     Versions of the memory allocation functions which will cause the
- *     program to terminate with an "Out of memory" error if the memory
- *     cannot be allocated.  (Hence, the return value from these functions
- *     is never NULL.)
- */
-
-void *smalloc(long size)
-{
-       void *buf;
-
-       if (!size)
-       {
-               mylog("smalloc: Illegal attempt to allocate 0 bytes");
-               size = 1;
-       }
-       buf = malloc(size);
-       if (!buf)
-#if !defined(USE_THREADS) || !defined(LINUX20)
-               raise(SIGUSR1);
-#else
-               abort();
-#endif
-       return buf;
-}
-
-void *scalloc(long elsize, long els)
-{
-       void *buf;
-
-       if (!elsize || !els)
-       {
-               mylog("scalloc: Illegal attempt to allocate 0 bytes");
-               elsize = els = 1;
-       }
-       buf = calloc(elsize, els);
-       if (!buf)
-#if !defined(USE_THREADS) || !defined(LINUX20)
-               raise(SIGUSR1);
-#else
-               abort();
-#endif
-       return buf;
-}
-
-void *srealloc(void *oldptr, long newsize)
-{
-       void *buf;
-
-       if (!newsize)
-       {
-               mylog("srealloc: Illegal attempt to allocate 0 bytes");
-               newsize = 1;
-       }
-       buf = realloc(oldptr, newsize);
-       if (!buf)
-#if !defined(USE_THREADS) || !defined(LINUX20)
-               raise(SIGUSR1);
-#else
-               abort();
-#endif
-       return buf;
-}
-
-char *sstrdup(const char *s)
-{
-       char *t = strdup(s);
-       if (!t)
-#if !defined(USE_THREADS) || !defined(LINUX20)
-               raise(SIGUSR1);
-#else
-               abort();
-#endif
-       return t;
-}
-
-/*************************************************************************/
-/*************************************************************************/
-
-/* In the future: malloc() replacements that tell us if we're leaking and
- * maybe do sanity checks too... */
-
-/*************************************************************************/
diff --git a/src/memory.h b/src/memory.h
deleted file mode 100644 (file)
index 277a431..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-#ifndef _MEMORY_H_
-#define _MEMORY_H_
-
-void *smalloc(long size);
-void *scalloc(long elsize, long els);
-void *srealloc(void *oldptr, long newsize);
-char *sstrdup(const char *s);
-
-#endif
diff --git a/src/messages.c b/src/messages.c
deleted file mode 100644 (file)
index 4267d27..0000000
+++ /dev/null
@@ -1,617 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "messages.h"
-#include "send.h"
-#include "misc.h"
-#include "compat.h"
-#include "memory.h"
-#include "log.h"
-#include "actions.h"
-#include "sockutil.h"
-
-extern char *ServerName;
-extern char *RemoteServer;
-extern time_t start_time;
-
-extern unsigned int nbusers;
-extern unsigned int nbusers_max;
-extern unsigned int nbchans;
-extern unsigned int nbchans_max;
-
-/* List of messages is at the bottom of the file. */
-
-/* PING - handled */
-static void m_ping(char *source, int ac, char **av)
-{
-       if (ac < 1)
-               return;
-       send_cmd(ServerName, "PONG %s %s", ac > 1 ? av[1] : ServerName, av[0]);
-}
-
-/* SERVER - forwarded */
-static void m_server(char *source, int ac, char **av)
-{
-       if (*source)
-       {
-               do_server(av[0], av[2], source);
-       }
-       else
-       {
-#ifdef IRCD_UNREAL
-               do_server(av[0], strchr(av[2], ' ') + 1, ServerName);
-#else
-               do_server(av[0], av[2], ServerName);
-#endif
-       }
-}
-
-/* SQUIT - forwarded */
-static void m_squit(char *source, int ac, char **av)
-{
-       do_squit(av[0]);
-}
-
-/* NICK - forwarded */
-static void m_nick(char *source, int ac, char **av)
-{
-       if (*source)
-               do_nick_chg(av[0], source);
-       else
-               do_nick_new(ac, av);
-}
-
-/* KICK - forwarded */
-static void m_kick(char *source, int ac, char **av)
-{
-       do_part(av[0], av[1]);            /* kicks are handled like parts */
-}
-
-/* PART - forwarded */
-static void m_part(char *source, int ac, char **av)
-{
-       do_part(av[0], source);
-
-}
-
-/* ERROR - handled */
-static void m_error(char *source, int ac, char **av)
-{
-       fatal(av[0][0] == ':' ? av[0] + 1 : av[0]);
-}
-
-/* JOIN - forwarded */
-static void m_join(char *source, int ac, char **av)
-{
-#ifdef IRCD_ULTI28
-       char *pos, *oldpos;
-       /* LAME ultimate 2.8 with multiple channels in the same JOIN ... */
-       oldpos = av[0];
-       while ((pos = strchr(oldpos, ',')) != NULL)
-       {
-               *pos = '\0';
-               do_join(oldpos, source);
-               oldpos = pos + 1;
-       }
-       do_join(oldpos, source);
-#else
-       if (!strcmp(av[0], "0"))
-               do_partall(source);
-       else
-               do_join(av[0], source);
-#endif
-}
-
-/* QUIT - forwarded */
-static void m_quit(char *source, int ac, char **av)
-{
-       do_quit(source);
-}
-
-/* SJOIN - forwarded */
-static void m_sjoin(char *source, int ac, char **av)
-{
-
-#if defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU)
-       if (ac == 2)
-               do_join(av[1], source);   /* like a join */
-       else
-#endif
-               do_sjoin(av[1], av[ac - 1], &av[2], (ac > 3) ? ac - 3 : 0);
-}
-
-/* SVSMODE - forwarded */
-static void m_svsmode(char *source, int ac, char **av)
-{
-       if (*av[0] != '#')
-#if defined(IRCD_BAHAMUT)||defined(IRCD_ULTIMATE)||defined(IRCD_IRCDRU)||defined(IRCD_HYBRID)
-               do_umode(av[0], av[2]);
-#elif defined(IRCD_UNREAL)||defined(IRCD_ULTI28)
-               do_umode(av[0], av[1]);
-#endif
-       else
-               do_cmode(av[0], &av[1], ac - 2);
-}
-
-/* MODE - forwarded */
-static void m_mode(char *source, int ac, char **av)
-{
-       if (*av[0] != '#')
-               do_umode(av[0], av[1]);
-       else
-               do_cmode(av[0], &av[1], ac - 1);
-}
-
-/* TOPIC - forwarded */
-static void m_topic(char *source, int ac, char **av)
-{
-#ifdef IRCD_HYBRID
-       do_topic(source, av[0], av[1]);
-#else
-       do_topic(av[0], av[1], av[2], av[3]);
-#endif /* IRCD_HYBRID */
-}
-
-/* TBURST - forwarded -iwes */
-#ifdef IRCD_HYBRID
-static void m_tburst(char *source, int ac, char **av)
-{
-       do_tburst(av[1], av[2], av[3], av[4]);
-}
-#endif /* IRCD_HYBRID */
-
-/* KILL - forwarded */
-static void m_kill(char *source, int ac, char **av)
-{
-       do_quit(av[0]);
-}
-
-/* AWAY - forwarded */
-static void m_away(char *source, int ac, char **av)
-{
-       if (!ac)
-               do_away_unset(source);
-       else
-               do_away_set(source, av[0]);
-}
-
-/* VERSION - handled */
-static void m_version(char *source, int ac, char **av)
-{
-       if (source)
-               send_cmd(ServerName, "351 %s GNU Thales %s %s",
-                                       source, VERSION, ServerName);
-}
-
-/* STATS - handled */
-static void m_stats(char *source, int ac, char **av)
-{
-       if (ac < 1)
-               return;
-       switch (*av[0])
-       {
-       case 'l':
-               send_cmd(NULL,
-                                       "211 %s Server SendBuf SentBytes SentMsgs RecvBuf RecvBytes RecvMsgs ConnTime",
-                                       source);
-               send_cmd(NULL, "211 %s %s %d %d %d %d %d %d %ld", source,
-                                       RemoteServer, write_buffer_len(), total_written, -1,
-                                       read_buffer_len(), total_read, -1, time(NULL) - start_time);
-               send_cmd(NULL, "219 %s l :End of /STATS report.", source);
-               break;
-       case 'u':
-               {
-                       int uptime;
-                       uptime = time(NULL) - start_time;
-                       send_cmd(NULL, "242 %s :GNU Thales up %d day%s, %02d:%02d:%02d",
-                                               source, uptime / 86400, (uptime / 86400 == 1) ? "" : "s",
-                                               (uptime / 3600) % 24, (uptime / 60) % 60, uptime % 60);
-                       send_cmd(NULL, "219 %s u :End of /STATS report.", source);
-                       break;
-               }
-       default:
-               send_cmd(NULL, "219 %s %c :End of /STATS report.", source, *av[0]);
-               break;
-       }
-}
-
-/* LUSERS - forwarded */
-static void m_lusers(char *source, int ac, char **av)
-{
-       do_lusers(source);
-}
-
-/* MOTD - handled */
-static void m_motd(char *source, int ac, char **av)
-{
-       send_cmd(ServerName, "375 %s :- %s Message of the Day", source,
-                               ServerName);
-       send_cmd(ServerName, "372 %s :- _____ _           _", source);
-       send_cmd(ServerName, "372 %s :-|_   _| |__   __ _| | ___  ___", source);
-       send_cmd(ServerName, "372 %s :-  | | | '_ \\ / _` | |/ _ \\/ __|",
-                               source);
-       send_cmd(ServerName, "372 %s :-  | | | | | | (_| | |  __/\\__ \\",
-                               source);
-       send_cmd(ServerName, "372 %s :-  |_| |_| |_|\\__,_|_|\\___||___/",
-                               source);
-       send_cmd(ServerName, "372 %s :-           v. %s", source, VERSION);
-       send_cmd(ServerName, "372 %s :-    (c)2002-2004 Lucas Nussbaum", source);
-       send_cmd(ServerName, "372 %s :-", source);
-       send_cmd(ServerName, "372 %s :-GNU Thales is an IRC to MySQL gateway.",
-                               source);
-       send_cmd(ServerName, "372 %s :-   More info is available on", source);
-       send_cmd(ServerName, "372 %s :- http://www.gnu.org/software/thales/",
-                               source);
-       send_cmd(ServerName, "376 %s :End of /MOTD command.", source);
-}
-
-/* ADMIN - handled */
-static void m_admin(char *source, int ac, char **av)
-{
-       send_cmd(ServerName, "256 %s :Administrative info about %s", source,
-                               ServerName);
-       send_cmd(ServerName, "257 %s :thales-%s : IRC to MySQL Gateway", source,
-                               VERSION);
-       send_cmd(ServerName,
-                               "258 %s :Written by Lucas Nussbaum <lucas@lucas-nussbaum.net>",
-                               source);
-       send_cmd(ServerName,
-                               "259 %s :See http://www.gnu.org/software/thales/ for more info.",
-                               source);
-}
-
-/* TIME - handled */
-static char *months[] = {
-       "January", "February", "March", "April",
-       "May", "June", "July", "August",
-       "September", "October", "November", "December"
-};
-
-static char *weekdays[] = {
-       "Sunday", "Monday", "Tuesday", "Wednesday",
-       "Thursday", "Friday", "Saturday"
-};
-
-static void m_time(char *source, int ac, char **av)
-{
-       static char buf[80], plus;
-       struct tm *lt, *gm;
-       struct tm gmbuf;
-       int minswest;
-       time_t clock;
-
-       time(&clock);
-       gm = gmtime(&clock);
-       memcpy((char *) &gmbuf, (char *) gm, sizeof(gmbuf));
-       gm = &gmbuf;
-       lt = localtime(&clock);
-
-       if (lt->tm_yday == gm->tm_yday)
-               minswest =
-                       (gm->tm_hour - lt->tm_hour) * 60 + (gm->tm_min - lt->tm_min);
-       else if (lt->tm_yday > gm->tm_yday)
-               minswest = (gm->tm_hour - (lt->tm_hour + 24)) * 60;
-       else
-               minswest = ((gm->tm_hour + 24) - lt->tm_hour) * 60;
-
-       plus = (minswest > 0) ? '-' : '+';
-       if (minswest < 0)
-               minswest = -minswest;
-
-       (void) snprintf(buf, sizeof(buf),
-                                                "%s %s %d %04d -- %02d:%02d %c%02d:%02d",
-                                                weekdays[lt->tm_wday], months[lt->tm_mon], lt->tm_mday,
-                                                lt->tm_year + 1900, lt->tm_hour, lt->tm_min, plus,
-                                                minswest / 60, minswest % 60);
-
-       send_cmd(ServerName, "391 %s %s :%s", source, ServerName, buf);
-}
-
-
-/*
- * IRCD specific commands
- */
-
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTI28)
-
-/* CHGHOST - forwarded */
-static void m_chghost(char *source, int ac, char **av)
-{
-       do_defhost(av[0], av[1]);
-}
-
-/* CHGNAME - forwarded */
-static void m_chgname(char *source, int ac, char **av)
-{
-       do_defname(av[0], av[1]);
-}
-
-/* CHGIDENT - forwarded */
-static void m_chgident(char *source, int ac, char **av)
-{
-       do_defname(av[0], av[1]);
-}
-
-/* SETNAME - forwarded */
-static void m_setname(char *source, int ac, char **av)
-{
-       do_defname(source, av[0]);
-}
-
-/* SETIDENT - forwarded */
-static void m_setident(char *source, int ac, char **av)
-{
-       do_defident(source, av[0]);
-}
-
-#endif
-
-#ifdef IRCD_UNREAL
-
-/* SDESC - forwarded */
-static void m_sdesc(char *source, int ac, char **av)
-{
-       do_sdesc(source, av[0]);
-}
-
-/* SWHOIS - forwarded */
-static void m_swhois(char *source, int ac, char **av)
-{
-       do_swhois(av[0], av[1]);
-}
-
-
-#endif
-
-#if defined(IRCD_UNREAL)||defined(IRCD_ULTI28)
-/* SETHOST - forwarded */
-static void m_sethost(char *source, int ac, char **av)
-{
-       do_defhost(source, av[0]);
-}
-#endif
-
-#if defined(IRCD_ULTIMATE)
-
-/* SETHOST - forwarded */
-static void m_sethost(char *source, int ac, char **av)
-{
-       do_defhost(av[0], av[1]);
-}
-
-#endif
-
-#ifdef IRCD_HYBRID
-
-/* REALHOST - forwarded */
-static void m_realhost(char *source, int ac, char **av)
-{
-       mylog("NBPARAMS : %d", ac);
-       if (ac > 1)
-               do_realhost(av[0], av[1]);
-       else
-               do_realhost(av[0], "");
-}
-#endif
-
-/*************************************************************************/
-Message messages[] = {
-
-       {"PASS", NULL}
-       ,
-       {"PING", m_ping}
-       ,
-       {"SERVER", m_server}
-       ,
-       {"VERSION", m_version}
-       ,
-       {"SQUIT", m_squit}
-       ,
-       {"NICK", m_nick}
-       ,
-       {"KILL", m_kill}
-       ,
-       {"SJOIN", m_sjoin}
-       ,
-       {"KICK", m_kick}
-       ,
-       {"SVSMODE", m_svsmode}
-       ,
-       {"PART", m_part}
-       ,
-       {"MODE", m_mode}
-       ,
-       {"TOPIC", m_topic}
-       ,
-#ifdef IRCD_HYBRID
-       {"TBURST", m_tburst}
-       ,
-#endif /* IRCD_HYBRID */
-       {"QUIT", m_quit}
-       ,
-       {"STATS", m_stats}
-       ,
-       {"JOIN", m_join}
-       ,
-       {"AWAY", m_away}
-       ,
-       {"ERROR", m_error}
-       ,
-       {"SQLINE", NULL}
-       ,
-       {"NOTICE", NULL}
-       ,
-       {"GNOTICE", NULL}
-       ,
-       {"SZLINE", NULL}
-       ,
-       {"CAPAB", NULL}
-       ,
-       {"SVINFO", NULL}
-       ,
-       {"SGLINE", NULL}
-       ,
-       {"UNSGLINE", NULL}
-       ,
-       {"UNSZLINE", NULL}
-       ,
-       {"AKILL", NULL}
-       ,
-       {"GLOBOPS", NULL}
-       ,
-       {"WALLOPS", NULL}
-       ,
-       {"SVSKILL", NULL}
-       ,
-       {"RAKILL", NULL}
-       ,
-       {"CHATOPS", NULL}
-       ,
-       {"LUSERS", m_lusers}
-       ,
-       {"ADMIN", m_admin}
-       ,
-       {"MOTD", m_motd}
-       ,
-       {"TIME", m_time}
-       ,
-
-#ifdef IRCD_ULTI28
-       {"VCTRL", NULL}
-       ,
-       {"PROTOCTL", NULL}
-       ,
-       {"SNETINFO", NULL}
-       ,
-       {"CHGHOST", m_chghost}
-       ,
-       {"CHGIDENT", m_chgident}
-       ,
-       {"CHGNAME", m_chgname}
-       ,
-       {"SETHOST", m_sethost}
-       ,
-       {"SETIDENT", m_setident}
-       ,
-       {"SETNAME", m_setname}
-       ,
-       {"FAILOPS", NULL}
-       ,
-       {"GCONNECT", NULL}
-       ,
-       {"NETINFO", NULL}
-       ,
-       {"ADG", NULL}
-       ,
-       {"NETG", NULL}
-       ,
-       {"NETGLOBAL", NULL}
-       ,
-       {"GNOTICE", NULL}
-       ,
-       {"GLINE", NULL}
-       ,
-       {"GOPER", NULL}
-       ,
-       {"GNOTICE", NULL}
-       ,
-       {"GOPER", NULL}
-       ,
-       {"GCLIENT", NULL}
-       ,
-#endif
-#ifdef IRCD_ULTIMATE
-       {"VCTRL", NULL}
-       ,
-       {"GCONNECT", NULL}
-       ,
-       {"NETGLOBAL", NULL}
-       ,
-       {"GNOTICE", NULL}
-       ,
-       {"GOPER", NULL}
-       ,
-       {"GNOTICE", NULL}
-       ,
-       {"GOPER", NULL}
-       ,
-       {"NETCTRL", NULL}
-       ,
-       {"EOBURST", NULL}
-       ,
-       {"NETINFO", NULL}
-       ,
-       {"SETHOST", m_sethost}
-       ,
-       {"SMODE", m_mode}
-       ,
-#endif
-#ifdef IRCD_UNREAL
-       {"HELP", NULL}
-       ,
-       {"PROTOCTL", NULL}
-       ,
-       {"TKL", NULL}
-       ,
-       {"SMO", NULL}
-       ,
-       {"SDESC", m_sdesc}
-       ,
-       {"SVS2MODE", m_svsmode}
-       ,
-       {"GOPER", NULL}
-       ,
-       {"NETINFO", NULL}
-       ,
-       {"CHGHOST", m_chghost}
-       ,
-       {"CHGIDENT", m_chgident}
-       ,
-       {"CHGNAME", m_chgname}
-       ,
-       {"SETHOST", m_sethost}
-       ,
-       {"SETIDENT", m_setident}
-       ,
-       {"SETNAME", m_setname}
-       ,
-       {"SWHOIS", m_swhois}
-       ,
-       {"EOS", NULL}
-       ,
-#endif
-#ifdef IRCD_HYBRID
-       {"REALHOST", m_realhost}
-       ,
-#endif
-       {NULL}
-};
-
-/*************************************************************************/
-
-Message *find_message(const char *name)
-{
-       Message *m;
-       for (m = messages; m->name; m++)
-               if (strcasecmp(name, m->name) == 0)
-                       return m;
-       return NULL;
-}
-
-/*************************************************************************/
diff --git a/src/messages.h b/src/messages.h
deleted file mode 100644 (file)
index 33278fa..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#ifndef _MESSAGES_H_
-#define _MESSAGES_H_
-
-typedef struct
-{
-       const char *name;
-       void (*func) (char *source, int ac, char **av);
-}
-Message;
-
-Message *find_message(const char *name);
-
-#endif
diff --git a/src/misc.c b/src/misc.c
deleted file mode 100644 (file)
index 5cd0387..0000000
+++ /dev/null
@@ -1,171 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "misc.h"
-
-/*************************************************************************/
-
-/* strscpy:  Copy at most len-1 characters from a string to a buffer, and
- *           add a null terminator after the last character copied.
- */
-
-char *strscpy(char *d, const char *s, size_t len)
-{
-       char *d_orig = d;
-
-       if (!len)
-               return d;
-       while (--len && (*d++ = *s++))
-               ;
-       *d = 0;
-       return d_orig;
-}
-
-/*************************************************************************/
-
-/* stristr:  Search case-insensitively for string s2 within string s1,
- *           returning the first occurrence of s2 or NULL if s2 was not
- *           found.
- */
-
-char *stristr(char *s1, char *s2)
-{
-       register char *s = s1, *d = s2;
-
-       while (*s1)
-       {
-               if (tolower(*s1) == tolower(*d))
-               {
-                       s1++;
-                       d++;
-                       if (*d == 0)
-                               return s;
-               }
-               else
-               {
-                       s = ++s1;
-                       d = s2;
-               }
-       }
-       return NULL;
-}
-
-/*************************************************************************/
-
-/* strnrepl:  Replace occurrences of `old' with `new' in string `s'.  Stop
- *            replacing if a replacement would cause the string to exceed
- *            `size' bytes (including the null terminator).  Return the
- *            string.
- */
-
-char *strnrepl(char *s, int size, const char *old, const char *new)
-{
-       char *ptr = s;
-       int left = strlen(s);
-       int avail = size - (left + 1);
-       int oldlen = strlen(old);
-       int newlen = strlen(new);
-       int diff = newlen - oldlen;
-
-       while (left >= oldlen)
-       {
-               if (strncmp(ptr, old, oldlen) != 0)
-               {
-                       left--;
-                       ptr++;
-                       continue;
-               }
-               if (diff > avail)
-                       break;
-               if (diff != 0)
-                       memmove(ptr + oldlen + diff, ptr + oldlen, left + 1);
-               strncpy(ptr, new, newlen);
-               ptr += newlen;
-               left -= oldlen;
-       }
-       return s;
-}
-
-/*************************************************************************/
-/*************************************************************************/
-
-/* merge_args:  Take an argument count and argument vector and merge them
- *              into a single string in which each argument is separated by
- *              a space.
- */
-
-char *merge_args(int argc, char **argv)
-{
-       int i;
-       static char s[4096];
-       char *t;
-
-       t = s;
-       for (i = 0; i < argc; i++)
-               t += snprintf(t, sizeof(s) - (t - s), "%s%s", *argv++,
-                                                 (i < argc - 1) ? " " : "");
-       return s;
-}
-
-/*************************************************************************/
-
-/* dotime:  Return the number of seconds corresponding to the given time
- *          string.  If the given string does not represent a valid time,
- *          return -1.
- *
- *          A time string is either a plain integer (representing a number
- *          of seconds), or an integer followed by one of these characters:
- *          "s" (seconds), "m" (minutes), "h" (hours), or "d" (days).
- */
-
-int dotime(const char *s)
-{
-       int amount;
-
-       amount = strtol(s, (char **) &s, 10);
-       if (*s)
-       {
-               switch (*s)
-               {
-               case 's':
-                       return amount;
-               case 'm':
-                       return amount * 60;
-               case 'h':
-                       return amount * 3600;
-               case 'd':
-                       return amount * 86400;
-               default:
-                       return -1;
-               }
-       }
-       else
-       {
-               return amount;
-       }
-}
-
-void strtolwr(char *ch)
-{
-       while (*ch)
-       {
-               *ch = tolower(*ch);
-               ch++;
-       }
-}
diff --git a/src/misc.h b/src/misc.h
deleted file mode 100644 (file)
index f825952..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-#ifndef _MISC_H_
-#define _MISC_H_
-
-char *strscpy(char *d, const char *s, size_t len);
-char *stristr(char *s1, char *s2);
-char *strnrepl(char *s, int size, const char *old, const char *new);
-
-int dotime(const char *s);
-void strtolwr(char *ch);
-
-#endif
diff --git a/src/process.c b/src/process.c
deleted file mode 100644 (file)
index 5ec14e4..0000000
+++ /dev/null
@@ -1,151 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "process.h"
-#include "messages.h"
-#include "memory.h"
-#include "log.h"
-#include "misc.h"
-
-extern Message messages[];
-extern int verbose;
-extern char inbuf[BUFSIZE];
-
-/*************************************************************************/
-/*************************************************************************/
-
-/* split_buf:  Split a buffer into arguments and store the arguments in an
- *             argument vector pointed to by argv (which will be malloc'd
- *             as necessary); return the argument count.  If colon_special
- *             is non-zero, then treat a parameter with a leading ':' as
- *             the last parameter of the line, per the IRC RFC.  Destroys
- *             the buffer by side effect.
- */
-
-int split_buf(char *buf, char ***argv, int colon_special)
-{
-       int argvsize = 8;
-       int argc;
-       char *s;
-
-       *argv = (char **) scalloc(sizeof(char *) * argvsize, 1);
-       argc = 0;
-       while (*buf)
-       {
-               if (argc == argvsize)
-               {
-                       argvsize += 8;
-                       *argv = (char **) srealloc(*argv, sizeof(char *) * argvsize);
-               }
-               if (*buf == ':')
-               {
-                       (*argv)[argc++] = buf + 1;
-                       buf = "";
-               }
-               else
-               {
-                       s = strpbrk(buf, " ");
-                       if (s)
-                       {
-                               *s++ = 0;
-                               while (*s == ' ')
-                                       s++;
-                       }
-                       else
-                       {
-                               s = buf + strlen(buf);
-                       }
-                       (*argv)[argc++] = buf;
-                       buf = s;
-               }
-       }
-       return argc;
-}
-
-/*************************************************************************/
-
-/* process:  Main processing routine.  Takes the string in inbuf (global
- *           variable) and does something appropriate with it. */
-
-void process()
-{
-       char source[64];
-       char cmd[64];
-       char buf[512];                                    /* Longest legal IRC command line */
-       char *s;
-       int ac;                                                   /* Parameters for the command */
-       char **av;
-       Message *m;
-
-
-       /* If debugging, log the buffer. */
-       if (verbose)
-               mylog("<IRC : %s", inbuf);
-
-       /* First make a copy of the buffer so we have the original in case we
-        * crash - in that case, we want to know what we crashed on. */
-       strscpy(buf, inbuf, sizeof(buf));
-
-       /* Split the buffer into pieces. */
-       if (*buf == ':')
-       {
-               s = strpbrk(buf, " ");
-               if (!s)
-                       return;
-               *s = 0;
-               while (isspace(*++s))
-                       ;
-               strscpy(source, buf + 1, sizeof(source));
-               memmove(buf, s, strlen(s) + 1);
-       }
-       else
-       {
-               *source = 0;
-       }
-       if (!*buf)
-               return;
-       s = strpbrk(buf, " ");
-       if (s)
-       {
-               *s = 0;
-               while (isspace(*++s))
-                       ;
-       }
-       else
-               s = buf + strlen(buf);
-       strscpy(cmd, buf, sizeof(cmd));
-       ac = split_buf(s, &av, 1);
-
-       /* Do something with the message. */
-       m = find_message(cmd);
-       if (m)
-       {
-               if (m->func)
-                       m->func(source, ac, av);
-       }
-       else
-       {
-               mylog("IRC : unknown message from server (%s)", inbuf);
-       }
-
-       /* Free argument list we created */
-       free(av);
-}
-
-/*************************************************************************/
diff --git a/src/process.h b/src/process.h
deleted file mode 100644 (file)
index 1bed07b..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-#ifndef _PROCESS_H_
-#define _PROCESS_H_
-
-int split_buf(char *buf, char ***argv, int colon_special);
-void process(void);
-
-#endif
diff --git a/src/send.c b/src/send.c
deleted file mode 100644 (file)
index 4035a4e..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "send.h"
-#include "sockutil.h"
-#include "log.h"
-
-extern int servsock;
-extern int verbose;
-extern char *ServerName;
-
-/*************************************************************************/
-
-/* Send a command to the server.  The two forms here are like
- * printf()/vprintf() and friends. */
-
-void send_cmd(const char *source, const char *fmt, ...)
-{
-       va_list args;
-
-       va_start(args, fmt);
-       vsend_cmd(source, fmt, args);
-       va_end(args);
-}
-
-void vsend_cmd(const char *source, const char *fmt, va_list args)
-{
-       char buf[BUFSIZE];
-
-       vsnprintf(buf, sizeof(buf), fmt, args);
-       if (source)
-       {
-               sockprintf(servsock, ":%s %s\r\n", source, buf);
-               if (verbose)
-                       mylog(">IRC : %s %s", source, buf);
-       }
-       else
-       {
-               sockprintf(servsock, "%s\r\n", buf);
-               if (verbose)
-                       mylog(">IRC : %s", buf);
-       }
-}
-
-/*************************************************************************/
-
-/* Send out a WALLOPS (a GLOBOPS on ircd.dal). */
-
-void wallops(const char *source, const char *fmt, ...)
-{
-       va_list args;
-       char buf[BUFSIZE];
-
-       va_start(args, fmt);
-       snprintf(buf, sizeof(buf), "GLOBOPS :%s", fmt);
-       vsend_cmd(source ? source : ServerName, buf, args);
-}
diff --git a/src/send.h b/src/send.h
deleted file mode 100644 (file)
index 101baad..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-#ifndef _SEND_H_
-#define _SEND_H_
-
-/* Send a command to the server.  The two forms here are like
- * printf()/vprintf() and friends. */
-
-void send_cmd(const char *source, const char *fmt, ...);
-void vsend_cmd(const char *source, const char *fmt, va_list args);
-
-/* Send out a WALLOPS (a GLOBOPS on ircd.dal). */
-
-void wallops(const char *source, const char *fmt, ...);
-
-#endif
diff --git a/src/sockutil.c b/src/sockutil.c
deleted file mode 100644 (file)
index 892c2fc..0000000
+++ /dev/null
@@ -1,538 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-
-#include "thales.h"
-#include "log.h"
-
-extern int debug;
-
-/*************************************************************************/
-/*************************************************************************/
-
-/* Read from a socket with buffering. */
-
-static char read_netbuf[NET_BUFSIZE];
-static char *read_curpos = read_netbuf;        /* Next byte to return */
-static char *read_bufend = read_netbuf;        /* Next position for data from socket */
-static char *const read_buftop = read_netbuf + NET_BUFSIZE;
-int total_read = 0;
-
-
-/* Return amount of data in read buffer. */
-
-int read_buffer_len()
-{
-       if (read_bufend >= read_curpos)
-               return read_bufend - read_curpos;
-       else
-               return (read_bufend + NET_BUFSIZE) - read_curpos;
-}
-
-
-/* Read data. */
-
-static int buffered_read(int fd, char *buf, int len)
-{
-       int nread, left = len;
-       fd_set fds;
-       struct timeval tv = { 0, 0 };
-       int errno_save = errno;
-
-       if (fd < 0)
-       {
-               errno = EBADF;
-               return -1;
-       }
-       while (left > 0)
-       {
-               struct timeval *tvptr = (read_bufend == read_curpos ? NULL : &tv);
-               FD_ZERO(&fds);
-               FD_SET(fd, &fds);
-               while (read_bufend != read_curpos - 1
-                                && !(read_curpos == read_netbuf
-                                               && read_bufend == read_buftop - 1)
-                                && select(fd + 1, &fds, 0, 0, tvptr) == 1)
-               {
-                       int maxread;
-                       tvptr = &tv;                      /* don't wait next time */
-                       if (read_bufend < read_curpos)  /* wrapped around? */
-                               maxread = (read_curpos - 1) - read_bufend;
-                       else if (read_curpos == read_netbuf)
-                               maxread = read_buftop - read_bufend - 1;
-                       else
-                               maxread = read_buftop - read_bufend;
-                       nread = read(fd, read_bufend, maxread);
-                       errno_save = errno;
-                       if (debug >= 3)
-                               mylog("debug: buffered_read wanted %d, got %d", maxread, nread);
-                       if (nread <= 0)
-                               break;
-                       read_bufend += nread;
-                       if (read_bufend == read_buftop)
-                               read_bufend = read_netbuf;
-               }
-               if (read_curpos == read_bufend) /* No more data on socket */
-                       break;
-               /* See if we can gobble up the rest of the buffer. */
-               if (read_curpos + left >= read_buftop && read_bufend < read_curpos)
-               {
-                       nread = read_buftop - read_curpos;
-                       memcpy(buf, read_curpos, nread);
-                       buf += nread;
-                       left -= nread;
-                       read_curpos = read_netbuf;
-               }
-               /* Now everything we need is in a single chunk at read_curpos. */
-               if (read_bufend > read_curpos && read_bufend - read_curpos < left)
-                       nread = read_bufend - read_curpos;
-               else
-                       nread = left;
-               if (nread)
-               {
-                       memcpy(buf, read_curpos, nread);
-                       buf += nread;
-                       left -= nread;
-                       read_curpos += nread;
-               }
-       }
-       total_read += len - left;
-       if (debug >= 4)
-       {
-               mylog("debug: buffered_read(%d,%p,%d) returning %d",
-                        fd, buf, len, len - left);
-       }
-       errno = errno_save;
-       return len - left;
-}
-
-/* Optimized version of the above for reading a single character; returns
- * the character in an int or EOF, like fgetc(). */
-
-static int buffered_read_one(int fd)
-{
-       int nread;
-       fd_set fds;
-       struct timeval tv = { 0, 0 };
-       char c;
-       struct timeval *tvptr = (read_bufend == read_curpos ? NULL : &tv);
-       int errno_save = errno;
-
-       if (fd < 0)
-       {
-               errno = EBADF;
-               return -1;
-       }
-       FD_ZERO(&fds);
-       FD_SET(fd, &fds);
-       while (read_bufend != read_curpos - 1
-                        && !(read_curpos == read_netbuf
-                                       && read_bufend == read_buftop - 1)
-                        && select(fd + 1, &fds, 0, 0, tvptr) == 1)
-       {
-               int maxread;
-               tvptr = &tv;                              /* don't wait next time */
-               if (read_bufend < read_curpos)  /* wrapped around? */
-                       maxread = (read_curpos - 1) - read_bufend;
-               else if (read_curpos == read_netbuf)
-                       maxread = read_buftop - read_bufend - 1;
-               else
-                       maxread = read_buftop - read_bufend;
-               nread = read(fd, read_bufend, maxread);
-               errno_save = errno;
-               if (debug >= 3)
-                       mylog("debug: buffered_read_one wanted %d, got %d", maxread, nread);
-               if (nread <= 0)
-                       break;
-               read_bufend += nread;
-               if (read_bufend == read_buftop)
-                       read_bufend = read_netbuf;
-       }
-       if (read_curpos == read_bufend)
-       {                                                                         /* No more data on socket */
-               if (debug >= 4)
-                       mylog("debug: buffered_read_one(%d) returning %d", fd, EOF);
-               errno = errno_save;
-               return EOF;
-       }
-       c = *read_curpos++;
-       if (read_curpos == read_buftop)
-               read_curpos = read_netbuf;
-       total_read++;
-       if (debug >= 4)
-               mylog("debug: buffered_read_one(%d) returning %d", fd, c);
-       return (int) c & 0xFF;
-}
-
-/*************************************************************************/
-
-/* Write to a socket with buffering.  Note that this assumes only one
- * socket. */
-
-static char write_netbuf[NET_BUFSIZE];
-static char *write_curpos = write_netbuf;      /* Next byte to write to socket */
-static char *write_bufend = write_netbuf;      /* Next position for data to socket */
-static char *const write_buftop = write_netbuf + NET_BUFSIZE;
-static int write_fd = -1;
-int total_written;
-
-
-/* Return amount of data in write buffer. */
-
-int write_buffer_len()
-{
-       if (write_bufend >= write_curpos)
-               return write_bufend - write_curpos;
-       else
-               return (write_bufend + NET_BUFSIZE) - write_curpos;
-}
-
-
-/* Helper routine to try and write up to one chunk of data from the buffer
- * to the socket.  Return how much was written. */
-
-static int flush_write_buffer(int wait)
-{
-       fd_set fds;
-       struct timeval tv = { 0, 0 };
-       int errno_save = errno;
-
-       if (write_bufend == write_curpos || write_fd == -1)
-               return 0;
-       FD_ZERO(&fds);
-       FD_SET(write_fd, &fds);
-       if (select(write_fd + 1, 0, &fds, 0, wait ? NULL : &tv) == 1)
-       {
-               int maxwrite, nwritten;
-               if (write_curpos > write_bufend)        /* wrapped around? */
-                       maxwrite = write_buftop - write_curpos;
-               else if (write_bufend == write_netbuf)
-                       maxwrite = write_buftop - write_curpos - 1;
-               else
-                       maxwrite = write_bufend - write_curpos;
-               nwritten = write(write_fd, write_curpos, maxwrite);
-               errno_save = errno;
-               if (debug >= 3)
-                       mylog("debug: flush_write_buffer wanted %d, got %d", maxwrite,
-                                nwritten);
-               if (nwritten > 0)
-               {
-                       write_curpos += nwritten;
-                       if (write_curpos == write_buftop)
-                               write_curpos = write_netbuf;
-                       total_written += nwritten;
-                       return nwritten;
-               }
-       }
-       errno = errno_save;
-       return 0;
-}
-
-
-/* Write data. */
-
-static int buffered_write(int fd, char *buf, int len)
-{
-       int nwritten, left = len;
-       int errno_save = errno;
-
-       if (fd < 0)
-       {
-               errno = EBADF;
-               return -1;
-       }
-       write_fd = fd;
-
-       while (left > 0)
-       {
-
-               /* Don't try putting anything in the buffer if it's full. */
-               if (write_curpos != write_bufend + 1 &&
-                        (write_curpos != write_netbuf
-                         || write_bufend != write_buftop - 1))
-               {
-                       /* See if we need to write up to the end of the buffer. */
-                       if (write_bufend + left >= write_buftop
-                                && write_curpos <= write_bufend)
-                       {
-                               nwritten = write_buftop - write_bufend;
-                               memcpy(write_bufend, buf, nwritten);
-                               buf += nwritten;
-                               left -= nwritten;
-                               write_bufend = write_netbuf;
-                       }
-                       /* Now we can copy a single chunk to write_bufend. */
-                       if (write_curpos > write_bufend
-                                && write_curpos - write_bufend - 1 < left)
-                               nwritten = write_curpos - write_bufend - 1;
-                       else
-                               nwritten = left;
-                       if (nwritten)
-                       {
-                               memcpy(write_bufend, buf, nwritten);
-                               buf += nwritten;
-                               left -= nwritten;
-                               write_bufend += nwritten;
-                       }
-               }
-
-               /* Now write to the socket as much as we can. */
-               if (write_curpos == write_bufend + 1 ||
-                        (write_curpos == write_netbuf
-                         && write_bufend == write_buftop - 1))
-                       flush_write_buffer(1);
-               else
-                       flush_write_buffer(0);
-               errno_save = errno;
-               if (write_curpos == write_bufend + 1 ||
-                        (write_curpos == write_netbuf
-                         && write_bufend == write_buftop - 1))
-               {
-                       /* Write failed on full buffer */
-                       break;
-               }
-       }
-
-       if (debug >= 4)
-       {
-               mylog("debug: buffered_write(%d,%p,%d) returning %d",
-                        fd, buf, len, len - left);
-       }
-       errno = errno_save;
-       return len - left;
-}
-
-/* Optimized version of the above for writing a single character; returns
- * the character in an int or EOF, like fputc().  Commented out because it
- * isn't currently used. */
-
-#if 0
-static int buffered_write_one(int c, int fd)
-{
-       struct timeval tv = { 0, 0 };
-
-       if (fd < 0)
-       {
-               errno = EBADF;
-               return -1;
-       }
-       write_fd = fd;
-
-       /* Try to flush the buffer if it's full. */
-       if (write_curpos == write_bufend + 1 ||
-                (write_curpos == write_netbuf && write_bufend == write_buftop - 1))
-       {
-               flush_write_buffer(1);
-               if (write_curpos == write_bufend + 1 ||
-                        (write_curpos == write_netbuf
-                         && write_bufend == write_buftop - 1))
-               {
-                       /* Write failed */
-                       if (debug >= 4)
-                               mylog("debug: buffered_write_one(%d) returning %d", fd, EOF);
-                       return EOF;
-               }
-       }
-
-       /* Write the character. */
-       *write_bufend++ = c;
-       if (write_bufend == write_buftop)
-               write_bufend = write_netbuf;
-
-       /* Move it to the socket if we can. */
-       flush_write_buffer(0);
-
-       if (debug >= 4)
-               mylog("debug: buffered_write_one(%d) returning %d", fd, c);
-       return (int) c & 0xFF;
-}
-#endif /* 0 */
-
-/*************************************************************************/
-/*************************************************************************/
-
-static int lastchar = EOF;
-
-int sgetc(int s)
-{
-       int c;
-
-       if (lastchar != EOF)
-       {
-               c = lastchar;
-               lastchar = EOF;
-               return c;
-       }
-       return buffered_read_one(s);
-}
-
-int sungetc(int c, int s)
-{
-       return lastchar = c;
-}
-
-/*************************************************************************/
-
-/* If connection was broken, return NULL.  If the read timed out, return
- * (char *)-1.
- */
-
-char *sgets(char *buf, int len, int s)
-{
-       int c = 0;
-       struct timeval tv;
-       fd_set fds;
-       char *ptr = buf;
-
-       if (len == 0)
-               return NULL;
-       FD_SET(s, &fds);
-       tv.tv_sec = 5;
-       tv.tv_usec = 0;
-       while (read_buffer_len() == 0 &&
-                        (c = select(s + 1, &fds, NULL, NULL, &tv)) < 0)
-       {
-               if (errno != EINTR)
-                       break;
-       }
-       if (read_buffer_len() == 0 && c == 0)
-               return (char *) -1;
-       c = sgetc(s);
-       while (--len && (*ptr++ = c) != '\n' && (c = sgetc(s)) >= 0)
-               ;
-       if (c < 0)
-               return NULL;
-       *ptr = 0;
-       return buf;
-}
-
-/*************************************************************************/
-
-/* sgets2:  Read a line of text from a socket, and strip newline and
- *          carriage return characters from the end of the line.
- */
-
-char *sgets2(char *buf, int len, int s)
-{
-       char *str = sgets(buf, len, s);
-
-       if (!str || str == (char *) -1)
-               return str;
-       str = buf + strlen(buf) - 1;
-       if (*str == '\n')
-               *str-- = 0;
-       if (*str == '\r')
-               *str = 0;
-       return buf;
-}
-
-/*************************************************************************/
-
-/* Read from a socket.  (Use this instead of read() because it has
- * buffering.) */
-
-int sread(int s, char *buf, int len)
-{
-       return buffered_read(s, buf, len);
-}
-
-/*************************************************************************/
-
-int sputs(char *str, int s)
-{
-       return buffered_write(s, str, strlen(str));
-}
-
-/*************************************************************************/
-
-int sockprintf(int s, char *fmt, ...)
-{
-       va_list args;
-       char buf[16384];                                  /* Really huge, to try and avoid truncation */
-
-       va_start(args, fmt);
-       return buffered_write(s, buf, vsnprintf(buf, sizeof(buf), fmt, args));
-}
-
-
-/*************************************************************************/
-
-/* lhost/lport specify the local side of the connection.  If they are not
- * given (lhost==NULL, lport==0), then they are left free to vary.
- */
-
-int conn(const char *host, int port, const char *lhost, int lport)
-{
-       struct hostent *hp;
-       struct sockaddr_in sa, lsa;
-       int sock;
-
-       memset(&lsa, 0, sizeof(lsa));
-       if (lhost)
-       {
-               if ((hp = gethostbyname(lhost)) != NULL)
-               {
-                       memcpy((char *) &lsa.sin_addr, hp->h_addr, hp->h_length);
-                       lsa.sin_family = hp->h_addrtype;
-               }
-               else
-               {
-                       lhost = NULL;
-               }
-       }
-       if (lport)
-               lsa.sin_port = htons((unsigned short) lport);
-
-       memset(&sa, 0, sizeof(sa));
-       if (!(hp = gethostbyname(host)))
-               return -1;
-       memcpy((char *) &sa.sin_addr, hp->h_addr, hp->h_length);
-       sa.sin_family = hp->h_addrtype;
-       sa.sin_port = htons((unsigned short) port);
-
-       if ((sock = socket(sa.sin_family, SOCK_STREAM, 0)) < 0)
-               return -1;
-
-       if ((lhost || lport)
-                && bind(sock, (struct sockaddr *) &lsa, sizeof(lsa)) < 0)
-       {
-               int errno_save = errno;
-               close(sock);
-               errno = errno_save;
-               return -1;
-       }
-
-       if (connect(sock, (struct sockaddr *) &sa, sizeof(sa)) < 0)
-       {
-               int errno_save = errno;
-               close(sock);
-               errno = errno_save;
-               return -1;
-       }
-
-       return sock;
-}
-
-/*************************************************************************/
-
-void disconn(int s)
-{
-       shutdown(s, 2);
-       close(s);
-}
-
-/*************************************************************************/
diff --git a/src/sockutil.h b/src/sockutil.h
deleted file mode 100644 (file)
index 986ccf5..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-#ifndef _SOCKUTIL_H_
-#define _SOCKUTIL_H_
-
-int total_read, total_written;
-int read_buffer_len(void);
-int write_buffer_len(void);
-
-int sgetc(int s);
-char *sgets(char *buf, int len, int s);
-char *sgets2(char *buf, int len, int s);
-int sread(int s, char *buf, int len);
-int sputs(char *str, int s);
-int sockprintf(int s, char *fmt, ...);
-int conn(const char *host, int port, const char *lhost, int lport);
-void disconn(int s);
-
-
-#endif
diff --git a/src/stamp-h.in b/src/stamp-h.in
deleted file mode 100644 (file)
index 9788f70..0000000
+++ /dev/null
@@ -1 +0,0 @@
-timestamp
diff --git a/src/thales.h b/src/thales.h
deleted file mode 100644 (file)
index 13e6092..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-/*  GNU Thales - IRC to Relational Database Gateway
- *  Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
- *
- *  This program is free software; you can redistribute it and/or modify
- *  it under the terms of the GNU General Public License as published by
- *  the Free Software Foundation; either version 2 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
- */
-#ifndef _THALES_H_
-#define _THALES_H_
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <limits.h>
-#include <stdarg.h>
-#include <time.h>
-#include <sys/time.h>
-#include <errno.h>
-#include <sys/types.h>
-#include <netdb.h>
-#include <netinet/in.h>
-#include <sys/socket.h>
-#include <ctype.h>
-#include <signal.h>
-#include <mysql.h>
-#include <getopt.h>
-#include "defs.h"
-#include "config.h"
-
-
-/* Some Linux boxes (or maybe glibc includes) require this for the
- * prototype of strsignal(). */
-#define _GNU_SOURCE
-
-#if INTTYPE_WORKAROUND
-# define int16 builtin_int16
-# define int32 builtin_int32
-#endif
-
-#define TRUE 1
-#define FALSE 0
-
-#endif /* _THALES_H_ */
diff --git a/tools/README b/tools/README
deleted file mode 100644 (file)
index 913d887..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-This directory contains scripts that might be useful if you are using Thales.
-For scripts using Thales' database to retrieve interesting information, see
-the examples/ directory.
-
-If you wrote some scripts of interest, please send them to me so that I can
-include them in this directory. They must be released under GPL v.2 or later.
-Thank you,
-
-- Lucas
diff --git a/tools/crontab/cron.sh b/tools/crontab/cron.sh
deleted file mode 100755 (executable)
index 17fdf89..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-#! /bin/sh
-# Thales crontab script
-# Copyright (C) 2002 Daniele Nicolucci <jollino@sogno.net>
-# Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
-# 
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 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
-
-# Written by Jollino <jollino@sogno.net>
-# Improved by Lucas <lucas@lucas-nussbaum.net>
-
-# CONFIGURATION
-
-thales_dir='/home/lucas/thales'
-# you might want to add the -v parameter to generate more output
-thales_exec='./thales'
-thales_pid='thales.pid'
-thales_log='thales.log'
-
-# SCRIPT
-
-cd $thales_dir
-if [ -f $thales_pid ]; then
-       pid=`cat $thales_pid`
-       if [ `ps -p $pid | wc -l` -eq 2 ]; then
-               exit
-       else
-               echo "Pidfile was stale."
-       fi
-fi
-
-echo "Looks like Thales died... let's relaunch it"
-backuplogname=$thales_log.`date '+%s'`
-mv $thales_log $backuplogname
-gzip $backuplogname
-$thales_exec
diff --git a/tools/logfilter/README b/tools/logfilter/README
deleted file mode 100644 (file)
index 85a9ac6..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-## logfilter ##
-# by lucas@lucas-nussbaum.net
-# licensed under GPL v2 or later
-
-This small shell script generates a gziped logfile, stripping all unrelevant information to reduce its size.
-
-You should always use this script before sending me logfiles, except if I specifically ask for the full logfile.
-
-Thanks :)
diff --git a/tools/logfilter/logfilter.sh b/tools/logfilter/logfilter.sh
deleted file mode 100755 (executable)
index 3d72d00..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/sh
-# logfilter - strips thales logs
-# Copyright (C) 2002 Lucas Nussbaum <lucas@lucas-nussbaum.net>
-# 
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 2 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
-
-echo "generating $1.out.gz ... this can take some time !"
-grep "^\[.*\] <IRC : " $1 | sed -e 's/\[.*\] <IRC : \(.*\)/\1/' | gzip > $1.out.gz
-echo "$1.out.gz generated. respective sizes :"
-ls -lh $1 $1.out.gz
-echo "now please send $1.out.gz to lucas@lucas-nussbaum.net,"
-echo "explaining how the crash occured, if possible"
-echo "thanks for your help improving thales !"
diff --git a/tools/testbed/README b/tools/testbed/README
deleted file mode 100644 (file)
index d04cab5..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-Those scripts are used by me (lucas) to deploy thales on a test architecture.
-Those scripts are licensed under the GPL v2 or later.
-
-- lucas
diff --git a/tools/testbed/chgCacheTime.sh b/tools/testbed/chgCacheTime.sh
deleted file mode 100755 (executable)
index 2d32351..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-TESTBED='/home/lucas/testbed'
-
-# New Cache Times
-SRVCACHE=600
-USRCACHE=170
-
-for i in `find $TESTBED/* |grep thales.conf`; do
-       sed "s/^ServerCacheTime.*$/ServerCacheTime $SRVCACHE/" $i > $i.bak
-       sed "s/^UserCacheTime.*$/UserCacheTime $USRCACHE/" $i.bak > $i
-       rm -f $i.bak
-done
diff --git a/tools/testbed/compileall.sh b/tools/testbed/compileall.sh
deleted file mode 100755 (executable)
index b7ec49d..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/sh
-
-DISTS='bahamut hybrid unreal ultimate28 ultimate30'
-TESTBED='/home/lucas/testbed'
-MAKE=gmake
-# compile
-
-for j in $DISTS; do
-       mkdir -p $TESTBED/$j
-       for k in $TESTBED/$j/*; do
-               ./configure --with-ircd=$j --with-tableprefix=`basename $k`_ --enable-noreportusage
-               $MAKE
-               mv -f src/thales $k/thales
-       done
-done
-
-echo "done !"
diff --git a/tools/testbed/killall.sh b/tools/testbed/killall.sh
deleted file mode 100644 (file)
index 9a528ad..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-DISTS='bahamut hybrid unreal ultimate28 ultimate30'
-TESTBED='/home/lucas/testbed'
-
-# kill all thales
-
-ps x |grep thales |grep -v grep | awk '{print $1}' | xargs kill
diff --git a/tools/testbed/killrunall.sh b/tools/testbed/killrunall.sh
deleted file mode 100644 (file)
index f0ddf07..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-#!/bin/sh
-
-DISTS='bahamut hybrid unreal ultimate28 ultimate30'
-TESTBED='/home/lucas/testbed'
-
-# kill all thales
-
-ps x |grep thales |grep -v grep | awk '{print $1}' | xargs kill
-
-for j in $DISTS; do
-       for k in $TESTBED/$j/*; do
-               echo $k
-               cd $k
-               if [ -f thales.log ]; then
-                       mv -f thales.log thales.log.`date +%s`
-               fi
-               ./thales -v
-       done
-done