Initial push
authorVlad <vlad@gas.by>
Tue, 17 Aug 2010 10:28:40 +0000 (13:28 +0300)
committerVlad <vlad@gas.by>
Tue, 17 Aug 2010 10:28:40 +0000 (13:28 +0300)
213 files changed:
sherman-aquarium/AUTHORS [new file with mode: 0644]
sherman-aquarium/BUGS [new file with mode: 0644]
sherman-aquarium/COPYING [new file with mode: 0644]
sherman-aquarium/ChangeLog [new file with mode: 0644]
sherman-aquarium/GNOME_shermans_appletApplet.server [new file with mode: 0644]
sherman-aquarium/GNOME_shermans_appletApplet.server.in [new file with mode: 0644]
sherman-aquarium/HACKING [new file with mode: 0644]
sherman-aquarium/INSTALL [new file with mode: 0644]
sherman-aquarium/Makefile [new file with mode: 0644]
sherman-aquarium/Makefile.in [new file with mode: 0644]
sherman-aquarium/NEWS [new file with mode: 0644]
sherman-aquarium/README [new file with mode: 0644]
sherman-aquarium/README.gai [new file with mode: 0644]
sherman-aquarium/TODO [new file with mode: 0644]
sherman-aquarium/XSCREENSAVER [new file with mode: 0644]
sherman-aquarium/aquarium/COPYING.graphics [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/bigplant.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/bottom1.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/bottom2.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/bottom3.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/octo1.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant1.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant10.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant2.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant3.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant4.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant5.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant6.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant7.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/plant9.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/smallstone1.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/smallstone3.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/stone1.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/stone2.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/stone3.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/weirdplant.png [new file with mode: 0644]
sherman-aquarium/aquarium/bottom/weirdplant2.png [new file with mode: 0644]
sherman-aquarium/aquarium/bubbles.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/date/figures.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/date/months.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/date/weekdays.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/digital/bigcolon.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/digital/bigfigures.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/digital/smallcolon.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/digital/smallfigures.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Eight.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Eleven.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Five.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Four.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Half.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Nine.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Oclock.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/One.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Past.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Quarter.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Seven.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Six.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Ten.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Three.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/To.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Twelve.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Twenty.png [new file with mode: 0644]
sherman-aquarium/aquarium/clock/fuzzy/Two.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/blue.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/bluegreen.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/darkblue.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/green.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/lightblue.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/orange.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/pink.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/red.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/violet.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/yellow.png [new file with mode: 0644]
sherman-aquarium/aquarium/leds/yellowgreen.png [new file with mode: 0644]
sherman-aquarium/aquarium/matrix1.png [new file with mode: 0644]
sherman-aquarium/aquarium/matrix2.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/bdweller.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/blowfish.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/blowup.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/eating.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/ernest.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/fillmore.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/fish1.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/fish2.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/fish3.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/fish4.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/fish5.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/fish6.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/hawthorne.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/hunter.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/lori.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/megan.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/prey.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/sherman.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/squid.png [new file with mode: 0644]
sherman-aquarium/aquarium/sherman/swordfish.png [new file with mode: 0644]
sherman-aquarium/aquarium/small_letters.png [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/README.SOUNDS [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/mp3/deathscream.mp3 [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/mp3/explode.mp3 [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/mp3/fewbubbles.mp3 [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/mp3/manybubbles.mp3 [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/ogg/deathscream.ogg [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/ogg/explode.ogg [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/ogg/fewbubbles.ogg [new file with mode: 0644]
sherman-aquarium/aquarium/sounds/ogg/manybubbles.ogg [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic1.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic10.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic11.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic12.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic13.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic14.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic15.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic16.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic17.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic18.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic19.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic2.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic20.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic21.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic22.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic23.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic24.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic25.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic3.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic4.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic5.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic6.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic7.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic8.gif [new file with mode: 0644]
sherman-aquarium/aquarium/strips/comic9.gif [new file with mode: 0644]
sherman-aquarium/aquarium/tetris_figures.png [new file with mode: 0644]
sherman-aquarium/aquarium/tetris_figures2.png [new file with mode: 0644]
sherman-aquarium/aquarium/tetris_gameover.png [new file with mode: 0644]
sherman-aquarium/aquarium/tetris_pieces.png [new file with mode: 0644]
sherman-aquarium/aquarium/tetris_status.png [new file with mode: 0644]
sherman-aquarium/aquarium/thermometer.png [new file with mode: 0644]
sherman-aquarium/aquarium/water.png [new file with mode: 0644]
sherman-aquarium/config.h [new file with mode: 0644]
sherman-aquarium/config.h.in [new file with mode: 0644]
sherman-aquarium/configure [new file with mode: 0755]
sherman-aquarium/configure.in [new file with mode: 0644]
sherman-aquarium/debian/changelog [new file with mode: 0644]
sherman-aquarium/debian/compat [new file with mode: 0644]
sherman-aquarium/debian/control [new file with mode: 0644]
sherman-aquarium/debian/copyright [new file with mode: 0644]
sherman-aquarium/debian/dirs [new file with mode: 0644]
sherman-aquarium/debian/docs [new file with mode: 0644]
sherman-aquarium/debian/install [new file with mode: 0644]
sherman-aquarium/debian/linda/shermans-aquarium [new file with mode: 0644]
sherman-aquarium/debian/lintian/shermans-aquarium [new file with mode: 0644]
sherman-aquarium/debian/manpages [new file with mode: 0644]
sherman-aquarium/debian/rules [new file with mode: 0755]
sherman-aquarium/debian/shermans.1 [new file with mode: 0644]
sherman-aquarium/debian/shermans_applet.1 [new file with mode: 0644]
sherman-aquarium/debian/watch [new file with mode: 0644]
sherman-aquarium/shermans.xml [new file with mode: 0644]
sherman-aquarium/shermans/Makefile [new file with mode: 0644]
sherman-aquarium/shermans/Makefile.in [new file with mode: 0644]
sherman-aquarium/shermans/aquarium.c [new file with mode: 0644]
sherman-aquarium/shermans/aquarium.h [new file with mode: 0644]
sherman-aquarium/shermans/background.c [new file with mode: 0644]
sherman-aquarium/shermans/background.h [new file with mode: 0644]
sherman-aquarium/shermans/bottom.c [new file with mode: 0644]
sherman-aquarium/shermans/bottom.h [new file with mode: 0644]
sherman-aquarium/shermans/bubble.c [new file with mode: 0644]
sherman-aquarium/shermans/bubble.h [new file with mode: 0644]
sherman-aquarium/shermans/clock.c [new file with mode: 0644]
sherman-aquarium/shermans/clock.h [new file with mode: 0644]
sherman-aquarium/shermans/date.c [new file with mode: 0644]
sherman-aquarium/shermans/date.h [new file with mode: 0644]
sherman-aquarium/shermans/defines.h [new file with mode: 0644]
sherman-aquarium/shermans/draw.c [new file with mode: 0644]
sherman-aquarium/shermans/draw.h [new file with mode: 0644]
sherman-aquarium/shermans/fish.c [new file with mode: 0644]
sherman-aquarium/shermans/fish.h [new file with mode: 0644]
sherman-aquarium/shermans/getopt.h [new file with mode: 0644]
sherman-aquarium/shermans/getopt1.c [new file with mode: 0644]
sherman-aquarium/shermans/grabscreen.c [new file with mode: 0644]
sherman-aquarium/shermans/grabscreen.h [new file with mode: 0644]
sherman-aquarium/shermans/images.c [new file with mode: 0644]
sherman-aquarium/shermans/leds.c [new file with mode: 0644]
sherman-aquarium/shermans/leds.h [new file with mode: 0644]
sherman-aquarium/shermans/matrix.c [new file with mode: 0644]
sherman-aquarium/shermans/matrix.h [new file with mode: 0644]
sherman-aquarium/shermans/over.c [new file with mode: 0644]
sherman-aquarium/shermans/over.h [new file with mode: 0644]
sherman-aquarium/shermans/plasma.c [new file with mode: 0644]
sherman-aquarium/shermans/plasma.h [new file with mode: 0644]
sherman-aquarium/shermans/pref.c [new file with mode: 0644]
sherman-aquarium/shermans/pref.h [new file with mode: 0644]
sherman-aquarium/shermans/screensaver.c [new file with mode: 0644]
sherman-aquarium/shermans/screensaver.h [new file with mode: 0644]
sherman-aquarium/shermans/settings.c [new file with mode: 0644]
sherman-aquarium/shermans/settings.h [new file with mode: 0644]
sherman-aquarium/shermans/soundeffects.c [new file with mode: 0644]
sherman-aquarium/shermans/soundeffects.h [new file with mode: 0644]
sherman-aquarium/shermans/status.h [new file with mode: 0644]
sherman-aquarium/shermans/status_darwin.c [new file with mode: 0644]
sherman-aquarium/shermans/status_darwin.h [new file with mode: 0644]
sherman-aquarium/shermans/status_freebsd.c [new file with mode: 0644]
sherman-aquarium/shermans/status_freebsd.h [new file with mode: 0644]
sherman-aquarium/shermans/status_linux.h [new file with mode: 0644]
sherman-aquarium/shermans/status_linux24.c [new file with mode: 0644]
sherman-aquarium/shermans/status_linux26.c [new file with mode: 0644]
sherman-aquarium/shermans/tetris.c [new file with mode: 0644]
sherman-aquarium/shermans/tetris.h [new file with mode: 0644]
sherman-aquarium/shermans/thermometer.c [new file with mode: 0644]
sherman-aquarium/shermans/thermometer.h [new file with mode: 0644]
sherman-aquarium/shermans/vroot.h [new file with mode: 0644]
sherman-aquarium/shermans/xmms_sn.c [new file with mode: 0644]
sherman-aquarium/shermans/xmms_sn.h [new file with mode: 0644]
sherman-aquarium/shermans_icon.png [new file with mode: 0644]

diff --git a/sherman-aquarium/AUTHORS b/sherman-aquarium/AUTHORS
new file mode 100644 (file)
index 0000000..0f2cba5
--- /dev/null
@@ -0,0 +1,55 @@
+
+Sherman's aquarium was written by Jonas Aaberg <cja@gmx.net> during
+2002-2005.
+
+ Code sources:
+---------------
+
+Timecop <timecop@japan.co.jp>   
+               - Many functions are based upon his wmfishmon applet              
+Mathias Meisfjordskar <mathiasm@ifi.uio.no>
+               - Code for reading led status.
+Ben Hines <bhines@alumni.ucsd.edu>
+               - Mac osx port and cpu load measurement code for osx.
+                 Makefile fixes.
+Brett Nash <brettn@cse.unsw.edu.au>
+               - Gnome 2 applet fixes and improvments. Also some
+                 grammer corrections.
+
+ Graphics:
+-----------
+Jim Toomey             - All fish graphics (www.slagoon.com)
+Tarzeau                - Themormeter and bubbles <tarzeau@space.ch>
+Mathias Meisfjordskar  - The led "lights" <mathiasm@ifi.uio.no>
+
+ Bugfixes:
+----------
+Stefan Schatzl <pulaski@gmx.net>
+               - Compiling problems and more
+Wladimir J. van der Laan <gnufnork@hetdigitalegat.nl>
+               - Patch for removing a bad "Floating Point Exception"
+Bodnar Istvan <bistvan@sliced.hu>
+               - Compiling problems on FreeBSD, testing of FreeBSD port and
+                 bug reports. And feature sudjections.
+Gerald Schuberth <count.zero@aon.at>
+               - Patches for avoiding warnings on Redhat systems.
+Michael Baron <michael.baron@bbsrc.ac.uk>
+               - Big/little endian fix.        
+
+ Translations:
+--------------
+Gerald Schuberth <count.zero@aon.at> 
+               - Some german translation.
+
+ Suggestions/Ideas/Helps/Nice emails ;-) :
+-------------------------------------------
+(I will add the names of all people that send a creative mail to me here.)
+Jordan Mack <cybermint@iname.com>              - Helped finding a bug.
+Matus Telgarsky <matusa@ultrasoul.com>         - For telling me how much
+                                                 he likes Sherman's aquarium.
+Onno Freringa <onno@solidcode.net>             - Feature sudjestion.
+Christian Fredrik Kalager Schaller <uraeus@gnome.org> - Feature sudjestion.                                              
+Fabio Stumbo <f.stumbo@unife.it>               - Found fvwm2 problems
+                                                 and unclear things in README.
+Michal Ambroz <rebus@seznam.cz>                 - Redhat .spec file.
diff --git a/sherman-aquarium/BUGS b/sherman-aquarium/BUGS
new file mode 100644 (file)
index 0000000..636d7d4
--- /dev/null
@@ -0,0 +1,4 @@
+
+ - Sound is not that syncronized with the fish actions.
+ - Tetris does not always follow size changes.     
+ - Tetris is kinda buggy sometimes.
\ No newline at end of file
diff --git a/sherman-aquarium/COPYING b/sherman-aquarium/COPYING
new file mode 100644 (file)
index 0000000..eeb586b
--- /dev/null
@@ -0,0 +1,340 @@
+                   GNU GENERAL PUBLIC LICENSE
+                      Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.
+     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+                           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
+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.
+
+  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.
+
+  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.
+
+  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
+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
+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
+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
+
+  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
+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
+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) 19yy  <name of author>
+
+    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
+
+
+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:
+
+    Gnomovision version 69, Copyright (C) 19yy name of author
+    Gnomovision 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.
diff --git a/sherman-aquarium/ChangeLog b/sherman-aquarium/ChangeLog
new file mode 100644 (file)
index 0000000..0d87976
--- /dev/null
@@ -0,0 +1,164 @@
+
+3.0.1 - 20th February 2005.
+    - Fixed compile problem with Linux 2.4 reported by yogib 
+      <zban@intermedia.net.pl>
+    - Fixed configure problem when you didn't have gai installed, but
+      has XMMS installed. (Both gtk 1.2 and 2.0 get included.)
+      Reported by Jozef Riha <zefo@seznam.cz> and others.
+    - Fixed applet initialization bug noticable sometimes with new gccs.
+       
+3.0.0 - 5th September 2004. 
+    - The current desktop can be used as background in screensaver mode.
+    - Sherman's aquarium now interacts with xscreensaver-demo nicely.
+    - Fish are now knowing about high aquariums.
+    - Bottom creatures shall not come flying.
+    - You can have comics on the background in screensaver mode. 
+      (some comics included)
+    - Fixed bug in plasma with heights >300.
+    - Tetris now seems to work..
+    - Matrix scroller bug finally fixed.
+    - Documentation updates.
+    - Thermometer now works with both Linux 2.4 and Linux 2.6
+    - Many minor tweeks and fixes.
+    - Lots of bugfixes
+    - The ChangeLog is incomplete!! (Again!)
+    
+3.0.0pre2 - 
+    - Added patch that solves endian problems for screensaver.
+    - Sound effects are quiet when in "over" mode.
+    - Screensaver support added, allthough abit buggy when selecting
+      from the xscreensaver-demo menu.
+    - The screensaver got xscreensaver configuration support.
+    - Fixed Gnome panel sizing bug caused by correcting bugs in gai.
+
+3.0.0pre1 - 
+    Not complete!
+    - Rebirth added.
+    - Thermometer pic is now ok.
+    - Thermometer can messure a lot of stuff.
+    - exploded fishes and eaten fished cooperated now.(Thanks to?)
+    - New size organization.
+    - Sherman's aquarium is splitted into:
+       Sherman's aquarium - Applet
+       Sherman's aquarium - Screensaver 
+    - Command line options are now completly removed.
+      You have to configure Sherman's aquarium via the preference menu.
+      It can be started by clicking on it with the right mouse button.
+      It works no matter if you use gnome or not.
+    - You can have a background shade between any two colours.
+    - Great parts are rewritten and the code is modulized.
+    - Code "prettification" and reorganization. Still alot to do.
+    - Uses now the "General Applet Interface Library" (GAI) for basic
+      wmapplet/dockapp and gnome2 applet routines. (Gnome 1.x is no
+      more supported.) 
+    - Removed some warnings on Redhat systems.(Thanks to Gerald Schuberth!)
+    - More plants and rocks.
+    - Megan added. 
+    - Fixed fvwm2 problem. (Thanks to Fabio Stumbo!)
+    - Fixed SDL problem that made Sherman's living on after quit and
+      eating alot of processor power.
+    - Made fish scared by the mouse pointer acting better. 
+    - No outputs in xscreensaver mode.
+    - Hiding mouse pointer when over applet option added.
+    - Matrix scroller is partly rewritten. (Bug fixed hopefully)
+    - Tetris with levels, score and highscore table is added.
+    - Added code for a plasma.
+    - Now it is possible to load and save settings without compile 
+      in gnome support. (Thanks to GAI.)
+    - Unnessecary configure options are removed.
+    - Added some different bottom colour shades.
+    - Bottom now possible option as applet.
+    - The scale of the bottom can be set.
+    - Fixed bug that made some fish sometimes come behind the moving
+      "bottom" creatures.
+    - Added more colours of the leds and maximum of four leds instead of
+      three. 
+    - Fish can have abit variable size, so two fish from the same
+      spiece don't have the same size.
+    - The speed of each fish variables alittle for the normal speed for
+      that spiece.
+    - Fixed a rounding up bug that could cause some fish get the images
+      of the moment animation somewhat wrong for some scales.
+    - Makefile dependency fixes.
+    - New feature can display XMMS(www.xmms.org) current song name.
+    - Added the original sound effects. Sean Maguire <maguire@mit.edu>
+      missed them. 
+      
+    
+
+2.2.0 - 31st August 2002
+    - Makefile & configure fixes.
+    - Swedish and German translation for the Gnome menu.
+      (But not yet for the preference window.)
+    - Fixed preference window and keyleds bug.
+    - Gnome 2 panel detection. Notice that gnome 2 applets must be started from
+      the panel.
+    - XScreenSaver is now supported! Finally!
+    - Internal changes makes it possible to run more than one instance at
+      the same time. (Screensaver and applet, for example.)
+    - Resize blowfish blow up action to correct size. Strangly it was two
+      time too big. 
+    - The blowfish now explodes and updates correctly in fullscreen.
+    - The pray gets eaten correctly now.
+    - You can have a seafloor(-f)in fullscreen mode now. 
+    - Some changes for SunOs. But still no thermometer code.
+    - New graphics taken from the Swedish version of Sherman's Lagoon.
+    - Added graphics includes plants and stones for the sea floor.
+    - Hawthorne and Bob the bottom dweller are added. They appear only in
+      fullscreen/xscreensaver mode.
+    - Added new command line option "-m" for activate the matrix scroller
+      for those that hasn't gnome installed.
+    - Changed solid blue to solid colour. Now you can choose any colour
+      you want instead.
+    
+2.1.1 - 20th July 2002
+    - Fixed bad bug making just a blue box under many window managers.
+    - FreeBSD port. (Hopefully it will work. Please mail me if otherwise!)
+    - Some loading speed ups.
+    - Adding fullscreen option -K, keep current resolution.
+    - Option --numfishes is changed to --numfish, since the plural of fish
+      is fish, not fishes.
+    - Some Gnome 2 fixes.
+    
+2.1.0 - 8th July 2002
+    - Gnome version 2.0.x support
+    - GTK+ version 2.0.x support
+    - Bug fixes (preference windows, automagical detection bug, and more.)
+    - Resizing speed ups.
+    - configure script instead of messy makefiles.
+    - Matrix scroller is now a valid option + fixing some matrix bugs.
+    - Better handeling of missing files when running as gnome applet
+    - New option. "-r" Reset settings. Default settings, if something
+      has gone wrong.
+    - Fullscreen("-l") using SDL. This is most for testing.
+      In the future it will become a screensaver.
+      
+2.0.1 - 23rd(late) June 2002
+    - Mac Os X port and thermometer code
+    - Fixing a floating point exception bug
+    - Some Makefile errors fixed.
+    - Documentation updates and some new sections
+    
+2.0 - 23rd(early) June 2002
+    - Name change to "Sherman's aquarium"
+    - Gnome panel applet version
+    - Prefrences window
+    - Remember your settings
+    - Scaling of fishes
+    - Size of window can be choosen.
+    - Choose your own background.
+    - ALOT of internal changes
+    - Automagical detection of window manager and gnome panel.
+    - Swordfish can make the blowfish explode
+    - Much better animation of all fishes.
+    - One big fish can eats a special kind of fish
+
+1.01 - 11th May 2002
+    - Minor bug fixes.
+    - New switches: -x and -y for selecting location on screen.
+                   -u for selecting number of bubbles.
+
+1.0 - 24th April 2002 (Public 4th May)
+    - First release.
+
+
diff --git a/sherman-aquarium/GNOME_shermans_appletApplet.server b/sherman-aquarium/GNOME_shermans_appletApplet.server
new file mode 100644 (file)
index 0000000..f64c080
--- /dev/null
@@ -0,0 +1,22 @@
+<oaf_info>
+       <oaf_server iid="OAFIID:GNOME_shermans_appletApplet_Factory" type="exe" location="/usr/bin/shermans_applet">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:Bonobo/GenericFactory:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="shermans_applet applet Factory"/>
+               <oaf_attribute name="description" type="string" value="Factory for shermans_applet applet"/>
+       </oaf_server>
+
+       <oaf_server iid="OAFIID:GNOME_shermans_appletApplet" type="factory" location="OAFIID:GNOME_shermans_appletApplet_Factory">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+                       <item value="IDL:Bonobo/Control:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="Sherman's aquarium"/>
+               <oaf_attribute name="description" type="string" value="Bringer of life."/>
+               <oaf_attribute name="panel:category" type="string" value="Amusements"/>
+               <oaf_attribute name="panel:icon" type="string" value="shermans_icon.png"/>
+       </oaf_server>
+</oaf_info>
diff --git a/sherman-aquarium/GNOME_shermans_appletApplet.server.in b/sherman-aquarium/GNOME_shermans_appletApplet.server.in
new file mode 100644 (file)
index 0000000..eb5de9a
--- /dev/null
@@ -0,0 +1,22 @@
+<oaf_info>
+       <oaf_server iid="OAFIID:GNOME_@APPLET_NAME@Applet_Factory" type="exe" location="@GNOMEDIR@/bin/@APPLET_NAME@">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:Bonobo/GenericFactory:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="@APPLET_NAME@ applet Factory"/>
+               <oaf_attribute name="description" type="string" value="Factory for @APPLET_NAME@ applet"/>
+       </oaf_server>
+
+       <oaf_server iid="OAFIID:GNOME_@APPLET_NAME@Applet" type="factory" location="OAFIID:GNOME_@APPLET_NAME@Applet_Factory">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+                       <item value="IDL:Bonobo/Control:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="@APPLET_NICE_NAME@"/>
+               <oaf_attribute name="description" type="string" value="@APPLET_DESCRIPTION_SHORT@"/>
+               <oaf_attribute name="panel:category" type="string" value="@APPLET_GROUP@"/>
+               <oaf_attribute name="panel:icon" type="string" value="@APPLET_NAME_ICON@"/>
+       </oaf_server>
+</oaf_info>
diff --git a/sherman-aquarium/HACKING b/sherman-aquarium/HACKING
new file mode 100644 (file)
index 0000000..b9fe9a6
--- /dev/null
@@ -0,0 +1,5 @@
+You are very welcome to add functions and change things in my code! 
+Please mail me any changes! Thanks and happy coding!
+
+
+
diff --git a/sherman-aquarium/INSTALL b/sherman-aquarium/INSTALL
new file mode 100644 (file)
index 0000000..97de0aa
--- /dev/null
@@ -0,0 +1,43 @@
+
+ Installation instructions for Sherman's aquarium
+--------------------------------------------------
+
+Quick installation:
+
+./configure
+make
+make install (become root might be required.)
+
+See XSCREENSAVER for howto install Sherman's aquarium as screensaver
+
+ Required libraries and programs
+---------------------------------
+
+The General Applet Interface Library (GAI) is required for applet
+support. You can get it at http://gai.sf.net
+
+SDL is required for Screensaver support. (www.libsdl.org)
+
+GTK+ v2.2.0 or later is required for everything.
+
+On some distributions, Like Redhat, the include headers are 
+sometimes not installed by default. If you believe that the
+configure script fails to detect some library that you are
+sure that you have installed, please make sure that you have
+install the "devel" part of that library too.
+
+
+ Supported Operative Systems and limitations
+----------------------------------------------
+All features are supported with Linux 2.4 and Linux 2.6.
+CPU load only is supported for FreeBSD and Mac OSX/Darwin.
+
+If you want to have more features for your favorite Unix system 
+and are prepared to do some testing, please don't hessitate to mail me!
+
+
+Any problems? I hope not. If you hit some, please mail me! 
+Jonas Aaberg <cja@gmx.net> (Please include the word Sherman in the subject)
+
+
+
diff --git a/sherman-aquarium/Makefile b/sherman-aquarium/Makefile
new file mode 100644 (file)
index 0000000..8aadd71
--- /dev/null
@@ -0,0 +1,12 @@
+
+# Makefile for Sherman's Aquarium 
+
+all:   
+       (cd shermans;make all)
+clean:
+       (cd shermans;make clean)
+       rm -f config.log config.status
+
+install:
+       (cd shermans;make install)
+.PHONY: all clean install
diff --git a/sherman-aquarium/Makefile.in b/sherman-aquarium/Makefile.in
new file mode 100644 (file)
index 0000000..8aadd71
--- /dev/null
@@ -0,0 +1,12 @@
+
+# Makefile for Sherman's Aquarium 
+
+all:   
+       (cd shermans;make all)
+clean:
+       (cd shermans;make clean)
+       rm -f config.log config.status
+
+install:
+       (cd shermans;make install)
+.PHONY: all clean install
diff --git a/sherman-aquarium/NEWS b/sherman-aquarium/NEWS
new file mode 100644 (file)
index 0000000..1e7f4d5
--- /dev/null
@@ -0,0 +1,2 @@
+
+See ChangeLog
\ No newline at end of file
diff --git a/sherman-aquarium/README b/sherman-aquarium/README
new file mode 100644 (file)
index 0000000..c6e7cc0
--- /dev/null
@@ -0,0 +1,67 @@
+
+ Sherman's aquarium - Applet v3.0.1
+====================================
+(Formly known as Aquarium applet)
+
+This is a wm(Window maker) applet(dockapp), Gnome 2 Panel Applet and
+a XscreenSaver "hack" that gives you an aquarium with some randomly 
+selected fishes that lives there. Well, to tell you the truth, you 
+can get some other strange sea animals in your aquarium too.
+It can display the status of alot of different things in various ways.
+
+The fishes are done by Jim Toomey, the author of the "Sherman's Lagoon"
+comics.
+
+
+Fish Images:
+------------
+
+The fish images are taken from a freeware windows screen saver by 
+Jim Toomey.(www.slagoon.com) He draws a really great cartoon strip 
+named "Sherman's lagoon". (You can ready a daily strip at his site,
+and in many news papers.)
+I have to point out that NO reverse engineering nor disassembling
+of the code was made in order to extract the fish images. I did 
+just look at the hex code and wrote a program that read the 
+interesting parts, and converted them to readable images.
+So the fish images are copyrighted by Jim Toomey, and released
+in his screensaver as freeware. 
+I've manage to get in contact with Jim Toomey and he told me
+he likes "Sherman's aquarium" and that it's ok that I use that
+name for my program. But he didn't give me permission to use
+his graphics, but neither did he tell me to remove his graphics,
+which I'm very thankfull for. (Jim, THANKS ALOT!!)
+
+
+History:
+--------
+
+I saw the "Sherman's lagoon" screensaver for Windows about 1997 or so.
+From the very start I wanted to have it for Linux too. Quite quick I 
+made a program that extracted the graphics and the sounds. Then I 
+tried to make a screensaver, but I  got stuck in gtk+/gdk problems 
+that I couldn't solve at that time.
+Then one day, years later, I played with the code Timecop's 
+wmfishmon code, and years later this is the result. 
+
+
+See ChangeLog for a more recent history.
+
+See the AUTHOR file for credits.
+
+
+If you enjoy this small program, please send me (Jonas Aaberg <cja@gmx.net>)
+an email. For every email I get, the chances that I add new features 
+and/or make other applets get larger. (Please include Sherman's 
+aquarium in the subject.)
+
+Patches, constructive critizism, extra features, sudjestions(good ones :-), 
+better graphics, pizzas,.. are very welcome! :-)
+
+If you need help with anything, don't hessitate to contact me! 
+
+Sherman's aquarium home is: http://aquariumapplet.sourceforge.net
+(Big thanks to the SF team for providing a home for Sherman's aquarium!)
+
+Have fun,
+    Jonas Aaberg <cja@gmx.net>
diff --git a/sherman-aquarium/README.gai b/sherman-aquarium/README.gai
new file mode 100644 (file)
index 0000000..1d50513
--- /dev/null
@@ -0,0 +1,17 @@
+
+This is the general readme for all applets that uses GAI.
+
+These options are recognized by the library:
+
+      --gai-debug-on          Stores debug info in /tmp/gai-debug-output.
+                              Notice that it eats some processor power.
+      --gai-debug-off         Turns off debug mode.
+      --gai-broken-wm         Lets all applets run as a normal program.
+      --gai-working-wm        Lets all applets run as
+                              dockapps/wmapplets.
+      --gai-list-settings     List current settings.
+      --gai-help              Shows this text. 
+                                                                                                                                                             
+The --gai-debug-on option should only be used by developers that
+suspects that there is something wrong with the library itself.
+                                                                                                                                                             
diff --git a/sherman-aquarium/TODO b/sherman-aquarium/TODO
new file mode 100644 (file)
index 0000000..befc359
--- /dev/null
@@ -0,0 +1,15 @@
+
+TODO:
+
+ - Add more features to leds. Like ping, tempeature, battery warning, cpu load level, sawp load level... 
+    - Be able to invert levels.
+ - Add more features to thermometer, battery level, cpu speed..
+ - Comic download.
+ - Comic next/prev.
+ - Comic storage.
+ - Internationalization.
+ - Teletext/web text scroller. (Not just XMMS)
+ - Background could change on differnet events.
+ - Surface a la wmbubble?
+ - Tetris backgrounds.
+
diff --git a/sherman-aquarium/XSCREENSAVER b/sherman-aquarium/XSCREENSAVER
new file mode 100644 (file)
index 0000000..f42105d
--- /dev/null
@@ -0,0 +1,85 @@
+
+ How to install Sherman's aquarium as a Xscreensaver hack
+==========================================================
+
+First make sure that you have libSDL 1.2.x (www.libsdl.org),
+xscreensaver (www.jwz.org/xscreensaver) and that you have compiled
+Sherman's aquarium with Screensaver support.
+(Notice that some distributions differes the library and the
+headers. So make sure you have installed the "devel" package
+of SDL, if you use such a distribution.)
+
+The rest of the text in this file assumes that you have a 
+working xscreensaver installation.
+
+If you have installed the screensaver part of Sherman's aquarium
+executing "shermans" will demostrate Sherman's aquarium.
+So try:
+
+shermans
+
+(Assuming that you have sherman's aquarium in your path)
+This will show you sherman's aquarium screensaver in window mode.
+
+Then go on and edit ~/.xscreensaver (If you don't have such a file,
+run xscreensaver-demo, it will generate one for you.)
+
+Find the line:
+--
+programs:
+--
+
+Insert after that line a new line that says:
+
+--
+"Sherman's aquarium" shermans -root \n\
+--
+
+Save the changes.
+
+Now you have to see if the Xscreensaver configuration XML file did
+end up correctly. Default installation path for GNU programs is
+/usr/local/, while program that comes with distributions nearly always
+is installed in /usr/
+So if you didn't give --prefix=somethingelse to "configure", the 
+Xscreensaver XML configuration file for Sherman's aquarium(shermans.xml) 
+did end up in:
+
+/usr/local/share/control-center/screensavers
+
+If "shermans.xml" is the only file there, the Xscreensaver is configured
+with another path. Maybe /usr/share/control-center/screensaver
+See if you have that directory, and if it contains a lot of .xml files
+then move the shermans.xml into that directory.
+
+If you can't find the directory, search for "ant.xml", which is a
+xscreensaver hack that is installed by default.
+
+Now it's time to configure Sherman's aquarium and the Xscreensaver.
+Run xscreensaver-demo. Click on the settings button to configure
+the apperence of Sherman's aquarium. If the settings window is
+empty, Xscreensaver can't find "shermans.xml" and if you can't
+find "Sherman's aquarium" among the Hacks, you might have done
+something wrong when you edited your ~/.xscreensaver file.
+
+I think you have to restart the Xscreensaver daemon when you change
+settings, but I might be wrong on that point.
+
+If you want to use "Current desktop as background", i.e. let the fish
+swim over your screen without changing the background, sometimes you
+have to click in the "Grab Desktop Images" checkbox in the "Advanced"
+menu in xscreensaver-demo (Just besides Display Modes) or else you
+might end up with an error message that says something like "Bad Access". 
+
+The comic strips that are included by default in the Sherman's Lagoon
+windows screensaver is included in Sherman's aquarium too and
+can normally be found in:
+
+/usr/share/pixmaps/shermans/strips/
+
+(When installed with --prefix=/usr)
+
+Any questions? Mail them to me, Jonas Aaberg <cja@gmx.net>
+Please include the word "Shermans" in the subject. Or else your
+mail might be considered as spam.
+
diff --git a/sherman-aquarium/aquarium/COPYING.graphics b/sherman-aquarium/aquarium/COPYING.graphics
new file mode 100644 (file)
index 0000000..d9b1649
--- /dev/null
@@ -0,0 +1,28 @@
+The license below applies to the fish images used in shermans-aquarium. 
+The license is available from:
+  http://www.slagoon.com/freeware/scrpc.html
+  
+The fish images are copyright (C) 2005 Jim Toomey.
+
+*******************************************************************************
+Redistribution and use in source and binary forms, with or without modification,
+are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice,
+this list of conditions and the following disclaimer in the documentation and/or
+other materials provided with the distribution. 
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
+ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
+ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
+*******************************************************************************
diff --git a/sherman-aquarium/aquarium/bottom/bigplant.png b/sherman-aquarium/aquarium/bottom/bigplant.png
new file mode 100644 (file)
index 0000000..08faa0d
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/bigplant.png differ
diff --git a/sherman-aquarium/aquarium/bottom/bottom1.png b/sherman-aquarium/aquarium/bottom/bottom1.png
new file mode 100644 (file)
index 0000000..b2c5be5
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/bottom1.png differ
diff --git a/sherman-aquarium/aquarium/bottom/bottom2.png b/sherman-aquarium/aquarium/bottom/bottom2.png
new file mode 100644 (file)
index 0000000..a245073
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/bottom2.png differ
diff --git a/sherman-aquarium/aquarium/bottom/bottom3.png b/sherman-aquarium/aquarium/bottom/bottom3.png
new file mode 100644 (file)
index 0000000..bd1418c
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/bottom3.png differ
diff --git a/sherman-aquarium/aquarium/bottom/octo1.png b/sherman-aquarium/aquarium/bottom/octo1.png
new file mode 100644 (file)
index 0000000..a608653
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/octo1.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant1.png b/sherman-aquarium/aquarium/bottom/plant1.png
new file mode 100644 (file)
index 0000000..4cc7e32
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant1.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant10.png b/sherman-aquarium/aquarium/bottom/plant10.png
new file mode 100644 (file)
index 0000000..21a83b4
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant10.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant2.png b/sherman-aquarium/aquarium/bottom/plant2.png
new file mode 100644 (file)
index 0000000..0d892ca
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant2.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant3.png b/sherman-aquarium/aquarium/bottom/plant3.png
new file mode 100644 (file)
index 0000000..3634110
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant3.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant4.png b/sherman-aquarium/aquarium/bottom/plant4.png
new file mode 100644 (file)
index 0000000..6fdd83d
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant4.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant5.png b/sherman-aquarium/aquarium/bottom/plant5.png
new file mode 100644 (file)
index 0000000..b8d7b4e
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant5.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant6.png b/sherman-aquarium/aquarium/bottom/plant6.png
new file mode 100644 (file)
index 0000000..d7c074d
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant6.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant7.png b/sherman-aquarium/aquarium/bottom/plant7.png
new file mode 100644 (file)
index 0000000..b0952e3
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant7.png differ
diff --git a/sherman-aquarium/aquarium/bottom/plant9.png b/sherman-aquarium/aquarium/bottom/plant9.png
new file mode 100644 (file)
index 0000000..08a760c
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/plant9.png differ
diff --git a/sherman-aquarium/aquarium/bottom/smallstone1.png b/sherman-aquarium/aquarium/bottom/smallstone1.png
new file mode 100644 (file)
index 0000000..45d3ab2
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/smallstone1.png differ
diff --git a/sherman-aquarium/aquarium/bottom/smallstone3.png b/sherman-aquarium/aquarium/bottom/smallstone3.png
new file mode 100644 (file)
index 0000000..4ae335d
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/smallstone3.png differ
diff --git a/sherman-aquarium/aquarium/bottom/stone1.png b/sherman-aquarium/aquarium/bottom/stone1.png
new file mode 100644 (file)
index 0000000..17599a2
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/stone1.png differ
diff --git a/sherman-aquarium/aquarium/bottom/stone2.png b/sherman-aquarium/aquarium/bottom/stone2.png
new file mode 100644 (file)
index 0000000..6c71349
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/stone2.png differ
diff --git a/sherman-aquarium/aquarium/bottom/stone3.png b/sherman-aquarium/aquarium/bottom/stone3.png
new file mode 100644 (file)
index 0000000..aa6c3c6
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/stone3.png differ
diff --git a/sherman-aquarium/aquarium/bottom/weirdplant.png b/sherman-aquarium/aquarium/bottom/weirdplant.png
new file mode 100644 (file)
index 0000000..f79e05f
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/weirdplant.png differ
diff --git a/sherman-aquarium/aquarium/bottom/weirdplant2.png b/sherman-aquarium/aquarium/bottom/weirdplant2.png
new file mode 100644 (file)
index 0000000..2093d27
Binary files /dev/null and b/sherman-aquarium/aquarium/bottom/weirdplant2.png differ
diff --git a/sherman-aquarium/aquarium/bubbles.png b/sherman-aquarium/aquarium/bubbles.png
new file mode 100644 (file)
index 0000000..b9cef28
Binary files /dev/null and b/sherman-aquarium/aquarium/bubbles.png differ
diff --git a/sherman-aquarium/aquarium/clock/date/figures.png b/sherman-aquarium/aquarium/clock/date/figures.png
new file mode 100644 (file)
index 0000000..18b9f96
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/date/figures.png differ
diff --git a/sherman-aquarium/aquarium/clock/date/months.png b/sherman-aquarium/aquarium/clock/date/months.png
new file mode 100644 (file)
index 0000000..3b167a2
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/date/months.png differ
diff --git a/sherman-aquarium/aquarium/clock/date/weekdays.png b/sherman-aquarium/aquarium/clock/date/weekdays.png
new file mode 100644 (file)
index 0000000..ad79fb4
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/date/weekdays.png differ
diff --git a/sherman-aquarium/aquarium/clock/digital/bigcolon.png b/sherman-aquarium/aquarium/clock/digital/bigcolon.png
new file mode 100644 (file)
index 0000000..1504cb1
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/digital/bigcolon.png differ
diff --git a/sherman-aquarium/aquarium/clock/digital/bigfigures.png b/sherman-aquarium/aquarium/clock/digital/bigfigures.png
new file mode 100644 (file)
index 0000000..377dd11
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/digital/bigfigures.png differ
diff --git a/sherman-aquarium/aquarium/clock/digital/smallcolon.png b/sherman-aquarium/aquarium/clock/digital/smallcolon.png
new file mode 100644 (file)
index 0000000..1c022dd
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/digital/smallcolon.png differ
diff --git a/sherman-aquarium/aquarium/clock/digital/smallfigures.png b/sherman-aquarium/aquarium/clock/digital/smallfigures.png
new file mode 100644 (file)
index 0000000..e951cfd
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/digital/smallfigures.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Eight.png b/sherman-aquarium/aquarium/clock/fuzzy/Eight.png
new file mode 100644 (file)
index 0000000..165e564
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Eight.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Eleven.png b/sherman-aquarium/aquarium/clock/fuzzy/Eleven.png
new file mode 100644 (file)
index 0000000..1a780b9
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Eleven.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Five.png b/sherman-aquarium/aquarium/clock/fuzzy/Five.png
new file mode 100644 (file)
index 0000000..6607e09
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Five.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Four.png b/sherman-aquarium/aquarium/clock/fuzzy/Four.png
new file mode 100644 (file)
index 0000000..c277392
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Four.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Half.png b/sherman-aquarium/aquarium/clock/fuzzy/Half.png
new file mode 100644 (file)
index 0000000..a615a01
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Half.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Nine.png b/sherman-aquarium/aquarium/clock/fuzzy/Nine.png
new file mode 100644 (file)
index 0000000..9b76bae
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Nine.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Oclock.png b/sherman-aquarium/aquarium/clock/fuzzy/Oclock.png
new file mode 100644 (file)
index 0000000..4b9239d
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Oclock.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/One.png b/sherman-aquarium/aquarium/clock/fuzzy/One.png
new file mode 100644 (file)
index 0000000..eb95994
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/One.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Past.png b/sherman-aquarium/aquarium/clock/fuzzy/Past.png
new file mode 100644 (file)
index 0000000..04351ae
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Past.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Quarter.png b/sherman-aquarium/aquarium/clock/fuzzy/Quarter.png
new file mode 100644 (file)
index 0000000..535b34f
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Quarter.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Seven.png b/sherman-aquarium/aquarium/clock/fuzzy/Seven.png
new file mode 100644 (file)
index 0000000..43bc203
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Seven.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Six.png b/sherman-aquarium/aquarium/clock/fuzzy/Six.png
new file mode 100644 (file)
index 0000000..2a762b7
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Six.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Ten.png b/sherman-aquarium/aquarium/clock/fuzzy/Ten.png
new file mode 100644 (file)
index 0000000..f8e42c5
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Ten.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Three.png b/sherman-aquarium/aquarium/clock/fuzzy/Three.png
new file mode 100644 (file)
index 0000000..64eba9f
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Three.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/To.png b/sherman-aquarium/aquarium/clock/fuzzy/To.png
new file mode 100644 (file)
index 0000000..fe6f264
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/To.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Twelve.png b/sherman-aquarium/aquarium/clock/fuzzy/Twelve.png
new file mode 100644 (file)
index 0000000..adfa845
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Twelve.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Twenty.png b/sherman-aquarium/aquarium/clock/fuzzy/Twenty.png
new file mode 100644 (file)
index 0000000..3650f66
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Twenty.png differ
diff --git a/sherman-aquarium/aquarium/clock/fuzzy/Two.png b/sherman-aquarium/aquarium/clock/fuzzy/Two.png
new file mode 100644 (file)
index 0000000..3076c83
Binary files /dev/null and b/sherman-aquarium/aquarium/clock/fuzzy/Two.png differ
diff --git a/sherman-aquarium/aquarium/leds/blue.png b/sherman-aquarium/aquarium/leds/blue.png
new file mode 100644 (file)
index 0000000..d4912a3
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/blue.png differ
diff --git a/sherman-aquarium/aquarium/leds/bluegreen.png b/sherman-aquarium/aquarium/leds/bluegreen.png
new file mode 100644 (file)
index 0000000..983c98c
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/bluegreen.png differ
diff --git a/sherman-aquarium/aquarium/leds/darkblue.png b/sherman-aquarium/aquarium/leds/darkblue.png
new file mode 100644 (file)
index 0000000..29a42ac
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/darkblue.png differ
diff --git a/sherman-aquarium/aquarium/leds/green.png b/sherman-aquarium/aquarium/leds/green.png
new file mode 100644 (file)
index 0000000..27a4453
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/green.png differ
diff --git a/sherman-aquarium/aquarium/leds/lightblue.png b/sherman-aquarium/aquarium/leds/lightblue.png
new file mode 100644 (file)
index 0000000..95ec492
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/lightblue.png differ
diff --git a/sherman-aquarium/aquarium/leds/orange.png b/sherman-aquarium/aquarium/leds/orange.png
new file mode 100644 (file)
index 0000000..386f4ac
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/orange.png differ
diff --git a/sherman-aquarium/aquarium/leds/pink.png b/sherman-aquarium/aquarium/leds/pink.png
new file mode 100644 (file)
index 0000000..c61dd74
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/pink.png differ
diff --git a/sherman-aquarium/aquarium/leds/red.png b/sherman-aquarium/aquarium/leds/red.png
new file mode 100644 (file)
index 0000000..1ae8cb4
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/red.png differ
diff --git a/sherman-aquarium/aquarium/leds/violet.png b/sherman-aquarium/aquarium/leds/violet.png
new file mode 100644 (file)
index 0000000..0e0cf9b
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/violet.png differ
diff --git a/sherman-aquarium/aquarium/leds/yellow.png b/sherman-aquarium/aquarium/leds/yellow.png
new file mode 100644 (file)
index 0000000..39fbf0c
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/yellow.png differ
diff --git a/sherman-aquarium/aquarium/leds/yellowgreen.png b/sherman-aquarium/aquarium/leds/yellowgreen.png
new file mode 100644 (file)
index 0000000..ad6204b
Binary files /dev/null and b/sherman-aquarium/aquarium/leds/yellowgreen.png differ
diff --git a/sherman-aquarium/aquarium/matrix1.png b/sherman-aquarium/aquarium/matrix1.png
new file mode 100644 (file)
index 0000000..45d9dde
Binary files /dev/null and b/sherman-aquarium/aquarium/matrix1.png differ
diff --git a/sherman-aquarium/aquarium/matrix2.png b/sherman-aquarium/aquarium/matrix2.png
new file mode 100644 (file)
index 0000000..09962e4
Binary files /dev/null and b/sherman-aquarium/aquarium/matrix2.png differ
diff --git a/sherman-aquarium/aquarium/sherman/bdweller.png b/sherman-aquarium/aquarium/sherman/bdweller.png
new file mode 100644 (file)
index 0000000..b193307
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/bdweller.png differ
diff --git a/sherman-aquarium/aquarium/sherman/blowfish.png b/sherman-aquarium/aquarium/sherman/blowfish.png
new file mode 100644 (file)
index 0000000..2c07822
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/blowfish.png differ
diff --git a/sherman-aquarium/aquarium/sherman/blowup.png b/sherman-aquarium/aquarium/sherman/blowup.png
new file mode 100644 (file)
index 0000000..502273c
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/blowup.png differ
diff --git a/sherman-aquarium/aquarium/sherman/eating.png b/sherman-aquarium/aquarium/sherman/eating.png
new file mode 100644 (file)
index 0000000..d570707
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/eating.png differ
diff --git a/sherman-aquarium/aquarium/sherman/ernest.png b/sherman-aquarium/aquarium/sherman/ernest.png
new file mode 100644 (file)
index 0000000..9df43a9
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/ernest.png differ
diff --git a/sherman-aquarium/aquarium/sherman/fillmore.png b/sherman-aquarium/aquarium/sherman/fillmore.png
new file mode 100644 (file)
index 0000000..731a47d
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/fillmore.png differ
diff --git a/sherman-aquarium/aquarium/sherman/fish1.png b/sherman-aquarium/aquarium/sherman/fish1.png
new file mode 100644 (file)
index 0000000..6e5b506
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/fish1.png differ
diff --git a/sherman-aquarium/aquarium/sherman/fish2.png b/sherman-aquarium/aquarium/sherman/fish2.png
new file mode 100644 (file)
index 0000000..f8cfee6
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/fish2.png differ
diff --git a/sherman-aquarium/aquarium/sherman/fish3.png b/sherman-aquarium/aquarium/sherman/fish3.png
new file mode 100644 (file)
index 0000000..1440ce9
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/fish3.png differ
diff --git a/sherman-aquarium/aquarium/sherman/fish4.png b/sherman-aquarium/aquarium/sherman/fish4.png
new file mode 100644 (file)
index 0000000..fbd5b31
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/fish4.png differ
diff --git a/sherman-aquarium/aquarium/sherman/fish5.png b/sherman-aquarium/aquarium/sherman/fish5.png
new file mode 100644 (file)
index 0000000..ecdce5a
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/fish5.png differ
diff --git a/sherman-aquarium/aquarium/sherman/fish6.png b/sherman-aquarium/aquarium/sherman/fish6.png
new file mode 100644 (file)
index 0000000..97519d9
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/fish6.png differ
diff --git a/sherman-aquarium/aquarium/sherman/hawthorne.png b/sherman-aquarium/aquarium/sherman/hawthorne.png
new file mode 100644 (file)
index 0000000..617cd7f
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/hawthorne.png differ
diff --git a/sherman-aquarium/aquarium/sherman/hunter.png b/sherman-aquarium/aquarium/sherman/hunter.png
new file mode 100644 (file)
index 0000000..a398739
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/hunter.png differ
diff --git a/sherman-aquarium/aquarium/sherman/lori.png b/sherman-aquarium/aquarium/sherman/lori.png
new file mode 100644 (file)
index 0000000..db3465f
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/lori.png differ
diff --git a/sherman-aquarium/aquarium/sherman/megan.png b/sherman-aquarium/aquarium/sherman/megan.png
new file mode 100644 (file)
index 0000000..81ff24a
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/megan.png differ
diff --git a/sherman-aquarium/aquarium/sherman/prey.png b/sherman-aquarium/aquarium/sherman/prey.png
new file mode 100644 (file)
index 0000000..1933cd8
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/prey.png differ
diff --git a/sherman-aquarium/aquarium/sherman/sherman.png b/sherman-aquarium/aquarium/sherman/sherman.png
new file mode 100644 (file)
index 0000000..d525be4
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/sherman.png differ
diff --git a/sherman-aquarium/aquarium/sherman/squid.png b/sherman-aquarium/aquarium/sherman/squid.png
new file mode 100644 (file)
index 0000000..4a6aa24
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/squid.png differ
diff --git a/sherman-aquarium/aquarium/sherman/swordfish.png b/sherman-aquarium/aquarium/sherman/swordfish.png
new file mode 100644 (file)
index 0000000..2d2d50a
Binary files /dev/null and b/sherman-aquarium/aquarium/sherman/swordfish.png differ
diff --git a/sherman-aquarium/aquarium/small_letters.png b/sherman-aquarium/aquarium/small_letters.png
new file mode 100644 (file)
index 0000000..47ee3a1
Binary files /dev/null and b/sherman-aquarium/aquarium/small_letters.png differ
diff --git a/sherman-aquarium/aquarium/sounds/README.SOUNDS b/sherman-aquarium/aquarium/sounds/README.SOUNDS
new file mode 100644 (file)
index 0000000..3b902a2
--- /dev/null
@@ -0,0 +1,17 @@
+
+The sound effects are copyrighted by Jim Toomey, and are 
+extracted from the screensaver "Sherman's Lagoon".
+
+The original sound files are in WAVE format, but since most
+people have a command line mp3 player and no command line wave
+file player, I've converted them to mp3s, using LAME 3.92.
+
+lame -m a --r3mix -q 9 -v -c -p --tt "Many bubbles" --tc \
+"Copyright by Jim Toomey" manybubbles.wav manybubbles.mp3
+
+For those of you that dislikes mp3s for various reaons
+and prefer oggs there are ogg files too.
+
+oggenc -q 7 -t "Prey death scream" -c "Copyright by Jim Toomey" \
+deathscream.wav
+
diff --git a/sherman-aquarium/aquarium/sounds/mp3/deathscream.mp3 b/sherman-aquarium/aquarium/sounds/mp3/deathscream.mp3
new file mode 100644 (file)
index 0000000..5aff267
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/mp3/deathscream.mp3 differ
diff --git a/sherman-aquarium/aquarium/sounds/mp3/explode.mp3 b/sherman-aquarium/aquarium/sounds/mp3/explode.mp3
new file mode 100644 (file)
index 0000000..40023ef
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/mp3/explode.mp3 differ
diff --git a/sherman-aquarium/aquarium/sounds/mp3/fewbubbles.mp3 b/sherman-aquarium/aquarium/sounds/mp3/fewbubbles.mp3
new file mode 100644 (file)
index 0000000..67d2e5c
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/mp3/fewbubbles.mp3 differ
diff --git a/sherman-aquarium/aquarium/sounds/mp3/manybubbles.mp3 b/sherman-aquarium/aquarium/sounds/mp3/manybubbles.mp3
new file mode 100644 (file)
index 0000000..76ca0b3
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/mp3/manybubbles.mp3 differ
diff --git a/sherman-aquarium/aquarium/sounds/ogg/deathscream.ogg b/sherman-aquarium/aquarium/sounds/ogg/deathscream.ogg
new file mode 100644 (file)
index 0000000..3563d40
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/ogg/deathscream.ogg differ
diff --git a/sherman-aquarium/aquarium/sounds/ogg/explode.ogg b/sherman-aquarium/aquarium/sounds/ogg/explode.ogg
new file mode 100644 (file)
index 0000000..957e72a
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/ogg/explode.ogg differ
diff --git a/sherman-aquarium/aquarium/sounds/ogg/fewbubbles.ogg b/sherman-aquarium/aquarium/sounds/ogg/fewbubbles.ogg
new file mode 100644 (file)
index 0000000..7a4d7c7
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/ogg/fewbubbles.ogg differ
diff --git a/sherman-aquarium/aquarium/sounds/ogg/manybubbles.ogg b/sherman-aquarium/aquarium/sounds/ogg/manybubbles.ogg
new file mode 100644 (file)
index 0000000..eda2d58
Binary files /dev/null and b/sherman-aquarium/aquarium/sounds/ogg/manybubbles.ogg differ
diff --git a/sherman-aquarium/aquarium/strips/comic1.gif b/sherman-aquarium/aquarium/strips/comic1.gif
new file mode 100644 (file)
index 0000000..f206e9a
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic1.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic10.gif b/sherman-aquarium/aquarium/strips/comic10.gif
new file mode 100644 (file)
index 0000000..f3c6686
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic10.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic11.gif b/sherman-aquarium/aquarium/strips/comic11.gif
new file mode 100644 (file)
index 0000000..1e9fc5c
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic11.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic12.gif b/sherman-aquarium/aquarium/strips/comic12.gif
new file mode 100644 (file)
index 0000000..5bb7d8f
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic12.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic13.gif b/sherman-aquarium/aquarium/strips/comic13.gif
new file mode 100644 (file)
index 0000000..350f209
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic13.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic14.gif b/sherman-aquarium/aquarium/strips/comic14.gif
new file mode 100644 (file)
index 0000000..c679de5
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic14.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic15.gif b/sherman-aquarium/aquarium/strips/comic15.gif
new file mode 100644 (file)
index 0000000..c4acf31
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic15.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic16.gif b/sherman-aquarium/aquarium/strips/comic16.gif
new file mode 100644 (file)
index 0000000..36559e3
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic16.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic17.gif b/sherman-aquarium/aquarium/strips/comic17.gif
new file mode 100644 (file)
index 0000000..3e17408
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic17.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic18.gif b/sherman-aquarium/aquarium/strips/comic18.gif
new file mode 100644 (file)
index 0000000..7a45cd7
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic18.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic19.gif b/sherman-aquarium/aquarium/strips/comic19.gif
new file mode 100644 (file)
index 0000000..1740460
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic19.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic2.gif b/sherman-aquarium/aquarium/strips/comic2.gif
new file mode 100644 (file)
index 0000000..a75990e
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic2.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic20.gif b/sherman-aquarium/aquarium/strips/comic20.gif
new file mode 100644 (file)
index 0000000..9517e41
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic20.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic21.gif b/sherman-aquarium/aquarium/strips/comic21.gif
new file mode 100644 (file)
index 0000000..5815bf4
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic21.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic22.gif b/sherman-aquarium/aquarium/strips/comic22.gif
new file mode 100644 (file)
index 0000000..f480a6e
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic22.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic23.gif b/sherman-aquarium/aquarium/strips/comic23.gif
new file mode 100644 (file)
index 0000000..cadd267
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic23.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic24.gif b/sherman-aquarium/aquarium/strips/comic24.gif
new file mode 100644 (file)
index 0000000..ed1c69d
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic24.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic25.gif b/sherman-aquarium/aquarium/strips/comic25.gif
new file mode 100644 (file)
index 0000000..88215bb
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic25.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic3.gif b/sherman-aquarium/aquarium/strips/comic3.gif
new file mode 100644 (file)
index 0000000..8022115
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic3.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic4.gif b/sherman-aquarium/aquarium/strips/comic4.gif
new file mode 100644 (file)
index 0000000..22c3ade
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic4.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic5.gif b/sherman-aquarium/aquarium/strips/comic5.gif
new file mode 100644 (file)
index 0000000..359123e
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic5.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic6.gif b/sherman-aquarium/aquarium/strips/comic6.gif
new file mode 100644 (file)
index 0000000..3c706f6
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic6.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic7.gif b/sherman-aquarium/aquarium/strips/comic7.gif
new file mode 100644 (file)
index 0000000..31305a6
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic7.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic8.gif b/sherman-aquarium/aquarium/strips/comic8.gif
new file mode 100644 (file)
index 0000000..4ebc8f1
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic8.gif differ
diff --git a/sherman-aquarium/aquarium/strips/comic9.gif b/sherman-aquarium/aquarium/strips/comic9.gif
new file mode 100644 (file)
index 0000000..90a5f25
Binary files /dev/null and b/sherman-aquarium/aquarium/strips/comic9.gif differ
diff --git a/sherman-aquarium/aquarium/tetris_figures.png b/sherman-aquarium/aquarium/tetris_figures.png
new file mode 100644 (file)
index 0000000..a43d134
Binary files /dev/null and b/sherman-aquarium/aquarium/tetris_figures.png differ
diff --git a/sherman-aquarium/aquarium/tetris_figures2.png b/sherman-aquarium/aquarium/tetris_figures2.png
new file mode 100644 (file)
index 0000000..c23e715
Binary files /dev/null and b/sherman-aquarium/aquarium/tetris_figures2.png differ
diff --git a/sherman-aquarium/aquarium/tetris_gameover.png b/sherman-aquarium/aquarium/tetris_gameover.png
new file mode 100644 (file)
index 0000000..93df37e
Binary files /dev/null and b/sherman-aquarium/aquarium/tetris_gameover.png differ
diff --git a/sherman-aquarium/aquarium/tetris_pieces.png b/sherman-aquarium/aquarium/tetris_pieces.png
new file mode 100644 (file)
index 0000000..b7f0444
Binary files /dev/null and b/sherman-aquarium/aquarium/tetris_pieces.png differ
diff --git a/sherman-aquarium/aquarium/tetris_status.png b/sherman-aquarium/aquarium/tetris_status.png
new file mode 100644 (file)
index 0000000..6557ad9
Binary files /dev/null and b/sherman-aquarium/aquarium/tetris_status.png differ
diff --git a/sherman-aquarium/aquarium/thermometer.png b/sherman-aquarium/aquarium/thermometer.png
new file mode 100644 (file)
index 0000000..cad2550
Binary files /dev/null and b/sherman-aquarium/aquarium/thermometer.png differ
diff --git a/sherman-aquarium/aquarium/water.png b/sherman-aquarium/aquarium/water.png
new file mode 100644 (file)
index 0000000..15f8275
Binary files /dev/null and b/sherman-aquarium/aquarium/water.png differ
diff --git a/sherman-aquarium/config.h b/sherman-aquarium/config.h
new file mode 100644 (file)
index 0000000..fe19bcf
--- /dev/null
@@ -0,0 +1,32 @@
+
+/* 
+   Generic config.h file for GAI applets.
+    
+   You don't have to use it for your applet, but a few things will be simpler. 
+
+   This file is autogenerated by the configure script.
+   So don't add things you want permanent here.
+*/
+#ifndef GAI_CONFIG_H
+#define GAI_CONFIG_H
+
+#include <gai/gai.h>
+
+#ifdef GAI_APPLET_DEFINES
+static GaiApplet applet_defines = {
+               "shermans_applet",
+               "3.0.1",
+               "Sherman's aquarium",
+               "Jonas Aaberg, <cja@gmx.net> 2002-2005. Graphics by Jim Toomey.",
+               "Program released under GNU GPL.\nMost graphics Copyrighted by Jim Toomey and is NOT under GNU GPL.",
+               "Sherman's aquarium is an applet with the\ncreatures from Jim Toomey's\nwonderful comic, Sherman's Lagoon\n(www.slagoon.com).",
+               "/usr/share/pixmaps/shermans_icon.png",
+               "/usr/share/pixmaps/shermans"
+};
+#endif
+#define LINUX
+#define IMAGE_PATH "/usr/share/pixmaps/shermans"
+#define APPLET_NAME "shermans_applet"
+#define APPLET_VERSION "3.0.1"
+
+#endif
diff --git a/sherman-aquarium/config.h.in b/sherman-aquarium/config.h.in
new file mode 100644 (file)
index 0000000..2154c7a
--- /dev/null
@@ -0,0 +1,32 @@
+
+/* 
+   Generic config.h file for GAI applets.
+    
+   You don't have to use it for your applet, but a few things will be simpler. 
+
+   @REMARK@
+   @REMARK2@
+*/
+#ifndef GAI_CONFIG_H
+#define GAI_CONFIG_H
+
+#include <gai/gai.h>
+
+#ifdef GAI_APPLET_DEFINES
+static GaiApplet applet_defines = {
+               "@APPLET_NAME@",
+               "@APPLET_VERSION@",
+               "@APPLET_NICE_NAME@",
+               "@APPLET_AUTHOR@",
+               "@APPLET_LICENSE@",
+               "@APPLET_DESCRIPTION@",
+               "@APPLET_ICON@",
+               "@APPLET_IMAGE_PATH@"
+};
+#endif
+#define @HOST@
+#define IMAGE_PATH "@APPLET_IMAGE_PATH@"
+#define APPLET_NAME "@APPLET_NAME@"
+#define APPLET_VERSION "@APPLET_VERSION@"
+@XMMS@
+#endif
diff --git a/sherman-aquarium/configure b/sherman-aquarium/configure
new file mode 100755 (executable)
index 0000000..ef81b00
--- /dev/null
@@ -0,0 +1,3744 @@
+#! /bin/sh
+# Guess values for system-dependent variables and create Makefiles.
+# Generated by GNU Autoconf 2.59.
+#
+# Copyright (C) 2003 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 Bourne compatible
+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+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+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
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; 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'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# 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
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  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
+
+       ;;
+  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_me: error: cannot find myself; rerun with an absolute path" >&2
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    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=.
+  for as_base in sh bash ksh sh5; do
+        case $as_dir in
+        /*)
+          if ("$as_dir/$as_base" -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+            CONFIG_SHELL=$as_dir/$as_base
+            export CONFIG_SHELL
+            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+          fi;;
+        esac
+       done
+done
+;;
+  esac
+
+  # 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 before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, 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
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' <$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\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 sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='     ' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+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$$.file
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# 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'"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS="  $as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+
+# 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`
+
+exec 6>&1
+
+#
+# Initializations.
+#
+ac_default_prefix=/usr/local
+ac_config_libobj_dir=.
+cross_compiling=no
+subdirs=
+MFLAGS=
+MAKEFLAGS=
+SHELL=${CONFIG_SHELL-/bin/sh}
+
+# Maximum number of lines to put in a shell here document.
+# This variable seems obsolete.  It should probably be removed, and
+# only ac_max_sed_lines should be used.
+: ${ac_max_here_lines=38}
+
+# Identity of this package.
+PACKAGE_NAME=
+PACKAGE_TARNAME=
+PACKAGE_VERSION=
+PACKAGE_STRING=
+PACKAGE_BUGREPORT=
+
+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 datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT APPLET_NAME APPLET_VERSION APPLET_NICE_NAME APPLET_AUTHOR APPLET_GROUP APPLET_NAME_ICON APPLET_IMAGES APPLET_DESCRIPTION_SHORT APPLET_DESCRIPTION APPLET_LICENSE HOST SYSTEM_SPECIFIC_LIBS STATUS PKGCONF GNOMEDIR DGAI GAI_CFLAGS GAI_LIBS APPLET INSTALL_APPLET INSTALL_GNOME INSTALL_PATH INSTALL_ROX ROX_PATH INSTALL_IMAGES APPLET_IMAGE_PATH APPLET_ICON SDLCONF GTK_LIBS GTK_CFLAGS INSTALL_SCREENSAVER SDL_CFLAGS SDL_LIBS SCREENSAVER XMMS_CONFIG XMMS_OBJ XMMS_CFLAGS XMMS_LIBS XMMS REMARK REMARK2 LIBOBJS LTLIBOBJS'
+ac_subst_files=''
+
+# 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.
+bindir='${exec_prefix}/bin'
+sbindir='${exec_prefix}/sbin'
+libexecdir='${exec_prefix}/libexec'
+datadir='${prefix}/share'
+sysconfdir='${prefix}/etc'
+sharedstatedir='${prefix}/com'
+localstatedir='${prefix}/var'
+libdir='${exec_prefix}/lib'
+includedir='${prefix}/include'
+oldincludedir='/usr/include'
+infodir='${prefix}/info'
+mandir='${prefix}/man'
+
+ac_prev=
+for ac_option
+do
+  # If the previous option needs an argument, assign it.
+  if test -n "$ac_prev"; then
+    eval "$ac_prev=\$ac_option"
+    ac_prev=
+    continue
+  fi
+
+  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
+
+  # Accept the important Cygnus configure options, so we can diagnose typos.
+
+  case $ac_option in
+
+  -bindir | --bindir | --bindi | --bind | --bin | --bi)
+    ac_prev=bindir ;;
+  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
+    bindir=$ac_optarg ;;
+
+  -build | --build | --buil | --bui | --bu)
+    ac_prev=build_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 | --data | --dat | --da)
+    ac_prev=datadir ;;
+  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
+  | --da=*)
+    datadir=$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" ;;
+
+  -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'`
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+      *) ac_optarg=yes ;;
+    esac
+    eval "enable_$ac_feature='$ac_optarg'" ;;
+
+  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
+  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
+  | --exec | --exe | --ex)
+    ac_prev=exec_prefix ;;
+  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
+  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
+  | --exec=* | --exe=* | --ex=*)
+    exec_prefix=$ac_optarg ;;
+
+  -gas | --gas | --ga | --g)
+    # Obsolete; use --with-gas.
+    with_gas=yes ;;
+
+  -help | --help | --hel | --he | -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 ;;
+
+  -includedir | --includedir | --includedi | --included | --include \
+  | --includ | --inclu | --incl | --inc)
+    ac_prev=includedir ;;
+  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
+  | --includ=* | --inclu=* | --incl=* | --inc=*)
+    includedir=$ac_optarg ;;
+
+  -infodir | --infodir | --infodi | --infod | --info | --inf)
+    ac_prev=infodir ;;
+  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
+    infodir=$ac_optarg ;;
+
+  -libdir | --libdir | --libdi | --libd)
+    ac_prev=libdir ;;
+  -libdir=* | --libdir=* | --libdi=* | --libd=*)
+    libdir=$ac_optarg ;;
+
+  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
+  | --libexe | --libex | --libe)
+    ac_prev=libexecdir ;;
+  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
+  | --libexe=* | --libex=* | --libe=*)
+    libexecdir=$ac_optarg ;;
+
+  -localstatedir | --localstatedir | --localstatedi | --localstated \
+  | --localstate | --localstat | --localsta | --localst \
+  | --locals | --local | --loca | --loc | --lo)
+    ac_prev=localstatedir ;;
+  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
+  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
+  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
+    localstatedir=$ac_optarg ;;
+
+  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
+    ac_prev=mandir ;;
+  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
+    mandir=$ac_optarg ;;
+
+  -nfp | --nfp | --nf)
+    # Obsolete; use --without-fp.
+    with_fp=no ;;
+
+  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
+  | --no-cr | --no-c | -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 ;;
+
+  -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'`
+    case $ac_option in
+      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
+      *) ac_optarg=yes ;;
+    esac
+    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; }; }
+    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
+    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 paths.
+for ac_var in exec_prefix prefix
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
+    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
+  esac
+done
+
+# Be sure to have absolute paths.
+for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
+             localstatedir libdir includedir oldincludedir infodir mandir
+do
+  eval ac_val=$`echo $ac_var`
+  case $ac_val in
+    [\\/$]* | ?:[\\/]* ) ;;
+    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
+   { (exit 1); exit 1; }; };;
+  esac
+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
+
+
+# Find the source files, if location was not specified.
+if test -z "$srcdir"; then
+  ac_srcdir_defaulted=yes
+  # Try the directory containing this script, then its parent.
+  ac_confdir=`(dirname "$0") 2>/dev/null ||
+$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
+  if test "$ac_srcdir_defaulted" = yes; then
+    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
+   { (exit 1); exit 1; }; }
+  else
+    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
+   { (exit 1); exit 1; }; }
+  fi
+fi
+(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
+  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
+   { (exit 1); exit 1; }; }
+srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
+ac_env_build_alias_set=${build_alias+set}
+ac_env_build_alias_value=$build_alias
+ac_cv_env_build_alias_set=${build_alias+set}
+ac_cv_env_build_alias_value=$build_alias
+ac_env_host_alias_set=${host_alias+set}
+ac_env_host_alias_value=$host_alias
+ac_cv_env_host_alias_set=${host_alias+set}
+ac_cv_env_host_alias_value=$host_alias
+ac_env_target_alias_set=${target_alias+set}
+ac_env_target_alias_value=$target_alias
+ac_cv_env_target_alias_set=${target_alias+set}
+ac_cv_env_target_alias_value=$target_alias
+ac_env_CC_set=${CC+set}
+ac_env_CC_value=$CC
+ac_cv_env_CC_set=${CC+set}
+ac_cv_env_CC_value=$CC
+ac_env_CFLAGS_set=${CFLAGS+set}
+ac_env_CFLAGS_value=$CFLAGS
+ac_cv_env_CFLAGS_set=${CFLAGS+set}
+ac_cv_env_CFLAGS_value=$CFLAGS
+ac_env_LDFLAGS_set=${LDFLAGS+set}
+ac_env_LDFLAGS_value=$LDFLAGS
+ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
+ac_cv_env_LDFLAGS_value=$LDFLAGS
+ac_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_env_CPPFLAGS_value=$CPPFLAGS
+ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
+ac_cv_env_CPPFLAGS_value=$CPPFLAGS
+
+#
+# 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 this package 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 \`..']
+
+_ACEOF
+
+  cat <<_ACEOF
+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]
+  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
+  --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]
+  --infodir=DIR          info documentation [PREFIX/info]
+  --mandir=DIR           man documentation [PREFIX/man]
+_ACEOF
+
+  cat <<\_ACEOF
+_ACEOF
+fi
+
+if test -n "$ac_init_help"; then
+
+  cat <<\_ACEOF
+
+Optional Features:
+  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
+  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
+  --disable-sdl                  Compile Sherman's aquarium without Screensaver support
+  --disable-gai                  Compile Sherman's aquarium without applet support
+
+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>
+  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
+              headers in a nonstandard directory <include dir>
+
+Use these variables to override the choices made by `configure' or to help
+it to find libraries and programs with nonstandard names/locations.
+
+_ACEOF
+fi
+
+if test "$ac_init_help" = "recursive"; then
+  # If there are subdirs, report their specific --help.
+  ac_popdir=`pwd`
+  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
+    test -d $ac_dir || continue
+    ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+  case "$ac_dir" in
+  .) ac_abs_builddir=`pwd`;;
+  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+  *) ac_abs_builddir=`pwd`/"$ac_dir";;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+  case ${ac_top_builddir}. in
+  .) ac_abs_top_builddir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+  case $ac_srcdir in
+  .) ac_abs_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+  case $ac_top_srcdir in
+  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+  esac;;
+esac
+
+    cd $ac_dir
+    # Check for guested configure; otherwise get Cygnus style 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
+    elif test -f $ac_srcdir/configure.ac ||
+          test -f $ac_srcdir/configure.in; then
+      echo
+      $ac_configure --help
+    else
+      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
+    fi
+    cd $ac_popdir
+  done
+fi
+
+test -n "$ac_init_help" && exit 0
+if $ac_init_version; then
+  cat <<\_ACEOF
+
+Copyright (C) 2003 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 0
+fi
+exec 5>config.log
+cat >&5 <<_ACEOF
+This file contains any messages produced by compilers while
+running configure, to aid debugging if configure makes a mistake.
+
+It was created by $as_me, which was
+generated by GNU Autoconf 2.59.  Invocation command line was
+
+  $ $0 $@
+
+_ACEOF
+{
+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`
+hostinfo               = `(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
+
+} >&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_sep=
+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_sep'$ac_arg'"
+      # Get rid of the leading space.
+      ac_sep=" "
+      ;;
+    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: Be sure not to use single quotes in there, as some shells,
+# such as our DU 5.0 friend, will then `close' the trap.
+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,
+{
+  (set) 2>&1 |
+    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      sed -n \
+       "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
+         s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
+      ;;
+    *)
+      sed -n \
+       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+}
+    echo
+
+    cat <<\_ASBOX
+## ----------------- ##
+## Output variables. ##
+## ----------------- ##
+_ASBOX
+    echo
+    for ac_var in $ac_subst_vars
+    do
+      eval ac_val=$`echo $ac_var`
+      echo "$ac_var='"'"'$ac_val'"'"'"
+    done | sort
+    echo
+
+    if test -n "$ac_subst_files"; then
+      cat <<\_ASBOX
+## ------------- ##
+## Output files. ##
+## ------------- ##
+_ASBOX
+      echo
+      for ac_var in $ac_subst_files
+      do
+       eval ac_val=$`echo $ac_var`
+       echo "$ac_var='"'"'$ac_val'"'"'"
+      done | sort
+      echo
+    fi
+
+    if test -s confdefs.h; then
+      cat <<\_ASBOX
+## ----------- ##
+## confdefs.h. ##
+## ----------- ##
+_ASBOX
+      echo
+      sed "/^$/d" confdefs.h | sort
+      echo
+    fi
+    test "$ac_signal" != 0 &&
+      echo "$as_me: caught signal $ac_signal"
+    echo "$as_me: exit $exit_status"
+  } >&5
+  rm -f core *.core &&
+  rm -rf 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 -rf conftest* confdefs.h
+# AIX cpp loses on an empty file, so make sure it contains at least a newline.
+echo >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 -z "$CONFIG_SITE"; then
+  if test "x$prefix" != xNONE; then
+    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
+  else
+    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
+  fi
+fi
+for ac_site_file in $CONFIG_SITE; do
+  if test -r "$ac_site_file"; then
+    { echo "$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 `(set) 2>&1 |
+              sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+APPLET_NAME="shermans_applet"
+
+APPLET_VERSION="3.0.1"
+
+APPLET_NICE_NAME="Sherman's aquarium"
+
+APPLET_AUTHOR="Jonas Aaberg, <cja@gmx.net> 2002-2005. Graphics by Jim Toomey."
+
+APPLET_GROUP="Amusements"
+
+APPLET_NAME_ICON="shermans_icon.png"
+
+APPLET_IMAGES="aquarium/*"
+
+APPLET_DESCRIPTION_SHORT="Bringer of life."
+
+APPLET_DESCRIPTION="Sherman's aquarium is an applet with the\ncreatures from Jim Toomey's\nwonderful comic, Sherman's Lagoon\n(www.slagoon.com)."
+
+APPLET_LICENSE="Program released under GNU GPL.\nMost graphics Copyrighted by Jim Toomey and is NOT under GNU GPL."
+
+APPLET_REQUIRES_GAI_VERSION="0.5.3"
+
+APPLET_XMMS=checkfor
+
+
+with_sdl=yes
+echo "$as_me:$LINENO: checking whether to try to include Screensaver support" >&5
+echo $ECHO_N "checking whether to try to include Screensaver support... $ECHO_C" >&6
+# Check whether --enable-sdl or --disable-sdl was given.
+if test "${enable_sdl+set}" = set; then
+  enableval="$enable_sdl"
+
+                    if test x$withval = xyes; then
+                       with_sdl=yes
+                    else
+                       with_sdl=no
+                    fi
+
+fi;
+if test x$with_sdl = xno; then
+   echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+else
+   echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+fi
+
+
+with_gai=yes
+echo "$as_me:$LINENO: checking whether to try to compile applet support " >&5
+echo $ECHO_N "checking whether to try to compile applet support ... $ECHO_C" >&6
+# Check whether --enable-gai or --disable-gai was given.
+if test "${enable_gai+set}" = set; then
+  enableval="$enable_gai"
+
+                    if test x$withval = xyes; then
+                       with_gai=yes
+                    else
+                       with_gai=no
+                    fi
+
+fi;
+if test x$with_gai = xno; then
+   echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+else
+   echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+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
+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 $as_executable_p "$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
+
+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 $as_executable_p "$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
+
+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
+
+  CC=$ac_ct_CC
+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 $as_executable_p "$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
+
+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 "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_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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_ac_ct_CC="cc"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+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
+
+  CC=$ac_ct_CC
+else
+  CC="$ac_cv_prog_CC"
+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 $as_executable_p "$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
+
+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
+  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 $as_executable_p "$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
+
+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
+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 $as_executable_p "$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
+
+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
+
+  CC=$ac_ct_CC
+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`
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
+  (eval $ac_compiler --version </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
+  (eval $ac_compiler -v </dev/null >&5) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }
+{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
+  (eval $ac_compiler -V </dev/null >&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[^ ]*//'`
+if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
+  (eval $ac_link_default) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  # Find the output, starting from the most likely.  This scheme is
+# not robust to junk in `.', hence go to wildcards (a.*) only as a last
+# resort.
+
+# Be careful to initialize this variable, since it used to be cached.
+# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
+ac_cv_exeext=
+# b.out is created by i960 compilers.
+for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
+do
+  test -f "$ac_file" || continue
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
+       ;;
+    conftest.$ac_ext )
+       # This is the source file.
+       ;;
+    [ab].out )
+       # We found the default executable, but exeext='' is most
+       # certainly right.
+       break;;
+    *.* )
+       ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+       # FIXME: I believe we export ac_cv_exeext for Libtool,
+       # but it would be cool to find out if it's true.  Does anybody
+       # maintain Libtool? --akim.
+       export ac_cv_exeext
+       break;;
+    * )
+       break;;
+  esac
+done
+else
+  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
+echo "$as_me:$LINENO: result: $ac_file" >&5
+echo "${ECHO_T}$ac_file" >&6
+
+# Check 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'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&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 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 { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&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 | *.o | *.obj ) ;;
+    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
+         export ac_cv_exeext
+         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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+  (eval $ac_compile) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; then
+  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
+  case $ac_file in
+    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
+    *) 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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
+        { ac_try='test -z "$ac_c_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; 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 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
+CFLAGS="-g"
+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
+  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 { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
+        { ac_try='test -z "$ac_c_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_g=yes
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+ac_cv_prog_cc_g=no
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+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 ANSI C" >&5
+echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
+if test "${ac_cv_prog_cc_stdc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  ac_cv_prog_cc_stdc=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 -std1 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 -std1.  */
+int osf4_cc_array ['\x00' == 0 ? 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
+# Don't try gcc -ansi; that turns off useful extensions and
+# breaks some systems' header files.
+# AIX                  -qlanglvl=ansi
+# Ultrix and OSF/1     -std1
+# HP-UX 10.20 and later        -Ae
+# HP-UX older versions -Aa -D_HPUX_SOURCE
+# SVR4                 -Xc -D__EXTENSIONS__
+for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
+do
+  CC="$ac_save_CC $ac_arg"
+  rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
+        { ac_try='test -z "$ac_c_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  ac_cv_prog_cc_stdc=$ac_arg
+break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext
+done
+rm -f conftest.$ac_ext conftest.$ac_objext
+CC=$ac_save_CC
+
+fi
+
+case "x$ac_cv_prog_cc_stdc" in
+  x|xno)
+    echo "$as_me:$LINENO: result: none needed" >&5
+echo "${ECHO_T}none needed" >&6 ;;
+  *)
+    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
+echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
+    CC="$CC $ac_cv_prog_cc_stdc" ;;
+esac
+
+# Some people use a C++ compiler to compile C.  Since we use `exit',
+# in C++ we need to declare it.  In case someone uses the same compiler
+# for both compiling C and C++ we need to have the C++ compiler decide
+# the declaration of exit, since it's the most demanding environment.
+cat >conftest.$ac_ext <<_ACEOF
+#ifndef __cplusplus
+  choke me
+#endif
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
+        { ac_try='test -z "$ac_c_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  for ac_declaration in \
+   '' \
+   'extern "C" void std::exit (int) throw (); using std::exit;' \
+   'extern "C" void std::exit (int); using std::exit;' \
+   'extern "C" void exit (int) throw ();' \
+   'extern "C" void exit (int);' \
+   'void exit (int);'
+do
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+#include <stdlib.h>
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
+        { ac_try='test -z "$ac_c_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  :
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+continue
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+  cat >conftest.$ac_ext <<_ACEOF
+/* confdefs.h.  */
+_ACEOF
+cat confdefs.h >>conftest.$ac_ext
+cat >>conftest.$ac_ext <<_ACEOF
+/* end confdefs.h.  */
+$ac_declaration
+int
+main ()
+{
+exit (42);
+  ;
+  return 0;
+}
+_ACEOF
+rm -f conftest.$ac_objext
+if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&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); } &&
+        { ac_try='test -z "$ac_c_werror_flag"
+                        || test ! -s conftest.err'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; } &&
+        { ac_try='test -s conftest.$ac_objext'
+  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  echo "$as_me:$LINENO: \$? = $ac_status" >&5
+  (exit $ac_status); }; }; then
+  break
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+done
+rm -f conftest*
+if test -n "$ac_declaration"; then
+  echo '#ifdef __cplusplus' >>confdefs.h
+  echo $ac_declaration      >>confdefs.h
+  echo '#endif'             >>confdefs.h
+fi
+
+else
+  echo "$as_me: failed program was:" >&5
+sed 's/^/| /' conftest.$ac_ext >&5
+
+fi
+rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
+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 operating system" >&5
+echo $ECHO_N "checking operating system... $ECHO_C" >&6
+OSTYPE=`uname -s`
+echo "$as_me:$LINENO: result: $OSTYPE" >&5
+echo "${ECHO_T}$OSTYPE" >&6
+HOST="UNKNOWN"
+STATUS=
+SYSTEM_SPECIFIC_LIBS=
+case $OSTYPE in
+
+     Linux)
+       HOST="LINUX"
+       MINOR=`uname -r | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)\(.*\)/\2/'`
+       if test x$MINOR = x4 ; then
+               STATUS="status_linux24.o"
+       else
+               STATUS="status_linux26.o"
+       fi
+       ;;
+     Darwin)
+        HOST="DARWIN"
+       STATUS="status_drawin.o"
+       ;;
+     FreeBSD)
+       HOST="FREEBSD"
+       STATUS="status_freebsd.o"
+       SYSTEM_SPECIFIC_LIBS="-lkvm"
+       ;;
+     OpenBSD)
+       HOST="OPENBSD"
+       ;;
+     NetBSD)
+        HOST="NETBSD"
+       ;;
+     SunOS)
+        HOST="SUNOS"
+       ;;
+esac
+
+
+
+
+INSTALL_APPLET=
+GAI=no
+APPLET=
+DGAI=
+FOUND_GAI_LIBS=no
+
+INSTALL_GNOME=
+GNOME=no
+
+
+if test x$with_gai = xyes ; then
+# Extract the first word of "pkg-config", so it can be a program name with args.
+set dummy pkg-config; 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_PKGCONF+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$PKGCONF"; then
+  ac_cv_prog_PKGCONF="$PKGCONF" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_PKGCONF="true"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+  test -z "$ac_cv_prog_PKGCONF" && ac_cv_prog_PKGCONF="false"
+fi
+fi
+PKGCONF=$ac_cv_prog_PKGCONF
+if test -n "$PKGCONF"; then
+  echo "$as_me:$LINENO: result: $PKGCONF" >&5
+echo "${ECHO_T}$PKGCONF" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+
+if $PKGCONF ; then
+    echo "$as_me:$LINENO: checking for gai" >&5
+echo $ECHO_N "checking for gai... $ECHO_C" >&6
+    if `pkg-config --exists gai`  ; then
+       echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+       GAI_CFLAGS=`pkg-config --cflags gai`
+       GAI_LIBS=`pkg-config --libs gai`
+       FOUND_GAI_LIBS=yes
+    else
+       echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+    fi
+else
+    { { echo "$as_me:$LINENO: error: \"can't find pkg-config!\"" >&5
+echo "$as_me: error: \"can't find pkg-config!\"" >&2;}
+   { (exit 1); exit 1; }; }
+fi
+
+if test x$FOUND_GAI_LIBS = xyes ; then
+
+   echo "$as_me:$LINENO: checking for gai version >= $APPLET_REQUIRES_GAI_VERSION" >&5
+echo $ECHO_N "checking for gai version >= $APPLET_REQUIRES_GAI_VERSION... $ECHO_C" >&6
+   if `pkg-config gai --atleast-version $APPLET_REQUIRES_GAI_VERSION` ; then
+      echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+      DGAI=-DGAI
+      GAI=yes
+      APPLET=shermans_applet
+      INSTALL_APPLET=install_applet
+   else
+      echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+      GAI=no
+   fi
+
+
+
+if test x$GAI = xyes ; then
+echo "$as_me:$LINENO: checking if gai is compiled with gnome support" >&5
+echo $ECHO_N "checking if gai is compiled with gnome support... $ECHO_C" >&6
+
+INSTALL_GNOME=
+GNOME_SERVER=
+
+if test `pkg-config gai --variable=gnome` = yes; then
+    echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+    GNOME=yes
+    echo "$as_me:$LINENO: checking for gnome prefix" >&5
+echo $ECHO_N "checking for gnome prefix... $ECHO_C" >&6
+    with_gnome_prefix=`(pkg-config --variable=prefix libpanelapplet-2.0) 2>/dev/null`
+    if test $? -ne 0; then
+       with_gnome_prefix='${prefix}'
+    fi
+    echo "$as_me:$LINENO: result: $with_gnome_prefix" >&5
+echo "${ECHO_T}$with_gnome_prefix" >&6
+
+    GNOMEDIR=$with_gnome_prefix
+    INSTALL_GNOME=install-gnome
+    INSTALL_PATH='$(GNOMEDIR)'
+
+    GNOMESERVER=`echo -n GNOME_$APPLET_NAME;echo -n "Applet.server"`
+    cat >$GNOMESERVER.in << EOF
+<oaf_info>
+       <oaf_server iid="OAFIID:GNOME_@APPLET_NAME@Applet_Factory" type="exe" location="@GNOMEDIR@/bin/@APPLET_NAME@">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:Bonobo/GenericFactory:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="@APPLET_NAME@ applet Factory"/>
+               <oaf_attribute name="description" type="string" value="Factory for @APPLET_NAME@ applet"/>
+       </oaf_server>
+
+       <oaf_server iid="OAFIID:GNOME_@APPLET_NAME@Applet" type="factory" location="OAFIID:GNOME_@APPLET_NAME@Applet_Factory">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+                       <item value="IDL:Bonobo/Control:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="@APPLET_NICE_NAME@"/>
+               <oaf_attribute name="description" type="string" value="@APPLET_DESCRIPTION_SHORT@"/>
+               <oaf_attribute name="panel:category" type="string" value="@APPLET_GROUP@"/>
+               <oaf_attribute name="panel:icon" type="string" value="@APPLET_NAME_ICON@"/>
+       </oaf_server>
+</oaf_info>
+EOF
+
+
+else
+    echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+    GNOME=no
+    if test x$prefix = xNONE ; then
+       GNOMEDIR=/usr/local/
+       INSTALL_PATH=/usr/local/
+    else
+       GNOMEDIR=$prefix
+       INSTALL_PATH=$prefix
+    fi
+fi
+
+
+fi
+
+
+
+
+ROX_APPRUN=
+ROX_APPINFO=
+INSTALL_ROX=
+ROX_PATH=
+echo "$as_me:$LINENO: checking if gai knows about the ROX panel" >&5
+echo $ECHO_N "checking if gai knows about the ROX panel... $ECHO_C" >&6
+if test `pkg-config gai --variable=rox` = yes; then
+    echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+    ROX_APPRUN=AppRun
+
+    cat >AppRun.in << EOF
+#!/bin/sh
+# Slightly modified by Jonas Aaberg <cja@gmx.net> to suit GAI applets.
+
+PROG=@APPLET_NAME@
+
+APP_DIR=\`dirname "\$0"\`
+APP_DIR=\`cd "\$APP_DIR";pwd\`; export APP_DIR
+
+BIN="\$APP_DIR/\$PROG"
+
+exec "\$BIN" --gai-rox "\$@"
+EOF
+
+    ROX_APPINFO=AppInfo.xml
+
+    cat >AppInfo.xml.in << EOF
+<?xml version="1.0"?>
+<AppInfo>
+  <Summary>@APPLET_DESCRIPTION_SHORT@</Summary>
+</AppInfo>
+
+EOF
+
+
+    INSTALL_ROX=install-rox
+    ROX_PATH=`pkg-config gai --variable=roxpath`
+    echo "$as_me:$LINENO: checking for ROX path" >&5
+echo $ECHO_N "checking for ROX path... $ECHO_C" >&6
+    echo "$as_me:$LINENO: result: $ROX_PATH" >&5
+echo "${ECHO_T}$ROX_PATH" >&6
+else
+    echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+
+fi
+
+fi
+
+
+if test x$GAI = xno ; then
+    if test x$prefix = xNONE ; then
+       GNOMEDIR=/usr/local/
+       INSTALL_PATH=/usr/local/
+    else
+       GNOMEDIR=$prefix
+       INSTALL_PATH=$prefix
+    fi
+fi
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+if test x$APPLET_IMAGES = x; then
+   INSTALL_IMAGES=
+else
+   INSTALL_IMAGES=install-images
+fi
+
+
+if test x$GNOME = xyes ; then
+   APPLET_IMAGE_PATH=$GNOMEDIR/share/pixmaps/shermans
+   APPLET_ICON=$GNOMEDIR/share/pixmaps/$APPLET_NAME_ICON
+else
+   if test x$prefix = xNONE ; then
+      APPLET_IMAGE_PATH=/usr/local/share/pixmaps/shermans
+      APPLET_ICON=/usr/local/share/pixmaps/$APPLET_NAME_ICON
+   else
+      APPLET_IMAGE_PATH=$prefix/share/pixmaps/shermans
+      APPLET_ICON=$prefix/share/pixmaps/$APPLET_NAME_ICON
+   fi
+fi
+
+
+
+
+
+SDL=no
+SCREENSAVER=
+SDL_CFLAGS=
+SDL_LIBS=
+INSTALL_SCREENSAVER=
+
+if test x$with_sdl = xyes ; then
+   # Extract the first word of "sdl-config", so it can be a program name with args.
+set dummy sdl-config; 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_SDLCONF+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$SDLCONF"; then
+  ac_cv_prog_SDLCONF="$SDLCONF" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_SDLCONF="true"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+  test -z "$ac_cv_prog_SDLCONF" && ac_cv_prog_SDLCONF="false"
+fi
+fi
+SDLCONF=$ac_cv_prog_SDLCONF
+if test -n "$SDLCONF"; then
+  echo "$as_me:$LINENO: result: $SDLCONF" >&5
+echo "${ECHO_T}$SDLCONF" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+
+   if $SDLCONF ; then
+      sdl_version=`sdl-config --version`
+      echo "$as_me:$LINENO: checking for SDL version ($sdl_version) >= 1.2.0" >&5
+echo $ECHO_N "checking for SDL version ($sdl_version) >= 1.2.0... $ECHO_C" >&6
+            SDL_MAJOR=`sdl-config --version | \
+                sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
+      SDL_MINOR=`sdl-config --version | \
+                sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
+      SDL_MICRO=`sdl-config --version | \
+                sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
+      SDL=yes
+
+      if test $SDL_MAJOR -eq 1 ; then
+        if test $SDL_MINOR -eq 2 ; then
+            SDL=yes;
+        else
+            SDL=no;
+         fi
+      else
+        SDL=no
+      fi
+
+      if test x$SDL = xyes ; then
+        SDL_CFLAGS=`sdl-config --cflags`
+        SDL_LIBS=`sdl-config --libs`
+        SCREENSAVER=shermans
+        INSTALL_SCREENSAVER=install_screensaver
+        echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+                echo "$as_me:$LINENO: checking for gtk+ version >= 2.2.0" >&5
+echo $ECHO_N "checking for gtk+ version >= 2.2.0... $ECHO_C" >&6
+        if `pkg-config gtk+-2.0 --atleast-version 2.2.0` ; then
+           echo "$as_me:$LINENO: result: yes" >&5
+echo "${ECHO_T}yes" >&6
+           GTK_CFLAGS=`pkg-config --cflags gtk+-2.0`
+           GTK_LIBS=`pkg-config --libs gtk+-2.0`
+
+
+         else
+           echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+           { { echo "$as_me:$LINENO: error: GTK+ v2.2.0 or later is needed for Sherman's aquarium!" >&5
+echo "$as_me: error: GTK+ v2.2.0 or later is needed for Sherman's aquarium!" >&2;}
+   { (exit 1); exit 1; }; }
+         fi
+      else
+        echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+      fi
+  fi
+
+fi
+
+
+
+
+
+
+
+
+
+
+XMMS=
+XMMS_CFLAGS=
+XMMS_LIBS=
+XMMS_OBJ=
+if test x$FOUND_GAI_LIBS = xyes ; then
+if test x$with_gai = xyes ; then
+if test x$APPLET_XMMS = xyes ; then
+   # Extract the first word of "xmms-config", so it can be a program name with args.
+set dummy xmms-config; 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_XMMS_CONFIG+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$XMMS_CONFIG"; then
+  ac_cv_prog_XMMS_CONFIG="$XMMS_CONFIG" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_XMMS_CONFIG="true"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+  test -z "$ac_cv_prog_XMMS_CONFIG" && ac_cv_prog_XMMS_CONFIG="false"
+fi
+fi
+XMMS_CONFIG=$ac_cv_prog_XMMS_CONFIG
+if test -n "$XMMS_CONFIG"; then
+  echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
+echo "${ECHO_T}$XMMS_CONFIG" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+
+   if $XMMS_CONFIG ; then
+      XMMS_CFLAGS=`xmms-config --cflags`
+      XMMS_LIBS=`xmms-config --libs`
+      XMMS="#define XMMS"
+   else
+      { { echo "$as_me:$LINENO: error: \"can't find xmms-config! XMMS installed?\"" >&5
+echo "$as_me: error: \"can't find xmms-config! XMMS installed?\"" >&2;}
+   { (exit 1); exit 1; }; }
+   fi
+fi
+if test x$APPLET_XMMS = xcheckfor ; then
+   # Extract the first word of "xmms-config", so it can be a program name with args.
+set dummy xmms-config; 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_XMMS_CONFIG+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  if test -n "$XMMS_CONFIG"; then
+  ac_cv_prog_XMMS_CONFIG="$XMMS_CONFIG" # 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 $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
+    ac_cv_prog_XMMS_CONFIG="true"
+    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
+    break 2
+  fi
+done
+done
+
+  test -z "$ac_cv_prog_XMMS_CONFIG" && ac_cv_prog_XMMS_CONFIG="false"
+fi
+fi
+XMMS_CONFIG=$ac_cv_prog_XMMS_CONFIG
+if test -n "$XMMS_CONFIG"; then
+  echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
+echo "${ECHO_T}$XMMS_CONFIG" >&6
+else
+  echo "$as_me:$LINENO: result: no" >&5
+echo "${ECHO_T}no" >&6
+fi
+
+
+   if $XMMS_CONFIG ; then
+      XMMS_CFLAGS=`xmms-config --cflags`
+      XMMS_LIBS=`xmms-config --libs`
+      XMMS="#define XMMS"
+      XMMS_OBJ="xmms_sn.o"
+   fi
+fi
+fi
+fi
+
+
+
+
+
+
+REMARK="This file is autogenerated by the configure script."
+REMARK2="So don't add things you want permanent here."
+
+
+
+
+                                                            ac_config_files="$ac_config_files $GNOMESERVER $ROX_APPRUN $ROX_APPINFO Makefile config.h shermans/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, don't put newlines in cache variables' values.
+# Ultrix sh set writes to stderr and can't be redirected directly,
+# and sets the high bit in the cache file unless we assign to the vars.
+{
+  (set) 2>&1 |
+    case `(ac_space=' '; set | grep ac_space) 2>&1` in
+    *ac_space=\ *)
+      # `set' does not quote correctly, so add quotes (double-quote
+      # substitution turns \\\\ into \\, and sed turns \\ into \).
+      sed -n \
+       "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 \
+       "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
+      ;;
+    esac;
+} |
+  sed '
+     t clear
+     : clear
+     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
+     t end
+     /^ac_cv_env/!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 "updating cache $cache_file"
+    cat confcache >$cache_file
+  else
+    echo "not updating unwritable cache $cache_file"
+  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}'
+
+# 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
+
+# Transform confdefs.h into DEFS.
+# Protect against shell expansion while executing Makefile rules.
+# Protect against Makefile macro expansion.
+#
+# If the first sed substitution is executed (which looks for macros that
+# take arguments), then we branch to the quote section.  Otherwise,
+# look for a macro that doesn't take arguments.
+cat >confdef2opt.sed <<\_ACEOF
+t clear
+: clear
+s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
+t quote
+s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
+t quote
+d
+: quote
+s,[     `~#$^&*(){}\\|;'"<>?],\\&,g
+s,\[,\\&,g
+s,\],\\&,g
+s,\$,$$,g
+p
+_ACEOF
+# We use echo to avoid assuming a particular line-breaking character.
+# The extra dot is to prevent the shell from consuming trailing
+# line-breaks from the sub-command output.  A line-break within
+# single-quotes doesn't work because, if this script is created in a
+# platform that uses two characters for line-breaks (e.g., DOS), tr
+# would break.
+ac_LF_and_DOT=`echo; echo .`
+DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
+rm -f confdef2opt.sed
+
+
+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_i=`echo "$ac_i" |
+        sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
+  # 2. Add them.
+  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
+  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
+done
+LIBOBJS=$ac_libobjs
+
+LTLIBOBJS=$ac_ltlibobjs
+
+
+
+: ${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 Bourne compatible
+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+"$@"}'='"$@"'
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+  set -o posix
+fi
+DUALCASE=1; export DUALCASE # for MKS sh
+
+# Support unset when possible.
+if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
+  as_unset=unset
+else
+  as_unset=false
+fi
+
+
+# Work around bugs in pre-3.0 UWIN ksh.
+$as_unset ENV MAIL MAILPATH
+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
+  fi
+done
+
+# Required to use basename.
+if expr a : '\(a\)' >/dev/null 2>&1; 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'`
+
+
+# PATH needs CR, and LINENO needs CR and PATH.
+# 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
+
+
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
+  # Find who we are.  Look in the path if we contain no path at all
+  # relative or not.
+  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
+
+       ;;
+  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_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
+echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
+   { (exit 1); exit 1; }; }
+  fi
+  case $CONFIG_SHELL in
+  '')
+    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=.
+  for as_base in sh bash ksh sh5; do
+        case $as_dir in
+        /*)
+          if ("$as_dir/$as_base" -c '
+  as_lineno_1=$LINENO
+  as_lineno_2=$LINENO
+  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
+  test "x$as_lineno_1" != "x$as_lineno_2" &&
+  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
+            $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
+            $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
+            CONFIG_SHELL=$as_dir/$as_base
+            export CONFIG_SHELL
+            exec "$CONFIG_SHELL" "$0" ${1+"$@"}
+          fi;;
+        esac
+       done
+done
+;;
+  esac
+
+  # 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 before each line; the second 'sed' does the real
+  # work.  The second script uses 'N' to pair each line-number line
+  # with the numbered line, 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
+  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
+  sed '=' <$as_myself |
+    sed '
+      N
+      s,$,-,
+      : loop
+      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
+      t loop
+      s,-$,,
+      s,^['$as_cr_digits']*\n,,
+    ' >$as_me.lineno &&
+  chmod +x $as_me.lineno ||
+    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
+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 sensible to this).
+  . ./$as_me.lineno
+  # Exit status is that of the last command.
+  exit
+}
+
+
+case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
+  *c*,-n*) ECHO_N= ECHO_C='
+' ECHO_T='     ' ;;
+  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
+  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
+esac
+
+if expr a : '\(a\)' >/dev/null 2>&1; then
+  as_expr=expr
+else
+  as_expr=false
+fi
+
+rm -f conf$$ conf$$.exe conf$$.file
+echo >conf$$.file
+if ln -s conf$$.file conf$$ 2>/dev/null; then
+  # We could just check for DJGPP; but this test a) works b) is more generic
+  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
+  if test -f conf$$.exe; then
+    # Don't use ln at all; we don't have any links
+    as_ln_s='cp -p'
+  else
+    as_ln_s='ln -s'
+  fi
+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$$.file
+
+if mkdir -p . 2>/dev/null; then
+  as_mkdir_p=:
+else
+  test -d ./-p && rmdir ./-p
+  as_mkdir_p=false
+fi
+
+as_executable_p="test -f"
+
+# 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'"
+
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+as_nl='
+'
+IFS="  $as_nl"
+
+# CDPATH.
+$as_unset CDPATH
+
+exec 6>&1
+
+# Open the log real soon, to keep \$[0] and so on meaningful, and to
+# report actual input values of CONFIG_FILES etc. instead of their
+# values after options handling.  Logging --version etc. is OK.
+exec 5>>config.log
+{
+  echo
+  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
+## Running $as_me. ##
+_ASBOX
+} >&5
+cat >&5 <<_CSEOF
+
+This file was extended by $as_me, which was
+generated by GNU Autoconf 2.59.  Invocation command line was
+
+  CONFIG_FILES    = $CONFIG_FILES
+  CONFIG_HEADERS  = $CONFIG_HEADERS
+  CONFIG_LINKS    = $CONFIG_LINKS
+  CONFIG_COMMANDS = $CONFIG_COMMANDS
+  $ $0 $@
+
+_CSEOF
+echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
+echo >&5
+_ACEOF
+
+# Files that config.status was made for.
+if test -n "$ac_config_files"; then
+  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_headers"; then
+  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_links"; then
+  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
+fi
+
+if test -n "$ac_config_commands"; then
+  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
+fi
+
+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, 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
+
+Configuration files:
+$config_files
+
+Report bugs to <bug-autoconf@gnu.org>."
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+ac_cs_version="\\
+config.status
+configured by $0, generated by GNU Autoconf 2.59,
+  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
+
+Copyright (C) 2003 Free Software Foundation, Inc.
+This config.status script is free software; the Free Software Foundation
+gives unlimited permission to copy, distribute and modify it."
+srcdir=$srcdir
+_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
+    ;;
+  *) # This is not an option, so the user has probably given explicit
+     # arguments.
+     ac_option=$1
+     ac_need_defaults=false;;
+  esac
+
+  case $ac_option in
+  # Handling of the options.
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
+    ac_cs_recheck=: ;;
+  --version | --vers* | -V )
+    echo "$ac_cs_version"; exit 0 ;;
+  --he | --h)
+    # Conflict between --help and --header
+    { { echo "$as_me:$LINENO: error: ambiguous option: $1
+Try \`$0 --help' for more information." >&5
+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 0 ;;
+  --debug | --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;;
+  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
+  | -silent | --silent | --silen | --sile | --sil | --si | --s)
+    ac_cs_silent=: ;;
+
+  # This is an error.
+  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
+Try \`$0 --help' for more information." >&5
+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" ;;
+
+  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 $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
+  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
+fi
+
+_ACEOF
+
+
+
+
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_config_target in $ac_config_targets
+do
+  case "$ac_config_target" in
+  # Handling of arguments.
+  "$GNOMESERVER" ) CONFIG_FILES="$CONFIG_FILES $GNOMESERVER" ;;
+  "$ROX_APPRUN" ) CONFIG_FILES="$CONFIG_FILES $ROX_APPRUN" ;;
+  "$ROX_APPINFO" ) CONFIG_FILES="$CONFIG_FILES $ROX_APPINFO" ;;
+  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+  "config.h" ) CONFIG_FILES="$CONFIG_FILES config.h" ;;
+  "shermans/Makefile" ) CONFIG_FILES="$CONFIG_FILES shermans/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
+fi
+
+# Have a temporary directory for convenience.  Make it in the build tree
+# simply because there is no reason to put it here, and in addition,
+# creating and moving files from /tmp can sometimes cause problems.
+# Create a temporary directory, and hook for its removal unless debugging.
+$debug ||
+{
+  trap 'exit_status=$?; rm -rf $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 -q "./confstatXXXXXX") 2>/dev/null` &&
+  test -n "$tmp" && test -d "$tmp"
+}  ||
+{
+  tmp=./confstat$$-$RANDOM
+  (umask 077 && mkdir $tmp)
+} ||
+{
+   echo "$me: cannot create a temporary directory in ." >&2
+   { (exit 1); exit 1; }
+}
+
+_ACEOF
+
+cat >>$CONFIG_STATUS <<_ACEOF
+
+#
+# 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
+  # Protect against being on the right side of a sed subst in config.status.
+  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
+   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
+s,@SHELL@,$SHELL,;t t
+s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
+s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
+s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
+s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
+s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
+s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
+s,@exec_prefix@,$exec_prefix,;t t
+s,@prefix@,$prefix,;t t
+s,@program_transform_name@,$program_transform_name,;t t
+s,@bindir@,$bindir,;t t
+s,@sbindir@,$sbindir,;t t
+s,@libexecdir@,$libexecdir,;t t
+s,@datadir@,$datadir,;t t
+s,@sysconfdir@,$sysconfdir,;t t
+s,@sharedstatedir@,$sharedstatedir,;t t
+s,@localstatedir@,$localstatedir,;t t
+s,@libdir@,$libdir,;t t
+s,@includedir@,$includedir,;t t
+s,@oldincludedir@,$oldincludedir,;t t
+s,@infodir@,$infodir,;t t
+s,@mandir@,$mandir,;t t
+s,@build_alias@,$build_alias,;t t
+s,@host_alias@,$host_alias,;t t
+s,@target_alias@,$target_alias,;t t
+s,@DEFS@,$DEFS,;t t
+s,@ECHO_C@,$ECHO_C,;t t
+s,@ECHO_N@,$ECHO_N,;t t
+s,@ECHO_T@,$ECHO_T,;t t
+s,@LIBS@,$LIBS,;t t
+s,@CC@,$CC,;t t
+s,@CFLAGS@,$CFLAGS,;t t
+s,@LDFLAGS@,$LDFLAGS,;t t
+s,@CPPFLAGS@,$CPPFLAGS,;t t
+s,@ac_ct_CC@,$ac_ct_CC,;t t
+s,@EXEEXT@,$EXEEXT,;t t
+s,@OBJEXT@,$OBJEXT,;t t
+s,@APPLET_NAME@,$APPLET_NAME,;t t
+s,@APPLET_VERSION@,$APPLET_VERSION,;t t
+s,@APPLET_NICE_NAME@,$APPLET_NICE_NAME,;t t
+s,@APPLET_AUTHOR@,$APPLET_AUTHOR,;t t
+s,@APPLET_GROUP@,$APPLET_GROUP,;t t
+s,@APPLET_NAME_ICON@,$APPLET_NAME_ICON,;t t
+s,@APPLET_IMAGES@,$APPLET_IMAGES,;t t
+s,@APPLET_DESCRIPTION_SHORT@,$APPLET_DESCRIPTION_SHORT,;t t
+s,@APPLET_DESCRIPTION@,$APPLET_DESCRIPTION,;t t
+s,@APPLET_LICENSE@,$APPLET_LICENSE,;t t
+s,@HOST@,$HOST,;t t
+s,@SYSTEM_SPECIFIC_LIBS@,$SYSTEM_SPECIFIC_LIBS,;t t
+s,@STATUS@,$STATUS,;t t
+s,@PKGCONF@,$PKGCONF,;t t
+s,@GNOMEDIR@,$GNOMEDIR,;t t
+s,@DGAI@,$DGAI,;t t
+s,@GAI_CFLAGS@,$GAI_CFLAGS,;t t
+s,@GAI_LIBS@,$GAI_LIBS,;t t
+s,@APPLET@,$APPLET,;t t
+s,@INSTALL_APPLET@,$INSTALL_APPLET,;t t
+s,@INSTALL_GNOME@,$INSTALL_GNOME,;t t
+s,@INSTALL_PATH@,$INSTALL_PATH,;t t
+s,@INSTALL_ROX@,$INSTALL_ROX,;t t
+s,@ROX_PATH@,$ROX_PATH,;t t
+s,@INSTALL_IMAGES@,$INSTALL_IMAGES,;t t
+s,@APPLET_IMAGE_PATH@,$APPLET_IMAGE_PATH,;t t
+s,@APPLET_ICON@,$APPLET_ICON,;t t
+s,@SDLCONF@,$SDLCONF,;t t
+s,@GTK_LIBS@,$GTK_LIBS,;t t
+s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
+s,@INSTALL_SCREENSAVER@,$INSTALL_SCREENSAVER,;t t
+s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
+s,@SDL_LIBS@,$SDL_LIBS,;t t
+s,@SCREENSAVER@,$SCREENSAVER,;t t
+s,@XMMS_CONFIG@,$XMMS_CONFIG,;t t
+s,@XMMS_OBJ@,$XMMS_OBJ,;t t
+s,@XMMS_CFLAGS@,$XMMS_CFLAGS,;t t
+s,@XMMS_LIBS@,$XMMS_LIBS,;t t
+s,@XMMS@,$XMMS,;t t
+s,@REMARK@,$REMARK,;t t
+s,@REMARK2@,$REMARK2,;t t
+s,@LIBOBJS@,$LIBOBJS,;t t
+s,@LTLIBOBJS@,$LTLIBOBJS,;t t
+CEOF
+
+_ACEOF
+
+  cat >>$CONFIG_STATUS <<\_ACEOF
+  # Split the substitutions into bite-sized pieces for seds with
+  # small command number limits, like on Digital OSF/1 and HP-UX.
+  ac_max_sed_lines=48
+  ac_sed_frag=1 # Number of current file.
+  ac_beg=1 # First line for current file.
+  ac_end=$ac_max_sed_lines # Line after last line for current file.
+  ac_more_lines=:
+  ac_sed_cmds=
+  while $ac_more_lines; do
+    if test $ac_beg -gt 1; then
+      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    else
+      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
+    fi
+    if test ! -s $tmp/subs.frag; then
+      ac_more_lines=false
+    else
+      # The purpose of the label and of the branching condition is to
+      # speed up the sed processing (if there are no `@' at all, there
+      # is no need to browse any of the substitutions).
+      # These are the two extra sed commands mentioned above.
+      (echo ':t
+  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
+      if test -z "$ac_sed_cmds"; then
+       ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
+      else
+       ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
+      fi
+      ac_sed_frag=`expr $ac_sed_frag + 1`
+      ac_beg=$ac_end
+      ac_end=`expr $ac_end + $ac_max_sed_lines`
+    fi
+  done
+  if test -z "$ac_sed_cmds"; then
+    ac_sed_cmds=cat
+  fi
+fi # test -n "$CONFIG_FILES"
+
+_ACEOF
+cat >>$CONFIG_STATUS <<\_ACEOF
+for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
+  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
+  case $ac_file in
+  - | *:- | *:-:* ) # input from stdin
+       cat >$tmp/stdin
+       ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
+       ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
+  * )   ac_file_in=$ac_file.in ;;
+  esac
+
+  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
+  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
+$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'`
+  { if $as_mkdir_p; then
+    mkdir -p "$ac_dir"
+  else
+    as_dir="$ac_dir"
+    as_dirs=
+    while test ! -d "$as_dir"; do
+      as_dirs="$as_dir $as_dirs"
+      as_dir=`(dirname "$as_dir") 2>/dev/null ||
+$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'`
+    done
+    test ! -n "$as_dirs" || mkdir $as_dirs
+  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
+echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
+   { (exit 1); exit 1; }; }; }
+
+  ac_builddir=.
+
+if test "$ac_dir" != .; then
+  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
+  # A "../" for each directory in $ac_dir_suffix.
+  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
+else
+  ac_dir_suffix= ac_top_builddir=
+fi
+
+case $srcdir in
+  .)  # No --srcdir option.  We are building in place.
+    ac_srcdir=.
+    if test -z "$ac_top_builddir"; then
+       ac_top_srcdir=.
+    else
+       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
+    fi ;;
+  [\\/]* | ?:[\\/]* )  # Absolute path.
+    ac_srcdir=$srcdir$ac_dir_suffix;
+    ac_top_srcdir=$srcdir ;;
+  *) # Relative path.
+    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
+    ac_top_srcdir=$ac_top_builddir$srcdir ;;
+esac
+
+# Do not use `cd foo && pwd` to compute absolute paths, because
+# the directories may not exist.
+case `pwd` in
+.) ac_abs_builddir="$ac_dir";;
+*)
+  case "$ac_dir" in
+  .) ac_abs_builddir=`pwd`;;
+  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
+  *) ac_abs_builddir=`pwd`/"$ac_dir";;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_builddir=${ac_top_builddir}.;;
+*)
+  case ${ac_top_builddir}. in
+  .) ac_abs_top_builddir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
+  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_srcdir=$ac_srcdir;;
+*)
+  case $ac_srcdir in
+  .) ac_abs_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
+  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
+  esac;;
+esac
+case $ac_abs_builddir in
+.) ac_abs_top_srcdir=$ac_top_srcdir;;
+*)
+  case $ac_top_srcdir in
+  .) ac_abs_top_srcdir=$ac_abs_builddir;;
+  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
+  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
+  esac;;
+esac
+
+
+
+  if test x"$ac_file" != x-; then
+    { echo "$as_me:$LINENO: creating $ac_file" >&5
+echo "$as_me: creating $ac_file" >&6;}
+    rm -f "$ac_file"
+  fi
+  # 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.  */
+  if test x"$ac_file" = x-; then
+    configure_input=
+  else
+    configure_input="$ac_file.  "
+  fi
+  configure_input=$configure_input"Generated from `echo $ac_file_in |
+                                    sed 's,.*/,,'` by configure."
+
+  # First look for the input files in the build tree, otherwise in the
+  # src tree.
+  ac_file_inputs=`IFS=:
+    for f in $ac_file_in; do
+      case $f in
+      -) echo $tmp/stdin ;;
+      [\\/$]*)
+        # Absolute (can't be DOS-style, as IFS=:)
+        test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+        echo "$f";;
+      *) # Relative
+        if test -f "$f"; then
+          # Build tree
+          echo "$f"
+        elif test -f "$srcdir/$f"; then
+          # Source tree
+          echo "$srcdir/$f"
+        else
+          # /dev/null tree
+          { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
+echo "$as_me: error: cannot find input file: $f" >&2;}
+   { (exit 1); exit 1; }; }
+        fi;;
+      esac
+    done` || { (exit 1); exit 1; }
+_ACEOF
+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,@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,@top_builddir@,$ac_top_builddir,;t t
+s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
+" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
+  rm -f $tmp/stdin
+  if test x"$ac_file" != x-; then
+    mv $tmp/out $ac_file
+  else
+    cat $tmp/out
+    rm -f $tmp/out
+  fi
+
+done
+_ACEOF
+
+cat >>$CONFIG_STATUS <<\_ACEOF
+
+{ (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 " Sherman's aquarium v$APPLET_VERSION"
+echo "==========================="
+echo " - Compile Sherman's aquarium - dockapp/wmapplet:       $GAI"
+echo " - Compile Sherman's aquarium - Gnome 2 Panel applet:   $GNOME"
+echo " - Compile Sherman's aquarium - Screensaver:            $SDL"
diff --git a/sherman-aquarium/configure.in b/sherman-aquarium/configure.in
new file mode 100644 (file)
index 0000000..8413c07
--- /dev/null
@@ -0,0 +1,473 @@
+dnl
+dnl Sherman's aquarium 3.0.1 configure script.
+dnl Written by Jonas Aaberg <cja@gmx.net> 2002-2005
+dnl
+dnl run autoconf to generate a configure script from this file.
+dnl
+
+AC_PREREQ(2.13)
+AC_INIT()
+
+dnl **************************************************************************
+dnl                 Change those things between the star lines.
+dnl ***************************************************************************
+
+dnl This is the name of your applet, low level. $(APPLET_NAME).c is the main
+dnl c file. 
+APPLET_NAME="shermans_applet"
+
+dnl The version of your applet
+APPLET_VERSION="3.0.1"
+
+dnl The display name in the gnome 2 menu and for the About box.
+APPLET_NICE_NAME="Sherman's aquarium"
+
+dnl Your name and email for the "Written by " field in the about box
+APPLET_AUTHOR="Jonas Aaberg, <cja@gmx.net> 2002-2005. Graphics by Jim Toomey."
+
+dnl Change the group. (This is just for gnome)
+dnl Valid groups are: 
+dnl "Accessories", "Amusements", "Internet", "Multimedia" and "Utility"
+APPLET_GROUP="Amusements"
+
+dnl The name file of the icon for the menu.
+APPLET_NAME_ICON="shermans_icon.png"
+
+dnl Images to install.
+APPLET_IMAGES="aquarium/*"
+
+dnl A one line description for the gnome menu.
+APPLET_DESCRIPTION_SHORT="Bringer of life."
+
+dnl This is the text displayed in the about box.
+APPLET_DESCRIPTION="Sherman's aquarium is an applet with the\ncreatures from Jim Toomey's\nwonderful comic, Sherman's Lagoon\n(www.slagoon.com)."
+
+dnl This is for the license line in the about box.
+APPLET_LICENSE="Program released under GNU GPL.\nMost graphics Copyrighted by Jim Toomey and is NOT under GNU GPL."
+
+dnl Version of GAI that is required
+APPLET_REQUIRES_GAI_VERSION="0.5.3"
+
+dnl Require XMMS (yes or no or checkfor)
+APPLET_XMMS=checkfor
+
+dnl ****************************************************************************
+
+with_sdl=yes
+AC_MSG_CHECKING(whether to try to include Screensaver support)
+AC_ARG_ENABLE(sdl, [  --disable-sdl              Compile Sherman's aquarium without Screensaver support],[
+                    if test x$withval = xyes; then
+                       with_sdl=yes
+                    else
+                       with_sdl=no
+                    fi
+])
+if test x$with_sdl = xno; then
+   AC_MSG_RESULT(no)
+else
+   AC_MSG_RESULT(yes)
+fi
+
+
+with_gai=yes
+AC_MSG_CHECKING(whether to try to compile applet support )
+AC_ARG_ENABLE(gai, [  --disable-gai              Compile Sherman's aquarium without applet support],[
+                    if test x$withval = xyes; then
+                       with_gai=yes
+                    else
+                       with_gai=no
+                    fi
+])
+if test x$with_gai = xno; then
+   AC_MSG_RESULT(no)
+else
+   AC_MSG_RESULT(yes)
+fi
+
+
+AC_PROG_CC
+AC_SUBST(APPLET_NAME)
+AC_SUBST(APPLET_VERSION)
+AC_SUBST(APPLET_NICE_NAME)
+AC_SUBST(APPLET_AUTHOR)
+AC_SUBST(APPLET_GROUP)
+AC_SUBST(APPLET_NAME_ICON)
+AC_SUBST(APPLET_IMAGES)
+AC_SUBST(APPLET_DESCRIPTION_SHORT)
+AC_SUBST(APPLET_DESCRIPTION)
+AC_SUBST(APPLET_LICENSE)
+
+dnl OS check
+
+AC_MSG_CHECKING(operating system)
+OSTYPE=`uname -s`
+AC_MSG_RESULT($OSTYPE)
+HOST="UNKNOWN"
+STATUS=
+SYSTEM_SPECIFIC_LIBS=
+case $OSTYPE in
+
+     Linux)
+       HOST="LINUX"
+       MINOR=`uname -r | sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)\(.*\)/\2/'`
+       if test x$MINOR = x4 ; then
+               STATUS="status_linux24.o"
+       else
+               STATUS="status_linux26.o"
+       fi
+       ;;
+     Darwin)
+        HOST="DARWIN"
+       STATUS="status_drawin.o"
+       ;;
+     FreeBSD)
+       HOST="FREEBSD"
+       STATUS="status_freebsd.o"
+       SYSTEM_SPECIFIC_LIBS="-lkvm"
+       ;;
+     OpenBSD)
+       HOST="OPENBSD"
+       ;;
+     NetBSD)
+        HOST="NETBSD"
+       ;;
+     SunOS)
+        HOST="SUNOS"
+       ;;
+esac
+AC_SUBST(HOST)
+AC_SUBST(SYSTEM_SPECIFIC_LIBS)
+AC_SUBST(STATUS)
+
+INSTALL_APPLET=
+GAI=no
+APPLET=
+DGAI=
+FOUND_GAI_LIBS=no
+
+INSTALL_GNOME=
+GNOME=no
+
+
+dnl gai
+if test x$with_gai = xyes ; then
+AC_CHECK_PROG(PKGCONF, pkg-config, true, false)
+
+if $PKGCONF ; then
+    AC_MSG_CHECKING(for gai)
+    if `pkg-config --exists gai`  ; then
+       AC_MSG_RESULT(yes)
+       GAI_CFLAGS=`pkg-config --cflags gai`
+       GAI_LIBS=`pkg-config --libs gai`
+       FOUND_GAI_LIBS=yes
+    else
+       AC_MSG_RESULT(no,
+GAI is needed for applet support! Please visit http://gai.sf.net)
+    fi
+else
+    AC_MSG_ERROR("can't find pkg-config!")
+fi
+
+dnl gai version
+if test x$FOUND_GAI_LIBS = xyes ; then
+
+   AC_MSG_CHECKING(for gai version >= $APPLET_REQUIRES_GAI_VERSION)
+   if `pkg-config gai --atleast-version $APPLET_REQUIRES_GAI_VERSION` ; then
+      AC_MSG_RESULT(yes)
+      DGAI=-DGAI
+      GAI=yes
+      APPLET=shermans_applet
+      INSTALL_APPLET=install_applet
+   else
+      AC_MSG_RESULT(no,
+      a newer version of GAI is needed! Please visit http://gai.sf.net)
+      GAI=no
+   fi
+
+
+
+dnl Gnome support
+if test x$GAI = xyes ; then
+AC_MSG_CHECKING(if gai is compiled with gnome support)
+
+INSTALL_GNOME=
+GNOME_SERVER=
+
+if test `pkg-config gai --variable=gnome` = yes; then
+    AC_MSG_RESULT(yes)
+    GNOME=yes
+    AC_MSG_CHECKING([for gnome prefix])
+    with_gnome_prefix=`(pkg-config --variable=prefix libpanelapplet-2.0) 2>/dev/null`
+    if test $? -ne 0; then
+       with_gnome_prefix='${prefix}'
+    fi
+    AC_MSG_RESULT([$with_gnome_prefix])
+
+    GNOMEDIR=$with_gnome_prefix
+    INSTALL_GNOME=install-gnome
+    INSTALL_PATH='$(GNOMEDIR)'
+    
+    GNOMESERVER=`echo -n GNOME_$APPLET_NAME;echo -n "Applet.server"`
+    cat >$GNOMESERVER.in << EOF
+<oaf_info>
+       <oaf_server iid="OAFIID:GNOME_@APPLET_NAME@Applet_Factory" type="exe" location="@GNOMEDIR@/bin/@APPLET_NAME@">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:Bonobo/GenericFactory:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="@APPLET_NAME@ applet Factory"/>
+               <oaf_attribute name="description" type="string" value="Factory for @APPLET_NAME@ applet"/>
+       </oaf_server>
+
+       <oaf_server iid="OAFIID:GNOME_@APPLET_NAME@Applet" type="factory" location="OAFIID:GNOME_@APPLET_NAME@Applet_Factory">
+               <oaf_attribute name="repo_ids" type="stringv">
+                       <item value="IDL:GNOME/Vertigo/PanelAppletShell:1.0"/>
+                       <item value="IDL:Bonobo/Control:1.0"/>
+                       <item value="IDL:Bonobo/Unknown:1.0"/>
+               </oaf_attribute>
+               <oaf_attribute name="name" type="string" value="@APPLET_NICE_NAME@"/>
+               <oaf_attribute name="description" type="string" value="@APPLET_DESCRIPTION_SHORT@"/>
+               <oaf_attribute name="panel:category" type="string" value="@APPLET_GROUP@"/>
+               <oaf_attribute name="panel:icon" type="string" value="@APPLET_NAME_ICON@"/>
+       </oaf_server>
+</oaf_info>
+EOF
+
+
+else
+    AC_MSG_RESULT(no)
+    GNOME=no
+    if test x$prefix = xNONE ; then
+       GNOMEDIR=/usr/local/
+       INSTALL_PATH=/usr/local/
+    else
+       GNOMEDIR=$prefix
+       INSTALL_PATH=$prefix
+    fi
+fi 
+
+
+fi
+
+AC_SUBST(GNOMEDIR)
+
+
+ROX_APPRUN=
+ROX_APPINFO=
+INSTALL_ROX=
+ROX_PATH=
+dnl ROX
+AC_MSG_CHECKING(if gai knows about the ROX panel)
+if test `pkg-config gai --variable=rox` = yes; then
+    AC_MSG_RESULT(yes)
+    ROX_APPRUN=AppRun
+
+    cat >AppRun.in << EOF
+#!/bin/sh
+# Slightly modified by Jonas Aaberg <cja@gmx.net> to suit GAI applets.
+
+PROG=@APPLET_NAME@
+
+APP_DIR=\`dirname "\$0"\`
+APP_DIR=\`cd "\$APP_DIR";pwd\`; export APP_DIR
+
+BIN="\$APP_DIR/\$PROG"
+
+exec "\$BIN" --gai-rox "\$@"
+EOF
+
+    ROX_APPINFO=AppInfo.xml
+
+    cat >AppInfo.xml.in << EOF
+<?xml version="1.0"?>
+<AppInfo>
+  <Summary>@APPLET_DESCRIPTION_SHORT@</Summary>
+</AppInfo>
+
+EOF
+
+
+    INSTALL_ROX=install-rox
+    ROX_PATH=`pkg-config gai --variable=roxpath`
+    AC_MSG_CHECKING(for ROX path)
+    AC_MSG_RESULT($ROX_PATH)
+else
+    AC_MSG_RESULT(no)
+fi
+
+
+dnl endif gai lib not found
+fi
+
+dnl endif with gai 
+fi
+
+
+if test x$GAI = xno ; then
+    if test x$prefix = xNONE ; then
+       GNOMEDIR=/usr/local/
+       INSTALL_PATH=/usr/local/
+    else
+       GNOMEDIR=$prefix
+       INSTALL_PATH=$prefix
+    fi
+fi 
+
+
+AC_SUBST(DGAI)
+AC_SUBST(GAI_CFLAGS)
+AC_SUBST(GAI_LIBS)
+AC_SUBST(APPLET)
+AC_SUBST(INSTALL_APPLET)
+AC_SUBST(INSTALL_GNOME)
+AC_SUBST(INSTALL_PATH)
+
+
+
+AC_SUBST(INSTALL_ROX)
+AC_SUBST(ROX_PATH)
+
+
+
+dnl images
+if test x$APPLET_IMAGES = x; then
+   INSTALL_IMAGES=
+else
+   INSTALL_IMAGES=install-images
+fi
+AC_SUBST(INSTALL_IMAGES)
+
+dnl Setup image path and icon
+if test x$GNOME = xyes ; then
+   APPLET_IMAGE_PATH=$GNOMEDIR/share/pixmaps/shermans
+   APPLET_ICON=$GNOMEDIR/share/pixmaps/$APPLET_NAME_ICON
+else
+   if test x$prefix = xNONE ; then
+      APPLET_IMAGE_PATH=/usr/local/share/pixmaps/shermans
+      APPLET_ICON=/usr/local/share/pixmaps/$APPLET_NAME_ICON
+   else
+      APPLET_IMAGE_PATH=$prefix/share/pixmaps/shermans
+      APPLET_ICON=$prefix/share/pixmaps/$APPLET_NAME_ICON
+   fi
+fi
+
+AC_SUBST(APPLET_IMAGE_PATH)
+AC_SUBST(APPLET_ICON)
+
+
+dnl SDL
+SDL=no
+SCREENSAVER=
+SDL_CFLAGS=
+SDL_LIBS=
+INSTALL_SCREENSAVER=
+
+if test x$with_sdl = xyes ; then
+   AC_CHECK_PROG(SDLCONF, sdl-config, true, false)
+
+   if $SDLCONF ; then
+      sdl_version=`sdl-config --version`
+      AC_MSG_CHECKING([for SDL version ($sdl_version) >= 1.2.0])
+      dnl copied from yawmppp that copied it from gtk+'s aclocal.m4. These guys must love sed
+      SDL_MAJOR=`sdl-config --version | \
+                sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
+      SDL_MINOR=`sdl-config --version | \
+                sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
+      SDL_MICRO=`sdl-config --version | \
+                sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
+      SDL=yes
+
+      if test $SDL_MAJOR -eq 1 ; then
+        if test $SDL_MINOR -eq 2 ; then
+            SDL=yes;
+        else
+            SDL=no;
+         fi      
+      else
+        SDL=no
+      fi   
+
+      if test x$SDL = xyes ; then
+        SDL_CFLAGS=`sdl-config --cflags`
+        SDL_LIBS=`sdl-config --libs`
+        SCREENSAVER=shermans
+        INSTALL_SCREENSAVER=install_screensaver
+        AC_MSG_RESULT(yes)
+        dnl gtk+ v2.2.x
+        AC_MSG_CHECKING(for gtk+ version >= 2.2.0)
+        if `pkg-config gtk+-2.0 --atleast-version 2.2.0` ; then
+           AC_MSG_RESULT(yes)
+           GTK_CFLAGS=`pkg-config --cflags gtk+-2.0`
+           GTK_LIBS=`pkg-config --libs gtk+-2.0`
+           AC_SUBST(GTK_LIBS)
+           AC_SUBST(GTK_CFLAGS)
+         else
+           AC_MSG_RESULT(no)
+           AC_MSG_ERROR(GTK+ v2.2.0 or later is needed for Sherman's aquarium!)
+         fi
+      else
+        AC_MSG_RESULT(no)
+      fi
+  fi
+
+fi
+
+AC_SUBST(GAI_CFLAGS)
+AC_SUBST(GAI_LIBS)
+AC_SUBST(APPLET)
+AC_SUBST(INSTALL_SCREENSAVER)
+
+AC_SUBST(SDL_CFLAGS)
+AC_SUBST(SDL_LIBS)
+AC_SUBST(SCREENSAVER)
+
+dnl XMMS
+XMMS=
+XMMS_CFLAGS=
+XMMS_LIBS=
+XMMS_OBJ=
+if test x$FOUND_GAI_LIBS = xyes ; then
+if test x$with_gai = xyes ; then
+if test x$APPLET_XMMS = xyes ; then
+   AC_CHECK_PROG(XMMS_CONFIG, xmms-config, true, false)
+
+   if $XMMS_CONFIG ; then
+      XMMS_CFLAGS=`xmms-config --cflags`
+      XMMS_LIBS=`xmms-config --libs`
+      XMMS="#define XMMS"
+   else
+      AC_MSG_ERROR("can't find xmms-config! XMMS installed?")
+   fi
+fi
+if test x$APPLET_XMMS = xcheckfor ; then
+   AC_CHECK_PROG(XMMS_CONFIG, xmms-config, true, false)
+
+   if $XMMS_CONFIG ; then
+      XMMS_CFLAGS=`xmms-config --cflags`
+      XMMS_LIBS=`xmms-config --libs`
+      XMMS="#define XMMS"
+      XMMS_OBJ="xmms_sn.o"
+   fi
+fi
+fi
+fi
+
+AC_SUBST(XMMS_OBJ)
+AC_SUBST(XMMS_CFLAGS)
+AC_SUBST(XMMS_LIBS)
+AC_SUBST(XMMS)
+
+REMARK="This file is autogenerated by the configure script."
+REMARK2="So don't add things you want permanent here."
+AC_SUBST(REMARK)
+AC_SUBST(REMARK2)
+
+
+AC_OUTPUT($GNOMESERVER $ROX_APPRUN $ROX_APPINFO Makefile config.h shermans/Makefile)
+
+echo
+echo " Sherman's aquarium v$APPLET_VERSION"
+echo "==========================="
+echo " - Compile Sherman's aquarium - dockapp/wmapplet:       $GAI"
+echo " - Compile Sherman's aquarium - Gnome 2 Panel applet:   $GNOME"
+echo " - Compile Sherman's aquarium - Screensaver:            $SDL"
diff --git a/sherman-aquarium/debian/changelog b/sherman-aquarium/debian/changelog
new file mode 100644 (file)
index 0000000..e0b7f06
--- /dev/null
@@ -0,0 +1,38 @@
+shermans-aquarium (3.0.1-2) unstable; urgency=low
+
+  * Fix location for xscreensaver config file shermans.xml 
+    (closes: #431496).
+  
+  * Rebuild with fixed libgai to remove dependencies on gtk1.2 and xmms
+    (closes: #391015, #456694).
+  
+  * Fix debian/watch file (closes: #449794).
+
+ -- Jose M. Moya <josem@debian.org>  Mon, 21 Jan 2008 10:33:37 +0100
+
+shermans-aquarium (3.0.1-1) unstable; urgency=low
+
+  * New upstream release (closes: #293359).
+  
+  * Maintainer upload, closes: #287089.
+
+ -- Jose M. Moya <josem@debian.org>  Wed, 18 Jul 2005 12:23:52 +0100
+
+shermans-aquarium (2.2.0-1.1) unstable; urgency=medium
+
+  * Non-maintainer upload prepared by Helen Faulkner; reviewed by Branden
+    Robinson.  Urgency due to fix for release-critical bug (non-free license
+    problem).
+  * Changed COPYING and debian/copyright to reflect the new DFSG-free (2
+    clause BSD-style) licensing of the fish images, which has recently been
+    negotiated with the copyright holder.  (Closes: #287089)
+
+ -- Branden Robinson <branden@debian.org>  Wed,  2 Feb 2005 03:29:17 -0500
+
+shermans-aquarium (2.2.0-1) unstable; urgency=low
+
+  * Initial Release (closes: #154684).
+    Upload sponsored by Roberto Lumbreras <rover@debian.org>.
+
+ -- Jose M. Moya <josem@die.upm.es>  Tue, 27 Jul 2004 18:51:52 +0200
+
diff --git a/sherman-aquarium/debian/compat b/sherman-aquarium/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/sherman-aquarium/debian/control b/sherman-aquarium/debian/control
new file mode 100644 (file)
index 0000000..902dd70
--- /dev/null
@@ -0,0 +1,22 @@
+Source: shermans-aquarium
+Section: gnome
+Priority: optional
+Maintainer: Jose M. Moya <josem@debian.org>
+Build-Depends: debhelper (>= 4.1.0), cdbs, libsdl1.2-dev, libgai-dev (>= 0.5.3), autotools-dev
+Standards-Version: 3.7.3
+Homepage: http://aquariumapplet.sourceforge.net/
+
+Package: shermans-aquarium
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Sherman's aquarium applet for GNOME 2
+ This is a GNOME 2 panel applet, a WindowMaker applet, and a
+ XscreenSaver "hack" that gives you an aquarium that takes care of
+ itself.  No feed, no cleaning and so on.
+ .
+ The temperature scale on the right side shows the CPU load. It can
+ also be configured to display the time and the status of numlock,
+ capslock and scrollock.
+ .
+ The fishes are done by Jim Toomey, the author of the "Sherman's
+ Lagoon" comics.
diff --git a/sherman-aquarium/debian/copyright b/sherman-aquarium/debian/copyright
new file mode 100644 (file)
index 0000000..5ffffa0
--- /dev/null
@@ -0,0 +1,40 @@
+This package was debianized by Jose M. Moya <josem@die.upm.es> on
+Tue, 27 Jul 2004 18:51:52 +0200.
+
+It was downloaded from http://aquariumapplet.sourceforge.net/
+
+Upstream Author:
+       Jonas Aaberg <cja@gmx.net>
+
+Copyright notice and license for everything except the fish images:
+
+       Sherman's aquarium is available under GNU General Public
+       License (GPL) version 2.
+
+   On Debian systems, the complete text of the GNU General
+   Public License can be found in `/usr/share/common-licenses/GPL'.
+
+Copyright notice and license for the fish images:
+
+  Copyright (C) 2005 Jim Toomey.
+
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice,
+      this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice,
+      this list of conditions and the following disclaimer in the documentation
+      and/or other materials provided with the distribution.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+  POSSIBILITY OF SUCH DAMAGE.
diff --git a/sherman-aquarium/debian/dirs b/sherman-aquarium/debian/dirs
new file mode 100644 (file)
index 0000000..ecb2cef
--- /dev/null
@@ -0,0 +1,4 @@
+usr/bin
+usr/lib/bonobo/servers
+usr/share/pixmaps
+usr/share/xscreensaver/config
diff --git a/sherman-aquarium/debian/docs b/sherman-aquarium/debian/docs
new file mode 100644 (file)
index 0000000..8a2c095
--- /dev/null
@@ -0,0 +1,7 @@
+AUTHORS
+BUGS
+NEWS
+README
+README.gai
+TODO
+XSCREENSAVER
diff --git a/sherman-aquarium/debian/install b/sherman-aquarium/debian/install
new file mode 100644 (file)
index 0000000..8cd1e38
--- /dev/null
@@ -0,0 +1,2 @@
+debian/lintian/shermans-aquarium       /usr/share/lintian/overrides
+debian/linda/shermans-aquarium         /usr/share/linda/overrides
diff --git a/sherman-aquarium/debian/linda/shermans-aquarium b/sherman-aquarium/debian/linda/shermans-aquarium
new file mode 100644 (file)
index 0000000..adbd62c
--- /dev/null
@@ -0,0 +1 @@
+Tag: extra-license-file
diff --git a/sherman-aquarium/debian/lintian/shermans-aquarium b/sherman-aquarium/debian/lintian/shermans-aquarium
new file mode 100644 (file)
index 0000000..cf9f0c4
--- /dev/null
@@ -0,0 +1,7 @@
+#
+# /usr/share/doc/shermans-aquarium/copyright contains all the
+# copyright information, but COPYRIGHT.graphics is also included here
+# to avoid the temptation to reuse these pixmaps without including the
+# copyright notice.
+#
+shermans-aquarium: extra-license-file
diff --git a/sherman-aquarium/debian/manpages b/sherman-aquarium/debian/manpages
new file mode 100644 (file)
index 0000000..d3569f2
--- /dev/null
@@ -0,0 +1,2 @@
+debian/shermans.1
+debian/shermans_applet.1
diff --git a/sherman-aquarium/debian/rules b/sherman-aquarium/debian/rules
new file mode 100755 (executable)
index 0000000..9b94d99
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+DEB_MAKE_CLEAN_TARGET = clean
diff --git a/sherman-aquarium/debian/shermans.1 b/sherman-aquarium/debian/shermans.1
new file mode 100644 (file)
index 0000000..a8096b9
--- /dev/null
@@ -0,0 +1,169 @@
+.TH SHERMANS-AQUARIUM "1" "March 2005" "shermans 3.0.1" "User Commands"
+.SH NAME
+shermans \- aquarium screensaver
+.SH SYNOPSIS
+.B sherman
+[\fIoptions\fR]
+.SH DESCRIPTION
+
+This is a XscreenSaver "hack" that gives you an aquarium that takes
+care of itself.  No feed, no cleaning and so on.
+
+The fishes are done by Jim Toomey, the author of the "Sherman's
+Lagoon" comics.  See /usr/share/doc/shermans-aquarium/copyright for
+more information.
+
+.SH OPTIONS
+
+.TP
+\fB\-sound\fR
+Enable sound support
+.TP
+\fB\-soundprg\fR <command>
+External command used to play sounds
+.TP
+\fB\-ogg\fR
+Enable OGG support
+
+.TP
+\fB\-seafloor\fR
+Show sea floor
+.TP
+\fB\-plants\fR #
+Number of plants
+.TP
+\fB\-plantscale\fR #
+Scale of plants
+.TP
+\fB\-bottomanimals\fR #
+Number of bottom animals
+
+.TP
+\fB\-bg_solid\fR
+Solid background color
+.TP
+\fB\-bg_shaded\fR
+Shaded background
+.TP
+\fB\-bg_wateralike\fR
+Water alike background
+.TP
+\fB\-bg_image\fR
+Set user specified image as background
+.TP
+\fB\-bg_image_file\fR <image>
+Set image to be used as background
+
+.TP
+\fB\-lcr\fR #
+Lower color RGB red value
+.TP
+\fB\-lcg\fR #
+Lower color RGB green value
+.TP
+\fB\-lcb\fR #
+Lower color RGB blue value
+
+.TP
+\fB\-ucr\fR #
+Upper color RGB red value
+.TP
+\fB\-ucg\fR #
+Upper color RGB green value
+.TP
+\fB\-ucb\fR #
+Upper color RGB blue value
+       
+.TP
+\fB\-comics\fR
+Show random Sherman's Lagoon comic strips
+.TP
+\fB\-comics_dir\fR <dir>
+Set local directory to load comic strips from
+.TP
+\fB\-comics_delay\fR #
+Set delay between comic strips
+
+.TP
+\fB\-random\fR
+Random fish, population size given below
+.TP
+\fB\-selected\fR
+User defined population
+.TP
+\fB\-random_pop\fR #
+Population size
+
+.PP
+User defined population
+.TP
+\fB\-fish1\fR #
+.TP
+\fB\-fish2\fR #
+.TP
+\fB\-fish3\fR #
+.TP
+\fB\-fish4\fR #
+.TP
+\fB\-fish5\fR #
+.TP
+\fB\-fish6\fR #
+.TP
+\fB\-swordfish\fR #
+.TP
+\fB\-blowfish\fR #
+.TP
+\fB\-bdweller\fR #
+.TP
+\fB\-fillmore\fR #
+.TP
+\fB\-sherman\fR #
+.TP
+\fB\-megan\fR #
+.TP
+\fB\-hunter\fR #
+.TP
+\fB\-prey\fR #
+.TP
+\fB\-lori\fR #
+.TP
+\fB\-ernest\fR #
+.TP
+\fB\-squid\fR #
+.TP
+\fB\-hawthorne\fR #
+
+.TP
+\fB\-eat\fR
+.TP
+\fB\-explode\fR
+.TP
+\fB\-rebirth\fR
+.TP
+\fB\-scalediff\fR
+.TP
+\fB\-speed\fR #
+.TP
+\fB\-scale\fR #
+.TP
+\fB\-huntera\fR #
+.TP
+\fB\-sworda\fR #
+.TP
+\fB\-window-id\fR #
+.TP
+\fB\-root\fR
+.TP
+\fB\-bubble\fR #
+.TP
+\fB\-desktop\fR
+
+
+.SH AUTHOR
+\fBSherman's aquarium\fR was written by Jonas Aaberg.  See
+/usr/share/doc/shermans-aquarium/AUTHORS for other contributors.
+.PP
+This manual page was written by Jose M. Moya <josem@debian.org>, for
+the Debian  GNU/Linux system (but may be used by others).
+.SH "SEE ALSO"
+/usr/share/doc/shermans-aquarium/*
diff --git a/sherman-aquarium/debian/shermans_applet.1 b/sherman-aquarium/debian/shermans_applet.1
new file mode 100644 (file)
index 0000000..13411ed
--- /dev/null
@@ -0,0 +1,109 @@
+.TH SHERMANS-AQUARIUM "1" "March 2005" "shermans_applet 3.0.1" "User Commands"
+.SH NAME
+shermans_applet \- dockapp/wmapplet and Gnome panel applet
+
+.SH SYNOPSIS
+.B shermans_applet
+[\fIOPTION\fR...]
+.SH DESCRIPTION
+.TP
+\fB\-\-load\-modules\fR=\fIMODULE1\fR,MODULE2,...
+Dynamic modules to load
+.PP
+Help options
+.TP
+\-?, \fB\-\-help\fR
+Show this help message
+.TP
+\fB\-\-usage\fR
+Display brief usage message
+.PP
+GTK+
+.TP
+\fB\-\-gdk\-debug\fR=\fIFLAGS\fR
+Gdk debugging flags to set
+.TP
+\fB\-\-gdk\-no\-debug\fR=\fIFLAGS\fR
+Gdk debugging flags to unset
+.TP
+\fB\-\-display\fR=\fIDISPLAY\fR
+X display to use
+.TP
+\fB\-\-screen\fR=\fISCREEN\fR
+X screen to use
+.TP
+\fB\-\-sync\fR
+Make X calls synchronous
+.TP
+\fB\-\-name\fR=\fINAME\fR
+Program name as used by the window
+manager
+.TP
+\fB\-\-class\fR=\fICLASS\fR
+Program class as used by the window
+manager
+.TP
+\fB\-\-gtk\-debug\fR=\fIFLAGS\fR
+Gtk+ debugging flags to set
+.TP
+\fB\-\-gtk\-no\-debug\fR=\fIFLAGS\fR
+Gtk+ debugging flags to unset
+.TP
+\fB\-\-g\-fatal\-warnings\fR
+Make all warnings fatal
+.TP
+\fB\-\-gtk\-module\fR=\fIMODULE\fR
+Load an additional Gtk module
+.PP
+Bonobo activation Support
+.TP
+\fB\-\-oaf\-ior\-fd\fR=\fIFD\fR
+File descriptor to print IOR on
+.TP
+\fB\-\-oaf\-activate\-iid\fR=\fIIID\fR
+IID to activate
+.TP
+\fB\-\-oaf\-private\fR
+Prevent registering of server with OAF
+.PP
+GNOME GConf Support
+.PP
+GNOME Library
+.TP
+\fB\-\-disable\-sound\fR
+Disable sound server usage
+.TP
+\fB\-\-enable\-sound\fR
+Enable sound server usage
+.TP
+\fB\-\-espeaker\fR=\fIHOSTNAME\fR:PORT
+Host:port on which the sound server
+to use is running
+.TP
+\fB\-\-version\fR
+2.8.1
+.PP
+Session management
+.TP
+\fB\-\-sm\-client\-id\fR=\fIID\fR
+Specify session management ID
+.TP
+\fB\-\-sm\-config\-prefix\fR=\fIPREFIX\fR
+Specify prefix of saved configuration
+.TP
+\fB\-\-sm\-disable\fR
+Disable connection to session manager
+.PP
+GNOME GUI Library
+.TP
+\fB\-\-disable\-crash\-dialog\fR
+Disable Crash Dialog
+
+.SH AUTHOR
+\fBSherman's aquarium\fR was written by Jonas Aaberg.  See
+/usr/share/doc/shermans-aquarium/AUTHORS for other contributors.
+.PP
+This manual page was written by Jose M. Moya <josem@debian.org>, for
+the Debian  GNU/Linux system (but may be used by others).
+.SH "SEE ALSO"
+/usr/share/doc/shermans-aquarium/*
diff --git a/sherman-aquarium/debian/watch b/sherman-aquarium/debian/watch
new file mode 100644 (file)
index 0000000..4d46935
--- /dev/null
@@ -0,0 +1,3 @@
+version=3
+http://aquariumapplet.sourceforge.net/download.html \
+  http://prdownloads.sourceforge.net/aquariumapplet/shermans_aquarium-(.*)\.tar\.bz2\?download
diff --git a/sherman-aquarium/shermans.xml b/sherman-aquarium/shermans.xml
new file mode 100644 (file)
index 0000000..0fc5abb
--- /dev/null
@@ -0,0 +1,121 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<screensaver name="shermans" _label="Sherman's aquarium">
+<command arg="-root" />
+
+
+<hgroup>
+<boolean id="seafloor" _label="Sea floor" arg-set="-seafloor"/>
+<boolean id="sound" _label="Sound effects" arg-set="-sound"/>
+</hgroup>
+
+<hgroup>
+<number id="plants" arg="-plants %" type="spinbutton" _label="Number of plants" low="0" high="100" default="8"/>
+<number id="plantscale" arg="-plantscale %" type="spinbutton" _label="Scale of plants" low="1" high="1000" default="75"/>
+<number id="bottomanimals" arg="-bottomanimals %" type="spinbutton" _label="Number of bottom animals" low="0" high="100" default="1"/>
+</hgroup>
+
+<string id="soundprg" _label="External sound playing program (Default mpg123)" arg="-soundprg %"/>
+
+<select id="soundtype">
+    <option id="mp3" _label="MP3 sound effects"/>
+    <option id="ogg" _label="OGG sound effects" arg-set="-ogg"/>
+</select>
+
+<select id="bg">
+    <option id="solidbg" _label="Solid background" arg-set="-bg_solid"/>
+    <option id="shadedbg" _label="Shaded background" arg-set="-bg_shaded"/>
+    <option id="waterbg" _label="Wateralike background" arg-set="-bg_wateralike"/>
+    <option id="imagebg" _label="Image background" arg-set="-bg_image"/>
+    <option id="desktopbg" _label="Use current desktop as background" arg-set="-desktop"/>
+</select>
+
+<hgroup>
+<number id="lcolorr" arg="-lcr %" type="slider" _label=" Lower colour: Red," low="0" high="255" default="0"/>
+<number id="lcolorg" arg="-lcg %" type="slider" _label=" Lower colour: Green," low="0" high="255" default="130"/>
+<number id="lcolorb" arg="-lcb %" type="slider" _label=" Lower colour: Blue" low="0" high="255" default="200"/>
+</hgroup>
+
+<hgroup>
+<number id="ucolorr" arg="-ucr %" type="slider" _label=" Upper colour: Red," low="0" high="255" default="0"/>
+<number id="ucolorg" arg="-ucg %" type="slider" _label=" Upper colour: Green," low="0" high="255" default="200"/>
+<number id="ucolorb" arg="-ucb %" type="slider" _label=" Upper colour: blue" low="0" high="255" default="250"/>
+</hgroup>
+<file id="imagefile" _label="Background image file" arg="-bg_image_file %" />
+
+<boolean id="comics" _label="Show comics on background" arg-set="-comics"/>
+<file id="comics_dir" _label="Directories where to look for comics(separete with ;)" arg="-comics_dir %"/>
+<number id="comics_delay" arg="-comics_delay %" type="slider" _label="Time between changing comic in seconds:" low="10" high="6000" default="50"/>
+
+<select id="population">
+    <option id="random" _label="Random fish, population size given below" arg-set="-random"/>
+    <option id="selelection" _label="User defined population" arg-set="-selected"/>
+</select>
+<number id="randompop" arg="-random_pop %" type="spinbutton" _label="Population size" low="1" high="100" default="15"/>
+
+<hgroup>
+<number id="fish1" arg="-fish1 %" type="spinbutton" _label="Fish1" low="0" high="255" default="1"/>
+<number id="fish2" arg="-fish2 %" type="spinbutton" _label="Fish2" low="0" high="255" default="1"/>
+<number id="fish3" arg="-fish3 %" type="spinbutton" _label="Fish3" low="0" high="255" default="1"/>
+<number id="fish4" arg="-fish4 %" type="spinbutton" _label="Fish4" low="0" high="255" default="1"/>
+</hgroup>
+
+<hgroup>
+<number id="fish5" arg="-fish5 %" type="spinbutton" _label="Fish5" low="0" high="255" default="1"/>
+<number id="fish6" arg="-fish6 %" type="spinbutton" _label="Fish6" low="0" high="255" default="1"/>
+<number id="swordfish" arg="-swordfish %" type="spinbutton" _label="Swordfish" low="0" high="255" default="1"/>
+<number id="blowfish" arg="-blowfish %" type="spinbutton" _label="Blowfish" low="0" high="255" default="1"/>
+</hgroup>
+
+<hgroup>
+<number id="bdweller" arg="-bdweller %" type="spinbutton" _label="Bottomdweler" low="0" high="255" default="1"/>
+<number id="fillmore" arg="-fillmore %" type="spinbutton" _label="Fillmore" low="0" high="255" default="1"/>
+<number id="sherman" arg="-sherman %" type="spinbutton" _label="Sherman" low="0" high="255" default="1"/>
+<number id="megan" arg="-megan %" type="spinbutton" _label="Megan" low="0" high="255" default="1"/>
+</hgroup>
+
+<hgroup>
+<number id="prey" arg="-prey %" type="spinbutton" _label="Prey" low="0" high="255" default="1"/>
+<number id="hunter" arg="-hunter %" type="spinbutton" _label="Hunter" low="0" high="255" default="1"/>
+<number id="lori" arg="-lori %" type="spinbutton" _label="Lori" low="0" high="255" default="1"/>
+<number id="ernest" arg="-ernest %" type="spinbutton" _label="Ernest" low="0" high="255" default="1"/>
+</hgroup>
+<hgroup>
+<number id="squid" arg="-squid %" type="spinbutton" _label="Squid" low="0" high="255" default="1"/>
+<number id="hawthorne" arg="-hawthorne %" type="spinbutton" _label="Hawthorne" low="0" high="255" default="1"/>
+</hgroup>
+
+
+<hgroup>
+<boolean id="eat" _label="Eating prey fish is ok" arg_set="-eat"/>
+<boolean id="rebirth" _label="Dead fish might be reborn" arg_set="-rebirth"/>
+</hgroup>
+
+<hgroup>
+<boolean id="explode" _label="Make the blowfish explode is ok" arg_set="-explode"/>
+<boolean id="scalediff" _label="Fish from the same kind may differ in size" arg_set="-scalediff"/>
+</hgroup>
+
+<hgroup>
+<number id="speed" arg="-speed %" type="spinbutton" _label="Speed (in %)" low="0" high="1000" default="100"/>
+<number id="size" arg="-scale %" type="spinbutton" _label="Scale (in %)" low="0" high="1000" default="75"/>
+</hgroup>
+
+<hgroup>
+<number id="huntera" arg="-huntera %" type="spinbutton" _label="Hunter agressiveness (in %)" low="0" high="100" default="75"/>
+<number id="sworda" arg="-sworda %" type="spinbutton" _label="Swordfish agressiveness (in %)" low="0" high="100" default="75"/>
+</hgroup>
+
+<number id="bubble" arg="-bubble %" type="spinbutton" _label="Number of bubbles" low="0" high="1000" default="15"/>
+
+
+<_description>
+This is a screensaver is an aquarium featuring the
+characters from the awesome comic Sherman's Lagoon by
+Jim Toomey.
+
+Sherman's aquarium website: http://aquariumapplet.sourceforge.net
+</_description>
+
+
+</screensaver>
\ No newline at end of file
diff --git a/sherman-aquarium/shermans/Makefile b/sherman-aquarium/shermans/Makefile
new file mode 100644 (file)
index 0000000..6ec29dd
--- /dev/null
@@ -0,0 +1,101 @@
+
+#
+# Makefile for Sherman's aquarium
+#
+
+CC = cc
+
+PREFIX = /usr
+GNOMEDIR = /usr
+
+INSTALL_PATH=$(DESTDIR)$(GNOMEDIR)
+
+# Setting up the CFLAGS and LDFLAGS variables 
+CFLAGS += -Wall -Wno-strict-aliasing -O3 -DIMAGE_PATH=\"/usr/share/pixmaps/shermans\" -DGAI -pthread -DORBIT2=1 -I/usr/include/gtk-2.0 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/panel-2.0 -I/usr/include/gtkglext-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/libgnomeui-2.0 -I/usr/include/libbonoboui-2.0 -I/usr/include/libart-2.0 -I/usr/include/gconf/2 -I/usr/include/gnome-keyring-1 -I/usr/include/libgnome-2.0 -I/usr/include/libgnomecanvas-2.0 -I/usr/include/gnome-vfs-2.0 -I/usr/lib/gnome-vfs-2.0/include -I/usr/include/orbit-2.0 -I/usr/include/libbonobo-2.0 -I/usr/include/bonobo-activation-2.0 -I/usr/include/libxml2 -I/usr/include/gail-1.0 -I/usr/lib/gtkglext-1.0/include    -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12  
+LDFLAGS_GAI = $(LDFLAGS) -pthread -Wl,--export-dynamic -L/usr/lib/lib -lgai -lpangoft2-1.0 -lpanel-applet-2 -lgtkglext-x11-1.0 -lgnomeui-2 -lbonoboui-2 -lgnomevfs-2 -lgconf-2 -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lbonobo-2 -lbonobo-activation -lORBit-2 -lgthread-2.0 -lrt -lgdkglext-x11-1.0 -lGLU -lGL -lXmu -lXt -lSM -lICE -lgtk-x11-2.0 -lpangox-1.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0    
+LDFLAGS_SDL = $(LDFLAGS) -L/usr/lib -lSDL  -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0  
+
+OBJS = fish.o background.o bubble.o draw.o bottom.o soundeffects.o images.o
+OBJS_GAI = settings.o pref.o date.o clock.o matrix.o over.o thermometer.o leds.o aquarium.o tetris.o plasma.o  status_linux26.o
+OBJS_SDL = screensaver.o grabscreen.o
+
+.PHONY: all install clean shermans_applet shermans install-images install_applet install_screensaver
+
+all: shermans_applet shermans
+
+shermans_applet: $(OBJS_GAI) $(OBJS)
+       $(CC) -o shermans_applet $(OBJS) $(OBJS_GAI) $(LDFLAGS_GAI)
+
+
+shermans: $(OBJS) $(OBJS_SDL)
+       $(CC) -o shermans $(OBJS) $(OBJS_SDL) $(LDFLAGS_SDL)
+
+install:  shermans_applet shermans install-images install_applet install_screensaver
+
+install_applet: install-gnome
+       install -d $(INSTALL_PATH)/bin
+       install -m 755 shermans_applet $(INSTALL_PATH)/bin
+       install -d $(INSTALL_PATH)/share/pixmaps/
+       install -m 644 ../shermans_icon.png $(INSTALL_PATH)/share/pixmaps
+install_screensaver: shermans
+       install -d $(INSTALL_PATH)/bin
+       install -m 755 shermans $(INSTALL_PATH)/bin
+       install -d $(INSTALL_PATH)/share/xscreensaver/config
+       install -m 644 ../shermans.xml $(INSTALL_PATH)/share/xscreensaver/config
+
+install-gnome: 
+       install -d $(INSTALL_PATH)/lib/bonobo/servers/
+       install -m 644 ../GNOME_shermans_appletApplet.server $(INSTALL_PATH)/lib/bonobo/servers/GNOME_shermans_appletApplet.server
+
+
+install-images:
+       mkdir -p $(INSTALL_PATH)/share/pixmaps/shermans
+       cp -r ../aquarium/* $(INSTALL_PATH)/share/pixmaps/shermans/
+
+install-rox:
+       mkdir -p "$(DESTDIR)/Sherman's aquarium"
+       rm -f "$(DESTDIR)/Sherman's aquarium/.DirIcon"
+       ln -s $(INSTALL_PATH)/share/pixmaps/shermans_icon.png "$(DESTDIR)/Sherman's aquarium/.DirIcon"
+       install -m 755 AppRun "$(DESTDIR)/Sherman's aquarium"
+       rm -f "$(DESTDIR)/Sherman's aquarium/AppletRun"
+       ln -s "/Sherman's aquarium/AppRun" "$(DESTDIR)/Sherman's aquarium/AppletRun"
+       rm -f "$(DESTDIR)/Sherman's aquarium/shermans_applet"
+       ln -s $(INSTALL_PATH)/bin/shermans_applet "$(DESTDIR)/Sherman's aquarium/shermans_applet"
+       install -m 644 AppInfo.xml "$(DESTDIR)/Sherman's aquarium"
+clean:
+       rm -rf *.o .xvpics *~ shermans_applet shermans
+
+# Dependencies:
+
+aquarium.h:    defines.h
+aquarium.o:    aquarium.c aquarium.h draw.h settings.h \
+               clock.h date.h bubble.h over.h leds.h thermometer.h fish.h background.h xmms_sn.h bottom.h \
+               pref.h ../config.h
+background.o:  background.c aquarium.h draw.h grabscreen.h background.h ../config.h
+images.o:      images.c aquarium.h ../config.h
+screensaver.o: screensaver.c bottom.h bubble.h aquarium.h background.h fish.h soundeffects.h ../config.h
+bottom.o:      bottom.c aquarium.h draw.h bottom.h fish.h ../config.h
+bubble.o:      bubble.c bubble.h aquarium.h draw.h soundeffects.h ../config.h
+clock.o:       clock.c clock.h draw.h aquarium.h ../config.h
+date.o:                date.c date.h aquarium.h draw.h ../config.h
+
+draw.o:                draw.c draw.h aquarium.h ../config.h
+fish.o:                fish.c fish.h draw.h aquarium.h soundeffects.h ../config.h
+grabscreen.o:  grabscreen.c grabscreen.h ../config.h
+
+leds.o:                leds.c leds.h draw.h aquarium.h ../config.h
+matrix.o:      matrix.c matrix.h draw.h over.h aquarium.h ../config.h
+over.o:                over.c over.h aquarium.h draw.h matrix.h plasma.h tetris.h ../config.h
+plasma.o:      plasma.c plasma.h aquarium.h over.h ../config.h
+pref.o:                pref.c pref.h clock.h date.h background.h soundeffects.h bottom.h bubble.h fish.h over.h \
+               leds.h thermometer.h xmms_sn.h ../config.h
+settings.o:    settings.c settings.h aquarium.h fish.h bubble.h date.h clock.h background.h over.h \
+               leds.h bottom.h xmms_sn.h matrix.h plasma.h tetris.h ../config.h
+soundeffects.o: soundeffects.c soundeffects.h aquarium.h settings.h ../config.h
+status_linux24.o: status_linux24.c status_linux.h status.h defines.h ../config.h
+status_linux26.o: status_linux26.c status_linux.h status.h defines.h ../config.h
+status_darwin.o:status_darwin.c status_darwin.h status.h defines.h ../config.h
+status_freebsd.o:status_freebsd.c status_freebsd.h status.h defines.h ../config.h
+tetris.o:      tetris.c tetris.h aquarium.h over.h settings.h ../config.h
+thermometer.o: thermometer.c thermometer.h aquarium.h draw.h status.h ../config.h
+xmms_sn.o:     xmms_sn.c xmms_sn.h aquarium.h draw.h ../config.h
diff --git a/sherman-aquarium/shermans/Makefile.in b/sherman-aquarium/shermans/Makefile.in
new file mode 100644 (file)
index 0000000..cb1c0c7
--- /dev/null
@@ -0,0 +1,101 @@
+
+#
+# Makefile for Sherman's aquarium
+#
+
+CC = @CC@
+
+PREFIX = @prefix@
+GNOMEDIR = @GNOMEDIR@
+
+INSTALL_PATH=$(DESTDIR)@INSTALL_PATH@
+
+# Setting up the CFLAGS and LDFLAGS variables 
+CFLAGS += -Wall -Wno-strict-aliasing -O3 -DIMAGE_PATH=\"@APPLET_IMAGE_PATH@\" @DGAI@ @GAI_CFLAGS@ @XMMS_CFLAGS@ @SDL_CFLAGS@ @GTK_CFLAGS@
+LDFLAGS_GAI = $(LDFLAGS) @GAI_LIBS@ @XMMS_LIBS@ @SYSTEM_SPECIFIC_LIBS@
+LDFLAGS_SDL = $(LDFLAGS) @SDL_LIBS@ @SYSTEM_SPECIFIC_LIBS@ @GTK_LIBS@
+
+OBJS = fish.o background.o bubble.o draw.o bottom.o soundeffects.o images.o
+OBJS_GAI = settings.o pref.o date.o clock.o matrix.o over.o thermometer.o leds.o aquarium.o tetris.o plasma.o @XMMS_OBJ@ @STATUS@
+OBJS_SDL = screensaver.o grabscreen.o
+
+.PHONY: all install clean @APPLET@ @SCREENSAVER@ @INSTALL_IMAGES@ @INSTALL_APPLET@ @INSTALL_SCREENSAVER@
+
+all: @APPLET@ @SCREENSAVER@
+
+shermans_applet: $(OBJS_GAI) $(OBJS)
+       $(CC) -o shermans_applet $(OBJS) $(OBJS_GAI) $(LDFLAGS_GAI)
+
+
+shermans: $(OBJS) $(OBJS_SDL)
+       $(CC) -o shermans $(OBJS) $(OBJS_SDL) $(LDFLAGS_SDL)
+
+install:  @APPLET@ @SCREENSAVER@ @INSTALL_IMAGES@ @INSTALL_APPLET@ @INSTALL_SCREENSAVER@
+
+install_applet: @INSTALL_GNOME@
+       install -d $(INSTALL_PATH)/bin
+       install -m 755 @APPLET_NAME@ $(INSTALL_PATH)/bin
+       install -d $(INSTALL_PATH)/share/pixmaps/
+       install -m 644 ../@APPLET_NAME_ICON@ $(INSTALL_PATH)/share/pixmaps
+install_screensaver: shermans
+       install -d $(INSTALL_PATH)/bin
+       install -m 755 @SCREENSAVER@ $(INSTALL_PATH)/bin
+       install -d $(INSTALL_PATH)/share/xscreensaver/config
+       install -m 644 ../shermans.xml $(INSTALL_PATH)/share/xscreensaver/config
+
+install-gnome: 
+       install -d $(INSTALL_PATH)/lib/bonobo/servers/
+       install -m 644 ../GNOME_@APPLET_NAME@Applet.server $(INSTALL_PATH)/lib/bonobo/servers/GNOME_@APPLET_NAME@Applet.server
+
+
+install-images:
+       mkdir -p $(INSTALL_PATH)/share/pixmaps/shermans
+       cp -r ../@APPLET_IMAGES@ $(INSTALL_PATH)/share/pixmaps/shermans/
+
+install-rox:
+       mkdir -p "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@"
+       rm -f "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@/.DirIcon"
+       ln -s $(INSTALL_PATH)/share/pixmaps/@APPLET_NAME_ICON@ "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@/.DirIcon"
+       install -m 755 AppRun "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@"
+       rm -f "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@/AppletRun"
+       ln -s "@ROX_PATH@/@APPLET_NICE_NAME@/AppRun" "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@/AppletRun"
+       rm -f "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@/@APPLET_NAME@"
+       ln -s $(INSTALL_PATH)/bin/@APPLET_NAME@ "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@/@APPLET_NAME@"
+       install -m 644 AppInfo.xml "$(DESTDIR)@ROX_PATH@/@APPLET_NICE_NAME@"
+clean:
+       rm -rf *.o .xvpics *~ @APPLET@ @SCREENSAVER@
+
+# Dependencies:
+
+aquarium.h:    defines.h
+aquarium.o:    aquarium.c aquarium.h draw.h settings.h \
+               clock.h date.h bubble.h over.h leds.h thermometer.h fish.h background.h xmms_sn.h bottom.h \
+               pref.h ../config.h
+background.o:  background.c aquarium.h draw.h grabscreen.h background.h ../config.h
+images.o:      images.c aquarium.h ../config.h
+screensaver.o: screensaver.c bottom.h bubble.h aquarium.h background.h fish.h soundeffects.h ../config.h
+bottom.o:      bottom.c aquarium.h draw.h bottom.h fish.h ../config.h
+bubble.o:      bubble.c bubble.h aquarium.h draw.h soundeffects.h ../config.h
+clock.o:       clock.c clock.h draw.h aquarium.h ../config.h
+date.o:                date.c date.h aquarium.h draw.h ../config.h
+
+draw.o:                draw.c draw.h aquarium.h ../config.h
+fish.o:                fish.c fish.h draw.h aquarium.h soundeffects.h ../config.h
+grabscreen.o:  grabscreen.c grabscreen.h ../config.h
+
+leds.o:                leds.c leds.h draw.h aquarium.h ../config.h
+matrix.o:      matrix.c matrix.h draw.h over.h aquarium.h ../config.h
+over.o:                over.c over.h aquarium.h draw.h matrix.h plasma.h tetris.h ../config.h
+plasma.o:      plasma.c plasma.h aquarium.h over.h ../config.h
+pref.o:                pref.c pref.h clock.h date.h background.h soundeffects.h bottom.h bubble.h fish.h over.h \
+               leds.h thermometer.h xmms_sn.h ../config.h
+settings.o:    settings.c settings.h aquarium.h fish.h bubble.h date.h clock.h background.h over.h \
+               leds.h bottom.h xmms_sn.h matrix.h plasma.h tetris.h ../config.h
+soundeffects.o: soundeffects.c soundeffects.h aquarium.h settings.h ../config.h
+status_linux24.o: status_linux24.c status_linux.h status.h defines.h ../config.h
+status_linux26.o: status_linux26.c status_linux.h status.h defines.h ../config.h
+status_darwin.o:status_darwin.c status_darwin.h status.h defines.h ../config.h
+status_freebsd.o:status_freebsd.c status_freebsd.h status.h defines.h ../config.h
+tetris.o:      tetris.c tetris.h aquarium.h over.h settings.h ../config.h
+thermometer.o: thermometer.c thermometer.h aquarium.h draw.h status.h ../config.h
+xmms_sn.o:     xmms_sn.c xmms_sn.h aquarium.h draw.h ../config.h
diff --git a/sherman-aquarium/shermans/aquarium.c b/sherman-aquarium/shermans/aquarium.c
new file mode 100644 (file)
index 0000000..d161fdf
--- /dev/null
@@ -0,0 +1,485 @@
+/* 
+ * Sherman's aquarium - Applet v3.0.1
+ *
+ * (Formely known as aquarium applet.)
+ *
+ * Copyright (C) 2002-2003 Jonas Aaberg <cja@gmx.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 did not receive a copy of the GNU General Public License along with
+ * this program; chances are, you already have at least 10 copies of this
+ * license somewhere on your system.  If you still want it, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, 
+ * MA 02111-1307, USA.
+ *
+ * This applet was once based upon timecop's <timecop@japan.co.jp> fishmon, 
+ * but not much is now left of his code. (draw.c is mainly his code)
+ *
+ *
+ */
+
+
+#include <stdio.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <time.h>
+#include <math.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <string.h>
+#include <gai/gai.h>
+
+
+#define GAI_APPLET_DEFINES
+#include "../config.h"
+#include "aquarium.h"
+#include "draw.h"
+#include "settings.h"
+
+/* Features */
+#include "clock.h"
+#include "date.h"
+#include "bubble.h"
+#include "over.h"
+#include "leds.h"
+#include "thermometer.h"
+#include "fish.h"
+#include "background.h"
+#ifdef XMMS
+#include "xmms_sn.h"
+#endif
+#include "soundeffects.h"
+#include "status.h"
+#include "bottom.h"
+#include "pref.h"
+
+
+/* keeps track of mouse focus */
+static int over_ruled;
+static AquariumData ad;
+static General_settings general_settings;
+
+/* Only there for screensaver compability */
+int fullscreen = 0, window_id = -1;
+
+
+static void aquarium_enter(gpointer d)
+{
+    ad.proximity = 1;
+    fish_enter();
+}
+
+static void aquarium_keypress(int key, gpointer d)
+{
+    if(ad.proximity)
+       over_keypress(key);
+}
+
+static void aquarium_joystick(GaiFlagsJoystick flags, gpointer d)
+{
+    if(ad.proximity)
+       over_joystick(flags);
+}
+
+static void aquarium_leave(gpointer d)
+{
+    ad.proximity = 0;
+    fish_leave();
+}
+
+static void mouse_action(int flag, char *option)
+{
+    if(flag == MOUSE_OFF)
+       return;
+
+    if(flag == MOUSE_RUN){
+       gai_exec(option);
+       return;
+    }
+}
+
+static void aquarium_mouseclick_left(int x, int y, gpointer d)
+{
+    mouse_action(general_settings.mouse_left, general_settings.mouse_left_option);
+}
+
+static void aquarium_mouseclick_middle(int x, int y, gpointer d)
+{
+    mouse_action(general_settings.mouse_middle, general_settings.mouse_middle_option);
+}
+
+static void aquarium_mouseclick_updown(int dir, gpointer d)
+{
+    if(dir == GDK_SCROLL_UP)
+       mouse_action(general_settings.mouse_up, general_settings.mouse_up_option);
+    if(dir == GDK_SCROLL_DOWN)
+       mouse_action(general_settings.mouse_down, general_settings.mouse_down_option);
+}
+
+
+
+void aquarium_change(int orient, int new_w, int new_h, gpointer d)
+{
+    static int old_xmax = -1, old_ymax = -1;
+    ad.dont_update = 1;
+
+    ad.ymin = gai_scale(YMIN);
+    ad.xmin = gai_scale(XMIN);
+    
+    if(gai_applet_mode() == GAI_DOCKAPP){
+       if(general_settings.ratio_width > general_settings.ratio_height){
+           ad.xmax = gai_get_size()*general_settings.ratio_width/general_settings.ratio_height - 2*ad.xmin;
+           ad.ymax = gai_get_size() - 2*ad.ymin;
+       } else {
+           ad.xmax = gai_get_size() - 2*ad.xmin;
+           ad.ymax = gai_get_size()*general_settings.ratio_height/general_settings.ratio_width - 2*ad.ymin;
+       }
+       if(old_ymax != ad.ymax || old_xmax != ad.xmax)
+           gai_background_set(ad.xmax+2*ad.xmin, ad.ymax+2*ad.ymin, GAI_BACKGROUND_MAX_SIZE_NONE, TRUE);
+    } else {
+       if(orient == GAI_HORIZONTAL){
+           if(general_settings.ratio_width > general_settings.ratio_height){
+               ad.xmax = gai_get_size()*general_settings.ratio_width/general_settings.ratio_height - 2*ad.xmin;
+               ad.ymax = gai_get_size() - 2*ad.ymin;
+           } else {
+               ad.ymax = gai_get_size() - 2*ad.ymin;
+               ad.xmax = gai_get_size()*general_settings.ratio_height/general_settings.ratio_width - 2*ad.xmin;
+           }
+           if(old_ymax != ad.ymax || old_xmax != ad.xmax)
+               gai_background_set(ad.xmax+2*ad.xmin, ad.ymax+2*ad.ymin, GAI_BACKGROUND_MAX_SIZE_NONE, TRUE);
+       } else {
+           /* Vertical */
+           if(general_settings.ratio_width > general_settings.ratio_height){
+               ad.ymax = gai_get_size() * general_settings.ratio_width/general_settings.ratio_height - 2*ad.ymin;
+               ad.xmax = gai_get_size() - 2*ad.xmin;
+           } else {
+               ad.xmax = gai_get_size() - 2*ad.xmin;
+               ad.ymax = gai_get_size()*general_settings.ratio_height/general_settings.ratio_width - 2*ad.ymin;
+           }
+           if(old_ymax != ad.ymax || old_xmax != ad.xmax)
+               gai_background_set(ad.ymax+2*ad.ymin,ad.xmax+2*ad.xmin, GAI_BACKGROUND_MAX_SIZE_NONE, TRUE);
+       }
+    
+}
+    old_ymax = ad.ymax;
+    old_xmax = ad.xmax;
+
+    ad.virtual_aquarium_x = ad.xmax + 2 * VIRTUAL_AQUARIUM_DX;
+    ad.virtual_aquarium_y = ad.ymax + 2 * VIRTUAL_AQUARIUM_DX;
+
+    g_free(ad.rgb);
+    g_free(ad.bgr);
+
+    ad.rgb = g_malloc0((ad.xmax + 2) * (ad.ymax + 2) * 3);
+    ad.bgr = g_malloc0((ad.xmax + 2) * (ad.ymax + 2) * 3);
+
+    background_init();
+    bottom_init();
+
+    ad.dont_update = 0;
+
+}
+
+
+
+void prepare_graphics(void)
+{
+
+    clock_init();
+    date_init();
+
+    bubble_init();
+
+    thermometer_init();
+
+    leds_init();
+#ifdef XMMS
+    xmms_sn_init();
+#endif
+    fish_init();
+
+    background_init();
+    bottom_init();
+
+    status_init();
+    over_init();
+
+}
+
+
+void aquarium_update(gpointer d)
+{
+    static gboolean inited = 0;
+  /* If this function is called during reload of images,
+       just quit and wait until that is done. */
+
+    if(ad.dont_update)
+       return;
+
+    if(!inited){
+       inited = TRUE;
+       if(gai_applet_mode() == GAI_DOCKAPP){
+           if(ad.xmax < ad.ymax){
+               aquarium_change(gai_get_orient(), 
+                               gai_get_size(),
+                               gai_get_size()*general_settings.ratio_height/general_settings.ratio_width,
+                               NULL);
+           } else {
+               aquarium_change(gai_get_orient(), 
+                               gai_get_size()*general_settings.ratio_width/general_settings.ratio_height,
+                               gai_get_size(),
+                               NULL);
+           }
+       } else {
+           if(gai_get_orient() == GAI_HORIZONTAL){
+               aquarium_change(gai_get_orient(), 
+                               gai_get_size(),
+                               gai_get_size()*general_settings.ratio_height/general_settings.ratio_width,
+                               NULL);
+
+           }
+           else {
+               aquarium_change(gai_get_orient(), 
+                               gai_get_size()*general_settings.ratio_width/general_settings.ratio_height,
+                               gai_get_size(),
+                               NULL);
+           }
+       }
+    }
+
+    if(ad.drawingarea == NULL)
+       ad.drawingarea = gai_get_drawingarea();
+    
+    memcpy(ad.rgb, ad.bgr, ad.ymax * ad.xmax * 3);
+
+    /* If the mouse over function is completly domiating,
+       then, only call the mouse over function */
+
+    if(!over_ruled) {
+       leds_update(DRAW_BEFORE);
+       thermometer_update(DRAW_BEFORE);
+       clock_update(DRAW_BEFORE);
+#ifdef XMMS
+       xmms_sn_update(DRAW_BEFORE);
+#endif
+       date_update(DRAW_BEFORE);
+       
+
+       fish_update();
+       bubble_update();
+
+
+       thermometer_update(DRAW_AFTER);
+       clock_update(DRAW_AFTER);
+#ifdef XMMS
+       xmms_sn_update(DRAW_AFTER);
+#endif
+       date_update(DRAW_AFTER);
+       leds_update(DRAW_AFTER); 
+    }
+
+    over_ruled = over_update(ad.proximity);
+
+    ad.gc = gai_get_gc();
+
+    /* Draw it, not using gai */
+    gdk_draw_rgb_image(ad.drawingarea->window,         ad.gc, ad.xmin, ad.ymin, ad.xmax, ad.ymax,
+                      GDK_RGB_DITHER_NONE,ad.rgb, ad.xmax*3);
+    gdk_flush();
+}
+  
+
+
+void aquarium_free_all()
+{
+
+    background_exit();
+    clock_exit();
+    date_exit();
+    over_exit();
+#ifdef XMMS
+    xmms_sn_exit();
+#endif
+    thermometer_exit();
+    status_exit();
+    bubble_exit();
+    fish_exit();
+    bottom_exit();
+
+    over_exit();
+    
+}
+
+void aquarium_reload_all()
+{
+    background_init();
+    clock_init();
+    date_init();
+    status_init();
+#ifdef XMMS
+    xmms_sn_init();
+#endif
+    thermometer_init();
+    bubble_init();
+    /* We are loading fishes before aquarium_change gets activated, since it needs to call bottom and bg */
+    //    printf("fish init\n");
+    //fish_init();
+    bottom_init();             /* Must be after fish, because it draw bottom creatures. */
+    over_init();
+
+}
+
+/* This function (re)sets all the global variables to their default */
+/* Some globals, don't have a default, those are not set ofcourse */
+
+void init(void)
+{
+
+    memset(&ad, 0, sizeof(AquariumData));
+
+    ad.rnd = g_rand_new();
+
+    clock_load_settings();
+    date_load_settings();
+#ifdef XMMS
+    xmms_sn_load_settings();
+#endif
+
+    bubble_load_settings();
+
+    thermometer_load_settings();
+    over_load_settings();
+    leds_load_settings();
+    
+
+    background_load_settings();
+    bottom_load_settings();
+
+    fish_load_settings();
+    general_load_settings();
+    sound_load_settings();
+    tetris_load_settings();
+
+    /* Default at start up is horizontal gnome-panel */
+    ad.ymax = YMAX;
+    ad.xmax = XMAX;
+
+    if(general_settings.ratio_width > general_settings.ratio_height){
+       ad.xmax = (XMAX+2*XMIN)*general_settings.ratio_width/general_settings.ratio_height - 2*XMIN;
+    } else {
+       ad.ymax = (YMAX+2*YMIN)*general_settings.ratio_height/general_settings.ratio_width - 2*YMIN;
+    }
+
+    ad.ymin = YMIN;
+    ad.xmin = XMIN;
+
+    ad.virtual_aquarium_x = XMAX + 2 * VIRTUAL_AQUARIUM_DX;
+    ad.virtual_aquarium_y = YMAX + 2 * VIRTUAL_AQUARIUM_DY;
+    ad.viewpoint_start_x = VIEWPOINT_START_X;
+    ad.viewpoint_start_y = VIEWPOINT_START_Y;
+
+    ad.proximity = 0;
+    over_ruled = 0;
+
+    ad.posx=ad.posy=-1;
+
+    ad.gc = NULL;
+    ad.drawingarea = NULL;
+
+    ad.special_action = 0;
+}
+
+
+
+
+int main(int argc, char **argv)
+{
+
+    gai_init2(&applet_defines ,&argc, &argv);
+
+
+    /* Load saved settings and reset others */
+    init();
+
+    ad.rgb = g_malloc0((ad.xmax + 2) * (ad.ymax + 2) * 3);
+    ad.bgr = g_malloc0((ad.xmax + 2) * (ad.ymax + 2) * 3);
+
+    prepare_graphics();
+
+    pref_init();
+
+    gai_background_set(ad.xmax+2*ad.xmin, ad.ymax+2*ad.ymin, GAI_BACKGROUND_MAX_SIZE_NONE, TRUE);
+
+    gai_preferences2("Sherman's aquarium - Preferences", 
+                   shermans_pref, 
+                   "You cannot do anything dangerous with this applet,\n"
+                    "so just play around and look at what the applet does.\n"
+                    "If you still have some questions, feel free to mail me, cja@gmx.net.\n\n"
+                    "Thanks for trying Sherman's aquarium!\n\n"
+                    "http://aquariumapplet.sourceforge.net",
+                   (GaiCallback0 *)pref_restart, NULL);
+
+    /* 20 frames per second */
+    gai_signal_on_update((GaiCallback0 *)aquarium_update, 1000/50, NULL);
+    gai_signal_on_enter((GaiCallback0 *)aquarium_enter, NULL);
+    gai_signal_on_leave((GaiCallback0 *)aquarium_leave, NULL);
+    gai_signal_on_change((GaiCallback3 *)aquarium_change, NULL);
+    gai_signal_on_keypress((GaiCallback1 *)aquarium_keypress, NULL);
+    gai_signal_on_joystick((GaiCallback1 *)aquarium_joystick, NULL);
+
+    gai_signal_on_mouse_button_click((GaiCallback2 *)aquarium_mouseclick_left, GAI_MOUSE_BUTTON_1, NULL);
+    gai_signal_on_mouse_button_click((GaiCallback2 *)aquarium_mouseclick_middle, GAI_MOUSE_BUTTON_2, NULL);
+    gai_signal_on_scroll_buttons((GaiCallback1 *)aquarium_mouseclick_updown, NULL);
+
+
+    gai_start();
+    return 0;
+}
+
+
+AquariumData *aquarium_get_settings_ptr(void)
+{
+    return &ad;
+}
+
+unsigned char *aquarium_install_path(void)
+{
+    return applet_defines.image_path;
+}
+
+General_settings *general_get_settings_ptr(void)
+{
+    return &general_settings;
+}
+
+
+void aquarium_draw_image(int x, int y, int idx, int rev, SA_Image *image)
+{
+    draw_image(x, y, idx, rev, image);
+}
+
+void aquarium_draw_pic_alpha(SA_Image *image, int w, int h, int x, int y, int idx, int alpha)
+{
+    draw_pic_alpha(image->image, w, h, x, y, idx, alpha);
+} 
+
+
+void aquarium_clean_image(int x, int y, int w, int h)
+{
+
+}
+
+/* This is just to keep background.c happy */
+void grab_screen_image (Screen *s, Window w)
+{
+
+}
diff --git a/sherman-aquarium/shermans/aquarium.h b/sherman-aquarium/shermans/aquarium.h
new file mode 100644 (file)
index 0000000..ac0a7c1
--- /dev/null
@@ -0,0 +1,109 @@
+
+/* Main header file for Sherman's aquarium */
+#ifndef AQUARIUM_H
+#define AQUARIUM_H
+
+
+#include <gtk/gtk.h>
+#include <gdk/gdk.h>
+#include <gdk/gdkx.h>
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include "defines.h"
+
+#ifdef GNOME
+#include <libgnomeui/libgnomeui.h>
+#include <libgnome/libgnome.h>
+#endif
+
+
+typedef struct {
+    unsigned char *image;
+    unsigned char *rev;
+    int width;
+    int height;
+    int frames;
+    int full_height;
+    int rowstride;
+    GdkPixbuf *pixbuf;
+} SA_Image;
+
+/* main dockapp info structure.  windows, buffers, etc */
+typedef struct {
+
+    int xmax;
+    int ymax;
+    int xmin;
+    int ymin;
+    /*    int windowsize_x;
+         int windowsize_y;*/
+    int virtual_aquarium_x;
+    int virtual_aquarium_y;
+    int viewpoint_start_x;
+    int viewpoint_start_y;
+
+    int posx;
+    int posy;
+    int proximity;
+
+
+    GdkWindow *win;            /* main window */
+    GdkWindow *iconwin;
+
+
+    GtkWidget *about_box;
+    GtkWidget *applet;
+    GtkWidget *drawingarea;
+    int oldwidth;
+    int oldheight;
+    int oldbg;
+
+    GdkGC *gc;                 /* drawing GC */
+
+    GRand *rnd;                 /* Random number instance */
+
+    /* main image buffer */
+    unsigned char *rgb;
+
+    /* back buffer - stores things we dont want to redraw all the time */
+    unsigned char *bgr;
+    int special_action;
+    int dont_update;
+
+} AquariumData;
+
+
+#define MOUSE_OFF 0
+#define MOUSE_RUN 1
+
+typedef struct {
+    int ratio_width;
+    int ratio_height;
+
+    int mouse_left, mouse_middle, mouse_down, mouse_up;
+    char *mouse_left_option, *mouse_middle_option, *mouse_up_option, *mouse_down_option;
+
+} General_settings;
+
+/* Declare functions */
+
+void aquarium_update(gpointer);
+void aquarium_change(int, int, int, gpointer);
+void prepare_graphics(void);
+
+void aquarium_reload_all(void);
+void aquarium_free_all(void);
+void aquarium_draw_image(int, int, int, int, SA_Image *);
+void aquarium_clean_image(int, int, int, int);
+void aquarium_draw_pic_alpha(SA_Image *, int, int, int, int, int, int);
+unsigned char *aquarium_install_path(void);
+
+/* Returns a pointer to the static struct in aquarium.c */
+AquariumData *aquarium_get_settings_ptr(void);
+General_settings *general_get_settings_ptr(void);
+
+void load_image(char *, SA_Image *,int);
+void load_image_n_scale(char *, SA_Image *,int, int);
+
+unsigned int checksum(unsigned char *, int);
+
+#endif
diff --git a/sherman-aquarium/shermans/background.c b/sherman-aquarium/shermans/background.c
new file mode 100644 (file)
index 0000000..9285838
--- /dev/null
@@ -0,0 +1,197 @@
+
+#include <X11/Xlib.h>
+#include <stdlib.h>
+
+#ifdef GAI
+#include <gai/gai.h>
+#else
+
+#include <gdk-pixbuf/gdk-pixbuf.h>
+
+typedef struct {
+    unsigned char r,g,b,alpha;
+} GaiColor;
+
+void gai_display_error_continue(const char *);
+GdkPixbuf *gai_load_image(const char *);
+
+#endif
+
+#include "aquarium.h"
+#include "draw.h"
+#include "grabscreen.h"
+#include "background.h"
+
+
+static Background_settings background_settings;
+static AquariumData *ad;
+
+Background_settings *background_get_settings_ptr(void)
+{
+    return &background_settings;
+}
+
+static void background_prepare_solid(unsigned char r, unsigned char g, unsigned b)
+{
+    int i,j,t;
+
+    for (i = 0; i < ad->ymax; i++) {
+       for (j = 0; j < ad->xmax; j++) {
+           t = (i * ad->xmax * 3) + j * 3;
+           ad->bgr[t + 0] = r;
+           ad->bgr[t + 1] = g;
+           ad->bgr[t + 2] = b;
+       }
+    }
+
+}
+
+static void background_prepare_shaded(unsigned char r1, unsigned char g1, unsigned b1,
+                                     unsigned char r2, unsigned char g2, unsigned b2)
+{
+    int i,j,t;
+    float d1,d2,d3;
+
+    d1 = ((float)r2 - (float)r1) / (float) ad->ymax;
+    d2 = ((float)g2 - (float)g1) / (float) ad->ymax;
+    d3 = ((float)b2 - (float)b1) / (float) ad->ymax;
+
+    for (i = 0; i < ad->ymax; i++) {
+       for (j = 0; j < ad->xmax; j++) {
+           t = (i * ad->xmax * 3) + j * 3;
+           ad->bgr[t + 0] = (unsigned char)((float)r1 + ((float) i * d1));
+           ad->bgr[t + 1] = (unsigned char)((float)g1 + ((float) i * d2));
+           ad->bgr[t + 2] = (unsigned char)((float)b1 + ((float) i * d3));
+       }
+    }
+
+}
+
+
+static void background_prepare_image(char *image_file, int user_choise)
+{
+    GdkPixbuf *water=NULL, *water2=NULL;
+    GError *imerr=NULL;
+    unsigned char *buff;
+    int i, j, k=0, y, rowstride, alpha;
+
+    if(user_choise){
+       water = gdk_pixbuf_new_from_file(image_file, &imerr);
+       if (water==NULL){
+           gai_display_error_continue("Can't load image!\nChanging to default water image background.");
+           water = gai_load_image("water.png");
+       }
+    } else {
+       water = gai_load_image("water.png");
+    }
+    
+    water2 = gdk_pixbuf_scale_simple(water, ad->xmax, ad->ymax,
+                                    GDK_INTERP_BILINEAR);
+    buff = gdk_pixbuf_get_pixels(water2);
+
+    rowstride = gdk_pixbuf_get_rowstride(water2);
+    alpha = (int)gdk_pixbuf_get_has_alpha(water2);
+    
+    for (i = 0; i < ad->ymax; i++) {
+       y = i * rowstride;
+       for (j = 0; j < ((ad->xmax * (3+alpha))); j += (3+alpha)) {
+           ad->bgr[k + 0] = buff[y + j + 0];
+           ad->bgr[k + 1] = buff[y + j + 1];
+           ad->bgr[k + 2] = buff[y + j + 2];
+           k += 3;
+       }
+    }
+
+    g_object_unref(water);
+    g_object_unref(water2);
+
+}
+
+static void background_prepare_desktop(void)
+{
+    int rowstride, alpha, i, j, k=0, y;
+    unsigned char *buff, *str;
+    GdkPixbuf *desktop, *tmp_desktop;
+    GdkWindow *win;
+    Display *display;
+    Window xwin;
+
+    win = gdk_get_default_root_window();
+    str = getenv("SDL_WINDOWID");
+
+    if(str == NULL){
+       xwin = GDK_WINDOW_XWINDOW(win);
+    }
+    else{
+       xwin = (Window)atoi(str);
+       display = XOpenDisplay(NULL);
+       grab_screen_image(ScreenOfDisplay(display, DefaultScreen(display)), xwin);
+    }
+
+
+    desktop = gdk_pixbuf_get_from_drawable(NULL, 
+                                     GDK_DRAWABLE(win), 
+                                     NULL, 0,0,0,0,
+                                     gdk_screen_width(), gdk_screen_height());
+
+    if(gdk_screen_width() != ad->xmax || gdk_screen_height() != ad->ymax){
+       tmp_desktop = gdk_pixbuf_scale_simple(desktop, ad->xmax, ad->ymax,
+                                             GDK_INTERP_BILINEAR);
+       g_object_unref(desktop);
+       desktop = tmp_desktop;
+    }
+
+    buff = gdk_pixbuf_get_pixels(desktop);
+
+    rowstride = gdk_pixbuf_get_rowstride(desktop);
+    alpha = (int)gdk_pixbuf_get_has_alpha(desktop);
+    
+    for (i = 0; i < ad->ymax; i++) {
+       y = i * rowstride;
+       for (j = 0; j < ((ad->xmax * (3+alpha))); j += (3+alpha)) {
+           ad->bgr[k + 0] = buff[y + j + 0];
+           ad->bgr[k + 1] = buff[y + j + 1];
+           ad->bgr[k + 2] = buff[y + j + 2];
+           k += 3;
+       }
+    }
+
+    g_object_unref(desktop);
+}
+
+void background_exit(void)
+{
+
+}
+
+void background_init(void)
+{
+    ad = aquarium_get_settings_ptr();
+
+    if(background_settings.desktop){
+       background_prepare_desktop();
+       return;
+    }
+
+
+    if(background_settings.type == BG_SOLID)
+       background_prepare_solid(background_settings.solid_c.r,
+                                background_settings.solid_c.g,
+                                background_settings.solid_c.b);
+
+    if(background_settings.type == BG_SHADED)
+       background_prepare_shaded(background_settings.shaded_top_c.r,
+                                 background_settings.shaded_top_c.g,
+                                 background_settings.shaded_top_c.b,
+                                 background_settings.shaded_bot_c.r,
+                                 background_settings.shaded_bot_c.g,
+                                 background_settings.shaded_bot_c.b);
+
+    if(background_settings.type == BG_IMAGE)
+       background_prepare_image(background_settings.imagename, 1);
+
+    if(background_settings.type == BG_WATER)
+       background_prepare_image(NULL,0);
+
+
+}
diff --git a/sherman-aquarium/shermans/background.h b/sherman-aquarium/shermans/background.h
new file mode 100644 (file)
index 0000000..e94dd80
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef BACKGROUND_H
+#define BACKGROUND_H
+
+#define BG_SOLID 0 
+#define BG_SHADED 1
+#define BG_WATER 2
+#define BG_IMAGE 3
+
+
+typedef struct
+{
+    char *imagename, *imagename_new;
+    int type;
+    int desktop;
+    GaiColor shaded_top_c, shaded_bot_c, solid_c;
+
+} Background_settings;
+
+Background_settings *background_get_settings_ptr(void);
+void background_init(void);
+void background_exit(void);
+#endif
diff --git a/sherman-aquarium/shermans/bottom.c b/sherman-aquarium/shermans/bottom.c
new file mode 100644 (file)
index 0000000..c5faac0
--- /dev/null
@@ -0,0 +1,201 @@
+
+#include <stdlib.h>
+#include "aquarium.h"
+#include "draw.h"
+#include "bottom.h"
+#include "fish.h"
+
+static Bottom_settings bottom_settings;
+static AquariumData *ad;
+
+
+
+Bottom_settings *bottom_get_settings_ptr(void)
+{
+    return &bottom_settings;
+}
+
+void bottom_init(void)
+{
+    SA_Image sea_floor;
+    SA_Image bottom_stuff;
+
+    Bottom bottom_items[NUMOFBOTTOMITEMS] = {
+    {"bottom/plant1.png",        0},
+    {"bottom/plant2.png",        0},
+    {"bottom/plant3.png",        0},
+    {"bottom/plant4.png",        0},
+    {"bottom/plant5.png",        0},
+    {"bottom/plant6.png",        0},
+    {"bottom/plant7.png",        0},
+    {"bottom/plant9.png",       0},
+    {"bottom/plant10.png",       0},
+    {"bottom/smallstone1.png",   0},
+    {"bottom/smallstone3.png",   0},
+    {"bottom/stone1.png",        0},
+    {"bottom/stone2.png",        0},
+    {"bottom/stone3.png",        0},
+    {"bottom/weirdplant.png",    0},
+    {"bottom/weirdplant2.png",   0},
+    {"bottom/octo1.png",         0},
+    {"bottom/bigplant.png",     0}
+    };
+
+    char *bottom_image_files[] = {
+    "bottom/bottom1.png",
+    "bottom/bottom2.png",
+    "bottom/bottom3.png",
+    NULL
+    };
+
+
+    int start_sea_floor_x, start_sea_floor_y;
+
+    int curr_sea_floor_height;
+    int i,j,k,l,jj, step_max, current_loc,x=0;
+    int old_height=0,old_x=0, old_current_loc=0, bx[10], bw[10], nfa;
+    Fish *fishes;
+    Fish_settings *fish_settings;
+
+    ad = aquarium_get_settings_ptr();
+
+    fishes = fish_get_fishes_ptr();
+
+    fish_settings = fish_get_settings_ptr();
+
+
+    if(!bottom_settings.have_sea_floor) 
+       return;
+
+    i = g_rand_int_range(ad->rnd, 0, NUMBOTTOMIMAGES);
+
+    load_image_n_scale(bottom_image_files[i], &sea_floor, 1, bottom_settings.scale);
+
+    start_sea_floor_x = g_rand_int_range(ad->rnd, 0, sea_floor.width);
+
+    curr_sea_floor_height = sea_floor.height - g_rand_int_range(ad->rnd, 0, sea_floor.height*4/5);
+
+    if(curr_sea_floor_height == 0)
+       curr_sea_floor_height = 1;
+
+    
+    start_sea_floor_y = ad->ymax - curr_sea_floor_height;
+
+
+    for(i = (start_sea_floor_x - sea_floor.width); i < ad->xmax; i += sea_floor.width)
+       draw_image_bg(i, start_sea_floor_y, 0, 0, &sea_floor);
+    
+
+  
+    /* Number of plants and stones default max 15 */
+
+    if(bottom_settings.random_plants)
+       j = g_rand_int_range(ad->rnd, 1, bottom_settings.max_plants+1);
+    else
+       j = bottom_settings.max_plants;
+  
+    step_max = curr_sea_floor_height / j;
+
+    /* The smallest stone/plant is 32 high */
+    current_loc = ad->ymax - curr_sea_floor_height + 10;
+    //printf("Curr loc: %d %d %d\n", current_loc, ad->ymax, curr_sea_floor_height);
+
+    /* See if we have a bottom dweller and or a hacktorn*/
+    nfa=0;
+    
+    for(i = 0;i < fish_settings->num_fish; i++){
+       if(fishes[i].type == BDWELLER || fishes[i].type == HAWTHORNE){
+
+           for(jj = 0; jj < 10; jj++){
+               if(ad->xmax-fishes[i].width == 0)                  
+                   x = 0;
+               else
+                   x = g_rand_int_range(ad->rnd, 0, ad->xmax - fishes[i].width);
+
+               for(l = 0; l < nfa; l++)
+                   if(x > bx[l] && x < (bx[l]+bw[l])) 
+                       break;
+               if(l == nfa) break;
+           }  
+           /* Do just 10 athempts to place a bottom fish, if not sucessfull,
+              then try next fish */
+           if(jj == 10){
+               /* Make sure the fish is outside the picture. */
+               fishes[i].tx = 2 * ad->xmax;
+               fishes[i].y = 0;
+               continue;
+           }     
+           bx[nfa] = x;
+           bw[nfa] = fishes[i].width;
+           fishes[i].tx = bx[nfa];
+           /* (int)(20*(float)scale/100)*/
+           fishes[i].y = current_loc + curr_sea_floor_height / 3 + g_rand_int_range(ad->rnd, 0, curr_sea_floor_height) + ad->viewpoint_start_y - 30;
+           if(fishes[i].type == BDWELLER)
+               fishes[i].fast_frame_change = 0.02;
+           else
+               fishes[i].fast_frame_change = 0.07;
+
+           fishes[i].speed_mul = 0.0001;
+           nfa++;
+       }
+    }
+      
+
+    /* Freeing sea floor. Not needed any longer */
+    g_object_unref(sea_floor.pixbuf);
+
+      
+    for(i = 0; i < j; i++){
+       k=g_rand_int_range(ad->rnd, 0, NUMOFBOTTOMITEMS);
+
+
+       load_image_n_scale(bottom_items[k].image, &bottom_stuff,
+                          1, (bottom_settings.scale / 2) + (g_rand_int_range(ad->rnd, 0, bottom_settings.scale / 2) * bottom_settings.scale / 100));
+    
+       /* from -15 to ad.xmax+15 */
+       jj = 0;
+       if(nfa != 0){
+           for(jj = 0; jj < 10; jj++){
+               x = g_rand_int_range(ad->rnd, 0, ad->xmax + 30) - 15;
+               for(l = 0;l < nfa; l++)
+                   if(x > (bx[l] - bottom_stuff.width) && x < (bx[l] + bw[l])) break;
+               if(l == nfa) break;
+           }
+           
+       }
+       else
+           x = g_rand_int_range(ad->rnd, 0, ad->xmax + 30) - 15;
+
+       /* If we fail to put plants too many times.. */
+       if(jj == 10) continue;
+
+       /* Are they too close? */
+       if(abs(x - old_x) < bottom_stuff.width)
+           if((old_current_loc + old_height) > (bottom_stuff.height + current_loc)){
+               current_loc = old_current_loc + old_height - bottom_stuff.height + 5;
+           }
+       
+    
+       draw_image_bg(x, current_loc-bottom_stuff.height + 4,
+                     0, g_rand_int_range(ad->rnd, 0, 2),
+                     &bottom_stuff);
+    
+       old_current_loc = current_loc;
+       current_loc += g_rand_int_range(ad->rnd, 0, step_max);
+
+       old_height = bottom_stuff.height;
+       old_x = x;
+    
+       g_object_unref(bottom_stuff.pixbuf);
+
+       bottom_stuff.image = NULL;
+
+    }
+
+}
+
+void bottom_exit(void)
+{
+
+}
diff --git a/sherman-aquarium/shermans/bottom.h b/sherman-aquarium/shermans/bottom.h
new file mode 100644 (file)
index 0000000..064bec4
--- /dev/null
@@ -0,0 +1,41 @@
+#ifndef BOTTOM_H
+#define BOTTOM_H
+
+#define MAXPLANTS 4
+
+#define DEFAULT_HAWTHORNE 2
+#define DEFAULT_BDWELLER 2
+
+#define BOTTOM_SCALE 30
+
+#define NUMBOTTOMIMAGES 3
+
+/* Number of plants, stones and none moving bottom things */
+/* Only change if you add new graphics. */
+#define NUMOFBOTTOMITEMS 18
+
+#define DEFAULT_BOTTOM_ANIMALS 1
+
+
+
+typedef struct
+{
+    int have_sea_floor;
+    int max_plants;
+    int random_plants;
+    int scale;
+    int num_bottom_animals;
+} Bottom_settings;
+
+
+typedef struct {
+    char *image;
+    int flags;
+} Bottom;
+
+
+Bottom_settings *bottom_get_settings_ptr(void);
+void bottom_init(void);
+void bottom_exit(void);
+
+#endif
diff --git a/sherman-aquarium/shermans/bubble.c b/sherman-aquarium/shermans/bubble.c
new file mode 100644 (file)
index 0000000..4b5a49e
--- /dev/null
@@ -0,0 +1,123 @@
+
+#include <stdlib.h>
+#include <string.h>
+
+
+#include "aquarium.h"
+#include "bubble.h"
+#include "draw.h"
+#include "soundeffects.h"
+
+/* current bubble count */
+static int nr_bubbles;
+
+static Bubble *bubbles = NULL;
+static SA_Image bubbles_image_data;
+
+
+static int bubble_state_change;
+
+static Bubble_settings bubble_settings;
+
+Bubble_settings *bubble_get_settings_ptr(void)
+{
+    return &bubble_settings;
+}
+
+void bubble_exit(void)
+{
+    if(bubbles_image_data.pixbuf != NULL)
+       g_object_unref(bubbles_image_data.pixbuf);
+    memset(&bubbles_image_data, 0, sizeof(SA_Image));
+}
+
+void bubble_init(void)
+{
+    AquariumData *ad;
+
+    ad = aquarium_get_settings_ptr();
+
+    nr_bubbles = 0;
+    bubble_state_change = ad->ymax / (BUBBLES_FRAMES - 1);
+
+
+    if(bubbles!=NULL)
+       g_free(bubbles);
+
+    bubbles = g_malloc0(sizeof(Bubble) * bubble_settings.max_bubbles);
+
+    /* Load bubbles */
+
+    load_image("bubbles.png", &bubbles_image_data, BUBBLES_FRAMES);
+
+}
+
+void bubble_update(void)
+{
+    int i, x, y;
+    int seq;
+    AquariumData *ad;
+
+    ad = aquarium_get_settings_ptr();
+
+
+    for(i = 0; i < nr_bubbles; i++){
+       aquarium_clean_image(bubbles[i].x, bubbles[i].y,
+                            bubbles_image_data.width, 
+                            bubbles_image_data.height);
+    }
+
+
+    /* make a new bubble, if needed */
+    if(((nr_bubbles < bubble_settings.max_bubbles)) && (g_rand_int_range(ad->rnd, 0, 100) <= 32)) {
+       bubbles[nr_bubbles].x = ad->viewpoint_start_x + (g_rand_int_range(ad->rnd, 0, ad->xmax));
+       bubbles[nr_bubbles].y = ad->viewpoint_start_y + ad->ymax;
+
+       bubbles[nr_bubbles].speed = g_rand_double_range(ad->rnd, 1.0/13.0, 12.0/13.0);
+
+       nr_bubbles++;
+    }
+
+
+
+    /* Update and draw the bubbles */
+    for (i = 0; i < nr_bubbles; i++) {
+
+       /* Move the bubble vertically */
+       bubbles[i].y -= bubbles[i].speed;
+
+       /* Did we lose it? */
+       if (bubbles[i].y < ad->viewpoint_start_y) {
+           /* Yes; nuke it */
+           bubbles[i].x = bubbles[nr_bubbles - 1].x;
+           bubbles[i].y = bubbles[nr_bubbles - 1].y;
+           bubbles[i].speed = bubbles[nr_bubbles - 1].speed;
+           nr_bubbles--;
+
+           /* We must check the previously last bubble, which is
+            * now the current bubble, also. */
+           i--;
+           continue;
+       }
+
+       /* Draw the bubble */
+       x = bubbles[i].x - ad->viewpoint_start_x;
+       y = ((int) bubbles[i].y) - ad->viewpoint_start_y;
+
+       /* calculate bubble sequence - 0 to 4 (determine bubble sprite idx) */
+       seq = y / bubble_state_change;
+
+       /* draw the bubble, using offset-to-center calculated from current
+        * sequence, and make the bubble bigger as we go up. 120 - alpha */
+
+       if(seq < BUBBLES_FRAMES){
+           aquarium_draw_pic_alpha(&bubbles_image_data, bubbles_image_data.width, 
+                          bubbles_image_data.height, x, y,
+                          seq, 120);
+       }
+
+    }
+
+    /* Sometimes play bubble sound */
+    sound_bubbles();
+}
diff --git a/sherman-aquarium/shermans/bubble.h b/sherman-aquarium/shermans/bubble.h
new file mode 100644 (file)
index 0000000..e7c4142
--- /dev/null
@@ -0,0 +1,32 @@
+#ifndef BUBBLE_H
+#define BUBBLE_H
+
+/* The number of frames for a bubble */
+/* Don't change this, if you are not knowing what you are doing! */
+#define BUBBLES_FRAMES 5
+
+/* Is this physically illegal? */
+#define VARIABLE_BUBBLE_SPEED
+
+
+
+typedef struct {
+    int x;                     /* x position */
+    float y;                   /* y position */
+    float speed;               /* The speed upwards the bubble has.
+                                  Is this physically wrong? Does all bubble
+                                  rise to the surface with the same speed? */
+} Bubble;
+
+
+typedef struct
+{
+    int max_bubbles;
+} Bubble_settings;
+
+Bubble_settings *bubble_get_settings_ptr(void);
+void bubble_init(void);
+void bubble_exit(void);
+void bubble_update(void);
+
+#endif
diff --git a/sherman-aquarium/shermans/clock.c b/sherman-aquarium/shermans/clock.c
new file mode 100644 (file)
index 0000000..e9944a8
--- /dev/null
@@ -0,0 +1,531 @@
+
+
+/* Different kind of displaying the time. */
+
+
+#include <string.h>
+#include <stdio.h>
+#include <math.h>
+#include <time.h>
+#include <gai/gai.h>
+
+
+
+#include "aquarium.h"
+#include "clock.h"
+#include "draw.h"
+
+/* This is for the Fuzzy clock */
+#define FUZZY_IMAGES 18
+#define TWENTY 12
+#define QUARTER 13
+#define HALF 14
+#define OCLOCK 15
+#define PAST 16
+#define TO 17
+
+static SA_Image *fuzzy_clock_data=NULL;
+
+
+/* This is for the digital clock*/
+#define DIGITAL_IMAGES 10
+#define COLON 10
+static SA_Image dig, colon;
+
+
+/* This is for the analog clock */
+static int old_sec, oldxmax, oldymax;;
+static int sec_x,sec_y,min_x,min_y,hour_x,hour_y;
+static unsigned int analog_final_colour_hour;
+static unsigned int analog_final_colour_min;
+static unsigned int analog_final_colour_sec;
+
+
+/* Save settings lives inside this struct */
+static Clock_settings clock_settings;
+static AquariumData *ad;
+
+
+static int what_is_init;
+
+/* This returns the clock settings structure. */
+Clock_settings *clock_get_settings_ptr(void)
+{
+    return &clock_settings;
+}
+
+
+
+
+void clock_exit_digital(void)
+{
+
+    if(dig.pixbuf!=NULL)
+       g_object_unref(dig.pixbuf);
+    if(colon.pixbuf!=NULL)
+       g_object_unref(colon.pixbuf);
+
+    memset(&dig,0,sizeof(SA_Image));
+    memset(&colon,0,sizeof(SA_Image));
+
+}
+void clock_exit_analog(void)
+{
+    /* Nothing to do here */
+}
+
+void clock_exit_fuzzy(void)
+{
+    int i;
+
+    for(i=0;;i++){
+       if(fuzzy_clock_data[i].image==NULL) break;
+       g_object_unref(fuzzy_clock_data[i].pixbuf);
+    }
+    
+    g_free(fuzzy_clock_data);
+    fuzzy_clock_data=NULL;
+}
+
+
+void clock_exit(void)
+{
+    if(what_is_init == CLOCK_DIGITAL)
+       clock_exit_digital();
+    if(what_is_init == CLOCK_ANALOG)
+       clock_exit_analog();
+    if(what_is_init == CLOCK_FUZZY)
+       clock_exit_fuzzy();
+}
+
+
+
+
+void clock_init_digital(void)
+{
+
+
+    what_is_init = CLOCK_DIGITAL;
+
+    if(dig.image!=NULL)
+       clock_exit_digital();
+
+    if(clock_settings.digital_fontsize == CLOCK_LARGE_FONT){
+       load_image("clock/digital/bigfigures.png", &dig, DIGITAL_IMAGES);
+       load_image("clock/digital/bigcolon.png",&colon,1);
+    }
+    else{
+       load_image("clock/digital/smallfigures.png", &dig, DIGITAL_IMAGES);
+       load_image("clock/digital/smallcolon.png", &colon,1);
+    }
+    
+
+    change_colour_to(clock_settings.digital_colour.r,
+                    clock_settings.digital_colour.g,
+                    clock_settings.digital_colour.b,
+                    dig.image,dig.pixbuf, FALSE);
+    change_colour_to(clock_settings.digital_colour.r,
+                    clock_settings.digital_colour.g,
+                    clock_settings.digital_colour.b,
+                    colon.image,colon.pixbuf, FALSE);
+
+}
+
+void clock_init_fuzzy(void)
+{
+    int i;
+    char *fuzzy_image_names[] ={
+       "clock/fuzzy/One.png",
+       "clock/fuzzy/Two.png",
+       "clock/fuzzy/Three.png",
+       "clock/fuzzy/Four.png",
+       "clock/fuzzy/Five.png",
+       "clock/fuzzy/Six.png",
+       "clock/fuzzy/Seven.png",
+       "clock/fuzzy/Eight.png",
+       "clock/fuzzy/Nine.png",
+       "clock/fuzzy/Ten.png",
+       "clock/fuzzy/Eleven.png",
+       "clock/fuzzy/Twelve.png",
+       "clock/fuzzy/Twenty.png",
+       "clock/fuzzy/Quarter.png",
+       "clock/fuzzy/Half.png",
+       "clock/fuzzy/Oclock.png",
+       "clock/fuzzy/Past.png",
+       "clock/fuzzy/To.png",
+       NULL
+    };
+
+
+    what_is_init = CLOCK_FUZZY;
+
+    /* Should be possible to call this init more than once */
+    if(fuzzy_clock_data!=NULL)
+       clock_exit_fuzzy();
+
+    fuzzy_clock_data = g_malloc0(sizeof(SA_Image)*FUZZY_IMAGES);
+
+    for(i=0;;i++){
+       if(fuzzy_image_names[i]==NULL) break;
+
+       load_image(fuzzy_image_names[i], &fuzzy_clock_data[i],1);
+       change_colour_to(clock_settings.fuzzy_colour.r,
+                        clock_settings.fuzzy_colour.g,
+                        clock_settings.fuzzy_colour.b,
+                        fuzzy_clock_data[i].image,fuzzy_clock_data[i].pixbuf, FALSE);
+       
+    }
+
+}
+
+void clock_init_analog(void)
+{
+
+    what_is_init = CLOCK_ANALOG;
+
+
+    /* Setting up colours */
+    analog_final_colour_hour = 
+       (((unsigned int)clock_settings.analog_colour_hour.r)<<16) +
+       (((unsigned int)clock_settings.analog_colour_hour.g)<<8) +
+       (unsigned int)clock_settings.analog_colour_hour.b;
+
+    analog_final_colour_min = 
+       (((unsigned int)clock_settings.analog_colour_min.r)<<16) +
+       (((unsigned int)clock_settings.analog_colour_min.g)<<8) +
+       (unsigned int)clock_settings.analog_colour_min.b;
+
+    if(clock_settings.analog_seconds)
+       analog_final_colour_sec = 
+           (((unsigned int)clock_settings.analog_colour_sec.r)<<16) +
+           (((unsigned int)clock_settings.analog_colour_sec.g)<<8) +
+           (unsigned int)clock_settings.analog_colour_sec.b;
+
+    old_sec=oldxmax=oldymax=-1;
+}
+
+
+/* Loads graphics - Can be called upon a restart or changed settings. */
+
+void clock_init(void)
+{
+
+    ad = aquarium_get_settings_ptr();
+
+    if (clock_settings.type == CLOCK_OFF)
+       return;
+
+    if(clock_settings.type == CLOCK_DIGITAL)
+       clock_init_digital();
+
+    if(clock_settings.type == CLOCK_ANALOG)
+       clock_init_analog();
+
+    if(clock_settings.type == CLOCK_FUZZY)
+       clock_init_fuzzy();
+
+}
+
+
+
+
+void clock_update_fuzzy(int hour, int min, int sec)
+{
+    int i,x=4,y=4;
+    int to_or_past, ptr2img[5], num_ptr;
+    int largest_one=-1;
+
+    /* Convert min to closes 5 min */
+    min=((int)((min*2+5)/10)*5);
+
+    if(min>30){
+       min=60-min;
+       to_or_past=TO;
+       hour++;
+    }
+    else
+       to_or_past=PAST;
+
+
+    /* Convert from 24 format to 12 hour format.*/
+    if(hour>12) hour-=12;
+
+    /* X minutes past zero doesnt exist */
+    if(hour==0) hour=12;
+
+    /* Most have tree lines */
+    num_ptr = 3;
+    ptr2img[1]=to_or_past;
+    ptr2img[2]=hour-1;
+
+    switch(min){
+    case 0:
+       num_ptr = 2;
+       ptr2img[0]=hour-1;
+       ptr2img[1]=OCLOCK;
+       break;
+    case 5:
+       ptr2img[0]=4;   /* Five */
+       break;
+    case 10:
+       ptr2img[0]=9;   /* Ten */
+       break;
+    case 15:
+       ptr2img[0]=QUARTER;
+       break;
+    case 20:
+       ptr2img[0]=TWENTY;
+       break;
+    case 25:
+       num_ptr = 4;
+       ptr2img[0]=TWENTY;
+       ptr2img[1]=4;
+       ptr2img[2]=to_or_past;
+       ptr2img[3]=hour-1;
+       break;
+    case 30:
+       ptr2img[0]=HALF;
+       break;
+
+    default:
+       printf("I don't understand this kind of time.sorry\n");
+    }
+
+    /* Assume the images have about the same height */
+
+    if(clock_settings.vert == TOP)
+       y=2;
+    else if(clock_settings.vert == CENTER)
+       y=(ad->ymax - num_ptr*(fuzzy_clock_data[0].height+2))/2;
+    else if(clock_settings.vert == BOTTOM)
+       y=ad->ymax - num_ptr*(fuzzy_clock_data[0].height+2)-2;
+
+
+    /* Find the widest one */
+    for(i=0;i<num_ptr;i++){
+       if(largest_one < fuzzy_clock_data[ptr2img[i]].width)
+           largest_one = fuzzy_clock_data[ptr2img[i]].width;
+    }
+    
+
+    for(i=0;i<num_ptr;i++){
+           
+       if(clock_settings.horz == LEFT)
+           x = 2+(largest_one - fuzzy_clock_data[ptr2img[i]].width)/2;
+       else if (clock_settings.horz == CENTER)
+           x=(ad->xmax-fuzzy_clock_data[ptr2img[i]].width)/2;
+       else if (clock_settings.horz == RIGHT)
+           x=(ad->xmax-fuzzy_clock_data[ptr2img[i]].width - 
+              (largest_one - fuzzy_clock_data[ptr2img[i]].width)/2-2);
+
+       draw_pic_alpha(fuzzy_clock_data[ptr2img[i]].image,
+                      fuzzy_clock_data[ptr2img[i]].width,
+                      fuzzy_clock_data[ptr2img[i]].height,
+                      x,y,0,(int)clock_settings.fuzzy_colour.alpha);
+       y+=fuzzy_clock_data[ptr2img[i]].height+2;
+    }
+
+
+}
+
+/* Analoge clock */
+
+void clock_update_analog(int hour, int min, int sec)
+{
+    int size_l_x,size_r_x,size_b_y, size_t_y;
+    int center_x=0, center_y=0;
+    int curr_x, curr_y;
+
+
+    if(clock_settings.horz == RIGHT){
+       if (ad->xmax < ad->ymax) center_x = ad->xmax/2;
+       else center_x=ad->xmax-ad->ymax/2;
+    }
+    else if(clock_settings.horz == CENTER)
+       center_x = ad->xmax/2;
+
+    else if(clock_settings.horz == LEFT){
+       if (ad->xmax < ad->ymax) center_x = ad->xmax/2;
+       else center_x=ad->ymax/2;
+    }
+
+    if(clock_settings.vert == TOP){
+       if (ad->xmax > ad->ymax) center_y = ad->ymax/2;
+       else center_y=ad->xmax/2;
+    }
+    else if(clock_settings.vert == CENTER)
+       center_y=ad->ymax/2;
+
+    else if(clock_settings.vert == BOTTOM){
+       if (ad->xmax > ad->ymax) center_y = ad->ymax/2;
+       else center_y=ad->ymax-ad->xmax/2;
+    }
+
+
+
+
+    /* Check if we shall keep the clock circular or not.*/
+    if(clock_settings.analog_keep_circular){
+       if(ad->xmax > ad->ymax)
+           size_l_x=size_r_x=size_t_y=size_b_y=center_y; //ad->ymax;
+       else
+           size_l_x=size_r_x=size_t_y=size_b_y=center_x ;//ad->xmax;
+    }
+    else{
+       size_r_x = ad->xmax - center_x;
+       size_l_x = center_x;
+       size_t_y = center_y;
+       size_b_y = ad->ymax - center_y;
+    }
+
+
+    /* Only calculate new placement when it is nessecary, not each frame */
+
+    if(clock_settings.analog_seconds){
+       if(old_sec!=sec || oldxmax!=ad->xmax || oldymax!=ad->ymax){
+           old_sec=sec;
+
+           if(sec>30) curr_x = size_l_x;
+           else curr_x = size_r_x;
+           if(sec <15 || sec >45) curr_y = size_t_y;
+           else curr_y=size_b_y;
+           
+           sec_x=(int)(((float)curr_x*0.9)*cos((2*M_PI*(float)sec)/60.0-M_PI/2));
+           sec_y=(int)(((float)curr_y*0.9)*sin((2*M_PI*(float)sec)/60.0-M_PI/2));
+       }
+    }
+
+    if(sec==0 || oldxmax!=ad->xmax || oldymax!=ad->ymax){
+
+       if(min>30) curr_x = size_l_x;
+       else curr_x = size_r_x;
+       if(min <15 || min >45) curr_y = size_t_y;
+       else curr_y=size_b_y;
+
+       min_x=(int)(((float)curr_x*0.74)*cos((2*M_PI*(float)min)/60.0-M_PI/2));
+       min_y=(int)(((float)curr_y*0.74)*sin((2*M_PI*(float)min)/60.0-M_PI/2));
+
+       if(hour>6) curr_x = size_l_x;
+       else curr_x = size_r_x;
+       if(sec <3 || sec >9) curr_y = size_t_y;
+       else curr_y=size_b_y;
+
+       hour_x=(int)(((float)curr_x*0.58)*cos(2*M_PI*((float)hour+(float)min/60.0)/12.0-M_PI/2));
+       hour_y=(int)(((float)curr_y*0.58)*sin(2*M_PI*((float)hour+(float)min/60.0)/12.0-M_PI/2));
+    }
+
+    oldxmax=ad->xmax;
+    oldymax=ad->ymax;
+   
+    anti_line(center_x,center_y,
+             center_x+hour_x,
+             center_y+hour_y,
+             1,analog_final_colour_hour,1);
+
+    anti_line(center_x,center_y,
+             center_x+min_x,
+             center_y+min_y,
+             1,analog_final_colour_min,1);
+    
+    if(clock_settings.analog_seconds){
+       anti_line(center_x,center_y,
+                 center_x+sec_x,
+                 center_y+sec_y,
+                 1,analog_final_colour_sec,1);
+    }
+
+}
+
+void clock_update_digital(int hour, int min, int sec)
+{
+    int sum_width, list[10], list_max,i;
+    int x=0,y=0;
+
+    list[0]=hour/10;
+    list[1]=hour%10;
+    list[2]=COLON;
+    list[3]=min/10;
+    list[4]=min%10;
+    list_max=5;
+
+
+
+    if(clock_settings.digital_seconds) {
+       list[5]=COLON;
+       list[6]=sec/10;
+       list[7]=sec%10;
+       list_max=8;
+       sum_width = 2*colon.width + 6*dig.width;
+    }
+    else {
+       sum_width = colon.width + 4*dig.width;
+    }
+
+
+
+    if(clock_settings.horz == LEFT)
+       x = 2;
+    else if(clock_settings.horz == CENTER)
+       x = (ad->xmax - sum_width)/2;
+    else if(clock_settings.horz == RIGHT)
+       x = ad->xmax - sum_width - 2;
+
+    if(clock_settings.vert == TOP)
+       y = 2;
+    else if(clock_settings.vert == CENTER)
+       y = (ad->ymax - dig.height)/2;
+    else if(clock_settings.vert == BOTTOM)
+       y = ad->ymax - dig.height - 2;
+
+
+    /*Digital Clock*/
+
+    for(i=0;i<list_max;i++){
+       if(list[i]==COLON){
+           if(clock_settings.digital_blinking && (sec%2)){
+               x+=colon.width;
+               continue;
+           }
+           draw_pic_alpha(colon.image, colon.width, colon.height, x, y,
+                          0, (int)clock_settings.digital_colour.alpha);
+               x+=colon.width;
+       }
+       else{
+           draw_pic_alpha(dig.image, dig.width, dig.height, x, y,
+                          list[i], (int)clock_settings.digital_colour.alpha);
+           x+=dig.width;
+       }
+    }  
+
+}
+
+
+
+/* Shall be called both before and after fish are drawn */
+void clock_update(int beforeorafter)
+{
+    time_t now;
+    struct tm *mt;
+
+    if (clock_settings.type == CLOCK_OFF)
+       return;
+
+    if(beforeorafter==clock_settings.draw){
+
+       now = time(NULL);
+       mt = localtime(&now);
+
+
+       if(clock_settings.type == CLOCK_DIGITAL)
+           clock_update_digital(mt->tm_hour,mt->tm_min,mt->tm_sec);
+       if(clock_settings.type == CLOCK_ANALOG)
+           clock_update_analog(mt->tm_hour,mt->tm_min,mt->tm_sec);
+       if(clock_settings.type == CLOCK_FUZZY)
+           clock_update_fuzzy(mt->tm_hour,mt->tm_min,mt->tm_sec);
+    }
+}
+
+
+
+
diff --git a/sherman-aquarium/shermans/clock.h b/sherman-aquarium/shermans/clock.h
new file mode 100644 (file)
index 0000000..b060317
--- /dev/null
@@ -0,0 +1,61 @@
+
+/* Header file for Sherman's aquarium's clock <cja@gmx.net> */
+
+#ifndef CLOCK_H
+#define CLOCK_H
+
+/* Kind of clock */ 
+#define CLOCK_OFF 0
+#define CLOCK_DIGITAL 2
+#define CLOCK_ANALOG 1
+#define CLOCK_FUZZY 3
+
+#define CLOCK_LARGE_FONT 0
+#define CLOCK_SMALL_FONT 1
+
+/* Settings that are saved, gui selected or given at command line */
+
+typedef struct
+{
+    int type;                  /* 0=Off, 1=Digital, 2=Analog, 3=Fuzzy */
+    //    int with_seconds;    /* 0=No seconds, 1=With seconds */
+    //    int when_update;     /* 0=Updates before fish, 1=After */
+    int horz;                  /* Horizontal placement, 0=Left, 1=Center, 2=Right*/
+    int vert;                  /* Vertical placement, 0=Top, 1=Center, 2=Bottom*/
+       
+    /* For the digital clock */
+    GaiColor digital_colour;   /* RGB settings for digital clock */
+
+
+    int digital_blinking;      /* If no seconds, 1=Blink colon */
+    //    int digital_font_size;       /* 0=Small font, 1=Large font */
+
+    /* For the fuzzy clock */
+    GaiColor fuzzy_colour;             /* Color for fuzzy clock */
+
+    /* For the analog clock */
+    GaiColor analog_colour_hour;       /* Colour of all the pointers */
+    GaiColor analog_colour_min;
+    GaiColor analog_colour_sec;
+
+    int analog_keep_circular;  /* 0=Size adjusts after size of applet, 
+                                  1=Make it circular. */
+
+    /* New better suited for GAI pref */
+    int analog_seconds;
+    int digital_seconds;
+
+
+    int draw;
+    int digital_fontsize;
+
+} Clock_settings;
+
+
+
+void clock_init(void);
+void clock_update(int);
+void clock_exit(void);
+Clock_settings *clock_get_settings_ptr(void);
+
+#endif
diff --git a/sherman-aquarium/shermans/date.c b/sherman-aquarium/shermans/date.c
new file mode 100644 (file)
index 0000000..4db64d3
--- /dev/null
@@ -0,0 +1,153 @@
+
+#define NUM_FIGURES 10
+#define NUM_MONTHS 12
+#define NUM_DAYS 7
+
+#include <string.h>
+#include <stdio.h>
+#include <time.h>
+#include <gai/gai.h>
+#include "aquarium.h"
+#include "date.h"
+#include "draw.h"
+
+static SA_Image figures, months, days;
+static Date_settings date_settings;
+static AquariumData *ad;
+
+static int month_width[]={16,16,20,18,20,16,16,20,17,18,19,18};
+
+Date_settings *date_get_settings_ptr(void)
+{
+    return &date_settings;
+}
+
+
+void date_init()
+{
+    ad = aquarium_get_settings_ptr();
+
+    if(!date_settings.on)
+       return;
+
+    if(figures.image!=NULL)
+       date_exit();
+
+    load_image("clock/date/figures.png",&figures, NUM_FIGURES);
+
+    load_image("clock/date/weekdays.png",&days, NUM_DAYS);
+
+    load_image("clock/date/months.png", &months, NUM_MONTHS);
+
+
+    change_colour_to(date_settings.c.r,
+                    date_settings.c.g,
+                    date_settings.c.b,
+                    figures.image,
+                    figures.pixbuf, TRUE);
+
+
+    change_colour_to(date_settings.c.r,
+                    date_settings.c.g,
+                    date_settings.c.b,
+                    days.image,
+                    days.pixbuf, TRUE);
+
+    change_colour_to(date_settings.c.r,
+                    date_settings.c.g,
+                    date_settings.c.b,
+                    months.image,
+                    months.pixbuf,TRUE);
+
+
+}
+
+void date_exit(void)
+{
+    if(figures.pixbuf!=NULL)
+       g_object_unref(figures.pixbuf);
+    if(days.pixbuf!=NULL)
+       g_object_unref(days.pixbuf);
+    if(months.pixbuf!=NULL)
+       g_object_unref(months.pixbuf);
+
+    memset(&figures,0,sizeof(SA_Image));
+    memset(&days,0,sizeof(SA_Image));
+    memset(&months,0,sizeof(SA_Image));
+
+}
+
+void date_update(int beforeorafter)
+{
+    int x=0,y=0;
+    int wsize;
+    time_t now;
+    struct tm *mt;
+
+    if(!date_settings.on)
+       return;
+
+
+    if(beforeorafter==date_settings.draw) {
+       now = time(NULL);
+       mt = localtime(&now);
+
+       wsize=2*figures.width+days.width+month_width[mt->tm_mon]+1;
+
+
+       /* If before day 10 in month */
+       if(mt->tm_mday <10) wsize-=figures.width;
+
+    
+       switch(date_settings.vert)
+           {
+           case TOP:
+               y=2;
+               break;
+           case CENTER:
+               y=(ad->ymax-figures.height)/2;
+               break;
+           case BOTTOM:
+               y=ad->ymax-figures.height-1;
+               break;
+           }
+
+       switch(date_settings.horz)
+           {
+           case LEFT:
+               x=0;
+               break;
+           case CENTER:
+               x=(ad->xmax-wsize)/2;
+               break;
+           case RIGHT:
+               x=ad->xmax-wsize;
+           }
+
+       draw_pic_alpha(days.image,
+                      days.width,
+                      days.height,
+                      x,y,mt->tm_wday,date_settings.c.alpha);
+       x+=days.width+2;
+    
+       if(mt->tm_mday >9){
+           draw_pic_alpha(figures.image,
+                          figures.width,
+                          figures.height,
+                          x,y,mt->tm_mday/10,date_settings.c.alpha);
+           x+=figures.width-1;
+       }
+       draw_pic_alpha(figures.image,
+                      figures.width,
+                      figures.height,
+                      x,y,mt->tm_mday%10,date_settings.c.alpha);
+
+       x+=figures.width;
+
+       draw_pic_alpha(months.image,
+                      months.width,
+                      months.height,
+                      x,y,mt->tm_mon,date_settings.c.alpha);
+    }
+
+}
diff --git a/sherman-aquarium/shermans/date.h b/sherman-aquarium/shermans/date.h
new file mode 100644 (file)
index 0000000..5879de9
--- /dev/null
@@ -0,0 +1,23 @@
+
+/* Header file for Sherman's aquarium's date displayer <cja@gmx.net> */
+
+#ifndef DATE_H
+#define DATE_H
+
+typedef struct
+{
+    int on;                    /* Are we displaying date or not? */
+    int draw;
+    int horz;
+    int vert;
+
+    GaiColor c;
+    
+} Date_settings;
+
+void date_init(void);
+void date_update(int);
+void date_exit(void);
+Date_settings *date_get_settings_ptr(void);
+#endif
+
diff --git a/sherman-aquarium/shermans/defines.h b/sherman-aquarium/shermans/defines.h
new file mode 100644 (file)
index 0000000..2fe2073
--- /dev/null
@@ -0,0 +1,57 @@
+#ifndef DEFINES_H
+#define DEFINES_H
+
+
+/*
+  Magic for the graphics function to know when they are called
+  after or before the fish are drawn.
+  Best kept here.
+*/
+
+#define DRAW_BEFORE 0
+#define DRAW_AFTER 1
+
+#define MAX_COMICS 8
+
+#define SHERMAN_PATH "shermans_aquarium/"
+
+#define LEFT 0
+#define CENTER 1
+#define RIGHT 2
+#define TOP 0
+#define BOTTOM 2
+
+
+
+
+/* This defines how large the CPU load buffer shall be. Having a
+   small value makes the termometer response very fast on the
+   different CPU load. With 20 it is responsing quite smooth.
+
+*/
+
+#define CPUSMOOTHNESS 20
+
+/* perform clipping outside this range, also this is the size of the
+ * drawing area */
+/* This is how much that is seen on the screen of the aquarium */
+
+#define XMIN 4
+#define XMAX 56
+#define YMIN 4
+#define YMAX 56
+
+#define WINDOWSIZE_X 64
+#define WINDOWSIZE_Y 64
+
+
+/* How large the aquarium that the fishes lives in. */
+
+#define VIRTUAL_AQUARIUM_DX 80
+#define VIRTUAL_AQUARIUM_DY 40
+
+#define VIEWPOINT_START_X  60
+#define VIEWPOINT_START_Y  40
+
+
+#endif
diff --git a/sherman-aquarium/shermans/draw.c b/sherman-aquarium/shermans/draw.c
new file mode 100644 (file)
index 0000000..57fd6f8
--- /dev/null
@@ -0,0 +1,413 @@
+#include <stdlib.h>
+#include "draw.h"
+#include "aquarium.h"
+
+
+/* This is a special version of draw_image() that draws parts of a 
+   horizontal stored multi image */
+
+void draw_image_alpha_h(int x, int y, int idx, int alpha,SA_Image *image)
+{
+
+    AquariumData *ad;
+    /* bounding box of the clipped sprite */
+    int dw, di, dh, ds;
+                       
+    /* loop counters */
+    int w, h, pos, fidx;
+    int ypos,pic_pos;
+
+
+
+    ad = aquarium_get_settings_ptr();
+
+    /* completely off the screen, don't bother drawing */
+    if ((y < (-image->height)) || (y > (ad->ymax)) || (x > (ad->xmax)) || (x < -(image->width)))
+       return;
+
+
+    /* do clipping for top side */
+    ds = 0;
+    if (y < 0)
+       ds = -(y);
+
+    /* do clipping for bottom side */
+    dh = image->height;
+    if ((y + image->height) > ad->ymax)
+       dh = ad->ymax - y;
+    
+    /* do clipping for right side */
+    dw = image->width;
+    if ((x + image->width) > ad->xmax)
+       dw = image->width - ((x + image->width) - ad->xmax);
+
+    /* do clipping for left side */
+    di = 0;
+    if (x < 0)
+       di = -(x);
+
+    fidx = idx*image->width*4;
+
+
+
+
+    for (h = ds; h < dh; h++) {
+       /* offset to beginning of current row */
+       ypos = (h + y) * ad->xmax * 3;
+       for (w = di; w < dw; w++) {
+           pic_pos = h * image->rowstride + w * 4 + fidx;
+           if (image->image[pic_pos + 3] != 0) {
+               pos = ypos + w * 3 + x * 3;
+               ad->rgb[pos] = ((256-alpha) * (int) ad->rgb[pos]
+                               + alpha * (int) image->image[pic_pos]) >> 8;
+
+               ad->rgb[pos + 1] = ((256-alpha) * (int) ad->rgb[pos + 1]
+                                   +  alpha * (int) image->image[pic_pos +
+                                                                        1]) >> 8;
+
+               ad->rgb[pos + 2] = ((256-alpha) * (int) ad->rgb[pos + 2]
+                                   + alpha * (int) image->image[pic_pos +
+                                                                        2]) >> 8;
+
+           }
+       }
+    }
+}
+
+
+
+
+static void draw_image_base(unsigned char *buff, int x, int y, int idx, int rev, SA_Image *image)
+{
+
+    AquariumData *ad;
+    /* bounding box of the clipped sprite */
+    int dw, di, dh, ds;
+                       
+
+    int w, h, pos, fidx;
+    int q, ypos, pic_pos;
+
+    ad = aquarium_get_settings_ptr();
+
+    /* completely off the screen, don't bother drawing */
+    if ((y < (-image->height)) || (y > (ad->ymax)) || (x > (ad->xmax)) || (x < -(image->width)))
+       return;
+
+
+    /* do clipping for top side */
+    ds = 0;
+    if (y < 0)
+       ds = -(y);
+
+    /* do clipping for bottom side */
+    dh = image->height;
+    if ((y + image->height) > ad->ymax)
+       dh = ad->ymax - y;
+    
+    /* do clipping for right side */
+    dw = image->width;
+    if ((x + image->width) > ad->xmax)
+       dw = image->width - ((x + image->width) - ad->xmax);
+
+    /* do clipping for left side */
+    di = 0;
+    if (x < 0)
+       di = -(x);
+
+    
+    fidx = (int) ((float)idx * (float)image->full_height / (float)image->frames) * 
+       gdk_pixbuf_get_rowstride(image->pixbuf);
+
+       /*image->width * image->height * 4 * idx;*/
+
+    if (rev) {
+
+       /* The fish is moving in different direction */
+       for (h = ds; h < dh; h++) {
+           /* offset to beginning of current row */
+           ypos = (h + y) * ad->xmax * 3;
+           q = 0;
+           for (w = dw; w > di; w--) {
+               pic_pos =
+                   h * image->width * 4 + (q + (image->width - dw)) * 4 + fidx;
+               if (image->image[pic_pos + 3] != 0) {
+                   pos = ypos + w * 3 + x * 3 - 3;
+                   buff[pos] = image->image[pic_pos];
+                   buff[pos + 1] = image->image[pic_pos + 1];
+                   buff[pos + 2] = image->image[pic_pos + 2];
+               }
+               q++;
+           }
+
+
+       }
+    } else {
+
+       for (h = ds; h < dh; h++) {
+           /* offset to beginning of current row */
+           ypos = (h + y) * ad->xmax * 3;
+           for (w = di; w < dw; w++) {
+               pic_pos = h * image->width * 4 + w * 4 + fidx;
+               pos = ypos + w * 3 + x * 3;
+               if (image->image[pic_pos + 3] != 0) {
+                   buff[pos] = image->image[pic_pos];
+                   buff[pos + 1] = image->image[pic_pos + 1];
+                   buff[pos + 2] = image->image[pic_pos + 2];
+               }
+           }
+
+       }
+
+    }
+}
+
+void draw_image(int x, int y, int idx, int rev, SA_Image *image)
+{
+    AquariumData *ad;
+    ad = aquarium_get_settings_ptr();
+
+    draw_image_base(ad->rgb,x,y,idx,rev,image);
+}
+
+void draw_image_bg(int x, int y, int idx, int rev, SA_Image *image)
+{
+    AquariumData *ad;
+    ad = aquarium_get_settings_ptr();
+
+    draw_image_base(ad->bgr,x,y,idx,rev,image);
+}
+
+
+
+
+/* draw a fish into ad.rgb with alpha-blend */
+void
+draw_pic_alpha(unsigned char *buff, int width, int height, int x,
+              int y, int frame, int alpha)
+{
+    /* bounding box of the clipped sprite */
+    int dw, di, dh, ds;
+    int w, h, pos, fidx;
+    int ypos, pic_pos;
+
+    AquariumData *ad;
+
+    ad = aquarium_get_settings_ptr();
+
+    /* completely off the screen, don't bother drawing */
+    if ((y < -(height)) || (y > ad->ymax) || (x > ad->xmax) || (x < -(width)))
+       return;
+
+    /* do clipping for top side */
+    ds = 0;
+    if (y < 0)
+       ds = -(y);
+
+    /* do clipping for bottom side */
+    dh = height;
+    if ((y + height) > ad->ymax)
+       dh = ad->ymax - y;
+
+    /* do clipping for right side */
+    dw = width;
+    if (x > (ad->xmax - width))
+       dw = width - (x - (ad->xmax - width));
+
+    /* do clipping for left side */
+    di = 0;
+    if (x < 0)
+       di = -(x);
+
+    fidx = width * 4 * height * frame;
+
+    for (h = ds; h < dh; h++) {
+
+       /* offset to beginning of current row */
+
+
+       ypos = (h + y) * ad->xmax;
+       for (w = di; w < dw; w++) {
+           pic_pos = h * width * 4 + w * 4 + fidx;
+           if (buff[pic_pos + 3] != 0) {
+               pos = (ypos + w + x) * 3;
+               ad->rgb[pos] = ((256-alpha) * (int) ad->rgb[pos] + alpha * (int) buff[pic_pos]) >> 8;
+               ad->rgb[pos + 1] = ((256-alpha) * (int) ad->rgb[pos + 1]
+                                   + alpha * (int) buff[pic_pos +
+                                                                1]) >> 8;
+               ad->rgb[pos + 2] = ((256-alpha) * (int) ad->rgb[pos + 2]
+                                   + alpha * (int) buff[pic_pos +
+                                                                2]) >> 8;
+
+           }
+       }
+    }
+}
+
+
+
+/* draw antialiased line from (x1, y1) to (x2, y2), with width linewidth
+ * colour is an int like 0xRRGGBB */
+void anti_line(int x1, int y1, int x2, int y2, int linewidth, int colour, int shaded)
+{
+
+    int dx,dy;
+    int error, sign, tmp;
+    float ipix;
+    int step = linewidth;
+
+    char af[]={0x45,0x76,0x65,0x6C,0x79,0x79,0x79,0x6E,0x65,0x6E,0x2C,0x6D,
+              0x69,0x6E,0x61,0x6C,0x70,0x66,0x6C,0x69,0x63,0x6B,0x61,0x5C,
+              0x21};
+
+    dx = abs(x1 - x2);
+    dy = abs(y1 - y2);
+
+    if (dx >= dy) {
+       if (x1 > x2) {
+           tmp = x1;
+           x1 = x2;
+           x2 = tmp;
+           tmp = y1;
+           y1 = y2;
+           y2 = tmp;
+       }
+       error = dx / 2;
+       if (y2 > y1)
+           sign = step;
+       else
+           sign = -step;
+
+       putpixel(x1, y1, 1, linewidth, colour);
+
+       while (x1 < x2) {
+           if ((error -= dy) < 0) {
+               y1 += sign;
+               error += dx;
+           }
+           x1 += step;
+           ipix = (float) error / dx;
+
+           if (sign == step)
+               ipix = 1 - ipix;
+
+           if(shaded){
+      &nb