From 4f51911a69c26139a7345a30c600ec7b6ac2f710 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20Rzepecki?= Date: Sat, 21 Feb 2009 13:30:22 +0100 Subject: [PATCH] Initial import of the upstream. --- COPYING | 339 +++ INSTALL | 182 ++ Makefile.am | 5 + Makefile.in | 432 ++++ README | 165 ++ acinclude.m4 | 180 ++ aclocal.m4 | 1157 +++++++++++ config.guess | 1465 +++++++++++++ config.h.in | 36 + config.sub | 1569 ++++++++++++++ configure | 6375 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 40 + convert.pl | 119 ++ core.cc | 400 ++++ font.h | 258 +++ icons.fig | 357 ++++ icons.h | 4847 +++++++++++++++++++++++++++++++++++++++++++ install-sh | 269 +++ main.cc | 432 ++++ missing | 190 ++ mkinstalldirs | 40 + polygon.h | 98 + sdlwrap.cc | 237 +++ sound.cc | 595 ++++++ stamp-h.in | 0 svgawrap.cc | 168 ++ symbol.h | 1021 +++++++++ syna.h | 203 ++ ui.cc | 644 ++++++ xlib.c | 784 +++++++ xlib.h | 135 ++ xlibwrap.cc | 187 ++ 32 files changed, 22929 insertions(+) create mode 100644 COPYING create mode 100644 INSTALL create mode 100644 Makefile.am create mode 100644 Makefile.in create mode 100644 README create mode 100644 acinclude.m4 create mode 100644 aclocal.m4 create mode 100755 config.guess create mode 100644 config.h.in create mode 100755 config.sub create mode 100755 configure create mode 100644 configure.ac create mode 100644 convert.pl create mode 100644 core.cc create mode 100644 font.h create mode 100644 icons.fig create mode 100644 icons.h create mode 100755 install-sh create mode 100644 main.cc create mode 100755 missing create mode 100755 mkinstalldirs create mode 100644 polygon.h create mode 100644 sdlwrap.cc create mode 100644 sound.cc create mode 100644 stamp-h.in create mode 100644 svgawrap.cc create mode 100644 symbol.h create mode 100644 syna.h create mode 100644 ui.cc create mode 100644 xlib.c create mode 100644 xlib.h create mode 100644 xlibwrap.cc diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..a43ea21 --- /dev/null +++ b/COPYING @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc. + 675 Mass Ave, Cambridge, MA 02139, 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. + + 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.) + +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. + + 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. + + 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 + + Appendix: 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. + + + Copyright (C) 19yy + + 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., 675 Mass Ave, Cambridge, MA 02139, 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. + + , 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/INSTALL b/INSTALL new file mode 100644 index 0000000..b42a17a --- /dev/null +++ b/INSTALL @@ -0,0 +1,182 @@ +Basic Installation +================== + + These are generic installation instructions. + + The `configure' shell script attempts to guess correct values for +various system-dependent variables used during compilation. It uses +those values to create a `Makefile' in each directory of the package. +It may also create one or more `.h' files containing system-dependent +definitions. Finally, it creates a shell script `config.status' that +you can run in the future to recreate the current configuration, a file +`config.cache' that saves the results of its tests to speed up +reconfiguring, and a file `config.log' containing compiler output +(useful mainly for debugging `configure'). + + If you need to do unusual things to compile the package, please try +to figure out how `configure' could check whether to do them, and mail +diffs or instructions to the address given in the `README' so they can +be considered for the next release. If at some point `config.cache' +contains results you don't want to keep, you may remove or edit it. + + The file `configure.in' is used to create `configure' by a program +called `autoconf'. You only need `configure.in' if you want to change +it or regenerate `configure' using a newer version of `autoconf'. + +The simplest way to compile this package is: + + 1. `cd' to the directory containing the package's source code and type + `./configure' to configure the package for your system. If you're + using `csh' on an old version of System V, you might need to type + `sh ./configure' instead to prevent `csh' from trying to execute + `configure' itself. + + Running `configure' takes awhile. While running, it prints some + messages telling which features it is checking for. + + 2. Type `make' to compile the package. + + 3. Optionally, type `make check' to run any self-tests that come with + the package. + + 4. Type `make install' to install the programs and any data files and + documentation. + + 5. You can remove the program binaries and object files from the + source code directory by typing `make clean'. To also remove the + files that `configure' created (so you can compile the package for + a different kind of computer), type `make distclean'. There is + also a `make maintainer-clean' target, but that is intended mainly + for the package's developers. If you use it, you may have to get + all sorts of other programs in order to regenerate files that came + with the distribution. + +Compilers and Options +===================== + + Some systems require unusual options for compilation or linking that +the `configure' script does not know about. You can give `configure' +initial values for variables by setting them in the environment. Using +a Bourne-compatible shell, you can do that on the command line like +this: + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure + +Or on systems that have the `env' program, you can do it like this: + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure + +Compiling For Multiple Architectures +==================================== + + You can compile the package for more than one kind of computer at the +same time, by placing the object files for each architecture in their +own directory. To do this, you must use a version of `make' that +supports the `VPATH' variable, such as GNU `make'. `cd' to the +directory where you want the object files and executables to go and run +the `configure' script. `configure' automatically checks for the +source code in the directory that `configure' is in and in `..'. + + If you have to use a `make' that does not supports the `VPATH' +variable, you have to compile the package for one architecture at a time +in the source code directory. After you have installed the package for +one architecture, use `make distclean' before reconfiguring for another +architecture. + +Installation Names +================== + + By default, `make install' will install the package's files in +`/usr/local/bin', `/usr/local/man', etc. You can specify an +installation prefix other than `/usr/local' by giving `configure' the +option `--prefix=PATH'. + + You can specify separate installation prefixes for +architecture-specific files and architecture-independent files. If you +give `configure' the option `--exec-prefix=PATH', the package will use +PATH as the prefix for installing programs and libraries. +Documentation and other data files will still use the regular prefix. + + In addition, if you use an unusual directory layout you can give +options like `--bindir=PATH' to specify different values for particular +kinds of files. Run `configure --help' for a list of the directories +you can set and what kinds of files go in them. + + If the package supports it, you can cause programs to be installed +with an extra prefix or suffix on their names by giving `configure' the +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. + +Optional Features +================= + + Some packages pay attention to `--enable-FEATURE' options to +`configure', where FEATURE indicates an optional part of the package. +They may also pay attention to `--with-PACKAGE' options, where PACKAGE +is something like `gnu-as' or `x' (for the X Window System). The +`README' should mention any `--enable-' and `--with-' options that the +package recognizes. + + For packages that use the X Window System, `configure' can usually +find the X include and library files automatically, but if it doesn't, +you can use the `configure' options `--x-includes=DIR' and +`--x-libraries=DIR' to specify their locations. + +Specifying the System Type +========================== + + There may be some features `configure' can not figure out +automatically, but needs to determine by the type of host the package +will run on. Usually `configure' can figure that out, but if it prints +a message saying it can not guess the host type, give it the +`--host=TYPE' option. TYPE can either be a short name for the system +type, such as `sun4', or a canonical name with three fields: + CPU-COMPANY-SYSTEM + +See the file `config.sub' for the possible values of each field. If +`config.sub' isn't included in this package, then this package doesn't +need to know the host type. + + If you are building compiler tools for cross-compiling, you can also +use the `--target=TYPE' option to select the type of system they will +produce code for and the `--build=TYPE' option to select the type of +system on which you are compiling the package. + +Sharing Defaults +================ + + If you want to set default values for `configure' scripts to share, +you can create a site shell script called `config.site' that gives +default values for variables like `CC', `cache_file', and `prefix'. +`configure' looks for `PREFIX/share/config.site' if it exists, then +`PREFIX/etc/config.site' if it exists. Or, you can set the +`CONFIG_SITE' environment variable to the location of the site script. +A warning: not all `configure' scripts look for a site script. + +Operation Controls +================== + + `configure' recognizes the following options to control how it +operates. + +`--cache-file=FILE' + Use and save the results of the tests in FILE instead of + `./config.cache'. Set FILE to `/dev/null' to disable caching, for + debugging `configure'. + +`--help' + Print a summary of the options to `configure', and exit. + +`--quiet' +`--silent' +`-q' + Do not print messages saying which checks are being made. To + suppress all normal output, redirect it to `/dev/null' (any error + messages will still be shown). + +`--srcdir=DIR' + Look for the package's source code in directory DIR. Usually + `configure' can determine that directory automatically. + +`--version' + Print the version of Autoconf used to generate the `configure' + script, and exit. + +`configure' also accepts some other, not widely useful, options. diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..6e9ac24 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,5 @@ + +bin_PROGRAMS = synaesthesia + +synaesthesia_SOURCES = main.cc core.cc sound.cc ui.cc svgawrap.cc sdlwrap.cc xlibwrap.cc xlib.c + diff --git a/Makefile.in b/Makefile.in new file mode 100644 index 0000000..c2c88f2 --- /dev/null +++ b/Makefile.in @@ -0,0 +1,432 @@ +# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am + +# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +# This Makefile.in is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A +# PARTICULAR PURPOSE. + + +SHELL = @SHELL@ + +srcdir = @srcdir@ +top_srcdir = @top_srcdir@ +VPATH = @srcdir@ +prefix = @prefix@ +exec_prefix = @exec_prefix@ + +bindir = @bindir@ +sbindir = @sbindir@ +libexecdir = @libexecdir@ +datadir = @datadir@ +sysconfdir = @sysconfdir@ +sharedstatedir = @sharedstatedir@ +localstatedir = @localstatedir@ +libdir = @libdir@ +infodir = @infodir@ +mandir = @mandir@ +includedir = @includedir@ +oldincludedir = /usr/include + +DESTDIR = + +pkgdatadir = $(datadir)/@PACKAGE@ +pkglibdir = $(libdir)/@PACKAGE@ +pkgincludedir = $(includedir)/@PACKAGE@ + +top_builddir = . + +ACLOCAL = @ACLOCAL@ +AUTOCONF = @AUTOCONF@ +AUTOMAKE = @AUTOMAKE@ +AUTOHEADER = @AUTOHEADER@ + +INSTALL = @INSTALL@ +INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) +INSTALL_DATA = @INSTALL_DATA@ +INSTALL_SCRIPT = @INSTALL_SCRIPT@ +transform = @program_transform_name@ + +NORMAL_INSTALL = : +PRE_INSTALL = : +POST_INSTALL = : +NORMAL_UNINSTALL = : +PRE_UNINSTALL = : +POST_UNINSTALL = : +build_alias = @build_alias@ +build_triplet = @build@ +host_alias = @host_alias@ +host_triplet = @host@ +target_alias = @target_alias@ +target_triplet = @target@ +CC = @CC@ +CXX = @CXX@ +HAVE_LIB = @HAVE_LIB@ +LIB = @LIB@ +LTLIB = @LTLIB@ +MAKEINFO = @MAKEINFO@ +PACKAGE = @PACKAGE@ +SDL_CFLAGS = @SDL_CFLAGS@ +SDL_CONFIG = @SDL_CONFIG@ +SDL_LIBS = @SDL_LIBS@ +VERSION = @VERSION@ + +bin_PROGRAMS = synaesthesia + +synaesthesia_SOURCES = main.cc core.cc sound.cc ui.cc svgawrap.cc sdlwrap.cc xlibwrap.cc xlib.c +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 +mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs +CONFIG_HEADER = config.h +CONFIG_CLEAN_FILES = +PROGRAMS = $(bin_PROGRAMS) + + +DEFS = @DEFS@ -I. -I$(srcdir) -I. +CPPFLAGS = @CPPFLAGS@ +LDFLAGS = @LDFLAGS@ +LIBS = @LIBS@ +X_CFLAGS = @X_CFLAGS@ +X_LIBS = @X_LIBS@ +X_EXTRA_LIBS = @X_EXTRA_LIBS@ +X_PRE_LIBS = @X_PRE_LIBS@ +synaesthesia_OBJECTS = main.o core.o sound.o ui.o svgawrap.o sdlwrap.o \ +xlibwrap.o xlib.o +synaesthesia_LDADD = $(LDADD) +synaesthesia_DEPENDENCIES = +synaesthesia_LDFLAGS = +CXXFLAGS = @CXXFLAGS@ +CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) +CXXLD = $(CXX) +CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) $(LDFLAGS) -o $@ +CFLAGS = @CFLAGS@ +COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +CCLD = $(CC) +LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ +DIST_COMMON = README ./stamp-h.in COPYING INSTALL Makefile.am \ +Makefile.in acinclude.m4 aclocal.m4 config.guess config.h.in config.sub \ +configure configure.ac install-sh missing mkinstalldirs + + +DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) + +TAR = tar +GZIP_ENV = --best +DEP_FILES = .deps/core.P .deps/main.P .deps/sdlwrap.P .deps/sound.P \ +.deps/svgawrap.P .deps/ui.P .deps/xlib.P .deps/xlibwrap.P +SOURCES = $(synaesthesia_SOURCES) +OBJECTS = $(synaesthesia_OBJECTS) + +all: all-redirect +.SUFFIXES: +.SUFFIXES: .S .c .cc .o .s +$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile + +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) + cd $(top_builddir) \ + && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status + +$(ACLOCAL_M4): configure.ac acinclude.m4 + cd $(srcdir) && $(ACLOCAL) + +config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) + $(SHELL) ./config.status --recheck +$(srcdir)/configure: $(srcdir)/configure.ac $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) + cd $(srcdir) && $(AUTOCONF) + +config.h: stamp-h + @if test ! -f $@; then \ + rm -f stamp-h; \ + $(MAKE) stamp-h; \ + else :; fi +stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES= CONFIG_HEADERS=config.h \ + $(SHELL) ./config.status + @echo timestamp > stamp-h 2> /dev/null +$(srcdir)/config.h.in: $(srcdir)/stamp-h.in + @if test ! -f $@; then \ + rm -f $(srcdir)/stamp-h.in; \ + $(MAKE) $(srcdir)/stamp-h.in; \ + else :; fi +$(srcdir)/stamp-h.in: $(top_srcdir)/configure.ac $(ACLOCAL_M4) + cd $(top_srcdir) && $(AUTOHEADER) + @echo timestamp > $(srcdir)/stamp-h.in 2> /dev/null + +mostlyclean-hdr: + +clean-hdr: + +distclean-hdr: + -rm -f config.h + +maintainer-clean-hdr: + +mostlyclean-binPROGRAMS: + +clean-binPROGRAMS: + -test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS) + +distclean-binPROGRAMS: + +maintainer-clean-binPROGRAMS: + +install-binPROGRAMS: $(bin_PROGRAMS) + @$(NORMAL_INSTALL) + $(mkinstalldirs) $(DESTDIR)$(bindir) + @list='$(bin_PROGRAMS)'; for p in $$list; do \ + if test -f $$p; then \ + echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \ + $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ + else :; fi; \ + done + +uninstall-binPROGRAMS: + @$(NORMAL_UNINSTALL) + list='$(bin_PROGRAMS)'; for p in $$list; do \ + rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \ + done + +.s.o: + $(COMPILE) -c $< + +.S.o: + $(COMPILE) -c $< + +mostlyclean-compile: + -rm -f *.o core *.core + +clean-compile: + +distclean-compile: + -rm -f *.tab.c + +maintainer-clean-compile: + +synaesthesia: $(synaesthesia_OBJECTS) $(synaesthesia_DEPENDENCIES) + @rm -f synaesthesia + $(CXXLINK) $(synaesthesia_LDFLAGS) $(synaesthesia_OBJECTS) $(synaesthesia_LDADD) $(LIBS) +.cc.o: + $(CXXCOMPILE) -c $< + +tags: TAGS + +ID: $(HEADERS) $(SOURCES) $(LISP) + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + here=`pwd` && cd $(srcdir) \ + && mkid -f$$here/ID $$unique $(LISP) + +TAGS: $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) $(LISP) + tags=; \ + here=`pwd`; \ + list='$(SOURCES) $(HEADERS)'; \ + unique=`for i in $$list; do echo $$i; done | \ + awk ' { files[$$0] = 1; } \ + END { for (i in files) print i; }'`; \ + test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ + || (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP)) + +mostlyclean-tags: + +clean-tags: + +distclean-tags: + -rm -f TAGS ID + +maintainer-clean-tags: + +distdir = $(PACKAGE)-$(VERSION) +top_distdir = $(distdir) + +# This target untars the dist file and tries a VPATH configuration. Then +# it guarantees that the distribution is self-contained by making another +# tarfile. +distcheck: dist + -rm -rf $(distdir) + GZIP=$(GZIP_ENV) $(TAR) zxf $(distdir).tar.gz + mkdir $(distdir)/=build + mkdir $(distdir)/=inst + dc_install_base=`cd $(distdir)/=inst && pwd`; \ + cd $(distdir)/=build \ + && ../configure --srcdir=.. --prefix=$$dc_install_base \ + && $(MAKE) $(AM_MAKEFLAGS) \ + && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) check \ + && $(MAKE) $(AM_MAKEFLAGS) install \ + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ + && $(MAKE) $(AM_MAKEFLAGS) dist + -rm -rf $(distdir) + @banner="$(distdir).tar.gz is ready for distribution"; \ + dashes=`echo "$$banner" | sed s/./=/g`; \ + echo "$$dashes"; \ + echo "$$banner"; \ + echo "$$dashes" +dist: distdir + -chmod -R a+r $(distdir) + GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) + -rm -rf $(distdir) +dist-all: distdir + -chmod -R a+r $(distdir) + GZIP=$(GZIP_ENV) $(TAR) chozf $(distdir).tar.gz $(distdir) + -rm -rf $(distdir) +distdir: $(DISTFILES) + -rm -rf $(distdir) + mkdir $(distdir) + -chmod 777 $(distdir) + here=`cd $(top_builddir) && pwd`; \ + top_distdir=`cd $(distdir) && pwd`; \ + distdir=`cd $(distdir) && pwd`; \ + cd $(top_srcdir) \ + && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu Makefile + @for file in $(DISTFILES); do \ + d=$(srcdir); \ + if test -d $$d/$$file; then \ + cp -pr $$d/$$file $(distdir)/$$file; \ + else \ + test -f $(distdir)/$$file \ + || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ + || cp -p $$d/$$file $(distdir)/$$file || :; \ + fi; \ + done + +DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) + +-include $(DEP_FILES) + +mostlyclean-depend: + +clean-depend: + +distclean-depend: + -rm -rf .deps + +maintainer-clean-depend: + +%.o: %.c + @echo '$(COMPILE) -c $<'; \ + $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-cp .deps/$(*F).pp .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm .deps/$(*F).pp + +%.lo: %.c + @echo '$(LTCOMPILE) -c $<'; \ + $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ + < .deps/$(*F).pp > .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm -f .deps/$(*F).pp + +%.o: %.cc + @echo '$(CXXCOMPILE) -c $<'; \ + $(CXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-cp .deps/$(*F).pp .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm .deps/$(*F).pp + +%.lo: %.cc + @echo '$(LTCXXCOMPILE) -c $<'; \ + $(LTCXXCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< + @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ + < .deps/$(*F).pp > .deps/$(*F).P; \ + tr ' ' '\012' < .deps/$(*F).pp \ + | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ + >> .deps/$(*F).P; \ + rm -f .deps/$(*F).pp +info-am: +info: info-am +dvi-am: +dvi: dvi-am +check-am: all-am +check: check-am +installcheck-am: +installcheck: installcheck-am +all-recursive-am: config.h + $(MAKE) $(AM_MAKEFLAGS) all-recursive + +install-exec-am: install-binPROGRAMS +install-exec: install-exec-am + +install-data-am: +install-data: install-data-am + +install-am: all-am + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am +install: install-am +uninstall-am: uninstall-binPROGRAMS +uninstall: uninstall-am +all-am: Makefile $(PROGRAMS) config.h +all-redirect: all-am +install-strip: + $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install +installdirs: + $(mkinstalldirs) $(DESTDIR)$(bindir) + + +mostlyclean-generic: + +clean-generic: + +distclean-generic: + -rm -f Makefile $(CONFIG_CLEAN_FILES) + -rm -f config.cache config.log stamp-h stamp-h[0-9]* + +maintainer-clean-generic: +mostlyclean-am: mostlyclean-hdr mostlyclean-binPROGRAMS \ + mostlyclean-compile mostlyclean-tags mostlyclean-depend \ + mostlyclean-generic + +mostlyclean: mostlyclean-am + +clean-am: clean-hdr clean-binPROGRAMS clean-compile clean-tags \ + clean-depend clean-generic mostlyclean-am + +clean: clean-am + +distclean-am: distclean-hdr distclean-binPROGRAMS distclean-compile \ + distclean-tags distclean-depend distclean-generic \ + clean-am + +distclean: distclean-am + -rm -f config.status + +maintainer-clean-am: maintainer-clean-hdr maintainer-clean-binPROGRAMS \ + maintainer-clean-compile maintainer-clean-tags \ + maintainer-clean-depend maintainer-clean-generic \ + distclean-am + @echo "This command is intended for maintainers to use;" + @echo "it deletes files that may require special tools to rebuild." + +maintainer-clean: maintainer-clean-am + -rm -f config.status + +.PHONY: mostlyclean-hdr distclean-hdr clean-hdr maintainer-clean-hdr \ +mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \ +maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \ +mostlyclean-compile distclean-compile clean-compile \ +maintainer-clean-compile tags mostlyclean-tags distclean-tags \ +clean-tags maintainer-clean-tags distdir mostlyclean-depend \ +distclean-depend clean-depend maintainer-clean-depend info-am info \ +dvi-am dvi check check-am installcheck-am installcheck all-recursive-am \ +install-exec-am install-exec install-data-am install-data install-am \ +install uninstall-am uninstall all-redirect all-am all installdirs \ +mostlyclean-generic distclean-generic clean-generic \ +maintainer-clean-generic clean mostlyclean distclean maintainer-clean + + +# Tell versions [3.59,3.63) of GNU make to not export all variables. +# Otherwise a system limit (for SysV at least) may be exceeded. +.NOEXPORT: diff --git a/README b/README new file mode 100644 index 0000000..29b1eed --- /dev/null +++ b/README @@ -0,0 +1,165 @@ +SYNAESTHESIA v2.4 http://logarithmic.net/pfh/Synaesthesia + +Introduction +============ + +Synaesthesia is a program for representing sounds visually. It goes +beyond the usual oscilliscope style program by combining an FFT and +stereo positioning information to give a two dimensional display. Some +of the shapes I have observed are: + * Drums: clouds of color, fairly high + * Clean guitar: several horizontal lines, low down + * Rough guitar: a cloud, low down + * Trumpet: Lots of horizontal lines everywhere + * Flute: A single horizontal line, low down + * Voice: A vertical line with some internal structure + * Synthesizer: All kinds of weird shapes! + +Synaesthesia represents frequency as the vertical position on screen, +and stereo position as the horizontal position. It can also understand +surround sound encoded music, and shows ambient noise in a different +color. + +Synaesthesia can run in a window in X, or full screen using SVGAlib, +or either using Simple DirectMedia Layer (SDL). Use of the SDL is +recommended. + +It can take input from a CD, line input, EsounD, or piped from another +program. As of version 2.2, EsounD support is much improved. For example, +Synaesthesia works well with XMMS if both use EsounD. + + +Usage +===== + +Synaesthesia should work on Linux and BSD systems. (Note: I don't have +access to a BSD system myself, I have to rely on patches -- if it doesn't +work, please tell me!) + +For best results, first make sure you have installed the libraries and +the header files for these: (on most systems, this means installing the +appropriate "dev" packages) + + * Simple DirectMedia Layer (SDL) + * EsounD (ESD) + +Compile Synaesthesia by typing + + ./configure + make + +then install it by typing + + make install + +then you should be able to type + + synaesthesia + +to run the program. + +You will need to run Synaesthesia as root to run it full screen +with SVGAlib. Other varieties can be run by any user providing you +provide permissions on /dev/dsp, /dev/cdrom, and /dev/mixer. + +Synaesthesia creates a configuration file named ~/.synaesthesia +to store settings such as brightness, color, and window size, as +well as which devices to use to control sound input. + +BSD users will have to edit this file to set the CD-ROM device name +before using Synaesthesia in order to control the CD. + +Run Synaesthesia with no parameters for further information on how to +use it. + + +Notes for code rippers +====================== + +This program contains code that you may wish to use in your own projects. +If you want to, please do. (For example, you might want to add some +snazzy visual effects to your favourite MP3 or CD player) + +The actual code to do the mapping from sound to visual display is +all in core.cc, it should be fairly easy to disentangle from other +parts of the program. It does make reference to some globals defined +in syna.h, namely the #defines LogSize (log2 of the sample size for each +frame) and Brightness, data (which stores the sound input), outputBmp, +lastOutputBmp and lastLastOutputBmp (which hold the output), outWidth +and outHeight (size of the bitmaps), and fadeMode, brightnessTwiddler, +starSize and pointsAreDiamonds (various parameters affecting the display). + +The normal way to use it would be: + + Call coreInit() to set up some look-up tables + Call setStarSize(starSize) to set up some more look-up tables + Loop + Put data into the data array + Call fade() to apply the fade/wave/heat effect to the output + Call coreGo() to add the next fragment of sound input to the output + Display contents of outputBmp to screen + +There is a simple anti-aliased polygon drawing engine in the file +polygon.h. sound.cc contains code for driving the CD. xlib.c and +xlibwrap.cc contain code for setting up a window under X (originally +ripped from the Xaos fractal viewer program :-) ). + + +Authors +======= + +Feel free to email me me (Paul Harrison) at pfh@logarithmic.net with any +suggestions, bug-reports, or better yet, patches. + +A number of other people have contributed to Synaesthesia: + + Thanks to Asger Alstrup Nielsen for many great suggestions, and for + writing optimized 32 bit loops for fading and drawing to screen. + + Thanks to Roger Knobbe for porting Synaesthesia to FreeBSD. + + Thanks to Ben Gertzfield and Martin Mitchell for some small fixes to the + CD controlling code. + + Thanks to Simon Budig for an improvement to the X code. + + Thanks to Devin Carraway for fixing Synaesthesia to work with non-32-bit + word machines. + +Synaesthesia is distributed under the GPL. + +Changes +======= + +1.1 - Added surround sound decoding. +1.2 - Fixed a bug in the ioctl calls to /dev/dsp. +1.3 - Asger Alstrup Nielsen's optimizations added. + Added X-Windows support. + More options, redesigned interface. +1.4 - Bug fixes, including a great reduction in + "Sound: Recording overrun" warnings. + New command line options: play lists and piping. + Support for SDL. +2.0 - Bug fixes: Fixed problem in xlib.c that caused occasional segfaults, + several endianness problems fixed. + New effects: Wave, heat, diamond shaped points. + Piping sound now longer requires the twiddle factor. + Yet another interface redesign. + Partial support for LinuxPPC (pipe mode only) +2.1 - Autoconf support. + Esd support. + Some code cleanup, now only makes one binary. + SDL version now sets title. + Bug fixes: Old versions of gcc can't cope with some of the stuff + I was doing with templates. +2.2 - Works on machines with non-32-bit words (patch by Devin Carraway) + Pipe and ESD modes greatly improved: it now syncs properly to the music + with ESD + Resizable window with SDL + Fixes to autoconf of SDL + Clicking on window toggles full screen in SDL + Automatic brightness compensation +2.3 - Compiles with g++ 3.4 + Tweaked sound code, should now work on fast computers +2.4 - Applied a patch by Aurelien Jarno that fixes some FreeBSD problems + diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 0000000..09b72e4 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,180 @@ +# Configure paths for SDL +# Sam Lantinga 9/21/99 +# stolen from Manish Singh +# stolen back from Frank Belew +# stolen from Manish Singh +# Shamelessly stolen from Owen Taylor + +dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS +dnl +AC_DEFUN([AM_PATH_SDL], +[dnl +dnl Get the cflags and libraries from the sdl-config script +dnl +AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], + sdl_prefix="$withval", sdl_prefix="") +AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], + sdl_exec_prefix="$withval", sdl_exec_prefix="") +AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], + , enable_sdltest=yes) + + if test x$sdl_exec_prefix != x ; then + sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config + fi + fi + if test x$sdl_prefix != x ; then + sdl_args="$sdl_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_prefix/bin/sdl-config + fi + fi + + AC_REQUIRE([AC_CANONICAL_TARGET]) + PATH="$prefix/bin:$prefix/usr/bin:$PATH" + AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) + min_sdl_version=ifelse([$1], ,0.11.0,$1) + AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) + no_sdl="" + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else + SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` + SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_sdltest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_CXXFLAGS="$CXXFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" +dnl +dnl Now check if the installed SDL is sufficiently new. (Also sanity +dnl checks the results of sdl-config to some extent +dnl + rm -f conf.sdltest + AC_TRY_RUN([ +#include +#include +#include +#include "SDL.h" + +char* +my_strdup (char *str) +{ + char *new_str; + + if (str) + { + new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); + strcpy (new_str, str); + } + else + new_str = NULL; + + return new_str; +} + +int main (int argc, char *argv[]) +{ + int major, minor, micro; + char *tmp_version; + + /* This hangs on some systems (?) + system ("touch conf.sdltest"); + */ + { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = my_strdup("$min_sdl_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_sdl_version"); + exit(1); + } + + if (($sdl_major_version > major) || + (($sdl_major_version == major) && ($sdl_minor_version > minor)) || + (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); + printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); + printf("*** best to upgrade to the required version.\n"); + printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); + printf("*** to point to the correct copy of sdl-config, and remove the file\n"); + printf("*** config.cache before re-running configure\n"); + return 1; + } +} + +],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_sdl" = x ; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$SDL_CONFIG" = "no" ; then + echo "*** The sdl-config script installed by SDL could not be found" + echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the SDL_CONFIG environment variable to the" + echo "*** full path to sdl-config." + else + if test -f conf.sdltest ; then + : + else + echo "*** Could not run SDL test program, checking why..." + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + AC_TRY_LINK([ +#include +#include "SDL.h" + +int main(int argc, char *argv[]) +{ return 0; } +#undef main +#define main K_and_R_C_main +], [ return 0; ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding SDL or finding the wrong" + echo "*** version of SDL. If it is not finding SDL, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means SDL was incorrectly installed" + echo "*** or that you have moved SDL since it was installed. In the latter case, you" + echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ]) + CFLAGS="$ac_save_CFLAGS" + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + SDL_CFLAGS="" + SDL_CXXFLAGS="" + SDL_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(SDL_CFLAGS) + AC_SUBST(SDL_LIBS) + rm -f conf.sdltest +]) diff --git a/aclocal.m4 b/aclocal.m4 new file mode 100644 index 0000000..76f1471 --- /dev/null +++ b/aclocal.m4 @@ -0,0 +1,1157 @@ +dnl aclocal.m4 generated automatically by aclocal 1.4-p6 + +dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl This program is distributed in the hope that it will be useful, +dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without +dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A +dnl PARTICULAR PURPOSE. + +# Configure paths for SDL +# Sam Lantinga 9/21/99 +# stolen from Manish Singh +# stolen back from Frank Belew +# stolen from Manish Singh +# Shamelessly stolen from Owen Taylor + +dnl AM_PATH_SDL([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]]) +dnl Test for SDL, and define SDL_CFLAGS and SDL_LIBS +dnl +AC_DEFUN([AM_PATH_SDL], +[dnl +dnl Get the cflags and libraries from the sdl-config script +dnl +AC_ARG_WITH(sdl-prefix,[ --with-sdl-prefix=PFX Prefix where SDL is installed (optional)], + sdl_prefix="$withval", sdl_prefix="") +AC_ARG_WITH(sdl-exec-prefix,[ --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)], + sdl_exec_prefix="$withval", sdl_exec_prefix="") +AC_ARG_ENABLE(sdltest, [ --disable-sdltest Do not try to compile and run a test SDL program], + , enable_sdltest=yes) + + if test x$sdl_exec_prefix != x ; then + sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config + fi + fi + if test x$sdl_prefix != x ; then + sdl_args="$sdl_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_prefix/bin/sdl-config + fi + fi + + AC_REQUIRE([AC_CANONICAL_TARGET]) + PATH="$prefix/bin:$prefix/usr/bin:$PATH" + AC_PATH_PROG(SDL_CONFIG, sdl-config, no, [$PATH]) + min_sdl_version=ifelse([$1], ,0.11.0,$1) + AC_MSG_CHECKING(for SDL - version >= $min_sdl_version) + no_sdl="" + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else + SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` + SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'` + sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'` + if test "x$enable_sdltest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_CXXFLAGS="$CXXFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" +dnl +dnl Now check if the installed SDL is sufficiently new. (Also sanity +dnl checks the results of sdl-config to some extent +dnl + rm -f conf.sdltest + AC_TRY_RUN([ +#include +#include +#include +#include "SDL.h" + +char* +my_strdup (char *str) +{ + char *new_str; + + if (str) + { + new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); + strcpy (new_str, str); + } + else + new_str = NULL; + + return new_str; +} + +int main (int argc, char *argv[]) +{ + int major, minor, micro; + char *tmp_version; + + /* This hangs on some systems (?) + system ("touch conf.sdltest"); + */ + { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = my_strdup("$min_sdl_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_sdl_version"); + exit(1); + } + + if (($sdl_major_version > major) || + (($sdl_major_version == major) && ($sdl_minor_version > minor)) || + (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); + printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); + printf("*** best to upgrade to the required version.\n"); + printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); + printf("*** to point to the correct copy of sdl-config, and remove the file\n"); + printf("*** config.cache before re-running configure\n"); + return 1; + } +} + +],, no_sdl=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"]) + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_sdl" = x ; then + AC_MSG_RESULT(yes) + ifelse([$2], , :, [$2]) + else + AC_MSG_RESULT(no) + if test "$SDL_CONFIG" = "no" ; then + echo "*** The sdl-config script installed by SDL could not be found" + echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the SDL_CONFIG environment variable to the" + echo "*** full path to sdl-config." + else + if test -f conf.sdltest ; then + : + else + echo "*** Could not run SDL test program, checking why..." + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + AC_TRY_LINK([ +#include +#include "SDL.h" + +int main(int argc, char *argv[]) +{ return 0; } +#undef main +#define main K_and_R_C_main +], [ return 0; ], + [ echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding SDL or finding the wrong" + echo "*** version of SDL. If it is not finding SDL, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"], + [ echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means SDL was incorrectly installed" + echo "*** or that you have moved SDL since it was installed. In the latter case, you" + echo "*** may want to edit the sdl-config script: $SDL_CONFIG" ]) + CFLAGS="$ac_save_CFLAGS" + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + SDL_CFLAGS="" + SDL_CXXFLAGS="" + SDL_LIBS="" + ifelse([$3], , :, [$3]) + fi + AC_SUBST(SDL_CFLAGS) + AC_SUBST(SDL_LIBS) + rm -f conf.sdltest +]) + +# lib-prefix.m4 serial 4 (gettext-0.14.2) +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't +dnl require excessive bracketing. +ifdef([AC_HELP_STRING], +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib-prefix], +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) + +# lib-link.m4 serial 6 (gettext-0.14.3) +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +AC_PREREQ(2.50) + +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and +dnl augments the CPPFLAGS variable. +AC_DEFUN([AC_LIB_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + ac_cv_lib[]Name[]_libs="$LIB[]NAME" + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" + ac_cv_lib[]Name[]_cppflags="$INC[]NAME" + ]) + LIB[]NAME="$ac_cv_lib[]Name[]_libs" + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" + INC[]NAME="$ac_cv_lib[]Name[]_cppflags" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the + dnl results of this search when this library appears as a dependency. + HAVE_LIB[]NAME=yes + undefine([Name]) + undefine([NAME]) +]) + +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) +dnl searches for libname and the libraries corresponding to explicit and +dnl implicit dependencies, together with the specified include files and +dnl the ability to compile and link the specified testcode. If found, it +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], +[ + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + AC_REQUIRE([AC_LIB_RPATH]) + define([Name],[translit([$1],[./-], [___])]) + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME + dnl accordingly. + AC_LIB_LINKFLAGS_BODY([$1], [$2]) + + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, + dnl because if the user has installed lib[]Name and not disabled its use + dnl via --without-lib[]Name-prefix, he wants to use it. + ac_save_CPPFLAGS="$CPPFLAGS" + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) + + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ + ac_save_LIBS="$LIBS" + LIBS="$LIBS $LIB[]NAME" + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) + LIBS="$ac_save_LIBS" + ]) + if test "$ac_cv_lib[]Name" = yes; then + HAVE_LIB[]NAME=yes + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) + AC_MSG_CHECKING([how to link with lib[]$1]) + AC_MSG_RESULT([$LIB[]NAME]) + else + HAVE_LIB[]NAME=no + dnl If $LIB[]NAME didn't lead to a usable library, we don't need + dnl $INC[]NAME either. + CPPFLAGS="$ac_save_CPPFLAGS" + LIB[]NAME= + LTLIB[]NAME= + fi + AC_SUBST([HAVE_LIB]NAME) + AC_SUBST([LIB]NAME) + AC_SUBST([LTLIB]NAME) + undefine([Name]) + undefine([NAME]) +]) + +dnl Determine the platform dependent parameters needed to use rpath: +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, +dnl hardcode_direct, hardcode_minus_L. +AC_DEFUN([AC_LIB_RPATH], +[ + dnl Tell automake >= 1.10 to complain if config.rpath is missing. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh + . ./conftest.sh + rm -f ./conftest.sh + acl_cv_rpath=done + ]) + wl="$acl_cv_wl" + libext="$acl_cv_libext" + shlibext="$acl_cv_shlibext" + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" + hardcode_direct="$acl_cv_hardcode_direct" + hardcode_minus_L="$acl_cv_hardcode_minus_L" + dnl Determine whether the user wants rpath handling at all. + AC_ARG_ENABLE(rpath, + [ --disable-rpath do not hardcode runtime library paths], + :, enable_rpath=yes) +]) + +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and +dnl the libraries corresponding to explicit and implicit dependencies. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY], +[ + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_LIB_ARG_WITH([lib$1-prefix], +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib + --without-lib$1-prefix don't search for lib$1 in includedir and libdir], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/lib" + fi + fi +]) + dnl Search the library and its dependencies in $additional_libdir and + dnl $LDFLAGS. Using breadth-first-seach. + LIB[]NAME= + LTLIB[]NAME= + INC[]NAME= + rpathdirs= + ltrpathdirs= + names_already_handled= + names_next_round='$1 $2' + while test -n "$names_next_round"; do + names_this_round="$names_next_round" + names_next_round= + for name in $names_this_round; do + already_handled= + for n in $names_already_handled; do + if test "$n" = "$name"; then + already_handled=yes + break + fi + done + if test -z "$already_handled"; then + names_already_handled="$names_already_handled $name" + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS + dnl or AC_LIB_HAVE_LINKFLAGS call. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + eval value=\"\$HAVE_LIB$uppername\" + if test -n "$value"; then + if test "$value" = yes; then + eval value=\"\$LIB$uppername\" + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" + eval value=\"\$LTLIB$uppername\" + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" + else + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined + dnl that this library doesn't exist. So just drop it. + : + fi + else + dnl Search the library lib$name in $additional_libdir and $LDFLAGS + dnl and the already constructed $LIBNAME/$LTLIBNAME. + found_dir= + found_la= + found_so= + found_a= + if test $use_additional = yes; then + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then + found_dir="$additional_libdir" + found_so="$additional_libdir/lib$name.$shlibext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + else + if test -f "$additional_libdir/lib$name.$libext"; then + found_dir="$additional_libdir" + found_a="$additional_libdir/lib$name.$libext" + if test -f "$additional_libdir/lib$name.la"; then + found_la="$additional_libdir/lib$name.la" + fi + fi + fi + fi + if test "X$found_dir" = "X"; then + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + case "$x" in + -L*) + dir=`echo "X$x" | sed -e 's/^X-L//'` + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then + found_dir="$dir" + found_so="$dir/lib$name.$shlibext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + else + if test -f "$dir/lib$name.$libext"; then + found_dir="$dir" + found_a="$dir/lib$name.$libext" + if test -f "$dir/lib$name.la"; then + found_la="$dir/lib$name.la" + fi + fi + fi + ;; + esac + if test "X$found_dir" != "X"; then + break + fi + done + fi + if test "X$found_dir" != "X"; then + dnl Found the library. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" + if test "X$found_so" != "X"; then + dnl Linking with a shared library. We attempt to hardcode its + dnl directory into the executable's runpath, unless it's the + dnl standard /usr/lib. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then + dnl No hardcoding is needed. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $found_dir" + fi + dnl The hardcoding into $LIBNAME is system dependent. + if test "$hardcode_direct" = yes; then + dnl Using DIR/libNAME.so during linking hardcodes DIR into the + dnl resulting binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then + dnl Use an explicit option to hardcode DIR into the resulting + dnl binary. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $found_dir" + fi + else + dnl Rely on "-L$found_dir". + dnl But don't add it if it's already contained in the LDFLAGS + dnl or the already constructed $LIBNAME + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$found_dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" + fi + if test "$hardcode_minus_L" != no; then + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" + else + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH + dnl here, because this doesn't fit in flags passed to the + dnl compiler. So give up. No hardcoding. This affects only + dnl very old systems. + dnl FIXME: Not sure whether we should use + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" + dnl here. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + fi + fi + fi + fi + else + if test "X$found_a" != "X"; then + dnl Linking with a static library. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" + else + dnl We shouldn't come here, but anyway it's good to have a + dnl fallback. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" + fi + fi + dnl Assume the include files are nearby. + additional_includedir= + case "$found_dir" in + */lib | */lib/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` + additional_includedir="$basedir/include" + ;; + esac + if test "X$additional_includedir" != "X"; then + dnl Potentially add $additional_includedir to $INCNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's /usr/local/include and we are using GCC on Linux, + dnl 3. if it's already present in $CPPFLAGS or the already + dnl constructed $INCNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + for x in $CPPFLAGS $INC[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $INCNAME. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" + fi + fi + fi + fi + fi + dnl Look for dependencies. + if test -n "$found_la"; then + dnl Read the .la file. It defines the variables + dnl dlname, library_names, old_library, dependency_libs, current, + dnl age, revision, installed, dlopen, dlpreopen, libdir. + save_libdir="$libdir" + case "$found_la" in + */* | *\\*) . "$found_la" ;; + *) . "./$found_la" ;; + esac + libdir="$save_libdir" + dnl We use only dependency_libs. + for dep in $dependency_libs; do + case "$dep" in + -L*) + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's /usr/local/lib and we are using GCC on Linux, + dnl 3. if it's already present in $LDFLAGS or the already + dnl constructed $LIBNAME, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/lib"; then + haveit= + if test "X$additional_libdir" = "X/usr/local/lib"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + haveit= + for x in $LDFLAGS $LIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + fi + fi + haveit= + for x in $LDFLAGS $LTLIB[]NAME; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + fi + fi + fi + fi + ;; + -R*) + dir=`echo "X$dep" | sed -e 's/^X-R//'` + if test "$enable_rpath" != no; then + dnl Potentially add DIR to rpathdirs. + dnl The rpathdirs will be appended to $LIBNAME at the end. + haveit= + for x in $rpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + rpathdirs="$rpathdirs $dir" + fi + dnl Potentially add DIR to ltrpathdirs. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. + haveit= + for x in $ltrpathdirs; do + if test "X$x" = "X$dir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + ltrpathdirs="$ltrpathdirs $dir" + fi + fi + ;; + -l*) + dnl Handle this in the next round. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` + ;; + *.la) + dnl Handle this in the next round. Throw away the .la's + dnl directory; it is already contained in a preceding -L + dnl option. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` + ;; + *) + dnl Most likely an immediate library name. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" + ;; + esac + done + fi + else + dnl Didn't find the library; assume it is in the system directories + dnl known to the linker and runtime loader. (All the system + dnl directories known to the linker should also be known to the + dnl runtime loader, otherwise the system is severely misconfigured.) + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" + fi + fi + fi + done + done + if test "X$rpathdirs" != "X"; then + if test -n "$hardcode_libdir_separator"; then + dnl Weird platform: only the last -rpath option counts, the user must + dnl pass all path elements in one option. We can arrange that for a + dnl single library, but not when more than one $LIBNAMEs are used. + alldirs= + for found_dir in $rpathdirs; do + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" + done + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. + acl_save_libdir="$libdir" + libdir="$alldirs" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + else + dnl The -rpath options are cumulative. + for found_dir in $rpathdirs; do + acl_save_libdir="$libdir" + libdir="$found_dir" + eval flag=\"$hardcode_libdir_flag_spec\" + libdir="$acl_save_libdir" + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" + done + fi + fi + if test "X$ltrpathdirs" != "X"; then + dnl When using libtool, the option that works for both libraries and + dnl executables is -R. The -R options are cumulative. + for found_dir in $ltrpathdirs; do + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" + done + fi +]) + +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, +dnl unless already present in VAR. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes +dnl contains two or three consecutive elements that belong together. +AC_DEFUN([AC_LIB_APPENDTOVAR], +[ + for element in [$2]; do + haveit= + for x in $[$1]; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + [$1]="${[$1]}${[$1]:+ }$element" + fi + done +]) + +# lib-ld.m4 serial 3 (gettext-0.13) +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Subroutines of libtool.m4, +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision +dnl with libtool.m4. + +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. +case `$LD -v 2>&1 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 +ac_prog=ld +if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + AC_MSG_CHECKING([for ld used by GCC]) + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [[\\/]* | [A-Za-z]:[\\/]*)] + [re_direlt='/[^/][^/]*/\.\./'] + # Canonicalize the path of ld + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` + done + test -z "$LD" && LD="$ac_prog" + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +AC_CACHE_VAL(acl_cv_path_LD, +[if test -z "$LD"; then + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" + for ac_dir in $PATH; do + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some GNU ld's only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in + *GNU* | *'with BFD'*) + test "$with_gnu_ld" != no && break ;; + *) + test "$with_gnu_ld" != yes && break ;; + esac + fi + done + IFS="$ac_save_ifs" +else + acl_cv_path_LD="$LD" # Let the user override the test with a path. +fi]) +LD="$acl_cv_path_LD" +if test -n "$LD"; then + AC_MSG_RESULT($LD) +else + AC_MSG_RESULT(no) +fi +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) +AC_LIB_PROG_LD_GNU +]) + +# Do all the work for Automake. This macro actually does too much -- +# some checks are only needed if your package does certain things. +# But this isn't really a big deal. + +# serial 1 + +dnl Usage: +dnl AM_INIT_AUTOMAKE(package,version, [no-define]) + +AC_DEFUN([AM_INIT_AUTOMAKE], +[AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl +AC_REQUIRE([AC_PROG_INSTALL]) +PACKAGE=[$1] +AC_SUBST(PACKAGE) +VERSION=[$2] +AC_SUBST(VERSION) +dnl test to see if srcdir already configured +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) +fi +ifelse([$3],, +AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])) +AC_REQUIRE([AM_SANITY_CHECK]) +AC_REQUIRE([AC_ARG_PROGRAM]) +dnl FIXME This is truly gross. +missing_dir=`cd $ac_aux_dir && pwd` +AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) +AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) +AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) +AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) +AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) +AC_REQUIRE([AC_PROG_MAKE_SET])]) + +# Copyright 2002 Free Software Foundation, Inc. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA + +# AM_AUTOMAKE_VERSION(VERSION) +# ---------------------------- +# Automake X.Y traces this macro to ensure aclocal.m4 has been +# generated from the m4 files accompanying Automake X.Y. +AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) + +# AM_SET_CURRENT_AUTOMAKE_VERSION +# ------------------------------- +# Call AM_AUTOMAKE_VERSION so it can be traced. +# This function is AC_REQUIREd by AC_INIT_AUTOMAKE. +AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], + [AM_AUTOMAKE_VERSION([1.4-p6])]) + +# +# Check to make sure that the build environment is sane. +# + +AC_DEFUN([AM_SANITY_CHECK], +[AC_MSG_CHECKING([whether build environment is sane]) +# Just in case +sleep 1 +echo timestamp > conftestfile +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` + if test "[$]*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftestfile` + fi + if test "[$]*" != "X $srcdir/configure conftestfile" \ + && test "[$]*" != "X conftestfile $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken +alias in your environment]) + fi + + test "[$]2" = conftestfile + ) +then + # Ok. + : +else + AC_MSG_ERROR([newly created file is older than distributed files! +Check your system clock]) +fi +rm -f conftest* +AC_MSG_RESULT(yes)]) + +dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) +dnl The program must properly implement --version. +AC_DEFUN([AM_MISSING_PROG], +[AC_MSG_CHECKING(for working $2) +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if ($2 --version) < /dev/null > /dev/null 2>&1; then + $1=$2 + AC_MSG_RESULT(found) +else + $1="$3/missing $2" + AC_MSG_RESULT(missing) +fi +AC_SUBST($1)]) + +# Like AC_CONFIG_HEADER, but automatically create stamp file. + +AC_DEFUN([AM_CONFIG_HEADER], +[AC_PREREQ([2.12]) +AC_CONFIG_HEADER([$1]) +dnl When config.status generates a header, we must update the stamp-h file. +dnl This file resides in the same directory as the config header +dnl that is generated. We must strip everything past the first ":", +dnl and everything past the last "/". +AC_OUTPUT_COMMANDS(changequote(<<,>>)dnl +ifelse(patsubst(<<$1>>, <<[^ ]>>, <<>>), <<>>, +<>CONFIG_HEADERS" || echo timestamp > patsubst(<<$1>>, <<^\([^:]*/\)?.*>>, <<\1>>)stamp-h<<>>dnl>>, +<>; do + case " <<$>>CONFIG_HEADERS " in + *" <<$>>am_file "*<<)>> + echo timestamp > `echo <<$>>am_file | sed -e 's%:.*%%' -e 's%[^/]*$%%'`stamp-h$am_indx + ;; + esac + am_indx=`expr "<<$>>am_indx" + 1` +done<<>>dnl>>) +changequote([,]))]) + diff --git a/config.guess b/config.guess new file mode 100755 index 0000000..45bee13 --- /dev/null +++ b/config.guess @@ -0,0 +1,1465 @@ +#! /bin/sh +# Attempt to guess a canonical system name. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + +timestamp='2005-04-22' + +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Originally written by Per Bothner . +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# This script attempts to guess a canonical system name similar to +# config.sub. If it succeeds, it prints the system name on stdout, and +# exits with 0. Otherwise, it exits with 1. +# +# The plan is that this can be called by configure scripts if you +# don't specify an explicit build system type. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] + +Output the configuration name of the system \`$me' is run on. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.guess ($timestamp) + +Originally written by Per Bothner. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit 0 ;; + --version | -v ) + echo "$version" ; exit 0 ;; + --help | --h* | -h ) + echo "$usage"; exit 0 ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" >&2 + exit 1 ;; + * ) + break ;; + esac +done + +if test $# != 0; then + echo "$me: too many arguments$help" >&2 + exit 1 +fi + +trap 'exit 1' 1 2 15 + +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a +# compiler to aid in system detection is discouraged as it requires +# temporary files to be created and, as you can see below, it is a +# headache to deal with in a portable fashion. + +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still +# use `HOST_CC' if defined, but it is deprecated. + +# Portable tmp directory creation inspired by the Autoconf team. + +set_cc_for_build=' +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; +: ${TMPDIR=/tmp} ; + { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +dummy=$tmp/dummy ; +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; +case $CC_FOR_BUILD,$HOST_CC,$CC in + ,,) echo "int x;" > $dummy.c ; + for c in cc gcc c89 c99 ; do + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then + CC_FOR_BUILD="$c"; break ; + fi ; + done ; + if test x"$CC_FOR_BUILD" = x ; then + CC_FOR_BUILD=no_compiler_found ; + fi + ;; + ,,*) CC_FOR_BUILD=$CC ;; + ,*,*) CC_FOR_BUILD=$HOST_CC ;; +esac ;' + +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. +# (ghazi@noc.rutgers.edu 1994-08-24) +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then + PATH=$PATH:/.attbin ; export PATH +fi + +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown + +# Note: order is significant - the case branches are not exclusive. + +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in + *:NetBSD:*:*) + # NetBSD (nbsd) targets should (where applicable) match one or + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently + # switched to ELF, *-*-netbsd* would select the old + # object file format. This provides both forward + # compatibility and a consistent mechanism for selecting the + # object file format. + # + # Note: NetBSD doesn't particularly care about the vendor + # portion of the name. We always set it to "unknown". + sysctl="sysctl -n hw.machine_arch" + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ + /usr/sbin/$sysctl 2>/dev/null || echo unknown)` + case "${UNAME_MACHINE_ARCH}" in + armeb) machine=armeb-unknown ;; + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched + # to ELF recently, or will in the future. + case "${UNAME_MACHINE_ARCH}" in + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ + | grep __ELF__ >/dev/null + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? + os=netbsd + else + os=netbsdelf + fi + ;; + *) + os=netbsd + ;; + esac + # The OS release + # Debian GNU/NetBSD machines have a different userland, and + # thus, need a distinct triplet. However, they do not need + # kernel version information, so it can be replaced with a + # suitable tag, in the style of linux-gnu. + case "${UNAME_VERSION}" in + Debian*) + release='-gnu' + ;; + *) + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` + ;; + esac + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: + # contains redundant information, the shorter form: + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. + echo "${machine}-${os}${release}" + exit 0 ;; + amd64:OpenBSD:*:*) + echo x86_64-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + amiga:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + cats:OpenBSD:*:*) + echo arm-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + hp300:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + luna88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mac68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + macppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme68k:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvme88k:OpenBSD:*:*) + echo m88k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + mvmeppc:OpenBSD:*:*) + echo powerpc-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sgi:OpenBSD:*:*) + echo mips64-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + sun3:OpenBSD:*:*) + echo m68k-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:OpenBSD:*:*) + echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} + exit 0 ;; + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit 0 ;; + macppc:MirBSD:*:*) + echo powerppc-unknown-mirbsd${UNAME_RELEASE} + exit 0 ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} + exit 0 ;; + alpha:OSF1:*:*) + case $UNAME_RELEASE in + *4.0) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + ;; + *5.*) + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + ;; + esac + # According to Compaq, /usr/sbin/psrinfo has been available on + # OSF/1 and Tru64 systems produced since 1995. I hope that + # covers most systems running today. This code pipes the CPU + # types through head -n 1, so we only detect the type of CPU 0. + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` + case "$ALPHA_CPU_TYPE" in + "EV4 (21064)") + UNAME_MACHINE="alpha" ;; + "EV4.5 (21064)") + UNAME_MACHINE="alpha" ;; + "LCA4 (21066/21068)") + UNAME_MACHINE="alpha" ;; + "EV5 (21164)") + UNAME_MACHINE="alphaev5" ;; + "EV5.6 (21164A)") + UNAME_MACHINE="alphaev56" ;; + "EV5.6 (21164PC)") + UNAME_MACHINE="alphapca56" ;; + "EV5.7 (21164PC)") + UNAME_MACHINE="alphapca57" ;; + "EV6 (21264)") + UNAME_MACHINE="alphaev6" ;; + "EV6.7 (21264A)") + UNAME_MACHINE="alphaev67" ;; + "EV6.8CB (21264C)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8AL (21264B)") + UNAME_MACHINE="alphaev68" ;; + "EV6.8CX (21264D)") + UNAME_MACHINE="alphaev68" ;; + "EV6.9A (21264/EV69A)") + UNAME_MACHINE="alphaev69" ;; + "EV7 (21364)") + UNAME_MACHINE="alphaev7" ;; + "EV7.9 (21364A)") + UNAME_MACHINE="alphaev79" ;; + esac + # A Pn.n version is a patched version. + # A Vn.n version is a released version. + # A Tn.n version is a released field test version. + # A Xn.n version is an unreleased experimental baselevel. + # 1.2 uses "1.2" for uname -r. + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + exit 0 ;; + Alpha\ *:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # Should we change UNAME_MACHINE based on the output of uname instead + # of the specific Alpha model? + echo alpha-pc-interix + exit 0 ;; + 21064:Windows_NT:50:3) + echo alpha-dec-winnt3.5 + exit 0 ;; + Amiga*:UNIX_System_V:4.0:*) + echo m68k-unknown-sysv4 + exit 0;; + *:[Aa]miga[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-amigaos + exit 0 ;; + *:[Mm]orph[Oo][Ss]:*:*) + echo ${UNAME_MACHINE}-unknown-morphos + exit 0 ;; + *:OS/390:*:*) + echo i370-ibm-openedition + exit 0 ;; + *:z/VM:*:*) + echo s390-ibm-zvmoe + exit 0 ;; + *:OS400:*:*) + echo powerpc-ibm-os400 + exit 0 ;; + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) + echo arm-acorn-riscix${UNAME_RELEASE} + exit 0;; + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) + echo hppa1.1-hitachi-hiuxmpp + exit 0;; + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. + if test "`(/bin/universe) 2>/dev/null`" = att ; then + echo pyramid-pyramid-sysv3 + else + echo pyramid-pyramid-bsd + fi + exit 0 ;; + NILE*:*:*:dcosx) + echo pyramid-pyramid-svr4 + exit 0 ;; + DRS?6000:unix:4.0:6*) + echo sparc-icl-nx6 + exit 0 ;; + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7 && exit 0 ;; + esac ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + i86pc:SunOS:5.*:*) + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize + # SunOS6. Hard to guess exactly what SunOS6 will be like, but + # it's likely to be more like Solaris than SunOS4. + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + sun4*:SunOS:*:*) + case "`/usr/bin/arch -k`" in + Series*|S4*) + UNAME_RELEASE=`uname -v` + ;; + esac + # Japanese Language versions have a version number like `4.1.3-JL'. + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` + exit 0 ;; + sun3*:SunOS:*:*) + echo m68k-sun-sunos${UNAME_RELEASE} + exit 0 ;; + sun*:*:4.2BSD:*) + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 + case "`/bin/arch`" in + sun3) + echo m68k-sun-sunos${UNAME_RELEASE} + ;; + sun4) + echo sparc-sun-sunos${UNAME_RELEASE} + ;; + esac + exit 0 ;; + aushp:SunOS:*:*) + echo sparc-auspex-sunos${UNAME_RELEASE} + exit 0 ;; + # The situation for MiNT is a little confusing. The machine name + # can be virtually everything (everything which is not + # "atarist" or "atariste" at least should have a processor + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" + # to the lowercase version "mint" (or "freemint"). Finally + # the system name "TOS" denotes a system which is actually not + # MiNT. But MiNT is downward compatible to TOS, so this should + # be no problem. + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) + echo m68k-atari-mint${UNAME_RELEASE} + exit 0 ;; + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) + echo m68k-milan-mint${UNAME_RELEASE} + exit 0 ;; + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) + echo m68k-hades-mint${UNAME_RELEASE} + exit 0 ;; + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) + echo m68k-unknown-mint${UNAME_RELEASE} + exit 0 ;; + m68k:machten:*:*) + echo m68k-apple-machten${UNAME_RELEASE} + exit 0 ;; + powerpc:machten:*:*) + echo powerpc-apple-machten${UNAME_RELEASE} + exit 0 ;; + RISC*:Mach:*:*) + echo mips-dec-mach_bsd4.3 + exit 0 ;; + RISC*:ULTRIX:*:*) + echo mips-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + VAX*:ULTRIX*:*:*) + echo vax-dec-ultrix${UNAME_RELEASE} + exit 0 ;; + 2020:CLIX:*:* | 2430:CLIX:*:*) + echo clipper-intergraph-clix${UNAME_RELEASE} + exit 0 ;; + mips:*:*:UMIPS | mips:*:*:RISCos) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c +#ifdef __cplusplus +#include /* for printf() prototype */ + int main (int argc, char *argv[]) { +#else + int main (argc, argv) int argc; char *argv[]; { +#endif + #if defined (host_mips) && defined (MIPSEB) + #if defined (SYSTYPE_SYSV) + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_SVR4) + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); + #endif + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); + #endif + #endif + exit (-1); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c \ + && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ + && exit 0 + echo mips-mips-riscos${UNAME_RELEASE} + exit 0 ;; + Motorola:PowerMAX_OS:*:*) + echo powerpc-motorola-powermax + exit 0 ;; + Motorola:*:4.3:PL8-*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) + echo powerpc-harris-powermax + exit 0 ;; + Night_Hawk:Power_UNIX:*:*) + echo powerpc-harris-powerunix + exit 0 ;; + m88k:CX/UX:7*:*) + echo m88k-harris-cxux7 + exit 0 ;; + m88k:*:4*:R4*) + echo m88k-motorola-sysv4 + exit 0 ;; + m88k:*:3*:R3*) + echo m88k-motorola-sysv3 + exit 0 ;; + AViiON:dgux:*:*) + # DG/UX returns AViiON for all architectures + UNAME_PROCESSOR=`/usr/bin/uname -p` + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] + then + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ + [ ${TARGET_BINARY_INTERFACE}x = x ] + then + echo m88k-dg-dgux${UNAME_RELEASE} + else + echo m88k-dg-dguxbcs${UNAME_RELEASE} + fi + else + echo i586-dg-dgux${UNAME_RELEASE} + fi + exit 0 ;; + M88*:DolphinOS:*:*) # DolphinOS (SVR3) + echo m88k-dolphin-sysv3 + exit 0 ;; + M88*:*:R3*:*) + # Delta 88k system running SVR3 + echo m88k-motorola-sysv3 + exit 0 ;; + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) + echo m88k-tektronix-sysv3 + exit 0 ;; + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) + echo m68k-tektronix-bsd + exit 0 ;; + *:IRIX*:*:*) + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` + exit 0 ;; + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + i*86:AIX:*:*) + echo i386-ibm-aix + exit 0 ;; + ia64:AIX:*:*) + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:2:3) + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + + main() + { + if (!__power_pc()) + exit(1); + puts("powerpc-ibm-aix3.2.5"); + exit(0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + echo rs6000-ibm-aix3.2.5 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then + echo rs6000-ibm-aix3.2.4 + else + echo rs6000-ibm-aix3.2 + fi + exit 0 ;; + *:AIX:*:[45]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 + else + IBM_ARCH=powerpc + fi + if [ -x /usr/bin/oslevel ] ; then + IBM_REV=`/usr/bin/oslevel` + else + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} + fi + echo ${IBM_ARCH}-ibm-aix${IBM_REV} + exit 0 ;; + *:AIX:*:*) + echo rs6000-ibm-aix + exit 0 ;; + ibmrt:4.4BSD:*|romp-ibm:BSD:*) + echo romp-ibm-bsd4.4 + exit 0 ;; + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to + exit 0 ;; # report: romp-ibm BSD 4.3 + *:BOSX:*:*) + echo rs6000-bull-bosx + exit 0 ;; + DPX/2?00:B.O.S.:*:*) + echo m68k-bull-sysv3 + exit 0 ;; + 9000/[34]??:4.3bsd:1.*:*) + echo m68k-hp-bsd + exit 0 ;; + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) + echo m68k-hp-bsd4.4 + exit 0 ;; + 9000/[34678]??:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + case "${UNAME_MACHINE}" in + 9000/31? ) HP_ARCH=m68000 ;; + 9000/[34]?? ) HP_ARCH=m68k ;; + 9000/[678][0-9][0-9]) + if [ -x /usr/bin/getconf ]; then + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` + case "${sc_cpu_version}" in + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 + 532) # CPU_PA_RISC2_0 + case "${sc_kernel_bits}" in + 32) HP_ARCH="hppa2.0n" ;; + 64) HP_ARCH="hppa2.0w" ;; + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 + esac ;; + esac + fi + if [ "${HP_ARCH}" = "" ]; then + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + + #define _HPUX_SOURCE + #include + #include + + int main () + { + #if defined(_SC_KERNEL_BITS) + long bits = sysconf(_SC_KERNEL_BITS); + #endif + long cpu = sysconf (_SC_CPU_VERSION); + + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; + case CPU_PA_RISC2_0: + #if defined(_SC_KERNEL_BITS) + switch (bits) + { + case 64: puts ("hppa2.0w"); break; + case 32: puts ("hppa2.0n"); break; + default: puts ("hppa2.0"); break; + } break; + #else /* !defined(_SC_KERNEL_BITS) */ + puts ("hppa2.0"); break; + #endif + default: puts ("hppa1.0"); break; + } + exit (0); + } +EOF + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` + test -z "$HP_ARCH" && HP_ARCH=hppa + fi ;; + esac + if [ ${HP_ARCH} = "hppa2.0w" ] + then + # avoid double evaluation of $set_cc_for_build + test -n "$CC_FOR_BUILD" || eval $set_cc_for_build + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null + then + HP_ARCH="hppa2.0w" + else + HP_ARCH="hppa64" + fi + fi + echo ${HP_ARCH}-hp-hpux${HPUX_REV} + exit 0 ;; + ia64:HP-UX:*:*) + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` + echo ia64-hp-hpux${HPUX_REV} + exit 0 ;; + 3050*:HI-UX:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + int + main () + { + long cpu = sysconf (_SC_CPU_VERSION); + /* The order matters, because CPU_IS_HP_MC68K erroneously returns + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct + results, however. */ + if (CPU_IS_PA_RISC (cpu)) + { + switch (cpu) + { + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; + default: puts ("hppa-hitachi-hiuxwe2"); break; + } + } + else if (CPU_IS_HP_MC68K (cpu)) + puts ("m68k-hitachi-hiuxwe2"); + else puts ("unknown-hitachi-hiuxwe2"); + exit (0); + } +EOF + $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 + echo unknown-hitachi-hiuxwe2 + exit 0 ;; + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) + echo hppa1.1-hp-bsd + exit 0 ;; + 9000/8??:4.3bsd:*:*) + echo hppa1.0-hp-bsd + exit 0 ;; + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) + echo hppa1.0-hp-mpeix + exit 0 ;; + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) + echo hppa1.1-hp-osf + exit 0 ;; + hp8??:OSF1:*:*) + echo hppa1.0-hp-osf + exit 0 ;; + i*86:OSF1:*:*) + if [ -x /usr/sbin/sysversion ] ; then + echo ${UNAME_MACHINE}-unknown-osf1mk + else + echo ${UNAME_MACHINE}-unknown-osf1 + fi + exit 0 ;; + parisc*:Lites*:*:*) + echo hppa1.1-hp-lites + exit 0 ;; + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) + echo c1-convex-bsd + exit 0 ;; + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) + echo c34-convex-bsd + exit 0 ;; + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) + echo c38-convex-bsd + exit 0 ;; + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) + echo c4-convex-bsd + exit 0 ;; + CRAY*Y-MP:*:*:*) + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*[A-Z]90:*:*:*) + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ + -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*TS:*:*:*) + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*T3E:*:*:*) + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + CRAY*SV1:*:*:*) + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + *:UNICOS/mp:*:*) + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' + exit 0 ;; + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + 5000:UNIX_System_V:4.*:*) + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + exit 0 ;; + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} + exit 0 ;; + sparc*:BSD/OS:*:*) + echo sparc-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:BSD/OS:*:*) + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit 0 ;; + *:FreeBSD:*:*) + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit 0 ;; + i*:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit 0 ;; + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit 0 ;; + x86:Interix*:[34]*) + echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' + exit 0 ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit 0 ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we + # UNAME_MACHINE based on the output of uname instead of i386? + echo i586-pc-interix + exit 0 ;; + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit 0 ;; + amd64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit 0 ;; + p*:CYGWIN*:*) + echo powerpcle-unknown-cygwin + exit 0 ;; + prep*:SunOS:5.*:*) + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit 0 ;; + *:GNU:*:*) + # the GNU system + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` + exit 0 ;; + *:GNU/*:*:*) + # other systems with GNU libc and userland + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu + exit 0 ;; + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit 0 ;; + arm*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + cris:Linux:*:*) + echo cris-axis-linux-gnu + exit 0 ;; + crisv32:Linux:*:*) + echo crisv32-axis-linux-gnu + exit 0 ;; + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit 0 ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + m32r*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + mips:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips + #undef mipsel + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mipsel + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + ;; + mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU + #undef mips64 + #undef mips64el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) + CPU=mips64el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) + CPU=mips64 + #else + CPU= + #endif + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` + test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 + ;; + ppc:Linux:*:*) + echo powerpc-unknown-linux-gnu + exit 0 ;; + ppc64:Linux:*:*) + echo powerpc64-unknown-linux-gnu + exit 0 ;; + alpha:Linux:*:*) + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + EV5) UNAME_MACHINE=alphaev5 ;; + EV56) UNAME_MACHINE=alphaev56 ;; + PCA56) UNAME_MACHINE=alphapca56 ;; + PCA57) UNAME_MACHINE=alphapca56 ;; + EV6) UNAME_MACHINE=alphaev6 ;; + EV67) UNAME_MACHINE=alphaev67 ;; + EV68*) UNAME_MACHINE=alphaev68 ;; + esac + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} + exit 0 ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + PA7*) echo hppa1.1-unknown-linux-gnu ;; + PA8*) echo hppa2.0-unknown-linux-gnu ;; + *) echo hppa-unknown-linux-gnu ;; + esac + exit 0 ;; + parisc64:Linux:*:* | hppa64:Linux:*:*) + echo hppa64-unknown-linux-gnu + exit 0 ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux + exit 0 ;; + sh64*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + sh*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit 0 ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit 0 ;; + i*86:Linux:*:*) + # The BFD linker knows what the default object file format is, so + # first see if it will tell us. cd to the root directory to prevent + # problems with other programs or directories called `ld' in the path. + # Set LC_ALL=C to ensure ld outputs messages in English. + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ + | sed -ne '/supported targets:/!d + s/[ ][ ]*/ /g + s/.*supported targets: *// + s/ .*// + p'` + case "$ld_supported_targets" in + elf32-i386) + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" + ;; + a.out-i386-linux) + echo "${UNAME_MACHINE}-pc-linux-gnuaout" + exit 0 ;; + coff-i386) + echo "${UNAME_MACHINE}-pc-linux-gnucoff" + exit 0 ;; + "") + # Either a pre-BFD a.out linker (linux-gnuoldld) or + # one that does not give us useful --help. + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" + exit 0 ;; + esac + # Determine whether the default compiler is a.out or elf + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #include + #ifdef __ELF__ + # ifdef __GLIBC__ + # if __GLIBC__ >= 2 + LIBC=gnu + # else + LIBC=gnulibc1 + # endif + # else + LIBC=gnulibc1 + # endif + #else + #ifdef __INTEL_COMPILER + LIBC=gnu + #else + LIBC=gnuaout + #endif + #endif + #ifdef __dietlibc__ + LIBC=dietlibc + #endif +EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` + test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 + ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both + # sysname and nodename. + echo i386-sequent-sysv4 + exit 0 ;; + i*86:UNIX_SV:4.2MP:2.*) + # Unixware is an offshoot of SVR4, but it has its own version + # number series starting with 2... + # I am not positive that other SVR4 systems won't match this, + # I just have to hope. -- rms. + # Use sysv4.2uw... so that sysv4* matches it. + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} + exit 0 ;; + i*86:OS/2:*:*) + # If we were able to find `uname', then EMX Unix compatibility + # is probably installed. + echo ${UNAME_MACHINE}-pc-os2-emx + exit 0 ;; + i*86:XTS-300:*:STOP) + echo ${UNAME_MACHINE}-unknown-stop + exit 0 ;; + i*86:atheos:*:*) + echo ${UNAME_MACHINE}-unknown-atheos + exit 0 ;; + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit 0 ;; + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + i*86:*DOS:*:*) + echo ${UNAME_MACHINE}-pc-msdosdjgpp + exit 0 ;; + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} + else + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} + fi + exit 0 ;; + i*86:*:5:[78]*) + case `/bin/uname -X | grep "^Machine"` in + *486*) UNAME_MACHINE=i486 ;; + *Pentium) UNAME_MACHINE=i586 ;; + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; + esac + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} + exit 0 ;; + i*86:*:3.2:*) + if test -f /usr/options/cb.name; then + UNAME_REL=`sed -n 's/.*Version //p' /dev/null >/dev/null ; then + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ + && UNAME_MACHINE=i586 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ + && UNAME_MACHINE=i686 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ + && UNAME_MACHINE=i686 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL + else + echo ${UNAME_MACHINE}-pc-sysv32 + fi + exit 0 ;; + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about + # the processor, so we play safe by assuming i386. + echo i386-pc-msdosdjgpp + exit 0 ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 + exit 0 ;; + paragon:*:*:*) + echo i860-intel-osf1 + exit 0 ;; + i860:*:4.*:*) # i860-SVR4 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 + else # Add other i860-SVR4 vendors below as they are discovered. + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 + fi + exit 0 ;; + mini*:CTIX:SYS*5:*) + # "miniframe" + echo m68010-convergent-sysv + exit 0 ;; + mc68k:UNIX:SYSTEM5:3.51m) + echo m68k-convergent-sysv + exit 0 ;; + M680?0:D-NIX:5.3:*) + echo m68k-diab-dnix + exit 0 ;; + M68*:*:R3V[5678]*:*) + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) + OS_REL='' + test -r /etc/.relid \ + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && echo i486-ncr-sysv4 && exit 0 ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + mc68030:UNIX_System_V:4.*:*) + echo m68k-atari-sysv4 + exit 0 ;; + TSUNAMI:LynxOS:2.*:*) + echo sparc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit 0 ;; + SM[BE]S:UNIX_SV:*:*) + echo mips-dde-sysv${UNAME_RELEASE} + exit 0 ;; + RM*:ReliantUNIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + RM*:SINIX-*:*:*) + echo mips-sni-sysv4 + exit 0 ;; + *:SINIX-*:*:*) + if uname -p 2>/dev/null >/dev/null ; then + UNAME_MACHINE=`(uname -p) 2>/dev/null` + echo ${UNAME_MACHINE}-sni-sysv4 + else + echo ns32k-sni-sysv + fi + exit 0 ;; + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort + # says + echo i586-unisys-sysv4 + exit 0 ;; + *:UNIX_System_V:4*:FTX*) + # From Gerald Hewes . + # How about differentiating between stratus architectures? -djm + echo hppa1.1-stratus-sysv4 + exit 0 ;; + *:*:*:FTX*) + # From seanf@swdc.stratus.com. + echo i860-stratus-sysv4 + exit 0 ;; + i*86:VOS:*:*) + # From Paul.Green@stratus.com. + echo ${UNAME_MACHINE}-stratus-vos + exit 0 ;; + *:VOS:*:*) + # From Paul.Green@stratus.com. + echo hppa1.1-stratus-vos + exit 0 ;; + mc68*:A/UX:*:*) + echo m68k-apple-aux${UNAME_RELEASE} + exit 0 ;; + news*:NEWS-OS:6*:*) + echo mips-sony-newsos6 + exit 0 ;; + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) + if [ -d /usr/nec ]; then + echo mips-nec-sysv${UNAME_RELEASE} + else + echo mips-unknown-sysv${UNAME_RELEASE} + fi + exit 0 ;; + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. + echo powerpc-be-beos + exit 0 ;; + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. + echo powerpc-apple-beos + exit 0 ;; + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit 0 ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-5:SUPER-UX:*:*) + echo sx5-nec-superux${UNAME_RELEASE} + exit 0 ;; + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit 0 ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Rhapsody:*:*) + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} + exit 0 ;; + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in + *86) UNAME_PROCESSOR=i686 ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} + exit 0 ;; + *:procnto*:*:* | *:QNX:[0123456789]*:*) + UNAME_PROCESSOR=`uname -p` + if test "$UNAME_PROCESSOR" = "x86"; then + UNAME_PROCESSOR=i386 + UNAME_MACHINE=pc + fi + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} + exit 0 ;; + *:QNX:*:4*) + echo i386-pc-qnx + exit 0 ;; + NSE-?:NONSTOP_KERNEL:*:*) + echo nse-tandem-nsk${UNAME_RELEASE} + exit 0 ;; + NSR-?:NONSTOP_KERNEL:*:*) + echo nsr-tandem-nsk${UNAME_RELEASE} + exit 0 ;; + *:NonStop-UX:*:*) + echo mips-compaq-nonstopux + exit 0 ;; + BS2000:POSIX*:*:*) + echo bs2000-siemens-sysv + exit 0 ;; + DS/*:UNIX_System_V:*:*) + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} + exit 0 ;; + *:Plan9:*:*) + # "uname -m" is not consistent, so use $cputype instead. 386 + # is converted to i386 for consistency with other x86 + # operating systems. + if test "$cputype" = "386"; then + UNAME_MACHINE=i386 + else + UNAME_MACHINE="$cputype" + fi + echo ${UNAME_MACHINE}-unknown-plan9 + exit 0 ;; + *:TOPS-10:*:*) + echo pdp10-unknown-tops10 + exit 0 ;; + *:TENEX:*:*) + echo pdp10-unknown-tenex + exit 0 ;; + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) + echo pdp10-dec-tops20 + exit 0 ;; + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) + echo pdp10-xkl-tops20 + exit 0 ;; + *:TOPS-20:*:*) + echo pdp10-unknown-tops20 + exit 0 ;; + *:ITS:*:*) + echo pdp10-unknown-its + exit 0 ;; + SEI:*:*:SEIUX) + echo mips-sei-seiux${UNAME_RELEASE} + exit 0 ;; + *:DragonFly:*:*) + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` + exit 0 ;; + *:*VMS:*:*) + UNAME_MACHINE=`(uname -p) 2>/dev/null` + case "${UNAME_MACHINE}" in + A*) echo alpha-dec-vms && exit 0 ;; + I*) echo ia64-dec-vms && exit 0 ;; + V*) echo vax-dec-vms && exit 0 ;; + esac ;; + *:XENIX:*:SysV) + echo i386-pc-xenix + exit 0 ;; +esac + +#echo '(No uname command or uname output not recognized.)' 1>&2 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 + +eval $set_cc_for_build +cat >$dummy.c < +# include +#endif +main () +{ +#if defined (sony) +#if defined (MIPSEB) + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, + I don't know.... */ + printf ("mips-sony-bsd\n"); exit (0); +#else +#include + printf ("m68k-sony-newsos%s\n", +#ifdef NEWSOS4 + "4" +#else + "" +#endif + ); exit (0); +#endif +#endif + +#if defined (__arm) && defined (__acorn) && defined (__unix) + printf ("arm-acorn-riscix"); exit (0); +#endif + +#if defined (hp300) && !defined (hpux) + printf ("m68k-hp-bsd\n"); exit (0); +#endif + +#if defined (NeXT) +#if !defined (__ARCHITECTURE__) +#define __ARCHITECTURE__ "m68k" +#endif + int version; + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; + if (version < 4) + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); + else + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); + exit (0); +#endif + +#if defined (MULTIMAX) || defined (n16) +#if defined (UMAXV) + printf ("ns32k-encore-sysv\n"); exit (0); +#else +#if defined (CMU) + printf ("ns32k-encore-mach\n"); exit (0); +#else + printf ("ns32k-encore-bsd\n"); exit (0); +#endif +#endif +#endif + +#if defined (__386BSD__) + printf ("i386-pc-bsd\n"); exit (0); +#endif + +#if defined (sequent) +#if defined (i386) + printf ("i386-sequent-dynix\n"); exit (0); +#endif +#if defined (ns32000) + printf ("ns32k-sequent-dynix\n"); exit (0); +#endif +#endif + +#if defined (_SEQUENT_) + struct utsname un; + + uname(&un); + + if (strncmp(un.version, "V2", 2) == 0) { + printf ("i386-sequent-ptx2\n"); exit (0); + } + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ + printf ("i386-sequent-ptx1\n"); exit (0); + } + printf ("i386-sequent-ptx\n"); exit (0); + +#endif + +#if defined (vax) +# if !defined (ultrix) +# include +# if defined (BSD) +# if BSD == 43 + printf ("vax-dec-bsd4.3\n"); exit (0); +# else +# if BSD == 199006 + printf ("vax-dec-bsd4.3reno\n"); exit (0); +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# endif +# else + printf ("vax-dec-bsd\n"); exit (0); +# endif +# else + printf ("vax-dec-ultrix\n"); exit (0); +# endif +#endif + +#if defined (alliant) && defined (i860) + printf ("i860-alliant-bsd\n"); exit (0); +#endif + + exit (1); +} +EOF + +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 + +# Apollos put the system type in the environment. + +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } + +# Convex versions that predate uname can use getsysinfo(1) + +if [ -x /usr/convex/getsysinfo ] +then + case `getsysinfo -f cpu_type` in + c1*) + echo c1-convex-bsd + exit 0 ;; + c2*) + if getsysinfo -f scalar_acc + then echo c32-convex-bsd + else echo c2-convex-bsd + fi + exit 0 ;; + c34*) + echo c34-convex-bsd + exit 0 ;; + c38*) + echo c38-convex-bsd + exit 0 ;; + c4*) + echo c4-convex-bsd + exit 0 ;; + esac +fi + +cat >&2 < in order to provide the needed +information to handle your system. + +config.guess timestamp = $timestamp + +uname -m = `(uname -m) 2>/dev/null || echo unknown` +uname -r = `(uname -r) 2>/dev/null || echo unknown` +uname -s = `(uname -s) 2>/dev/null || echo unknown` +uname -v = `(uname -v) 2>/dev/null || echo unknown` + +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` + +hostinfo = `(hostinfo) 2>/dev/null` +/bin/universe = `(/bin/universe) 2>/dev/null` +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` +/bin/arch = `(/bin/arch) 2>/dev/null` +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` + +UNAME_MACHINE = ${UNAME_MACHINE} +UNAME_RELEASE = ${UNAME_RELEASE} +UNAME_SYSTEM = ${UNAME_SYSTEM} +UNAME_VERSION = ${UNAME_VERSION} +EOF + +exit 1 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/config.h.in b/config.h.in new file mode 100644 index 0000000..e1d834a --- /dev/null +++ b/config.h.in @@ -0,0 +1,36 @@ +/* config.h.in. Generated from configure.ac by autoheader. */ +#undef PACKAGE +#undef VERSION + +/* Do we have the Simple Directmedia Layer library */ +#undef HAVE_SDL + +/* Define to 1 if you have the `esd' library (-lesd). */ +#undef HAVE_LIBESD + +/* Define to 1 if you have the `vga' library (-lvga). */ +#undef HAVE_LIBVGA + +/* Name of package */ +#undef PACKAGE + +/* Define to the address where bug reports for this package should be sent. */ +#undef PACKAGE_BUGREPORT + +/* Define to the full name of this package. */ +#undef PACKAGE_NAME + +/* Define to the full name and version of this package. */ +#undef PACKAGE_STRING + +/* Define to the one symbol short name of this package. */ +#undef PACKAGE_TARNAME + +/* Define to the version of this package. */ +#undef PACKAGE_VERSION + +/* Version number of package */ +#undef VERSION + +/* Define to 1 if the X Window System is missing or not being used. */ +#undef X_DISPLAY_MISSING diff --git a/config.sub b/config.sub new file mode 100755 index 0000000..87a1ee4 --- /dev/null +++ b/config.sub @@ -0,0 +1,1569 @@ +#! /bin/sh +# Configuration validation subroutine script. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. + +timestamp='2005-04-22' + +# This file is (in principle) common to ALL GNU software. +# The presence of a machine in this file suggests that SOME GNU software +# can handle that machine. It does not imply ALL GNU software can. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# Please send patches to . Submit a context +# diff and a properly formatted ChangeLog entry. +# +# Configuration subroutine to validate and canonicalize a configuration type. +# Supply the specified configuration type as an argument. +# If it is invalid, we print an error message on stderr and exit with code 1. +# Otherwise, we print the canonical config type on stdout and succeed. + +# This file is supposed to be the same for all GNU packages +# and recognize all the CPU types, system types and aliases +# that are meaningful with *any* GNU software. +# Each package is responsible for reporting which valid configurations +# it does not support. The user should be able to distinguish +# a failure to support a valid configuration from a meaningless +# configuration. + +# The goal of this file is to map all the various variations of a given +# machine specification into a single specification in the form: +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM +# or in some cases, the newer four-part form: +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM +# It is wrong to echo any other type of specification. + +me=`echo "$0" | sed -e 's,.*/,,'` + +usage="\ +Usage: $0 [OPTION] CPU-MFR-OPSYS + $0 [OPTION] ALIAS + +Canonicalize a configuration name. + +Operation modes: + -h, --help print this help, then exit + -t, --time-stamp print date of last modification, then exit + -v, --version print version number, then exit + +Report bugs and patches to ." + +version="\ +GNU config.sub ($timestamp) + +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +Free Software Foundation, Inc. + +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." + +help=" +Try \`$me --help' for more information." + +# Parse command line +while test $# -gt 0 ; do + case $1 in + --time-stamp | --time* | -t ) + echo "$timestamp" ; exit 0 ;; + --version | -v ) + echo "$version" ; exit 0 ;; + --help | --h* | -h ) + echo "$usage"; exit 0 ;; + -- ) # Stop option processing + shift; break ;; + - ) # Use stdin as input. + break ;; + -* ) + echo "$me: invalid option $1$help" + exit 1 ;; + + *local*) + # First pass through any local machine types. + echo $1 + exit 0;; + + * ) + break ;; + esac +done + +case $# in + 0) echo "$me: missing argument$help" >&2 + exit 1;; + 1) ;; + *) echo "$me: too many arguments$help" >&2 + exit 1;; +esac + +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). +# Here we must recognize all the valid KERNEL-OS combinations. +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +case $maybe_os in + nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \ + kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + os=-$maybe_os + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` + ;; + *) + basic_machine=`echo $1 | sed 's/-[^-]*$//'` + if [ $basic_machine != $1 ] + then os=`echo $1 | sed 's/.*-/-/'` + else os=; fi + ;; +esac + +### Let's recognize common machines as not being operating systems so +### that things like config.sub decstation-3100 work. We also +### recognize some manufacturers as not being operating systems, so we +### can provide default operating systems below. +case $os in + -sun*os*) + # Prevent following clause from handling this invalid input. + ;; + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ + -apple | -axis | -knuth | -cray) + os= + basic_machine=$1 + ;; + -sim | -cisco | -oki | -wec | -winbond) + os= + basic_machine=$1 + ;; + -scout) + ;; + -wrs) + os=-vxworks + basic_machine=$1 + ;; + -chorusos*) + os=-chorusos + basic_machine=$1 + ;; + -chorusrdb) + os=-chorusrdb + basic_machine=$1 + ;; + -hiux*) + os=-hiuxwe2 + ;; + -sco5) + os=-sco3.2v5 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco4) + os=-sco3.2v4 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2.[4-9]*) + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco3.2v[4-9]*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -sco*) + os=-sco3.2v2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -udk*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -isc) + os=-isc2.2 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -clix*) + basic_machine=clipper-intergraph + ;; + -isc*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; + -lynx*) + os=-lynxos + ;; + -ptx*) + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` + ;; + -windowsnt*) + os=`echo $os | sed -e 's/windowsnt/winnt/'` + ;; + -psos*) + os=-psos + ;; + -mint | -mint[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; +esac + +# Decode aliases for certain CPU-COMPANY combinations. +case $basic_machine in + # Recognize the basic CPU types without company name. + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | bfin \ + | c4x | clipper \ + | d10v | d30v | dlx | dsp16xx \ + | fr30 | frv \ + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | i370 | i860 | i960 | ia64 \ + | ip2k | iq2000 \ + | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ + | mips64vr | mips64vrel \ + | mips64orion | mips64orionel \ + | mips64vr4100 | mips64vr4100el \ + | mips64vr4300 | mips64vr4300el \ + | mips64vr5000 | mips64vr5000el \ + | mipsisa32 | mipsisa32el \ + | mipsisa32r2 | mipsisa32r2el \ + | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ + | mipsisa64sb1 | mipsisa64sb1el \ + | mipsisa64sr71k | mipsisa64sr71kel \ + | mipstx39 | mipstx39el \ + | mn10200 | mn10300 \ + | msp430 \ + | ns16k | ns32k \ + | openrisc | or32 \ + | pdp10 | pdp11 | pj | pjl \ + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | pyramid \ + | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh64 | sh64le \ + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b \ + | strongarm \ + | tahoe | thumb | tic4x | tic80 | tron \ + | v850 | v850e \ + | we32k \ + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ + | z8k) + basic_machine=$basic_machine-unknown + ;; + m6811 | m68hc11 | m6812 | m68hc12) + # Motorola 68HC11/12. + basic_machine=$basic_machine-unknown + os=-none + ;; + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) + ;; + + # We use `pc' rather than `unknown' + # because (1) that's what they normally are, and + # (2) the word "unknown" tends to confuse beginning users. + i*86 | x86_64) + basic_machine=$basic_machine-pc + ;; + # Object if more than one company name word. + *-*-*) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ + | avr-* \ + | bfin-* | bs2000-* \ + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ + | clipper-* | craynv-* | cydra-* \ + | d10v-* | d30v-* | dlx-* \ + | elxsi-* \ + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ + | h8300-* | h8500-* \ + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ + | i*86-* | i860-* | i960-* | ia64-* \ + | ip2k-* | iq2000-* \ + | m32r-* | m32rle-* \ + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ + | mips16-* \ + | mips64-* | mips64el-* \ + | mips64vr-* | mips64vrel-* \ + | mips64orion-* | mips64orionel-* \ + | mips64vr4100-* | mips64vr4100el-* \ + | mips64vr4300-* | mips64vr4300el-* \ + | mips64vr5000-* | mips64vr5000el-* \ + | mipsisa32-* | mipsisa32el-* \ + | mipsisa32r2-* | mipsisa32r2el-* \ + | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ + | mipsisa64sb1-* | mipsisa64sb1el-* \ + | mipsisa64sr71k-* | mipsisa64sr71kel-* \ + | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | msp430-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ + | orion-* \ + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ + | pyramid-* \ + | romp-* | rs6000-* \ + | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | tahoe-* | thumb-* \ + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ + | tron-* \ + | v850-* | v850e-* | vax-* \ + | we32k-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa-* \ + | ymp-* \ + | z8k-*) + ;; + # Recognize the various machine names and aliases which stand + # for a CPU type and a company and sometimes even an OS. + 386bsd) + basic_machine=i386-unknown + os=-bsd + ;; + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) + basic_machine=m68000-att + ;; + 3b*) + basic_machine=we32k-att + ;; + a29khif) + basic_machine=a29k-amd + os=-udi + ;; + abacus) + basic_machine=abacus-unknown + ;; + adobe68k) + basic_machine=m68010-adobe + os=-scout + ;; + alliant | fx80) + basic_machine=fx80-alliant + ;; + altos | altos3068) + basic_machine=m68k-altos + ;; + am29k) + basic_machine=a29k-none + os=-bsd + ;; + amd64) + basic_machine=x86_64-pc + ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + amdahl) + basic_machine=580-amdahl + os=-sysv + ;; + amiga | amiga-*) + basic_machine=m68k-unknown + ;; + amigaos | amigados) + basic_machine=m68k-unknown + os=-amigaos + ;; + amigaunix | amix) + basic_machine=m68k-unknown + os=-sysv4 + ;; + apollo68) + basic_machine=m68k-apollo + os=-sysv + ;; + apollo68bsd) + basic_machine=m68k-apollo + os=-bsd + ;; + aux) + basic_machine=m68k-apple + os=-aux + ;; + balance) + basic_machine=ns32k-sequent + os=-dynix + ;; + c90) + basic_machine=c90-cray + os=-unicos + ;; + convex-c1) + basic_machine=c1-convex + os=-bsd + ;; + convex-c2) + basic_machine=c2-convex + os=-bsd + ;; + convex-c32) + basic_machine=c32-convex + os=-bsd + ;; + convex-c34) + basic_machine=c34-convex + os=-bsd + ;; + convex-c38) + basic_machine=c38-convex + os=-bsd + ;; + cray | j90) + basic_machine=j90-cray + os=-unicos + ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16c) + basic_machine=cr16c-unknown + os=-elf + ;; + crds | unos) + basic_machine=m68k-crds + ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; + cris | cris-* | etrax*) + basic_machine=cris-axis + ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; + da30 | da30-*) + basic_machine=m68k-da30 + ;; + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) + basic_machine=mips-dec + ;; + decsystem10* | dec10*) + basic_machine=pdp10-dec + os=-tops10 + ;; + decsystem20* | dec20*) + basic_machine=pdp10-dec + os=-tops20 + ;; + delta | 3300 | motorola-3300 | motorola-delta \ + | 3300-motorola | delta-motorola) + basic_machine=m68k-motorola + ;; + delta88) + basic_machine=m88k-motorola + os=-sysv3 + ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; + dpx20 | dpx20-*) + basic_machine=rs6000-bull + os=-bosx + ;; + dpx2* | dpx2*-bull) + basic_machine=m68k-bull + os=-sysv3 + ;; + ebmon29k) + basic_machine=a29k-amd + os=-ebmon + ;; + elxsi) + basic_machine=elxsi-elxsi + os=-bsd + ;; + encore | umax | mmax) + basic_machine=ns32k-encore + ;; + es1800 | OSE68k | ose68k | ose | OSE) + basic_machine=m68k-ericsson + os=-ose + ;; + fx2800) + basic_machine=i860-alliant + ;; + genix) + basic_machine=ns32k-ns + ;; + gmicro) + basic_machine=tron-gmicro + os=-sysv + ;; + go32) + basic_machine=i386-pc + os=-go32 + ;; + h3050r* | hiux*) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + h8300hms) + basic_machine=h8300-hitachi + os=-hms + ;; + h8300xray) + basic_machine=h8300-hitachi + os=-xray + ;; + h8500hms) + basic_machine=h8500-hitachi + os=-hms + ;; + harris) + basic_machine=m88k-harris + os=-sysv3 + ;; + hp300-*) + basic_machine=m68k-hp + ;; + hp300bsd) + basic_machine=m68k-hp + os=-bsd + ;; + hp300hpux) + basic_machine=m68k-hp + os=-hpux + ;; + hp3k9[0-9][0-9] | hp9[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k2[0-9][0-9] | hp9k31[0-9]) + basic_machine=m68000-hp + ;; + hp9k3[2-9][0-9]) + basic_machine=m68k-hp + ;; + hp9k6[0-9][0-9] | hp6[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hp9k7[0-79][0-9] | hp7[0-79][0-9]) + basic_machine=hppa1.1-hp + ;; + hp9k78[0-9] | hp78[0-9]) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) + # FIXME: really hppa2.0-hp + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][13679] | hp8[0-9][13679]) + basic_machine=hppa1.1-hp + ;; + hp9k8[0-9][0-9] | hp8[0-9][0-9]) + basic_machine=hppa1.0-hp + ;; + hppa-next) + os=-nextstep3 + ;; + hppaosf) + basic_machine=hppa1.1-hp + os=-osf + ;; + hppro) + basic_machine=hppa1.1-hp + os=-proelf + ;; + i370-ibm* | ibm*) + basic_machine=i370-ibm + ;; +# I'm not sure what "Sysv32" means. Should this be sysv3.2? + i*86v32) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv32 + ;; + i*86v4*) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv4 + ;; + i*86v) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-sysv + ;; + i*86sol2) + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` + os=-solaris2 + ;; + i386mach) + basic_machine=i386-mach + os=-mach + ;; + i386-vsta | vsta) + basic_machine=i386-unknown + os=-vsta + ;; + iris | iris4d) + basic_machine=mips-sgi + case $os in + -irix*) + ;; + *) + os=-irix4 + ;; + esac + ;; + isi68 | isi) + basic_machine=m68k-isi + os=-sysv + ;; + m88k-omron*) + basic_machine=m88k-omron + ;; + magnum | m3230) + basic_machine=mips-mips + os=-sysv + ;; + merlin) + basic_machine=ns32k-utek + os=-sysv + ;; + mingw32) + basic_machine=i386-pc + os=-mingw32 + ;; + miniframe) + basic_machine=m68000-convergent + ;; + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) + basic_machine=m68k-atari + os=-mint + ;; + mips3*-*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` + ;; + mips3*) + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown + ;; + monitor) + basic_machine=m68k-rom68k + os=-coff + ;; + morphos) + basic_machine=powerpc-unknown + os=-morphos + ;; + msdos) + basic_machine=i386-pc + os=-msdos + ;; + mvs) + basic_machine=i370-ibm + os=-mvs + ;; + ncr3000) + basic_machine=i486-ncr + os=-sysv4 + ;; + netbsd386) + basic_machine=i386-unknown + os=-netbsd + ;; + netwinder) + basic_machine=armv4l-rebel + os=-linux + ;; + news | news700 | news800 | news900) + basic_machine=m68k-sony + os=-newsos + ;; + news1000) + basic_machine=m68030-sony + os=-newsos + ;; + news-3600 | risc-news) + basic_machine=mips-sony + os=-newsos + ;; + necv70) + basic_machine=v70-nec + os=-sysv + ;; + next | m*-next ) + basic_machine=m68k-next + case $os in + -nextstep* ) + ;; + -ns2*) + os=-nextstep2 + ;; + *) + os=-nextstep3 + ;; + esac + ;; + nh3000) + basic_machine=m68k-harris + os=-cxux + ;; + nh[45]000) + basic_machine=m88k-harris + os=-cxux + ;; + nindy960) + basic_machine=i960-intel + os=-nindy + ;; + mon960) + basic_machine=i960-intel + os=-mon960 + ;; + nonstopux) + basic_machine=mips-compaq + os=-nonstopux + ;; + np1) + basic_machine=np1-gould + ;; + nsr-tandem) + basic_machine=nsr-tandem + ;; + op50n-* | op60c-*) + basic_machine=hppa1.1-oki + os=-proelf + ;; + or32 | or32-*) + basic_machine=or32-unknown + os=-coff + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 + ;; + OSE68000 | ose68000) + basic_machine=m68000-ericsson + os=-ose + ;; + os68k) + basic_machine=m68k-none + os=-os68k + ;; + pa-hitachi) + basic_machine=hppa1.1-hitachi + os=-hiuxwe2 + ;; + paragon) + basic_machine=i860-intel + os=-osf + ;; + pbd) + basic_machine=sparc-tti + ;; + pbb) + basic_machine=m68k-tti + ;; + pc532 | pc532-*) + basic_machine=ns32k-pc532 + ;; + pentium | p5 | k5 | k6 | nexgen | viac3) + basic_machine=i586-pc + ;; + pentiumpro | p6 | 6x86 | athlon | athlon_*) + basic_machine=i686-pc + ;; + pentiumii | pentium2 | pentiumiii | pentium3) + basic_machine=i686-pc + ;; + pentium4) + basic_machine=i786-pc + ;; + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumpro-* | p6-* | 6x86-* | athlon-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*) + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pentium4-*) + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + pn) + basic_machine=pn-gould + ;; + power) basic_machine=power-ibm + ;; + ppc) basic_machine=powerpc-unknown + ;; + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppcle | powerpclittle | ppc-le | powerpc-little) + basic_machine=powerpcle-unknown + ;; + ppcle-* | powerpclittle-*) + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64) basic_machine=powerpc64-unknown + ;; + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ppc64le | powerpc64little | ppc64-le | powerpc64-little) + basic_machine=powerpc64le-unknown + ;; + ppc64le-* | powerpc64little-*) + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; + ps2) + basic_machine=i386-ibm + ;; + pw32) + basic_machine=i586-unknown + os=-pw32 + ;; + rom68k) + basic_machine=m68k-rom68k + os=-coff + ;; + rm[46]00) + basic_machine=mips-siemens + ;; + rtpc | rtpc-*) + basic_machine=romp-ibm + ;; + s390 | s390-*) + basic_machine=s390-ibm + ;; + s390x | s390x-*) + basic_machine=s390x-ibm + ;; + sa29200) + basic_machine=a29k-amd + os=-udi + ;; + sb1) + basic_machine=mipsisa64sb1-unknown + ;; + sb1el) + basic_machine=mipsisa64sb1el-unknown + ;; + sei) + basic_machine=mips-sei + os=-seiux + ;; + sequent) + basic_machine=i386-sequent + ;; + sh) + basic_machine=sh-hitachi + os=-hms + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparclite-wrs | simso-wrs) + basic_machine=sparclite-wrs + os=-vxworks + ;; + sps7) + basic_machine=m68k-bull + os=-sysv2 + ;; + spur) + basic_machine=spur-unknown + ;; + st2000) + basic_machine=m68k-tandem + ;; + stratus) + basic_machine=i860-stratus + os=-sysv4 + ;; + sun2) + basic_machine=m68000-sun + ;; + sun2os3) + basic_machine=m68000-sun + os=-sunos3 + ;; + sun2os4) + basic_machine=m68000-sun + os=-sunos4 + ;; + sun3os3) + basic_machine=m68k-sun + os=-sunos3 + ;; + sun3os4) + basic_machine=m68k-sun + os=-sunos4 + ;; + sun4os3) + basic_machine=sparc-sun + os=-sunos3 + ;; + sun4os4) + basic_machine=sparc-sun + os=-sunos4 + ;; + sun4sol2) + basic_machine=sparc-sun + os=-solaris2 + ;; + sun3 | sun3-*) + basic_machine=m68k-sun + ;; + sun4) + basic_machine=sparc-sun + ;; + sun386 | sun386i | roadrunner) + basic_machine=i386-sun + ;; + sv1) + basic_machine=sv1-cray + os=-unicos + ;; + symmetry) + basic_machine=i386-sequent + os=-dynix + ;; + t3e) + basic_machine=alphaev5-cray + os=-unicos + ;; + t90) + basic_machine=t90-cray + os=-unicos + ;; + tic54x | c54x*) + basic_machine=tic54x-unknown + os=-coff + ;; + tic55x | c55x*) + basic_machine=tic55x-unknown + os=-coff + ;; + tic6x | c6x*) + basic_machine=tic6x-unknown + os=-coff + ;; + tx39) + basic_machine=mipstx39-unknown + ;; + tx39el) + basic_machine=mipstx39el-unknown + ;; + toad1) + basic_machine=pdp10-xkl + os=-tops20 + ;; + tower | tower-32) + basic_machine=m68k-ncr + ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; + udi29k) + basic_machine=a29k-amd + os=-udi + ;; + ultra3) + basic_machine=a29k-nyu + os=-sym1 + ;; + v810 | necv810) + basic_machine=v810-nec + os=-none + ;; + vaxv) + basic_machine=vax-dec + os=-sysv + ;; + vms) + basic_machine=vax-dec + os=-vms + ;; + vpp*|vx|vx-*) + basic_machine=f301-fujitsu + ;; + vxworks960) + basic_machine=i960-wrs + os=-vxworks + ;; + vxworks68) + basic_machine=m68k-wrs + os=-vxworks + ;; + vxworks29k) + basic_machine=a29k-wrs + os=-vxworks + ;; + w65*) + basic_machine=w65-wdc + os=-none + ;; + w89k-*) + basic_machine=hppa1.1-winbond + os=-proelf + ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; + xps | xps100) + basic_machine=xps100-honeywell + ;; + ymp) + basic_machine=ymp-cray + os=-unicos + ;; + z8k-*-coff) + basic_machine=z8k-unknown + os=-sim + ;; + none) + basic_machine=none-none + os=-none + ;; + +# Here we handle the default manufacturer of certain CPU types. It is in +# some cases the only manufacturer, in others, it is the most popular. + w89k) + basic_machine=hppa1.1-winbond + ;; + op50n) + basic_machine=hppa1.1-oki + ;; + op60c) + basic_machine=hppa1.1-oki + ;; + romp) + basic_machine=romp-ibm + ;; + mmix) + basic_machine=mmix-knuth + ;; + rs6000) + basic_machine=rs6000-ibm + ;; + vax) + basic_machine=vax-dec + ;; + pdp10) + # there are many clones, so DEC is not a safe bet + basic_machine=pdp10-unknown + ;; + pdp11) + basic_machine=pdp11-dec + ;; + we32k) + basic_machine=we32k-att + ;; + sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + basic_machine=sh-unknown + ;; + sh64) + basic_machine=sh64-unknown + ;; + sparc | sparcv8 | sparcv9 | sparcv9b) + basic_machine=sparc-sun + ;; + cydra) + basic_machine=cydra-cydrome + ;; + orion) + basic_machine=orion-highlevel + ;; + orion105) + basic_machine=clipper-highlevel + ;; + mac | mpw | mac-mpw) + basic_machine=m68k-apple + ;; + pmac | pmac-mpw) + basic_machine=powerpc-apple + ;; + *-unknown) + # Make sure to match an already-canonicalized machine name. + ;; + *) + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 + exit 1 + ;; +esac + +# Here we canonicalize certain aliases for manufacturers. +case $basic_machine in + *-digital*) + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` + ;; + *-commodore*) + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` + ;; + *) + ;; +esac + +# Decode manufacturer-specific aliases for certain operating systems. + +if [ x"$os" != x"" ] +then +case $os in + # First match some system type aliases + # that might get confused with valid system types. + # -solaris* is a basic system type, with this one exception. + -solaris1 | -solaris1.*) + os=`echo $os | sed -e 's|solaris1|sunos4|'` + ;; + -solaris) + os=-solaris2 + ;; + -svr4*) + os=-sysv4 + ;; + -unixware*) + os=-sysv4.2uw + ;; + -gnu/linux*) + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` + ;; + # First accept the basic system types. + # The portable systems comes first. + # Each alternative MUST END IN A *, to match a version number. + # -sysv* is not here because it comes later, after sysvr4. + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ + | -aos* \ + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ + | -chorusos* | -chorusrdb* \ + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ + | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*) + # Remember, each alternative MUST END IN *, to match a version number. + ;; + -qnx*) + case $basic_machine in + x86-* | i*86-*) + ;; + *) + os=-nto$os + ;; + esac + ;; + -nto-qnx*) + ;; + -nto*) + os=`echo $os | sed -e 's|nto|nto-qnx|'` + ;; + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) + ;; + -mac*) + os=`echo $os | sed -e 's|mac|macos|'` + ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; + -linux*) + os=`echo $os | sed -e 's|linux|linux-gnu|'` + ;; + -sunos5*) + os=`echo $os | sed -e 's|sunos5|solaris2|'` + ;; + -sunos6*) + os=`echo $os | sed -e 's|sunos6|solaris3|'` + ;; + -opened*) + os=-openedition + ;; + -os400*) + os=-os400 + ;; + -wince*) + os=-wince + ;; + -osfrose*) + os=-osfrose + ;; + -osf*) + os=-osf + ;; + -utek*) + os=-bsd + ;; + -dynix*) + os=-bsd + ;; + -acis*) + os=-aos + ;; + -atheos*) + os=-atheos + ;; + -syllable*) + os=-syllable + ;; + -386bsd) + os=-bsd + ;; + -ctix* | -uts*) + os=-sysv + ;; + -nova*) + os=-rtmk-nova + ;; + -ns2 ) + os=-nextstep2 + ;; + -nsk*) + os=-nsk + ;; + # Preserve the version number of sinix5. + -sinix5.*) + os=`echo $os | sed -e 's|sinix|sysv|'` + ;; + -sinix*) + os=-sysv4 + ;; + -tpf*) + os=-tpf + ;; + -triton*) + os=-sysv3 + ;; + -oss*) + os=-sysv3 + ;; + -svr4) + os=-sysv4 + ;; + -svr3) + os=-sysv3 + ;; + -sysvr4) + os=-sysv4 + ;; + # This must come after -sysvr4. + -sysv*) + ;; + -ose*) + os=-ose + ;; + -es1800*) + os=-ose + ;; + -xenix) + os=-xenix + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + os=-mint + ;; + -aros*) + os=-aros + ;; + -kaos*) + os=-kaos + ;; + -zvmoe) + os=-zvmoe + ;; + -none) + ;; + *) + # Get rid of the `-' at the beginning of $os. + os=`echo $os | sed 's/[^-]*-//'` + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 + exit 1 + ;; +esac +else + +# Here we handle the default operating systems that come with various machines. +# The value should be what the vendor currently ships out the door with their +# machine or put another way, the most popular os provided with the machine. + +# Note that if you're going to try to match "-MANUFACTURER" here (say, +# "-sun"), then you have to tell the case statement up towards the top +# that MANUFACTURER isn't an operating system. Otherwise, code above +# will signal an error saying that MANUFACTURER isn't an operating +# system, and we'll never get to this point. + +case $basic_machine in + *-acorn) + os=-riscix1.2 + ;; + arm*-rebel) + os=-linux + ;; + arm*-semi) + os=-aout + ;; + c4x-* | tic4x-*) + os=-coff + ;; + # This must come before the *-dec entry. + pdp10-*) + os=-tops20 + ;; + pdp11-*) + os=-none + ;; + *-dec | vax-*) + os=-ultrix4.2 + ;; + m68*-apollo) + os=-domain + ;; + i386-sun) + os=-sunos4.0.2 + ;; + m68000-sun) + os=-sunos3 + # This also exists in the configure program, but was not the + # default. + # os=-sunos4 + ;; + m68*-cisco) + os=-aout + ;; + mips*-cisco) + os=-elf + ;; + mips*-*) + os=-elf + ;; + or32-*) + os=-coff + ;; + *-tti) # must be before sparc entry or we get the wrong os. + os=-sysv3 + ;; + sparc-* | *-sun) + os=-sunos4.1.1 + ;; + *-be) + os=-beos + ;; + *-ibm) + os=-aix + ;; + *-knuth) + os=-mmixware + ;; + *-wec) + os=-proelf + ;; + *-winbond) + os=-proelf + ;; + *-oki) + os=-proelf + ;; + *-hp) + os=-hpux + ;; + *-hitachi) + os=-hiux + ;; + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) + os=-sysv + ;; + *-cbm) + os=-amigaos + ;; + *-dg) + os=-dgux + ;; + *-dolphin) + os=-sysv3 + ;; + m68k-ccur) + os=-rtu + ;; + m88k-omron*) + os=-luna + ;; + *-next ) + os=-nextstep + ;; + *-sequent) + os=-ptx + ;; + *-crds) + os=-unos + ;; + *-ns) + os=-genix + ;; + i370-*) + os=-mvs + ;; + *-next) + os=-nextstep3 + ;; + *-gould) + os=-sysv + ;; + *-highlevel) + os=-bsd + ;; + *-encore) + os=-bsd + ;; + *-sgi) + os=-irix + ;; + *-siemens) + os=-sysv4 + ;; + *-masscomp) + os=-rtu + ;; + f30[01]-fujitsu | f700-fujitsu) + os=-uxpv + ;; + *-rom68k) + os=-coff + ;; + *-*bug) + os=-coff + ;; + *-apple) + os=-macos + ;; + *-atari*) + os=-mint + ;; + *) + os=-none + ;; +esac +fi + +# Here we handle the case where we know the os, and the CPU type, but not the +# manufacturer. We pick the logical manufacturer. +vendor=unknown +case $basic_machine in + *-unknown) + case $os in + -riscix*) + vendor=acorn + ;; + -sunos*) + vendor=sun + ;; + -aix*) + vendor=ibm + ;; + -beos*) + vendor=be + ;; + -hpux*) + vendor=hp + ;; + -mpeix*) + vendor=hp + ;; + -hiux*) + vendor=hitachi + ;; + -unos*) + vendor=crds + ;; + -dgux*) + vendor=dg + ;; + -luna*) + vendor=omron + ;; + -genix*) + vendor=ns + ;; + -mvs* | -opened*) + vendor=ibm + ;; + -os400*) + vendor=ibm + ;; + -ptx*) + vendor=sequent + ;; + -tpf*) + vendor=ibm + ;; + -vxsim* | -vxworks* | -windiss*) + vendor=wrs + ;; + -aux*) + vendor=apple + ;; + -hms*) + vendor=hitachi + ;; + -mpw* | -macos*) + vendor=apple + ;; + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) + vendor=atari + ;; + -vos*) + vendor=stratus + ;; + esac + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` + ;; +esac + +echo $basic_machine$os +exit 0 + +# Local variables: +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "timestamp='" +# time-stamp-format: "%:y-%02m-%02d" +# time-stamp-end: "'" +# End: diff --git a/configure b/configure new file mode 100755 index 0000000..eb55723 --- /dev/null +++ b/configure @@ -0,0 +1,6375 @@ +#! /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_unique_file="main.cc" +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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS SDL_CONFIG SDL_CFLAGS SDL_LIBS 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 +ac_env_CXX_set=${CXX+set} +ac_env_CXX_value=$CXX +ac_cv_env_CXX_set=${CXX+set} +ac_cv_env_CXX_value=$CXX +ac_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_env_CXXFLAGS_value=$CXXFLAGS +ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} +ac_cv_env_CXXFLAGS_value=$CXXFLAGS +ac_env_CPP_set=${CPP+set} +ac_env_CPP_value=$CPP +ac_cv_env_CPP_set=${CPP+set} +ac_cv_env_CPP_value=$CPP + +# +# 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 + +Program names: + --program-prefix=PREFIX prepend PREFIX to installed program names + --program-suffix=SUFFIX append SUFFIX to installed program names + --program-transform-name=PROGRAM run sed PROGRAM on installed program names + +X features: + --x-includes=DIR X include files are in DIR + --x-libraries=DIR X library files are in DIR + +System types: + --build=BUILD configure for building on BUILD [guessed] + --host=HOST cross-compile to build programs to run on HOST [BUILD] + --target=TARGET configure for building compilers for TARGET [HOST] +_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-sdltest Do not try to compile and run a test SDL program + +Optional Packages: + --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] + --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) + --with-x use the X Window System + --with-sdl-prefix=PFX Prefix where SDL is installed (optional) + --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional) + +Some influential environment variables: + CC C compiler command + CFLAGS C compiler flags + LDFLAGS linker flags, e.g. -L if you have libraries in a + nonstandard directory + CPPFLAGS C/C++ preprocessor flags, e.g. -I if you have + headers in a nonstandard directory + CXX C++ compiler command + CXXFLAGS C++ compiler flags + CPP C preprocessor + +Use these variables to override the choices made by `configure' or to help +it to find libraries and programs with nonstandard names/locations. + +_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 + + + + + + + + + + + + + + + + + + + + +ac_aux_dir= +for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do + if test -f $ac_dir/install-sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install-sh -c" + break + elif test -f $ac_dir/install.sh; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/install.sh -c" + break + elif test -f $ac_dir/shtool; then + ac_aux_dir=$ac_dir + ac_install_sh="$ac_aux_dir/shtool install -c" + break + fi +done +if test -z "$ac_aux_dir"; then + { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 +echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} + { (exit 1); exit 1; }; } +fi +ac_config_guess="$SHELL $ac_aux_dir/config.guess" +ac_config_sub="$SHELL $ac_aux_dir/config.sub" +ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. + +# Make sure we can run config.sub. +$ac_config_sub sun4 >/dev/null 2>&1 || + { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 +echo "$as_me: error: cannot run $ac_config_sub" >&2;} + { (exit 1); exit 1; }; } + +echo "$as_me:$LINENO: checking build system type" >&5 +echo $ECHO_N "checking build system type... $ECHO_C" >&6 +if test "${ac_cv_build+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_build_alias=$build_alias +test -z "$ac_cv_build_alias" && + ac_cv_build_alias=`$ac_config_guess` +test -z "$ac_cv_build_alias" && + { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 +echo "$as_me: error: cannot guess build type; you must specify one" >&2;} + { (exit 1); exit 1; }; } +ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_build" >&5 +echo "${ECHO_T}$ac_cv_build" >&6 +build=$ac_cv_build +build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +echo "$as_me:$LINENO: checking host system type" >&5 +echo $ECHO_N "checking host system type... $ECHO_C" >&6 +if test "${ac_cv_host+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_host_alias=$host_alias +test -z "$ac_cv_host_alias" && + ac_cv_host_alias=$ac_cv_build_alias +ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_host" >&5 +echo "${ECHO_T}$ac_cv_host" >&6 +host=$ac_cv_host +host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +echo "$as_me:$LINENO: checking target system type" >&5 +echo $ECHO_N "checking target system type... $ECHO_C" >&6 +if test "${ac_cv_target+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_cv_target_alias=$target_alias +test "x$ac_cv_target_alias" = "x" && + ac_cv_target_alias=$ac_cv_host_alias +ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || + { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 +echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} + { (exit 1); exit 1; }; } + +fi +echo "$as_me:$LINENO: result: $ac_cv_target" >&5 +echo "${ECHO_T}$ac_cv_target" >&6 +target=$ac_cv_target +target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` +target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` +target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` + + +# The aliases save the names the user supplied, while $host etc. +# will get canonicalized. +test -n "$target_alias" && + test "$program_prefix$program_suffix$program_transform_name" = \ + NONENONEs,x,x, && + program_prefix=${target_alias}- + +am__api_version="1.4" +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + +echo "$as_me:$LINENO: checking whether build environment is sane" >&5 +echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 +# Just in case +sleep 1 +echo timestamp > conftestfile +# Do `set' in a subshell so we don't clobber the current shell's +# arguments. Must try -L first in case configure is actually a +# symlink; some systems play weird games with the mod time of symlinks +# (eg FreeBSD returns the mod time of the symlink's containing +# directory). +if ( + set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` + if test "$*" = "X"; then + # -L didn't work. + set X `ls -t $srcdir/configure conftestfile` + fi + if test "$*" != "X $srcdir/configure conftestfile" \ + && test "$*" != "X conftestfile $srcdir/configure"; then + + # If neither matched, then we have a broken ls. This can happen + # if, for instance, CONFIG_SHELL is bash and it inherits a + # broken ls alias from the environment. This has actually + # happened. Such a system could not be considered "sane". + { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&5 +echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken +alias in your environment" >&2;} + { (exit 1); exit 1; }; } + fi + + test "$2" = conftestfile + ) +then + # Ok. + : +else + { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! +Check your system clock" >&5 +echo "$as_me: error: newly created file is older than distributed files! +Check your system clock" >&2;} + { (exit 1); exit 1; }; } +fi +rm -f conftest* +echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 +test "$program_prefix" != NONE && + program_transform_name="s,^,$program_prefix,;$program_transform_name" +# Use a double $ so make ignores it. +test "$program_suffix" != NONE && + program_transform_name="s,\$,$program_suffix,;$program_transform_name" +# Double any \ or $. echo might interpret backslashes. +# By default was `s,x,x', remove it if useless. +cat <<\_ACEOF >conftest.sed +s/[\\$]/&&/g;s/;s,x,x,$// +_ACEOF +program_transform_name=`echo $program_transform_name | sed -f conftest.sed` +rm conftest.sed + +echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 +echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` +if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.make <<\_ACEOF +all: + @echo 'ac_maketemp="$(MAKE)"' +_ACEOF +# GNU make sometimes prints "make[1]: Entering...", which would confuse us. +eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` +if test -n "$ac_maketemp"; then + eval ac_cv_prog_make_${ac_make}_set=yes +else + eval ac_cv_prog_make_${ac_make}_set=no +fi +rm -f conftest.make +fi +if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + SET_MAKE= +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + SET_MAKE="MAKE=${MAKE-make}" +fi + + +PACKAGE=synaesthesia + +VERSION=2.4 + +if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then + { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 +echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} + { (exit 1); exit 1; }; } +fi + +cat >>confdefs.h <<_ACEOF +#define PACKAGE "$PACKAGE" +_ACEOF + + +cat >>confdefs.h <<_ACEOF +#define VERSION "$VERSION" +_ACEOF + + + +missing_dir=`cd $ac_aux_dir && pwd` +echo "$as_me:$LINENO: checking for working aclocal-${am__api_version}" >&5 +echo $ECHO_N "checking for working aclocal-${am__api_version}... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then + ACLOCAL=aclocal-${am__api_version} + echo "$as_me:$LINENO: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + ACLOCAL="$missing_dir/missing aclocal-${am__api_version}" + echo "$as_me:$LINENO: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:$LINENO: checking for working autoconf" >&5 +echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (autoconf --version) < /dev/null > /dev/null 2>&1; then + AUTOCONF=autoconf + echo "$as_me:$LINENO: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + AUTOCONF="$missing_dir/missing autoconf" + echo "$as_me:$LINENO: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:$LINENO: checking for working automake-${am__api_version}" >&5 +echo $ECHO_N "checking for working automake-${am__api_version}... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then + AUTOMAKE=automake-${am__api_version} + echo "$as_me:$LINENO: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + AUTOMAKE="$missing_dir/missing automake-${am__api_version}" + echo "$as_me:$LINENO: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:$LINENO: checking for working autoheader" >&5 +echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (autoheader --version) < /dev/null > /dev/null 2>&1; then + AUTOHEADER=autoheader + echo "$as_me:$LINENO: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + AUTOHEADER="$missing_dir/missing autoheader" + echo "$as_me:$LINENO: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + +echo "$as_me:$LINENO: checking for working makeinfo" >&5 +echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6 +# Run test in a subshell; some versions of sh will print an error if +# an executable is not found, even if stderr is redirected. +# Redirect stdin to placate older versions of autoconf. Sigh. +if (makeinfo --version) < /dev/null > /dev/null 2>&1; then + MAKEINFO=makeinfo + echo "$as_me:$LINENO: result: found" >&5 +echo "${ECHO_T}found" >&6 +else + MAKEINFO="$missing_dir/missing makeinfo" + echo "$as_me:$LINENO: result: missing" >&5 +echo "${ECHO_T}missing" >&6 +fi + + + + ac_config_headers="$ac_config_headers config.h" + + ac_config_commands="$ac_config_commands default-1" + + +CXXFLAGS="-O4" +CFLAGS="-O4" + +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 &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +int +main () +{ + + ; + return 0; +} +_ACEOF +ac_clean_files_save=$ac_clean_files +ac_clean_files="$ac_clean_files a.out a.exe b.out" +# Try to create an executable without -o first, disregard a.out. +# It will help us diagnose broken compilers, and finding out an intuition +# of exeext. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 +ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` +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 +#include +#include +#include +/* 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 +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 + +ac_ext=cc +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -n "$ac_tool_prefix"; then + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC + 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_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$CXX"; then + ac_cv_prog_CXX="$CXX" # 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_CXX="$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 +CXX=$ac_cv_prog_CXX +if test -n "$CXX"; then + echo "$as_me:$LINENO: result: $CXX" >&5 +echo "${ECHO_T}$CXX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$CXX" && break + done +fi +if test -z "$CXX"; then + ac_ct_CXX=$CXX + for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC +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_CXX+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + if test -n "$ac_ct_CXX"; then + ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # 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_CXX="$ac_prog" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + +fi +fi +ac_ct_CXX=$ac_cv_prog_ac_ct_CXX +if test -n "$ac_ct_CXX"; then + echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 +echo "${ECHO_T}$ac_ct_CXX" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + test -n "$ac_ct_CXX" && break +done +test -n "$ac_ct_CXX" || ac_ct_CXX="g++" + + CXX=$ac_ct_CXX +fi + + +# 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 &5\"") >&5 + (eval $ac_compiler --version &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v &5\"") >&5 + (eval $ac_compiler -v &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } +{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V &5\"") >&5 + (eval $ac_compiler -V &5) 2>&5 + ac_status=$? + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } + +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_cxx_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_cxx_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_cxx_compiler_gnu=$ac_compiler_gnu + +fi +echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 +echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 +GXX=`test $ac_compiler_gnu = yes && echo yes` +ac_test_CXXFLAGS=${CXXFLAGS+set} +ac_save_CXXFLAGS=$CXXFLAGS +CXXFLAGS="-g" +echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 +echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 +if test "${ac_cv_prog_cxx_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_cxx_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_cxx_g=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_prog_cxx_g=no +fi +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 +echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 +if test "$ac_test_CXXFLAGS" = set; then + CXXFLAGS=$ac_save_CXXFLAGS +elif test $ac_cv_prog_cxx_g = yes; then + if test "$GXX" = yes; then + CXXFLAGS="-g -O2" + else + CXXFLAGS="-g" + fi +else + if test "$GXX" = yes; then + CXXFLAGS="-O2" + else + CXXFLAGS= + fi +fi +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 +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_cxx_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_cxx_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 + +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 + +# Find a good install program. We prefer a C program (faster), +# so one script is as good as another. But avoid the broken or +# incompatible versions: +# SysV /etc/install, /usr/sbin/install +# SunOS /usr/etc/install +# IRIX /sbin/install +# AIX /bin/install +# AmigaOS /C/install, which installs bootblocks on floppy discs +# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag +# AFS /usr/afsws/bin/install, which mishandles nonexistent args +# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" +# OS/2's system install, which has a completely different semantic +# ./install, which can be erroneously created by make from ./install.sh. +echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 +echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 +if test -z "$INSTALL"; then +if test "${ac_cv_path_install+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR +for as_dir in $PATH +do + IFS=$as_save_IFS + test -z "$as_dir" && as_dir=. + # Account for people who put trailing slashes in PATH elements. +case $as_dir/ in + ./ | .// | /cC/* | \ + /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ + /usr/ucb/* ) ;; + *) + # OSF1 and SCO ODT 3.0 have their own names for install. + # Don't use installbsd from OSF since it installs stuff as root + # by default. + for ac_prog in ginstall scoinst install; do + for ac_exec_ext in '' $ac_executable_extensions; do + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then + if test $ac_prog = install && + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # AIX install. It has an incompatible calling convention. + : + elif test $ac_prog = install && + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then + # program-specific install script used by HP pwplus--don't use. + : + else + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" + break 3 + fi + fi + done + done + ;; +esac +done + + +fi + if test "${ac_cv_path_install+set}" = set; then + INSTALL=$ac_cv_path_install + else + # As a last resort, use the slow shell script. We don't cache a + # path for INSTALL within a source directory, because that will + # break other packages using the cache if that directory is + # removed, or if the path is relative. + INSTALL=$ac_install_sh + fi +fi +echo "$as_me:$LINENO: result: $INSTALL" >&5 +echo "${ECHO_T}$INSTALL" >&6 + +# Use test -z because SunOS4 sh mishandles braces in ${var-val}. +# It thinks the first close brace ends the variable substitution. +test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' + +test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' + +test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' + + + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu +echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 +echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 +# On Suns, sometimes $CPP names a directory. +if test -n "$CPP" && test -d "$CPP"; then + CPP= +fi +if test -z "$CPP"; then + if test "${ac_cv_prog_CPP+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # Double quotes because CPP needs to be expanded + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" + do + ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + ac_cv_prog_CPP=$CPP +fi +echo "$as_me:$LINENO: result: $CPP" >&5 +echo "${ECHO_T}$CPP" >&6 +ac_preproc_ok=false +for ac_c_preproc_warn_flag in '' yes +do + # Use a header file that comes with gcc, so configuring glibc + # with a fresh cross-compiler works. + # Prefer to if __STDC__ is defined, since + # exists even on freestanding compilers. + # On the NeXT, cc -E runs the code through the compiler's parser, + # not just through cpp. "Syntax error" is here to catch this case. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#ifdef __STDC__ +# include +#else +# include +#endif + Syntax error +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + : +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Broken: fails on valid input. +continue +fi +rm -f conftest.err conftest.$ac_ext + + # OK, works on sane cases. Now check whether non-existent headers + # can be detected and how. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # Broken: success on invalid input. +continue +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + # Passes both tests. +ac_preproc_ok=: +break +fi +rm -f conftest.err conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.err conftest.$ac_ext +if $ac_preproc_ok; then + : +else + { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&5 +echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check +See \`config.log' for more details." >&2;} + { (exit 1); exit 1; }; } +fi + +ac_ext=c +ac_cpp='$CPP $CPPFLAGS' +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_c_compiler_gnu + + + +if test "x$ac_path_x_has_been_run" != xyes; then + echo "$as_me:$LINENO: checking for X" >&5 +echo $ECHO_N "checking for X... $ECHO_C" >&6 + +ac_path_x_has_been_run=yes + +# Check whether --with-x or --without-x was given. +if test "${with_x+set}" = set; then + withval="$with_x" + +fi; +# $have_x is `yes', `no', `disabled', or empty when we do not yet know. +if test "x$with_x" = xno; then + # The user explicitly disabled X. + have_x=disabled +else + if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then + # Both variables are already set. + have_x=yes + else + if test "${ac_cv_have_x+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + # One or both of the vars are not set, and there is no cached value. +ac_x_includes=no ac_x_libraries=no +rm -fr conftest.dir +if mkdir conftest.dir; then + cd conftest.dir + # Make sure to not put "make" in the Imakefile rules, since we grep it out. + cat >Imakefile <<'_ACEOF' +acfindx: + @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' +_ACEOF + if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then + # GNU make sometimes prints "make[1]: Entering...", which would confuse us. + eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` + # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. + for ac_extension in a so sl; do + if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && + test -f $ac_im_libdir/libX11.$ac_extension; then + ac_im_usrlibdir=$ac_im_libdir; break + fi + done + # Screen out bogus values from the imake configuration. They are + # bogus both because they are the default anyway, and because + # using them would break gcc on systems where it needs fixed includes. + case $ac_im_incroot in + /usr/include) ;; + *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; + esac + case $ac_im_usrlibdir in + /usr/lib | /lib) ;; + *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; + esac + fi + cd .. + rm -fr conftest.dir +fi + +# Standard set of common directories for X headers. +# Check X11 before X11Rn because it is often a symlink to the current release. +ac_x_header_dirs=' +/usr/X11/include +/usr/X11R6/include +/usr/X11R5/include +/usr/X11R4/include + +/usr/include/X11 +/usr/include/X11R6 +/usr/include/X11R5 +/usr/include/X11R4 + +/usr/local/X11/include +/usr/local/X11R6/include +/usr/local/X11R5/include +/usr/local/X11R4/include + +/usr/local/include/X11 +/usr/local/include/X11R6 +/usr/local/include/X11R5 +/usr/local/include/X11R4 + +/usr/X386/include +/usr/x386/include +/usr/XFree86/include/X11 + +/usr/include +/usr/local/include +/usr/unsupported/include +/usr/athena/include +/usr/local/x11r5/include +/usr/lpp/Xamples/include + +/usr/openwin/include +/usr/openwin/share/include' + +if test "$ac_x_includes" = no; then + # Guess where to find include files, by looking for a specified header file. + # First, try using that file with no special directory specified. + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +_ACEOF +if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 + (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } >/dev/null; then + if test -s conftest.err; then + ac_cpp_err=$ac_c_preproc_warn_flag + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag + else + ac_cpp_err= + fi +else + ac_cpp_err=yes +fi +if test -z "$ac_cpp_err"; then + # We can compile using X headers with no special include directory. +ac_x_includes= +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + for ac_dir in $ac_x_header_dirs; do + if test -r "$ac_dir/X11/Xlib.h"; then + ac_x_includes=$ac_dir + break + fi +done +fi +rm -f conftest.err conftest.$ac_ext +fi # $ac_x_includes = no + +if test "$ac_x_libraries" = no; then + # Check for the libraries. + # See if we find them without any special options. + # Don't add to $LIBS permanently. + ac_save_LIBS=$LIBS + LIBS="-lX11 $LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +#include +int +main () +{ +XrmInitialize () + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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 + LIBS=$ac_save_LIBS +# We can link X programs with no special library path. +ac_x_libraries= +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +LIBS=$ac_save_LIBS +for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` +do + # Don't even attempt the hair of trying to link an X program! + for ac_extension in a so sl; do + if test -r $ac_dir/libX11.$ac_extension; then + ac_x_libraries=$ac_dir + break 2 + fi + done +done +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi # $ac_x_libraries = no + +if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then + # Didn't find X anywhere. Cache the known absence of X. + ac_cv_have_x="have_x=no" +else + # Record where we found X for the cache. + ac_cv_have_x="have_x=yes \ + ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" +fi +fi + + fi + eval "$ac_cv_have_x" +fi # $with_x != no + +if test "$have_x" != yes; then + echo "$as_me:$LINENO: result: $have_x" >&5 +echo "${ECHO_T}$have_x" >&6 + no_x=yes +else + # If each of the values was on the command line, it overrides each guess. + test "x$x_includes" = xNONE && x_includes=$ac_x_includes + test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries + # Update the cache value to reflect the command line values. + ac_cv_have_x="have_x=yes \ + ac_x_includes=$x_includes ac_x_libraries=$x_libraries" + # It might be that x_includes is empty (headers are found in the + # standard search path. Then output the corresponding message + ac_out_x_includes=$x_includes + test "x$x_includes" = x && ac_out_x_includes="in standard search path" + echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 +echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 +fi + +fi +if test "$no_x" = yes; then + # Not all programs may use this symbol, but it does not hurt to define it. + +cat >>confdefs.h <<\_ACEOF +#define X_DISPLAY_MISSING 1 +_ACEOF + + X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= +else + if test -n "$x_includes"; then + X_CFLAGS="$X_CFLAGS -I$x_includes" + fi + + # It would also be nice to do this for all -L options, not just this one. + if test -n "$x_libraries"; then + X_LIBS="$X_LIBS -L$x_libraries" + # For Solaris; some versions of Sun CC require a space after -R and + # others require no space. Words are not sufficient . . . . + case `(uname -sr) 2>/dev/null` in + "SunOS 5"*) + echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 +echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 + ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" + 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 conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_R_nospace=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_R_nospace=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test $ac_R_nospace = yes; then + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + X_LIBS="$X_LIBS -R$x_libraries" + else + LIBS="$ac_xsave_LIBS -R $x_libraries" + 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 conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_R_space=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_R_space=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + if test $ac_R_space = yes; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + X_LIBS="$X_LIBS -R $x_libraries" + else + echo "$as_me:$LINENO: result: neither works" >&5 +echo "${ECHO_T}neither works" >&6 + fi + fi + LIBS=$ac_xsave_LIBS + esac + fi + + # Check for system-dependent libraries X programs must link with. + # Do this before checking for the system-independent R6 libraries + # (-lICE), since we may need -lsocket or whatever for X linking. + + if test "$ISC" = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" + else + # Martyn Johnson says this is needed for Ultrix, if the X + # libraries were built with DECnet support. And Karl Berry says + # the Alpha needs dnet_stub (dnet does not exist). + ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char XOpenDisplay (); +int +main () +{ +XOpenDisplay (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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 + +echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 +echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 +if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dnet_ntoa (); +int +main () +{ +dnet_ntoa (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_dnet_dnet_ntoa=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dnet_dnet_ntoa=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 +echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 +if test $ac_cv_lib_dnet_dnet_ntoa = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" +fi + + if test $ac_cv_lib_dnet_dnet_ntoa = no; then + echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 +echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 +if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-ldnet_stub $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char dnet_ntoa (); +int +main () +{ +dnet_ntoa (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_dnet_stub_dnet_ntoa=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_dnet_stub_dnet_ntoa=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 +echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 +if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" +fi + + fi +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS="$ac_xsave_LIBS" + + # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, + # to get the SysV transport functions. + # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) + # needs -lnsl. + # The nsl library prevents programs from opening the X display + # on Irix 5.2, according to T.E. Dickey. + # The functions gethostbyname, getservbyname, and inet_addr are + # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. + echo "$as_me:$LINENO: checking for gethostbyname" >&5 +echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 +if test "${ac_cv_func_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define gethostbyname to an innocuous variant, in case declares gethostbyname. + For example, HP-UX 11i declares gettimeofday. */ +#define gethostbyname innocuous_gethostbyname + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char gethostbyname (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef gethostbyname + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname) +choke me +#else +char (*f) () = gethostbyname; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != gethostbyname; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_func_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_gethostbyname=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 + + if test $ac_cv_func_gethostbyname = no; then + echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 +echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 +if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lnsl $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname (); +int +main () +{ +gethostbyname (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_nsl_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_nsl_gethostbyname=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 +if test $ac_cv_lib_nsl_gethostbyname = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" +fi + + if test $ac_cv_lib_nsl_gethostbyname = no; then + echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 +echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6 +if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lbsd $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char gethostbyname (); +int +main () +{ +gethostbyname (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_bsd_gethostbyname=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_bsd_gethostbyname=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 +echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 +if test $ac_cv_lib_bsd_gethostbyname = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" +fi + + fi + fi + + # lieder@skyler.mavd.honeywell.com says without -lsocket, + # socket/setsockopt and other routines are undefined under SCO ODT + # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary + # on later versions), says Simon Leinen: it contains gethostby* + # variants that don't use the name server (or something). -lsocket + # must be given before -lnsl if both are needed. We assume that + # if connect needs -lnsl, so does gethostbyname. + echo "$as_me:$LINENO: checking for connect" >&5 +echo $ECHO_N "checking for connect... $ECHO_C" >&6 +if test "${ac_cv_func_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define connect to an innocuous variant, in case declares connect. + For example, HP-UX 11i declares gettimeofday. */ +#define connect innocuous_connect + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char connect (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef connect + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_connect) || defined (__stub___connect) +choke me +#else +char (*f) () = connect; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != connect; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_func_connect=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_connect=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 +echo "${ECHO_T}$ac_cv_func_connect" >&6 + + if test $ac_cv_func_connect = no; then + echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 +echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 +if test "${ac_cv_lib_socket_connect+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lsocket $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char connect (); +int +main () +{ +connect (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_socket_connect=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_socket_connect=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 +echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 +if test $ac_cv_lib_socket_connect = yes; then + X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" +fi + + fi + + # Guillermo Gomez says -lposix is necessary on A/UX. + echo "$as_me:$LINENO: checking for remove" >&5 +echo $ECHO_N "checking for remove... $ECHO_C" >&6 +if test "${ac_cv_func_remove+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define remove to an innocuous variant, in case declares remove. + For example, HP-UX 11i declares gettimeofday. */ +#define remove innocuous_remove + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char remove (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef remove + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char remove (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_remove) || defined (__stub___remove) +choke me +#else +char (*f) () = remove; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != remove; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_func_remove=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_remove=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 +echo "${ECHO_T}$ac_cv_func_remove" >&6 + + if test $ac_cv_func_remove = no; then + echo "$as_me:$LINENO: checking for remove in -lposix" >&5 +echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6 +if test "${ac_cv_lib_posix_remove+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lposix $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char remove (); +int +main () +{ +remove (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_posix_remove=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_posix_remove=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 +echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6 +if test $ac_cv_lib_posix_remove = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" +fi + + fi + + # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. + echo "$as_me:$LINENO: checking for shmat" >&5 +echo $ECHO_N "checking for shmat... $ECHO_C" >&6 +if test "${ac_cv_func_shmat+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ +/* Define shmat to an innocuous variant, in case declares shmat. + For example, HP-UX 11i declares gettimeofday. */ +#define shmat innocuous_shmat + +/* System header to define __stub macros and hopefully few prototypes, + which can conflict with char shmat (); below. + Prefer to if __STDC__ is defined, since + exists even on freestanding compilers. */ + +#ifdef __STDC__ +# include +#else +# include +#endif + +#undef shmat + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +{ +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmat (); +/* The GNU C library defines this for functions which it implements + to always fail with ENOSYS. Some functions are actually named + something starting with __ and the normal name is an alias. */ +#if defined (__stub_shmat) || defined (__stub___shmat) +choke me +#else +char (*f) () = shmat; +#endif +#ifdef __cplusplus +} +#endif + +int +main () +{ +return f != shmat; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_func_shmat=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_func_shmat=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +fi +echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 +echo "${ECHO_T}$ac_cv_func_shmat" >&6 + + if test $ac_cv_func_shmat = no; then + echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 +echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6 +if test "${ac_cv_lib_ipc_shmat+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lipc $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char shmat (); +int +main () +{ +shmat (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_ipc_shmat=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_ipc_shmat=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 +echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 +if test $ac_cv_lib_ipc_shmat = yes; then + X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" +fi + + fi + fi + + # Check for libraries that X11R6 Xt/Xaw programs need. + ac_save_LDFLAGS=$LDFLAGS + test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" + # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to + # check for ICE first), but we must link in the order -lSM -lICE or + # we get undefined symbols. So assume we have SM if we have ICE. + # These have to be linked with before -lX11, unlike the other + # libraries we check for below, so use a different variable. + # John Interrante, Karl Berry + echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 +echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 +if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lICE $X_EXTRA_LIBS $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char IceConnectionNumber (); +int +main () +{ +IceConnectionNumber (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_ICE_IceConnectionNumber=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_ICE_IceConnectionNumber=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 +echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 +if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then + X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" +fi + + LDFLAGS=$ac_save_LDFLAGS + +fi + +if test "x$no_x" != xyes ; then + CFLAGS="$CFLAGS $X_CFLAGS" + CXXFLAGS="$CXXFLAGS $X_CFLAGS" + LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" +fi + + +echo "$as_me:$LINENO: checking for vga_init in -lvga" >&5 +echo $ECHO_N "checking for vga_init in -lvga... $ECHO_C" >&6 +if test "${ac_cv_lib_vga_vga_init+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lvga $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char vga_init (); +int +main () +{ +vga_init (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_vga_vga_init=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_vga_vga_init=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_vga_vga_init" >&5 +echo "${ECHO_T}$ac_cv_lib_vga_vga_init" >&6 +if test $ac_cv_lib_vga_vga_init = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBVGA 1 +_ACEOF + + LIBS="-lvga $LIBS" + +fi + + +SDL_VERSION=1.2.0 + +# Check whether --with-sdl-prefix or --without-sdl-prefix was given. +if test "${with_sdl_prefix+set}" = set; then + withval="$with_sdl_prefix" + sdl_prefix="$withval" +else + sdl_prefix="" +fi; + +# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given. +if test "${with_sdl_exec_prefix+set}" = set; then + withval="$with_sdl_exec_prefix" + sdl_exec_prefix="$withval" +else + sdl_exec_prefix="" +fi; +# Check whether --enable-sdltest or --disable-sdltest was given. +if test "${enable_sdltest+set}" = set; then + enableval="$enable_sdltest" + +else + enable_sdltest=yes +fi; + + if test x$sdl_exec_prefix != x ; then + sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config + fi + fi + if test x$sdl_prefix != x ; then + sdl_args="$sdl_args --prefix=$sdl_prefix" + if test x${SDL_CONFIG+set} != xset ; then + SDL_CONFIG=$sdl_prefix/bin/sdl-config + fi + fi + + + PATH="$prefix/bin:$prefix/usr/bin:$PATH" + # 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_path_SDL_CONFIG+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + case $SDL_CONFIG in + [\\/]* | ?:[\\/]*) + ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path. + ;; + *) + 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_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext" + echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 + break 2 + fi +done +done + + test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no" + ;; +esac +fi +SDL_CONFIG=$ac_cv_path_SDL_CONFIG + +if test -n "$SDL_CONFIG"; then + echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5 +echo "${ECHO_T}$SDL_CONFIG" >&6 +else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 +fi + + min_sdl_version=$SDL_VERSION + echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5 +echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6 + no_sdl="" + if test "$SDL_CONFIG" = "no" ; then + no_sdl=yes + else + SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags` + SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs` + + sdl_major_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` + sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` + sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \ + sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` + if test "x$enable_sdltest" = "xyes" ; then + ac_save_CFLAGS="$CFLAGS" + ac_save_CXXFLAGS="$CXXFLAGS" + ac_save_LIBS="$LIBS" + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + rm -f conf.sdltest + if test "$cross_compiling" = yes; then + echo $ac_n "cross compiling; assumed OK... $ac_c" +else + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include +#include +#include "SDL.h" + +char* +my_strdup (char *str) +{ + char *new_str; + + if (str) + { + new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char)); + strcpy (new_str, str); + } + else + new_str = NULL; + + return new_str; +} + +int main (int argc, char *argv[]) +{ + int major, minor, micro; + char *tmp_version; + + /* This hangs on some systems (?) + system ("touch conf.sdltest"); + */ + { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); } + + /* HP/UX 9 (%@#!) writes to sscanf strings */ + tmp_version = my_strdup("$min_sdl_version"); + if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { + printf("%s, bad version string\n", "$min_sdl_version"); + exit(1); + } + + if (($sdl_major_version > major) || + (($sdl_major_version == major) && ($sdl_minor_version > minor)) || + (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro))) + { + return 0; + } + else + { + printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version); + printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro); + printf("*** best to upgrade to the required version.\n"); + printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n"); + printf("*** to point to the correct copy of sdl-config, and remove the file\n"); + printf("*** config.cache before re-running configure\n"); + return 1; + } +} + + +_ACEOF +rm -f conftest$ac_exeext +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); } && { ac_try='./conftest$ac_exeext' + { (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: program exited with status $ac_status" >&5 +echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +( exit $ac_status ) +no_sdl=yes +fi +rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +fi + CFLAGS="$ac_save_CFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + if test "x$no_sdl" = x ; then + echo "$as_me:$LINENO: result: yes" >&5 +echo "${ECHO_T}yes" >&6 + cat >>confdefs.h <<\_ACEOF +#define HAVE_SDL 1 +_ACEOF + + else + echo "$as_me:$LINENO: result: no" >&5 +echo "${ECHO_T}no" >&6 + if test "$SDL_CONFIG" = "no" ; then + echo "*** The sdl-config script installed by SDL could not be found" + echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in" + echo "*** your path, or set the SDL_CONFIG environment variable to the" + echo "*** full path to sdl-config." + else + if test -f conf.sdltest ; then + : + else + echo "*** Could not run SDL test program, checking why..." + CFLAGS="$CFLAGS $SDL_CFLAGS" + CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" + LIBS="$LIBS $SDL_LIBS" + cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +#include +#include "SDL.h" + +int main(int argc, char *argv[]) +{ return 0; } +#undef main +#define main K_and_R_C_main + +int +main () +{ + return 0; + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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 + echo "*** The test program compiled, but did not run. This usually means" + echo "*** that the run-time linker is not finding SDL or finding the wrong" + echo "*** version of SDL. If it is not finding SDL, you'll need to set your" + echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" + echo "*** to the installed location Also, make sure you have run ldconfig if that" + echo "*** is required on your system" + echo "***" + echo "*** If you have an old version installed, it is best to remove it, although" + echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + + echo "*** The test program failed to compile or link. See the file config.log for the" + echo "*** exact error that occured. This usually means SDL was incorrectly installed" + echo "*** or that you have moved SDL since it was installed. In the latter case, you" + echo "*** may want to edit the sdl-config script: $SDL_CONFIG" +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + CFLAGS="$ac_save_CFLAGS" + CXXFLAGS="$ac_save_CXXFLAGS" + LIBS="$ac_save_LIBS" + fi + fi + SDL_CFLAGS="" + SDL_CXXFLAGS="" + SDL_LIBS="" + : + + fi + + + rm -f conf.sdltest + +CFLAGS="$CFLAGS $SDL_CFLAGS" +CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" +LIBS="$LIBS $SDL_LIBS" + + +echo "$as_me:$LINENO: checking for esd_record_stream_fallback in -lesd" >&5 +echo $ECHO_N "checking for esd_record_stream_fallback in -lesd... $ECHO_C" >&6 +if test "${ac_cv_lib_esd_esd_record_stream_fallback+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lesd $LIBS" +cat >conftest.$ac_ext <<_ACEOF +/* confdefs.h. */ +_ACEOF +cat confdefs.h >>conftest.$ac_ext +cat >>conftest.$ac_ext <<_ACEOF +/* end confdefs.h. */ + +/* Override any gcc2 internal prototype to avoid an error. */ +#ifdef __cplusplus +extern "C" +#endif +/* We use char because int might match the return type of a gcc2 + builtin and then its argument prototype would still apply. */ +char esd_record_stream_fallback (); +int +main () +{ +esd_record_stream_fallback (); + ; + return 0; +} +_ACEOF +rm -f conftest.$ac_objext conftest$ac_exeext +if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 + (eval $ac_link) 2>conftest.er1 + ac_status=$? + grep -v '^ *+' conftest.er1 >conftest.err + rm -f conftest.er1 + cat conftest.err >&5 + echo "$as_me:$LINENO: \$? = $ac_status" >&5 + (exit $ac_status); } && + { 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_exeext' + { (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_lib_esd_esd_record_stream_fallback=yes +else + echo "$as_me: failed program was:" >&5 +sed 's/^/| /' conftest.$ac_ext >&5 + +ac_cv_lib_esd_esd_record_stream_fallback=no +fi +rm -f conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +echo "$as_me:$LINENO: result: $ac_cv_lib_esd_esd_record_stream_fallback" >&5 +echo "${ECHO_T}$ac_cv_lib_esd_esd_record_stream_fallback" >&6 +if test $ac_cv_lib_esd_esd_record_stream_fallback = yes; then + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBESD 1 +_ACEOF + + LIBS="-lesd $LIBS" + +fi + + + ac_config_files="$ac_config_files 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 + +DEFS=-DHAVE_CONFIG_H + +ac_libobjs= +ac_ltlibobjs= +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue + # 1. Remove the extension, and $U if already installed. + ac_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 + --header=FILE[:TEMPLATE] + instantiate the configuration header FILE + +Configuration files: +$config_files + +Configuration headers: +$config_headers + +Configuration commands: +$config_commands + +Report bugs to ." +_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 +INSTALL="$INSTALL" +_ACEOF + +cat >>$CONFIG_STATUS <<\_ACEOF +# If no file are specified by the user, then we need to provide default +# value. By we need to know if files were specified by the user. +ac_need_defaults=: +while test $# != 0 +do + case $1 in + --*=*) + ac_option=`expr "x$1" : 'x\([^=]*\)='` + ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` + ac_shift=: + ;; + -*) + ac_option=$1 + ac_optarg=$2 + ac_shift=shift + ;; + *) # 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 +# +# INIT-COMMANDS section. +# + + + +_ACEOF + + + +cat >>$CONFIG_STATUS <<\_ACEOF +for ac_config_target in $ac_config_targets +do + case "$ac_config_target" in + # Handling of arguments. + "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; + "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; + "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; + *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 +echo "$as_me: error: invalid argument: $ac_config_target" >&2;} + { (exit 1); exit 1; }; };; + esac +done + +# If the user did not use the arguments to specify the items to instantiate, +# then the envvar interface is used. Set only those that are not. +# We use the long form for the default assignment because of an extremely +# bizarre bug on SunOS 4.1.3. +if $ac_need_defaults; then + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands +fi + +# Have a temporary directory for convenience. Make it in the build tree +# simply because there is no reason 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,@build@,$build,;t t +s,@build_cpu@,$build_cpu,;t t +s,@build_vendor@,$build_vendor,;t t +s,@build_os@,$build_os,;t t +s,@host@,$host,;t t +s,@host_cpu@,$host_cpu,;t t +s,@host_vendor@,$host_vendor,;t t +s,@host_os@,$host_os,;t t +s,@target@,$target,;t t +s,@target_cpu@,$target_cpu,;t t +s,@target_vendor@,$target_vendor,;t t +s,@target_os@,$target_os,;t t +s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t +s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t +s,@INSTALL_DATA@,$INSTALL_DATA,;t t +s,@PACKAGE@,$PACKAGE,;t t +s,@VERSION@,$VERSION,;t t +s,@ACLOCAL@,$ACLOCAL,;t t +s,@AUTOCONF@,$AUTOCONF,;t t +s,@AUTOMAKE@,$AUTOMAKE,;t t +s,@AUTOHEADER@,$AUTOHEADER,;t t +s,@MAKEINFO@,$MAKEINFO,;t t +s,@SET_MAKE@,$SET_MAKE,;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,@CXX@,$CXX,;t t +s,@CXXFLAGS@,$CXXFLAGS,;t t +s,@ac_ct_CXX@,$ac_ct_CXX,;t t +s,@CPP@,$CPP,;t t +s,@X_CFLAGS@,$X_CFLAGS,;t t +s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t +s,@X_LIBS@,$X_LIBS,;t t +s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t +s,@SDL_CONFIG@,$SDL_CONFIG,;t t +s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t +s,@SDL_LIBS@,$SDL_LIBS,;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 + + + case $INSTALL in + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; + *) ac_INSTALL=$ac_top_builddir$INSTALL ;; + esac + + # 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; } + + 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 +_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 +s,@INSTALL@,$ac_INSTALL,;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 + +# +# CONFIG_HEADER section. +# + +# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where +# NAME is the cpp macro being defined and VALUE is the value it is being given. +# +# ac_d sets the value in "#define NAME VALUE" lines. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' +ac_dB='[ ].*$,\1#\2' +ac_dC=' ' +ac_dD=',;t' +# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' +ac_uB='$,\1#\2define\3' +ac_uC=' ' +ac_uD=',;t' + +for ac_file in : $CONFIG_HEADERS; 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 + + test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 +echo "$as_me: creating $ac_file" >&6;} + + # 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; }; } + # Do quote $f, to prevent DOS paths from being IFS'd. + 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; } + # Remove the trailing spaces. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in + +_ACEOF + +# Transform confdefs.h into two sed scripts, `conftest.defines' and +# `conftest.undefs', that substitutes the proper values into +# config.h.in to produce config.h. The first handles `#define' +# templates, and the second `#undef' templates. +# And first: Protect against being on the right side of a sed subst in +# config.status. Protect against being in an unquoted here document +# in config.status. +rm -f conftest.defines conftest.undefs +# Using a here document instead of a string reduces the quoting nightmare. +# Putting comments in sed scripts is not portable. +# +# `end' is used to avoid that the second main sed command (meant for +# 0-ary CPP macros) applies to n-ary macro definitions. +# See the Autoconf documentation for `clear'. +cat >confdef2sed.sed <<\_ACEOF +s/[\\&,]/\\&/g +s,[\\$`],\\&,g +t clear +: clear +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp +t end +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp +: end +_ACEOF +# If some macros were called several times there might be several times +# the same #defines, which is useless. Nevertheless, we may not want to +# sort them, since we want the *last* AC-DEFINE to be honored. +uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines +sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs +rm -f confdef2sed.sed + +# This sed command replaces #undef with comments. This is necessary, for +# example, in the case of _POSIX_SOURCE, which is predefined and required +# on some systems where configure will not decide to define it. +cat >>conftest.undefs <<\_ACEOF +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, +_ACEOF + +# Break up conftest.defines because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS +echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS +echo ' :' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.defines >/dev/null +do + # Write a limited-size here document to $tmp/defines.sed. + echo ' cat >$tmp/defines.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#define' lines. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/defines.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail + rm -f conftest.defines + mv conftest.tail conftest.defines +done +rm -f conftest.defines +echo ' fi # grep' >>$CONFIG_STATUS +echo >>$CONFIG_STATUS + +# Break up conftest.undefs because some shells have a limit on the size +# of here documents, and old seds have small limits too (100 cmds). +echo ' # Handle all the #undef templates' >>$CONFIG_STATUS +rm -f conftest.tail +while grep . conftest.undefs >/dev/null +do + # Write a limited-size here document to $tmp/undefs.sed. + echo ' cat >$tmp/undefs.sed <>$CONFIG_STATUS + # Speed up: don't consider the non `#undef' + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS + # Work around the forget-to-reset-the-flag bug. + echo 't clr' >>$CONFIG_STATUS + echo ': clr' >>$CONFIG_STATUS + sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS + echo 'CEOF + sed -f $tmp/undefs.sed $tmp/in >$tmp/out + rm -f $tmp/in + mv $tmp/out $tmp/in +' >>$CONFIG_STATUS + sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail + rm -f conftest.undefs + mv conftest.tail conftest.undefs +done +rm -f conftest.undefs + +cat >>$CONFIG_STATUS <<\_ACEOF + # 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 + echo "/* Generated by configure. */" >$tmp/config.h + else + echo "/* $ac_file. Generated by configure. */" >$tmp/config.h + fi + cat $tmp/in >>$tmp/config.h + rm -f $tmp/in + if test x"$ac_file" != x-; then + if diff $ac_file $tmp/config.h >/dev/null 2>&1; then + { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 +echo "$as_me: $ac_file is unchanged" >&6;} + else + 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; }; }; } + + rm -f $ac_file + mv $tmp/config.h $ac_file + fi + else + cat $tmp/config.h + rm -f $tmp/config.h + fi +done +_ACEOF +cat >>$CONFIG_STATUS <<\_ACEOF + +# +# CONFIG_COMMANDS section. +# +for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue + ac_dest=`echo "$ac_file" | sed 's,:.*,,'` + ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` + ac_dir=`(dirname "$ac_dest") 2>/dev/null || +$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ + X"$ac_dest" : 'X\(//\)[^/]' \| \ + X"$ac_dest" : 'X\(//\)$' \| \ + X"$ac_dest" : 'X\(/\)' \| \ + . : '\(.\)' 2>/dev/null || +echo X"$ac_dest" | + 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 + + + { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 +echo "$as_me: executing $ac_dest commands" >&6;} + case $ac_dest in + default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;; + esac +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 + diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..b179375 --- /dev/null +++ b/configure.ac @@ -0,0 +1,40 @@ +AC_INIT(main.cc) + +dnl Detect the canonical host and target build environment +AC_CANONICAL_SYSTEM + +AM_INIT_AUTOMAKE(synaesthesia,2.4) +AM_CONFIG_HEADER(config.h) + +CXXFLAGS="-O4" +CFLAGS="-O4" + +AC_PROG_CC +AC_PROG_CXX +AC_PROG_INSTALL + +dnl Check for X +AC_PATH_XTRA +if test "x$no_x" != xyes ; then + CFLAGS="$CFLAGS $X_CFLAGS" + CXXFLAGS="$CXXFLAGS $X_CFLAGS" + LIBS="$LIBS $X_PRE_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" +fi + +dnl Check for svgalib +AC_CHECK_LIB(vga,vga_init) + +dnl Check for SDL +SDL_VERSION=1.2.0 +AM_PATH_SDL($SDL_VERSION, + AC_DEFINE(HAVE_SDL), + : +) +CFLAGS="$CFLAGS $SDL_CFLAGS" +CXXFLAGS="$CXXFLAGS $SDL_CFLAGS" +LIBS="$LIBS $SDL_LIBS" + +dnl Check for esound +AC_CHECK_LIB(esd,esd_record_stream_fallback) + +AC_OUTPUT(Makefile) diff --git a/convert.pl b/convert.pl new file mode 100644 index 0000000..e51316f --- /dev/null +++ b/convert.pl @@ -0,0 +1,119 @@ +#Utility to convert from xfig to C +# +# 1. In xfig, export as metafont (hey, it works, don't knock it) +# 2. Run perl icons.h +# + +$max = 0.0; +$min = 1000000000000.0; +$list = []; + +$minY = 100000000000000.0; +$maxY = 0.0; + +while($_ = ) { + if (/\(([0-9.]*), ([0-9.]*)\)/) { + @{$list} = (@{$list}, [$1,$2]); + if ($1 < $min) { $min = $1 } + if ($1 > $max) { $max = $1 } + if ($2 < $minY) { $minY = $2 } + if ($2 > $maxY) { $maxY = $2 } + } + elsif (@{$list}) { + @all = (@all, [$min, $max, $list]); + $list = []; + $max = 0.0; + $min = 1000000000000.0; + } +} + +$scale = 1.0 / ($maxY - $minY); + +@all = sort { $a->[0] <=> $b->[0] } @all; + +@all = (@all, [1e10,1e10,[]]); + +$offset = 1000000.0; +$lastEnd = -100.0; +@lines = (); +@widths = (); +$numIcon = 0; +foreach $i (@all) { + if ($i->[0] > $lastEnd and @lines) { + print "double Icon".$numIcon."[][4] = {\n"; + $numIcon++; + + #$offset = $i->[0]; + + foreach $line (@lines) { + $count = 0; + $xx = ($line->[0]+$line->[2]) / 2.0; + $yy = ($line->[1]+$line->[3]) / 2.0; + foreach $line2 (@lines) { + if ($line != $line2 and + $line2->[1] <= $yy and + $line2->[3] > $yy) { + $x = + $line2->[0] + + ($line2->[2]-$line2->[0])/($line2->[3]-$line2->[1]) + * ($yy - $line2->[1]); + if ($x < $xx) { + $count ++; + } + } + } + #print $count; + if ($count%2 != 0) { + print " {". + ($line->[0])*$scale .",". + (1.0-($line->[1]-$minY)*$scale) .",". + ($line->[2])*$scale .",". + (1.0-($line->[3]-$minY)*$scale) ."},\n"; + } else { + print " {". + ($line->[2])*$scale .",". + (1.0-($line->[3]-$minY)*$scale) .",". + ($line->[0])*$scale .",". + (1.0-($line->[1]-$minY)*$scale) ."},\n"; + } + } + + print " {0,0,0,0}\n};\n\n"; + + @lines = (); + + @widths = (@widths, ($lastEnd-$offset)*$scale); + $offset = 1000000000.0; + } + + if ($lastEnd < $i->[1]) { + $lastEnd = $i->[1]; + } + if ($offset > $i->[0]) { + $offset = $i->[0]; + } + + for($j=1;$j<(@{$i->[2]});$j++) { + $list = [$i->[2]->[$j-1]->[0] - $offset , $i->[2]->[$j-1]->[1] , + $i->[2]->[$j]->[0] - $offset , $i->[2]->[$j]->[1]]; + if ($list->[1] > $list->[3]) { + $list = [$list->[2],$list->[3],$list->[0],$list->[1]]; + } + #print join(",",@{$list}) . "\n"; + if ($list->[1] != $list->[3]) { + @lines = (@lines, $list); + } + } +} + +print "typedef double LineType[4];\n"; +print "typedef LineType *IconType;\n"; +print "IconType Icons[] = {\n"; +for($i = 0;$i < $numIcon;$i++) { + print " Icon$i,\n"; +} +print "};\n\n"; + +print "double IconWidths[] = {\n"; +foreach $i (@widths) { print " $i,\n"; } +print "};\n"; diff --git a/core.cc b/core.cc new file mode 100644 index 0000000..50408a6 --- /dev/null +++ b/core.cc @@ -0,0 +1,400 @@ +/* Synaesthesia - program to display sound graphically + Copyright (C) 1997 Paul Francis Harrison + + 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., + 675 Mass Ave, Cambridge, MA 02139, USA. + + The author may be contacted at: + pfh@yoyo.cc.monash.edu.au + or + 27 Bond St., Mt. Waverley, 3149, Melbourne, Australia +*/ + +#include +#include +#include +#include +#include +#include "syna.h" + +double cosTable[NumSamples], negSinTable[NumSamples]; +int bitReverse[NumSamples]; +int scaleDown[256]; +int maxStarRadius; + +int bitReverser(int i) { + int sum=0,j; + for(j=0;j>= 1; + } + return sum; +} + +void fft(double *x,double *y) { + int n2 = NumSamples, n1; + int twoToTheK; + for(twoToTheK=1;twoToTheK 0.0) + factor = int(exp(log(fadeModeFudge) / (size*8.0))*255); + else + factor = 0; + + if (factor > 255) factor = 255; + + for(int i=0;i<256;i++) + scaleDown[i] = i*factor>>8; + + maxStarRadius = 1; + for(int i=255;i;i = scaleDown[i]) + maxStarRadius++; +} + +inline void addPixel(int x,int y,int br1,int br2) { + if (x < 0 || x >= outWidth || y < 0 || y >= outHeight) return; + + unsigned char *p = output+x*2+y*outWidth*2; + if (p[0] < 255-br1) p[0] += br1; else p[0] = 255; + if (p[1] < 255-br2) p[1] += br2; else p[1] = 255; + //p += lastOutput-output; + //if (p[0] < 255-br1) p[0] += br1; else p[0] = 255; + //if (p[1] < 255-br2) p[1] += br2; else p[1] = 255; +} + +inline void addPixelFast(unsigned char *p,int br1,int br2) { + if (p[0] < 255-br1) p[0] += br1; else p[0] = 255; + if (p[1] < 255-br2) p[1] += br2; else p[1] = 255; + //p += lastOutput-output; + //if (p[0] < 255-br1) p[0] += br1; else p[0] = 255; + //if (p[1] < 255-br2) p[1] += br2; else p[1] = 255; +} + +void fadeFade() { + register uint32_t *ptr = (uint32_t*)output; + int i = outWidth*outHeight*2/sizeof(uint32_t); + do { + //Bytewize version was: *(ptr++) -= *ptr+(*ptr>>1)>>4; + uint32_t x = *ptr; + if (x) + *(ptr++) = x - ((x & 0xf0f0f0f0ul) >> 4) - ((x & 0xe0e0e0e0ul) >> 5); + else + ptr++; + } while(--i > 0); +} + +inline unsigned char getPixel(int x,int y,int where) { + if (x < 0 || y < 0 || x >= outWidth || y >= outHeight) return 0; + return lastOutput[where]; +} + +inline void fadePixelWave(int x,int y,int where,int step) { + short j = + ( short(getPixel(x-1,y,where-2))+ + getPixel(x+1,y,where+2)+ + getPixel(x,y-1,where-step)+ + getPixel(x,y+1,where+step) + >> 2) + +lastOutput[where]; + if (!j) { output[where] = 0; return; } + j = j + -lastLastOutput[where] + -1; + if (j < 0) output[where] = 0; + else if (j & (255*256)) output[where] = 255; + else output[where] = j; +} + +void fadeWave() { + unsigned short *t = lastLastOutputBmp.data; + lastLastOutputBmp.data = lastOutputBmp.data; + lastOutputBmp.data = outputBmp.data; + outputBmp.data = t; + + int x,y,i,j,start,end; + int step = outWidth*2; + for(x=0,i=0,j=outWidth*(outHeight-1)*2;x> 2) + +lastOutput[i]; + if (!j) { + output[i] = 0; + } else { + j = j + -lastLastOutput[i] + -1; + if (j < 0) output[i] = 0; + else if (j & (255*256)) output[i] = 255; + else output[i] = j; + } + } while(++i < end); + } +} + +inline void fadePixelHeat(int x,int y,int where,int step) { + short j = + ( short(getPixel(x-1,y,where-2))+ + getPixel(x+1,y,where+2)+ + getPixel(x,y-1,where-step)+ + getPixel(x,y+1,where+step) + >> 2) + +lastOutput[where]; + if (!j) { output[where] = 0; return; } + j = j + -lastLastOutput[where] + -1; + if (j < 0) output[where] = 0; + else if (j & (255*256)) output[where] = 255; + else output[where] = j; +} + +void fadeHeat() { + unsigned short *t = lastLastOutputBmp.data; + lastLastOutputBmp.data = lastOutputBmp.data; + lastOutputBmp.data = outputBmp.data; + outputBmp.data = t; + + int x,y,i,j,start,end; + int step = outWidth*2; + for(x=0,i=0,j=outWidth*(outHeight-1)*2;x> 2) + +lastOutput[i]; + if (!j) { + output[i] = 0; + } else { + j = j + -lastLastOutput[i] + +(lastLastOutput[i] + -lastOutput[i]>>2) + -1; + if (j < 0) output[i] = 0; + else if (j & (255*256)) output[i] = 255; + else output[i] = j; + } + } while(++i < end); + } +} + +void fade() { + switch(fadeMode) { + case Stars : + fadeFade(); + break; + case Flame : + fadeHeat(); + break; + case Wave : + fadeWave(); + break; + default: + break; + } +} + +int coreGo() { + double x[NumSamples], y[NumSamples]; + double a[NumSamples], b[NumSamples]; + double energy; + int clarity[NumSamples]; //Surround sound + int i,j,k; + + int brightFactor = int(Brightness * brightnessTwiddler /(starSize+0.01)); + + if (-1 == getNextFragment()) + return -1; + + for(i=0;i> 1; + + /* Correct for window size */ + //double brightFactor2 = (brightFactor/65536.0/NumSamples)* + // sqrt(actualHeight*outWidth/(320.0*200.0)); + double brightFactor2 = (brightFactor/65536.0/NumSamples)* + sqrt(outHeight*outWidth/(320.0*200.0)); + + // Some more arbitrary constants, + // this time for dynamic range compression of the display + // (breath slowly, relax, please don't hunt me down and kill me) + static double energy_avg = 80.0; + energy_avg = energy_avg*0.95 + energy*0.05; + if (energy_avg > 0.0) + brightFactor2 *= 80.0/(energy_avg + 5.0); + + for(i=1;i 0 || b[i] > 0) { + int h = (int)( b[i]*outWidth / (a[i]+b[i]) ); + int br1, br2, br = (int)( + (a[i]+b[i])*i*brightFactor2 ); + br1 = br*(clarity[i]+128)>>8; + br2 = br*(128-clarity[i])>>8; + + if (br1 < 0) br1 = 0; else if (br1 > 255) br1 = 255; + if (br2 < 0) br2 = 0; else if (br2 > 255) br2 = 255; + + int px = h, + py = outHeight-i*outHeight/(NumSamples/2); + //was heightAdd - i / heightFactor; + + if (pointsAreDiamonds) { + addPixel(px,py,br1,br2); + br1=scaleDown[br1];br2=scaleDown[br2]; + + //TODO: Use addpixelfast + for(j=1;br1>0||br2>0;j++,br1=scaleDown[br1],br2=scaleDown[br2]) { + for(k=0;k outWidth-maxStarRadius || py > outHeight-maxStarRadius) { + addPixel(px,py,br1,br2); + for(j=1;br1>0||br2>0;j++,br1=scaleDown[br1],br2=scaleDown[br2]) { + addPixel(px+j,py,br1,br2); + addPixel(px,py+j,br1,br2); + addPixel(px-j,py,br1,br2); + addPixel(px,py-j,br1,br2); + } + } else { + unsigned char *p = output+px*2+py*outWidth*2, *p1=p, *p2=p, *p3=p, *p4=p; + addPixelFast(p,br1,br2); + for(;br1>0||br2>0;br1=scaleDown[br1],br2=scaleDown[br2]) { + p1 += 2; + addPixelFast(p1,br1,br2); + p2 -= 2; + addPixelFast(p2,br1,br2); + p3 += outWidth*2; + addPixelFast(p3,br1,br2); + p4 -= outWidth*2; + addPixelFast(p4,br1,br2); + } + } + } + } + } + return 0; +} diff --git a/font.h b/font.h new file mode 100644 index 0000000..94d2627 --- /dev/null +++ b/font.h @@ -0,0 +1,258 @@ +unsigned char font[] = { + 0,0,0,0,0,0,0,0, + 126,129,165,129,189,129,126,0, + 126,255,219,255,195,255,126,0, + 54,127,127,127,62,28,8,0, + 8,28,62,127,62,28,8,0, + 28,28,8,107,127,107,8,28, + 8,28,62,127,62,8,28,62, + 0,0,24,60,60,24,0,0, + 255,255,231,195,195,231,255,255, + 0,60,102,66,66,102,60,0, + 255,195,153,189,189,153,195,255, + 15,7,13,60,102,102,102,60, + 60,102,102,102,60,24,126,24, + 48,56,60,54,52,112,240,224, + 127,99,127,99,99,103,230,192, + 24,219,126,102,102,126,219,24, + 64,112,124,127,124,112,64,0, + 1,7,31,127,31,7,1,0, + 24,60,126,24,24,126,60,24, + 102,102,102,102,102,0,102,0, + 63,122,122,58,10,10,10,0, + 30,51,28,54,54,28,102,60, + 0,0,0,0,126,126,126,0, + 24,60,126,24,126,60,24,126, + 24,60,126,24,24,24,24,0, + 24,24,24,24,126,60,24,0, + 0,12,14,127,14,12,0,0, + 0,24,56,127,56,24,0,0, + 0,0,96,96,96,127,0,0, + 0,36,102,255,102,36,0,0, + 0,24,60,126,255,255,0,0, + 0,255,255,126,60,24,0,0, + 0,0,0,0,0,0,0,0, + 24,24,24,24,24,0,24,0, + 102,102,102,0,0,0,0,0, + 108,108,254,108,254,108,108,0, + 16,124,208,124,22,124,16,0, + 0,198,204,24,48,102,198,0, + 56,108,56,118,220,204,118,0, + 24,24,48,0,0,0,0,0, + 12,24,48,48,48,24,12,0, + 48,24,12,12,12,24,48,0, + 0,108,56,254,56,108,0,0, + 0,24,24,126,24,24,0,0, + 0,0,0,0,0,24,24,48, + 0,0,0,126,0,0,0,0, + 0,0,0,0,0,48,48,0, + 0,6,12,24,48,96,192,0, + 60,102,110,126,118,102,60,0, + 12,28,60,12,12,12,12,0, + 60,102,6,28,48,96,126,0, + 60,102,6,28,6,102,60,0, + 28,60,108,204,254,12,12,0, + 126,96,96,124,6,102,60,0, + 60,96,96,124,102,102,60,0, + 126,6,6,12,24,48,48,0, + 60,102,102,60,102,102,60,0, + 60,102,102,62,6,6,60,0, + 0,48,48,0,0,48,48,0, + 0,24,24,0,0,24,24,48, + 12,24,48,96,48,24,12,0, + 0,0,126,0,0,126,0,0, + 48,24,12,6,12,24,48,0, + 60,102,6,12,24,0,24,0, + 60,102,110,110,108,96,60,0, + 24,60,102,102,126,102,102,0, + 124,102,102,124,102,102,124,0, + 60,102,96,96,96,102,60,0, + 124,102,102,102,102,102,124,0, + 126,96,96,124,96,96,126,0, + 126,96,96,124,96,96,96,0, + 60,102,96,110,102,102,60,0, + 102,102,102,126,102,102,102,0, + 60,24,24,24,24,24,60,0, + 6,6,6,6,102,102,60,0, + 102,108,120,112,120,108,102,0, + 96,96,96,96,96,96,126,0, + 198,238,254,214,198,198,198,0, + 102,118,126,110,102,102,102,0, + 60,102,102,102,102,102,60,0, + 124,102,102,124,96,96,96,0, + 60,102,102,102,102,110,60,6, + 124,102,102,124,102,102,102,0, + 60,102,96,60,6,102,60,0, + 126,24,24,24,24,24,24,0, + 102,102,102,102,102,102,60,0, + 102,102,102,102,102,60,24,0, + 198,198,198,214,254,238,198,0, + 102,102,60,24,60,102,102,0, + 102,102,102,60,24,24,24,0, + 126,6,12,24,48,96,126,0, + 60,48,48,48,48,48,60,0, + 0,192,96,48,24,12,6,0, + 60,12,12,12,12,12,60,0, + 24,60,102,0,0,0,0,0, + 0,0,0,0,0,0,0,255, + 24,24,12,0,0,0,0,0, + 0,0,60,6,62,102,62,0, + 96,96,96,124,102,102,124,0, + 0,0,60,102,96,102,60,0, + 6,6,6,62,102,102,62,0, + 0,0,60,102,126,96,62,0, + 28,54,48,124,48,48,48,0, + 0,0,62,102,102,62,6,60, + 96,96,124,102,102,102,102,0, + 24,0,24,24,24,24,24,0, + 12,0,12,12,12,12,108,56, + 96,96,102,108,120,108,102,0, + 48,48,48,48,48,48,24,0, + 0,0,236,254,214,214,198,0, + 0,0,124,102,102,102,102,0, + 0,0,60,102,102,102,60,0, + 0,0,124,102,102,124,96,96, + 0,0,62,102,102,62,6,6, + 0,0,124,102,96,96,96,0, + 0,0,62,96,60,6,124,0, + 48,48,124,48,48,54,28,0, + 0,0,102,102,102,102,62,0, + 0,0,102,102,102,60,24,0, + 0,0,198,214,254,238,68,0, + 0,0,102,60,24,60,102,0, + 0,0,102,102,102,62,6,60, + 0,0,126,12,24,48,126,0, + 28,48,48,96,48,48,28,0, + 24,24,24,24,24,24,24,0, + 56,12,12,6,12,12,56,0, + 118,220,0,0,0,0,0,0, + 0,0,24,60,102,102,126,0, + 60,102,96,96,102,60,24,48, + 102,0,102,102,102,102,62,0, + 14,0,60,102,126,96,60,0, + 60,102,60,6,62,102,62,0, + 102,0,60,6,62,102,62,0, + 112,0,60,6,62,102,62,0, + 24,24,60,6,62,102,62,0, + 0,0,62,96,96,62,24,48, + 60,102,60,102,126,96,60,0, + 102,0,60,102,126,96,60,0, + 112,0,60,102,126,96,60,0, + 102,0,24,24,24,24,24,0, + 60,102,24,24,24,24,24,0, + 112,0,24,24,24,24,24,0, + 198,56,108,198,254,198,198,0, + 24,24,0,60,102,126,102,0, + 14,0,124,96,120,96,124,0, + 0,0,126,26,126,216,126,0, + 62,120,216,222,248,216,222,0, + 60,102,60,102,102,102,60,0, + 102,0,60,102,102,102,60,0, + 112,0,60,102,102,102,60,0, + 60,102,0,102,102,102,62,0, + 112,0,102,102,102,102,62,0, + 102,0,102,102,102,62,6,60, + 102,60,102,102,102,102,60,0, + 102,0,102,102,102,102,60,0, + 12,12,62,96,96,62,12,12, + 56,108,96,240,96,102,252,0, + 102,102,60,24,126,24,126,24, + 124,102,102,124,102,111,102,99, + 14,27,24,60,24,24,120,48, + 14,0,60,6,62,102,62,0, + 14,0,24,24,24,24,24,0, + 14,0,60,102,102,102,60,0, + 14,0,102,102,102,102,62,0, + 118,220,0,124,102,102,102,0, + 126,0,102,118,126,110,102,0, + 62,102,102,62,0,126,0,0, + 60,102,102,60,0,126,0,0, + 24,0,24,48,96,102,60,0, + 0,0,0,126,96,96,0,0, + 0,0,0,126,6,6,0,0, + 198,204,216,62,99,198,12,31, + 198,204,216,54,110,214,31,6, + 24,0,24,24,24,24,24,0, + 0,54,108,216,108,54,0,0, + 0,216,108,54,108,216,0,0, + 34,136,34,136,34,136,34,136, + 85,170,85,170,85,170,85,170, + 221,119,221,119,221,119,221,119, + 8,8,8,8,8,8,8,8, + 8,8,8,8,248,8,8,8, + 8,8,8,248,248,8,8,8, + 28,28,28,28,252,28,28,28, + 0,0,0,0,252,28,28,28, + 0,0,0,248,248,8,8,8, + 28,28,28,252,252,28,28,28, + 28,28,28,28,28,28,28,28, + 0,0,0,252,252,28,28,28, + 28,28,28,252,252,0,0,0, + 28,28,28,28,252,0,0,0, + 8,8,8,248,248,0,0,0, + 0,0,0,0,248,8,8,8, + 8,8,8,8,15,0,0,0, + 8,8,8,8,255,0,0,0, + 0,0,0,0,255,8,8,8, + 8,8,8,8,15,8,8,8, + 0,0,0,0,255,0,0,0, + 8,8,8,8,255,8,8,8, + 8,8,8,15,15,8,8,8, + 28,28,28,28,31,28,28,28, + 28,28,28,31,31,0,0,0, + 0,0,0,31,31,28,28,28, + 28,28,28,255,255,0,0,0, + 0,0,0,255,255,28,28,28, + 28,28,28,31,31,28,28,28, + 0,0,0,255,255,0,0,0, + 28,28,28,255,255,28,28,28, + 8,8,8,255,255,0,0,0, + 28,28,28,28,255,0,0,0, + 0,0,0,255,255,8,8,8, + 0,0,0,0,255,28,28,28, + 28,28,28,28,31,0,0,0, + 8,8,8,15,15,0,0,0, + 0,0,0,15,15,8,8,8, + 0,0,0,0,31,28,28,28, + 28,28,28,28,255,28,28,28, + 8,8,8,255,255,8,8,8, + 8,8,8,8,248,0,0,0, + 0,0,0,0,15,8,8,8, + 255,255,255,255,255,255,255,255, + 0,0,0,0,255,255,255,255, + 240,240,240,240,240,240,240,240, + 15,15,15,15,15,15,15,15, + 255,255,255,255,0,0,0,0, + 0,0,118,204,204,204,118,0, + 60,102,102,124,102,102,124,96, + 126,102,96,96,96,96,96,0, + 0,0,254,108,108,108,102,0, + 126,102,48,24,48,102,126,0, + 0,0,62,108,108,108,56,0, + 0,0,102,102,102,102,127,192, + 0,0,126,216,24,24,12,0, + 124,56,124,214,214,124,56,124, + 124,198,198,254,198,198,124,0, + 124,198,198,198,108,108,238,0, + 30,48,24,60,102,102,60,0, + 0,0,126,219,219,126,0,0, + 3,6,62,107,115,62,96,192, + 30,48,96,126,96,48,30,0, + 124,198,198,198,198,198,198,0, + 0,126,0,126,0,126,0,0, + 24,24,126,24,24,0,126,0, + 48,24,12,24,48,0,126,0, + 12,24,48,24,12,0,126,0, + 14,27,27,24,24,24,24,24, + 24,24,24,24,24,216,216,112, + 24,24,0,126,0,24,24,0, + 0,118,220,0,118,220,0,0, + 60,102,102,60,0,0,0,0, + 0,0,0,24,24,0,0,0, + 0,0,0,0,24,0,0,0, + 30,24,24,24,24,216,120,56, + 120,108,108,108,108,0,0,0, + 56,12,24,48,60,0,0,0, + 0,0,60,60,60,60,0,0, + 0,0,0,0,0,0,0,0 +}; diff --git a/icons.fig b/icons.fig new file mode 100644 index 0000000..060dd3a --- /dev/null +++ b/icons.fig @@ -0,0 +1,357 @@ +#FIG 3.2 +Landscape +Center +Inches +A4 +100.00 +Single +-2 +1200 2 +6 13275 600 14475 1200 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 13 + 13618 600 13704 600 13790 825 13875 600 13960 600 13854 900 + 13960 1200 13875 1200 13790 975 13704 1200 13618 1200 13725 900 + 13618 600 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 13 + 13532 600 13532 750 13361 750 13361 825 13446 825 13446 975 + 13361 975 13361 1050 13532 1050 13532 1200 13275 1200 13275 600 + 13532 600 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 14046 600 14132 600 14132 1200 14046 1200 14046 600 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 9 + 14218 600 14475 600 14475 750 14389 750 14389 1200 14304 1200 + 14304 750 14218 750 14218 600 +-6 +6 23100 75 23775 1762 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 14 + 23100 615 23168 615 23168 345 23235 345 23168 277 23303 75 + 23438 277 23370 345 23438 345 23438 615 23505 615 23505 1222 + 23100 1222 23100 615 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 8 + 23235 1222 23303 1695 23370 1762 23775 1762 23775 1560 23505 1560 + 23438 1492 23370 1222 +-6 +6 24000 75 25725 1725 +5 1 0 1 -1 7 0 0 -1 0.000 0 0 0 0 24825.000 900.000 25275 1050 24975 1350 25275 750 +5 1 0 1 -1 7 0 0 -1 0.000 0 0 0 0 24825.000 900.000 25575 1050 24975 1650 25575 750 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 2 + 25275 1050 25575 1050 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 25575 750 25725 750 25425 1050 25125 750 25275 750 +-6 +6 14775 300 21075 1575 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 15612 520 15773 520 15773 1327 15612 1327 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 16581 520 17065 520 17065 1327 16581 1327 16581 1166 16904 1166 + 16904 1004 16742 1004 16742 843 16904 843 16904 681 16581 681 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 10 + 17227 520 17388 520 17388 843 17550 843 17550 520 17712 520 + 17712 1327 17550 1327 17550 1004 17227 1004 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 8 + 19004 520 18519 520 18519 1327 19004 1327 19004 843 18681 843 + 18681 681 19004 681 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 6 + 19165 520 19650 520 19488 1327 19327 1327 19488 681 19165 681 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 6 + 20458 1004 20458 520 20942 520 20942 1327 20781 1327 20781 1004 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 15935 520 16419 520 16419 1004 16096 1004 16096 1166 16419 1166 + 16419 1327 15935 1327 15935 843 16258 843 16258 681 15935 681 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 17873 520 18358 520 18358 681 18035 681 18035 843 18358 843 + 18358 1327 17873 1327 17873 1166 18196 1166 18196 1004 17873 1004 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 18681 1004 18842 1004 18842 1166 18681 1166 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 10 + 19812 681 19973 520 20135 520 20296 681 20256 924 20296 1166 + 20135 1327 19973 1327 19812 1166 19852 924 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 19973 1004 20135 1004 20135 1166 19973 1166 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 19973 681 20135 681 20135 843 19973 843 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 20619 681 20781 681 20781 843 20619 843 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 14966 543 15450 543 15450 1350 14966 1350 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 15138 715 15300 715 15300 1200 15138 1200 + -1.000 -1.000 -1.000 -1.000 +-6 +6 21900 375 22800 1425 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 9 + 21900 450 21975 375 22125 375 22200 450 22200 1350 22125 1425 + 21975 1425 21900 1350 21900 450 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 9 + 22500 450 22575 375 22725 375 22800 450 22800 1350 22725 1425 + 22575 1425 22500 1350 22500 450 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 7 + 22575 525 22650 450 22725 525 22725 1275 22650 1350 22575 1275 + 22575 525 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 21975 675 22125 675 22125 750 21975 750 21975 675 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 21975 825 22125 825 22125 975 21975 975 21975 825 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 21975 1050 22125 1050 22125 1125 21975 1125 21975 1050 +-6 +6 30600 75 30975 600 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 5 + 30787 75 30787 225 30637 375 30750 525 30787 525 + 0.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 30787 75 30937 225 30862 525 30787 525 + 0.000 -1.000 -1.000 0.000 +-6 +6 30375 450 30750 975 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 5 + 30563 450 30563 600 30713 750 30600 900 30563 900 + 0.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 30563 450 30413 600 30488 900 30563 900 + 0.000 -1.000 -1.000 0.000 +-6 +6 30375 600 31125 1650 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 5 + 30750 600 30750 900 30450 1200 30675 1500 30750 1500 + 0.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 30750 600 31050 900 30900 1500 30750 1500 + 0.000 -1.000 -1.000 0.000 +-6 +6 41700 525 43467 1275 +6 42985 579 43467 1275 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 43066 606 43066 1141 43386 1141 43386 1034 43172 1034 43172 927 + 43280 927 43280 820 43172 820 43172 712 43386 712 43386 606 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +-6 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 42101 712 41887 712 41887 820 42101 820 42101 1141 41781 1141 + 41781 1034 41995 1034 41995 927 41781 927 41781 606 42101 606 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 10 + 42637 927 42744 1141 42851 1141 42958 927 42958 606 42851 606 + 42851 927 42744 927 42744 606 42637 606 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 10 + 42209 712 42316 606 42423 606 42530 712 42530 1141 42423 1141 + 42423 927 42316 927 42316 1141 42209 1141 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 42423 712 42423 820 42316 820 42316 712 + -1.000 -1.000 -1.000 -1.000 +-6 +6 43800 578 45975 1275 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 10 + 43828 605 44051 605 44163 712 44163 846 44051 926 44163 1141 + 44051 1141 43939 926 43939 1141 43828 1141 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 43939 820 44051 820 44051 712 43939 712 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 44274 605 44274 1141 44609 1141 44609 1033 44386 1033 44386 926 + 44497 926 44497 820 44386 820 44386 712 44609 712 44609 605 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 44720 605 44720 926 44943 926 44943 1033 44720 1033 44720 1141 + 45055 1141 45055 820 44832 820 44832 712 45055 712 45055 605 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 12 + 45166 605 45166 1141 45501 1141 45501 1033 45278 1033 45278 926 + 45389 926 45389 820 45278 820 45278 712 45501 712 45501 605 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 8 + 45947 605 45947 712 45836 712 45836 1141 45724 1141 45724 712 + 45612 712 45612 605 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 +-6 +6 37800 0 41400 1350 +6 37800 450 38250 750 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 37800 600 38100 450 38100 525 38250 525 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 37800 600 38100 750 38100 675 38250 675 +-6 +6 38175 675 38475 1125 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 38325 1125 38175 825 38250 825 38250 675 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 38325 1125 38475 825 38400 825 38400 675 +-6 +6 38175 75 38475 525 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 38325 75 38475 375 38400 375 38400 525 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 38325 75 38175 375 38250 375 38250 525 +-6 +6 38400 450 38850 750 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 38850 600 38550 750 38550 675 38400 675 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 38850 600 38550 450 38550 525 38400 525 +-6 +6 39225 75 39975 1200 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 + 39300 900 39900 900 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 8 + 39300 900 39300 600 39525 600 39525 225 39675 225 39675 600 + 39900 600 39900 900 + 0.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 3 + 39300 975 39300 1125 39375 1200 + 0.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 3 + 39900 975 39900 1125 39975 1200 + 0.000 -1.000 0.000 +-6 +6 40500 75 41250 1200 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 + 40575 900 41175 900 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 8 + 40575 900 40575 600 40800 600 40800 225 40950 225 40950 600 + 41175 600 41175 900 + 0.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 3 + 40575 975 40575 1125 40650 1200 + 0.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 3 + 41175 975 41175 1125 41250 1200 + 0.000 -1.000 0.000 +-6 +2 2 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 5 + 40350 0 41400 0 41400 1350 40350 1350 40350 0 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 + 39075 1350 40125 1350 +-6 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 + 3300 1575 4200 1575 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 1425 975 1875 975 1875 1050 1425 1050 1425 975 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 1425 1125 1875 1125 1875 1200 1425 1200 1425 1125 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 1425 1275 1875 1275 1875 1350 1425 1350 1425 1275 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 1500 1425 1800 1425 1725 1500 1575 1500 1500 1425 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 7 + 0 600 300 600 900 0 900 1800 300 1200 0 1200 + 0 600 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 4 + 2400 300 2400 1500 3000 900 2400 300 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 8100 0 8100 1800 8400 1500 8400 300 8100 0 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 8325 300 8325 1500 8250 1575 8250 225 8325 300 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 10350 1425 11250 1425 11250 1500 10350 1500 10350 1425 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 10500 1125 10350 1425 11250 1425 11100 1125 10500 1125 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 10500 675 11100 675 11250 975 10350 975 10500 675 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 8 + 10350 975 10350 1200 10425 1200 10425 1050 11175 1050 11175 1200 + 11250 1200 11250 975 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 13 + 12725 276 12937 488 12512 913 12937 1337 12725 1549 12300 1125 + 11876 1549 11664 1337 12088 913 11664 488 11876 276 12300 700 + 12725 276 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 13 + 5700 300 5700 1500 6000 1200 6000 1500 6525 975 6525 1500 + 6675 1500 6675 300 6525 300 6525 825 6000 300 6000 600 + 5700 300 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 13 + 7800 1500 7800 300 7500 600 7500 300 6975 825 6975 300 + 6825 300 6825 1500 6975 1500 6975 975 7500 1500 7500 1200 + 7800 1500 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 13200 525 14550 525 14550 1275 13200 1275 13200 525 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 4500 450 5400 450 5400 1350 4500 1350 4500 450 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 3900 450 4200 450 4200 1350 3900 1350 3900 450 +2 2 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 5 + 3300 450 3600 450 3600 1350 3300 1350 3300 450 +2 3 0 1 0 7 0 0 -1 0.000 0 0 0 0 0 21 + 2089 472 2067 333 2003 207 1904 108 1778 44 1639 22 + 1500 44 1374 108 1275 207 1211 333 1189 472 1211 611 + 1275 737 1374 836 1500 900 1639 922 1778 900 1904 836 + 2003 737 2067 611 2089 472 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 + 27900 1800 29700 1800 +2 2 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 5 + 30450 1650 31050 1650 31050 1800 30450 1800 30450 1650 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 4 + 31500 1350 31500 1800 33300 1800 33300 1350 +2 3 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 9 + 34050 900 34425 825 34500 450 34575 825 34950 900 34575 975 + 34500 1350 34425 975 34050 900 +2 3 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 9 + 34650 525 34837 487 34875 300 34912 487 35100 525 34912 562 + 34875 750 34837 562 34650 525 +2 3 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 9 + 33900 1275 34087 1237 34125 1050 34162 1237 34350 1275 34162 1312 + 34125 1500 34087 1312 33900 1275 +2 3 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 9 + 35400 900 35775 825 35850 450 35925 825 36300 900 35925 975 + 35850 1350 35775 975 35400 900 +2 3 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 5 + 36600 900 37050 450 37500 900 37050 1350 36600 900 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 + 41775 1275 43350 1275 +2 1 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 2 + 43875 1275 45750 1275 +2 3 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 5 + 27900 975 27900 825 29700 825 29700 975 27900 975 +2 3 0 1 0 7 0 0 -1 0.000 0 0 -1 0 0 5 + 46500 1800 46800 0 47100 0 46800 1800 46500 1800 +2 1 0 1 -1 7 0 0 -1 0.000 0 0 -1 0 0 8 + 8700 0 9000 900 9225 675 9450 900 9600 750 9375 525 + 9600 300 8700 0 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 4 + 10575 1350 10650 1200 10950 1200 11025 1350 + -1.000 -1.000 -1.000 -1.000 +3 3 0 1 0 7 0 0 -1 0.000 0 0 0 8 + 25875 300 26100 75 27300 75 27525 300 27525 1500 27300 1725 + 26100 1725 25875 1500 + -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 -1.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 5 + 31500 1350 31650 1313 31913 900 32100 863 32213 938 + 0.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 5 + 32213 938 32100 938 31988 1088 32100 1313 32400 1350 + 0.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 5 + 32400 1350 32550 1313 32813 900 33000 863 33113 938 + 0.000 -1.000 -1.000 -1.000 0.000 +3 2 0 1 0 7 0 0 -1 0.000 0 0 0 5 + 33113 938 33000 938 32888 1088 33000 1313 33300 1350 + 0.000 -1.000 -1.000 -1.000 0.000 diff --git a/icons.h b/icons.h new file mode 100644 index 0000000..2056e19 --- /dev/null +++ b/icons.h @@ -0,0 +1,4847 @@ +double Icon0[][4] = { + {0.5,0,0.166666666666667,0.333333333333333}, + {0.5,1,0.5,0}, + {0.166666666666667,0.666666666666667,0.5,1}, + {0,0.333333333333333,0,0.666666666666667}, + {0,0,0,0} +}; + +double Icon1[][4] = { + {0.5,0.262222,0.487778,0.185}, + {0.487778,0.185,0.452222666666667,0.115}, + {0.452222666666667,0.115,0.397222666666667,0.0599999999999999}, + {0.397222666666667,0.0599999999999999,0.327222666666667,0.0244446666666664}, + {0.327222666666667,0.0244446666666664,0.25,0.0122220000000002}, + {0.25,0.0122220000000002,0.172778,0.0244446666666664}, + {0.172778,0.0244446666666664,0.102778,0.0599999999999999}, + {0.102778,0.0599999999999999,0.047778,0.115}, + {0.047778,0.115,0.0122226666666666,0.185}, + {0.0122226666666666,0.185,0,0.262222}, + {0,0.262222,0.0122226666666666,0.339444666666667}, + {0.0122226666666666,0.339444666666667,0.047778,0.409444666666667}, + {0.047778,0.409444666666667,0.102778,0.464444666666667}, + {0.102778,0.464444666666667,0.172778,0.5}, + {0.172778,0.5,0.25,0.512222}, + {0.25,0.512222,0.327222666666667,0.5}, + {0.327222666666667,0.5,0.397222666666667,0.464444666666667}, + {0.397222666666667,0.464444666666667,0.452222666666667,0.409444666666667}, + {0.452222666666667,0.409444666666667,0.487778,0.339444666666667}, + {0.487778,0.339444666666667,0.5,0.262222}, + {0.381111333333333,0.583333333333333,0.381111333333333,0.541666666666667}, + {0.131111333333333,0.541666666666667,0.131111333333333,0.583333333333333}, + {0.381111333333333,0.666666666666667,0.381111333333333,0.625}, + {0.131111333333333,0.625,0.131111333333333,0.666666666666667}, + {0.381111333333333,0.75,0.381111333333333,0.708333333333333}, + {0.131111333333333,0.708333333333333,0.131111333333333,0.75}, + {0.297778,0.833333333333333,0.339444666666667,0.791666666666667}, + {0.172778,0.791666666666667,0.214444666666667,0.833333333333333}, + {0,0,0,0} +}; + +double Icon2[][4] = { + {0,0.166666666666667,0,0.833333333333333}, + {0,0.833333333333333,0.333333333333333,0.5}, + {0.333333333333333,0.5,0,0.166666666666667}, + {0,0,0,0} +}; + +double Icon3[][4] = { + {0.166666666666667,0.75,0.166666666666667,0.25}, + {0,0.25,0,0.75}, + {0.5,0.75,0.5,0.25}, + {0.333333333333333,0.25,0.333333333333333,0.75}, + {0,0,0,0} +}; + +double Icon4[][4] = { + {0.5,0.75,0.5,0.25}, + {0,0.25,0,0.75}, + {0,0,0,0} +}; + +double Icon5[][4] = { + {0,0.166666666666667,0,0.833333333333333}, + {0,0.833333333333333,0.166666666666667,0.666666666666667}, + {0.166666666666667,0.666666666666667,0.166666666666667,0.833333333333333}, + {0.166666666666667,0.833333333333333,0.458333333333333,0.541666666666667}, + {0.458333333333333,0.541666666666667,0.458333333333333,0.833333333333333}, + {0.541666666666667,0.833333333333333,0.541666666666667,0.166666666666667}, + {0.458333333333333,0.166666666666667,0.458333333333333,0.458333333333333}, + {0.458333333333333,0.458333333333333,0.166666666666667,0.166666666666667}, + {0.166666666666667,0.166666666666667,0.166666666666667,0.333333333333333}, + {0.166666666666667,0.333333333333333,0,0.166666666666667}, + {0,0,0,0} +}; + +double Icon6[][4] = { + {0.541666666666667,0.833333333333333,0.541666666666667,0.166666666666667}, + {0.541666666666667,0.166666666666667,0.375,0.333333333333333}, + {0.375,0.333333333333333,0.375,0.166666666666667}, + {0.375,0.166666666666667,0.0833333333333333,0.458333333333333}, + {0.0833333333333333,0.458333333333333,0.0833333333333333,0.166666666666667}, + {0,0.166666666666667,0,0.833333333333333}, + {0.0833333333333333,0.833333333333333,0.0833333333333333,0.541666666666667}, + {0.0833333333333333,0.541666666666667,0.375,0.833333333333333}, + {0.375,0.833333333333333,0.375,0.666666666666667}, + {0.375,0.666666666666667,0.541666666666667,0.833333333333333}, + {0,0,0,0} +}; + +double Icon7[][4] = { + {0,0,0,1}, + {0,1,0.166666666666667,0.833333333333333}, + {0.166666666666667,0.833333333333333,0.166666666666667,0.166666666666667}, + {0.166666666666667,0.166666666666667,0,0}, + {0.125,0.166666666666667,0.125,0.833333333333333}, + {0.125,0.833333333333333,0.0833333333333333,0.875}, + {0.0833333333333333,0.875,0.0833333333333333,0.125}, + {0.0833333333333333,0.125,0.125,0.166666666666667}, + {0,0,0,0} +}; + +double Icon8[][4] = { + {0,0,0.166666666666667,0.5}, + {0.166666666666667,0.5,0.291666666666667,0.375}, + {0.291666666666667,0.375,0.416666666666667,0.5}, + {0.416666666666667,0.5,0.5,0.416666666666667}, + {0.5,0.416666666666667,0.375,0.291666666666667}, + {0.375,0.291666666666667,0.5,0.166666666666667}, + {0.5,0.166666666666667,0,0}, + {0,0,0,0} +}; + +double Icon9[][4] = { + {0.5,0.833333333333333,0.5,0.791666666666667}, + {0,0.791666666666667,0,0.833333333333333}, + {0.0833333333333333,0.625,0,0.791666666666667}, + {0.5,0.791666666666667,0.416666666666667,0.625}, + {0.5,0.541666666666667,0.416666666666667,0.375}, + {0.0833333333333333,0.375,0,0.541666666666667}, + {0,0.541666666666667,0,0.666666666666667}, + {0.0416666666666667,0.666666666666667,0.0416666666666667,0.583333333333333}, + {0.458333333333333,0.583333333333333,0.458333333333333,0.666666666666667}, + {0.5,0.666666666666667,0.5,0.541666666666667}, + {0.166666666666667,0.666666666666667,0.173888666666667,0.664444666666667}, + {0.173888666666667,0.664444666666667,0.181666666666667,0.662778}, + {0.181666666666667,0.662778,0.191111333333333,0.661111333333333}, + {0.191111333333333,0.661111333333333,0.201111333333333,0.660555333333334}, + {0.201111333333333,0.660555333333334,0.212778,0.659444666666667}, + {0.224444666666667,0.659444666666667,0.237222,0.658888666666667}, + {0.262778,0.658888666666667,0.275555333333333,0.659444666666667}, + {0.287222,0.659444666666667,0.298888666666667,0.660555333333334}, + {0.298888666666667,0.660555333333334,0.308888666666667,0.661111333333333}, + {0.308888666666667,0.661111333333333,0.318333333333333,0.662778}, + {0.318333333333333,0.662778,0.326111333333333,0.664444666666667}, + {0.326111333333333,0.664444666666667,0.333333333333333,0.666666666666667}, + {0.333333333333333,0.666666666666667,0.339444666666666,0.669444666666667}, + {0.339444666666666,0.669444666666667,0.345,0.673333333333333}, + {0.345,0.673333333333333,0.35,0.677778}, + {0.35,0.677778,0.355,0.682778}, + {0.355,0.682778,0.359999999999999,0.688888666666667}, + {0.359999999999999,0.688888666666667,0.364444666666666,0.695}, + {0.364444666666666,0.695,0.369444666666666,0.701666666666667}, + {0.369444666666666,0.701666666666667,0.373888666666667,0.708333333333333}, + {0.373888666666667,0.708333333333333,0.377778,0.715}, + {0.377778,0.715,0.381111333333333,0.721666666666666}, + {0.381111333333333,0.721666666666666,0.383888666666666,0.727778}, + {0.383888666666666,0.727778,0.385,0.733888666666667}, + {0.385,0.733888666666667,0.385,0.738888666666667}, + {0.385,0.738888666666667,0.383888666666666,0.743333333333334}, + {0.383888666666666,0.743333333333334,0.380555333333334,0.747222}, + {0.380555333333334,0.747222,0.375,0.75}, + {0.375,0.75,0.368888666666667,0.751666666666667}, + {0.368888666666667,0.751666666666667,0.361666666666667,0.753333333333333}, + {0.361666666666667,0.753333333333333,0.352222,0.754444666666667}, + {0.352222,0.754444666666667,0.341111333333333,0.755555333333334}, + {0.341111333333333,0.755555333333334,0.328888666666666,0.756111333333333}, + {0.328888666666666,0.756111333333333,0.315,0.756666666666667}, + {0.315,0.756666666666667,0.299444666666666,0.757222}, + {0.299444666666666,0.757222,0.283888666666667,0.757778}, + {0.216111333333333,0.757778,0.200555333333334,0.757222}, + {0.200555333333334,0.757222,0.185,0.756666666666667}, + {0.185,0.756666666666667,0.171111333333333,0.756111333333333}, + {0.171111333333333,0.756111333333333,0.158888666666667,0.755555333333334}, + {0.158888666666667,0.755555333333334,0.147778,0.754444666666667}, + {0.147778,0.754444666666667,0.138333333333333,0.753333333333333}, + {0.138333333333333,0.753333333333333,0.131111333333333,0.751666666666667}, + {0.131111333333333,0.751666666666667,0.125,0.75}, + {0.125,0.75,0.119444666666666,0.747222}, + {0.119444666666666,0.747222,0.116111333333334,0.743333333333334}, + {0.116111333333334,0.743333333333334,0.115,0.738888666666667}, + {0.115,0.738888666666667,0.115,0.733888666666667}, + {0.115,0.733888666666667,0.116111333333334,0.727778}, + {0.116111333333334,0.727778,0.118888666666667,0.721666666666666}, + {0.118888666666667,0.721666666666666,0.122222,0.715}, + {0.122222,0.715,0.126111333333333,0.708333333333333}, + {0.126111333333333,0.708333333333333,0.130555333333334,0.701666666666667}, + {0.130555333333334,0.701666666666667,0.135555333333334,0.695}, + {0.135555333333334,0.695,0.140000000000001,0.688888666666667}, + {0.140000000000001,0.688888666666667,0.145,0.682778}, + {0.145,0.682778,0.15,0.677778}, + {0.15,0.677778,0.155,0.673333333333333}, + {0.155,0.673333333333333,0.160555333333334,0.669444666666667}, + {0.160555333333334,0.669444666666667,0.166666666666667,0.666666666666667}, + {0,0,0,0} +}; + +double Icon10[][4] = { + {0.707221999999999,0.271111333333333,0.589444666666666,0.153333333333334}, + {0.471111333333333,0.507222,0.707221999999999,0.271111333333333}, + {0.707221999999999,0.742778,0.471111333333333,0.507222}, + {0.589444666666666,0.860555333333333,0.707221999999999,0.742778}, + {0.353333333333333,0.625,0.589444666666666,0.860555333333333}, + {0.117778,0.860555333333333,0.353333333333333,0.625}, + {0,0.742778,0.117778,0.860555333333333}, + {0.235555333333333,0.507222,0,0.742778}, + {0,0.271111333333333,0.235555333333333,0.507222}, + {0.117778,0.153333333333334,0,0.271111333333333}, + {0.353333333333333,0.388888666666666,0.117778,0.153333333333334}, + {0.589444666666666,0.153333333333334,0.353333333333333,0.388888666666666}, + {0,0,0,0} +}; + +double Icon11[][4] = { + {0.75,0.708333333333333,0.75,0.291666666666667}, + {0,0.291666666666667,0,0.708333333333333}, + {0.184444666666667,0.333333333333333,0.184444666666667,0.416666666666667}, + {0.0894446666666665,0.416666666666667,0.0894446666666665,0.458333333333333}, + {0.136666666666667,0.458333333333333,0.136666666666667,0.541666666666667}, + {0.0894446666666665,0.541666666666667,0.0894446666666665,0.583333333333333}, + {0.184444666666667,0.583333333333333,0.184444666666667,0.666666666666667}, + {0.0416666666666667,0.666666666666667,0.0416666666666667,0.333333333333333}, + {0.28,0.333333333333333,0.327778,0.458333333333333}, + {0.327778,0.458333333333333,0.375,0.333333333333333}, + {0.422222,0.333333333333333,0.363333333333333,0.5}, + {0.363333333333333,0.5,0.422222,0.666666666666667}, + {0.375,0.666666666666667,0.327778,0.541666666666667}, + {0.327778,0.541666666666667,0.28,0.666666666666667}, + {0.232222,0.666666666666667,0.291666666666667,0.5}, + {0.291666666666667,0.5,0.232222,0.333333333333333}, + {0.517778,0.333333333333333,0.517778,0.666666666666667}, + {0.47,0.666666666666667,0.47,0.333333333333333}, + {0.708333333333333,0.333333333333333,0.708333333333333,0.416666666666667}, + {0.660555333333333,0.416666666666667,0.660555333333333,0.666666666666667}, + {0.613333333333333,0.666666666666667,0.613333333333333,0.416666666666667}, + {0.565555333333333,0.416666666666667,0.565555333333333,0.333333333333333}, + {0,0,0,0} +}; + +double Icon12[][4] = { + {0.298333333333333,0.31,0.293888666666666,0.301666666666667}, + {0.302221999999999,0.32,0.298333333333333,0.31}, + {0.305555333333333,0.331111333333334,0.302221999999999,0.32}, + {0.308333333333334,0.343888666666667,0.305555333333333,0.331111333333334}, + {0.310555333333333,0.357222,0.308333333333334,0.343888666666667}, + {0.312777333333333,0.372778,0.310555333333333,0.357222}, + {0.314443999999999,0.388888666666666,0.312777333333333,0.372778}, + {0.315555333333333,0.406111333333333,0.314443999999999,0.388888666666666}, + {0.316666666666666,0.424444666666667,0.315555333333333,0.406111333333333}, + {0.317777333333333,0.443888666666667,0.316666666666666,0.424444666666667}, + {0.318333333333333,0.463333333333334,0.317777333333333,0.443888666666667}, + {0.318888666666666,0.483888666666667,0.318333333333333,0.463333333333334}, + {0.318888666666666,0.505,0.318888666666666,0.483888666666667}, + {0.318888666666666,0.526111333333333,0.318888666666666,0.505}, + {0.318888666666666,0.546666666666667,0.318888666666666,0.526111333333333}, + {0.318888666666666,0.567778,0.318888666666666,0.546666666666667}, + {0.318333333333333,0.588333333333334,0.318888666666666,0.567778}, + {0.317777333333333,0.607778,0.318333333333333,0.588333333333334}, + {0.316666666666666,0.627222,0.317777333333333,0.607778}, + {0.315555333333333,0.645555333333334,0.316666666666666,0.627222}, + {0.314443999999999,0.662778,0.315555333333333,0.645555333333334}, + {0.312777333333333,0.678888666666667,0.314443999999999,0.662778}, + {0.310555333333333,0.694444666666667,0.312777333333333,0.678888666666667}, + {0.308333333333334,0.707778,0.310555333333333,0.694444666666667}, + {0.305555333333333,0.720555333333333,0.308333333333334,0.707778}, + {0.302221999999999,0.731666666666667,0.305555333333333,0.720555333333333}, + {0.298333333333333,0.741666666666667,0.302221999999999,0.731666666666667}, + {0.293888666666666,0.75,0.298333333333333,0.741666666666667}, + {0.287777333333333,0.758333333333334,0.293888666666666,0.75}, + {0.280555333333333,0.765555333333333,0.287777333333333,0.758333333333334}, + {0.272777333333333,0.771666666666667,0.280555333333333,0.765555333333333}, + {0.263333333333333,0.776666666666667,0.272777333333333,0.771666666666667}, + {0.252777333333333,0.781111333333333,0.263333333333333,0.776666666666667}, + {0.241666666666666,0.783888666666667,0.252777333333333,0.781111333333333}, + {0.229444,0.786666666666667,0.241666666666666,0.783888666666667}, + {0.216666666666666,0.788888666666667,0.229444,0.786666666666667}, + {0.202777333333334,0.79,0.216666666666666,0.788888666666667}, + {0.188888666666666,0.791111333333333,0.202777333333334,0.79}, + {0.173888666666667,0.791666666666667,0.188888666666666,0.791111333333333}, + {0.159443999999999,0.792222,0.173888666666667,0.791666666666667}, + {0.145,0.791666666666667,0.159443999999999,0.792222}, + {0.13,0.791111333333333,0.145,0.791666666666667}, + {0.116110666666666,0.79,0.13,0.791111333333333}, + {0.102222,0.788888666666667,0.116110666666666,0.79}, + {0.0894440000000003,0.786666666666667,0.102222,0.788888666666667}, + {0.0772220000000002,0.783888666666667,0.0894440000000003,0.786666666666667}, + {0.0661106666666669,0.781111333333333,0.0772220000000002,0.783888666666667}, + {0.0555553333333331,0.776666666666667,0.0661106666666669,0.781111333333333}, + {0.0461106666666661,0.771666666666667,0.0555553333333331,0.776666666666667}, + {0.0383333333333328,0.765555333333333,0.0461106666666661,0.771666666666667}, + {0.0311106666666667,0.758333333333334,0.0383333333333328,0.765555333333333}, + {0.0249999999999998,0.75,0.0311106666666667,0.758333333333334}, + {0.020555333333333,0.741666666666667,0.0249999999999998,0.75}, + {0.0166666666666669,0.731666666666667,0.020555333333333,0.741666666666667}, + {0.013333333333333,0.720555333333333,0.0166666666666669,0.731666666666667}, + {0.0105553333333326,0.707778,0.013333333333333,0.720555333333333}, + {0.00833333333333286,0.694444666666667,0.0105553333333326,0.707778}, + {0.00611066666666697,0.678888666666667,0.00833333333333286,0.694444666666667}, + {0.00444399999999945,0.662778,0.00611066666666697,0.678888666666667}, + {0.00333333333333267,0.645555333333334,0.00444399999999945,0.662778}, + {0.00222199999999972,0.627222,0.00333333333333267,0.645555333333334}, + {0.00111066666666678,0.607778,0.00222199999999972,0.627222}, + {0.000555333333333389,0.588333333333334,0.00111066666666678,0.607778}, + {0,0.567778,0.000555333333333389,0.588333333333334}, + {0,0.546666666666667,0,0.567778}, + {0,0.525555333333333,0,0.546666666666667}, + {0,0.505,0,0.525555333333333}, + {0,0.483888666666667,0,0.505}, + {0.000555333333333389,0.463333333333334,0,0.483888666666667}, + {0.00111066666666678,0.443888666666667,0.000555333333333389,0.463333333333334}, + {0.00222199999999972,0.424444666666667,0.00111066666666678,0.443888666666667}, + {0.00333333333333267,0.406111333333333,0.00222199999999972,0.424444666666667}, + {0.00444399999999945,0.388888666666666,0.00333333333333267,0.406111333333333}, + {0.00611066666666697,0.372778,0.00444399999999945,0.388888666666666}, + {0.00833333333333286,0.357222,0.00611066666666697,0.372778}, + {0.0105553333333326,0.343888666666667,0.00833333333333286,0.357222}, + {0.013333333333333,0.331111333333334,0.0105553333333326,0.343888666666667}, + {0.0166666666666669,0.32,0.013333333333333,0.331111333333334}, + {0.020555333333333,0.31,0.0166666666666669,0.32}, + {0.0249999999999998,0.301666666666667,0.020555333333333,0.31}, + {0.0311106666666667,0.293333333333334,0.0249999999999998,0.301666666666667}, + {0.0383333333333328,0.286111333333333,0.0311106666666667,0.293333333333334}, + {0.0461106666666661,0.28,0.0383333333333328,0.286111333333333}, + {0.0555553333333331,0.275,0.0461106666666661,0.28}, + {0.0661106666666669,0.270555333333334,0.0555553333333331,0.275}, + {0.0772220000000002,0.267778,0.0661106666666669,0.270555333333334}, + {0.0894440000000003,0.265,0.0772220000000002,0.267778}, + {0.102222,0.262778,0.0894440000000003,0.265}, + {0.116110666666666,0.261666666666667,0.102222,0.262778}, + {0.13,0.260555333333333,0.116110666666666,0.261666666666667}, + {0.145,0.26,0.13,0.260555333333333}, + {0.159443999999999,0.259444666666666,0.145,0.26}, + {0.173888666666667,0.26,0.159443999999999,0.259444666666666}, + {0.188888666666666,0.260555333333333,0.173888666666667,0.26}, + {0.202777333333334,0.261666666666667,0.188888666666666,0.260555333333333}, + {0.216666666666666,0.262778,0.202777333333334,0.261666666666667}, + {0.229444,0.265,0.216666666666666,0.262778}, + {0.241666666666666,0.267778,0.229444,0.265}, + {0.252777333333333,0.270555333333334,0.241666666666666,0.267778}, + {0.263333333333333,0.275,0.252777333333333,0.270555333333334}, + {0.272777333333333,0.28,0.263333333333333,0.275}, + {0.280555333333333,0.286111333333333,0.272777333333333,0.28}, + {0.287777333333333,0.293333333333334,0.280555333333333,0.286111333333333}, + {0.293888666666666,0.301666666666667,0.287777333333333,0.293333333333334}, + {0.210555333333333,0.397222,0.212221999999999,0.403888666666666}, + {0.212221999999999,0.403888666666666,0.213888666666667,0.411666666666667}, + {0.213888666666667,0.411666666666667,0.215,0.421111333333334}, + {0.215,0.421111333333334,0.216110666666667,0.431666666666667}, + {0.216110666666667,0.431666666666667,0.217222,0.443333333333333}, + {0.217222,0.443333333333333,0.217777333333333,0.456111333333334}, + {0.217777333333333,0.456111333333334,0.218333333333333,0.47}, + {0.218333333333333,0.47,0.218333333333333,0.485}, + {0.218333333333333,0.485,0.218888666666666,0.5}, + {0.218888666666666,0.5,0.218888666666666,0.516111333333334}, + {0.218888666666666,0.516111333333334,0.218888666666666,0.532222}, + {0.218888666666666,0.532222,0.218888666666666,0.547778}, + {0.218888666666666,0.547778,0.218888666666666,0.563888666666667}, + {0.218888666666666,0.563888666666667,0.218333333333333,0.578888666666667}, + {0.218333333333333,0.578888666666667,0.218333333333333,0.593888666666667}, + {0.218333333333333,0.593888666666667,0.217777333333333,0.607778}, + {0.217777333333333,0.607778,0.217222,0.620555333333333}, + {0.217222,0.620555333333333,0.216110666666667,0.632222}, + {0.216110666666667,0.632222,0.215,0.642778}, + {0.215,0.642778,0.213888666666667,0.652222}, + {0.213888666666667,0.652222,0.212221999999999,0.66}, + {0.212221999999999,0.66,0.210555333333333,0.666666666666667}, + {0.210555333333333,0.666666666666667,0.208333333333333,0.672778}, + {0.208333333333333,0.672778,0.204999999999999,0.677778}, + {0.204999999999999,0.677778,0.201666666666667,0.681666666666667}, + {0.201666666666667,0.681666666666667,0.197777333333333,0.685}, + {0.197777333333333,0.685,0.193333333333333,0.687222}, + {0.193333333333333,0.687222,0.188333333333333,0.688888666666667}, + {0.188333333333333,0.688888666666667,0.182777333333333,0.690555333333334}, + {0.182777333333333,0.690555333333334,0.177221999999999,0.691111333333333}, + {0.177221999999999,0.691111333333333,0.171666666666667,0.691666666666666}, + {0.159443999999999,0.691666666666666,0.153888666666666,0.691111333333333}, + {0.153888666666666,0.691111333333333,0.148333333333333,0.690555333333334}, + {0.148333333333333,0.690555333333334,0.142777333333332,0.688888666666667}, + {0.142777333333332,0.688888666666667,0.137777333333333,0.687222}, + {0.137777333333333,0.687222,0.133333333333333,0.685}, + {0.133333333333333,0.685,0.129443999999999,0.681666666666667}, + {0.129443999999999,0.681666666666667,0.126110666666667,0.677778}, + {0.126110666666667,0.677778,0.122777333333333,0.672778}, + {0.122777333333333,0.672778,0.120555333333333,0.666666666666667}, + {0.120555333333333,0.666666666666667,0.118888666666667,0.66}, + {0.118888666666667,0.66,0.117221999999999,0.652222}, + {0.117221999999999,0.652222,0.116110666666666,0.642778}, + {0.116110666666666,0.642778,0.115,0.632222}, + {0.115,0.632222,0.113888666666667,0.620555333333333}, + {0.113888666666667,0.620555333333333,0.113333333333333,0.607778}, + {0.113333333333333,0.607778,0.112777333333333,0.593888666666667}, + {0.112777333333333,0.593888666666667,0.112777333333333,0.578888666666667}, + {0.112777333333333,0.578888666666667,0.112221999999999,0.563888666666667}, + {0.112221999999999,0.563888666666667,0.112221999999999,0.547778}, + {0.112221999999999,0.547778,0.112221999999999,0.531666666666667}, + {0.112221999999999,0.531666666666667,0.112221999999999,0.516111333333334}, + {0.112221999999999,0.516111333333334,0.112221999999999,0.5}, + {0.112221999999999,0.5,0.112777333333333,0.485}, + {0.112777333333333,0.485,0.112777333333333,0.47}, + {0.112777333333333,0.47,0.113333333333333,0.456111333333334}, + {0.113333333333333,0.456111333333334,0.113888666666667,0.443333333333333}, + {0.113888666666667,0.443333333333333,0.115,0.431666666666667}, + {0.115,0.431666666666667,0.116110666666666,0.421111333333334}, + {0.116110666666666,0.421111333333334,0.117221999999999,0.411666666666667}, + {0.117221999999999,0.411666666666667,0.118888666666667,0.403888666666666}, + {0.118888666666667,0.403888666666666,0.120555333333333,0.397222}, + {0.120555333333333,0.397222,0.122777333333333,0.391111333333334}, + {0.122777333333333,0.391111333333334,0.126110666666667,0.386111333333333}, + {0.126110666666667,0.386111333333333,0.129443999999999,0.382222}, + {0.129443999999999,0.382222,0.133333333333333,0.378888666666667}, + {0.133333333333333,0.378888666666667,0.137777333333333,0.376666666666667}, + {0.137777333333333,0.376666666666667,0.142777333333332,0.375}, + {0.142777333333332,0.375,0.148333333333333,0.373333333333333}, + {0.148333333333333,0.373333333333333,0.153888666666666,0.372778}, + {0.153888666666666,0.372778,0.159443999999999,0.372222}, + {0.171666666666667,0.372222,0.177221999999999,0.372778}, + {0.177221999999999,0.372778,0.182777333333333,0.373333333333333}, + {0.182777333333333,0.373333333333333,0.188333333333333,0.375}, + {0.188333333333333,0.375,0.193333333333333,0.376666666666667}, + {0.193333333333333,0.376666666666667,0.197777333333333,0.378888666666667}, + {0.197777333333333,0.378888666666667,0.201666666666667,0.382222}, + {0.201666666666667,0.382222,0.204999999999999,0.386111333333333}, + {0.204999999999999,0.386111333333333,0.208333333333333,0.391111333333334}, + {0.208333333333333,0.391111333333334,0.210555333333333,0.397222}, + {0,0,0,0} +}; + +double Icon13[][4] = { + {0.0994446666666668,0.297222,0.0977779999999993,0.288888666666667}, + {0.100555333333332,0.307222,0.0994446666666668,0.297222}, + {0.101666666666667,0.318333333333333,0.100555333333332,0.307222}, + {0.102778,0.331111333333334,0.101666666666667,0.318333333333333}, + {0.103333333333333,0.344444666666667,0.102778,0.331111333333334}, + {0.103888666666666,0.36,0.103333333333333,0.344444666666667}, + {0.104444666666666,0.376111333333334,0.103888666666666,0.36}, + {0.104999999999999,0.393333333333333,0.104444666666666,0.376111333333334}, + {0.105555333333333,0.411666666666667,0.104999999999999,0.393333333333333}, + {0.105555333333333,0.431111333333333,0.105555333333333,0.411666666666667}, + {0.106111333333333,0.450555333333333,0.105555333333333,0.431111333333333}, + {0.106111333333333,0.471111333333334,0.106111333333333,0.450555333333333}, + {0.106111333333333,0.492222,0.106111333333333,0.471111333333334}, + {0.106111333333333,0.513333333333333,0.106111333333333,0.492222}, + {0.106111333333333,0.533888666666667,0.106111333333333,0.513333333333333}, + {0.106111333333333,0.555,0.106111333333333,0.533888666666667}, + {0.106111333333333,0.575555333333333,0.106111333333333,0.555}, + {0.105555333333333,0.595,0.106111333333333,0.575555333333333}, + {0.105555333333333,0.614444666666667,0.105555333333333,0.595}, + {0.104999999999999,0.632778,0.105555333333333,0.614444666666667}, + {0.104444666666666,0.65,0.104999999999999,0.632778}, + {0.103888666666666,0.666111333333333,0.104444666666666,0.65}, + {0.103333333333333,0.681666666666667,0.103888666666666,0.666111333333333}, + {0.102778,0.695,0.103333333333333,0.681666666666667}, + {0.101666666666667,0.707778,0.102778,0.695}, + {0.100555333333332,0.718888666666667,0.101666666666667,0.707778}, + {0.0994446666666668,0.728888666666667,0.100555333333332,0.718888666666667}, + {0.0977779999999993,0.737222,0.0994446666666668,0.728888666666667}, + {0.096111333333333,0.744444666666666,0.0977779999999993,0.737222}, + {0.0944446666666666,0.750555333333333,0.096111333333333,0.744444666666666}, + {0.0922219999999996,0.755555333333334,0.0944446666666666,0.750555333333333}, + {0.0899999999999999,0.76,0.0922219999999996,0.755555333333334}, + {0.0877780000000001,0.763888666666666,0.0899999999999999,0.76}, + {0.0849999999999997,0.767222,0.0877780000000001,0.763888666666666}, + {0.0816666666666658,0.77,0.0849999999999997,0.767222}, + {0.0788886666666665,0.772222,0.0816666666666658,0.77}, + {0.0755553333333327,0.774444666666666,0.0788886666666665,0.772222}, + {0.072222,0.776111333333333,0.0755553333333327,0.774444666666666}, + {0.0683333333333328,0.777222,0.072222,0.776111333333333}, + {0.0644446666666667,0.778333333333334,0.0683333333333328,0.777222}, + {0.0611113333333329,0.778888666666666,0.0644446666666667,0.778333333333334}, + {0.052778,0.779444666666667,0.0572219999999994,0.778888666666666}, + {0.0488886666666666,0.778888666666666,0.052778,0.779444666666667}, + {0.0416666666666667,0.778333333333334,0.0449999999999993,0.778888666666666}, + {0.0377779999999994,0.777222,0.0416666666666667,0.778333333333334}, + {0.033888666666666,0.776111333333333,0.0377779999999994,0.777222}, + {0.0305553333333333,0.774444666666666,0.033888666666666,0.776111333333333}, + {0.0272219999999995,0.772222,0.0305553333333333,0.774444666666666}, + {0.0244446666666664,0.77,0.0272219999999995,0.772222}, + {0.0211113333333325,0.767222,0.0244446666666664,0.77}, + {0.0183333333333332,0.763888666666666,0.0211113333333325,0.767222}, + {0.0161113333333335,0.76,0.0183333333333332,0.763888666666666}, + {0.0138886666666664,0.755555333333334,0.0161113333333335,0.76}, + {0.0116666666666667,0.750555333333333,0.0138886666666664,0.755555333333334}, + {0.00999999999999919,0.744444666666666,0.0116666666666667,0.750555333333333}, + {0.00833333333333286,0.737222,0.00999999999999919,0.744444666666666}, + {0.00666666666666652,0.728888666666667,0.00833333333333286,0.737222}, + {0.00555533333333358,0.718888666666667,0.00666666666666652,0.728888666666667}, + {0.0044446666666668,0.707778,0.00555533333333358,0.718888666666667}, + {0.00333333333333267,0.695,0.0044446666666668,0.707778}, + {0.00277799999999928,0.681666666666667,0.00333333333333267,0.695}, + {0.00222199999999972,0.666111333333333,0.00277799999999928,0.681666666666667}, + {0.00166666666666634,0.65,0.00222199999999972,0.666111333333333}, + {0.00111133333333295,0.632778,0.00166666666666634,0.65}, + {0.000555333333333389,0.614444666666667,0.00111133333333295,0.632778}, + {0.000555333333333389,0.595,0.000555333333333389,0.614444666666667}, + {0,0.575555333333333,0.000555333333333389,0.595}, + {0,0.555,0,0.575555333333333}, + {0,0.533888666666667,0,0.555}, + {0,0.512778,0,0.533888666666667}, + {0,0.492222,0,0.512778}, + {0,0.471111333333334,0,0.492222}, + {0,0.450555333333333,0,0.471111333333334}, + {0.000555333333333389,0.431111333333333,0,0.450555333333333}, + {0.000555333333333389,0.411666666666667,0.000555333333333389,0.431111333333333}, + {0.00111133333333295,0.393333333333333,0.000555333333333389,0.411666666666667}, + {0.00166666666666634,0.376111333333334,0.00111133333333295,0.393333333333333}, + {0.00222199999999972,0.36,0.00166666666666634,0.376111333333334}, + {0.00277799999999928,0.344444666666667,0.00222199999999972,0.36}, + {0.00333333333333267,0.331111333333334,0.00277799999999928,0.344444666666667}, + {0.0044446666666668,0.318333333333333,0.00333333333333267,0.331111333333334}, + {0.00555533333333358,0.307222,0.0044446666666668,0.318333333333333}, + {0.00666666666666652,0.297222,0.00555533333333358,0.307222}, + {0.00833333333333286,0.288888666666667,0.00666666666666652,0.297222}, + {0.00999999999999919,0.281666666666667,0.00833333333333286,0.288888666666667}, + {0.0116666666666667,0.275555333333333,0.00999999999999919,0.281666666666667}, + {0.0138886666666664,0.270555333333334,0.0116666666666667,0.275555333333333}, + {0.0161113333333335,0.266111333333334,0.0138886666666664,0.270555333333334}, + {0.0183333333333332,0.262222,0.0161113333333335,0.266111333333334}, + {0.0211113333333325,0.258888666666667,0.0183333333333332,0.262222}, + {0.0244446666666664,0.256111333333333,0.0211113333333325,0.258888666666667}, + {0.0272219999999995,0.253888666666667,0.0244446666666664,0.256111333333333}, + {0.0305553333333333,0.251666666666667,0.0272219999999995,0.253888666666667}, + {0.033888666666666,0.25,0.0305553333333333,0.251666666666667}, + {0.0377779999999994,0.248888666666667,0.033888666666666,0.25}, + {0.0416666666666667,0.247778,0.0377779999999994,0.248888666666667}, + {0.0449999999999993,0.247222,0.0416666666666667,0.247778}, + {0.0533333333333334,0.246666666666667,0.0488886666666666,0.247222}, + {0.0572219999999994,0.247222,0.0533333333333334,0.246666666666667}, + {0.0644446666666667,0.247778,0.0611113333333329,0.247222}, + {0.0683333333333328,0.248888666666667,0.0644446666666667,0.247778}, + {0.072222,0.25,0.0683333333333328,0.248888666666667}, + {0.0755553333333327,0.251666666666667,0.072222,0.25}, + {0.0788886666666665,0.253888666666667,0.0755553333333327,0.251666666666667}, + {0.0816666666666658,0.256111333333333,0.0788886666666665,0.253888666666667}, + {0.0849999999999997,0.258888666666667,0.0816666666666658,0.256111333333333}, + {0.0877780000000001,0.262222,0.0849999999999997,0.258888666666667}, + {0.0899999999999999,0.266111333333334,0.0877780000000001,0.262222}, + {0.0922219999999996,0.270555333333334,0.0899999999999999,0.266111333333334}, + {0.0944446666666666,0.275555333333333,0.0922219999999996,0.270555333333334}, + {0.096111333333333,0.281666666666667,0.0944446666666666,0.275555333333333}, + {0.0977779999999993,0.288888666666667,0.096111333333333,0.281666666666667}, + {0,0,0,0} +}; + +double Icon14[][4] = { + {0.296110666666666,0.295555333333333,0.290555333333332,0.288888666666667}, + {0.300555333333333,0.303333333333333,0.296110666666666,0.295555333333333}, + {0.304444,0.312778,0.300555333333333,0.303333333333333}, + {0.307221999999999,0.323333333333334,0.304444,0.312778}, + {0.309443999999999,0.335,0.307221999999999,0.323333333333334}, + {0.310555333333333,0.347778,0.309443999999999,0.335}, + {0.311666666666666,0.361666666666667,0.310555333333333,0.347778}, + {0.312222,0.376111333333334,0.311666666666666,0.361666666666667}, + {0.312222,0.391666666666667,0.312222,0.376111333333334}, + {0.312222,0.407222,0.312222,0.391666666666667}, + {0.311666666666666,0.423333333333333,0.312222,0.407222}, + {0.310555333333333,0.439444666666667,0.311666666666666,0.423333333333333}, + {0.31,0.455,0.310555333333333,0.439444666666667}, + {0.308888666666667,0.470555333333333,0.31,0.455}, + {0.307221999999999,0.485,0.308888666666667,0.470555333333333}, + {0.306110666666666,0.498888666666667,0.307221999999999,0.485}, + {0.304444,0.511666666666667,0.306110666666666,0.498888666666667}, + {0.302221999999999,0.523333333333333,0.304444,0.511666666666667}, + {0.299999999999999,0.533888666666667,0.302221999999999,0.523333333333333}, + {0.297222,0.543333333333334,0.299999999999999,0.533888666666667}, + {0.294444,0.551111333333333,0.297222,0.543333333333334}, + {0.290555333333332,0.557778,0.294444,0.551111333333333}, + {0.284443999999999,0.565,0.290555333333332,0.557778}, + {0.276110666666667,0.570555333333333,0.284443999999999,0.565}, + {0.266666666666667,0.573333333333334,0.276110666666667,0.570555333333333}, + {0.255555333333334,0.574444666666666,0.266666666666667,0.573333333333334}, + {0.243333333333333,0.573888666666667,0.255555333333334,0.574444666666666}, + {0.229999999999999,0.572222,0.243333333333333,0.573888666666667}, + {0.215555333333333,0.569444666666667,0.229999999999999,0.572222}, + {0.201110666666666,0.566111333333333,0.215555333333333,0.569444666666667}, + {0.186110666666667,0.562778,0.201110666666666,0.566111333333333}, + {0.171666666666667,0.559444666666667,0.186110666666667,0.562778}, + {0.158333333333333,0.556666666666667,0.171666666666667,0.559444666666667}, + {0.146110666666666,0.554444666666667,0.158333333333333,0.556666666666667}, + {0.134999999999999,0.553888666666667,0.146110666666666,0.554444666666667}, + {0.117221999999999,0.555555333333333,0.125555333333333,0.553888666666667}, + {0.111110666666666,0.557778,0.117221999999999,0.555555333333333}, + {0.106110666666666,0.561111333333334,0.111110666666666,0.557778}, + {0.102222,0.565,0.106110666666666,0.561111333333334}, + {0.0994439999999995,0.569444666666667,0.102222,0.565}, + {0.0972219999999998,0.575,0.0994439999999995,0.569444666666667}, + {0.0961106666666668,0.581666666666666,0.0972219999999998,0.575}, + {0.095,0.588333333333334,0.0961106666666668,0.581666666666666}, + {0.0944439999999993,0.595555333333333,0.095,0.588333333333334}, + {0.0944439999999993,0.602778,0.0944439999999993,0.595555333333333}, + {0.0944439999999993,0.61,0.0944439999999993,0.602778}, + {0.095,0.617222,0.0944439999999993,0.61}, + {0.0961106666666668,0.623888666666667,0.095,0.617222}, + {0.0972219999999998,0.630555333333334,0.0961106666666668,0.623888666666667}, + {0.0994439999999995,0.636111333333333,0.0972219999999998,0.630555333333334}, + {0.102222,0.640555333333333,0.0994439999999995,0.636111333333333}, + {0.106110666666666,0.644444666666667,0.102222,0.640555333333333}, + {0.111110666666666,0.647778,0.106110666666666,0.644444666666667}, + {0.117221999999999,0.65,0.111110666666666,0.647778}, + {0.125555333333333,0.651666666666667,0.117221999999999,0.65}, + {0.134999999999999,0.652778,0.125555333333333,0.651666666666667}, + {0.158333333333333,0.652222,0.146110666666666,0.652778}, + {0.171666666666667,0.651111333333333,0.158333333333333,0.652222}, + {0.186110666666667,0.649444666666666,0.171666666666667,0.651111333333333}, + {0.201110666666666,0.647778,0.186110666666667,0.649444666666666}, + {0.215555333333333,0.646111333333333,0.201110666666666,0.647778}, + {0.229999999999999,0.644444666666667,0.215555333333333,0.646111333333333}, + {0.243333333333333,0.643333333333333,0.229999999999999,0.644444666666667}, + {0.255555333333334,0.642778,0.243333333333333,0.643333333333333}, + {0.276110666666667,0.643888666666667,0.266666666666667,0.642778}, + {0.284443999999999,0.645555333333334,0.276110666666667,0.643888666666667}, + {0.290555333333332,0.647778,0.284443999999999,0.645555333333334}, + {0.294999999999999,0.650555333333333,0.290555333333332,0.647778}, + {0.298888666666667,0.653888666666666,0.294999999999999,0.650555333333333}, + {0.301666666666666,0.657778,0.298888666666667,0.653888666666666}, + {0.303888666666667,0.662778,0.301666666666666,0.657778}, + {0.306110666666666,0.667778,0.303888666666667,0.662778}, + {0.307777333333333,0.673333333333333,0.306110666666666,0.667778}, + {0.309443999999999,0.679444666666667,0.307777333333333,0.673333333333333}, + {0.310555333333333,0.686111333333334,0.309443999999999,0.679444666666667}, + {0.311666666666666,0.692778,0.310555333333333,0.686111333333334}, + {0.312222,0.698888666666667,0.311666666666666,0.692778}, + {0.312222,0.705555333333334,0.312222,0.698888666666667}, + {0.312222,0.711666666666667,0.312222,0.705555333333334}, + {0.311110666666667,0.717222,0.312222,0.711666666666667}, + {0.308888666666667,0.722222,0.311110666666667,0.717222}, + {0.306110666666666,0.727222,0.308888666666667,0.722222}, + {0.302221999999999,0.731111333333333,0.306110666666666,0.727222}, + {0.297222,0.734444666666667,0.302221999999999,0.731111333333333}, + {0.290555333333332,0.737222,0.297222,0.734444666666667}, + {0.283888666666666,0.738888666666667,0.290555333333332,0.737222}, + {0.276110666666667,0.740555333333334,0.283888666666666,0.738888666666667}, + {0.266666666666667,0.742222,0.276110666666667,0.740555333333334}, + {0.256110666666667,0.743888666666667,0.266666666666667,0.742222}, + {0.244444,0.745,0.256110666666667,0.743888666666667}, + {0.231666666666667,0.746666666666667,0.244444,0.745}, + {0.217777333333333,0.748333333333333,0.231666666666667,0.746666666666667}, + {0.203333333333333,0.749444666666667,0.217777333333333,0.748333333333333}, + {0.187777333333333,0.751111333333334,0.203333333333333,0.749444666666667}, + {0.172222,0.752778,0.187777333333333,0.751111333333334}, + {0.156110666666667,0.753888666666667,0.172222,0.752778}, + {0.139999999999999,0.755,0.156110666666667,0.753888666666667}, + {0.124443999999999,0.756111333333333,0.139999999999999,0.755}, + {0.108888666666666,0.756666666666667,0.124443999999999,0.756111333333333}, + {0.0805553333333329,0.756111333333333,0.0944439999999993,0.756666666666667}, + {0.0677773333333332,0.755,0.0805553333333329,0.756111333333333}, + {0.0561106666666665,0.753333333333333,0.0677773333333332,0.755}, + {0.0455553333333327,0.750555333333333,0.0561106666666665,0.753333333333333}, + {0.0361106666666669,0.747222,0.0455553333333327,0.750555333333333}, + {0.0283333333333336,0.742778,0.0361106666666669,0.747222}, + {0.0216666666666659,0.737222,0.0283333333333336,0.742778}, + {0.0161106666666662,0.730555333333333,0.0216666666666659,0.737222}, + {0.0116666666666667,0.722778,0.0161106666666662,0.730555333333333}, + {0.0077773333333333,0.713333333333334,0.0116666666666667,0.722778}, + {0.00500000000000019,0.702778,0.0077773333333333,0.713333333333334}, + {0.00277733333333311,0.691111333333333,0.00500000000000019,0.702778}, + {0.00166666666666634,0.678333333333333,0.00277733333333311,0.691111333333333}, + {0.000555333333333389,0.664444666666667,0.00166666666666634,0.678333333333333}, + {0,0.65,0.000555333333333389,0.664444666666667}, + {0,0.634444666666666,0,0.65}, + {0,0.618888666666667,0,0.634444666666666}, + {0.000555333333333389,0.602778,0,0.618888666666667}, + {0.00166666666666634,0.586666666666667,0.000555333333333389,0.602778}, + {0.00222199999999972,0.571111333333333,0.00166666666666634,0.586666666666667}, + {0.00333333333333267,0.555555333333333,0.00222199999999972,0.571111333333333}, + {0.00500000000000019,0.541111333333333,0.00333333333333267,0.555555333333333}, + {0.00611066666666697,0.527222,0.00500000000000019,0.541111333333333}, + {0.0077773333333333,0.514444666666667,0.00611066666666697,0.527222}, + {0.00999999999999919,0.502778,0.0077773333333333,0.514444666666667}, + {0.0122220000000001,0.492222,0.00999999999999919,0.502778}, + {0.0149999999999994,0.482778,0.0122220000000001,0.492222}, + {0.0177773333333325,0.475,0.0149999999999994,0.482778}, + {0.0216666666666659,0.468333333333333,0.0177773333333325,0.475}, + {0.0277773333333329,0.461111333333333,0.0216666666666659,0.468333333333333}, + {0.0361106666666669,0.455555333333334,0.0277773333333329,0.461111333333333}, + {0.0455553333333327,0.452778,0.0361106666666669,0.455555333333334}, + {0.056666666666666,0.451666666666667,0.0455553333333327,0.452778}, + {0.0688886666666662,0.452222,0.056666666666666,0.451666666666667}, + {0.0822219999999992,0.453888666666667,0.0688886666666662,0.452222}, + {0.0966666666666664,0.456666666666666,0.0822219999999992,0.453888666666667}, + {0.111666666666667,0.46,0.0966666666666664,0.456666666666666}, + {0.126110666666667,0.463333333333334,0.111666666666667,0.46}, + {0.140555333333333,0.466666666666667,0.126110666666667,0.463333333333334}, + {0.153888666666666,0.469444666666667,0.140555333333333,0.466666666666667}, + {0.166110666666666,0.471666666666666,0.153888666666666,0.469444666666667}, + {0.177221999999999,0.472222,0.166110666666666,0.471666666666666}, + {0.195,0.470555333333333,0.186666666666666,0.472222}, + {0.201110666666666,0.468333333333333,0.195,0.470555333333333}, + {0.206110666666666,0.465,0.201110666666666,0.468333333333333}, + {0.21,0.461111333333333,0.206110666666666,0.465}, + {0.212777333333333,0.456666666666666,0.21,0.461111333333333}, + {0.215,0.451111333333333,0.212777333333333,0.456666666666666}, + {0.216110666666667,0.444444666666667,0.215,0.451111333333333}, + {0.217222,0.437778,0.216110666666667,0.444444666666667}, + {0.217777333333333,0.430555333333333,0.217222,0.437778}, + {0.217777333333333,0.423333333333333,0.217777333333333,0.430555333333333}, + {0.217777333333333,0.416111333333333,0.217777333333333,0.423333333333333}, + {0.217222,0.408888666666667,0.217777333333333,0.416111333333333}, + {0.216110666666667,0.402222,0.217222,0.408888666666667}, + {0.215,0.395555333333334,0.216110666666667,0.402222}, + {0.212777333333333,0.39,0.215,0.395555333333334}, + {0.21,0.385555333333333,0.212777333333333,0.39}, + {0.206110666666666,0.381666666666667,0.21,0.385555333333333}, + {0.201110666666666,0.378333333333333,0.206110666666666,0.381666666666667}, + {0.195,0.376111333333334,0.201110666666666,0.378333333333333}, + {0.186666666666666,0.374444666666667,0.195,0.376111333333334}, + {0.177221999999999,0.373333333333333,0.186666666666666,0.374444666666667}, + {0.153888666666666,0.373888666666667,0.166110666666666,0.373333333333333}, + {0.140555333333333,0.375,0.153888666666666,0.373888666666667}, + {0.126110666666667,0.376666666666667,0.140555333333333,0.375}, + {0.111666666666667,0.378333333333333,0.126110666666667,0.376666666666667}, + {0.0966666666666664,0.38,0.111666666666667,0.378333333333333}, + {0.0822219999999992,0.381666666666667,0.0966666666666664,0.38}, + {0.0688886666666662,0.382778,0.0822219999999992,0.381666666666667}, + {0.056666666666666,0.383333333333334,0.0688886666666662,0.382778}, + {0.0361106666666669,0.382222,0.0455553333333327,0.383333333333334}, + {0.0277773333333329,0.380555333333334,0.0361106666666669,0.382222}, + {0.0216666666666659,0.378333333333333,0.0277773333333329,0.380555333333334}, + {0.0172220000000003,0.375555333333333,0.0216666666666659,0.378333333333333}, + {0.013333333333333,0.372222,0.0172220000000003,0.375555333333333}, + {0.0105553333333326,0.368333333333334,0.013333333333333,0.372222}, + {0.00833333333333286,0.363333333333333,0.0105553333333326,0.368333333333334}, + {0.00611066666666697,0.358333333333333,0.00833333333333286,0.363333333333333}, + {0.00444399999999945,0.352778,0.00611066666666697,0.358333333333333}, + {0.00277733333333311,0.346666666666666,0.00444399999999945,0.352778}, + {0.00166666666666634,0.34,0.00277733333333311,0.346666666666666}, + {0.000555333333333389,0.333333333333333,0.00166666666666634,0.34}, + {0,0.327222,0.000555333333333389,0.333333333333333}, + {0,0.320555333333333,0,0.327222}, + {0,0.314444666666667,0,0.320555333333333}, + {0.00111066666666678,0.308888666666667,0,0.314444666666667}, + {0.00333333333333267,0.303888666666667,0.00111066666666678,0.308888666666667}, + {0.00611066666666697,0.298888666666667,0.00333333333333267,0.303888666666667}, + {0.00999999999999919,0.295,0.00611066666666697,0.298888666666667}, + {0.0149999999999994,0.291666666666667,0.00999999999999919,0.295}, + {0.0216666666666659,0.288888666666667,0.0149999999999994,0.291666666666667}, + {0.0283333333333336,0.287222,0.0216666666666659,0.288888666666667}, + {0.0361106666666669,0.285555333333334,0.0283333333333336,0.287222}, + {0.0455553333333327,0.283888666666667,0.0361106666666669,0.285555333333334}, + {0.0561106666666665,0.282222,0.0455553333333327,0.283888666666667}, + {0.0677773333333332,0.281111333333333,0.0561106666666665,0.282222}, + {0.0805553333333329,0.279444666666667,0.0677773333333332,0.281111333333333}, + {0.0944439999999993,0.277778,0.0805553333333329,0.279444666666667}, + {0.108888666666666,0.276666666666667,0.0944439999999993,0.277778}, + {0.124443999999999,0.275,0.108888666666666,0.276666666666667}, + {0.139999999999999,0.273333333333333,0.124443999999999,0.275}, + {0.156110666666667,0.272222,0.139999999999999,0.273333333333333}, + {0.172222,0.271111333333333,0.156110666666667,0.272222}, + {0.187777333333333,0.27,0.172222,0.271111333333333}, + {0.203333333333333,0.269444666666667,0.187777333333333,0.27}, + {0.231666666666667,0.27,0.217777333333333,0.269444666666667}, + {0.244444,0.271111333333333,0.231666666666667,0.27}, + {0.256110666666667,0.272778,0.244444,0.271111333333333}, + {0.266666666666667,0.275555333333333,0.256110666666667,0.272778}, + {0.276110666666667,0.278888666666666,0.266666666666667,0.275555333333333}, + {0.283888666666666,0.283333333333333,0.276110666666667,0.278888666666666}, + {0.290555333333332,0.288888666666667,0.283888666666666,0.283333333333333}, + {0,0,0,0} +}; + +double Icon15[][4] = { + {0.294999999999999,0.297222,0.290555333333334,0.288888666666667}, + {0.298888666666667,0.307222,0.294999999999999,0.297222}, + {0.302222,0.318333333333333,0.298888666666667,0.307222}, + {0.305,0.331111333333334,0.302222,0.318333333333333}, + {0.307221999999999,0.344444666666667,0.305,0.331111333333334}, + {0.309444666666666,0.36,0.307221999999999,0.344444666666667}, + {0.311111333333333,0.376111333333334,0.309444666666666,0.36}, + {0.312222,0.393333333333333,0.311111333333333,0.376111333333334}, + {0.313333333333334,0.411666666666667,0.312222,0.393333333333333}, + {0.314444666666667,0.431111333333333,0.313333333333334,0.411666666666667}, + {0.315,0.450555333333333,0.314444666666667,0.431111333333333}, + {0.315555333333333,0.471111333333334,0.315,0.450555333333333}, + {0.315555333333333,0.492222,0.315555333333333,0.471111333333334}, + {0.315555333333333,0.513333333333333,0.315555333333333,0.492222}, + {0.315555333333333,0.533888666666667,0.315555333333333,0.513333333333333}, + {0.315555333333333,0.555,0.315555333333333,0.533888666666667}, + {0.315,0.575555333333333,0.315555333333333,0.555}, + {0.314444666666667,0.595,0.315,0.575555333333333}, + {0.313333333333334,0.614444666666667,0.314444666666667,0.595}, + {0.312222,0.632778,0.313333333333334,0.614444666666667}, + {0.311111333333333,0.65,0.312222,0.632778}, + {0.309444666666666,0.666111333333333,0.311111333333333,0.65}, + {0.307221999999999,0.681666666666667,0.309444666666666,0.666111333333333}, + {0.305,0.695,0.307221999999999,0.681666666666667}, + {0.302222,0.707778,0.305,0.695}, + {0.298888666666667,0.718888666666667,0.302222,0.707778}, + {0.294999999999999,0.728888666666667,0.298888666666667,0.718888666666667}, + {0.290555333333334,0.737222,0.294999999999999,0.728888666666667}, + {0.283888666666666,0.746666666666667,0.290555333333334,0.737222}, + {0.276111333333333,0.753888666666667,0.283888666666666,0.746666666666667}, + {0.266666666666667,0.76,0.276111333333333,0.753888666666667}, + {0.256111333333333,0.763888666666666,0.266666666666667,0.76}, + {0.244444666666666,0.766666666666667,0.256111333333333,0.763888666666666}, + {0.231666666666667,0.768333333333333,0.244444666666666,0.766666666666667}, + {0.217778,0.768888666666667,0.231666666666667,0.768333333333333}, + {0.203333333333333,0.768333333333333,0.217778,0.768888666666667}, + {0.187778,0.766666666666667,0.203333333333333,0.768333333333333}, + {0.172222,0.765,0.187778,0.766666666666667}, + {0.156111333333333,0.762222,0.172222,0.765}, + {0.139999999999999,0.76,0.156111333333333,0.762222}, + {0.124444666666667,0.757222,0.139999999999999,0.76}, + {0.108888666666666,0.753888666666667,0.124444666666667,0.757222}, + {0.0944446666666666,0.751666666666667,0.108888666666666,0.753888666666667}, + {0.0805553333333329,0.748888666666667,0.0944446666666666,0.751666666666667}, + {0.0677779999999994,0.746666666666667,0.0805553333333329,0.748888666666667}, + {0.0561113333333327,0.744444666666666,0.0677779999999994,0.746666666666667}, + {0.0455553333333327,0.742778,0.0561113333333327,0.744444666666666}, + {0.0361113333333331,0.741111333333333,0.0455553333333327,0.742778}, + {0.0283333333333336,0.738888666666667,0.0361113333333331,0.741111333333333}, + {0.0216666666666671,0.737222,0.0283333333333336,0.738888666666667}, + {0.0149999999999994,0.734444666666667,0.0216666666666671,0.737222}, + {0.0100000000000004,0.731111333333333,0.0149999999999994,0.734444666666667}, + {0.00611133333333314,0.727222,0.0100000000000004,0.731111333333333}, + {0.00333333333333267,0.722222,0.00611133333333314,0.727222}, + {0.00111133333333295,0.717222,0.00333333333333267,0.722222}, + {0,0.711666666666667,0.00111133333333295,0.717222}, + {0,0.705555333333334,0,0.711666666666667}, + {0,0.698888666666667,0,0.705555333333334}, + {0.000555333333333389,0.692222,0,0.698888666666667}, + {0.00166666666666634,0.686111333333334,0.000555333333333389,0.692222}, + {0.00277800000000046,0.679444666666667,0.00166666666666634,0.686111333333334}, + {0.0044446666666668,0.673333333333333,0.00277800000000046,0.679444666666667}, + {0.00611133333333314,0.667778,0.0044446666666668,0.673333333333333}, + {0.00833333333333286,0.662778,0.00611133333333314,0.667778}, + {0.0105553333333338,0.657778,0.00833333333333286,0.662778}, + {0.013333333333333,0.653888666666666,0.0105553333333338,0.657778}, + {0.0172220000000003,0.650555333333333,0.013333333333333,0.653888666666666}, + {0.0216666666666671,0.647778,0.0172220000000003,0.650555333333333}, + {0.0277780000000002,0.645555333333334,0.0216666666666671,0.647778}, + {0.0361113333333331,0.643888666666667,0.0277780000000002,0.645555333333334}, + {0.0455553333333327,0.642778,0.0361113333333331,0.643888666666667}, + {0.0688886666666662,0.643333333333333,0.056666666666666,0.642778}, + {0.0822220000000004,0.644444666666667,0.0688886666666662,0.643333333333333}, + {0.0966666666666664,0.646111333333333,0.0822220000000004,0.644444666666667}, + {0.111666666666667,0.647778,0.0966666666666664,0.646111333333333}, + {0.126111333333333,0.649444666666666,0.111666666666667,0.647778}, + {0.140555333333333,0.651111333333333,0.126111333333333,0.649444666666666}, + {0.153888666666667,0.652222,0.140555333333333,0.651111333333333}, + {0.166111333333333,0.652778,0.153888666666667,0.652222}, + {0.186666666666666,0.651666666666667,0.177222,0.652778}, + {0.195,0.65,0.186666666666666,0.651666666666667}, + {0.201111333333333,0.647778,0.195,0.65}, + {0.206666666666667,0.643888666666667,0.201111333333333,0.647778}, + {0.210555333333333,0.639444666666667,0.206666666666667,0.643888666666667}, + {0.213333333333334,0.633333333333334,0.210555333333333,0.639444666666667}, + {0.214444666666666,0.626666666666667,0.213333333333334,0.633333333333334}, + {0.215,0.619444666666666,0.214444666666666,0.626666666666667}, + {0.214444666666666,0.611111333333334,0.215,0.619444666666666}, + {0.213888666666667,0.602778,0.214444666666666,0.611111333333334}, + {0.212778,0.594444666666667,0.213888666666667,0.602778}, + {0.211111333333334,0.586111333333333,0.212778,0.594444666666667}, + {0.209444666666666,0.578888666666667,0.211111333333334,0.586111333333333}, + {0.207778,0.572222,0.209444666666666,0.578888666666667}, + {0.206111333333334,0.566111333333333,0.207778,0.572222}, + {0.203888666666667,0.561666666666667,0.206111333333334,0.566111333333333}, + {0.201111333333333,0.557778,0.203888666666667,0.561666666666667}, + {0.196666666666667,0.554444666666667,0.201111333333333,0.557778}, + {0.191111333333333,0.552778,0.196666666666667,0.554444666666667}, + {0.175,0.553888666666667,0.183888666666667,0.552778}, + {0.166111333333333,0.555555333333333,0.175,0.553888666666667}, + {0.156111333333333,0.557778,0.166111333333333,0.555555333333333}, + {0.146111333333334,0.56,0.156111333333333,0.557778}, + {0.137222,0.561666666666667,0.146111333333334,0.56}, + {0.128333333333333,0.562778,0.137222,0.561666666666667}, + {0.121111333333333,0.562222,0.128333333333333,0.562778}, + {0.115555333333333,0.561111333333334,0.121111333333333,0.562222}, + {0.111111333333334,0.557778,0.115555333333333,0.561111333333334}, + {0.107778,0.553333333333333,0.111111333333334,0.557778}, + {0.105555333333334,0.547778,0.107778,0.553333333333333}, + {0.104444666666667,0.540555333333333,0.105555333333334,0.547778}, + {0.103333333333333,0.532222,0.104444666666667,0.540555333333333}, + {0.102778,0.522778,0.103333333333333,0.532222}, + {0.102778,0.512778,0.102778,0.522778}, + {0.102778,0.503333333333333,0.102778,0.512778}, + {0.103333333333333,0.493888666666667,0.102778,0.503333333333333}, + {0.104444666666667,0.485555333333333,0.103333333333333,0.493888666666667}, + {0.105555333333334,0.478333333333333,0.104444666666667,0.485555333333333}, + {0.107778,0.472778,0.105555333333334,0.478333333333333}, + {0.111111333333334,0.468333333333333,0.107778,0.472778}, + {0.115555333333333,0.465,0.111111333333334,0.468333333333333}, + {0.121111333333333,0.463888666666667,0.115555333333333,0.465}, + {0.128333333333333,0.463333333333334,0.121111333333333,0.463888666666667}, + {0.137222,0.464444666666667,0.128333333333333,0.463333333333334}, + {0.146111333333334,0.466111333333333,0.137222,0.464444666666667}, + {0.156111333333333,0.468333333333333,0.146111333333334,0.466111333333333}, + {0.166111333333333,0.470555333333333,0.156111333333333,0.468333333333333}, + {0.175,0.472222,0.166111333333333,0.470555333333333}, + {0.183888666666667,0.473333333333333,0.175,0.472222}, + {0.196666666666667,0.471666666666666,0.191111333333333,0.473333333333333}, + {0.201111333333333,0.468333333333333,0.196666666666667,0.471666666666666}, + {0.203888666666667,0.464444666666667,0.201111333333333,0.468333333333333}, + {0.206111333333334,0.46,0.203888666666667,0.464444666666667}, + {0.207778,0.453888666666667,0.206111333333334,0.46}, + {0.209444666666666,0.447222,0.207778,0.453888666666667}, + {0.211111333333334,0.44,0.209444666666666,0.447222}, + {0.212778,0.431666666666667,0.211111333333334,0.44}, + {0.213888666666667,0.423333333333333,0.212778,0.431666666666667}, + {0.214444666666666,0.415,0.213888666666667,0.423333333333333}, + {0.215,0.406666666666667,0.214444666666666,0.415}, + {0.214444666666666,0.399444666666666,0.215,0.406666666666667}, + {0.213333333333334,0.392778,0.214444666666666,0.399444666666666}, + {0.210555333333333,0.386666666666667,0.213333333333334,0.392778}, + {0.206666666666667,0.382222,0.210555333333333,0.386666666666667}, + {0.201111333333333,0.378333333333333,0.206666666666667,0.382222}, + {0.195,0.376111333333334,0.201111333333333,0.378333333333333}, + {0.186666666666666,0.374444666666667,0.195,0.376111333333334}, + {0.177222,0.373333333333333,0.186666666666666,0.374444666666667}, + {0.153888666666667,0.373888666666667,0.166111333333333,0.373333333333333}, + {0.140555333333333,0.375,0.153888666666667,0.373888666666667}, + {0.126111333333333,0.376666666666667,0.140555333333333,0.375}, + {0.111666666666667,0.378333333333333,0.126111333333333,0.376666666666667}, + {0.0966666666666664,0.38,0.111666666666667,0.378333333333333}, + {0.0822220000000004,0.381666666666667,0.0966666666666664,0.38}, + {0.0688886666666662,0.382778,0.0822220000000004,0.381666666666667}, + {0.056666666666666,0.383333333333334,0.0688886666666662,0.382778}, + {0.0361113333333331,0.382222,0.0455553333333327,0.383333333333334}, + {0.0277780000000002,0.380555333333334,0.0361113333333331,0.382222}, + {0.0216666666666671,0.378333333333333,0.0277780000000002,0.380555333333334}, + {0.0172220000000003,0.375555333333333,0.0216666666666671,0.378333333333333}, + {0.013333333333333,0.372222,0.0172220000000003,0.375555333333333}, + {0.0105553333333338,0.368333333333334,0.013333333333333,0.372222}, + {0.00833333333333286,0.363333333333333,0.0105553333333338,0.368333333333334}, + {0.00611133333333314,0.358333333333333,0.00833333333333286,0.363333333333333}, + {0.0044446666666668,0.352778,0.00611133333333314,0.358333333333333}, + {0.00277800000000046,0.346666666666666,0.0044446666666668,0.352778}, + {0.00166666666666634,0.34,0.00277800000000046,0.346666666666666}, + {0.000555333333333389,0.333333333333333,0.00166666666666634,0.34}, + {0,0.327222,0.000555333333333389,0.333333333333333}, + {0,0.320555333333333,0,0.327222}, + {0,0.314444666666667,0,0.320555333333333}, + {0.00111133333333295,0.308888666666667,0,0.314444666666667}, + {0.00333333333333267,0.303888666666667,0.00111133333333295,0.308888666666667}, + {0.00611133333333314,0.298888666666667,0.00333333333333267,0.303888666666667}, + {0.0100000000000004,0.295,0.00611133333333314,0.298888666666667}, + {0.0149999999999994,0.291666666666667,0.0100000000000004,0.295}, + {0.0216666666666671,0.288888666666667,0.0149999999999994,0.291666666666667}, + {0.0283333333333336,0.287222,0.0216666666666671,0.288888666666667}, + {0.0361113333333331,0.285,0.0283333333333336,0.287222}, + {0.0455553333333327,0.283333333333333,0.0361113333333331,0.285}, + {0.0561113333333327,0.281666666666667,0.0455553333333327,0.283333333333333}, + {0.0677779999999994,0.279444666666667,0.0561113333333327,0.281666666666667}, + {0.0805553333333329,0.277222,0.0677779999999994,0.279444666666667}, + {0.0944446666666666,0.274444666666666,0.0805553333333329,0.277222}, + {0.108888666666666,0.272222,0.0944446666666666,0.274444666666666}, + {0.124444666666667,0.268888666666667,0.108888666666666,0.272222}, + {0.139999999999999,0.266111333333334,0.124444666666667,0.268888666666667}, + {0.156111333333333,0.263888666666666,0.139999999999999,0.266111333333334}, + {0.172222,0.261111333333333,0.156111333333333,0.263888666666666}, + {0.187778,0.259444666666666,0.172222,0.261111333333333}, + {0.203333333333333,0.257778,0.187778,0.259444666666666}, + {0.217778,0.257222,0.203333333333333,0.257778}, + {0.231666666666667,0.257778,0.217778,0.257222}, + {0.244444666666666,0.259444666666666,0.231666666666667,0.257778}, + {0.256111333333333,0.262222,0.244444666666666,0.259444666666666}, + {0.266666666666667,0.266111333333334,0.256111333333333,0.262222}, + {0.276111333333333,0.272222,0.266666666666667,0.266111333333334}, + {0.283888666666666,0.279444666666667,0.276111333333333,0.272222}, + {0.290555333333334,0.288888666666667,0.283888666666666,0.279444666666667}, + {0,0,0,0} +}; + +double Icon16[][4] = { + {0.105555333333333,0.295,0.103333333333333,0.288888666666667}, + {0.107221999999999,0.303333333333333,0.105555333333333,0.295}, + {0.108333333333333,0.312778,0.107221999999999,0.303333333333333}, + {0.108333333333333,0.323888666666667,0.108333333333333,0.312778}, + {0.107778,0.336111333333333,0.108333333333333,0.323888666666667}, + {0.106666666666666,0.349444666666667,0.107778,0.336111333333333}, + {0.104999999999999,0.363888666666667,0.106666666666666,0.349444666666667}, + {0.103333333333333,0.378888666666667,0.104999999999999,0.363888666666667}, + {0.101666666666667,0.393333333333333,0.103333333333333,0.378888666666667}, + {0.099999999999999,0.407778,0.101666666666667,0.393333333333333}, + {0.0988886666666661,0.421111333333334,0.099999999999999,0.407778}, + {0.0983333333333327,0.433333333333334,0.0988886666666661,0.421111333333334}, + {0.0983333333333327,0.444444666666667,0.0983333333333327,0.433333333333334}, + {0.0994446666666657,0.453888666666667,0.0983333333333327,0.444444666666667}, + {0.101111333333333,0.462222,0.0994446666666657,0.453888666666667}, + {0.103333333333333,0.468333333333333,0.101111333333333,0.462222}, + {0.106666666666666,0.473333333333333,0.103333333333333,0.468333333333333}, + {0.110555333333333,0.477222,0.106666666666666,0.473333333333333}, + {0.115,0.48,0.110555333333333,0.477222}, + {0.120555333333333,0.482222,0.115,0.48}, + {0.127222,0.483333333333333,0.120555333333333,0.482222}, + {0.133888666666666,0.484444666666667,0.127222,0.483333333333333}, + {0.141111333333332,0.485,0.133888666666666,0.484444666666667}, + {0.162777999999999,0.484444666666667,0.155555333333333,0.485}, + {0.169444666666666,0.483333333333333,0.162777999999999,0.484444666666667}, + {0.176111333333332,0.482222,0.169444666666666,0.483333333333333}, + {0.181666666666666,0.48,0.176111333333332,0.482222}, + {0.186111333333333,0.477222,0.181666666666666,0.48}, + {0.189999999999999,0.473333333333333,0.186111333333333,0.477222}, + {0.193333333333333,0.468333333333333,0.189999999999999,0.473333333333333}, + {0.195555333333332,0.462222,0.193333333333333,0.468333333333333}, + {0.197222,0.453888666666667,0.195555333333332,0.462222}, + {0.198333333333333,0.444444666666667,0.197222,0.453888666666667}, + {0.198333333333333,0.433333333333334,0.198333333333333,0.444444666666667}, + {0.197778,0.421111333333334,0.198333333333333,0.433333333333334}, + {0.196666666666667,0.407778,0.197778,0.421111333333334}, + {0.194999999999999,0.393333333333333,0.196666666666667,0.407778}, + {0.193333333333333,0.378888666666667,0.194999999999999,0.393333333333333}, + {0.191666666666666,0.363888666666667,0.193333333333333,0.378888666666667}, + {0.189999999999999,0.349444666666667,0.191666666666666,0.363888666666667}, + {0.188888666666666,0.336111333333333,0.189999999999999,0.349444666666667}, + {0.188333333333333,0.323888666666667,0.188888666666666,0.336111333333333}, + {0.188333333333333,0.312778,0.188333333333333,0.323888666666667}, + {0.189444666666666,0.303333333333333,0.188333333333333,0.312778}, + {0.191111333333333,0.295,0.189444666666666,0.303333333333333}, + {0.193333333333333,0.288888666666667,0.191111333333333,0.295}, + {0.195555333333332,0.285,0.193333333333333,0.288888666666667}, + {0.198333333333333,0.281666666666667,0.195555333333332,0.285}, + {0.201111333333332,0.278888666666666,0.198333333333333,0.281666666666667}, + {0.204999999999999,0.276111333333333,0.201111333333332,0.278888666666666}, + {0.208888666666666,0.273888666666667,0.204999999999999,0.276111333333333}, + {0.212777999999999,0.271111333333333,0.208888666666666,0.273888666666667}, + {0.217777999999999,0.268888666666667,0.212777999999999,0.271111333333333}, + {0.222777999999999,0.266111333333334,0.217777999999999,0.268888666666667}, + {0.227778,0.263888666666666,0.222777999999999,0.266111333333334}, + {0.232778,0.261666666666667,0.227778,0.263888666666666}, + {0.238333333333333,0.259444666666666,0.232778,0.261666666666667}, + {0.243888666666666,0.257778,0.238333333333333,0.259444666666666}, + {0.248888666666666,0.256666666666667,0.243888666666666,0.257778}, + {0.253888666666666,0.255555333333334,0.248888666666666,0.256666666666667}, + {0.263888666666666,0.256666666666667,0.258888666666666,0.255555333333334}, + {0.267778,0.258333333333334,0.263888666666666,0.256666666666667}, + {0.271666666666666,0.261666666666667,0.267778,0.258333333333334}, + {0.275555333333333,0.266111333333334,0.271666666666666,0.261666666666667}, + {0.278333333333332,0.272222,0.275555333333333,0.266111333333334}, + {0.281111333333333,0.279444666666667,0.278333333333332,0.272222}, + {0.283333333333333,0.288888666666667,0.281111333333333,0.279444666666667}, + {0.284999999999999,0.297222,0.283333333333333,0.288888666666667}, + {0.286111333333333,0.307222,0.284999999999999,0.297222}, + {0.287222,0.318333333333333,0.286111333333333,0.307222}, + {0.288333333333333,0.331111333333334,0.287222,0.318333333333333}, + {0.288888666666666,0.344444666666667,0.288333333333333,0.331111333333334}, + {0.289444666666666,0.36,0.288888666666666,0.344444666666667}, + {0.289999999999999,0.376111333333334,0.289444666666666,0.36}, + {0.290555333333332,0.393333333333333,0.289999999999999,0.376111333333334}, + {0.291111333333333,0.411666666666667,0.290555333333332,0.393333333333333}, + {0.291111333333333,0.431111333333333,0.291111333333333,0.411666666666667}, + {0.291666666666667,0.450555333333333,0.291111333333333,0.431111333333333}, + {0.291666666666667,0.471111333333334,0.291666666666667,0.450555333333333}, + {0.291666666666667,0.492222,0.291666666666667,0.471111333333334}, + {0.291666666666667,0.513333333333333,0.291666666666667,0.492222}, + {0.291666666666667,0.533888666666667,0.291666666666667,0.513333333333333}, + {0.291666666666667,0.555,0.291666666666667,0.533888666666667}, + {0.291666666666667,0.575555333333333,0.291666666666667,0.555}, + {0.291111333333333,0.595,0.291666666666667,0.575555333333333}, + {0.291111333333333,0.614444666666667,0.291111333333333,0.595}, + {0.290555333333332,0.632778,0.291111333333333,0.614444666666667}, + {0.289999999999999,0.65,0.290555333333332,0.632778}, + {0.289444666666666,0.666111333333333,0.289999999999999,0.65}, + {0.288888666666666,0.681666666666667,0.289444666666666,0.666111333333333}, + {0.288333333333333,0.695,0.288888666666666,0.681666666666667}, + {0.287222,0.707778,0.288333333333333,0.695}, + {0.286111333333333,0.718888666666667,0.287222,0.707778}, + {0.284999999999999,0.728888666666667,0.286111333333333,0.718888666666667}, + {0.283333333333333,0.737222,0.284999999999999,0.728888666666667}, + {0.281111333333333,0.746666666666667,0.283333333333333,0.737222}, + {0.278333333333332,0.753888666666667,0.281111333333333,0.746666666666667}, + {0.275555333333333,0.76,0.278333333333332,0.753888666666667}, + {0.271666666666666,0.764444666666667,0.275555333333333,0.76}, + {0.267778,0.767778,0.271666666666666,0.764444666666667}, + {0.263888666666666,0.769444666666667,0.267778,0.767778}, + {0.258888666666666,0.770555333333334,0.263888666666666,0.769444666666667}, + {0.248888666666666,0.769444666666667,0.253888666666666,0.770555333333334}, + {0.243888666666666,0.768333333333333,0.248888666666666,0.769444666666667}, + {0.238333333333333,0.766666666666667,0.243888666666666,0.768333333333333}, + {0.232778,0.764444666666667,0.238333333333333,0.766666666666667}, + {0.227778,0.762222,0.232778,0.764444666666667}, + {0.222777999999999,0.76,0.227778,0.762222}, + {0.217777999999999,0.757222,0.222777999999999,0.76}, + {0.212777999999999,0.755,0.217777999999999,0.757222}, + {0.208888666666666,0.752222,0.212777999999999,0.755}, + {0.204999999999999,0.75,0.208888666666666,0.752222}, + {0.201111333333332,0.747222,0.204999999999999,0.75}, + {0.198333333333333,0.744444666666666,0.201111333333332,0.747222}, + {0.195555333333332,0.741111333333333,0.198333333333333,0.744444666666666}, + {0.193333333333333,0.737222,0.195555333333332,0.741111333333333}, + {0.191111333333333,0.731111333333333,0.193333333333333,0.737222}, + {0.189444666666666,0.722778,0.191111333333333,0.731111333333333}, + {0.188888666666666,0.713333333333334,0.189444666666666,0.722778}, + {0.189444666666666,0.702222,0.188888666666666,0.713333333333334}, + {0.190555333333332,0.69,0.189444666666666,0.702222}, + {0.192222,0.676666666666667,0.190555333333332,0.69}, + {0.194999999999999,0.662222,0.192222,0.676666666666667}, + {0.197778,0.647778,0.194999999999999,0.662222}, + {0.199999999999999,0.632778,0.197778,0.647778}, + {0.202221999999999,0.618333333333334,0.199999999999999,0.632778}, + {0.203888666666667,0.605,0.202221999999999,0.618333333333334}, + {0.204444666666666,0.592778,0.203888666666667,0.605}, + {0.203888666666667,0.581666666666666,0.204444666666666,0.592778}, + {0.201666666666666,0.572222,0.203888666666667,0.581666666666666}, + {0.198333333333333,0.563888666666667,0.201666666666666,0.572222}, + {0.193333333333333,0.557778,0.198333333333333,0.563888666666667}, + {0.187222,0.552778,0.193333333333333,0.557778}, + {0.178888666666666,0.55,0.187222,0.552778}, + {0.169444666666666,0.548333333333333,0.178888666666666,0.55}, + {0.158333333333333,0.548888666666667,0.169444666666666,0.548333333333333}, + {0.146111333333333,0.550555333333334,0.158333333333333,0.548888666666667}, + {0.132777999999999,0.553888666666667,0.146111333333333,0.550555333333334}, + {0.118333333333332,0.557778,0.132777999999999,0.553888666666667}, + {0.103888666666666,0.562222,0.118333333333332,0.557778}, + {0.0888886666666657,0.566111333333333,0.103888666666666,0.562222}, + {0.0744446666666659,0.57,0.0888886666666657,0.566111333333333}, + {0.0611113333333329,0.572778,0.0744446666666659,0.57}, + {0.0488886666666666,0.573888666666667,0.0611113333333329,0.572778}, + {0.0377779999999994,0.572778,0.0488886666666666,0.573888666666667}, + {0.0283333333333324,0.57,0.0377779999999994,0.572778}, + {0.0199999999999996,0.565,0.0283333333333324,0.57}, + {0.0138886666666664,0.557778,0.0199999999999996,0.565}, + {0.00999999999999919,0.551111333333333,0.0138886666666664,0.557778}, + {0.00722199999999991,0.543333333333334,0.00999999999999919,0.551111333333333}, + {0.00499999999999901,0.533888666666667,0.00722199999999991,0.543333333333334}, + {0.00277799999999928,0.523333333333333,0.00499999999999901,0.533888666666667}, + {0.00166666666666634,0.511666666666667,0.00277799999999928,0.523333333333333}, + {0.000555333333332205,0.498888666666667,0.00166666666666634,0.511666666666667}, + {0.000555333333332205,0.485,0.000555333333332205,0.498888666666667}, + {0,0.470555333333333,0.000555333333332205,0.485}, + {0.000555333333332205,0.455,0,0.470555333333333}, + {0.000555333333332205,0.439444666666667,0.000555333333332205,0.455}, + {0.00111133333333295,0.423333333333333,0.000555333333332205,0.439444666666667}, + {0.00222199999999972,0.407222,0.00111133333333295,0.423333333333333}, + {0.00277799999999928,0.391666666666667,0.00222199999999972,0.407222}, + {0.00388866666666606,0.376111333333334,0.00277799999999928,0.391666666666667}, + {0.00444466666666562,0.361666666666667,0.00388866666666606,0.376111333333334}, + {0.00555533333333239,0.347778,0.00444466666666562,0.361666666666667}, + {0.00666666666666652,0.335,0.00555533333333239,0.347778}, + {0.00777799999999947,0.323333333333334,0.00666666666666652,0.335}, + {0.00888866666666625,0.312778,0.00777799999999947,0.323333333333334}, + {0.0105553333333326,0.303333333333333,0.00888866666666625,0.312778}, + {0.0122219999999989,0.295555333333333,0.0105553333333326,0.303333333333333}, + {0.0138886666666664,0.288888666666667,0.0122219999999989,0.295555333333333}, + {0.0166666666666657,0.282222,0.0138886666666664,0.288888666666667}, + {0.0199999999999996,0.277222,0.0166666666666657,0.282222}, + {0.0238886666666656,0.273333333333333,0.0199999999999996,0.277222}, + {0.0288886666666658,0.270555333333334,0.0238886666666656,0.273333333333333}, + {0.033888666666666,0.268333333333333,0.0288886666666658,0.270555333333334}, + {0.0394446666666658,0.267222,0.033888666666666,0.268333333333333}, + {0.0588886666666658,0.267778,0.0522219999999992,0.267222}, + {0.0649999999999989,0.268888666666667,0.0588886666666658,0.267778}, + {0.0716666666666666,0.27,0.0649999999999989,0.268888666666667}, + {0.0777779999999998,0.271666666666667,0.0716666666666666,0.27}, + {0.0833333333333333,0.273333333333333,0.0777779999999998,0.271666666666667}, + {0.0883333333333323,0.275555333333333,0.0833333333333333,0.273333333333333}, + {0.0933333333333325,0.277778,0.0883333333333323,0.275555333333333}, + {0.0972219999999998,0.280555333333333,0.0933333333333325,0.277778}, + {0.100555333333332,0.284444666666667,0.0972219999999998,0.280555333333333}, + {0.103333333333333,0.288888666666667,0.100555333333332,0.284444666666667}, + {0,0,0,0} +}; + +double Icon17[][4] = { + {0.297777333333332,0.291666666666667,0.291110666666666,0.288888666666667}, + {0.302777333333333,0.295,0.297777333333332,0.291666666666667}, + {0.306666666666666,0.298888666666667,0.302777333333333,0.295}, + {0.309443999999999,0.303888666666667,0.306666666666666,0.298888666666667}, + {0.311666666666666,0.308888666666667,0.309443999999999,0.303888666666667}, + {0.312777333333333,0.314444666666667,0.311666666666666,0.308888666666667}, + {0.312777333333333,0.320555333333333,0.312777333333333,0.314444666666667}, + {0.312777333333333,0.327222,0.312777333333333,0.320555333333333}, + {0.312222,0.333888666666667,0.312777333333333,0.327222}, + {0.311110666666667,0.34,0.312222,0.333888666666667}, + {0.31,0.346666666666666,0.311110666666667,0.34}, + {0.308333333333332,0.352778,0.31,0.346666666666666}, + {0.306666666666666,0.358333333333333,0.308333333333332,0.352778}, + {0.304444,0.363333333333333,0.306666666666666,0.358333333333333}, + {0.302221999999999,0.368333333333334,0.304444,0.363333333333333}, + {0.299444,0.372222,0.302221999999999,0.368333333333334}, + {0.295555333333333,0.375555333333333,0.299444,0.372222}, + {0.291110666666666,0.378333333333333,0.295555333333333,0.375555333333333}, + {0.285,0.380555333333334,0.291110666666666,0.378333333333333}, + {0.276666666666666,0.382222,0.285,0.380555333333334}, + {0.267221999999999,0.383333333333334,0.276666666666666,0.382222}, + {0.243888666666666,0.382778,0.256110666666666,0.383333333333334}, + {0.230555333333333,0.381666666666667,0.243888666666666,0.382778}, + {0.216110666666667,0.38,0.230555333333333,0.381666666666667}, + {0.201666666666667,0.378333333333333,0.216110666666667,0.38}, + {0.186666666666666,0.376666666666667,0.201666666666667,0.378333333333333}, + {0.172221999999999,0.375,0.186666666666666,0.376666666666667}, + {0.158888666666666,0.373888666666667,0.172221999999999,0.375}, + {0.146666666666666,0.373333333333333,0.158888666666666,0.373888666666667}, + {0.126110666666667,0.374444666666667,0.135555333333333,0.373333333333333}, + {0.117777333333333,0.376111333333334,0.126110666666667,0.374444666666667}, + {0.111666666666666,0.378333333333333,0.117777333333333,0.376111333333334}, + {0.106666666666667,0.381666666666667,0.111666666666666,0.378333333333333}, + {0.102777333333333,0.385555333333333,0.106666666666667,0.381666666666667}, + {0.099999999999999,0.39,0.102777333333333,0.385555333333333}, + {0.0977773333333332,0.395555333333334,0.099999999999999,0.39}, + {0.0966666666666664,0.402222,0.0977773333333332,0.395555333333334}, + {0.0955553333333334,0.408888666666667,0.0966666666666664,0.402222}, + {0.095,0.416111333333333,0.0955553333333334,0.408888666666667}, + {0.095,0.423333333333333,0.095,0.416111333333333}, + {0.095,0.430555333333333,0.095,0.423333333333333}, + {0.0955553333333334,0.437778,0.095,0.430555333333333}, + {0.0966666666666664,0.444444666666667,0.0955553333333334,0.437778}, + {0.0977773333333332,0.451111333333333,0.0966666666666664,0.444444666666667}, + {0.099999999999999,0.456666666666666,0.0977773333333332,0.451111333333333}, + {0.102777333333333,0.461111333333333,0.099999999999999,0.456666666666666}, + {0.106666666666667,0.465,0.102777333333333,0.461111333333333}, + {0.111666666666666,0.468333333333333,0.106666666666667,0.465}, + {0.117777333333333,0.470555333333333,0.111666666666666,0.468333333333333}, + {0.126110666666667,0.472222,0.117777333333333,0.470555333333333}, + {0.146666666666666,0.471666666666666,0.135555333333333,0.472222}, + {0.158888666666666,0.469444666666667,0.146666666666666,0.471666666666666}, + {0.172221999999999,0.466666666666667,0.158888666666666,0.469444666666667}, + {0.186666666666666,0.463333333333334,0.172221999999999,0.466666666666667}, + {0.201666666666667,0.46,0.186666666666666,0.463333333333334}, + {0.216110666666667,0.456666666666666,0.201666666666667,0.46}, + {0.230555333333333,0.453888666666667,0.216110666666667,0.456666666666666}, + {0.243888666666666,0.452222,0.230555333333333,0.453888666666667}, + {0.256110666666666,0.451666666666667,0.243888666666666,0.452222}, + {0.267221999999999,0.452778,0.256110666666666,0.451666666666667}, + {0.276666666666666,0.455555333333334,0.267221999999999,0.452778}, + {0.285,0.461111333333333,0.276666666666666,0.455555333333334}, + {0.291110666666666,0.468333333333333,0.285,0.461111333333333}, + {0.294999999999999,0.475,0.291110666666666,0.468333333333333}, + {0.297777333333332,0.482778,0.294999999999999,0.475}, + {0.300555333333333,0.492222,0.297777333333332,0.482778}, + {0.302777333333333,0.502778,0.300555333333333,0.492222}, + {0.305,0.514444666666667,0.302777333333333,0.502778}, + {0.306666666666666,0.527222,0.305,0.514444666666667}, + {0.307777333333333,0.541111333333333,0.306666666666666,0.527222}, + {0.309443999999999,0.555555333333333,0.307777333333333,0.541111333333333}, + {0.310555333333333,0.571111333333333,0.309443999999999,0.555555333333333}, + {0.311666666666666,0.586666666666667,0.310555333333333,0.571111333333333}, + {0.312222,0.602778,0.311666666666666,0.586666666666667}, + {0.312777333333333,0.618888666666667,0.312222,0.602778}, + {0.312777333333333,0.634444666666666,0.312777333333333,0.618888666666667}, + {0.312777333333333,0.65,0.312777333333333,0.634444666666666}, + {0.312222,0.664444666666667,0.312777333333333,0.65}, + {0.311110666666667,0.678333333333333,0.312222,0.664444666666667}, + {0.31,0.691111333333333,0.311110666666667,0.678333333333333}, + {0.307777333333333,0.702778,0.31,0.691111333333333}, + {0.305,0.713333333333334,0.307777333333333,0.702778}, + {0.301110666666666,0.722778,0.305,0.713333333333334}, + {0.296666666666666,0.730555333333333,0.301110666666666,0.722778}, + {0.291110666666666,0.737222,0.296666666666666,0.730555333333333}, + {0.284443999999999,0.742778,0.291110666666666,0.737222}, + {0.276666666666666,0.747222,0.284443999999999,0.742778}, + {0.267221999999999,0.750555333333333,0.276666666666666,0.747222}, + {0.256666666666666,0.753333333333333,0.267221999999999,0.750555333333333}, + {0.245,0.755,0.256666666666666,0.753333333333333}, + {0.232222,0.756111333333333,0.245,0.755}, + {0.218333333333333,0.756666666666667,0.232222,0.756111333333333}, + {0.188333333333333,0.756111333333333,0.203333333333333,0.756666666666667}, + {0.172221999999999,0.755,0.188333333333333,0.756111333333333}, + {0.156110666666667,0.753888666666667,0.172221999999999,0.755}, + {0.140555333333333,0.752778,0.156110666666667,0.753888666666667}, + {0.124443999999999,0.751111333333334,0.140555333333333,0.752778}, + {0.109444,0.749444666666667,0.124443999999999,0.751111333333334}, + {0.0944439999999993,0.748333333333333,0.109444,0.749444666666667}, + {0.0805553333333329,0.746666666666667,0.0944439999999993,0.748333333333333}, + {0.0677773333333332,0.745,0.0805553333333329,0.746666666666667}, + {0.0561106666666665,0.743888666666667,0.0677773333333332,0.745}, + {0.0455553333333327,0.742222,0.0561106666666665,0.743888666666667}, + {0.0361106666666657,0.740555333333334,0.0455553333333327,0.742222}, + {0.0283333333333324,0.738888666666667,0.0361106666666657,0.740555333333334}, + {0.0216666666666659,0.737222,0.0283333333333324,0.738888666666667}, + {0.0149999999999994,0.734444666666667,0.0216666666666659,0.737222}, + {0.00999999999999919,0.731111333333333,0.0149999999999994,0.734444666666667}, + {0.00611066666666578,0.727222,0.00999999999999919,0.731111333333333}, + {0.00333333333333267,0.722222,0.00611066666666578,0.727222}, + {0.00111066666666678,0.717222,0.00333333333333267,0.722222}, + {0,0.711666666666667,0.00111066666666678,0.717222}, + {0,0.705555333333334,0,0.711666666666667}, + {0,0.698888666666667,0,0.705555333333334}, + {0.000555333333333389,0.692222,0,0.698888666666667}, + {0.00166666666666634,0.686111333333334,0.000555333333333389,0.692222}, + {0.00277733333333311,0.679444666666667,0.00166666666666634,0.686111333333334}, + {0.00444399999999945,0.673333333333333,0.00277733333333311,0.679444666666667}, + {0.00611066666666578,0.667778,0.00444399999999945,0.673333333333333}, + {0.00833333333333286,0.662778,0.00611066666666578,0.667778}, + {0.0105553333333326,0.657778,0.00833333333333286,0.662778}, + {0.013333333333333,0.653888666666666,0.0105553333333326,0.657778}, + {0.0172219999999991,0.650555333333333,0.013333333333333,0.653888666666666}, + {0.0216666666666659,0.647778,0.0172219999999991,0.650555333333333}, + {0.0277773333333329,0.645555333333334,0.0216666666666659,0.647778}, + {0.0361106666666657,0.643888666666667,0.0277773333333329,0.645555333333334}, + {0.0455553333333327,0.642778,0.0361106666666657,0.643888666666667}, + {0.0688886666666662,0.643333333333333,0.056666666666666,0.642778}, + {0.0822219999999992,0.644444666666667,0.0688886666666662,0.643333333333333}, + {0.0966666666666664,0.646111333333333,0.0822219999999992,0.644444666666667}, + {0.111666666666666,0.647778,0.0966666666666664,0.646111333333333}, + {0.126110666666667,0.649444666666666,0.111666666666666,0.647778}, + {0.140555333333333,0.651111333333333,0.126110666666667,0.649444666666666}, + {0.153888666666666,0.652222,0.140555333333333,0.651111333333333}, + {0.166110666666666,0.652778,0.153888666666666,0.652222}, + {0.186666666666666,0.651666666666667,0.177221999999999,0.652778}, + {0.194999999999999,0.65,0.186666666666666,0.651666666666667}, + {0.201110666666666,0.647778,0.194999999999999,0.65}, + {0.206110666666666,0.644444666666667,0.201110666666666,0.647778}, + {0.21,0.640555333333333,0.206110666666666,0.644444666666667}, + {0.212777333333333,0.636111333333333,0.21,0.640555333333333}, + {0.215,0.630555333333334,0.212777333333333,0.636111333333333}, + {0.216110666666667,0.623888666666667,0.215,0.630555333333334}, + {0.217222,0.617222,0.216110666666667,0.623888666666667}, + {0.217777333333333,0.61,0.217222,0.617222}, + {0.217777333333333,0.602778,0.217777333333333,0.61}, + {0.217777333333333,0.595555333333333,0.217777333333333,0.602778}, + {0.217222,0.588333333333334,0.217777333333333,0.595555333333333}, + {0.216110666666667,0.581666666666666,0.217222,0.588333333333334}, + {0.215,0.575,0.216110666666667,0.581666666666666}, + {0.212777333333333,0.569444666666667,0.215,0.575}, + {0.21,0.565,0.212777333333333,0.569444666666667}, + {0.206110666666666,0.561111333333334,0.21,0.565}, + {0.201110666666666,0.557778,0.206110666666666,0.561111333333334}, + {0.194999999999999,0.555555333333333,0.201110666666666,0.557778}, + {0.186666666666666,0.553888666666667,0.194999999999999,0.555555333333333}, + {0.166110666666666,0.554444666666667,0.177221999999999,0.553888666666667}, + {0.153888666666666,0.556666666666667,0.166110666666666,0.554444666666667}, + {0.140555333333333,0.559444666666667,0.153888666666666,0.556666666666667}, + {0.126110666666667,0.562778,0.140555333333333,0.559444666666667}, + {0.111666666666666,0.566111333333333,0.126110666666667,0.562778}, + {0.0966666666666664,0.569444666666667,0.111666666666666,0.566111333333333}, + {0.0822219999999992,0.572222,0.0966666666666664,0.569444666666667}, + {0.0688886666666662,0.573888666666667,0.0822219999999992,0.572222}, + {0.056666666666666,0.574444666666666,0.0688886666666662,0.573888666666667}, + {0.0455553333333327,0.573333333333334,0.056666666666666,0.574444666666666}, + {0.0361106666666657,0.570555333333333,0.0455553333333327,0.573333333333334}, + {0.0277773333333329,0.565,0.0361106666666657,0.570555333333333}, + {0.0216666666666659,0.557778,0.0277773333333329,0.565}, + {0.0177773333333325,0.551111333333333,0.0216666666666659,0.557778}, + {0.0149999999999994,0.543333333333334,0.0177773333333325,0.551111333333333}, + {0.0122220000000001,0.533888666666667,0.0149999999999994,0.543333333333334}, + {0.00999999999999919,0.523333333333333,0.0122220000000001,0.533888666666667}, + {0.0077773333333333,0.511666666666667,0.00999999999999919,0.523333333333333}, + {0.00611066666666578,0.498888666666667,0.0077773333333333,0.511666666666667}, + {0.00499999999999901,0.485,0.00611066666666578,0.498888666666667}, + {0.00333333333333267,0.470555333333333,0.00499999999999901,0.485}, + {0.00222199999999972,0.455,0.00333333333333267,0.470555333333333}, + {0.00111066666666678,0.439444666666667,0.00222199999999972,0.455}, + {0.000555333333333389,0.423333333333333,0.00111066666666678,0.439444666666667}, + {0,0.407222,0.000555333333333389,0.423333333333333}, + {0,0.391666666666667,0,0.407222}, + {0,0.376111333333334,0,0.391666666666667}, + {0.000555333333333389,0.361666666666667,0,0.376111333333334}, + {0.00166666666666634,0.347778,0.000555333333333389,0.361666666666667}, + {0.00277733333333311,0.335,0.00166666666666634,0.347778}, + {0.00499999999999901,0.323333333333334,0.00277733333333311,0.335}, + {0.0077773333333333,0.312778,0.00499999999999901,0.323333333333334}, + {0.0116666666666667,0.303333333333333,0.0077773333333333,0.312778}, + {0.0161106666666662,0.295555333333333,0.0116666666666667,0.303333333333333}, + {0.0216666666666659,0.288888666666667,0.0161106666666662,0.295555333333333}, + {0.0283333333333324,0.283333333333333,0.0216666666666659,0.288888666666667}, + {0.0361106666666657,0.278888666666666,0.0283333333333324,0.283333333333333}, + {0.0455553333333327,0.275555333333333,0.0361106666666657,0.278888666666666}, + {0.0561106666666665,0.272778,0.0455553333333327,0.275555333333333}, + {0.0677773333333332,0.271111333333333,0.0561106666666665,0.272778}, + {0.0805553333333329,0.27,0.0677773333333332,0.271111333333333}, + {0.0944439999999993,0.269444666666667,0.0805553333333329,0.27}, + {0.124443999999999,0.27,0.109444,0.269444666666667}, + {0.140555333333333,0.271111333333333,0.124443999999999,0.27}, + {0.156666666666666,0.272222,0.140555333333333,0.271111333333333}, + {0.172221999999999,0.273333333333333,0.156666666666666,0.272222}, + {0.188333333333333,0.275,0.172221999999999,0.273333333333333}, + {0.203333333333333,0.276666666666667,0.188333333333333,0.275}, + {0.218333333333333,0.277778,0.203333333333333,0.276666666666667}, + {0.232222,0.279444666666667,0.218333333333333,0.277778}, + {0.245,0.281111333333333,0.232222,0.279444666666667}, + {0.256666666666666,0.282222,0.245,0.281111333333333}, + {0.267221999999999,0.283888666666667,0.256666666666666,0.282222}, + {0.276666666666666,0.285555333333334,0.267221999999999,0.283888666666667}, + {0.284443999999999,0.287222,0.276666666666666,0.285555333333334}, + {0.291110666666666,0.288888666666667,0.284443999999999,0.287222}, + {0,0,0,0} +}; + +double Icon18[][4] = { + {0.0249999999999998,0.288888666666667,0.0205553333333341,0.297222}, + {0.0205553333333341,0.297222,0.0166666666666669,0.307222}, + {0.0166666666666669,0.307222,0.013333333333333,0.318333333333333}, + {0.013333333333333,0.318333333333333,0.0105553333333338,0.331111333333334}, + {0.0105553333333338,0.331111333333334,0.00833333333333404,0.344444666666667}, + {0.00833333333333404,0.344444666666667,0.00611133333333314,0.36}, + {0.00611133333333314,0.36,0.0044446666666668,0.376111333333334}, + {0.0044446666666668,0.376111333333334,0.00333333333333385,0.393333333333333}, + {0.00333333333333385,0.393333333333333,0.00222199999999972,0.411666666666667}, + {0.00222199999999972,0.411666666666667,0.00111133333333413,0.431111333333333}, + {0.00111133333333413,0.431111333333333,0.000555333333333389,0.450555333333333}, + {0.000555333333333389,0.450555333333333,0,0.471111333333334}, + {0,0.471111333333334,0,0.492222}, + {0,0.492222,0,0.513333333333333}, + {0,0.513333333333333,0,0.533888666666667}, + {0,0.533888666666667,0,0.555}, + {0,0.555,0.000555333333333389,0.575555333333333}, + {0.000555333333333389,0.575555333333333,0.00111133333333413,0.595}, + {0.00111133333333413,0.595,0.00222199999999972,0.614444666666667}, + {0.00222199999999972,0.614444666666667,0.00333333333333385,0.632778}, + {0.00333333333333385,0.632778,0.0044446666666668,0.65}, + {0.0044446666666668,0.65,0.00611133333333314,0.666111333333333}, + {0.00611133333333314,0.666111333333333,0.00833333333333404,0.681666666666667}, + {0.00833333333333404,0.681666666666667,0.0105553333333338,0.695}, + {0.0105553333333338,0.695,0.013333333333333,0.707778}, + {0.013333333333333,0.707778,0.0166666666666669,0.718888666666667}, + {0.0166666666666669,0.718888666666667,0.0205553333333341,0.728888666666667}, + {0.0205553333333341,0.728888666666667,0.0249999999999998,0.737222}, + {0.0249999999999998,0.737222,0.0311113333333341,0.745555333333333}, + {0.0311113333333341,0.745555333333333,0.038333333333334,0.752778}, + {0.038333333333334,0.752778,0.0466666666666669,0.758888666666667}, + {0.0466666666666669,0.758888666666667,0.0555553333333331,0.763333333333333}, + {0.0555553333333331,0.763333333333333,0.066111333333333,0.767222}, + {0.066111333333333,0.767222,0.0772220000000002,0.769444666666667}, + {0.0772220000000002,0.769444666666667,0.0894446666666665,0.771111333333333}, + {0.0894446666666665,0.771111333333333,0.102778000000001,0.772222}, + {0.102778000000001,0.772222,0.116111333333334,0.772778}, + {0.116111333333334,0.772778,0.130555333333334,0.772222}, + {0.130555333333334,0.772222,0.145000000000001,0.771666666666667}, + {0.145000000000001,0.771666666666667,0.16,0.771111333333333}, + {0.16,0.771111333333333,0.174444666666667,0.769444666666667}, + {0.174444666666667,0.769444666666667,0.188888666666667,0.767778}, + {0.188888666666667,0.767778,0.203333333333333,0.766111333333334}, + {0.203333333333333,0.766111333333334,0.216666666666667,0.763888666666666}, + {0.216666666666667,0.763888666666666,0.23,0.762222}, + {0.23,0.762222,0.242222000000001,0.759444666666666}, + {0.242222000000001,0.759444666666666,0.253333333333334,0.756666666666667}, + {0.253333333333334,0.756666666666667,0.263888666666666,0.753888666666667}, + {0.263888666666666,0.753888666666667,0.272778,0.750555333333333}, + {0.272778,0.750555333333333,0.281111333333334,0.746666666666667}, + {0.281111333333334,0.746666666666667,0.288333333333334,0.742222}, + {0.288333333333334,0.742222,0.294444666666667,0.737222}, + {0.294444666666667,0.737222,0.300000000000001,0.730555333333333}, + {0.300000000000001,0.730555333333333,0.304444666666667,0.722778}, + {0.304444666666667,0.722778,0.308333333333334,0.713333333333334}, + {0.308333333333334,0.713333333333334,0.311111333333334,0.702778}, + {0.311111333333334,0.702778,0.313333333333334,0.691111333333333}, + {0.313333333333334,0.691111333333333,0.314444666666667,0.678333333333333}, + {0.314444666666667,0.678333333333333,0.315555333333333,0.664444666666667}, + {0.315555333333333,0.664444666666667,0.316111333333333,0.65}, + {0.316111333333333,0.65,0.316111333333333,0.634444666666666}, + {0.316111333333333,0.634444666666666,0.316111333333333,0.618888666666667}, + {0.316111333333333,0.618888666666667,0.315555333333333,0.602778}, + {0.315555333333333,0.602778,0.315,0.586666666666667}, + {0.315,0.586666666666667,0.313888666666667,0.571111333333333}, + {0.313888666666667,0.571111333333333,0.312778,0.555555333333333}, + {0.312778,0.555555333333333,0.311111333333334,0.541111333333333}, + {0.311111333333334,0.541111333333333,0.31,0.527222}, + {0.31,0.527222,0.308333333333334,0.514444666666667}, + {0.308333333333334,0.514444666666667,0.306111333333334,0.502778}, + {0.306111333333334,0.502778,0.303888666666667,0.492222}, + {0.303888666666667,0.492222,0.301111333333334,0.482778}, + {0.301111333333334,0.482778,0.298333333333333,0.475}, + {0.298333333333333,0.475,0.294444666666667,0.468333333333333}, + {0.294444666666667,0.468333333333333,0.288333333333334,0.461111333333333}, + {0.288333333333334,0.461111333333333,0.28,0.455555333333334}, + {0.28,0.455555333333334,0.270555333333334,0.452778}, + {0.270555333333334,0.452778,0.259444666666667,0.451666666666667}, + {0.259444666666667,0.451666666666667,0.247222000000001,0.452222}, + {0.247222000000001,0.452222,0.233888666666666,0.453888666666667}, + {0.233888666666666,0.453888666666667,0.219444666666667,0.456666666666666}, + {0.219444666666667,0.456666666666666,0.205000000000001,0.46}, + {0.205000000000001,0.46,0.19,0.463333333333334}, + {0.19,0.463333333333334,0.175555333333334,0.466666666666667}, + {0.175555333333334,0.466666666666667,0.162222,0.469444666666667}, + {0.162222,0.469444666666667,0.15,0.471666666666666}, + {0.15,0.471666666666666,0.138888666666666,0.472222}, + {0.129444666666667,0.472222,0.121111333333334,0.470555333333333}, + {0.121111333333334,0.470555333333333,0.115000000000001,0.468333333333333}, + {0.115000000000001,0.468333333333333,0.110000000000001,0.465}, + {0.110000000000001,0.465,0.106111333333333,0.461111333333333}, + {0.106111333333333,0.461111333333333,0.103333333333334,0.456666666666666}, + {0.103333333333334,0.456666666666666,0.101111333333333,0.451111333333333}, + {0.101111333333333,0.451111333333333,0.1,0.444444666666667}, + {0.1,0.444444666666667,0.0988886666666673,0.437778}, + {0.0988886666666673,0.437778,0.0983333333333339,0.430555333333333}, + {0.0983333333333339,0.430555333333333,0.0983333333333339,0.423333333333333}, + {0.0983333333333339,0.423333333333333,0.0983333333333339,0.416111333333333}, + {0.0983333333333339,0.416111333333333,0.0988886666666673,0.408888666666667}, + {0.0988886666666673,0.408888666666667,0.1,0.402222}, + {0.1,0.402222,0.101111333333333,0.395555333333334}, + {0.101111333333333,0.395555333333334,0.103333333333334,0.39}, + {0.103333333333334,0.39,0.106111333333333,0.385555333333333}, + {0.106111333333333,0.385555333333333,0.110000000000001,0.381666666666667}, + {0.110000000000001,0.381666666666667,0.115000000000001,0.378333333333333}, + {0.115000000000001,0.378333333333333,0.121111333333334,0.376111333333334}, + {0.121111333333334,0.376111333333334,0.129444666666667,0.374444666666667}, + {0.129444666666667,0.374444666666667,0.138888666666666,0.373333333333333}, + {0.15,0.373333333333333,0.162222,0.373888666666667}, + {0.162222,0.373888666666667,0.175555333333334,0.375}, + {0.175555333333334,0.375,0.19,0.376666666666667}, + {0.19,0.376666666666667,0.205000000000001,0.378333333333333}, + {0.205000000000001,0.378333333333333,0.219444666666667,0.38}, + {0.219444666666667,0.38,0.233888666666666,0.381666666666667}, + {0.233888666666666,0.381666666666667,0.247222000000001,0.382778}, + {0.247222000000001,0.382778,0.259444666666667,0.383333333333334}, + {0.270555333333334,0.383333333333334,0.28,0.382222}, + {0.28,0.382222,0.288333333333334,0.380555333333334}, + {0.288333333333334,0.380555333333334,0.294444666666667,0.378333333333333}, + {0.294444666666667,0.378333333333333,0.298888666666667,0.375555333333333}, + {0.298888666666667,0.375555333333333,0.302778,0.372222}, + {0.302778,0.372222,0.305555333333333,0.368333333333334}, + {0.305555333333333,0.368333333333334,0.307778,0.363333333333333}, + {0.307778,0.363333333333333,0.31,0.358333333333333}, + {0.31,0.358333333333333,0.311666666666667,0.352778}, + {0.311666666666667,0.352778,0.313333333333334,0.346666666666666}, + {0.313333333333334,0.346666666666666,0.314444666666667,0.34}, + {0.314444666666667,0.34,0.315555333333333,0.333333333333333}, + {0.315555333333333,0.333333333333333,0.316111333333333,0.327222}, + {0.316111333333333,0.327222,0.316111333333333,0.320555333333333}, + {0.316111333333333,0.320555333333333,0.316111333333333,0.314444666666667}, + {0.316111333333333,0.314444666666667,0.315,0.308888666666667}, + {0.315,0.308888666666667,0.312778,0.303888666666667}, + {0.312778,0.303888666666667,0.31,0.298888666666667}, + {0.31,0.298888666666667,0.306111333333334,0.295}, + {0.306111333333334,0.295,0.301111333333334,0.291666666666667}, + {0.301111333333334,0.291666666666667,0.294444666666667,0.288888666666667}, + {0.294444666666667,0.288888666666667,0.287778000000001,0.287222}, + {0.287778000000001,0.287222,0.28,0.285}, + {0.28,0.285,0.270555333333334,0.283333333333333}, + {0.270555333333334,0.283333333333333,0.26,0.281666666666667}, + {0.26,0.281666666666667,0.248333333333334,0.279444666666667}, + {0.248333333333334,0.279444666666667,0.235555333333334,0.277222}, + {0.235555333333334,0.277222,0.221666666666666,0.274444666666666}, + {0.221666666666666,0.274444666666666,0.206666666666667,0.272222}, + {0.206666666666667,0.272222,0.191666666666666,0.268888666666667}, + {0.191666666666666,0.268888666666667,0.175555333333334,0.266111333333334}, + {0.175555333333334,0.266111333333334,0.159444666666667,0.263888666666666}, + {0.159444666666667,0.263888666666666,0.143888666666667,0.261111333333333}, + {0.143888666666667,0.261111333333333,0.127778,0.259444666666666}, + {0.127778,0.259444666666666,0.112778,0.257778}, + {0.112778,0.257778,0.0977780000000005,0.257222}, + {0.0977780000000005,0.257222,0.0838886666666667,0.257778}, + {0.0838886666666667,0.257778,0.0711113333333332,0.259444666666666}, + {0.0711113333333332,0.259444666666666,0.0594446666666665,0.262222}, + {0.0594446666666665,0.262222,0.0488886666666666,0.266111333333334}, + {0.0488886666666666,0.266111333333334,0.0394446666666669,0.272222}, + {0.0394446666666669,0.272222,0.0316666666666675,0.279444666666667}, + {0.0316666666666675,0.279444666666667,0.0249999999999998,0.288888666666667}, + {0.204444666666667,0.557778,0.207778,0.562222}, + {0.207778,0.562222,0.210000000000001,0.567778}, + {0.210000000000001,0.567778,0.211111333333334,0.575}, + {0.211111333333334,0.575,0.212222000000001,0.583888666666667}, + {0.212222000000001,0.583888666666667,0.212778,0.592778}, + {0.212778,0.592778,0.212778,0.602778}, + {0.212778,0.602778,0.212778,0.612778}, + {0.212778,0.612778,0.212222000000001,0.621666666666667}, + {0.212222000000001,0.621666666666667,0.211111333333334,0.630555333333334}, + {0.211111333333334,0.630555333333334,0.210000000000001,0.637778}, + {0.210000000000001,0.637778,0.207778,0.643333333333333}, + {0.207778,0.643333333333333,0.204444666666667,0.647778}, + {0.204444666666667,0.647778,0.2,0.651111333333333}, + {0.2,0.651111333333333,0.194444666666667,0.653333333333334}, + {0.194444666666667,0.653333333333334,0.187222000000001,0.654444666666667}, + {0.187222000000001,0.654444666666667,0.178888666666667,0.655555333333333}, + {0.178888666666667,0.655555333333333,0.169444666666667,0.656111333333333}, + {0.15,0.656111333333333,0.140555333333334,0.655555333333333}, + {0.140555333333334,0.655555333333333,0.132222,0.654444666666667}, + {0.132222,0.654444666666667,0.125,0.653333333333334}, + {0.125,0.653333333333334,0.119444666666666,0.651111333333333}, + {0.119444666666666,0.651111333333333,0.115000000000001,0.647778}, + {0.115000000000001,0.647778,0.111666666666667,0.643333333333333}, + {0.111666666666667,0.643333333333333,0.109444666666667,0.637778}, + {0.109444666666667,0.637778,0.108333333333333,0.630555333333334}, + {0.108333333333333,0.630555333333334,0.107222,0.621666666666667}, + {0.107222,0.621666666666667,0.106666666666667,0.612778}, + {0.106666666666667,0.612778,0.106666666666667,0.602778}, + {0.106666666666667,0.602778,0.106666666666667,0.592778}, + {0.106666666666667,0.592778,0.107222,0.583888666666667}, + {0.107222,0.583888666666667,0.108333333333333,0.575}, + {0.108333333333333,0.575,0.109444666666667,0.567778}, + {0.109444666666667,0.567778,0.111666666666667,0.562222}, + {0.111666666666667,0.562222,0.115000000000001,0.557778}, + {0.115000000000001,0.557778,0.119444666666666,0.554444666666667}, + {0.119444666666666,0.554444666666667,0.125,0.552222}, + {0.125,0.552222,0.132222,0.551111333333333}, + {0.132222,0.551111333333333,0.140555333333334,0.55}, + {0.140555333333334,0.55,0.15,0.549444666666667}, + {0.169444666666667,0.549444666666667,0.178888666666667,0.55}, + {0.178888666666667,0.55,0.187222000000001,0.551111333333333}, + {0.187222000000001,0.551111333333333,0.194444666666667,0.552222}, + {0.194444666666667,0.552222,0.2,0.554444666666667}, + {0.2,0.554444666666667,0.204444666666667,0.557778}, + {0,0,0,0} +}; + +double Icon19[][4] = { + {0.293889333333333,0.297222,0.291111333333333,0.288888666666667}, + {0.295556,0.307222,0.293889333333333,0.297222}, + {0.296666666666667,0.318333333333333,0.295556,0.307222}, + {0.296666666666667,0.331111333333334,0.296666666666667,0.318333333333333}, + {0.296111333333333,0.344444666666667,0.296666666666667,0.331111333333334}, + {0.294444666666666,0.36,0.296111333333333,0.344444666666667}, + {0.292222666666667,0.376111333333334,0.294444666666666,0.36}, + {0.289444666666666,0.393333333333333,0.292222666666667,0.376111333333334}, + {0.286111333333333,0.411666666666667,0.289444666666666,0.393333333333333}, + {0.282222666666667,0.431111333333333,0.286111333333333,0.411666666666667}, + {0.277778,0.450555333333333,0.282222666666667,0.431111333333333}, + {0.272778,0.471111333333334,0.277778,0.450555333333333}, + {0.268333333333333,0.492222,0.272778,0.471111333333334}, + {0.262778,0.513333333333333,0.268333333333333,0.492222}, + {0.257777999999999,0.533888666666667,0.262778,0.513333333333333}, + {0.252222666666666,0.555,0.257777999999999,0.533888666666667}, + {0.247222666666666,0.575555333333333,0.252222666666666,0.555}, + {0.241666666666667,0.595,0.247222666666666,0.575555333333333}, + {0.236666666666667,0.614444666666667,0.241666666666667,0.595}, + {0.231666666666667,0.632778,0.236666666666667,0.614444666666667}, + {0.227222666666667,0.65,0.231666666666667,0.632778}, + {0.222778000000001,0.666111333333333,0.227222666666667,0.65}, + {0.218889333333334,0.681666666666667,0.222778000000001,0.666111333333333}, + {0.215000000000001,0.695,0.218889333333334,0.681666666666667}, + {0.211111333333333,0.707778,0.215000000000001,0.695}, + {0.207778,0.718888666666667,0.211111333333333,0.707778}, + {0.204444666666667,0.728888666666667,0.207778,0.718888666666667}, + {0.201111333333332,0.737222,0.204444666666667,0.728888666666667}, + {0.197778,0.744444666666666,0.201111333333332,0.737222}, + {0.194444666666667,0.751111333333334,0.197778,0.744444666666666}, + {0.191111333333334,0.756666666666667,0.194444666666667,0.751111333333334}, + {0.187777999999999,0.761111333333333,0.191111333333334,0.756666666666667}, + {0.184444666666667,0.765,0.187777999999999,0.761111333333333}, + {0.180556,0.767778,0.184444666666667,0.765}, + {0.176666666666667,0.770555333333334,0.180556,0.767778}, + {0.172778000000001,0.772222,0.176666666666667,0.770555333333334}, + {0.168889333333333,0.773888666666667,0.172778000000001,0.772222}, + {0.164999999999999,0.774444666666666,0.168889333333333,0.773888666666667}, + {0.160556,0.775555333333333,0.164999999999999,0.774444666666666}, + {0.147778,0.775,0.152222666666667,0.775555333333333}, + {0.143889333333334,0.774444666666666,0.147778,0.775}, + {0.140000000000001,0.773333333333333,0.143889333333334,0.774444666666666}, + {0.136111333333332,0.772222,0.140000000000001,0.773333333333333}, + {0.132222666666666,0.771111333333333,0.136111333333332,0.772222}, + {0.128333333333333,0.769444666666667,0.132222666666666,0.771111333333333}, + {0.125,0.767778,0.128333333333333,0.769444666666667}, + {0.122222666666666,0.765555333333333,0.125,0.767778}, + {0.119444666666666,0.762778,0.122222666666666,0.765555333333333}, + {0.117222666666666,0.76,0.119444666666666,0.762778}, + {0.115,0.756666666666667,0.117222666666666,0.76}, + {0.113889333333333,0.752778,0.115,0.756666666666667}, + {0.112778000000001,0.748333333333333,0.113889333333333,0.752778}, + {0.111666666666667,0.743333333333334,0.112778000000001,0.748333333333333}, + {0.111666666666667,0.737222,0.111666666666667,0.743333333333334}, + {0.112222666666668,0.728888666666667,0.111666666666667,0.737222}, + {0.112778000000001,0.719444666666667,0.112222666666668,0.728888666666667}, + {0.115,0.708888666666667,0.112778000000001,0.719444666666667}, + {0.117222666666666,0.696111333333333,0.115,0.708888666666667}, + {0.121111333333334,0.682778,0.117222666666666,0.696111333333333}, + {0.125,0.667222,0.121111333333334,0.682778}, + {0.13,0.651111333333333,0.125,0.667222}, + {0.135,0.633888666666667,0.13,0.651111333333333}, + {0.141111333333332,0.615555333333334,0.135,0.633888666666667}, + {0.147222666666667,0.596666666666666,0.141111333333332,0.615555333333334}, + {0.153889333333334,0.577222,0.147222666666667,0.596666666666666}, + {0.160556,0.557778,0.153889333333334,0.577222}, + {0.167222666666667,0.538333333333333,0.160556,0.557778}, + {0.173889333333333,0.518888666666667,0.167222666666667,0.538333333333333}, + {0.179444666666666,0.5,0.173889333333333,0.518888666666667}, + {0.185556000000001,0.481666666666667,0.179444666666666,0.5}, + {0.190556000000001,0.464444666666667,0.185556000000001,0.481666666666667}, + {0.194444666666667,0.448333333333334,0.190556000000001,0.464444666666667}, + {0.198333333333333,0.432778,0.194444666666667,0.448333333333334}, + {0.200555999999999,0.419444666666667,0.198333333333333,0.432778}, + {0.202222666666666,0.406666666666667,0.200555999999999,0.419444666666667}, + {0.202778,0.396111333333333,0.202222666666666,0.406666666666667}, + {0.202778,0.386666666666667,0.202778,0.396111333333333}, + {0.201111333333332,0.378333333333333,0.202778,0.386666666666667}, + {0.197222666666666,0.368333333333334,0.201111333333332,0.378333333333333}, + {0.191111333333334,0.361666666666667,0.197222666666666,0.368333333333334}, + {0.182777999999999,0.357222,0.191111333333334,0.361666666666667}, + {0.172222666666668,0.355555333333333,0.182777999999999,0.357222}, + {0.159999999999999,0.356111333333333,0.172222666666668,0.355555333333333}, + {0.146111333333333,0.358333333333333,0.159999999999999,0.356111333333333}, + {0.131111333333334,0.361666666666667,0.146111333333333,0.358333333333333}, + {0.115556,0.365555333333334,0.131111333333334,0.361666666666667}, + {0.099999999999999,0.37,0.115556,0.365555333333334}, + {0.0850000000000009,0.374444666666667,0.099999999999999,0.37}, + {0.070556000000001,0.377778,0.0850000000000009,0.374444666666667}, + {0.0572226666666656,0.380555333333334,0.070556000000001,0.377778}, + {0.0461113333333335,0.381666666666667,0.0572226666666656,0.380555333333334}, + {0.0361113333333331,0.382222,0.0461113333333335,0.381666666666667}, + {0.0277780000000002,0.380555333333334,0.0361113333333331,0.382222}, + {0.0216666666666671,0.378333333333333,0.0277780000000002,0.380555333333334}, + {0.0172226666666665,0.375555333333333,0.0216666666666671,0.378333333333333}, + {0.013333333333333,0.372222,0.0172226666666665,0.375555333333333}, + {0.0105559999999999,0.368333333333334,0.013333333333333,0.372222}, + {0.00833333333333286,0.363333333333333,0.0105559999999999,0.368333333333334}, + {0.00611133333333314,0.358333333333333,0.00833333333333286,0.363333333333333}, + {0.0044446666666668,0.352778,0.00611133333333314,0.358333333333333}, + {0.00277800000000046,0.346666666666666,0.0044446666666668,0.352778}, + {0.00166666666666634,0.34,0.00277800000000046,0.346666666666666}, + {0.000555999999999557,0.333333333333333,0.00166666666666634,0.34}, + {0,0.327222,0.000555999999999557,0.333333333333333}, + {0,0.320555333333333,0,0.327222}, + {0,0.314444666666667,0,0.320555333333333}, + {0.00111133333333295,0.308888666666667,0,0.314444666666667}, + {0.00333333333333385,0.303888666666667,0.00111133333333295,0.308888666666667}, + {0.00611133333333314,0.298888666666667,0.00333333333333385,0.303888666666667}, + {0.0100000000000004,0.295,0.00611133333333314,0.298888666666667}, + {0.0149999999999994,0.291666666666667,0.0100000000000004,0.295}, + {0.0216666666666671,0.288888666666667,0.0149999999999994,0.291666666666667}, + {0.0283333333333336,0.287222,0.0216666666666671,0.288888666666667}, + {0.0361113333333331,0.285,0.0283333333333336,0.287222}, + {0.0455560000000001,0.283333333333333,0.0361113333333331,0.285}, + {0.0566666666666672,0.281666666666667,0.0455560000000001,0.283333333333333}, + {0.0683333333333328,0.279444666666667,0.0566666666666672,0.281666666666667}, + {0.0816666666666658,0.277222,0.0683333333333328,0.279444666666667}, + {0.096111333333333,0.274444666666666,0.0816666666666658,0.277222}, + {0.111666666666667,0.272222,0.096111333333333,0.274444666666666}, + {0.127222666666666,0.268888666666667,0.111666666666667,0.272222}, + {0.143889333333334,0.266111333333334,0.127222666666666,0.268888666666667}, + {0.160556,0.263888666666666,0.143889333333334,0.266111333333334}, + {0.177222666666668,0.261111333333333,0.160556,0.263888666666666}, + {0.193333333333333,0.259444666666666,0.177222666666668,0.261111333333333}, + {0.209444666666667,0.257778,0.193333333333333,0.259444666666666}, + {0.224444666666666,0.257222,0.209444666666667,0.257778}, + {0.238333333333332,0.257778,0.224444666666666,0.257222}, + {0.251111333333334,0.259444666666666,0.238333333333332,0.257778}, + {0.262222666666666,0.262222,0.251111333333334,0.259444666666666}, + {0.271666666666666,0.266111333333334,0.262222666666666,0.262222}, + {0.279999999999999,0.272222,0.271666666666666,0.266111333333334}, + {0.286111333333333,0.279444666666667,0.279999999999999,0.272222}, + {0.291111333333333,0.288888666666667,0.286111333333333,0.279444666666667}, + {0,0,0,0} +}; + +double Icon20[][4] = { + {0.0988886666666673,0.285555333333334,0.0916666666666662,0.288888666666667}, + {0.106666666666667,0.283333333333333,0.0988886666666673,0.285555333333334}, + {0.113888666666665,0.282222,0.106666666666667,0.283333333333333}, + {0.121666666666667,0.281111333333333,0.113888666666665,0.282222}, + {0.128888666666666,0.280555333333333,0.121666666666667,0.281111333333333}, + {0.151666666666666,0.281111333333333,0.144444,0.280555333333333}, + {0.159444000000001,0.282222,0.151666666666666,0.281111333333333}, + {0.166666666666667,0.283333333333333,0.159444000000001,0.282222}, + {0.174443999999999,0.285555333333334,0.166666666666667,0.283333333333333}, + {0.181666666666667,0.288888666666667,0.174443999999999,0.285555333333334}, + {0.188333333333333,0.292778,0.181666666666667,0.288888666666667}, + {0.195,0.297222,0.188333333333333,0.292778}, + {0.201666666666666,0.302222,0.195,0.297222}, + {0.208888666666667,0.307778,0.201666666666666,0.302222}, + {0.216110666666665,0.313888666666667,0.208888666666667,0.307778}, + {0.223888666666667,0.320555333333333,0.216110666666665,0.313888666666667}, + {0.231666666666667,0.327222,0.223888666666667,0.320555333333333}, + {0.239443999999999,0.334444666666667,0.231666666666667,0.327222}, + {0.246110666666667,0.341111333333333,0.239443999999999,0.334444666666667}, + {0.252777333333334,0.348333333333333,0.246110666666667,0.341111333333333}, + {0.258888666666666,0.355555333333333,0.252777333333334,0.348333333333333}, + {0.263888666666666,0.362778,0.258888666666666,0.355555333333333}, + {0.268333333333333,0.370555333333333,0.263888666666666,0.362778}, + {0.271110666666667,0.378333333333333,0.268333333333333,0.370555333333333}, + {0.272777333333333,0.386666666666667,0.271110666666667,0.378333333333333}, + {0.273333333333333,0.395555333333334,0.272777333333333,0.386666666666667}, + {0.273333333333333,0.404444666666667,0.273333333333333,0.395555333333334}, + {0.271666666666666,0.413888666666667,0.273333333333333,0.404444666666667}, + {0.269444,0.423888666666667,0.271666666666666,0.413888666666667}, + {0.266666666666666,0.433333333333334,0.269444,0.423888666666667}, + {0.263333333333333,0.443888666666667,0.266666666666666,0.433333333333334}, + {0.26,0.453888666666667,0.263333333333333,0.443888666666667}, + {0.256666666666668,0.463888666666667,0.26,0.453888666666667}, + {0.253888666666666,0.473888666666667,0.256666666666668,0.463888666666667}, + {0.251666666666667,0.483888666666667,0.253888666666666,0.473888666666667}, + {0.25,0.493888666666667,0.251666666666667,0.483888666666667}, + {0.248888666666666,0.503888666666667,0.25,0.493888666666667}, + {0.248888666666666,0.513333333333333,0.248888666666666,0.503888666666667}, + {0.248888666666666,0.522778,0.248888666666666,0.513333333333333}, + {0.25,0.532778,0.248888666666666,0.522778}, + {0.251666666666667,0.542222,0.25,0.532778}, + {0.253888666666666,0.552222,0.251666666666667,0.542222}, + {0.256666666666668,0.562222,0.253888666666666,0.552222}, + {0.26,0.572778,0.256666666666668,0.562222}, + {0.263333333333333,0.582778,0.26,0.572778}, + {0.266666666666666,0.592778,0.263333333333333,0.582778}, + {0.269444,0.602778,0.266666666666666,0.592778}, + {0.271666666666666,0.612222,0.269444,0.602778}, + {0.273333333333333,0.621666666666667,0.271666666666666,0.612222}, + {0.273333333333333,0.631111333333333,0.273333333333333,0.621666666666667}, + {0.272777333333333,0.639444666666667,0.273333333333333,0.631111333333333}, + {0.271110666666667,0.647778,0.272777333333333,0.639444666666667}, + {0.268333333333333,0.655555333333333,0.271110666666667,0.647778}, + {0.263888666666666,0.663333333333333,0.268333333333333,0.655555333333333}, + {0.258888666666666,0.670555333333333,0.263888666666666,0.663333333333333}, + {0.252777333333334,0.677778,0.258888666666666,0.670555333333333}, + {0.246110666666667,0.685,0.252777333333334,0.677778}, + {0.239443999999999,0.691666666666666,0.246110666666667,0.685}, + {0.231666666666667,0.698888666666667,0.239443999999999,0.691666666666666}, + {0.223888666666667,0.705555333333334,0.231666666666667,0.698888666666667}, + {0.216110666666665,0.712222,0.223888666666667,0.705555333333334}, + {0.208888666666667,0.718333333333333,0.216110666666665,0.712222}, + {0.201666666666666,0.723888666666667,0.208888666666667,0.718333333333333}, + {0.195,0.728888666666667,0.201666666666666,0.723888666666667}, + {0.188333333333333,0.733333333333333,0.195,0.728888666666667}, + {0.181666666666667,0.737222,0.188333333333333,0.733333333333333}, + {0.174443999999999,0.740555333333334,0.181666666666667,0.737222}, + {0.166666666666667,0.742778,0.174443999999999,0.740555333333334}, + {0.159444000000001,0.743888666666667,0.166666666666667,0.742778}, + {0.151666666666666,0.745,0.159444000000001,0.743888666666667}, + {0.144444,0.745555333333333,0.151666666666666,0.745}, + {0.121666666666667,0.745,0.128888666666666,0.745555333333333}, + {0.113888666666665,0.743888666666667,0.121666666666667,0.745}, + {0.106666666666667,0.742778,0.113888666666665,0.743888666666667}, + {0.0988886666666673,0.740555333333334,0.106666666666667,0.742778}, + {0.0916666666666662,0.737222,0.0988886666666673,0.740555333333334}, + {0.0850000000000009,0.733333333333333,0.0916666666666662,0.737222}, + {0.0783333333333331,0.728888666666667,0.0850000000000009,0.733333333333333}, + {0.0716666666666654,0.723888666666667,0.0783333333333331,0.728888666666667}, + {0.0644439999999993,0.718333333333333,0.0716666666666654,0.723888666666667}, + {0.0572220000000006,0.712222,0.0644439999999993,0.718333333333333}, + {0.0494439999999988,0.705555333333334,0.0572220000000006,0.712222}, + {0.0416666666666667,0.698888666666667,0.0494439999999988,0.705555333333334}, + {0.0338886666666672,0.691666666666666,0.0416666666666667,0.698888666666667}, + {0.0272219999999995,0.685,0.0338886666666672,0.691666666666666}, + {0.0205553333333341,0.677778,0.0272219999999995,0.685}, + {0.0144439999999998,0.670555333333333,0.0205553333333341,0.677778}, + {0.00944399999999964,0.663333333333333,0.0144439999999998,0.670555333333333}, + {0.00500000000000019,0.655555333333333,0.00944399999999964,0.663333333333333}, + {0.00222200000000091,0.647778,0.00500000000000019,0.655555333333333}, + {0.000555333333333389,0.639444666666667,0.00222200000000091,0.647778}, + {0,0.631111333333333,0.000555333333333389,0.639444666666667}, + {0,0.621666666666667,0,0.631111333333333}, + {0.00166666666666752,0.612222,0,0.621666666666667}, + {0.00388866666666606,0.602778,0.00166666666666752,0.612222}, + {0.00666666666666771,0.592778,0.00388866666666606,0.602778}, + {0.0100000000000004,0.582778,0.00666666666666771,0.592778}, + {0.013333333333333,0.572778,0.0100000000000004,0.582778}, + {0.0166666666666657,0.562222,0.013333333333333,0.572778}, + {0.019444,0.552222,0.0166666666666657,0.562222}, + {0.0216666666666659,0.542222,0.019444,0.552222}, + {0.0233333333333334,0.532778,0.0216666666666659,0.542222}, + {0.0244440000000002,0.522778,0.0233333333333334,0.532778}, + {0.0244440000000002,0.513333333333333,0.0244440000000002,0.522778}, + {0.0244440000000002,0.503888666666667,0.0244440000000002,0.513333333333333}, + {0.0233333333333334,0.493888666666667,0.0244440000000002,0.503888666666667}, + {0.0216666666666659,0.483888666666667,0.0233333333333334,0.493888666666667}, + {0.019444,0.473888666666667,0.0216666666666659,0.483888666666667}, + {0.0166666666666657,0.463888666666667,0.019444,0.473888666666667}, + {0.013333333333333,0.453888666666667,0.0166666666666657,0.463888666666667}, + {0.0100000000000004,0.443888666666667,0.013333333333333,0.453888666666667}, + {0.00666666666666771,0.433333333333334,0.0100000000000004,0.443888666666667}, + {0.00388866666666606,0.423888666666667,0.00666666666666771,0.433333333333334}, + {0.00166666666666752,0.413888666666667,0.00388866666666606,0.423888666666667}, + {0,0.404444666666667,0.00166666666666752,0.413888666666667}, + {0,0.395555333333334,0,0.404444666666667}, + {0.000555333333333389,0.386666666666667,0,0.395555333333334}, + {0.00222200000000091,0.378333333333333,0.000555333333333389,0.386666666666667}, + {0.00500000000000019,0.370555333333333,0.00222200000000091,0.378333333333333}, + {0.00944399999999964,0.362778,0.00500000000000019,0.370555333333333}, + {0.0144439999999998,0.355555333333333,0.00944399999999964,0.362778}, + {0.0205553333333341,0.348333333333333,0.0144439999999998,0.355555333333333}, + {0.0272219999999995,0.341111333333333,0.0205553333333341,0.348333333333333}, + {0.0338886666666672,0.334444666666667,0.0272219999999995,0.341111333333333}, + {0.0416666666666667,0.327222,0.0338886666666672,0.334444666666667}, + {0.0494439999999988,0.320555333333333,0.0416666666666667,0.327222}, + {0.0572220000000006,0.313888666666667,0.0494439999999988,0.320555333333333}, + {0.0644439999999993,0.307778,0.0572220000000006,0.313888666666667}, + {0.0716666666666654,0.302222,0.0644439999999993,0.307778}, + {0.0783333333333331,0.297222,0.0716666666666654,0.302222}, + {0.0850000000000009,0.292778,0.0783333333333331,0.297222}, + {0.0916666666666662,0.288888666666667,0.0850000000000009,0.292778}, + {0.181666666666667,0.557778,0.185,0.562222}, + {0.185,0.562222,0.187222000000001,0.567778}, + {0.187222000000001,0.567778,0.188333333333333,0.575}, + {0.188333333333333,0.575,0.189443999999999,0.583888666666667}, + {0.189443999999999,0.583888666666667,0.19,0.592778}, + {0.19,0.592778,0.19,0.602778}, + {0.19,0.602778,0.19,0.612778}, + {0.19,0.612778,0.189443999999999,0.621666666666667}, + {0.189443999999999,0.621666666666667,0.188333333333333,0.630555333333334}, + {0.188333333333333,0.630555333333334,0.187222000000001,0.637778}, + {0.187222000000001,0.637778,0.185,0.643333333333333}, + {0.185,0.643333333333333,0.181666666666667,0.647778}, + {0.181666666666667,0.647778,0.177222,0.651111333333333}, + {0.177222,0.651111333333333,0.171666666666667,0.653333333333334}, + {0.171666666666667,0.653333333333334,0.164444000000001,0.654444666666667}, + {0.164444000000001,0.654444666666667,0.155555333333332,0.655555333333333}, + {0.155555333333332,0.655555333333333,0.146666666666666,0.656111333333333}, + {0.126666666666668,0.656111333333333,0.117777333333334,0.655555333333333}, + {0.117777333333334,0.655555333333333,0.108888666666668,0.654444666666667}, + {0.108888666666668,0.654444666666667,0.101666666666667,0.653333333333334}, + {0.101666666666667,0.653333333333334,0.0961106666666656,0.651111333333333}, + {0.0961106666666656,0.651111333333333,0.0916666666666662,0.647778}, + {0.0916666666666662,0.647778,0.0883333333333335,0.643333333333333}, + {0.0883333333333335,0.643333333333333,0.0861106666666676,0.637778}, + {0.0861106666666676,0.637778,0.0850000000000009,0.630555333333334}, + {0.0850000000000009,0.630555333333334,0.0838886666666667,0.621666666666667}, + {0.0838886666666667,0.621666666666667,0.0833333333333333,0.612778}, + {0.0833333333333333,0.612778,0.0833333333333333,0.602778}, + {0.0833333333333333,0.602778,0.0833333333333333,0.592778}, + {0.0833333333333333,0.592778,0.0838886666666667,0.583888666666667}, + {0.0838886666666667,0.583888666666667,0.0850000000000009,0.575}, + {0.0850000000000009,0.575,0.0861106666666676,0.567778}, + {0.0861106666666676,0.567778,0.0883333333333335,0.562222}, + {0.0883333333333335,0.562222,0.0916666666666662,0.557778}, + {0.0916666666666662,0.557778,0.0961106666666656,0.554444666666667}, + {0.0961106666666656,0.554444666666667,0.101666666666667,0.552222}, + {0.101666666666667,0.552222,0.108888666666668,0.551111333333333}, + {0.108888666666668,0.551111333333333,0.117777333333334,0.55}, + {0.117777333333334,0.55,0.126666666666668,0.549444666666667}, + {0.146666666666666,0.549444666666667,0.155555333333332,0.55}, + {0.155555333333332,0.55,0.164444000000001,0.551111333333333}, + {0.164444000000001,0.551111333333333,0.171666666666667,0.552222}, + {0.171666666666667,0.552222,0.177222,0.554444666666667}, + {0.177222,0.554444666666667,0.181666666666667,0.557778}, + {0.181666666666667,0.378333333333333,0.185,0.382778}, + {0.185,0.382778,0.187222000000001,0.388333333333333}, + {0.187222000000001,0.388333333333333,0.188333333333333,0.395555333333334}, + {0.188333333333333,0.395555333333334,0.189443999999999,0.404444666666667}, + {0.189443999999999,0.404444666666667,0.19,0.413333333333333}, + {0.19,0.413333333333333,0.19,0.423333333333333}, + {0.19,0.423333333333333,0.19,0.433333333333334}, + {0.19,0.433333333333334,0.189443999999999,0.442222}, + {0.189443999999999,0.442222,0.188333333333333,0.451111333333333}, + {0.188333333333333,0.451111333333333,0.187222000000001,0.458333333333333}, + {0.187222000000001,0.458333333333333,0.185,0.463888666666667}, + {0.185,0.463888666666667,0.181666666666667,0.468333333333333}, + {0.181666666666667,0.468333333333333,0.177222,0.471666666666666}, + {0.177222,0.471666666666666,0.171666666666667,0.473888666666667}, + {0.171666666666667,0.473888666666667,0.164444000000001,0.475}, + {0.164444000000001,0.475,0.155555333333332,0.476111333333333}, + {0.155555333333332,0.476111333333333,0.146666666666666,0.476666666666667}, + {0.126666666666668,0.476666666666667,0.117777333333334,0.476111333333333}, + {0.117777333333334,0.476111333333333,0.108888666666668,0.475}, + {0.108888666666668,0.475,0.101666666666667,0.473888666666667}, + {0.101666666666667,0.473888666666667,0.0961106666666656,0.471666666666666}, + {0.0961106666666656,0.471666666666666,0.0916666666666662,0.468333333333333}, + {0.0916666666666662,0.468333333333333,0.0883333333333335,0.463888666666667}, + {0.0883333333333335,0.463888666666667,0.0861106666666676,0.458333333333333}, + {0.0861106666666676,0.458333333333333,0.0850000000000009,0.451111333333333}, + {0.0850000000000009,0.451111333333333,0.0838886666666667,0.442222}, + {0.0838886666666667,0.442222,0.0833333333333333,0.433333333333334}, + {0.0833333333333333,0.433333333333334,0.0833333333333333,0.423333333333333}, + {0.0833333333333333,0.423333333333333,0.0833333333333333,0.413333333333333}, + {0.0833333333333333,0.413333333333333,0.0838886666666667,0.404444666666667}, + {0.0838886666666667,0.404444666666667,0.0850000000000009,0.395555333333334}, + {0.0850000000000009,0.395555333333334,0.0861106666666676,0.388333333333333}, + {0.0861106666666676,0.388333333333333,0.0883333333333335,0.382778}, + {0.0883333333333335,0.382778,0.0916666666666662,0.378333333333333}, + {0.0916666666666662,0.378333333333333,0.0961106666666656,0.375}, + {0.0961106666666656,0.375,0.101666666666667,0.372778}, + {0.101666666666667,0.372778,0.108888666666668,0.371666666666667}, + {0.108888666666668,0.371666666666667,0.117777333333334,0.370555333333333}, + {0.117777333333334,0.370555333333333,0.126666666666668,0.37}, + {0.146666666666666,0.37,0.155555333333332,0.370555333333333}, + {0.155555333333332,0.370555333333333,0.164444000000001,0.371666666666667}, + {0.164444000000001,0.371666666666667,0.171666666666667,0.372778}, + {0.171666666666667,0.372778,0.177222,0.375}, + {0.177222,0.375,0.181666666666667,0.378333333333333}, + {0,0,0,0} +}; + +double Icon21[][4] = { + {0.0277780000000002,0.283888666666667,0.0216666666666659,0.288888666666667}, + {0.034999999999999,0.279444666666667,0.0277780000000002,0.283888666666667}, + {0.0427779999999984,0.275555333333333,0.034999999999999,0.279444666666667}, + {0.0522226666666654,0.272222,0.0427779999999984,0.275555333333333}, + {0.0627779999999992,0.269444666666667,0.0522226666666654,0.272222}, + {0.0738893333333337,0.266666666666667,0.0627779999999992,0.269444666666667}, + {0.0861113333333326,0.263888666666666,0.0738893333333337,0.266666666666667}, + {0.0988893333333323,0.262222,0.0861113333333326,0.263888666666666}, + {0.112777999999999,0.26,0.0988893333333323,0.262222}, + {0.126666666666665,0.258333333333334,0.112777999999999,0.26}, + {0.141666666666666,0.256666666666667,0.126666666666665,0.258333333333334}, + {0.156111333333333,0.255,0.141666666666666,0.256666666666667}, + {0.170556,0.254444666666667,0.156111333333333,0.255}, + {0.185556000000001,0.253888666666667,0.170556,0.254444666666667}, + {0.199444666666667,0.253333333333333,0.185556000000001,0.253888666666667}, + {0.213333333333334,0.253888666666667,0.199444666666667,0.253333333333333}, + {0.226111333333333,0.255,0.213333333333334,0.253888666666667}, + {0.238333333333332,0.256666666666667,0.226111333333333,0.255}, + {0.249444666666667,0.258888666666667,0.238333333333332,0.256666666666667}, + {0.26,0.262778,0.249444666666667,0.258888666666667}, + {0.269444666666667,0.267222,0.26,0.262778}, + {0.277222666666667,0.273333333333333,0.269444666666667,0.267222}, + {0.284444666666666,0.280555333333333,0.277222666666667,0.273333333333333}, + {0.290556,0.288888666666667,0.284444666666666,0.280555333333333}, + {0.294999999999999,0.297222,0.290556,0.288888666666667}, + {0.298889333333333,0.307222,0.294999999999999,0.297222}, + {0.302222666666665,0.318333333333333,0.298889333333333,0.307222}, + {0.304444666666666,0.331111333333334,0.302222666666665,0.318333333333333}, + {0.306666666666667,0.344444666666667,0.304444666666666,0.331111333333334}, + {0.308333333333332,0.36,0.306666666666667,0.344444666666667}, + {0.309444666666666,0.376111333333334,0.308333333333332,0.36}, + {0.31,0.393333333333333,0.309444666666666,0.376111333333334}, + {0.31,0.411666666666667,0.31,0.393333333333333}, + {0.31,0.431111333333333,0.31,0.411666666666667}, + {0.309444666666666,0.450555333333333,0.31,0.431111333333333}, + {0.308889333333333,0.471111333333334,0.309444666666666,0.450555333333333}, + {0.308333333333332,0.492222,0.308889333333333,0.471111333333334}, + {0.307222666666666,0.513333333333333,0.308333333333332,0.492222}, + {0.306111333333334,0.533888666666667,0.307222666666666,0.513333333333333}, + {0.305,0.555,0.306111333333334,0.533888666666667}, + {0.303889333333333,0.575555333333333,0.305,0.555}, + {0.302777999999999,0.595,0.303889333333333,0.575555333333333}, + {0.301666666666667,0.614444666666667,0.302777999999999,0.595}, + {0.300556,0.632778,0.301666666666667,0.614444666666667}, + {0.299444666666666,0.65,0.300556,0.632778}, + {0.298333333333332,0.666111333333333,0.299444666666666,0.65}, + {0.296666666666667,0.681666666666667,0.298333333333332,0.666111333333333}, + {0.295556,0.695,0.296666666666667,0.681666666666667}, + {0.294444666666666,0.707778,0.295556,0.695}, + {0.293333333333332,0.718888666666667,0.294444666666666,0.707778}, + {0.292222666666667,0.728888666666667,0.293333333333332,0.718888666666667}, + {0.290556,0.737222,0.292222666666667,0.728888666666667}, + {0.288333333333334,0.745555333333333,0.290556,0.737222}, + {0.286111333333333,0.752778,0.288333333333334,0.745555333333333}, + {0.283333333333334,0.758888666666667,0.286111333333333,0.752778}, + {0.280555999999999,0.763333333333333,0.283333333333334,0.758888666666667}, + {0.276666666666666,0.766111333333334,0.280555999999999,0.763333333333333}, + {0.273333333333333,0.768888666666667,0.276666666666666,0.766111333333334}, + {0.268889333333334,0.77,0.273333333333333,0.768888666666667}, + {0.265000000000001,0.770555333333334,0.268889333333334,0.77}, + {0.26,0.77,0.265000000000001,0.770555333333334}, + {0.255555999999999,0.769444666666667,0.26,0.77}, + {0.250556000000001,0.768333333333333,0.255555999999999,0.769444666666667}, + {0.245556000000001,0.766666666666667,0.250556000000001,0.768333333333333}, + {0.241111333333334,0.765,0.245556000000001,0.766666666666667}, + {0.236111333333334,0.762778,0.241111333333334,0.765}, + {0.231666666666667,0.760555333333333,0.236111333333334,0.762778}, + {0.226666666666667,0.758333333333334,0.231666666666667,0.760555333333333}, + {0.222778000000001,0.756111333333333,0.226666666666667,0.758333333333334}, + {0.218333333333334,0.753888666666667,0.222778000000001,0.756111333333333}, + {0.214999999999999,0.751111333333334,0.218333333333334,0.753888666666667}, + {0.211111333333333,0.748888666666667,0.214999999999999,0.751111333333334}, + {0.208333333333333,0.746666666666667,0.211111333333333,0.748888666666667}, + {0.205555999999999,0.743888666666667,0.208333333333333,0.746666666666667}, + {0.203333333333333,0.740555333333334,0.205555999999999,0.743888666666667}, + {0.201111333333332,0.737222,0.203333333333333,0.740555333333334}, + {0.198889333333334,0.731111333333333,0.201111333333332,0.737222}, + {0.197222666666666,0.722778,0.198889333333334,0.731111333333333}, + {0.196666666666665,0.713333333333334,0.197222666666666,0.722778}, + {0.197222666666666,0.702222,0.196666666666665,0.713333333333334}, + {0.198333333333333,0.69,0.197222666666666,0.702222}, + {0.200555999999999,0.676666666666667,0.198333333333333,0.69}, + {0.202778,0.662222,0.200555999999999,0.676666666666667}, + {0.205555999999999,0.647778,0.202778,0.662222}, + {0.207778,0.632778,0.205555999999999,0.647778}, + {0.209999999999998,0.618333333333334,0.207778,0.632778}, + {0.211666666666666,0.605,0.209999999999998,0.618333333333334}, + {0.212222666666667,0.592778,0.211666666666666,0.605}, + {0.211666666666666,0.581666666666666,0.212222666666667,0.592778}, + {0.209444666666665,0.572222,0.211666666666666,0.581666666666666}, + {0.206111333333332,0.563888666666667,0.209444666666665,0.572222}, + {0.201111333333332,0.557778,0.206111333333332,0.563888666666667}, + {0.195,0.552778,0.201111333333332,0.557778}, + {0.186666666666665,0.55,0.195,0.552778}, + {0.177222666666665,0.548333333333333,0.186666666666665,0.55}, + {0.166111333333333,0.548888666666667,0.177222666666665,0.548333333333333}, + {0.153889333333332,0.550555333333334,0.166111333333333,0.548888666666667}, + {0.140555999999999,0.553888666666667,0.153889333333332,0.550555333333334}, + {0.126111333333332,0.557778,0.140555999999999,0.553888666666667}, + {0.111666666666667,0.562222,0.126111333333332,0.557778}, + {0.0966666666666664,0.566111333333333,0.111666666666667,0.562222}, + {0.0822226666666666,0.57,0.0966666666666664,0.566111333333333}, + {0.0688893333333335,0.572778,0.0822226666666666,0.57}, + {0.0566666666666672,0.573888666666667,0.0688893333333335,0.572778}, + {0.0455560000000001,0.572778,0.0566666666666672,0.573888666666667}, + {0.0361113333333331,0.57,0.0455560000000001,0.572778}, + {0.0277780000000002,0.565,0.0361113333333331,0.57}, + {0.0216666666666659,0.557778,0.0277780000000002,0.565}, + {0.0177779999999998,0.551111333333333,0.0216666666666659,0.557778}, + {0.0150000000000006,0.543333333333334,0.0177779999999998,0.551111333333333}, + {0.0122226666666663,0.533888666666667,0.0150000000000006,0.543333333333334}, + {0.0100000000000004,0.523333333333333,0.0122226666666663,0.533888666666667}, + {0.00777799999999947,0.511666666666667,0.0100000000000004,0.523333333333333}, + {0.00611133333333195,0.498888666666667,0.00777799999999947,0.511666666666667}, + {0.00500000000000019,0.485,0.00611133333333195,0.498888666666667}, + {0.00333333333333267,0.470555333333333,0.00500000000000019,0.485}, + {0.00222266666666589,0.455,0.00333333333333267,0.470555333333333}, + {0.00166666666666515,0.439444666666667,0.00222266666666589,0.455}, + {0.000556000000000741,0.423333333333333,0.00166666666666515,0.439444666666667}, + {0,0.407222,0.000556000000000741,0.423333333333333}, + {0,0.391666666666667,0,0.407222}, + {0,0.376111333333334,0,0.391666666666667}, + {0.000556000000000741,0.361666666666667,0,0.376111333333334}, + {0.00166666666666515,0.347778,0.000556000000000741,0.361666666666667}, + {0.00277799999999928,0.335,0.00166666666666515,0.347778}, + {0.00500000000000019,0.323333333333334,0.00277799999999928,0.335}, + {0.00777799999999947,0.312778,0.00500000000000019,0.323333333333334}, + {0.0116666666666655,0.303333333333333,0.00777799999999947,0.312778}, + {0.0161113333333323,0.295555333333333,0.0116666666666655,0.303333333333333}, + {0.0216666666666659,0.288888666666667,0.0161113333333323,0.295555333333333}, + {0.201111333333332,0.378333333333333,0.204444666666667,0.382778}, + {0.204444666666667,0.382778,0.206666666666666,0.388333333333333}, + {0.206666666666666,0.388333333333333,0.207778,0.395555333333334}, + {0.207778,0.395555333333334,0.208889333333334,0.404444666666667}, + {0.208889333333334,0.404444666666667,0.209444666666665,0.413333333333333}, + {0.209444666666665,0.413333333333333,0.209444666666665,0.423333333333333}, + {0.209444666666665,0.423333333333333,0.209444666666665,0.433333333333334}, + {0.209444666666665,0.433333333333334,0.208889333333334,0.442222}, + {0.208889333333334,0.442222,0.207778,0.451111333333333}, + {0.207778,0.451111333333333,0.206666666666666,0.458333333333333}, + {0.206666666666666,0.458333333333333,0.204444666666667,0.463888666666667}, + {0.204444666666667,0.463888666666667,0.201111333333332,0.468333333333333}, + {0.201111333333332,0.468333333333333,0.196666666666665,0.471666666666666}, + {0.196666666666665,0.471666666666666,0.191111333333332,0.473888666666667}, + {0.191111333333332,0.473888666666667,0.183889333333333,0.475}, + {0.183889333333333,0.475,0.175,0.476111333333333}, + {0.175,0.476111333333333,0.166111333333333,0.476666666666667}, + {0.146111333333333,0.476666666666667,0.137222666666666,0.476111333333333}, + {0.137222666666666,0.476111333333333,0.128333333333333,0.475}, + {0.128333333333333,0.475,0.121111333333334,0.473888666666667}, + {0.121111333333334,0.473888666666667,0.115556,0.471666666666666}, + {0.115556,0.471666666666666,0.111111333333334,0.468333333333333}, + {0.111111333333334,0.468333333333333,0.107777999999999,0.463888666666667}, + {0.107777999999999,0.463888666666667,0.105556,0.458333333333333}, + {0.105556,0.458333333333333,0.104444666666666,0.451111333333333}, + {0.104444666666666,0.451111333333333,0.103333333333332,0.442222}, + {0.103333333333332,0.442222,0.102778000000001,0.433333333333334}, + {0.102778000000001,0.433333333333334,0.102778000000001,0.423333333333333}, + {0.102778000000001,0.423333333333333,0.102778000000001,0.413333333333333}, + {0.102778000000001,0.413333333333333,0.103333333333332,0.404444666666667}, + {0.103333333333332,0.404444666666667,0.104444666666666,0.395555333333334}, + {0.104444666666666,0.395555333333334,0.105556,0.388333333333333}, + {0.105556,0.388333333333333,0.107777999999999,0.382778}, + {0.107777999999999,0.382778,0.111111333333334,0.378333333333333}, + {0.111111333333334,0.378333333333333,0.115556,0.375}, + {0.115556,0.375,0.121111333333334,0.372778}, + {0.121111333333334,0.372778,0.128333333333333,0.371666666666667}, + {0.128333333333333,0.371666666666667,0.137222666666666,0.370555333333333}, + {0.137222666666666,0.370555333333333,0.146111333333333,0.37}, + {0.166111333333333,0.37,0.175,0.370555333333333}, + {0.175,0.370555333333333,0.183889333333333,0.371666666666667}, + {0.183889333333333,0.371666666666667,0.191111333333332,0.372778}, + {0.191111333333332,0.372778,0.196666666666665,0.375}, + {0.196666666666665,0.375,0.201111333333332,0.378333333333333}, + {0,0,0,0} +}; + +double Icon22[][4] = { + {0.0416666666666667,0.208333333333333,0,0.25}, + {0.166666666666667,0.25,0.125,0.208333333333333}, + {0.166666666666667,0.75,0.166666666666667,0.25}, + {0.125,0.791666666666667,0.166666666666667,0.75}, + {0,0.75,0.0416666666666667,0.791666666666667}, + {0,0.25,0,0.75}, + {0.125,0.375,0.125,0.416666666666667}, + {0.0416666666666667,0.416666666666667,0.0416666666666667,0.375}, + {0.125,0.458333333333333,0.125,0.541666666666667}, + {0.0416666666666667,0.541666666666667,0.0416666666666667,0.458333333333333}, + {0.125,0.583333333333333,0.125,0.625}, + {0.0416666666666667,0.625,0.0416666666666667,0.583333333333333}, + {0,0,0,0} +}; + +double Icon23[][4] = { + {0.0416666666666667,0.208333333333333,0,0.25}, + {0.166666666666667,0.25,0.125,0.208333333333333}, + {0.166666666666667,0.75,0.166666666666667,0.25}, + {0.125,0.791666666666667,0.166666666666667,0.75}, + {0,0.75,0.0416666666666667,0.791666666666667}, + {0,0.25,0,0.75}, + {0.0416666666666667,0.291666666666667,0.0833333333333333,0.25}, + {0.0833333333333333,0.25,0.125,0.291666666666667}, + {0.125,0.291666666666667,0.125,0.708333333333333}, + {0.125,0.708333333333333,0.0833333333333333,0.75}, + {0.0833333333333333,0.75,0.0416666666666667,0.708333333333333}, + {0.0416666666666667,0.708333333333333,0.0416666666666667,0.291666666666667}, + {0,0,0,0} +}; + +double Icon24[][4] = { + {0.0377780000000006,0.191666666666666,0.0377780000000006,0.341666666666667}, + {0.0377780000000006,0.153888666666666,0.0750000000000005,0.191666666666666}, + {0.112778000000001,0.0416666666666667,0.0377780000000006,0.153888666666666}, + {0.187777999999999,0.153888666666666,0.112778000000001,0.0416666666666667}, + {0.150000000000001,0.191666666666666,0.187777999999999,0.153888666666666}, + {0.187777999999999,0.341666666666667,0.187777999999999,0.191666666666666}, + {0.224999999999999,0.678888666666667,0.224999999999999,0.341666666666667}, + {0,0.341666666666667,0,0.678888666666667}, + {0.0750000000000005,0.678888666666667,0.112778000000001,0.941666666666666}, + {0.112778000000001,0.941666666666666,0.150000000000001,0.978888666666667}, + {0.375,0.978888666666667,0.375,0.866666666666667}, + {0.224999999999999,0.866666666666667,0.187777999999999,0.828888666666667}, + {0.187777999999999,0.828888666666667,0.150000000000001,0.678888666666667}, + {0,0,0,0} +}; + +double Icon25[][4] = { + {0.166666666666667,0.583333333333333,0.333333333333333,0.416666666666667}, + {0,0.416666666666667,0.166666666666667,0.583333333333333}, + {0,0,0,0} +}; + +double Icon26[][4] = { + {0.148888666666664,0.0399999999999998,0.136666666666666,0.0416666666666667}, + {0.161666666666666,0.0383333333333334,0.148888666666664,0.0399999999999998}, + {0.176111333333331,0.0372219999999999,0.161666666666666,0.0383333333333334}, + {0.191111333333332,0.0361113333333332,0.176111333333331,0.0372219999999999}, + {0.207778,0.0350000000000001,0.191111333333332,0.0361113333333332}, + {0.224999999999999,0.0338886666666667,0.207778,0.0350000000000001}, + {0.243888666666666,0.0333333333333332,0.224999999999999,0.0338886666666667}, + {0.263333333333333,0.0322220000000003,0.243888666666666,0.0333333333333332}, + {0.283333333333331,0.031666666666667,0.263333333333333,0.0322220000000003}, + {0.305,0.0311113333333335,0.283333333333331,0.031666666666667}, + {0.349444666666666,0.0305553333333334,0.326666666666666,0.0311113333333335}, + {0.396666666666666,0.03,0.372777999999999,0.0305553333333334}, + {0.567221999999999,0.0305553333333334,0.543333333333332,0.03}, + {0.613333333333332,0.0311113333333335,0.590555333333332,0.0305553333333334}, + {0.656666666666666,0.031666666666667,0.634999999999998,0.0311113333333335}, + {0.676666666666665,0.0322220000000003,0.656666666666666,0.031666666666667}, + {0.696111333333332,0.0333333333333332,0.676666666666665,0.0322220000000003}, + {0.714999999999999,0.0338886666666667,0.696111333333332,0.0333333333333332}, + {0.732221999999998,0.0350000000000001,0.714999999999999,0.0338886666666667}, + {0.748888666666666,0.0361113333333332,0.732221999999998,0.0350000000000001}, + {0.763888666666666,0.0372219999999999,0.748888666666666,0.0361113333333332}, + {0.778333333333331,0.0383333333333334,0.763888666666666,0.0372219999999999}, + {0.791111333333333,0.0399999999999998,0.778333333333331,0.0383333333333334}, + {0.803333333333332,0.0416666666666667,0.791111333333333,0.0399999999999998}, + {0.818888666666666,0.0444446666666666,0.803333333333332,0.0416666666666667}, + {0.832778,0.0472220000000003,0.818888666666666,0.0444446666666666}, + {0.844444666666665,0.0505553333333335,0.832778,0.0472220000000003}, + {0.854999999999999,0.0533333333333335,0.844444666666665,0.0505553333333335}, + {0.863888666666665,0.0566666666666666,0.854999999999999,0.0533333333333335}, + {0.871666666666665,0.058888666666667,0.863888666666665,0.0566666666666666}, + {0.877777999999999,0.0616666666666669,0.871666666666665,0.058888666666667}, + {0.883333333333333,0.0638886666666666,0.877777999999999,0.0616666666666669}, + {0.887778,0.0661113333333331,0.883333333333333,0.0638886666666666}, + {0.891111333333332,0.0683333333333334,0.887778,0.0661113333333331}, + {0.894444666666665,0.0705553333333331,0.891111333333332,0.0683333333333334}, + {0.897221999999999,0.0727780000000002,0.894444666666665,0.0705553333333331}, + {0.899444666666665,0.0755553333333333,0.897221999999999,0.0727780000000002}, + {0.901666666666666,0.0788886666666666,0.899444666666665,0.0755553333333333}, + {0.903888666666665,0.0822219999999998,0.901666666666666,0.0788886666666666}, + {0.906111333333333,0.0866666666666667,0.903888666666665,0.0822219999999998}, + {0.908333333333331,0.0922220000000002,0.906111333333333,0.0866666666666667}, + {0.911111333333333,0.0983333333333334,0.908333333333331,0.0922220000000002}, + {0.913333333333332,0.106111333333333,0.911111333333333,0.0983333333333334}, + {0.916666666666667,0.115,0.913333333333332,0.106111333333333}, + {0.919444666666666,0.125555333333333,0.916666666666667,0.115}, + {0.922777999999999,0.137222,0.919444666666666,0.125555333333333}, + {0.925555333333333,0.151111333333333,0.922777999999999,0.137222}, + {0.928333333333332,0.166666666666667,0.925555333333333,0.151111333333333}, + {0.93,0.178888666666667,0.928333333333332,0.166666666666667}, + {0.931666666666665,0.191666666666666,0.93,0.178888666666667}, + {0.932777999999999,0.206111333333334,0.931666666666665,0.191666666666666}, + {0.933888666666666,0.221111333333334,0.932777999999999,0.206111333333334}, + {0.935,0.237778,0.933888666666666,0.221111333333334}, + {0.936111333333332,0.255,0.935,0.237778}, + {0.936666666666665,0.273888666666667,0.936111333333332,0.255}, + {0.937777999999999,0.293333333333334,0.936666666666665,0.273888666666667}, + {0.938333333333333,0.313333333333333,0.937777999999999,0.293333333333334}, + {0.938888666666666,0.335,0.938333333333333,0.313333333333333}, + {0.938888666666666,0.356666666666667,0.938888666666666,0.335}, + {0.939444666666667,0.379444666666667,0.938888666666666,0.356666666666667}, + {0.939444666666667,0.402778,0.939444666666667,0.379444666666667}, + {0.939999999999998,0.426666666666667,0.939444666666667,0.402778}, + {0.939999999999998,0.451111333333333,0.939999999999998,0.426666666666667}, + {0.939999999999998,0.475555333333334,0.939999999999998,0.451111333333333}, + {0.939999999999998,0.5,0.939999999999998,0.475555333333334}, + {0.939999999999998,0.524444666666666,0.939999999999998,0.5}, + {0.939999999999998,0.548888666666667,0.939999999999998,0.524444666666666}, + {0.939999999999998,0.573333333333334,0.939999999999998,0.548888666666667}, + {0.939444666666667,0.597222,0.939999999999998,0.573333333333334}, + {0.939444666666667,0.620555333333333,0.939444666666667,0.597222}, + {0.938888666666666,0.643333333333333,0.939444666666667,0.620555333333333}, + {0.938888666666666,0.665,0.938888666666666,0.643333333333333}, + {0.938333333333333,0.686666666666667,0.938888666666666,0.665}, + {0.937777999999999,0.706666666666666,0.938333333333333,0.686666666666667}, + {0.936666666666665,0.726111333333333,0.937777999999999,0.706666666666666}, + {0.936111333333332,0.745,0.936666666666665,0.726111333333333}, + {0.935,0.762222,0.936111333333332,0.745}, + {0.933888666666666,0.778888666666666,0.935,0.762222}, + {0.932777999999999,0.793888666666666,0.933888666666666,0.778888666666666}, + {0.931666666666665,0.808333333333334,0.932777999999999,0.793888666666666}, + {0.93,0.821111333333333,0.931666666666665,0.808333333333334}, + {0.928333333333332,0.833333333333333,0.93,0.821111333333333}, + {0.925555333333333,0.848888666666667,0.928333333333332,0.833333333333333}, + {0.922777999999999,0.862778,0.925555333333333,0.848888666666667}, + {0.919444666666666,0.874444666666667,0.922777999999999,0.862778}, + {0.916666666666667,0.885,0.919444666666666,0.874444666666667}, + {0.913333333333332,0.893888666666667,0.916666666666667,0.885}, + {0.911111333333333,0.901666666666667,0.913333333333332,0.893888666666667}, + {0.908333333333331,0.907778,0.911111333333333,0.901666666666667}, + {0.906111333333333,0.913333333333333,0.908333333333331,0.907778}, + {0.903888666666665,0.917778,0.906111333333333,0.913333333333333}, + {0.901666666666666,0.921111333333334,0.903888666666665,0.917778}, + {0.899444666666665,0.924444666666667,0.901666666666666,0.921111333333334}, + {0.897221999999999,0.927222,0.899444666666665,0.924444666666667}, + {0.894444666666665,0.929444666666667,0.897221999999999,0.927222}, + {0.891111333333332,0.931666666666667,0.894444666666665,0.929444666666667}, + {0.887778,0.933888666666667,0.891111333333332,0.931666666666667}, + {0.883333333333333,0.936111333333333,0.887778,0.933888666666667}, + {0.877777999999999,0.938333333333333,0.883333333333333,0.936111333333333}, + {0.871666666666665,0.941111333333333,0.877777999999999,0.938333333333333}, + {0.863888666666665,0.943333333333333,0.871666666666665,0.941111333333333}, + {0.854999999999999,0.946666666666667,0.863888666666665,0.943333333333333}, + {0.844444666666665,0.949444666666666,0.854999999999999,0.946666666666667}, + {0.832778,0.952778,0.844444666666665,0.949444666666666}, + {0.818888666666666,0.955555333333333,0.832778,0.952778}, + {0.803333333333332,0.958333333333333,0.818888666666666,0.955555333333333}, + {0.791111333333333,0.96,0.803333333333332,0.958333333333333}, + {0.778333333333331,0.961666666666667,0.791111333333333,0.96}, + {0.763888666666666,0.962778,0.778333333333331,0.961666666666667}, + {0.748888666666666,0.963888666666667,0.763888666666666,0.962778}, + {0.732221999999998,0.965,0.748888666666666,0.963888666666667}, + {0.714999999999999,0.966111333333333,0.732221999999998,0.965}, + {0.696111333333332,0.966666666666667,0.714999999999999,0.966111333333333}, + {0.676666666666665,0.967778,0.696111333333332,0.966666666666667}, + {0.656666666666666,0.968333333333333,0.676666666666665,0.967778}, + {0.634999999999998,0.968888666666667,0.656666666666666,0.968333333333333}, + {0.590555333333332,0.969444666666667,0.613333333333332,0.968888666666667}, + {0.543333333333332,0.97,0.567221999999999,0.969444666666667}, + {0.372777999999999,0.969444666666667,0.396666666666666,0.97}, + {0.326666666666666,0.968888666666667,0.349444666666666,0.969444666666667}, + {0.283333333333331,0.968333333333333,0.305,0.968888666666667}, + {0.263333333333333,0.967778,0.283333333333331,0.968333333333333}, + {0.243888666666666,0.966666666666667,0.263333333333333,0.967778}, + {0.224999999999999,0.966111333333333,0.243888666666666,0.966666666666667}, + {0.207778,0.965,0.224999999999999,0.966111333333333}, + {0.191111333333332,0.963888666666667,0.207778,0.965}, + {0.176111333333331,0.962778,0.191111333333332,0.963888666666667}, + {0.161666666666666,0.961666666666667,0.176111333333331,0.962778}, + {0.148888666666664,0.96,0.161666666666666,0.961666666666667}, + {0.136666666666666,0.958333333333333,0.148888666666664,0.96}, + {0.121111333333332,0.955555333333333,0.136666666666666,0.958333333333333}, + {0.107221999999998,0.952778,0.121111333333332,0.955555333333333}, + {0.0955553333333322,0.949444666666666,0.107221999999998,0.952778}, + {0.0849999999999985,0.946666666666667,0.0955553333333322,0.949444666666666}, + {0.0761113333333322,0.943333333333333,0.0849999999999985,0.946666666666667}, + {0.0683333333333328,0.941111333333333,0.0761113333333322,0.943333333333333}, + {0.0622219999999984,0.938333333333333,0.0683333333333328,0.941111333333333}, + {0.0566666666666649,0.936111333333333,0.0622219999999984,0.938333333333333}, + {0.0522219999999981,0.933888666666667,0.0566666666666649,0.936111333333333}, + {0.0488886666666654,0.931666666666667,0.0522219999999981,0.933888666666667}, + {0.0455553333333327,0.929444666666667,0.0488886666666654,0.931666666666667}, + {0.0427779999999984,0.927222,0.0455553333333327,0.929444666666667}, + {0.0405553333333325,0.924444666666667,0.0427779999999984,0.927222}, + {0.0383333333333316,0.921111333333334,0.0405553333333325,0.924444666666667}, + {0.0361113333333331,0.917778,0.0383333333333316,0.921111333333334}, + {0.0338886666666648,0.913333333333333,0.0361113333333331,0.917778}, + {0.0316666666666663,0.907778,0.0338886666666648,0.913333333333333}, + {0.0288886666666646,0.901666666666667,0.0316666666666663,0.907778}, + {0.0266666666666661,0.893888666666667,0.0288886666666646,0.901666666666667}, + {0.0233333333333311,0.885,0.0266666666666661,0.893888666666667}, + {0.0205553333333318,0.874444666666667,0.0233333333333311,0.885}, + {0.0172219999999991,0.862778,0.0205553333333318,0.874444666666667}, + {0.0144446666666648,0.848888666666667,0.0172219999999991,0.862778}, + {0.0116666666666655,0.833333333333333,0.0144446666666648,0.848888666666667}, + {0.00999999999999801,0.821111333333333,0.0116666666666655,0.833333333333333}, + {0.00833333333333286,0.808333333333334,0.00999999999999801,0.821111333333333}, + {0.00722199999999873,0.793888666666666,0.00833333333333286,0.808333333333334}, + {0.00611133333333195,0.778888666666666,0.00722199999999873,0.793888666666666}, + {0.00499999999999782,0.762222,0.00611133333333195,0.778888666666666}, + {0.00388866666666606,0.745,0.00499999999999782,0.762222}, + {0.00333333333333267,0.726111333333333,0.00388866666666606,0.745}, + {0.00222199999999854,0.706666666666666,0.00333333333333267,0.726111333333333}, + {0.00166666666666515,0.686666666666667,0.00222199999999854,0.706666666666666}, + {0.00111133333333176,0.665,0.00166666666666515,0.686666666666667}, + {0.00111133333333176,0.643333333333333,0.00111133333333176,0.665}, + {0.000555333333331021,0.620555333333333,0.00111133333333176,0.643333333333333}, + {0.000555333333331021,0.597222,0.000555333333331021,0.620555333333333}, + {0,0.573333333333334,0.000555333333331021,0.597222}, + {0,0.548888666666667,0,0.573333333333334}, + {0,0.524444666666666,0,0.548888666666667}, + {0,0.5,0,0.524444666666666}, + {0,0.475555333333334,0,0.5}, + {0,0.451111333333333,0,0.475555333333334}, + {0,0.426666666666667,0,0.451111333333333}, + {0.000555333333331021,0.402778,0,0.426666666666667}, + {0.000555333333331021,0.379444666666667,0.000555333333331021,0.402778}, + {0.00111133333333176,0.356666666666667,0.000555333333331021,0.379444666666667}, + {0.00111133333333176,0.335,0.00111133333333176,0.356666666666667}, + {0.00166666666666515,0.313333333333333,0.00111133333333176,0.335}, + {0.00222199999999854,0.293333333333334,0.00166666666666515,0.313333333333333}, + {0.00333333333333267,0.273888666666667,0.00222199999999854,0.293333333333334}, + {0.00388866666666606,0.255,0.00333333333333267,0.273888666666667}, + {0.00499999999999782,0.237778,0.00388866666666606,0.255}, + {0.00611133333333195,0.221111333333334,0.00499999999999782,0.237778}, + {0.00722199999999873,0.206111333333334,0.00611133333333195,0.221111333333334}, + {0.00833333333333286,0.191666666666666,0.00722199999999873,0.206111333333334}, + {0.00999999999999801,0.178888666666667,0.00833333333333286,0.191666666666666}, + {0.0116666666666655,0.166666666666667,0.00999999999999801,0.178888666666667}, + {0.0144446666666648,0.151111333333333,0.0116666666666655,0.166666666666667}, + {0.0172219999999991,0.137222,0.0144446666666648,0.151111333333333}, + {0.0205553333333318,0.125555333333333,0.0172219999999991,0.137222}, + {0.0233333333333311,0.115,0.0205553333333318,0.125555333333333}, + {0.0266666666666661,0.106111333333333,0.0233333333333311,0.115}, + {0.0288886666666646,0.0983333333333334,0.0266666666666661,0.106111333333333}, + {0.0316666666666663,0.0922220000000002,0.0288886666666646,0.0983333333333334}, + {0.0338886666666648,0.0866666666666667,0.0316666666666663,0.0922220000000002}, + {0.0361113333333331,0.0822219999999998,0.0338886666666648,0.0866666666666667}, + {0.0383333333333316,0.0788886666666666,0.0361113333333331,0.0822219999999998}, + {0.0405553333333325,0.0755553333333333,0.0383333333333316,0.0788886666666666}, + {0.0427779999999984,0.0727780000000002,0.0405553333333325,0.0755553333333333}, + {0.0455553333333327,0.0705553333333331,0.0427779999999984,0.0727780000000002}, + {0.0488886666666654,0.0683333333333334,0.0455553333333327,0.0705553333333331}, + {0.0522219999999981,0.0661113333333331,0.0488886666666654,0.0683333333333334}, + {0.0566666666666649,0.0638886666666666,0.0522219999999981,0.0661113333333331}, + {0.0622219999999984,0.0616666666666669,0.0566666666666649,0.0638886666666666}, + {0.0683333333333328,0.058888666666667,0.0622219999999984,0.0616666666666669}, + {0.0761113333333322,0.0566666666666666,0.0683333333333328,0.058888666666667}, + {0.0849999999999985,0.0533333333333335,0.0761113333333322,0.0566666666666666}, + {0.0955553333333322,0.0505553333333335,0.0849999999999985,0.0533333333333335}, + {0.107221999999998,0.0472220000000003,0.0955553333333322,0.0505553333333335}, + {0.121111333333332,0.0444446666666666,0.107221999999998,0.0472220000000003}, + {0.136666666666666,0.0416666666666667,0.121111333333332,0.0444446666666666}, + {0,0,0,0} +}; + +double Icon27[][4] = { + {0,0.458333333333333,0,0.541666666666667}, + {1,0.541666666666667,1,0.458333333333333}, + {0,0,0,0} +}; + +double Icon28[][4] = { + {0.0838893333333317,0.25,0.0822226666666666,0.251111333333334}, + {0.0822226666666666,0.251111333333334,0.0794446666666649,0.253333333333333}, + {0.0794446666666649,0.253333333333333,0.0738893333333337,0.256666666666667}, + {0.0738893333333337,0.256666666666667,0.0661113333333319,0.262222}, + {0.0661113333333319,0.262222,0.0572226666666656,0.268888666666667}, + {0.0572226666666656,0.268888666666667,0.0472226666666652,0.276666666666667}, + {0.0472226666666652,0.276666666666667,0.0366666666666665,0.284444666666667}, + {0.0366666666666665,0.284444666666667,0.0272226666666668,0.292778}, + {0.0272226666666668,0.292778,0.0188893333333316,0.300555333333334}, + {0.0188893333333316,0.300555333333334,0.0116666666666655,0.308888666666667}, + {0.0116666666666655,0.308888666666667,0.00666666666666534,0.316666666666666}, + {0.00666666666666534,0.316666666666666,0.00277799999999928,0.325}, + {0.00277799999999928,0.325,0.000555999999998373,0.333333333333333}, + {0.000555999999998373,0.333333333333333,0,0.341666666666667}, + {0,0.341666666666667,0,0.350555333333334}, + {0,0.350555333333334,0.00111133333333176,0.360555333333333}, + {0.00111133333333176,0.360555333333333,0.00277799999999928,0.371111333333333}, + {0.00277799999999928,0.371111333333333,0.00500000000000019,0.382778}, + {0.00500000000000019,0.382778,0.00833333333333286,0.395}, + {0.00833333333333286,0.395,0.0116666666666655,0.407778}, + {0.0116666666666655,0.407778,0.0155559999999989,0.420555333333333}, + {0.0155559999999989,0.420555333333333,0.019444666666665,0.433333333333334}, + {0.019444666666665,0.433333333333334,0.0233333333333334,0.445555333333333}, + {0.0233333333333334,0.445555333333333,0.0272226666666668,0.457778}, + {0.0272226666666668,0.457778,0.0305559999999995,0.468333333333333}, + {0.0305559999999995,0.468333333333333,0.0338893333333322,0.478333333333333}, + {0.0338893333333322,0.478333333333333,0.0366666666666665,0.486666666666667}, + {0.0366666666666665,0.486666666666667,0.0394446666666658,0.493888666666667}, + {0.0394446666666658,0.493888666666667,0.042222666666665,0.5}, + {0.042222666666665,0.5,0.0449999999999993,0.505}, + {0.0449999999999993,0.505,0.048333333333332,0.508333333333334}, + {0.048333333333332,0.508333333333334,0.0516666666666647,0.510555333333333}, + {0.0516666666666647,0.510555333333333,0.0555559999999981,0.511666666666667}, + {0.0555559999999981,0.511666666666667,0.0599999999999999,0.511111333333333}, + {0.0599999999999999,0.511111333333333,0.0638893333333333,0.51}, + {0.0638893333333333,0.51,0.0688893333333335,0.508333333333334}, + {0.0688893333333335,0.508333333333334,0.0727779999999996,0.506111333333333}, + {0.0727779999999996,0.506111333333333,0.0766666666666656,0.504444666666667}, + {0.0766666666666656,0.504444666666667,0.0799999999999983,0.502778}, + {0.0799999999999983,0.502778,0.0822226666666666,0.501111333333334}, + {0.0822226666666666,0.501111333333334,0.0833333333333333,0.500555333333333}, + {0.0833333333333333,0.500555333333333,0.0838893333333317,0.5}, + {0.187777999999999,0.333333333333333,0.187777999999999,0.335}, + {0.187777999999999,0.335,0.188889333333333,0.338333333333334}, + {0.188889333333333,0.338333333333334,0.189444666666667,0.345}, + {0.189444666666667,0.345,0.191111333333332,0.353888666666667}, + {0.191111333333332,0.353888666666667,0.192777999999999,0.365555333333334}, + {0.192777999999999,0.365555333333334,0.194444666666667,0.379444666666667}, + {0.194444666666667,0.379444666666667,0.196111333333332,0.394444666666667}, + {0.196111333333332,0.394444666666667,0.197778,0.41}, + {0.197778,0.41,0.198889333333334,0.425555333333334}, + {0.198889333333334,0.425555333333334,0.199444666666665,0.440555333333334}, + {0.199444666666665,0.440555333333334,0.198889333333334,0.453888666666667}, + {0.198889333333334,0.453888666666667,0.197778,0.466666666666667}, + {0.197778,0.466666666666667,0.195555999999999,0.478333333333333}, + {0.195555999999999,0.478333333333333,0.192222666666666,0.489444666666667}, + {0.192222666666666,0.489444666666667,0.187777999999999,0.5}, + {0.187777999999999,0.5,0.183333333333332,0.508333333333334}, + {0.183333333333332,0.508333333333334,0.177777999999999,0.516666666666667}, + {0.177777999999999,0.516666666666667,0.170556,0.525}, + {0.170556,0.525,0.162777999999998,0.533333333333333}, + {0.162777999999998,0.533333333333333,0.153889333333332,0.541666666666667}, + {0.153889333333332,0.541666666666667,0.144444666666665,0.55}, + {0.144444666666665,0.55,0.133333333333333,0.558333333333334}, + {0.133333333333333,0.558333333333334,0.122222666666666,0.566666666666666}, + {0.122222666666666,0.566666666666666,0.110556,0.575}, + {0.110556,0.575,0.0983333333333315,0.583333333333333}, + {0.0983333333333315,0.583333333333333,0.086666666666666,0.591666666666667}, + {0.086666666666666,0.591666666666667,0.0749999999999981,0.6}, + {0.0749999999999981,0.6,0.0644446666666667,0.608333333333333}, + {0.0644446666666667,0.608333333333333,0.0544446666666663,0.616666666666667}, + {0.0544446666666663,0.616666666666667,0.0449999999999993,0.625}, + {0.0449999999999993,0.625,0.0372226666666648,0.633333333333334}, + {0.0372226666666648,0.633333333333334,0.0311113333333329,0.641666666666667}, + {0.0311113333333329,0.641666666666667,0.0261113333333327,0.65}, + {0.0261113333333327,0.65,0.022778,0.658333333333333}, + {0.022778,0.658333333333333,0.0211113333333325,0.666666666666667}, + {0.0211113333333325,0.666666666666667,0.0211113333333325,0.676111333333333}, + {0.0211113333333325,0.676111333333333,0.0222226666666666,0.685555333333333}, + {0.0222226666666666,0.685555333333333,0.0255559999999993,0.695}, + {0.0255559999999993,0.695,0.0311113333333329,0.705}, + {0.0311113333333329,0.705,0.0372226666666648,0.715}, + {0.0372226666666648,0.715,0.0455560000000001,0.725555333333334}, + {0.0455560000000001,0.725555333333334,0.0538893333333329,0.736111333333334}, + {0.0538893333333329,0.736111333333334,0.0638893333333333,0.747222}, + {0.0638893333333333,0.747222,0.0738893333333337,0.757778}, + {0.0738893333333337,0.757778,0.0838893333333317,0.768333333333333}, + {0.0838893333333317,0.768333333333333,0.0944446666666655,0.778888666666666}, + {0.0944446666666655,0.778888666666666,0.103889333333332,0.788888666666667}, + {0.103889333333332,0.788888666666667,0.113333333333332,0.798333333333333}, + {0.113333333333332,0.798333333333333,0.121666666666665,0.807222}, + {0.121666666666665,0.807222,0.128889333333333,0.815}, + {0.128889333333333,0.815,0.135555999999999,0.822222}, + {0.135555999999999,0.822222,0.141111333333332,0.828333333333333}, + {0.141111333333332,0.828333333333333,0.146111333333333,0.833333333333333}, + {0.146111333333333,0.833333333333333,0.151666666666666,0.838333333333334}, + {0.151666666666666,0.838333333333334,0.156666666666666,0.841666666666667}, + {0.156666666666666,0.841666666666667,0.161111333333333,0.843888666666667}, + {0.161111333333333,0.843888666666667,0.164999999999999,0.845}, + {0.164999999999999,0.845,0.169444666666666,0.844444666666667}, + {0.169444666666666,0.844444666666667,0.173333333333332,0.843333333333333}, + {0.173333333333332,0.843333333333333,0.176666666666665,0.841666666666667}, + {0.176666666666665,0.841666666666667,0.18,0.839444666666667}, + {0.18,0.839444666666667,0.182777999999999,0.837778}, + {0.182777999999999,0.837778,0.185,0.836111333333333}, + {0.185,0.836111333333333,0.186666666666665,0.834444666666667}, + {0.186666666666665,0.834444666666667,0.187222666666666,0.833888666666667}, + {0.187222666666666,0.833888666666667,0.187777999999999,0.833333333333333}, + {0.354444666666666,1,0.354444666666666,0.916666666666667}, + {0.0211113333333325,0.916666666666667,0.0211113333333325,1}, + {0.0833333333333333,0.251666666666667,0.0838893333333317,0.25}, + {0.0827779999999999,0.255555333333334,0.0833333333333333,0.251666666666667}, + {0.0822226666666666,0.262222,0.0827779999999999,0.255555333333334}, + {0.0811113333333324,0.270555333333334,0.0822226666666666,0.262222}, + {0.0794446666666649,0.280555333333333,0.0811113333333324,0.270555333333334}, + {0.0788893333333315,0.291111333333333,0.0794446666666649,0.280555333333333}, + {0.0783333333333331,0.301111333333333,0.0788893333333315,0.291111333333333}, + {0.0783333333333331,0.310555333333333,0.0783333333333331,0.301111333333333}, + {0.0794446666666649,0.318888666666667,0.0783333333333331,0.310555333333333}, + {0.0811113333333324,0.326111333333333,0.0794446666666649,0.318888666666667}, + {0.0838893333333317,0.333333333333333,0.0811113333333324,0.326111333333333}, + {0.0872226666666667,0.339444666666667,0.0838893333333317,0.333333333333333}, + {0.0916666666666662,0.345,0.0872226666666667,0.339444666666667}, + {0.0972226666666648,0.351111333333333,0.0916666666666662,0.345}, + {0.104444666666666,0.357222,0.0972226666666648,0.351111333333333}, + {0.111666666666667,0.363333333333333,0.104444666666666,0.357222}, + {0.12,0.368888666666667,0.111666666666667,0.363333333333333}, + {0.128333333333333,0.375,0.12,0.368888666666667}, + {0.136666666666666,0.381111333333333,0.128333333333333,0.375}, + {0.144999999999998,0.386666666666667,0.136666666666666,0.381111333333333}, + {0.152222666666667,0.392778,0.144999999999998,0.386666666666667}, + {0.157777999999998,0.398888666666667,0.152222666666667,0.392778}, + {0.162777999999998,0.405,0.157777999999998,0.398888666666667}, + {0.165556,0.410555333333334,0.162777999999998,0.405}, + {0.167222666666665,0.416666666666667,0.165556,0.410555333333334}, + {0.167222666666665,0.423888666666667,0.167222666666665,0.416666666666667}, + {0.164999999999999,0.431111333333333,0.167222666666665,0.423888666666667}, + {0.160556,0.438333333333333,0.164999999999999,0.431111333333333}, + {0.154999999999999,0.446111333333333,0.160556,0.438333333333333}, + {0.148333333333333,0.454444666666667,0.154999999999999,0.446111333333333}, + {0.140555999999999,0.462222,0.148333333333333,0.454444666666667}, + {0.132777999999999,0.47,0.140555999999999,0.462222}, + {0.125555999999998,0.477778,0.132777999999999,0.47}, + {0.118889333333333,0.484444666666667,0.125555999999998,0.477778}, + {0.112777999999999,0.490555333333334,0.118889333333333,0.484444666666667}, + {0.108333333333332,0.496111333333333,0.112777999999999,0.490555333333334}, + {0.104444666666666,0.5,0.108333333333332,0.496111333333333}, + {0.101666666666667,0.502778,0.104444666666666,0.5}, + {0.0994446666666657,0.504444666666667,0.101666666666667,0.502778}, + {0.0972226666666648,0.505555333333334,0.0994446666666657,0.504444666666667}, + {0.0911113333333328,0.505,0.0927780000000003,0.505555333333334}, + {0.0894446666666653,0.503888666666667,0.0911113333333328,0.505}, + {0.0877780000000001,0.503333333333333,0.0894446666666653,0.503888666666667}, + {0.0861113333333326,0.502222,0.0877780000000001,0.503333333333333}, + {0.0849999999999985,0.501111333333334,0.0861113333333326,0.502222}, + {0.0844446666666651,0.500555333333333,0.0849999999999985,0.501111333333334}, + {0.0838893333333317,0.5,0.0844446666666651,0.500555333333333}, + {0.208333333333333,0.0416666666666667,0.208889333333332,0.0433333333333337}, + {0.208889333333332,0.0433333333333337,0.209444666666665,0.0472220000000003}, + {0.209444666666665,0.0472220000000003,0.209999999999998,0.0538886666666668}, + {0.209999999999998,0.0538886666666668,0.211111333333333,0.0622220000000002}, + {0.211111333333333,0.0622220000000002,0.212778,0.072222}, + {0.212778,0.072222,0.213333333333334,0.082778}, + {0.213333333333334,0.082778,0.213889333333332,0.0927779999999998}, + {0.213889333333332,0.0927779999999998,0.213889333333332,0.102222}, + {0.213889333333332,0.102222,0.212778,0.110555333333333}, + {0.212778,0.110555333333333,0.211111333333333,0.117778}, + {0.211111333333333,0.117778,0.208333333333333,0.125}, + {0.208333333333333,0.125,0.204999999999998,0.131111333333333}, + {0.204999999999998,0.131111333333333,0.200555999999999,0.136666666666667}, + {0.200555999999999,0.136666666666667,0.195,0.142778}, + {0.195,0.142778,0.187777999999999,0.148888666666667}, + {0.187777999999999,0.148888666666667,0.180555999999998,0.155}, + {0.180555999999998,0.155,0.172222666666665,0.160555333333334}, + {0.172222666666665,0.160555333333334,0.163889333333332,0.166666666666667}, + {0.163889333333332,0.166666666666667,0.155556,0.172778}, + {0.155556,0.172778,0.147222666666667,0.178333333333333}, + {0.147222666666667,0.178333333333333,0.139999999999998,0.184444666666667}, + {0.139999999999998,0.184444666666667,0.134444666666667,0.190555333333334}, + {0.134444666666667,0.190555333333334,0.129444666666667,0.196666666666667}, + {0.129444666666667,0.196666666666667,0.126666666666665,0.202222}, + {0.126666666666665,0.202222,0.125,0.208333333333333}, + {0.125,0.208333333333333,0.125,0.215555333333333}, + {0.125,0.215555333333333,0.127222666666666,0.222778}, + {0.127222666666666,0.222778,0.131666666666665,0.23}, + {0.131666666666665,0.23,0.137222666666666,0.237778}, + {0.137222666666666,0.237778,0.143889333333332,0.246111333333333}, + {0.143889333333332,0.246111333333333,0.151666666666666,0.253888666666667}, + {0.151666666666666,0.253888666666667,0.159444666666666,0.261666666666667}, + {0.159444666666666,0.261666666666667,0.166666666666667,0.269444666666667}, + {0.166666666666667,0.269444666666667,0.173333333333332,0.276111333333333}, + {0.173333333333332,0.276111333333333,0.179444666666666,0.282222}, + {0.179444666666666,0.282222,0.183889333333333,0.287778}, + {0.183889333333333,0.287778,0.187777999999999,0.291666666666667}, + {0.187777999999999,0.291666666666667,0.190555999999998,0.294444666666667}, + {0.190555999999998,0.294444666666667,0.192777999999999,0.296111333333334}, + {0.192777999999999,0.296111333333334,0.195,0.297222}, + {0.199444666666665,0.297222,0.201111333333332,0.296666666666667}, + {0.201111333333332,0.296666666666667,0.202778,0.295555333333333}, + {0.202778,0.295555333333333,0.204444666666665,0.295}, + {0.204444666666665,0.295,0.206111333333332,0.293888666666666}, + {0.206111333333332,0.293888666666666,0.207222666666667,0.292778}, + {0.207222666666667,0.292778,0.207778,0.292222}, + {0.207778,0.292222,0.208333333333333,0.291666666666667}, + {0.188889333333333,0.333888666666667,0.187777999999999,0.333333333333333}, + {0.191111333333332,0.335555333333333,0.188889333333333,0.333888666666667}, + {0.195555999999999,0.338888666666667,0.191111333333332,0.335555333333333}, + {0.202222666666666,0.342778,0.195555999999999,0.338888666666667}, + {0.210555999999999,0.348888666666667,0.202222666666666,0.342778}, + {0.221111333333333,0.356666666666667,0.210555999999999,0.348888666666667}, + {0.233889333333333,0.365555333333334,0.221111333333333,0.356666666666667}, + {0.247222666666666,0.375555333333333,0.233889333333333,0.365555333333334}, + {0.261666666666665,0.386111333333333,0.247222666666666,0.375555333333333}, + {0.275555999999999,0.397222,0.261666666666665,0.386111333333333}, + {0.289444666666666,0.408888666666667,0.275555999999999,0.397222}, + {0.302777999999999,0.420555333333333,0.289444666666666,0.408888666666667}, + {0.315,0.431666666666667,0.302777999999999,0.420555333333333}, + {0.325555999999999,0.442778,0.315,0.431666666666667}, + {0.334444666666665,0.453888666666667,0.325555999999999,0.442778}, + {0.341666666666666,0.465,0.334444666666665,0.453888666666667}, + {0.347777999999998,0.476111333333333,0.341666666666666,0.465}, + {0.351666666666667,0.487778,0.347777999999998,0.476111333333333}, + {0.354444666666666,0.5,0.351666666666667,0.487778}, + {0.355556,0.510555333333333,0.354444666666666,0.5}, + {0.356111333333333,0.522222,0.355556,0.510555333333333}, + {0.355556,0.534444666666667,0.356111333333333,0.522222}, + {0.354444666666666,0.547222,0.355556,0.534444666666667}, + {0.352777999999998,0.561111333333334,0.354444666666666,0.547222}, + {0.349999999999999,0.575555333333333,0.352777999999998,0.561111333333334}, + {0.346666666666666,0.591111333333333,0.349999999999999,0.575555333333333}, + {0.343333333333331,0.607222,0.346666666666666,0.591111333333333}, + {0.338889333333332,0.623333333333333,0.343333333333331,0.607222}, + {0.334444666666665,0.64,0.338889333333332,0.623333333333333}, + {0.329444666666665,0.657222,0.334444666666665,0.64}, + {0.324444666666665,0.674444666666667,0.329444666666665,0.657222}, + {0.319444666666667,0.691666666666666,0.324444666666665,0.674444666666667}, + {0.314444666666667,0.708333333333333,0.319444666666667,0.691666666666666}, + {0.308889333333333,0.725,0.314444666666667,0.708333333333333}, + {0.303889333333333,0.740555333333334,0.308889333333333,0.725}, + {0.299444666666666,0.756111333333333,0.303889333333333,0.740555333333334}, + {0.294444666666666,0.77,0.299444666666666,0.756111333333333}, + {0.289999999999999,0.783888666666667,0.294444666666666,0.77}, + {0.286111333333333,0.796111333333334,0.289999999999999,0.783888666666667}, + {0.281666666666666,0.807222,0.286111333333333,0.796111333333334}, + {0.278333333333334,0.817222,0.281666666666666,0.807222}, + {0.274444666666665,0.825555333333333,0.278333333333334,0.817222}, + {0.271111333333332,0.833333333333333,0.274444666666665,0.825555333333333}, + {0.266666666666666,0.841666666666667,0.271111333333332,0.833333333333333}, + {0.261666666666665,0.847778,0.266666666666666,0.841666666666667}, + {0.256666666666665,0.852222,0.261666666666665,0.847778}, + {0.251111333333332,0.855,0.256666666666665,0.852222}, + {0.245,0.856111333333333,0.251111333333332,0.855}, + {0.232222666666665,0.855,0.238889333333333,0.856111333333333}, + {0.224999999999999,0.852778,0.232222666666665,0.855}, + {0.218333333333331,0.85,0.224999999999999,0.852778}, + {0.211666666666666,0.846666666666666,0.218333333333331,0.85}, + {0.205555999999999,0.843888666666667,0.211666666666666,0.846666666666666}, + {0.199999999999998,0.840555333333333,0.205555999999999,0.843888666666667}, + {0.195555999999999,0.837778,0.199999999999998,0.840555333333333}, + {0.192222666666666,0.836111333333333,0.195555999999999,0.837778}, + {0.189444666666667,0.834444666666667,0.192222666666666,0.836111333333333}, + {0.188333333333333,0.833888666666667,0.189444666666667,0.834444666666667}, + {0.187777999999999,0.833333333333333,0.188333333333333,0.833888666666667}, + {0.209999999999998,0.0427780000000002,0.208333333333333,0.0416666666666667}, + {0.212778,0.0449999999999999,0.209999999999998,0.0427780000000002}, + {0.218333333333331,0.0483333333333332,0.212778,0.0449999999999999}, + {0.226111333333333,0.0538886666666668,0.218333333333331,0.0483333333333332}, + {0.234999999999999,0.0605553333333333,0.226111333333333,0.0538886666666668}, + {0.245,0.0683333333333334,0.234999999999999,0.0605553333333333}, + {0.255555999999999,0.0761113333333334,0.245,0.0683333333333334}, + {0.264999999999998,0.0844446666666669,0.255555999999999,0.0761113333333334}, + {0.273333333333333,0.0922220000000002,0.264999999999998,0.0844446666666669}, + {0.280555999999999,0.100555333333334,0.273333333333333,0.0922220000000002}, + {0.285556,0.108333333333333,0.280555999999999,0.100555333333334}, + {0.289444666666666,0.116666666666667,0.285556,0.108333333333333}, + {0.291666666666667,0.125,0.289444666666666,0.116666666666667}, + {0.292222666666665,0.133333333333334,0.291666666666667,0.125}, + {0.292222666666665,0.142222,0.292222666666665,0.133333333333334}, + {0.291111333333333,0.152222,0.292222666666665,0.142222}, + {0.289444666666666,0.162778,0.291111333333333,0.152222}, + {0.287222666666665,0.174444666666667,0.289444666666666,0.162778}, + {0.283889333333332,0.186666666666667,0.287222666666665,0.174444666666667}, + {0.280555999999999,0.199444666666666,0.283889333333332,0.186666666666667}, + {0.276666666666666,0.212222,0.280555999999999,0.199444666666666}, + {0.272778,0.225,0.276666666666666,0.212222}, + {0.268889333333332,0.237222,0.272778,0.225}, + {0.264999999999998,0.249444666666667,0.268889333333332,0.237222}, + {0.261666666666665,0.26,0.264999999999998,0.249444666666667}, + {0.258333333333333,0.27,0.261666666666665,0.26}, + {0.255555999999999,0.278333333333334,0.258333333333333,0.27}, + {0.252777999999999,0.285555333333334,0.255555999999999,0.278333333333334}, + {0.25,0.291666666666667,0.252777999999999,0.285555333333334}, + {0.247222666666666,0.296666666666667,0.25,0.291666666666667}, + {0.243889333333333,0.3,0.247222666666666,0.296666666666667}, + {0.240556,0.302222,0.243889333333333,0.3}, + {0.236666666666667,0.303333333333333,0.240556,0.302222}, + {0.232222666666665,0.302778,0.236666666666667,0.303333333333333}, + {0.228333333333332,0.301666666666667,0.232222666666665,0.302778}, + {0.223333333333332,0.3,0.228333333333332,0.301666666666667}, + {0.219444666666665,0.297778,0.223333333333332,0.3}, + {0.215555999999999,0.296111333333334,0.219444666666665,0.297778}, + {0.212222666666667,0.294444666666667,0.215555999999999,0.296111333333334}, + {0.209999999999998,0.292778,0.212222666666667,0.294444666666667}, + {0.208889333333332,0.292222,0.209999999999998,0.292778}, + {0.208333333333333,0.291666666666667,0.208889333333332,0.292222}, + {0,0,0,0} +}; + +double Icon29[][4] = { + {0,0.75,0,1}, + {1,1,1,0.75}, + {0.00333333333333267,0.750555333333333,0.00111133333333413,0.75}, + {0.0072220000000011,0.751111333333334,0.00333333333333267,0.750555333333333}, + {0.0127779999999997,0.751666666666667,0.0072220000000011,0.751111333333334}, + {0.0194446666666674,0.752778,0.0127779999999997,0.751666666666667}, + {0.0438886666666676,0.752222,0.0355553333333323,0.752778}, + {0.0522220000000004,0.750555333333333,0.0438886666666676,0.752222}, + {0.0599999999999999,0.747778,0.0522220000000004,0.750555333333333}, + {0.0677779999999994,0.743333333333334,0.0599999999999999,0.747778}, + {0.0755553333333339,0.737222,0.0677779999999994,0.743333333333334}, + {0.0833333333333333,0.729444666666667,0.0755553333333339,0.737222}, + {0.0888886666666669,0.723333333333333,0.0833333333333333,0.729444666666667}, + {0.0944446666666678,0.716111333333333,0.0888886666666669,0.723333333333333}, + {0.099999999999999,0.708333333333333,0.0944446666666678,0.716111333333333}, + {0.106666666666667,0.698888666666667,0.099999999999999,0.708333333333333}, + {0.112778000000001,0.688888666666667,0.106666666666667,0.698888666666667}, + {0.119444666666666,0.678333333333333,0.112778000000001,0.688888666666667}, + {0.126666666666668,0.666666666666667,0.119444666666666,0.678333333333333}, + {0.133333333333333,0.653888666666666,0.126666666666668,0.666666666666667}, + {0.140555333333334,0.641111333333334,0.133333333333333,0.653888666666666}, + {0.147778,0.628333333333333,0.140555333333334,0.641111333333334}, + {0.155555333333332,0.614444666666667,0.147778,0.628333333333333}, + {0.162778000000001,0.601111333333333,0.155555333333332,0.614444666666667}, + {0.169999999999999,0.588333333333334,0.162778000000001,0.601111333333333}, + {0.177222,0.575555333333333,0.169999999999999,0.588333333333334}, + {0.184444666666667,0.562778,0.177222,0.575555333333333}, + {0.191666666666668,0.551111333333333,0.184444666666667,0.562778}, + {0.198333333333333,0.540555333333333,0.191666666666668,0.551111333333333}, + {0.205000000000001,0.530555333333333,0.198333333333333,0.540555333333333}, + {0.211666666666666,0.521111333333333,0.205000000000001,0.530555333333333}, + {0.217778,0.513333333333333,0.211666666666666,0.521111333333333}, + {0.223888666666667,0.506111333333333,0.217778,0.513333333333333}, + {0.229444666666666,0.5,0.223888666666667,0.506111333333333}, + {0.239444666666666,0.491111333333333,0.229444666666666,0.5}, + {0.249444666666667,0.484444666666667,0.239444666666666,0.491111333333333}, + {0.258888666666666,0.480555333333333,0.249444666666667,0.484444666666667}, + {0.267778,0.478333333333333,0.258888666666666,0.480555333333333}, + {0.276666666666666,0.477222,0.267778,0.478333333333333}, + {0.302222,0.477778,0.293888666666668,0.477222}, + {0.310555333333333,0.478333333333333,0.302222,0.477778}, + {0.318333333333333,0.478888666666667,0.310555333333333,0.478333333333333}, + {0.333333333333333,0.479444666666667,0.326111333333332,0.478888666666667}, + {0.341111333333333,0.481111333333333,0.333333333333333,0.479444666666667}, + {0.349444666666666,0.484444666666667,0.341111333333333,0.481111333333333}, + {0.357778000000001,0.489444666666667,0.349444666666666,0.484444666666667}, + {0.366111333333334,0.495555333333333,0.357778000000001,0.489444666666667}, + {0.375,0.502778,0.366111333333334,0.495555333333333}, + {0.383333333333333,0.509444666666666,0.375,0.502778}, + {0.390000000000001,0.515555333333333,0.383333333333333,0.509444666666666}, + {0.393888666666667,0.518888666666667,0.390000000000001,0.515555333333333}, + {0.395555333333334,0.521111333333333,0.393888666666667,0.518888666666667}, + {0.393888666666667,0.520555333333334,0.395555333333334,0.521111333333333}, + {0.388888666666666,0.519444666666667,0.393888666666667,0.520555333333334}, + {0.381666666666668,0.518333333333333,0.388888666666666,0.519444666666667}, + {0.373333333333332,0.516666666666667,0.381666666666668,0.518333333333333}, + {0.363888666666665,0.515555333333333,0.373333333333332,0.516666666666667}, + {0.346666666666666,0.516111333333334,0.354444666666666,0.515555333333333}, + {0.339444666666668,0.517778,0.346666666666666,0.516111333333334}, + {0.333333333333333,0.521111333333333,0.339444666666668,0.517778}, + {0.328333333333333,0.525,0.333333333333333,0.521111333333333}, + {0.322221999999999,0.53,0.328333333333333,0.525}, + {0.316666666666668,0.536111333333333,0.322221999999999,0.53}, + {0.31,0.542778,0.316666666666668,0.536111333333333}, + {0.303333333333332,0.549444666666667,0.31,0.542778}, + {0.296111333333333,0.556666666666667,0.303333333333332,0.549444666666667}, + {0.289999999999999,0.564444666666667,0.296111333333333,0.556666666666667}, + {0.283888666666667,0.572222,0.289999999999999,0.564444666666667}, + {0.278333333333334,0.58,0.283888666666667,0.572222}, + {0.274444666666668,0.587778,0.278333333333334,0.58}, + {0.272221999999999,0.596111333333334,0.274444666666668,0.587778}, + {0.271111333333332,0.604444666666667,0.272221999999999,0.596111333333334}, + {0.271666666666666,0.612222,0.271111333333332,0.604444666666667}, + {0.273333333333333,0.620555333333333,0.271666666666666,0.612222}, + {0.276111333333333,0.629444666666667,0.273333333333333,0.620555333333333}, + {0.278888666666667,0.638888666666666,0.276111333333333,0.629444666666667}, + {0.282778,0.648888666666667,0.278888666666667,0.638888666666666}, + {0.287222,0.659444666666667,0.282778,0.648888666666667}, + {0.291666666666667,0.67,0.287222,0.659444666666667}, + {0.296111333333333,0.680555333333333,0.291666666666667,0.67}, + {0.301666666666667,0.690555333333334,0.296111333333333,0.680555333333333}, + {0.306666666666667,0.7,0.301666666666667,0.690555333333334}, + {0.312777999999999,0.708888666666667,0.306666666666667,0.7}, + {0.318888666666666,0.716666666666667,0.312777999999999,0.708888666666667}, + {0.325555333333334,0.723888666666667,0.318888666666666,0.716666666666667}, + {0.333333333333333,0.729444666666667,0.325555333333334,0.723888666666667}, + {0.341111333333333,0.733333333333333,0.333333333333333,0.729444666666667}, + {0.349999999999999,0.737222,0.341111333333333,0.733333333333333}, + {0.359999999999999,0.74,0.349999999999999,0.737222}, + {0.372222000000001,0.742222,0.359999999999999,0.74}, + {0.386111333333334,0.743888666666667,0.372222000000001,0.742222}, + {0.401111333333333,0.745555333333333,0.386111333333334,0.743888666666667}, + {0.417222,0.746666666666667,0.401111333333333,0.745555333333333}, + {0.433888666666666,0.747778,0.417222,0.746666666666667}, + {0.45,0.748333333333333,0.433888666666666,0.747778}, + {0.464444666666668,0.748888666666667,0.45,0.748333333333333}, + {0.477222,0.749444666666667,0.464444666666668,0.748888666666667}, + {0.494444666666666,0.75,0.487222,0.749444666666667}, + {0.503333333333333,0.750555333333333,0.501111333333334,0.75}, + {0.507222000000001,0.751111333333334,0.503333333333333,0.750555333333333}, + {0.512778,0.751666666666667,0.507222000000001,0.751111333333334}, + {0.519444666666667,0.752778,0.512778,0.751666666666667}, + {0.543888666666668,0.752222,0.535555333333332,0.752778}, + {0.552222,0.750555333333333,0.543888666666668,0.752222}, + {0.56,0.747778,0.552222,0.750555333333333}, + {0.567777999999999,0.743333333333334,0.56,0.747778}, + {0.575555333333334,0.737222,0.567777999999999,0.743333333333334}, + {0.583333333333333,0.729444666666667,0.575555333333334,0.737222}, + {0.588888666666667,0.723333333333333,0.583333333333333,0.729444666666667}, + {0.594444666666668,0.716111333333333,0.588888666666667,0.723333333333333}, + {0.599999999999999,0.708333333333333,0.594444666666668,0.716111333333333}, + {0.606666666666667,0.698888666666667,0.599999999999999,0.708333333333333}, + {0.612778000000001,0.688888666666667,0.606666666666667,0.698888666666667}, + {0.619444666666666,0.678333333333333,0.612778000000001,0.688888666666667}, + {0.626666666666667,0.666666666666667,0.619444666666666,0.678333333333333}, + {0.633333333333333,0.653888666666666,0.626666666666667,0.666666666666667}, + {0.640555333333334,0.641111333333334,0.633333333333333,0.653888666666666}, + {0.647778,0.628333333333333,0.640555333333334,0.641111333333334}, + {0.655555333333332,0.614444666666667,0.647778,0.628333333333333}, + {0.662778000000001,0.601111333333333,0.655555333333332,0.614444666666667}, + {0.669999999999999,0.588333333333334,0.662778000000001,0.601111333333333}, + {0.677222,0.575555333333333,0.669999999999999,0.588333333333334}, + {0.684444666666666,0.562778,0.677222,0.575555333333333}, + {0.691666666666668,0.551111333333333,0.684444666666666,0.562778}, + {0.698333333333333,0.540555333333333,0.691666666666668,0.551111333333333}, + {0.705000000000001,0.530555333333333,0.698333333333333,0.540555333333333}, + {0.711666666666666,0.521111333333333,0.705000000000001,0.530555333333333}, + {0.717778,0.513333333333333,0.711666666666666,0.521111333333333}, + {0.723888666666667,0.506111333333333,0.717778,0.513333333333333}, + {0.729444666666666,0.5,0.723888666666667,0.506111333333333}, + {0.739444666666666,0.491111333333333,0.729444666666666,0.5}, + {0.749444666666667,0.484444666666667,0.739444666666666,0.491111333333333}, + {0.758888666666666,0.480555333333333,0.749444666666667,0.484444666666667}, + {0.767778,0.478333333333333,0.758888666666666,0.480555333333333}, + {0.776666666666666,0.477222,0.767778,0.478333333333333}, + {0.802222,0.477778,0.793888666666668,0.477222}, + {0.810555333333333,0.478333333333333,0.802222,0.477778}, + {0.818333333333333,0.478888666666667,0.810555333333333,0.478333333333333}, + {0.833333333333333,0.479444666666667,0.826111333333332,0.478888666666667}, + {0.841111333333333,0.481111333333333,0.833333333333333,0.479444666666667}, + {0.849444666666666,0.484444666666667,0.841111333333333,0.481111333333333}, + {0.857778000000001,0.489444666666667,0.849444666666666,0.484444666666667}, + {0.866111333333334,0.495555333333333,0.857778000000001,0.489444666666667}, + {0.875,0.502778,0.866111333333334,0.495555333333333}, + {0.883333333333333,0.509444666666666,0.875,0.502778}, + {0.890000000000001,0.515555333333333,0.883333333333333,0.509444666666666}, + {0.893888666666667,0.518888666666667,0.890000000000001,0.515555333333333}, + {0.895555333333334,0.521111333333333,0.893888666666667,0.518888666666667}, + {0.893888666666667,0.520555333333334,0.895555333333334,0.521111333333333}, + {0.888888666666666,0.519444666666667,0.893888666666667,0.520555333333334}, + {0.881666666666668,0.518333333333333,0.888888666666666,0.519444666666667}, + {0.873333333333332,0.516666666666667,0.881666666666668,0.518333333333333}, + {0.863888666666665,0.515555333333333,0.873333333333332,0.516666666666667}, + {0.846666666666666,0.516111333333334,0.854444666666666,0.515555333333333}, + {0.839444666666668,0.517778,0.846666666666666,0.516111333333334}, + {0.833333333333333,0.521111333333333,0.839444666666668,0.517778}, + {0.828333333333333,0.525,0.833333333333333,0.521111333333333}, + {0.822221999999999,0.53,0.828333333333333,0.525}, + {0.816666666666668,0.536111333333333,0.822221999999999,0.53}, + {0.81,0.542778,0.816666666666668,0.536111333333333}, + {0.803333333333332,0.549444666666667,0.81,0.542778}, + {0.796111333333333,0.556666666666667,0.803333333333332,0.549444666666667}, + {0.789999999999999,0.564444666666667,0.796111333333333,0.556666666666667}, + {0.783888666666667,0.572222,0.789999999999999,0.564444666666667}, + {0.778333333333334,0.58,0.783888666666667,0.572222}, + {0.774444666666668,0.587778,0.778333333333334,0.58}, + {0.772221999999999,0.596111333333334,0.774444666666668,0.587778}, + {0.771111333333332,0.604444666666667,0.772221999999999,0.596111333333334}, + {0.771666666666666,0.612222,0.771111333333332,0.604444666666667}, + {0.773333333333333,0.620555333333333,0.771666666666666,0.612222}, + {0.776111333333333,0.629444666666667,0.773333333333333,0.620555333333333}, + {0.778888666666667,0.638888666666666,0.776111333333333,0.629444666666667}, + {0.782778,0.648888666666667,0.778888666666667,0.638888666666666}, + {0.787222,0.659444666666667,0.782778,0.648888666666667}, + {0.791666666666667,0.67,0.787222,0.659444666666667}, + {0.796111333333333,0.680555333333333,0.791666666666667,0.67}, + {0.801666666666667,0.690555333333334,0.796111333333333,0.680555333333333}, + {0.806666666666667,0.7,0.801666666666667,0.690555333333334}, + {0.812777999999999,0.708888666666667,0.806666666666667,0.7}, + {0.818888666666666,0.716666666666667,0.812777999999999,0.708888666666667}, + {0.825555333333334,0.723888666666667,0.818888666666666,0.716666666666667}, + {0.833333333333333,0.729444666666667,0.825555333333334,0.723888666666667}, + {0.841111333333333,0.733333333333333,0.833333333333333,0.729444666666667}, + {0.849999999999999,0.737222,0.841111333333333,0.733333333333333}, + {0.859999999999999,0.74,0.849999999999999,0.737222}, + {0.872222000000001,0.742222,0.859999999999999,0.74}, + {0.886111333333334,0.743888666666667,0.872222000000001,0.742222}, + {0.901111333333333,0.745555333333333,0.886111333333334,0.743888666666667}, + {0.917222,0.746666666666667,0.901111333333333,0.745555333333333}, + {0.933888666666666,0.747778,0.917222,0.746666666666667}, + {0.95,0.748333333333333,0.933888666666666,0.747778}, + {0.964444666666668,0.748888666666667,0.95,0.748333333333333}, + {0.977222,0.749444666666667,0.964444666666668,0.748888666666667}, + {0.994444666666666,0.75,0.987222,0.749444666666667}, + {0,0,0,0} +}; + +double Icon30[][4] = { + {0.103888666666667,0.687222,0,0.708333333333333}, + {0.125,0.583333333333333,0.103888666666667,0.687222}, + {0.145555333333334,0.687222,0.125,0.583333333333333}, + {0.25,0.708333333333333,0.145555333333334,0.687222}, + {0.145555333333334,0.728888666666667,0.25,0.708333333333333}, + {0.125,0.833333333333333,0.145555333333334,0.728888666666667}, + {0.103888666666667,0.728888666666667,0.125,0.833333333333333}, + {0,0.708333333333333,0.103888666666667,0.728888666666667}, + {0.291666666666667,0.458333333333333,0.0833333333333333,0.5}, + {0.333333333333333,0.25,0.291666666666667,0.458333333333333}, + {0.375,0.458333333333333,0.333333333333333,0.25}, + {0.583333333333333,0.5,0.375,0.458333333333333}, + {0.375,0.541666666666667,0.583333333333333,0.5}, + {0.333333333333333,0.75,0.375,0.541666666666667}, + {0.291666666666667,0.541666666666667,0.333333333333333,0.75}, + {0.0833333333333333,0.5,0.291666666666667,0.541666666666667}, + {0.520555333333334,0.270555333333334,0.416666666666667,0.291666666666667}, + {0.541666666666667,0.166666666666667,0.520555333333334,0.270555333333334}, + {0.562222000000001,0.270555333333334,0.541666666666667,0.166666666666667}, + {0.666666666666667,0.291666666666667,0.562222000000001,0.270555333333334}, + {0.562222000000001,0.312222,0.666666666666667,0.291666666666667}, + {0.541666666666667,0.416666666666667,0.562222000000001,0.312222}, + {0.520555333333334,0.312222,0.541666666666667,0.416666666666667}, + {0.416666666666667,0.291666666666667,0.520555333333334,0.312222}, + {0,0,0,0} +}; + +double Icon31[][4] = { + {0.208333333333333,0.458333333333333,0,0.5}, + {0.25,0.25,0.208333333333333,0.458333333333333}, + {0.291666666666667,0.458333333333333,0.25,0.25}, + {0.5,0.5,0.291666666666667,0.458333333333333}, + {0.291666666666667,0.541666666666667,0.5,0.5}, + {0.25,0.75,0.291666666666667,0.541666666666667}, + {0.208333333333333,0.541666666666667,0.25,0.75}, + {0,0.5,0.208333333333333,0.541666666666667}, + {0,0,0,0} +}; + +double Icon32[][4] = { + {0.25,0.25,0,0.5}, + {0.5,0.5,0.25,0.25}, + {0.25,0.75,0.5,0.5}, + {0,0.5,0.25,0.75}, + {0,0,0,0} +}; + +double Icon33[][4] = { + {0.166666666666667,0.25,0,0.333333333333333}, + {0.166666666666667,0.291666666666667,0.166666666666667,0.25}, + {0,0.333333333333333,0.166666666666667,0.416666666666667}, + {0.166666666666667,0.416666666666667,0.166666666666667,0.375}, + {0.208333333333333,0.458333333333333,0.291666666666667,0.625}, + {0.25,0.375,0.25,0.458333333333333}, + {0.291666666666667,0.0416666666666667,0.208333333333333,0.208333333333333}, + {0.25,0.208333333333333,0.25,0.291666666666667}, + {0.291666666666667,0.625,0.375,0.458333333333333}, + {0.333333333333333,0.458333333333333,0.333333333333333,0.375}, + {0.375,0.208333333333333,0.291666666666667,0.0416666666666667}, + {0.333333333333333,0.291666666666667,0.333333333333333,0.208333333333333}, + {0.416666666666667,0.416666666666667,0.583333333333333,0.333333333333333}, + {0.416666666666667,0.375,0.416666666666667,0.416666666666667}, + {0.583333333333333,0.333333333333333,0.416666666666667,0.25}, + {0.416666666666667,0.25,0.416666666666667,0.291666666666667}, + {0,0,0,0} +}; + +double Icon34[][4] = { + {0.125,0.497778,0.125,0.5}, + {0.124444666666667,0.493888666666667,0.125,0.497778}, + {0.123888666666668,0.486666666666667,0.124444666666667,0.493888666666667}, + {0.122778000000001,0.476111333333333,0.123888666666668,0.486666666666667}, + {0.121666666666665,0.462778,0.122778000000001,0.476111333333333}, + {0.12,0.447222,0.121666666666665,0.462778}, + {0.118888666666668,0.430555333333333,0.12,0.447222}, + {0.117778000000001,0.413333333333333,0.118888666666668,0.430555333333333}, + {0.116666666666665,0.396666666666667,0.117778000000001,0.413333333333333}, + {0.116666666666665,0.381666666666667,0.116666666666665,0.396666666666667}, + {0.116666666666665,0.367778,0.116666666666665,0.381666666666667}, + {0.117221999999998,0.356666666666667,0.116666666666665,0.367778}, + {0.118888666666668,0.346666666666666,0.117221999999998,0.356666666666667}, + {0.121666666666665,0.339444666666667,0.118888666666668,0.346666666666666}, + {0.125,0.333333333333333,0.121666666666665,0.339444666666667}, + {0.13,0.328333333333333,0.125,0.333333333333333}, + {0.136666666666666,0.325,0.13,0.328333333333333}, + {0.145000000000001,0.324444666666666,0.136666666666666,0.325}, + {0.153888666666665,0.325,0.145000000000001,0.324444666666666}, + {0.164444666666668,0.327778,0.153888666666665,0.325}, + {0.176111333333334,0.331111333333334,0.164444666666668,0.327778}, + {0.187777999999999,0.335555333333333,0.176111333333334,0.331111333333334}, + {0.198888666666666,0.339444666666667,0.187777999999999,0.335555333333333}, + {0.210555333333332,0.342778,0.198888666666666,0.339444666666667}, + {0.221111333333335,0.345,0.210555333333332,0.342778}, + {0.229999999999999,0.345555333333333,0.221111333333335,0.345}, + {0.238333333333334,0.343888666666667,0.229999999999999,0.345555333333333}, + {0.245,0.339444666666667,0.238333333333334,0.343888666666667}, + {0.25,0.333333333333333,0.245,0.339444666666667}, + {0.253333333333335,0.326666666666667,0.25,0.333333333333333}, + {0.255555333333334,0.318888666666667,0.253333333333335,0.326666666666667}, + {0.256666666666665,0.309444666666667,0.255555333333334,0.318888666666667}, + {0.257221999999999,0.298888666666667,0.256666666666665,0.309444666666667}, + {0.257221999999999,0.286666666666667,0.257221999999999,0.298888666666667}, + {0.256666666666665,0.273333333333333,0.257221999999999,0.286666666666667}, + {0.255555333333334,0.258888666666667,0.256666666666665,0.273333333333333}, + {0.253888666666668,0.244444666666666,0.255555333333334,0.258888666666667}, + {0.252221999999999,0.228888666666667,0.253888666666668,0.244444666666666}, + {0.25,0.213888666666667,0.252221999999999,0.228888666666667}, + {0.248333333333335,0.199444666666666,0.25,0.213888666666667}, + {0.247221999999998,0.185,0.248333333333335,0.199444666666666}, + {0.246111333333332,0.171666666666667,0.247221999999998,0.185}, + {0.245555333333333,0.159444666666667,0.246111333333332,0.171666666666667}, + {0.245555333333333,0.148888666666667,0.245555333333333,0.159444666666667}, + {0.246666666666665,0.139444666666667,0.245555333333333,0.148888666666667}, + {0.247778000000001,0.131666666666667,0.246666666666665,0.139444666666667}, + {0.25,0.125,0.247778000000001,0.131666666666667}, + {0.252778000000002,0.12,0.25,0.125}, + {0.255555333333334,0.115555333333334,0.252778000000002,0.12}, + {0.259444666666667,0.112778,0.255555333333334,0.115555333333334}, + {0.263888666666669,0.11,0.259444666666667,0.112778}, + {0.268888666666669,0.108333333333333,0.263888666666669,0.11}, + {0.273888666666664,0.107222,0.268888666666669,0.108333333333333}, + {0.279444666666668,0.106111333333333,0.273888666666664,0.107222}, + {0.285555333333335,0.105555333333333,0.279444666666668,0.106111333333333}, + {0.303888666666666,0.106111333333333,0.297777999999999,0.105555333333333}, + {0.309444666666669,0.107222,0.303888666666666,0.106111333333333}, + {0.314444666666664,0.108333333333333,0.309444666666669,0.107222}, + {0.319444666666664,0.11,0.314444666666664,0.108333333333333}, + {0.323888666666666,0.112778,0.319444666666664,0.11}, + {0.327778,0.115555333333334,0.323888666666666,0.112778}, + {0.330555333333332,0.12,0.327778,0.115555333333334}, + {0.333333333333333,0.125,0.330555333333332,0.12}, + {0.335555333333332,0.131666666666667,0.333333333333333,0.125}, + {0.336666666666668,0.139444666666667,0.335555333333332,0.131666666666667}, + {0.337778,0.148888666666667,0.336666666666668,0.139444666666667}, + {0.337778,0.159444666666667,0.337778,0.148888666666667}, + {0.337222000000002,0.171666666666667,0.337778,0.159444666666667}, + {0.336111333333335,0.185,0.337222000000002,0.171666666666667}, + {0.334999999999998,0.199444666666666,0.336111333333335,0.185}, + {0.333333333333333,0.213888666666667,0.334999999999998,0.199444666666666}, + {0.331111333333335,0.229444666666667,0.333333333333333,0.213888666666667}, + {0.329444666666665,0.244444666666666,0.331111333333335,0.229444666666667}, + {0.327778,0.258888666666667,0.329444666666665,0.244444666666666}, + {0.326666666666668,0.273333333333333,0.327778,0.258888666666667}, + {0.326111333333335,0.286666666666667,0.326666666666668,0.273333333333333}, + {0.326111333333335,0.298888666666667,0.326111333333335,0.286666666666667}, + {0.326666666666668,0.309444666666667,0.326111333333335,0.298888666666667}, + {0.327778,0.318888666666667,0.326666666666668,0.309444666666667}, + {0.329999999999998,0.326666666666667,0.327778,0.318888666666667}, + {0.333333333333333,0.333333333333333,0.329999999999998,0.326666666666667}, + {0.338333333333333,0.339444666666667,0.333333333333333,0.333333333333333}, + {0.344999999999999,0.343888666666667,0.338333333333333,0.339444666666667}, + {0.353333333333334,0.345555333333333,0.344999999999999,0.343888666666667}, + {0.362221999999998,0.345,0.353333333333334,0.345555333333333}, + {0.372778000000001,0.342778,0.362221999999998,0.345}, + {0.384444666666667,0.339444666666667,0.372778000000001,0.342778}, + {0.396111333333332,0.335555333333333,0.384444666666667,0.339444666666667}, + {0.407222,0.331111333333334,0.396111333333332,0.335555333333333}, + {0.418888666666665,0.327778,0.407222,0.331111333333334}, + {0.429444666666669,0.325,0.418888666666665,0.327778}, + {0.438333333333333,0.324444666666666,0.429444666666669,0.325}, + {0.446666666666668,0.325,0.438333333333333,0.324444666666666}, + {0.453333333333333,0.328333333333333,0.446666666666668,0.325}, + {0.458333333333333,0.333333333333333,0.453333333333333,0.328333333333333}, + {0.461666666666668,0.339444666666667,0.458333333333333,0.333333333333333}, + {0.464444666666665,0.346666666666666,0.461666666666668,0.339444666666667}, + {0.466111333333335,0.356666666666667,0.464444666666665,0.346666666666666}, + {0.466666666666669,0.367778,0.466111333333335,0.356666666666667}, + {0.466666666666669,0.381666666666667,0.466666666666669,0.367778}, + {0.466666666666669,0.396666666666667,0.466666666666669,0.381666666666667}, + {0.465555333333332,0.413333333333333,0.466666666666669,0.396666666666667}, + {0.464444666666665,0.430555333333333,0.465555333333332,0.413333333333333}, + {0.463333333333333,0.447222,0.464444666666665,0.430555333333333}, + {0.461666666666668,0.462778,0.463333333333333,0.447222}, + {0.460555333333332,0.476111333333333,0.461666666666668,0.462778}, + {0.459444666666665,0.486666666666667,0.460555333333332,0.476111333333333}, + {0.458888666666667,0.493888666666667,0.459444666666665,0.486666666666667}, + {0.458333333333333,0.497778,0.458888666666667,0.493888666666667}, + {0.458333333333333,0.5,0.458333333333333,0.497778}, + {0.125,0.541666666666667,0.125,0.542222}, + {0.125,0.542222,0.125,0.543888666666666}, + {0.125,0.543888666666666,0.124444666666667,0.547778}, + {0.124444666666667,0.547778,0.123888666666668,0.554444666666667}, + {0.123888666666668,0.554444666666667,0.123333333333335,0.563888666666667}, + {0.123333333333335,0.563888666666667,0.122778000000001,0.574444666666666}, + {0.122778000000001,0.574444666666666,0.122221999999998,0.585}, + {0.122221999999998,0.585,0.122221999999998,0.595555333333333}, + {0.122221999999998,0.595555333333333,0.122221999999998,0.605}, + {0.122221999999998,0.605,0.122778000000001,0.612778}, + {0.122778000000001,0.612778,0.123333333333335,0.619444666666666}, + {0.123333333333335,0.619444666666666,0.125,0.625}, + {0.125,0.625,0.127778000000002,0.631111333333333}, + {0.127778000000002,0.631111333333333,0.131111333333332,0.636666666666667}, + {0.131111333333332,0.636666666666667,0.136111333333332,0.642222}, + {0.136111333333332,0.642222,0.142778000000002,0.647778}, + {0.142778000000002,0.647778,0.149444666666668,0.653333333333334}, + {0.149444666666668,0.653333333333334,0.156111333333333,0.658888666666667}, + {0.156111333333333,0.658888666666667,0.161111333333333,0.662778}, + {0.161111333333333,0.662778,0.165000000000002,0.665555333333333}, + {0.165000000000002,0.665555333333333,0.166666666666667,0.666666666666667}, + {0.458333333333333,0.542222,0.458333333333333,0.541666666666667}, + {0.458333333333333,0.543888666666666,0.458333333333333,0.542222}, + {0.457778,0.547778,0.458333333333333,0.543888666666666}, + {0.457222000000002,0.554444666666667,0.457778,0.547778}, + {0.456666666666668,0.563888666666667,0.457222000000002,0.554444666666667}, + {0.456111333333335,0.574444666666666,0.456666666666668,0.563888666666667}, + {0.455555333333332,0.585,0.456111333333335,0.574444666666666}, + {0.455555333333332,0.595555333333333,0.455555333333332,0.585}, + {0.455555333333332,0.605,0.455555333333332,0.595555333333333}, + {0.456111333333335,0.612778,0.455555333333332,0.605}, + {0.456666666666668,0.619444666666666,0.456111333333335,0.612778}, + {0.458333333333333,0.625,0.456666666666668,0.619444666666666}, + {0.461111333333335,0.631111333333333,0.458333333333333,0.625}, + {0.464444666666665,0.636666666666667,0.461111333333335,0.631111333333333}, + {0.469444666666665,0.642222,0.464444666666665,0.636666666666667}, + {0.476111333333336,0.647778,0.469444666666665,0.642222}, + {0.482778000000001,0.653333333333334,0.476111333333336,0.647778}, + {0.489444666666666,0.658888666666667,0.482778000000001,0.653333333333334}, + {0.494444666666666,0.662778,0.489444666666666,0.658888666666667}, + {0.498333333333335,0.665555333333333,0.494444666666666,0.662778}, + {0.5,0.666666666666667,0.498333333333335,0.665555333333333}, + {0,0,0,0} +}; + +double Icon35[][4] = { + {0.583333333333333,0.75,0.583333333333333,0}, + {0,0,0,0.75}, + {0.125,0.5,0.125,0.497778}, + {0.125,0.497778,0.124444666666667,0.493888666666667}, + {0.124444666666667,0.493888666666667,0.123888666666668,0.486666666666667}, + {0.123888666666668,0.486666666666667,0.122778000000001,0.476111333333333}, + {0.122778000000001,0.476111333333333,0.121666666666665,0.462778}, + {0.121666666666665,0.462778,0.12,0.447222}, + {0.12,0.447222,0.118888666666668,0.430555333333333}, + {0.118888666666668,0.430555333333333,0.117778000000001,0.413333333333333}, + {0.117778000000001,0.413333333333333,0.116666666666665,0.396666666666667}, + {0.116666666666665,0.396666666666667,0.116666666666665,0.381666666666667}, + {0.116666666666665,0.381666666666667,0.116666666666665,0.367778}, + {0.116666666666665,0.367778,0.117221999999998,0.356666666666667}, + {0.117221999999998,0.356666666666667,0.118888666666668,0.346666666666666}, + {0.118888666666668,0.346666666666666,0.121666666666665,0.339444666666667}, + {0.121666666666665,0.339444666666667,0.125,0.333333333333333}, + {0.125,0.333333333333333,0.13,0.328333333333333}, + {0.13,0.328333333333333,0.136666666666666,0.325}, + {0.136666666666666,0.325,0.145000000000001,0.324444666666666}, + {0.145000000000001,0.324444666666666,0.153888666666665,0.325}, + {0.153888666666665,0.325,0.164444666666668,0.327778}, + {0.164444666666668,0.327778,0.176111333333334,0.331111333333334}, + {0.176111333333334,0.331111333333334,0.187777999999999,0.335555333333333}, + {0.187777999999999,0.335555333333333,0.198888666666666,0.339444666666667}, + {0.198888666666666,0.339444666666667,0.210555333333332,0.342778}, + {0.210555333333332,0.342778,0.221111333333335,0.345}, + {0.221111333333335,0.345,0.229999999999999,0.345555333333333}, + {0.229999999999999,0.345555333333333,0.238333333333334,0.343888666666667}, + {0.238333333333334,0.343888666666667,0.245,0.339444666666667}, + {0.245,0.339444666666667,0.25,0.333333333333333}, + {0.25,0.333333333333333,0.253333333333335,0.326666666666667}, + {0.253333333333335,0.326666666666667,0.255555333333334,0.318888666666667}, + {0.255555333333334,0.318888666666667,0.256666666666665,0.309444666666667}, + {0.256666666666665,0.309444666666667,0.257221999999999,0.298888666666667}, + {0.257221999999999,0.298888666666667,0.257221999999999,0.286666666666667}, + {0.257221999999999,0.286666666666667,0.256666666666665,0.273333333333333}, + {0.256666666666665,0.273333333333333,0.255555333333334,0.258888666666667}, + {0.255555333333334,0.258888666666667,0.253888666666668,0.244444666666666}, + {0.253888666666668,0.244444666666666,0.252221999999999,0.228888666666667}, + {0.252221999999999,0.228888666666667,0.25,0.213888666666667}, + {0.25,0.213888666666667,0.248333333333335,0.199444666666666}, + {0.248333333333335,0.199444666666666,0.247221999999998,0.185}, + {0.247221999999998,0.185,0.246111333333332,0.171666666666667}, + {0.246111333333332,0.171666666666667,0.245555333333333,0.159444666666667}, + {0.245555333333333,0.159444666666667,0.245555333333333,0.148888666666667}, + {0.245555333333333,0.148888666666667,0.246666666666665,0.139444666666667}, + {0.246666666666665,0.139444666666667,0.247778000000001,0.131666666666667}, + {0.247778000000001,0.131666666666667,0.25,0.125}, + {0.25,0.125,0.252778000000002,0.12}, + {0.252778000000002,0.12,0.255555333333334,0.115555333333334}, + {0.255555333333334,0.115555333333334,0.259444666666667,0.112778}, + {0.259444666666667,0.112778,0.263888666666669,0.11}, + {0.263888666666669,0.11,0.268888666666669,0.108333333333333}, + {0.268888666666669,0.108333333333333,0.273888666666664,0.107222}, + {0.273888666666664,0.107222,0.279444666666668,0.106111333333333}, + {0.279444666666668,0.106111333333333,0.285555333333335,0.105555333333333}, + {0.297777999999999,0.105555333333333,0.303888666666666,0.106111333333333}, + {0.303888666666666,0.106111333333333,0.309444666666669,0.107222}, + {0.309444666666669,0.107222,0.314444666666664,0.108333333333333}, + {0.314444666666664,0.108333333333333,0.319444666666664,0.11}, + {0.319444666666664,0.11,0.323888666666666,0.112778}, + {0.323888666666666,0.112778,0.327778,0.115555333333334}, + {0.327778,0.115555333333334,0.330555333333332,0.12}, + {0.330555333333332,0.12,0.333333333333333,0.125}, + {0.333333333333333,0.125,0.335555333333332,0.131666666666667}, + {0.335555333333332,0.131666666666667,0.336666666666668,0.139444666666667}, + {0.336666666666668,0.139444666666667,0.337778,0.148888666666667}, + {0.337778,0.148888666666667,0.337778,0.159444666666667}, + {0.337778,0.159444666666667,0.337222000000002,0.171666666666667}, + {0.337222000000002,0.171666666666667,0.336111333333335,0.185}, + {0.336111333333335,0.185,0.334999999999998,0.199444666666666}, + {0.334999999999998,0.199444666666666,0.333333333333333,0.213888666666667}, + {0.333333333333333,0.213888666666667,0.331111333333335,0.229444666666667}, + {0.331111333333335,0.229444666666667,0.329444666666665,0.244444666666666}, + {0.329444666666665,0.244444666666666,0.327778,0.258888666666667}, + {0.327778,0.258888666666667,0.326666666666668,0.273333333333333}, + {0.326666666666668,0.273333333333333,0.326111333333335,0.286666666666667}, + {0.326111333333335,0.286666666666667,0.326111333333335,0.298888666666667}, + {0.326111333333335,0.298888666666667,0.326666666666668,0.309444666666667}, + {0.326666666666668,0.309444666666667,0.327778,0.318888666666667}, + {0.327778,0.318888666666667,0.329999999999998,0.326666666666667}, + {0.329999999999998,0.326666666666667,0.333333333333333,0.333333333333333}, + {0.333333333333333,0.333333333333333,0.338333333333333,0.339444666666667}, + {0.338333333333333,0.339444666666667,0.344999999999999,0.343888666666667}, + {0.344999999999999,0.343888666666667,0.353333333333334,0.345555333333333}, + {0.353333333333334,0.345555333333333,0.362221999999998,0.345}, + {0.362221999999998,0.345,0.372778000000001,0.342778}, + {0.372778000000001,0.342778,0.384444666666667,0.339444666666667}, + {0.384444666666667,0.339444666666667,0.396111333333332,0.335555333333333}, + {0.396111333333332,0.335555333333333,0.407222,0.331111333333334}, + {0.407222,0.331111333333334,0.418888666666665,0.327778}, + {0.418888666666665,0.327778,0.429444666666669,0.325}, + {0.429444666666669,0.325,0.438333333333333,0.324444666666666}, + {0.438333333333333,0.324444666666666,0.446666666666668,0.325}, + {0.446666666666668,0.325,0.453333333333333,0.328333333333333}, + {0.453333333333333,0.328333333333333,0.458333333333333,0.333333333333333}, + {0.458333333333333,0.333333333333333,0.461666666666668,0.339444666666667}, + {0.461666666666668,0.339444666666667,0.464444666666665,0.346666666666666}, + {0.464444666666665,0.346666666666666,0.466111333333335,0.356666666666667}, + {0.466111333333335,0.356666666666667,0.466666666666669,0.367778}, + {0.466666666666669,0.367778,0.466666666666669,0.381666666666667}, + {0.466666666666669,0.381666666666667,0.466666666666669,0.396666666666667}, + {0.466666666666669,0.396666666666667,0.465555333333332,0.413333333333333}, + {0.465555333333332,0.413333333333333,0.464444666666665,0.430555333333333}, + {0.464444666666665,0.430555333333333,0.463333333333333,0.447222}, + {0.463333333333333,0.447222,0.461666666666668,0.462778}, + {0.461666666666668,0.462778,0.460555333333332,0.476111333333333}, + {0.460555333333332,0.476111333333333,0.459444666666665,0.486666666666667}, + {0.459444666666665,0.486666666666667,0.458888666666667,0.493888666666667}, + {0.458888666666667,0.493888666666667,0.458333333333333,0.497778}, + {0.458333333333333,0.497778,0.458333333333333,0.5}, + {0.125,0.542222,0.125,0.541666666666667}, + {0.125,0.543888666666666,0.125,0.542222}, + {0.124444666666667,0.547778,0.125,0.543888666666666}, + {0.123888666666668,0.554444666666667,0.124444666666667,0.547778}, + {0.123333333333335,0.563888666666667,0.123888666666668,0.554444666666667}, + {0.122778000000001,0.574444666666666,0.123333333333335,0.563888666666667}, + {0.122221999999998,0.585,0.122778000000001,0.574444666666666}, + {0.122221999999998,0.595555333333333,0.122221999999998,0.585}, + {0.122221999999998,0.605,0.122221999999998,0.595555333333333}, + {0.122778000000001,0.612778,0.122221999999998,0.605}, + {0.123333333333335,0.619444666666666,0.122778000000001,0.612778}, + {0.125,0.625,0.123333333333335,0.619444666666666}, + {0.127778000000002,0.631111333333333,0.125,0.625}, + {0.131111333333332,0.636666666666667,0.127778000000002,0.631111333333333}, + {0.136111333333332,0.642222,0.131111333333332,0.636666666666667}, + {0.142778000000002,0.647778,0.136111333333332,0.642222}, + {0.149444666666668,0.653333333333334,0.142778000000002,0.647778}, + {0.156111333333333,0.658888666666667,0.149444666666668,0.653333333333334}, + {0.161111333333333,0.662778,0.156111333333333,0.658888666666667}, + {0.165000000000002,0.665555333333333,0.161111333333333,0.662778}, + {0.166666666666667,0.666666666666667,0.165000000000002,0.665555333333333}, + {0.458333333333333,0.541666666666667,0.458333333333333,0.542222}, + {0.458333333333333,0.542222,0.458333333333333,0.543888666666666}, + {0.458333333333333,0.543888666666666,0.457778,0.547778}, + {0.457778,0.547778,0.457222000000002,0.554444666666667}, + {0.457222000000002,0.554444666666667,0.456666666666668,0.563888666666667}, + {0.456666666666668,0.563888666666667,0.456111333333335,0.574444666666666}, + {0.456111333333335,0.574444666666666,0.455555333333332,0.585}, + {0.455555333333332,0.585,0.455555333333332,0.595555333333333}, + {0.455555333333332,0.595555333333333,0.455555333333332,0.605}, + {0.455555333333332,0.605,0.456111333333335,0.612778}, + {0.456111333333335,0.612778,0.456666666666668,0.619444666666666}, + {0.456666666666668,0.619444666666666,0.458333333333333,0.625}, + {0.458333333333333,0.625,0.461111333333335,0.631111333333333}, + {0.461111333333335,0.631111333333333,0.464444666666665,0.636666666666667}, + {0.464444666666665,0.636666666666667,0.469444666666665,0.642222}, + {0.469444666666665,0.642222,0.476111333333336,0.647778}, + {0.476111333333336,0.647778,0.482778000000001,0.653333333333334}, + {0.482778000000001,0.653333333333334,0.489444666666666,0.658888666666667}, + {0.489444666666666,0.658888666666667,0.494444666666666,0.662778}, + {0.494444666666666,0.662778,0.498333333333335,0.665555333333333}, + {0.498333333333335,0.665555333333333,0.5,0.666666666666667}, + {0,0,0,0} +}; + +double Icon36[][4] = { + {0.0694446666666645,0.397778,0.0733333333333329,0.395555333333334}, + {0.067222666666666,0.401111333333333,0.0694446666666645,0.397778}, + {0.0649999999999977,0.405,0.067222666666666,0.401111333333333}, + {0.0638893333333309,0.409444666666667,0.0649999999999977,0.405}, + {0.0627779999999992,0.414444666666667,0.0638893333333309,0.409444666666667}, + {0.0622226666666658,0.42,0.0627779999999992,0.414444666666667}, + {0.0622226666666658,0.425555333333334,0.0622226666666658,0.42}, + {0.0622226666666658,0.431111333333333,0.0622226666666658,0.425555333333334}, + {0.0627779999999992,0.436666666666667,0.0622226666666658,0.431111333333333}, + {0.0638893333333309,0.441666666666666,0.0627779999999992,0.436666666666667}, + {0.0649999999999977,0.446111333333333,0.0638893333333309,0.441666666666666}, + {0.067222666666666,0.45,0.0649999999999977,0.446111333333333}, + {0.0694446666666645,0.453333333333333,0.067222666666666,0.45}, + {0.0733333333333329,0.455555333333334,0.0694446666666645,0.453333333333333}, + {0.0783333333333331,0.457222,0.0733333333333329,0.455555333333334}, + {0.0844446666666651,0.458333333333333,0.0783333333333331,0.457222}, + {0.101111333333331,0.457222,0.0922226666666669,0.458333333333333}, + {0.111111333333331,0.455,0.101111333333331,0.457222}, + {0.121666666666665,0.452778,0.111111333333331,0.455}, + {0.132777999999997,0.45,0.121666666666665,0.452778}, + {0.143889333333334,0.447222,0.132777999999997,0.45}, + {0.154444666666668,0.445555333333333,0.143889333333334,0.447222}, + {0.164444666666663,0.444444666666667,0.154444666666668,0.445555333333333}, + {0.181111333333334,0.446666666666667,0.173333333333332,0.444444666666667}, + {0.187222666666666,0.45,0.181111333333334,0.446666666666667}, + {0.192222666666666,0.455555333333334,0.187222666666666,0.45}, + {0.195556000000001,0.461666666666667,0.192222666666666,0.455555333333334}, + {0.198333333333333,0.47,0.195556000000001,0.461666666666667}, + {0.199999999999998,0.479444666666667,0.198333333333333,0.47}, + {0.201666666666663,0.49,0.199999999999998,0.479444666666667}, + {0.203333333333333,0.502778,0.201666666666663,0.49}, + {0.204444666666665,0.516111333333334,0.203333333333333,0.502778}, + {0.205555999999997,0.53,0.204444666666665,0.516111333333334}, + {0.20611133333333,0.545,0.205555999999997,0.53}, + {0.206666666666663,0.559444666666667,0.20611133333333,0.545}, + {0.206666666666663,0.573333333333334,0.206666666666663,0.559444666666667}, + {0.20611133333333,0.586666666666667,0.206666666666663,0.573333333333334}, + {0.204999999999998,0.599444666666667,0.20611133333333,0.586666666666667}, + {0.203333333333333,0.61,0.204999999999998,0.599444666666667}, + {0.200555999999996,0.619444666666666,0.203333333333333,0.61}, + {0.197222666666666,0.627778,0.200555999999996,0.619444666666666}, + {0.192222666666666,0.633888666666667,0.197222666666666,0.627778}, + {0.186111333333334,0.638888666666666,0.192222666666666,0.633888666666667}, + {0.178333333333332,0.642222,0.186111333333334,0.638888666666666}, + {0.16888933333333,0.645,0.178333333333332,0.642222}, + {0.157777999999998,0.646111333333333,0.16888933333333,0.645}, + {0.145555999999999,0.646666666666667,0.157777999999998,0.646111333333333}, + {0.117777999999997,0.646111333333333,0.132222666666664,0.646666666666667}, + {0.103333333333334,0.645,0.117777999999997,0.646111333333333}, + {0.0888893333333319,0.643888666666667,0.103333333333334,0.645}, + {0.0744446666666647,0.642222,0.0888893333333319,0.643888666666667}, + {0.061111333333334,0.641111333333334,0.0744446666666647,0.642222}, + {0.0488893333333304,0.639444666666667,0.061111333333334,0.641111333333334}, + {0.0377779999999982,0.638333333333333,0.0488893333333304,0.639444666666667}, + {0.0283333333333312,0.637222,0.0377779999999982,0.638333333333333}, + {0.0205559999999991,0.635555333333333,0.0283333333333312,0.637222}, + {0.0144446666666672,0.633888666666667,0.0205559999999991,0.635555333333333}, + {0.00944466666666699,0.631666666666667,0.0144446666666672,0.633888666666667}, + {0.00611133333333195,0.628888666666667,0.00944466666666699,0.631666666666667}, + {0.0033333333333303,0.626111333333334,0.00611133333333195,0.628888666666667}, + {0.00166666666666515,0.622222,0.0033333333333303,0.626111333333334}, + {0.000555999999998373,0.618333333333334,0.00166666666666515,0.622222}, + {0,0.613888666666667,0.000555999999998373,0.618333333333334}, + {0,0.608888666666667,0,0.613888666666667}, + {0.000555999999998373,0.604444666666667,0,0.608888666666667}, + {0.00111133333333176,0.599444666666667,0.000555999999998373,0.604444666666667}, + {0.00222266666666352,0.594444666666667,0.00111133333333176,0.599444666666667}, + {0.0033333333333303,0.59,0.00222266666666352,0.594444666666667}, + {0.00500000000000019,0.586111333333333,0.0033333333333303,0.59}, + {0.00666666666666534,0.582222,0.00500000000000019,0.586111333333333}, + {0.00833333333333049,0.579444666666667,0.00666666666666534,0.582222}, + {0.0111113333333321,0.576666666666667,0.00833333333333049,0.579444666666667}, + {0.0144446666666672,0.574444666666666,0.0111113333333321,0.576666666666667}, + {0.0194446666666674,0.572778,0.0144446666666672,0.574444666666666}, + {0.0255559999999993,0.571666666666667,0.0194446666666674,0.572778}, + {0.0333333333333314,0.571111333333333,0.0255559999999993,0.571666666666667}, + {0.0522226666666654,0.572222,0.042222666666665,0.571111333333333}, + {0.0627779999999992,0.573333333333334,0.0522226666666654,0.572222}, + {0.0738893333333313,0.574444666666666,0.0627779999999992,0.573333333333334}, + {0.0849999999999985,0.575555333333333,0.0738893333333313,0.574444666666666}, + {0.0955559999999972,0.576666666666667,0.0849999999999985,0.575555333333333}, + {0.105555999999998,0.577778,0.0955559999999972,0.576666666666667}, + {0.122222666666663,0.577222,0.114444666666666,0.577778}, + {0.12833333333333,0.576111333333333,0.122222666666663,0.577222}, + {0.13333333333333,0.574444666666666,0.12833333333333,0.576111333333333}, + {0.137222666666664,0.572222,0.13333333333333,0.574444666666666}, + {0.139444666666667,0.568888666666667,0.137222666666664,0.572222}, + {0.141666666666666,0.565,0.139444666666667,0.568888666666667}, + {0.142777999999997,0.560555333333333,0.141666666666666,0.565}, + {0.143889333333334,0.555555333333333,0.142777999999997,0.560555333333333}, + {0.144444666666667,0.55,0.143889333333334,0.555555333333333}, + {0.144444666666667,0.544444666666667,0.144444666666667,0.55}, + {0.144444666666667,0.539444666666667,0.144444666666667,0.544444666666667}, + {0.143889333333334,0.533888666666667,0.144444666666667,0.539444666666667}, + {0.142777999999997,0.528888666666666,0.143889333333334,0.533888666666667}, + {0.141666666666666,0.524444666666666,0.142777999999997,0.528888666666666}, + {0.139444666666667,0.520555333333334,0.141666666666666,0.524444666666666}, + {0.137222666666664,0.517222,0.139444666666667,0.520555333333334}, + {0.13333333333333,0.515,0.137222666666664,0.517222}, + {0.12833333333333,0.513333333333333,0.13333333333333,0.515}, + {0.122222666666663,0.512222,0.12833333333333,0.513333333333333}, + {0.105555999999998,0.513333333333333,0.114444666666666,0.512222}, + {0.0955559999999972,0.515555333333333,0.105555999999998,0.513333333333333}, + {0.0849999999999985,0.517778,0.0955559999999972,0.515555333333333}, + {0.0738893333333313,0.520555333333334,0.0849999999999985,0.517778}, + {0.0627779999999992,0.523333333333333,0.0738893333333313,0.520555333333334}, + {0.0522226666666654,0.525,0.0627779999999992,0.523333333333333}, + {0.042222666666665,0.526111333333333,0.0522226666666654,0.525}, + {0.0255559999999993,0.523888666666667,0.0333333333333314,0.526111333333333}, + {0.0194446666666674,0.520555333333334,0.0255559999999993,0.523888666666667}, + {0.0144446666666672,0.515,0.0194446666666674,0.520555333333334}, + {0.0111113333333321,0.508888666666667,0.0144446666666672,0.515}, + {0.00833333333333049,0.500555333333333,0.0111113333333321,0.508888666666667}, + {0.00666666666666534,0.491111333333333,0.00833333333333049,0.500555333333333}, + {0.00500000000000019,0.480555333333333,0.00666666666666534,0.491111333333333}, + {0.0033333333333303,0.467778,0.00500000000000019,0.480555333333333}, + {0.00222266666666352,0.454444666666667,0.0033333333333303,0.467778}, + {0.00111133333333176,0.440555333333334,0.00222266666666352,0.454444666666667}, + {0.000555999999998373,0.426111333333333,0.00111133333333176,0.440555333333334}, + {0,0.411111333333333,0.000555999999998373,0.426111333333333}, + {0,0.397222,0,0.411111333333333}, + {0.000555999999998373,0.383888666666667,0,0.397222}, + {0.00166666666666515,0.371111333333333,0.000555999999998373,0.383888666666667}, + {0.0033333333333303,0.360555333333333,0.00166666666666515,0.371111333333333}, + {0.00611133333333195,0.351111333333333,0.0033333333333303,0.360555333333333}, + {0.00944466666666699,0.342778,0.00611133333333195,0.351111333333333}, + {0.0144446666666672,0.336666666666667,0.00944466666666699,0.342778}, + {0.0205559999999991,0.331666666666666,0.0144446666666672,0.336666666666667}, + {0.0283333333333312,0.328333333333333,0.0205559999999991,0.331666666666666}, + {0.0377779999999982,0.325555333333333,0.0283333333333312,0.328333333333333}, + {0.0488893333333304,0.324444666666666,0.0377779999999982,0.325555333333333}, + {0.061111333333334,0.323888666666667,0.0488893333333304,0.324444666666666}, + {0.0888893333333319,0.324444666666666,0.0744446666666647,0.323888666666667}, + {0.103333333333334,0.325555333333333,0.0888893333333319,0.324444666666666}, + {0.117777999999997,0.326666666666667,0.103333333333334,0.325555333333333}, + {0.132222666666664,0.328333333333333,0.117777999999997,0.326666666666667}, + {0.145555999999999,0.329444666666667,0.132222666666664,0.328333333333333}, + {0.157777999999998,0.331111333333334,0.145555999999999,0.329444666666667}, + {0.16888933333333,0.332222,0.157777999999998,0.331111333333334}, + {0.178333333333332,0.333333333333333,0.16888933333333,0.332222}, + {0.186111333333334,0.335,0.178333333333332,0.333333333333333}, + {0.192222666666666,0.336666666666667,0.186111333333334,0.335}, + {0.197222666666666,0.338888666666667,0.192222666666666,0.336666666666667}, + {0.200555999999996,0.341111333333333,0.197222666666666,0.338888666666667}, + {0.203333333333333,0.344444666666667,0.200555999999996,0.341111333333333}, + {0.204999999999998,0.348333333333333,0.203333333333333,0.344444666666667}, + {0.20611133333333,0.352222,0.204999999999998,0.348333333333333}, + {0.206666666666663,0.356666666666667,0.20611133333333,0.352222}, + {0.206666666666663,0.361111333333334,0.206666666666663,0.356666666666667}, + {0.20611133333333,0.366111333333333,0.206666666666663,0.361111333333334}, + {0.205555999999997,0.371111333333333,0.20611133333333,0.366111333333333}, + {0.204444666666665,0.375555333333333,0.205555999999997,0.371111333333333}, + {0.203333333333333,0.38,0.204444666666665,0.375555333333333}, + {0.201666666666663,0.383888666666667,0.203333333333333,0.38}, + {0.199999999999998,0.387778,0.201666666666663,0.383888666666667}, + {0.198333333333333,0.391111333333334,0.199999999999998,0.387778}, + {0.195556000000001,0.393333333333333,0.198333333333333,0.391111333333334}, + {0.192222666666666,0.395555333333334,0.195556000000001,0.393333333333333}, + {0.187222666666666,0.397222,0.192222666666666,0.395555333333334}, + {0.181111333333334,0.398333333333333,0.187222666666666,0.397222}, + {0.173333333333332,0.398888666666667,0.181111333333334,0.398333333333333}, + {0.154444666666668,0.397778,0.164444666666663,0.398888666666667}, + {0.143889333333334,0.396666666666667,0.154444666666668,0.397778}, + {0.132777999999997,0.395555333333334,0.143889333333334,0.396666666666667}, + {0.121666666666665,0.394444666666667,0.132777999999997,0.395555333333334}, + {0.111111333333331,0.393333333333333,0.121666666666665,0.394444666666667}, + {0.101111333333331,0.392222,0.111111333333331,0.393333333333333}, + {0.0844446666666651,0.392778,0.0922226666666669,0.392222}, + {0.0783333333333331,0.393888666666667,0.0844446666666651,0.392778}, + {0.0733333333333329,0.395555333333334,0.0783333333333331,0.393888666666667}, + {0.317777999999999,0.334444666666667,0.311666666666667,0.336666666666667}, + {0.323333333333333,0.332778,0.317777999999999,0.334444666666667}, + {0.329444666666665,0.331666666666666,0.323333333333333,0.332778}, + {0.335555999999997,0.331111333333334,0.329444666666665,0.331666666666666}, + {0.353333333333334,0.331666666666666,0.347222666666667,0.331111333333334}, + {0.359444666666666,0.332778,0.353333333333334,0.331666666666666}, + {0.365,0.334444666666667,0.359444666666666,0.332778}, + {0.371111333333332,0.336666666666667,0.365,0.334444666666667}, + {0.375555999999998,0.338888666666667,0.371111333333332,0.336666666666667}, + {0.38,0.341666666666667,0.375555999999998,0.338888666666667}, + {0.384444666666667,0.344444666666667,0.38,0.341666666666667}, + {0.388889333333334,0.347222,0.384444666666667,0.344444666666667}, + {0.393889333333334,0.349444666666667,0.388889333333334,0.347222}, + {0.398889333333334,0.352222,0.393889333333334,0.349444666666667}, + {0.403889333333334,0.355,0.398889333333334,0.352222}, + {0.408333333333331,0.357778,0.403889333333334,0.355}, + {0.413333333333332,0.361666666666667,0.408333333333331,0.357778}, + {0.417777999999998,0.366111333333333,0.413333333333332,0.361666666666667}, + {0.421666666666667,0.371111333333333,0.417777999999998,0.366111333333333}, + {0.424999999999997,0.377778,0.421666666666667,0.371111333333333}, + {0.428333333333332,0.385555333333333,0.424999999999997,0.377778}, + {0.430556,0.395555333333334,0.428333333333332,0.385555333333333}, + {0.431666666666667,0.403333333333334,0.430556,0.395555333333334}, + {0.432777999999999,0.412222,0.431666666666667,0.403333333333334}, + {0.433889333333331,0.422222,0.432777999999999,0.412222}, + {0.434444666666664,0.433333333333334,0.433889333333331,0.422222}, + {0.434999999999997,0.445555333333333,0.434444666666664,0.433333333333334}, + {0.435556000000001,0.458888666666667,0.434999999999997,0.445555333333333}, + {0.435556000000001,0.472778,0.435556000000001,0.458888666666667}, + {0.436111333333334,0.487222,0.435556000000001,0.472778}, + {0.436111333333334,0.502222,0.436111333333334,0.487222}, + {0.436111333333334,0.517222,0.436111333333334,0.502222}, + {0.436111333333334,0.532778,0.436111333333334,0.517222}, + {0.436111333333334,0.547222,0.436111333333334,0.532778}, + {0.435556000000001,0.561666666666667,0.436111333333334,0.547222}, + {0.435556000000001,0.575555333333333,0.435556000000001,0.561666666666667}, + {0.434999999999997,0.588333333333334,0.435556000000001,0.575555333333333}, + {0.434444666666664,0.6,0.434999999999997,0.588333333333334}, + {0.433889333333331,0.610555333333333,0.434444666666664,0.6}, + {0.432777999999999,0.619444666666666,0.433889333333331,0.610555333333333}, + {0.431666666666667,0.627222,0.432777999999999,0.619444666666666}, + {0.430556,0.633888666666667,0.431666666666667,0.627222}, + {0.428889333333331,0.64,0.430556,0.633888666666667}, + {0.426666666666667,0.644444666666667,0.428889333333331,0.64}, + {0.42388933333333,0.647778,0.426666666666667,0.644444666666667}, + {0.420556,0.65,0.42388933333333,0.647778}, + {0.417222666666665,0.651666666666667,0.420556,0.65}, + {0.413333333333332,0.652222,0.417222666666665,0.651666666666667}, + {0.405000000000001,0.651666666666667,0.409444666666663,0.652222}, + {0.400555999999999,0.650555333333333,0.405000000000001,0.651666666666667}, + {0.396666666666666,0.649444666666666,0.400555999999999,0.650555333333333}, + {0.392222666666664,0.648333333333333,0.396666666666666,0.649444666666666}, + {0.388333333333331,0.646666666666667,0.392222666666664,0.648333333333333}, + {0.384444666666667,0.645,0.388333333333331,0.646666666666667}, + {0.381111333333332,0.643333333333333,0.384444666666667,0.645}, + {0.377777999999997,0.641666666666667,0.381111333333332,0.643333333333333}, + {0.375,0.639444666666667,0.377777999999997,0.641666666666667}, + {0.372777999999997,0.636666666666667,0.375,0.639444666666667}, + {0.371111333333332,0.633888666666667,0.372777999999997,0.636666666666667}, + {0.369444666666666,0.628888666666667,0.371111333333332,0.633888666666667}, + {0.36833333333333,0.622778,0.369444666666666,0.628888666666667}, + {0.367777999999996,0.615,0.36833333333333,0.622778}, + {0.367777999999996,0.606111333333333,0.367777999999996,0.615}, + {0.368889333333333,0.596111333333334,0.367777999999996,0.606111333333333}, + {0.37,0.585555333333333,0.368889333333333,0.596111333333334}, + {0.371111333333332,0.574444666666666,0.37,0.585555333333333}, + {0.372222666666663,0.563333333333333,0.371111333333332,0.574444666666666}, + {0.37333333333333,0.552778,0.372222666666663,0.563333333333333}, + {0.374444666666667,0.542778,0.37333333333333,0.552778}, + {0.374444666666667,0.533888666666667,0.374444666666667,0.542778}, + {0.373889333333333,0.526111333333333,0.374444666666667,0.533888666666667}, + {0.372777999999997,0.52,0.373889333333333,0.526111333333333}, + {0.371111333333332,0.515,0.372777999999997,0.52}, + {0.368889333333333,0.511111333333333,0.371111333333332,0.515}, + {0.365555999999998,0.508888666666667,0.368889333333333,0.511111333333333}, + {0.361666666666665,0.506666666666667,0.365555999999998,0.508888666666667}, + {0.357222666666667,0.505555333333334,0.361666666666665,0.506666666666667}, + {0.352222666666667,0.504444666666667,0.357222666666667,0.505555333333334}, + {0.346666666666664,0.503888666666667,0.352222666666667,0.504444666666667}, + {0.330555999999997,0.504444666666667,0.33611133333333,0.503888666666667}, + {0.325555999999996,0.505555333333334,0.330555999999997,0.504444666666667}, + {0.321111333333334,0.506666666666667,0.325555999999996,0.505555333333334}, + {0.317222666666666,0.508888666666667,0.321111333333334,0.506666666666667}, + {0.313889333333331,0.511111333333333,0.317222666666666,0.508888666666667}, + {0.311666666666667,0.515,0.313889333333331,0.511111333333333}, + {0.309999999999997,0.52,0.311666666666667,0.515}, + {0.308889333333331,0.526111333333333,0.309999999999997,0.52}, + {0.308333333333332,0.533888666666667,0.308889333333331,0.526111333333333}, + {0.308333333333332,0.542778,0.308333333333332,0.533888666666667}, + {0.309444666666664,0.552778,0.308333333333332,0.542778}, + {0.310556000000001,0.563333333333333,0.309444666666664,0.552778}, + {0.311666666666667,0.574444666666666,0.310556000000001,0.563333333333333}, + {0.312777999999999,0.585555333333333,0.311666666666667,0.574444666666666}, + {0.313889333333331,0.596111333333334,0.312777999999999,0.585555333333333}, + {0.314999999999998,0.606111333333333,0.313889333333331,0.596111333333334}, + {0.314999999999998,0.615,0.314999999999998,0.606111333333333}, + {0.314444666666664,0.622778,0.314999999999998,0.615}, + {0.313333333333333,0.628888666666667,0.314444666666664,0.622778}, + {0.311666666666667,0.633888666666667,0.313333333333333,0.628888666666667}, + {0.309999999999997,0.636666666666667,0.311666666666667,0.633888666666667}, + {0.307777999999999,0.639444666666667,0.309999999999997,0.636666666666667}, + {0.304999999999997,0.641666666666667,0.307777999999999,0.639444666666667}, + {0.301666666666667,0.643333333333333,0.304999999999997,0.641666666666667}, + {0.298333333333332,0.645,0.301666666666667,0.643333333333333}, + {0.294444666666664,0.646666666666667,0.298333333333332,0.645}, + {0.290556,0.648333333333333,0.294444666666664,0.646666666666667}, + {0.286111333333333,0.649444666666666,0.290556,0.648333333333333}, + {0.281666666666666,0.650555333333333,0.286111333333333,0.649444666666666}, + {0.277777999999998,0.651666666666667,0.281666666666666,0.650555333333333}, + {0.273333333333331,0.652222,0.277777999999998,0.651666666666667}, + {0.265555999999999,0.651666666666667,0.269444666666667,0.652222}, + {0.262222666666664,0.65,0.265555999999999,0.651666666666667}, + {0.258889333333334,0.647778,0.262222666666664,0.65}, + {0.256111333333332,0.644444666666667,0.258889333333334,0.647778}, + {0.253889333333333,0.64,0.256111333333332,0.644444666666667}, + {0.252222666666663,0.633888666666667,0.253889333333333,0.64}, + {0.251111333333332,0.627222,0.252222666666663,0.633888666666667}, + {0.25,0.619444666666666,0.251111333333332,0.627222}, + {0.248889333333333,0.610555333333333,0.25,0.619444666666666}, + {0.24833333333333,0.6,0.248889333333333,0.610555333333333}, + {0.247777999999997,0.588333333333334,0.24833333333333,0.6}, + {0.247222666666663,0.575555333333333,0.247777999999997,0.588333333333334}, + {0.247222666666663,0.561666666666667,0.247222666666663,0.575555333333333}, + {0.246666666666665,0.547222,0.247222666666663,0.561666666666667}, + {0.246666666666665,0.532778,0.246666666666665,0.547222}, + {0.246666666666665,0.517222,0.246666666666665,0.532778}, + {0.246666666666665,0.502222,0.246666666666665,0.517222}, + {0.246666666666665,0.487222,0.246666666666665,0.502222}, + {0.247222666666663,0.472778,0.246666666666665,0.487222}, + {0.247222666666663,0.458888666666667,0.247222666666663,0.472778}, + {0.247777999999997,0.445555333333333,0.247222666666663,0.458888666666667}, + {0.24833333333333,0.433333333333334,0.247777999999997,0.445555333333333}, + {0.248889333333333,0.422222,0.24833333333333,0.433333333333334}, + {0.25,0.412222,0.248889333333333,0.422222}, + {0.251111333333332,0.403333333333334,0.25,0.412222}, + {0.252222666666663,0.395555333333334,0.251111333333332,0.403333333333334}, + {0.254444666666667,0.385555333333333,0.252222666666663,0.395555333333334}, + {0.257777999999997,0.377778,0.254444666666667,0.385555333333333}, + {0.261111333333332,0.371111333333333,0.257777999999997,0.377778}, + {0.265000000000001,0.366111333333333,0.261111333333332,0.371111333333333}, + {0.269444666666667,0.361666666666667,0.265000000000001,0.366111333333333}, + {0.274444666666668,0.357778,0.269444666666667,0.361666666666667}, + {0.278889333333334,0.355,0.274444666666668,0.357778}, + {0.28388933333333,0.352222,0.278889333333334,0.355}, + {0.28888933333333,0.349444666666667,0.28388933333333,0.352222}, + {0.29388933333333,0.347222,0.28888933333333,0.349444666666667}, + {0.298333333333332,0.344444666666667,0.29388933333333,0.347222}, + {0.302777999999999,0.341666666666667,0.298333333333332,0.344444666666667}, + {0.307222666666666,0.338888666666667,0.302777999999999,0.341666666666667}, + {0.311666666666667,0.336666666666667,0.307222666666666,0.338888666666667}, + {0.371111333333332,0.455555333333334,0.367222666666663,0.457778}, + {0.367222666666663,0.457778,0.362778000000001,0.459444666666667}, + {0.362778000000001,0.459444666666667,0.356111333333331,0.460555333333333}, + {0.356111333333331,0.460555333333333,0.348889333333332,0.461111333333333}, + {0.333889333333332,0.461111333333333,0.326666666666663,0.460555333333333}, + {0.326666666666663,0.460555333333333,0.319999999999998,0.459444666666667}, + {0.319999999999998,0.459444666666667,0.315556000000001,0.457778}, + {0.315556000000001,0.457778,0.311666666666667,0.455555333333334}, + {0.311666666666667,0.455555333333334,0.309444666666664,0.451666666666667}, + {0.309444666666664,0.451666666666667,0.307777999999999,0.446666666666667}, + {0.307777999999999,0.446666666666667,0.306666666666667,0.440555333333334}, + {0.306666666666667,0.440555333333334,0.306111333333334,0.433333333333334}, + {0.306111333333334,0.433333333333334,0.306111333333334,0.425555333333334}, + {0.306111333333334,0.425555333333334,0.306111333333334,0.417778}, + {0.306111333333334,0.417778,0.306666666666667,0.410555333333334}, + {0.306666666666667,0.410555333333334,0.307777999999999,0.404444666666667}, + {0.307777999999999,0.404444666666667,0.309444666666664,0.399444666666666}, + {0.309444666666664,0.399444666666666,0.311666666666667,0.395555333333334}, + {0.311666666666667,0.395555333333334,0.315556000000001,0.393333333333333}, + {0.315556000000001,0.393333333333333,0.319999999999998,0.391666666666667}, + {0.319999999999998,0.391666666666667,0.326666666666663,0.390555333333333}, + {0.326666666666663,0.390555333333333,0.333889333333332,0.39}, + {0.348889333333332,0.39,0.356111333333331,0.390555333333333}, + {0.356111333333331,0.390555333333333,0.362778000000001,0.391666666666667}, + {0.362778000000001,0.391666666666667,0.367222666666663,0.393333333333333}, + {0.367222666666663,0.393333333333333,0.371111333333332,0.395555333333334}, + {0.371111333333332,0.395555333333334,0.37333333333333,0.399444666666666}, + {0.37333333333333,0.399444666666666,0.375,0.404444666666667}, + {0.375,0.404444666666667,0.376111333333332,0.410555333333334}, + {0.376111333333332,0.410555333333334,0.376666666666665,0.417778}, + {0.376666666666665,0.417778,0.376666666666665,0.425555333333334}, + {0.376666666666665,0.425555333333334,0.376666666666665,0.433333333333334}, + {0.376666666666665,0.433333333333334,0.376111333333332,0.440555333333334}, + {0.376111333333332,0.440555333333334,0.375,0.446666666666667}, + {0.375,0.446666666666667,0.37333333333333,0.451666666666667}, + {0.37333333333333,0.451666666666667,0.371111333333332,0.455555333333334}, + {0.549444666666664,0.633888666666667,0.553889333333331,0.637778}, + {0.553889333333331,0.637778,0.557777999999999,0.64}, + {0.557777999999999,0.64,0.562222666666666,0.642222}, + {0.562222666666666,0.642222,0.566666666666668,0.643333333333333}, + {0.566666666666668,0.643333333333333,0.570556000000001,0.644444666666667}, + {0.570556000000001,0.644444666666667,0.574999999999998,0.645}, + {0.583333333333333,0.645,0.587778,0.644444666666667}, + {0.587778,0.644444666666667,0.591666666666664,0.643333333333333}, + {0.591666666666664,0.643333333333333,0.596111333333331,0.642222}, + {0.596111333333331,0.642222,0.600555999999997,0.64}, + {0.600555999999997,0.64,0.604444666666666,0.637778}, + {0.604444666666666,0.637778,0.608889333333333,0.633888666666667}, + {0.608889333333333,0.633888666666667,0.613333333333334,0.628888666666667}, + {0.613333333333334,0.628888666666667,0.617777999999996,0.623333333333333}, + {0.617777999999996,0.623333333333333,0.622222666666663,0.616111333333333}, + {0.622222666666663,0.616111333333333,0.626666666666665,0.608888666666667}, + {0.626666666666665,0.608888666666667,0.631666666666665,0.600555333333334}, + {0.631666666666665,0.600555333333334,0.636666666666665,0.591666666666667}, + {0.636666666666665,0.591666666666667,0.641666666666666,0.582778}, + {0.641666666666666,0.582778,0.646111333333332,0.573333333333334}, + {0.646111333333332,0.573333333333334,0.651111333333333,0.563888666666667}, + {0.651111333333333,0.563888666666667,0.655555999999999,0.554444666666667}, + {0.655555999999999,0.554444666666667,0.659444666666663,0.545}, + {0.659444666666663,0.545,0.662777999999998,0.535555333333334}, + {0.662777999999998,0.535555333333334,0.666111333333333,0.525555333333333}, + {0.666111333333333,0.525555333333333,0.668333333333332,0.515}, + {0.668333333333332,0.515,0.669999999999997,0.505555333333334}, + {0.669999999999997,0.505555333333334,0.671111333333333,0.495}, + {0.671111333333333,0.495,0.672222666666665,0.484444666666667}, + {0.672222666666665,0.484444666666667,0.672777999999999,0.472778}, + {0.672777999999999,0.472778,0.673333333333332,0.46}, + {0.673333333333332,0.46,0.67388933333333,0.447222}, + {0.67388933333333,0.447222,0.67388933333333,0.433888666666667}, + {0.67388933333333,0.433888666666667,0.67388933333333,0.42}, + {0.67388933333333,0.42,0.67388933333333,0.406666666666667}, + {0.67388933333333,0.406666666666667,0.67388933333333,0.393888666666667}, + {0.67388933333333,0.393888666666667,0.673333333333332,0.381666666666667}, + {0.673333333333332,0.381666666666667,0.672777999999999,0.37}, + {0.672777999999999,0.37,0.672222666666665,0.36}, + {0.672222666666665,0.36,0.671111333333333,0.350555333333334}, + {0.671111333333333,0.350555333333334,0.669999999999997,0.342778}, + {0.669999999999997,0.342778,0.668333333333332,0.336666666666667}, + {0.668333333333332,0.336666666666667,0.666666666666667,0.332222}, + {0.666666666666667,0.332222,0.664444666666663,0.328888666666667}, + {0.664444666666663,0.328888666666667,0.661666666666666,0.326111333333333}, + {0.661666666666666,0.326111333333333,0.658333333333331,0.323888666666667}, + {0.658333333333331,0.323888666666667,0.655000000000001,0.322222}, + {0.655000000000001,0.322222,0.651111333333333,0.321111333333333}, + {0.651111333333333,0.321111333333333,0.647222666666664,0.320555333333333}, + {0.647222666666664,0.320555333333333,0.642777999999997,0.32}, + {0.634444666666667,0.32,0.63,0.320555333333333}, + {0.63,0.320555333333333,0.626111333333332,0.321111333333333}, + {0.626111333333332,0.321111333333333,0.622222666666663,0.322222}, + {0.622222666666663,0.322222,0.618889333333333,0.323888666666667}, + {0.618889333333333,0.323888666666667,0.615555999999998,0.326111333333333}, + {0.615555999999998,0.326111333333333,0.612778000000001,0.328888666666667}, + {0.612778000000001,0.328888666666667,0.610555999999998,0.332222}, + {0.610555999999998,0.332222,0.608889333333333,0.336666666666667}, + {0.608889333333333,0.336666666666667,0.607222666666667,0.342778}, + {0.607222666666667,0.342778,0.606111333333331,0.351111333333333}, + {0.606111333333331,0.351111333333333,0.605555999999998,0.360555333333333}, + {0.605555999999998,0.360555333333333,0.605555999999998,0.371111333333333}, + {0.605555999999998,0.371111333333333,0.606111333333331,0.383888666666667}, + {0.606111333333331,0.383888666666667,0.606666666666664,0.397222}, + {0.606666666666664,0.397222,0.607778000000001,0.411111333333333}, + {0.607778000000001,0.411111333333333,0.608889333333333,0.426111333333333}, + {0.608889333333333,0.426111333333333,0.609999999999999,0.440555333333334}, + {0.609999999999999,0.440555333333334,0.611111333333331,0.454444666666667}, + {0.611111333333331,0.454444666666667,0.611666666666665,0.467778}, + {0.611666666666665,0.467778,0.612222666666668,0.480555333333333}, + {0.612222666666668,0.480555333333333,0.612222666666668,0.491111333333333}, + {0.612222666666668,0.491111333333333,0.611666666666665,0.500555333333333}, + {0.611666666666665,0.500555333333333,0.610555999999998,0.508888666666667}, + {0.610555999999998,0.508888666666667,0.608889333333333,0.515}, + {0.608889333333333,0.515,0.607222666666667,0.519444666666667}, + {0.607222666666667,0.519444666666667,0.604999999999999,0.522778}, + {0.604999999999999,0.522778,0.602222666666667,0.525555333333333}, + {0.602222666666667,0.525555333333333,0.598889333333332,0.527778}, + {0.598889333333332,0.527778,0.595555999999997,0.529444666666667}, + {0.595555999999997,0.529444666666667,0.591666666666664,0.530555333333333}, + {0.591666666666664,0.530555333333333,0.587778,0.531111333333333}, + {0.587778,0.531111333333333,0.583333333333333,0.531666666666667}, + {0.574999999999998,0.531666666666667,0.570556000000001,0.531111333333333}, + {0.570556000000001,0.531111333333333,0.566666666666668,0.530555333333333}, + {0.566666666666668,0.530555333333333,0.562777999999999,0.529444666666667}, + {0.562777999999999,0.529444666666667,0.559444666666664,0.527778}, + {0.559444666666664,0.527778,0.556111333333334,0.525555333333333}, + {0.556111333333334,0.525555333333333,0.553333333333332,0.522778}, + {0.553333333333332,0.522778,0.551111333333334,0.519444666666667}, + {0.551111333333334,0.519444666666667,0.549444666666664,0.515}, + {0.549444666666664,0.515,0.547777999999999,0.508888666666667}, + {0.547777999999999,0.508888666666667,0.546666666666667,0.500555333333333}, + {0.546666666666667,0.500555333333333,0.546111333333333,0.491111333333333}, + {0.546111333333333,0.491111333333333,0.546111333333333,0.480555333333333}, + {0.546111333333333,0.480555333333333,0.546666666666667,0.467778}, + {0.546666666666667,0.467778,0.547222666666665,0.454444666666667}, + {0.547222666666665,0.454444666666667,0.548333333333332,0.440555333333334}, + {0.548333333333332,0.440555333333334,0.549444666666664,0.426111333333333}, + {0.549444666666664,0.426111333333333,0.550556,0.411111333333333}, + {0.550556,0.411111333333333,0.551666666666667,0.397222}, + {0.551666666666667,0.397222,0.552222666666665,0.383888666666667}, + {0.552222666666665,0.383888666666667,0.552777999999999,0.371111333333333}, + {0.552777999999999,0.371111333333333,0.552777999999999,0.360555333333333}, + {0.552777999999999,0.360555333333333,0.552222666666665,0.351111333333333}, + {0.552222666666665,0.351111333333333,0.551111333333334,0.342778}, + {0.551111333333334,0.342778,0.549444666666664,0.336666666666667}, + {0.549444666666664,0.336666666666667,0.547777999999999,0.332222}, + {0.547777999999999,0.332222,0.545556,0.328888666666667}, + {0.545556,0.328888666666667,0.542777999999998,0.326111333333333}, + {0.542777999999998,0.326111333333333,0.539444666666663,0.323888666666667}, + {0.539444666666663,0.323888666666667,0.536111333333333,0.322222}, + {0.536111333333333,0.322222,0.532222666666665,0.321111333333333}, + {0.532222666666665,0.321111333333333,0.528333333333331,0.320555333333333}, + {0.528333333333331,0.320555333333333,0.523889333333334,0.32}, + {0.515555999999999,0.32,0.511111333333332,0.320555333333333}, + {0.511111333333332,0.320555333333333,0.507222666666664,0.321111333333333}, + {0.507222666666664,0.321111333333333,0.50333333333333,0.322222}, + {0.50333333333333,0.322222,0.5,0.323888666666667}, + {0.5,0.323888666666667,0.496666666666665,0.326111333333333}, + {0.496666666666665,0.326111333333333,0.493889333333333,0.328888666666667}, + {0.493889333333333,0.328888666666667,0.491666666666665,0.332222}, + {0.491666666666665,0.332222,0.49,0.336666666666667}, + {0.49,0.336666666666667,0.488333333333334,0.342778}, + {0.488333333333334,0.342778,0.487222666666668,0.350555333333334}, + {0.487222666666668,0.350555333333334,0.486111333333331,0.36}, + {0.486111333333331,0.36,0.485555999999998,0.37}, + {0.485555999999998,0.37,0.484999999999999,0.381666666666667}, + {0.484999999999999,0.381666666666667,0.484444666666666,0.393888666666667}, + {0.484444666666666,0.393888666666667,0.484444666666666,0.406666666666667}, + {0.484444666666666,0.406666666666667,0.484444666666666,0.42}, + {0.484444666666666,0.42,0.484444666666666,0.433888666666667}, + {0.484444666666666,0.433888666666667,0.484444666666666,0.447222}, + {0.484444666666666,0.447222,0.484999999999999,0.46}, + {0.484999999999999,0.46,0.485555999999998,0.472778}, + {0.485555999999998,0.472778,0.486111333333331,0.484444666666667}, + {0.486111333333331,0.484444666666667,0.487222666666668,0.495}, + {0.487222666666668,0.495,0.488333333333334,0.505555333333334}, + {0.488333333333334,0.505555333333334,0.49,0.515}, + {0.49,0.515,0.492222666666663,0.525555333333333}, + {0.492222666666663,0.525555333333333,0.495555999999998,0.535555333333334}, + {0.495555999999998,0.535555333333334,0.498889333333333,0.545}, + {0.498889333333333,0.545,0.502777999999997,0.554444666666667}, + {0.502777999999997,0.554444666666667,0.507222666666664,0.563888666666667}, + {0.507222666666664,0.563888666666667,0.512222666666664,0.573333333333334}, + {0.512222666666664,0.573333333333334,0.516666666666666,0.582778}, + {0.516666666666666,0.582778,0.521666666666666,0.591666666666667}, + {0.521666666666666,0.591666666666667,0.526666666666666,0.600555333333334}, + {0.526666666666666,0.600555333333334,0.531666666666666,0.608888666666667}, + {0.531666666666666,0.608888666666667,0.536111333333333,0.616111333333333}, + {0.536111333333333,0.616111333333333,0.540556,0.623333333333333}, + {0.540556,0.623333333333333,0.544999999999997,0.628888666666667}, + {0.544999999999997,0.628888666666667,0.549444666666664,0.633888666666667}, + {0.728333333333334,0.633888666666667,0.734444666666666,0.642222}, + {0.734444666666666,0.642222,0.742222666666663,0.647778}, + {0.742222666666663,0.647778,0.751666666666665,0.651666666666667}, + {0.751666666666665,0.651666666666667,0.762777999999997,0.653888666666666}, + {0.762777999999997,0.653888666666666,0.775000000000001,0.655}, + {0.775000000000001,0.655,0.788333333333332,0.654444666666667}, + {0.788333333333332,0.654444666666667,0.802777999999999,0.652778}, + {0.802777999999999,0.652778,0.817222666666666,0.650555333333333}, + {0.817222666666666,0.650555333333333,0.831666666666663,0.648333333333333}, + {0.831666666666663,0.648333333333333,0.846111333333331,0.645555333333334}, + {0.846111333333331,0.645555333333334,0.859444666666666,0.643333333333333}, + {0.859444666666666,0.643333333333333,0.871666666666665,0.641111333333334}, + {0.871666666666665,0.641111333333334,0.882777999999997,0.638888666666666}, + {0.882777999999997,0.638888666666666,0.892222666666664,0.637222}, + {0.892222666666664,0.637222,0.900000000000001,0.635555333333333}, + {0.900000000000001,0.635555333333333,0.906111333333333,0.633888666666667}, + {0.906111333333333,0.633888666666667,0.911111333333333,0.631666666666667}, + {0.911111333333333,0.631666666666667,0.914444666666663,0.628888666666667}, + {0.914444666666663,0.628888666666667,0.917222666666665,0.626111333333334}, + {0.917222666666665,0.626111333333334,0.91888933333333,0.622222}, + {0.91888933333333,0.622222,0.919999999999997,0.618333333333334}, + {0.919999999999997,0.618333333333334,0.920556,0.613888666666667}, + {0.920556,0.613888666666667,0.920556,0.608888666666667}, + {0.920556,0.608888666666667,0.919999999999997,0.604444666666667}, + {0.919999999999997,0.604444666666667,0.919444666666664,0.599444666666667}, + {0.919444666666664,0.599444666666667,0.918333333333332,0.594444666666667}, + {0.918333333333332,0.594444666666667,0.917222666666665,0.59}, + {0.917222666666665,0.59,0.915556,0.586111333333333}, + {0.915556,0.586111333333333,0.91388933333333,0.582222}, + {0.91388933333333,0.582222,0.912222666666665,0.579444666666667}, + {0.912222666666665,0.579444666666667,0.909444666666663,0.576666666666667}, + {0.909444666666663,0.576666666666667,0.906111333333333,0.574444666666666}, + {0.906111333333333,0.574444666666666,0.901111333333333,0.572778}, + {0.901111333333333,0.572778,0.895000000000001,0.571666666666667}, + {0.895000000000001,0.571666666666667,0.887222666666664,0.571111333333333}, + {0.87833333333333,0.571111333333333,0.86833333333333,0.572222}, + {0.86833333333333,0.572222,0.857778000000001,0.573333333333334}, + {0.857778000000001,0.573333333333334,0.846666666666664,0.574444666666666}, + {0.846666666666664,0.574444666666666,0.835555999999997,0.575555333333333}, + {0.835555999999997,0.575555333333333,0.824999999999998,0.576666666666667}, + {0.824999999999998,0.576666666666667,0.814999999999998,0.577778}, + {0.806111333333334,0.577778,0.798333333333332,0.577222}, + {0.798333333333332,0.577222,0.792222666666665,0.576111333333333}, + {0.792222666666665,0.576111333333333,0.787222666666665,0.574444666666666}, + {0.787222666666665,0.574444666666666,0.783333333333331,0.571666666666667}, + {0.783333333333331,0.571666666666667,0.780555999999999,0.567778}, + {0.780555999999999,0.567778,0.778889333333334,0.562778}, + {0.778889333333334,0.562778,0.778333333333331,0.557222}, + {0.778333333333331,0.557222,0.778333333333331,0.551111333333333}, + {0.778333333333331,0.551111333333333,0.778889333333334,0.544444666666667}, + {0.778889333333334,0.544444666666667,0.780000000000001,0.538333333333333}, + {0.780000000000001,0.538333333333333,0.780555999999999,0.532222}, + {0.780555999999999,0.532222,0.782222666666665,0.526666666666667}, + {0.782222666666665,0.526666666666667,0.783333333333331,0.521666666666667}, + {0.783333333333331,0.521666666666667,0.784999999999997,0.517778}, + {0.784999999999997,0.517778,0.787222666666665,0.515}, + {0.787222666666665,0.515,0.791111333333333,0.512778}, + {0.791111333333333,0.512778,0.796111333333333,0.511666666666667}, + {0.796111333333333,0.511666666666667,0.802222666666665,0.512222}, + {0.802222666666665,0.512222,0.809444666666664,0.513333333333333}, + {0.809444666666664,0.513333333333333,0.817222666666666,0.515}, + {0.817222666666666,0.515,0.824999999999998,0.516666666666667}, + {0.824999999999998,0.516666666666667,0.832222666666667,0.517778}, + {0.832222666666667,0.517778,0.838333333333333,0.518333333333333}, + {0.838333333333333,0.518333333333333,0.843333333333334,0.517222}, + {0.843333333333334,0.517222,0.847222666666667,0.515}, + {0.847222666666667,0.515,0.849444666666666,0.511111333333333}, + {0.849444666666666,0.511111333333333,0.851111333333331,0.506666666666667}, + {0.851111333333331,0.506666666666667,0.852222666666667,0.5}, + {0.852222666666667,0.5,0.852778000000001,0.492778}, + {0.852778000000001,0.492778,0.852778000000001,0.485}, + {0.852778000000001,0.485,0.852778000000001,0.477778}, + {0.852778000000001,0.477778,0.852222666666667,0.470555333333333}, + {0.852222666666667,0.470555333333333,0.851111333333331,0.463888666666667}, + {0.851111333333331,0.463888666666667,0.849444666666666,0.459444666666667}, + {0.849444666666666,0.459444666666667,0.847222666666667,0.455555333333334}, + {0.847222666666667,0.455555333333334,0.843333333333334,0.453333333333333}, + {0.843333333333334,0.453333333333333,0.838333333333333,0.452222}, + {0.838333333333333,0.452222,0.832222666666667,0.452778}, + {0.832222666666667,0.452778,0.824999999999998,0.453888666666667}, + {0.824999999999998,0.453888666666667,0.817222666666666,0.455555333333334}, + {0.817222666666666,0.455555333333334,0.809444666666664,0.457222}, + {0.809444666666664,0.457222,0.802222666666665,0.458888666666667}, + {0.796111333333333,0.458888666666667,0.791111333333333,0.457778}, + {0.791111333333333,0.457778,0.787222666666665,0.455555333333334}, + {0.787222666666665,0.455555333333334,0.784999999999997,0.452778}, + {0.784999999999997,0.452778,0.783333333333331,0.448888666666667}, + {0.783333333333331,0.448888666666667,0.782222666666665,0.443888666666667}, + {0.782222666666665,0.443888666666667,0.780555999999999,0.438333333333333}, + {0.780555999999999,0.438333333333333,0.780000000000001,0.432222}, + {0.780000000000001,0.432222,0.778889333333334,0.425555333333334}, + {0.778889333333334,0.425555333333334,0.778333333333331,0.418888666666666}, + {0.778333333333331,0.418888666666666,0.778333333333331,0.412778}, + {0.778333333333331,0.412778,0.778889333333334,0.407222}, + {0.778889333333334,0.407222,0.780555999999999,0.402222}, + {0.780555999999999,0.402222,0.783333333333331,0.398333333333333}, + {0.783333333333331,0.398333333333333,0.787222666666665,0.395555333333334}, + {0.787222666666665,0.395555333333334,0.792222666666665,0.393888666666667}, + {0.792222666666665,0.393888666666667,0.798333333333332,0.392778}, + {0.798333333333332,0.392778,0.806111333333334,0.392222}, + {0.814999999999998,0.392222,0.824999999999998,0.393333333333333}, + {0.824999999999998,0.393333333333333,0.835555999999997,0.394444666666667}, + {0.835555999999997,0.394444666666667,0.846666666666664,0.395555333333334}, + {0.846666666666664,0.395555333333334,0.857778000000001,0.396666666666667}, + {0.857778000000001,0.396666666666667,0.86833333333333,0.397778}, + {0.86833333333333,0.397778,0.87833333333333,0.398888666666667}, + {0.887222666666664,0.398888666666667,0.895000000000001,0.398333333333333}, + {0.895000000000001,0.398333333333333,0.901111333333333,0.397222}, + {0.901111333333333,0.397222,0.906111333333333,0.395555333333334}, + {0.906111333333333,0.395555333333334,0.909444666666663,0.393333333333333}, + {0.909444666666663,0.393333333333333,0.912222666666665,0.391111333333334}, + {0.912222666666665,0.391111333333334,0.91388933333333,0.387778}, + {0.91388933333333,0.387778,0.915556,0.383888666666667}, + {0.915556,0.383888666666667,0.917222666666665,0.38}, + {0.917222666666665,0.38,0.918333333333332,0.375555333333333}, + {0.918333333333332,0.375555333333333,0.919444666666664,0.371111333333333}, + {0.919444666666664,0.371111333333333,0.919999999999997,0.366111333333333}, + {0.919999999999997,0.366111333333333,0.920556,0.361111333333334}, + {0.920556,0.361111333333334,0.920556,0.356666666666667}, + {0.920556,0.356666666666667,0.919999999999997,0.352222}, + {0.919999999999997,0.352222,0.91888933333333,0.348333333333333}, + {0.91888933333333,0.348333333333333,0.917222666666665,0.344444666666667}, + {0.917222666666665,0.344444666666667,0.914444666666663,0.341111333333333}, + {0.914444666666663,0.341111333333333,0.911111333333333,0.338888666666667}, + {0.911111333333333,0.338888666666667,0.906111333333333,0.336666666666667}, + {0.906111333333333,0.336666666666667,0.900000000000001,0.335}, + {0.900000000000001,0.335,0.892222666666664,0.333333333333333}, + {0.892222666666664,0.333333333333333,0.882777999999997,0.331666666666666}, + {0.882777999999997,0.331666666666666,0.871666666666665,0.33}, + {0.871666666666665,0.33,0.859444666666666,0.327222}, + {0.859444666666666,0.327222,0.846111333333331,0.325}, + {0.846111333333331,0.325,0.831666666666663,0.322222}, + {0.831666666666663,0.322222,0.817222666666666,0.32}, + {0.817222666666666,0.32,0.802777999999999,0.317778}, + {0.802777999999999,0.317778,0.788333333333332,0.316111333333333}, + {0.788333333333332,0.316111333333333,0.775000000000001,0.315555333333334}, + {0.775000000000001,0.315555333333334,0.762777999999997,0.316666666666666}, + {0.762777999999997,0.316666666666666,0.751666666666665,0.318888666666667}, + {0.751666666666665,0.318888666666667,0.742222666666663,0.322778}, + {0.742222666666663,0.322778,0.734444666666666,0.328333333333333}, + {0.734444666666666,0.328333333333333,0.728333333333334,0.336666666666667}, + {0.728333333333334,0.336666666666667,0.724444666666666,0.343888666666667}, + {0.724444666666666,0.343888666666667,0.721666666666664,0.352778}, + {0.721666666666664,0.352778,0.718889333333332,0.362778}, + {0.718889333333332,0.362778,0.717222666666667,0.374444666666667}, + {0.717222666666667,0.374444666666667,0.715555999999997,0.387222}, + {0.715555999999997,0.387222,0.714444666666665,0.401666666666667}, + {0.714444666666665,0.401666666666667,0.713333333333333,0.417222}, + {0.713333333333333,0.417222,0.712778,0.433333333333334}, + {0.712778,0.433333333333334,0.712222666666667,0.45}, + {0.712222666666667,0.45,0.711666666666664,0.467778}, + {0.711666666666664,0.467778,0.711666666666664,0.485555333333333}, + {0.711666666666664,0.485555333333333,0.711666666666664,0.502778}, + {0.711666666666664,0.502778,0.712222666666667,0.520555333333334}, + {0.712222666666667,0.520555333333334,0.712778,0.537222}, + {0.712778,0.537222,0.713333333333333,0.553333333333333}, + {0.713333333333333,0.553333333333333,0.714444666666665,0.568888666666667}, + {0.714444666666665,0.568888666666667,0.715555999999997,0.583333333333333}, + {0.715555999999997,0.583333333333333,0.717222666666667,0.596111333333334}, + {0.717222666666667,0.596111333333334,0.718889333333332,0.607778}, + {0.718889333333332,0.607778,0.721666666666664,0.617778}, + {0.721666666666664,0.617778,0.724444666666666,0.626666666666667}, + {0.724444666666666,0.626666666666667,0.728333333333334,0.633888666666667}, + {0,0,0,0} +}; + +double Icon37[][4] = { + {0.140555333333334,0.338888666666667,0.133333333333335,0.336111333333333}, + {0.147221999999999,0.342778,0.140555333333334,0.338888666666667}, + {0.153333333333336,0.346666666666666,0.147221999999999,0.342778}, + {0.159444000000003,0.351666666666667,0.153333333333336,0.346666666666666}, + {0.165000000000002,0.356666666666667,0.159444000000003,0.351666666666667}, + {0.170000000000002,0.362222,0.165000000000002,0.356666666666667}, + {0.175555333333335,0.367778,0.170000000000002,0.362222}, + {0.180000000000002,0.373333333333333,0.175555333333335,0.367778}, + {0.185000000000002,0.378888666666667,0.180000000000002,0.373333333333333}, + {0.188888666666666,0.384444666666666,0.185000000000002,0.378888666666667}, + {0.192777333333334,0.39,0.188888666666666,0.384444666666666}, + {0.195555333333336,0.395555333333334,0.192777333333334,0.39}, + {0.198333333333333,0.402222,0.195555333333336,0.395555333333334}, + {0.200000000000003,0.409444666666667,0.198333333333333,0.402222}, + {0.200555333333336,0.417222,0.200000000000003,0.409444666666667}, + {0.20111066666667,0.425555333333334,0.200555333333336,0.417222}, + {0.201666666666668,0.433333333333334,0.20111066666667,0.425555333333334}, + {0.20111066666667,0.441666666666666,0.201666666666668,0.433333333333334}, + {0.200555333333336,0.449444666666666,0.20111066666667,0.441666666666666}, + {0.200000000000003,0.456666666666666,0.200555333333336,0.449444666666666}, + {0.198333333333333,0.463888666666667,0.200000000000003,0.456666666666666}, + {0.195555333333336,0.47,0.198333333333333,0.463888666666667}, + {0.191666666666668,0.475555333333334,0.195555333333336,0.47}, + {0.186110666666669,0.480555333333333,0.191666666666668,0.475555333333334}, + {0.17888866666667,0.483888666666667,0.186110666666669,0.480555333333333}, + {0.170555333333335,0.487222,0.17888866666667,0.483888666666667}, + {0.161666666666666,0.49,0.170555333333335,0.487222}, + {0.152777333333333,0.492778,0.161666666666666,0.49}, + {0.144444000000002,0.496666666666667,0.152777333333333,0.492778}, + {0.138333333333335,0.501111333333334,0.144444000000002,0.496666666666667}, + {0.134444000000002,0.507222,0.138333333333335,0.501111333333334}, + {0.133333333333335,0.514444666666667,0.134444000000002,0.507222}, + {0.133888666666669,0.520555333333334,0.133333333333335,0.514444666666667}, + {0.136110666666667,0.527778,0.133888666666669,0.520555333333334}, + {0.139444000000002,0.536111333333333,0.136110666666667,0.527778}, + {0.144444000000002,0.545,0.139444000000002,0.536111333333333}, + {0.150555333333334,0.555,0.144444000000002,0.545}, + {0.157222,0.565555333333334,0.150555333333334,0.555}, + {0.164444000000003,0.576111333333333,0.157222,0.565555333333334}, + {0.171666666666667,0.586666666666667,0.164444000000003,0.576111333333333}, + {0.178333333333337,0.597222,0.171666666666667,0.586666666666667}, + {0.184443999999999,0.606666666666667,0.178333333333337,0.597222}, + {0.189443999999999,0.615555333333334,0.184443999999999,0.606666666666667}, + {0.192777333333334,0.622778,0.189443999999999,0.615555333333334}, + {0.195000000000003,0.628888666666667,0.192777333333334,0.622778}, + {0.195555333333336,0.633888666666667,0.195000000000003,0.628888666666667}, + {0.195000000000003,0.637778,0.195555333333336,0.633888666666667}, + {0.193333333333333,0.640555333333333,0.195000000000003,0.637778}, + {0.190000000000002,0.642222,0.193333333333333,0.640555333333333}, + {0.186110666666669,0.643333333333333,0.190000000000002,0.642222}, + {0.181110666666669,0.644444666666667,0.186110666666669,0.643333333333333}, + {0.176110666666669,0.645,0.181110666666669,0.644444666666667}, + {0.158333333333336,0.644444666666667,0.164444000000003,0.645}, + {0.152777333333333,0.643333333333333,0.158333333333336,0.644444666666667}, + {0.147777333333333,0.642222,0.152777333333333,0.643333333333333}, + {0.142777333333332,0.640555333333333,0.147777333333333,0.642222}, + {0.137777333333337,0.637778,0.142777333333332,0.640555333333333}, + {0.133333333333335,0.633888666666667,0.137777333333337,0.637778}, + {0.128888666666668,0.628888666666667,0.133333333333335,0.633888666666667}, + {0.124444000000002,0.622222,0.128888666666668,0.628888666666667}, + {0.119444000000001,0.614444666666667,0.124444000000002,0.622222}, + {0.114444000000001,0.604444666666667,0.119444000000001,0.614444666666667}, + {0.109444000000001,0.593333333333333,0.114444000000001,0.604444666666667}, + {0.104444000000001,0.581111333333334,0.109444000000001,0.593333333333333}, + {0.0994440000000007,0.568333333333333,0.104444000000001,0.581111333333334}, + {0.0944440000000005,0.556111333333333,0.0994440000000007,0.568333333333333}, + {0.0894440000000003,0.544444666666667,0.0944440000000005,0.556111333333333}, + {0.0850000000000032,0.534444666666667,0.0894440000000003,0.544444666666667}, + {0.0805553333333364,0.525555333333333,0.0850000000000032,0.534444666666667}, + {0.076666666666668,0.519444666666667,0.0805553333333364,0.525555333333333}, + {0.0738886666666663,0.515555333333333,0.076666666666668,0.519444666666667}, + {0.0711106666666694,0.514444666666667,0.0738886666666663,0.515555333333333}, + {0.0694439999999995,0.515555333333333,0.0711106666666694,0.514444666666667}, + {0.0677773333333344,0.519444666666667,0.0694439999999995,0.515555333333333}, + {0.0677773333333344,0.525555333333333,0.0677773333333344,0.519444666666667}, + {0.0677773333333344,0.534444666666667,0.0677773333333344,0.525555333333333}, + {0.0683333333333328,0.544444666666667,0.0677773333333344,0.534444666666667}, + {0.0700000000000026,0.556111333333333,0.0683333333333328,0.544444666666667}, + {0.0711106666666694,0.568333333333333,0.0700000000000026,0.556111333333333}, + {0.0722220000000012,0.581111333333334,0.0711106666666694,0.568333333333333}, + {0.0733333333333329,0.593333333333333,0.0722220000000012,0.581111333333334}, + {0.0744439999999997,0.604444666666667,0.0733333333333329,0.593333333333333}, + {0.0744439999999997,0.614444666666667,0.0744439999999997,0.604444666666667}, + {0.0738886666666663,0.622222,0.0744439999999997,0.614444666666667}, + {0.0727773333333346,0.628888666666667,0.0738886666666663,0.622222}, + {0.0711106666666694,0.633888666666667,0.0727773333333346,0.628888666666667}, + {0.0694439999999995,0.636666666666667,0.0711106666666694,0.633888666666667}, + {0.067222000000001,0.638888666666666,0.0694439999999995,0.636666666666667}, + {0.0650000000000025,0.641111333333334,0.067222000000001,0.638888666666666}, + {0.0622220000000008,0.642778,0.0650000000000025,0.641111333333334}, + {0.0588886666666658,0.645,0.0622220000000008,0.642778}, + {0.0555553333333355,0.646666666666667,0.0588886666666658,0.645}, + {0.0522220000000004,0.648333333333333,0.0555553333333355,0.646666666666667}, + {0.0483333333333367,0.65,0.0522220000000004,0.648333333333333}, + {0.0444440000000033,0.651666666666667,0.0483333333333367,0.65}, + {0.0400000000000015,0.653333333333334,0.0444440000000033,0.651666666666667}, + {0.0361106666666681,0.654444666666667,0.0400000000000015,0.653333333333334}, + {0.0322219999999997,0.655555333333333,0.0361106666666681,0.654444666666667}, + {0.028333333333336,0.656111333333333,0.0322219999999997,0.655555333333333}, + {0.0250000000000009,0.655555333333333,0.028333333333336,0.656111333333333}, + {0.0216666666666659,0.655,0.0250000000000009,0.655555333333333}, + {0.0183333333333356,0.652778,0.0216666666666659,0.655}, + {0.015555333333334,0.65,0.0183333333333356,0.652778}, + {0.0133333333333354,0.646111333333333,0.015555333333334,0.65}, + {0.0111106666666672,0.640555333333333,0.0133333333333354,0.646111333333333}, + {0.00944400000000201,0.633888666666667,0.0111106666666672,0.640555333333333}, + {0.00833333333333523,0.626666666666667,0.00944400000000201,0.633888666666667}, + {0.00722200000000347,0.617778,0.00833333333333523,0.626666666666667}, + {0.00611066666666697,0.607778,0.00722200000000347,0.617778}, + {0.00500000000000019,0.596111333333334,0.00611066666666697,0.607778}, + {0.00444400000000182,0.582778,0.00500000000000019,0.596111333333334}, + {0.00388866666666843,0.568888666666667,0.00444400000000182,0.582778}, + {0.00333333333333504,0.553333333333333,0.00388866666666843,0.568888666666667}, + {0.00222200000000328,0.537222,0.00333333333333504,0.553333333333333}, + {0.00166666666666989,0.52,0.00222200000000328,0.537222}, + {0.00111066666666678,0.502778,0.00166666666666989,0.52}, + {0.000555333333333389,0.485,0.00111066666666678,0.502778}, + {0.000555333333333389,0.467222,0.000555333333333389,0.485}, + {0,0.45,0.000555333333333389,0.467222}, + {0,0.432778,0,0.45}, + {0,0.416666666666667,0,0.432778}, + {0.000555333333333389,0.401111333333333,0,0.416666666666667}, + {0.00111066666666678,0.387222,0.000555333333333389,0.401111333333333}, + {0.00166666666666989,0.373888666666667,0.00111066666666678,0.387222}, + {0.00333333333333504,0.362222,0.00166666666666989,0.373888666666667}, + {0.00500000000000019,0.352222,0.00333333333333504,0.362222}, + {0.00666666666667008,0.343333333333333,0.00500000000000019,0.352222}, + {0.00944400000000201,0.336111333333333,0.00666666666667008,0.343333333333333}, + {0.0138886666666688,0.327778,0.00944400000000201,0.336111333333333}, + {0.0194440000000024,0.322222,0.0138886666666688,0.327778}, + {0.0255553333333343,0.317778,0.0194440000000024,0.322222}, + {0.0327773333333331,0.316111333333333,0.0255553333333343,0.317778}, + {0.0411106666666683,0.315,0.0327773333333331,0.316111333333333}, + {0.0500000000000019,0.315555333333334,0.0411106666666683,0.315}, + {0.0588886666666658,0.317222,0.0500000000000019,0.315555333333334}, + {0.0683333333333328,0.319444666666667,0.0588886666666658,0.317222}, + {0.0777773333333348,0.321666666666667,0.0683333333333328,0.319444666666667}, + {0.0872220000000018,0.324444666666666,0.0777773333333348,0.321666666666667}, + {0.0966666666666687,0.326666666666667,0.0872220000000018,0.324444666666666}, + {0.104999999999999,0.328888666666667,0.0966666666666687,0.326666666666667}, + {0.113333333333334,0.331111333333334,0.104999999999999,0.328888666666667}, + {0.120555333333333,0.332778,0.113333333333334,0.331111333333334}, + {0.127222000000003,0.334444666666667,0.120555333333333,0.332778}, + {0.133333333333335,0.336111333333333,0.127222000000003,0.334444666666667}, + {0.136110666666667,0.451666666666667,0.133333333333335,0.455555333333334}, + {0.137777333333337,0.446666666666667,0.136110666666667,0.451666666666667}, + {0.138333333333335,0.440555333333334,0.137777333333337,0.446666666666667}, + {0.138888666666669,0.433333333333334,0.138333333333335,0.440555333333334}, + {0.139444000000002,0.425555333333334,0.138888666666669,0.433333333333334}, + {0.138888666666669,0.417778,0.139444000000002,0.425555333333334}, + {0.138333333333335,0.410555333333334,0.138888666666669,0.417778}, + {0.137777333333337,0.404444666666667,0.138333333333335,0.410555333333334}, + {0.136110666666667,0.399444666666666,0.137777333333337,0.404444666666667}, + {0.133333333333335,0.395555333333334,0.136110666666667,0.399444666666666}, + {0.129444000000002,0.393333333333333,0.133333333333335,0.395555333333334}, + {0.124444000000002,0.391666666666667,0.129444000000002,0.393333333333333}, + {0.117777333333336,0.390555333333333,0.124444000000002,0.391666666666667}, + {0.110555333333333,0.39,0.117777333333336,0.390555333333333}, + {0.0866666666666684,0.390555333333333,0.0938886666666671,0.39}, + {0.080000000000003,0.391666666666667,0.0866666666666684,0.390555333333333}, + {0.0750000000000028,0.393333333333333,0.080000000000003,0.391666666666667}, + {0.0711106666666694,0.395555333333334,0.0750000000000028,0.393333333333333}, + {0.0683333333333328,0.399444666666666,0.0711106666666694,0.395555333333334}, + {0.0666666666666676,0.404444666666667,0.0683333333333328,0.399444666666666}, + {0.0661106666666692,0.410555333333334,0.0666666666666676,0.404444666666667}, + {0.0655553333333359,0.417778,0.0661106666666692,0.410555333333334}, + {0.0655553333333359,0.425555333333334,0.0655553333333359,0.417778}, + {0.0655553333333359,0.433333333333334,0.0655553333333359,0.425555333333334}, + {0.0661106666666692,0.440555333333334,0.0655553333333359,0.433333333333334}, + {0.0666666666666676,0.446666666666667,0.0661106666666692,0.440555333333334}, + {0.0683333333333328,0.451666666666667,0.0666666666666676,0.446666666666667}, + {0.0711106666666694,0.455555333333334,0.0683333333333328,0.451666666666667}, + {0.0750000000000028,0.457778,0.0711106666666694,0.455555333333334}, + {0.080000000000003,0.459444666666667,0.0750000000000028,0.457778}, + {0.0866666666666684,0.460555333333333,0.080000000000003,0.459444666666667}, + {0.0938886666666671,0.461111333333333,0.0866666666666684,0.460555333333333}, + {0.117777333333336,0.460555333333333,0.110555333333333,0.461111333333333}, + {0.124444000000002,0.459444666666667,0.117777333333336,0.460555333333333}, + {0.129444000000002,0.457778,0.124444000000002,0.459444666666667}, + {0.133333333333335,0.455555333333334,0.129444000000002,0.457778}, + {0.257222000000003,0.633888666666667,0.262777333333337,0.641111333333334}, + {0.262777333333337,0.641111333333334,0.270000000000001,0.646666666666667}, + {0.270000000000001,0.646666666666667,0.278333333333336,0.651111333333333}, + {0.278333333333336,0.651111333333333,0.288333333333336,0.653333333333334}, + {0.288333333333336,0.653333333333334,0.29888866666667,0.654444666666667}, + {0.29888866666667,0.654444666666667,0.311110666666669,0.655}, + {0.311110666666669,0.655,0.323333333333333,0.653888666666666}, + {0.323333333333333,0.653888666666666,0.336666666666668,0.652778}, + {0.336666666666668,0.652778,0.350555333333332,0.650555333333333}, + {0.350555333333332,0.650555333333333,0.363888666666668,0.648333333333333}, + {0.363888666666668,0.648333333333333,0.377222000000003,0.646111333333333}, + {0.377222000000003,0.646111333333333,0.389444000000002,0.643888666666667}, + {0.389444000000002,0.643888666666667,0.401666666666666,0.641666666666667}, + {0.401666666666666,0.641666666666667,0.412222,0.64}, + {0.412222,0.64,0.422222,0.638333333333333}, + {0.422222,0.638333333333333,0.430555333333335,0.636666666666667}, + {0.430555333333335,0.636666666666667,0.437777333333334,0.635555333333333}, + {0.437777333333334,0.635555333333333,0.443333333333333,0.633888666666667}, + {0.443333333333333,0.633888666666667,0.448333333333333,0.631666666666667}, + {0.448333333333333,0.631666666666667,0.452222000000001,0.628888666666667}, + {0.452222000000001,0.628888666666667,0.455000000000003,0.626111333333334}, + {0.455000000000003,0.626111333333334,0.456666666666668,0.622222}, + {0.456666666666668,0.622222,0.457777333333335,0.618333333333334}, + {0.457777333333335,0.618333333333334,0.458333333333333,0.613333333333333}, + {0.458333333333333,0.613333333333333,0.458333333333333,0.608888666666667}, + {0.458333333333333,0.608888666666667,0.457777333333335,0.603888666666667}, + {0.457777333333335,0.603888666666667,0.457222000000002,0.598888666666667}, + {0.457222000000002,0.598888666666667,0.45611066666667,0.594444666666667}, + {0.45611066666667,0.594444666666667,0.455000000000003,0.589444666666667}, + {0.455000000000003,0.589444666666667,0.453333333333333,0.585555333333333}, + {0.453333333333333,0.585555333333333,0.451666666666668,0.581666666666666}, + {0.451666666666668,0.581666666666666,0.449444,0.578888666666667}, + {0.449444,0.578888666666667,0.446666666666668,0.576111333333333}, + {0.446666666666668,0.576111333333333,0.443333333333333,0.573888666666667}, + {0.443333333333333,0.573888666666667,0.438333333333333,0.572222}, + {0.438333333333333,0.572222,0.431666666666667,0.571111333333333}, + {0.431666666666667,0.571111333333333,0.42388866666667,0.570555333333333}, + {0.414444000000003,0.570555333333333,0.403888666666669,0.571666666666667}, + {0.403888666666669,0.571666666666667,0.392777333333332,0.572778}, + {0.392777333333332,0.572778,0.381110666666667,0.573888666666667}, + {0.381110666666667,0.573888666666667,0.37,0.575}, + {0.37,0.575,0.358888666666668,0.576111333333333}, + {0.358888666666668,0.576111333333333,0.348333333333334,0.577222}, + {0.338888666666667,0.577222,0.33111066666667,0.576666666666667}, + {0.33111066666667,0.576666666666667,0.324444,0.575555333333333}, + {0.324444,0.575555333333333,0.319444,0.573888666666667}, + {0.319444,0.573888666666667,0.315000000000002,0.571111333333333}, + {0.315000000000002,0.571111333333333,0.312222000000001,0.567222}, + {0.312222000000001,0.567222,0.310555333333336,0.562222}, + {0.310555333333336,0.562222,0.310000000000002,0.556666666666667}, + {0.310000000000002,0.556666666666667,0.310000000000002,0.550555333333334}, + {0.310000000000002,0.550555333333334,0.310555333333336,0.543888666666666}, + {0.310555333333336,0.543888666666666,0.311666666666667,0.537778}, + {0.311666666666667,0.537778,0.312777333333334,0.531666666666667}, + {0.312777333333334,0.531666666666667,0.313888666666666,0.526111333333333}, + {0.313888666666666,0.526111333333333,0.315555333333336,0.521111333333333}, + {0.315555333333336,0.521111333333333,0.317222000000001,0.517222}, + {0.317222000000001,0.517222,0.319444,0.514444666666667}, + {0.319444,0.514444666666667,0.323333333333333,0.512222}, + {0.323333333333333,0.512222,0.328333333333333,0.511111333333333}, + {0.328333333333333,0.511111333333333,0.335000000000003,0.511666666666667}, + {0.335000000000003,0.511666666666667,0.342222000000002,0.512778}, + {0.342222000000002,0.512778,0.350555333333332,0.514444666666667}, + {0.350555333333332,0.514444666666667,0.358333333333334,0.516111333333334}, + {0.358333333333334,0.516111333333334,0.365555333333333,0.517222}, + {0.365555333333333,0.517222,0.372222000000003,0.517778}, + {0.372222000000003,0.517778,0.377222000000003,0.516666666666667}, + {0.377222000000003,0.516666666666667,0.381110666666667,0.514444666666667}, + {0.381110666666667,0.514444666666667,0.383888666666669,0.511111333333333}, + {0.383888666666669,0.511111333333333,0.385,0.506111333333333}, + {0.385,0.506111333333333,0.386110666666667,0.5}, + {0.386110666666667,0.5,0.38666666666667,0.492778}, + {0.38666666666667,0.492778,0.38666666666667,0.485}, + {0.38666666666667,0.485,0.38666666666667,0.477222}, + {0.38666666666667,0.477222,0.386110666666667,0.47}, + {0.386110666666667,0.47,0.385,0.463888666666667}, + {0.385,0.463888666666667,0.383888666666669,0.458888666666667}, + {0.383888666666669,0.458888666666667,0.381110666666667,0.455555333333334}, + {0.381110666666667,0.455555333333334,0.377222000000003,0.453333333333333}, + {0.377222000000003,0.453333333333333,0.372222000000003,0.452222}, + {0.372222000000003,0.452222,0.365555333333333,0.452778}, + {0.365555333333333,0.452778,0.358333333333334,0.453888666666667}, + {0.358333333333334,0.453888666666667,0.349999999999999,0.455555333333334}, + {0.349999999999999,0.455555333333334,0.342222000000002,0.457222}, + {0.342222000000002,0.457222,0.335000000000003,0.458888666666667}, + {0.328333333333333,0.458888666666667,0.323333333333333,0.457778}, + {0.323333333333333,0.457778,0.319444,0.455555333333334}, + {0.319444,0.455555333333334,0.317222000000001,0.452778}, + {0.317222000000001,0.452778,0.315555333333336,0.448888666666667}, + {0.315555333333336,0.448888666666667,0.313888666666666,0.443888666666667}, + {0.313888666666666,0.443888666666667,0.312777333333334,0.438333333333333}, + {0.312777333333334,0.438333333333333,0.311666666666667,0.432222}, + {0.311666666666667,0.432222,0.310555333333336,0.425555333333334}, + {0.310555333333336,0.425555333333334,0.310000000000002,0.418888666666666}, + {0.310000000000002,0.418888666666666,0.310000000000002,0.412778}, + {0.310000000000002,0.412778,0.310555333333336,0.407222}, + {0.310555333333336,0.407222,0.312222000000001,0.402222}, + {0.312222000000001,0.402222,0.315000000000002,0.398333333333333}, + {0.315000000000002,0.398333333333333,0.319444,0.395555333333334}, + {0.319444,0.395555333333334,0.324444,0.393888666666667}, + {0.324444,0.393888666666667,0.33111066666667,0.392778}, + {0.33111066666667,0.392778,0.338888666666667,0.392222}, + {0.348333333333334,0.392222,0.358888666666668,0.393333333333333}, + {0.358888666666668,0.393333333333333,0.37,0.394444666666667}, + {0.37,0.394444666666667,0.38166666666667,0.395555333333334}, + {0.38166666666667,0.395555333333334,0.392777333333332,0.396666666666667}, + {0.392777333333332,0.396666666666667,0.403888666666669,0.397778}, + {0.403888666666669,0.397778,0.414444000000003,0.398888666666667}, + {0.42388866666667,0.398888666666667,0.431666666666667,0.398333333333333}, + {0.431666666666667,0.398333333333333,0.438333333333333,0.397222}, + {0.438333333333333,0.397222,0.443333333333333,0.395555333333334}, + {0.443333333333333,0.395555333333334,0.446666666666668,0.393333333333333}, + {0.446666666666668,0.393333333333333,0.449444,0.390555333333333}, + {0.449444,0.390555333333333,0.451666666666668,0.387778}, + {0.451666666666668,0.387778,0.453333333333333,0.383888666666667}, + {0.453333333333333,0.383888666666667,0.455000000000003,0.38}, + {0.455000000000003,0.38,0.45611066666667,0.375555333333333}, + {0.45611066666667,0.375555333333333,0.457222000000002,0.370555333333333}, + {0.457222000000002,0.370555333333333,0.457777333333335,0.366111333333333}, + {0.457777333333335,0.366111333333333,0.458333333333333,0.361111333333334}, + {0.458333333333333,0.361111333333334,0.458333333333333,0.356111333333333}, + {0.458333333333333,0.356111333333333,0.457777333333335,0.351666666666667}, + {0.457777333333335,0.351666666666667,0.456666666666668,0.347778}, + {0.456666666666668,0.347778,0.455000000000003,0.343888666666667}, + {0.455000000000003,0.343888666666667,0.452222000000001,0.341111333333333}, + {0.452222000000001,0.341111333333333,0.448333333333333,0.338333333333334}, + {0.448333333333333,0.338333333333334,0.443333333333333,0.336111333333333}, + {0.443333333333333,0.336111333333333,0.437777333333334,0.334444666666667}, + {0.437777333333334,0.334444666666667,0.430555333333335,0.333333333333333}, + {0.430555333333335,0.333333333333333,0.422222,0.331666666666666}, + {0.422222,0.331666666666666,0.412222,0.33}, + {0.412222,0.33,0.401666666666666,0.328333333333333}, + {0.401666666666666,0.328333333333333,0.389444000000002,0.326111333333333}, + {0.389444000000002,0.326111333333333,0.377222000000003,0.323888666666667}, + {0.377222000000003,0.323888666666667,0.363888666666668,0.321666666666667}, + {0.363888666666668,0.321666666666667,0.349999999999999,0.319444666666667}, + {0.349999999999999,0.319444666666667,0.336666666666668,0.317222}, + {0.336666666666668,0.317222,0.323333333333333,0.316111333333333}, + {0.323333333333333,0.316111333333333,0.311110666666669,0.315555333333334}, + {0.29888866666667,0.315555333333334,0.288333333333336,0.316666666666666}, + {0.288333333333336,0.316666666666666,0.278333333333336,0.318888666666667}, + {0.278333333333336,0.318888666666667,0.270000000000001,0.323333333333334}, + {0.270000000000001,0.323333333333334,0.262777333333337,0.328888666666667}, + {0.262777333333337,0.328888666666667,0.257222000000003,0.336111333333333}, + {0.257222000000003,0.336111333333333,0.253333333333335,0.343333333333333}, + {0.253333333333335,0.343333333333333,0.25,0.352222}, + {0.25,0.352222,0.247777333333336,0.362222}, + {0.247777333333336,0.362222,0.245555333333333,0.373888666666667}, + {0.245555333333333,0.373888666666667,0.243888666666668,0.387222}, + {0.243888666666668,0.387222,0.242222000000003,0.401111333333333}, + {0.242222000000003,0.401111333333333,0.241666666666669,0.416666666666667}, + {0.241666666666669,0.416666666666667,0.240555333333333,0.432778}, + {0.240555333333333,0.432778,0.24,0.45}, + {0.24,0.45,0.24,0.467222}, + {0.24,0.467222,0.24,0.485}, + {0.24,0.485,0.24,0.502778}, + {0.24,0.502778,0.24,0.52}, + {0.24,0.52,0.240555333333333,0.537222}, + {0.240555333333333,0.537222,0.241666666666669,0.553333333333333}, + {0.241666666666669,0.553333333333333,0.242222000000003,0.568888666666667}, + {0.242222000000003,0.568888666666667,0.243888666666668,0.582778}, + {0.243888666666668,0.582778,0.245555333333333,0.596111333333334}, + {0.245555333333333,0.596111333333334,0.247777333333336,0.607778}, + {0.247777333333336,0.607778,0.25,0.617778}, + {0.25,0.617778,0.253333333333335,0.626666666666667}, + {0.253333333333335,0.626666666666667,0.257222000000003,0.633888666666667}, + {0.505,0.514444666666667,0.51,0.52}, + {0.51,0.52,0.516666666666666,0.523333333333333}, + {0.516666666666666,0.523333333333333,0.524444000000003,0.525555333333333}, + {0.53388866666667,0.525555333333333,0.544444000000003,0.524444666666666}, + {0.544444000000003,0.524444666666666,0.555555333333335,0.522778}, + {0.555555333333335,0.522778,0.567222000000001,0.52}, + {0.567222000000001,0.52,0.578333333333333,0.517222}, + {0.578333333333333,0.517222,0.589444,0.515}, + {0.589444,0.515,0.599999999999999,0.512778}, + {0.599999999999999,0.512778,0.609444000000001,0.511666666666667}, + {0.617222000000003,0.511666666666667,0.623888666666668,0.512778}, + {0.623888666666668,0.512778,0.628888666666668,0.514444666666667}, + {0.628888666666668,0.514444666666667,0.632777333333337,0.516666666666667}, + {0.632777333333337,0.516666666666667,0.635555333333334,0.52}, + {0.635555333333334,0.52,0.637777333333337,0.523888666666667}, + {0.637777333333337,0.523888666666667,0.638888666666669,0.528333333333334}, + {0.638888666666669,0.528333333333334,0.640000000000001,0.533333333333333}, + {0.640000000000001,0.533333333333333,0.640555333333334,0.538888666666667}, + {0.640555333333334,0.538888666666667,0.640555333333334,0.544444666666667}, + {0.640555333333334,0.544444666666667,0.640555333333334,0.549444666666667}, + {0.640555333333334,0.549444666666667,0.640000000000001,0.555}, + {0.640000000000001,0.555,0.638888666666669,0.56}, + {0.638888666666669,0.56,0.637777333333337,0.564444666666667}, + {0.637777333333337,0.564444666666667,0.635555333333334,0.568333333333333}, + {0.635555333333334,0.568333333333333,0.632777333333337,0.571666666666667}, + {0.632777333333337,0.571666666666667,0.628888666666668,0.573888666666667}, + {0.628888666666668,0.573888666666667,0.623888666666668,0.575555333333333}, + {0.623888666666668,0.575555333333333,0.617222000000003,0.576666666666667}, + {0.617222000000003,0.576666666666667,0.609444000000001,0.577222}, + {0.599999999999999,0.577222,0.589444,0.576111333333333}, + {0.589444,0.576111333333333,0.578333333333333,0.575}, + {0.578333333333333,0.575,0.566666666666668,0.573888666666667}, + {0.566666666666668,0.573888666666667,0.555555333333335,0.572778}, + {0.555555333333335,0.572778,0.544444000000003,0.571666666666667}, + {0.544444000000003,0.571666666666667,0.53388866666667,0.570555333333333}, + {0.524444000000003,0.570555333333333,0.516666666666666,0.571111333333333}, + {0.516666666666666,0.571111333333333,0.51,0.572222}, + {0.51,0.572222,0.505,0.573888666666667}, + {0.505,0.573888666666667,0.50166666666667,0.576111333333333}, + {0.50166666666667,0.576111333333333,0.498888666666668,0.578888666666667}, + {0.498888666666668,0.578888666666667,0.49666666666667,0.581666666666666}, + {0.49666666666667,0.581666666666666,0.495,0.585555333333333}, + {0.495,0.585555333333333,0.493333333333335,0.589444666666667}, + {0.493333333333335,0.589444666666667,0.492222000000003,0.594444666666667}, + {0.492222000000003,0.594444666666667,0.491110666666666,0.598888666666667}, + {0.491110666666666,0.598888666666667,0.490555333333333,0.603888666666667}, + {0.490555333333333,0.603888666666667,0.49,0.608888666666667}, + {0.49,0.608888666666667,0.49,0.613333333333333}, + {0.49,0.613333333333333,0.490555333333333,0.618333333333334}, + {0.490555333333333,0.618333333333334,0.491666666666669,0.622222}, + {0.491666666666669,0.622222,0.493333333333335,0.626111333333334}, + {0.493333333333335,0.626111333333334,0.496110666666667,0.628888666666667}, + {0.496110666666667,0.628888666666667,0.5,0.631666666666667}, + {0.5,0.631666666666667,0.505,0.633888666666667}, + {0.505,0.633888666666667,0.510555333333334,0.635555333333333}, + {0.510555333333334,0.635555333333333,0.517777333333332,0.636666666666667}, + {0.517777333333332,0.636666666666667,0.526110666666668,0.637778}, + {0.526110666666668,0.637778,0.536110666666668,0.638888666666666}, + {0.536110666666668,0.638888666666666,0.546666666666667,0.64}, + {0.546666666666667,0.64,0.558888666666666,0.641666666666667}, + {0.558888666666666,0.641666666666667,0.571110666666669,0.642778}, + {0.571110666666669,0.642778,0.584444,0.643888666666667}, + {0.584444,0.643888666666667,0.598333333333334,0.645}, + {0.598333333333334,0.645,0.611666666666669,0.646111333333333}, + {0.611666666666669,0.646111333333333,0.625,0.646666666666667}, + {0.649444000000003,0.646666666666667,0.660000000000001,0.645555333333334}, + {0.660000000000001,0.645555333333334,0.670000000000002,0.643888666666667}, + {0.670000000000002,0.643888666666667,0.678333333333337,0.641666666666667}, + {0.678333333333337,0.641666666666667,0.685555333333336,0.638333333333333}, + {0.685555333333336,0.638333333333333,0.691110666666669,0.633888666666667}, + {0.691110666666669,0.633888666666667,0.696110666666669,0.627778}, + {0.696110666666669,0.627778,0.700000000000003,0.619444666666666}, + {0.700000000000003,0.619444666666666,0.702777333333335,0.61}, + {0.702777333333335,0.61,0.704444,0.599444666666667}, + {0.704444,0.599444666666667,0.705555333333336,0.586666666666667}, + {0.705555333333336,0.586666666666667,0.70611066666667,0.573333333333334}, + {0.70611066666667,0.573333333333334,0.70611066666667,0.559444666666667}, + {0.70611066666667,0.559444666666667,0.705555333333336,0.545}, + {0.705555333333336,0.545,0.705000000000003,0.53}, + {0.705000000000003,0.53,0.703888666666666,0.516111333333334}, + {0.703888666666666,0.516111333333334,0.702777333333335,0.502778}, + {0.702777333333335,0.502778,0.70111066666667,0.49}, + {0.70111066666667,0.49,0.699444,0.479444666666667}, + {0.699444,0.479444666666667,0.697222000000001,0.47}, + {0.697222000000001,0.47,0.694444,0.461666666666667}, + {0.694444,0.461666666666667,0.691110666666669,0.455555333333334}, + {0.691110666666669,0.455555333333334,0.686110666666669,0.45}, + {0.686110666666669,0.45,0.679444000000004,0.446666666666667}, + {0.679444000000004,0.446666666666667,0.671666666666667,0.444444666666667}, + {0.662222,0.444444666666667,0.651666666666666,0.445555333333333}, + {0.651666666666666,0.445555333333333,0.640555333333334,0.447222}, + {0.640555333333334,0.447222,0.628888666666668,0.45}, + {0.628888666666668,0.45,0.617777333333336,0.452778}, + {0.617777333333336,0.452778,0.606666666666669,0.455}, + {0.606666666666669,0.455,0.59611066666667,0.457222}, + {0.59611066666667,0.457222,0.586666666666668,0.458333333333333}, + {0.578888666666666,0.458333333333333,0.572222000000001,0.457222}, + {0.572222000000001,0.457222,0.567222000000001,0.455555333333334}, + {0.567222000000001,0.455555333333334,0.563333333333333,0.453333333333333}, + {0.563333333333333,0.453333333333333,0.560555333333336,0.45}, + {0.560555333333336,0.45,0.558333333333332,0.446111333333333}, + {0.558333333333332,0.446111333333333,0.557222000000001,0.441666666666666}, + {0.557222000000001,0.441666666666666,0.556110666666669,0.436666666666667}, + {0.556110666666669,0.436666666666667,0.555555333333335,0.431111333333333}, + {0.555555333333335,0.431111333333333,0.555555333333335,0.425555333333334}, + {0.555555333333335,0.425555333333334,0.555555333333335,0.42}, + {0.555555333333335,0.42,0.556110666666669,0.414444666666667}, + {0.556110666666669,0.414444666666667,0.557222000000001,0.409444666666667}, + {0.557222000000001,0.409444666666667,0.558333333333332,0.405}, + {0.558333333333332,0.405,0.560555333333336,0.401111333333333}, + {0.560555333333336,0.401111333333333,0.563333333333333,0.397778}, + {0.563333333333333,0.397778,0.567222000000001,0.395555333333334}, + {0.567222000000001,0.395555333333334,0.572222000000001,0.393888666666667}, + {0.572222000000001,0.393888666666667,0.578888666666666,0.392778}, + {0.578888666666666,0.392778,0.586666666666668,0.392222}, + {0.59611066666667,0.392222,0.606666666666669,0.393333333333333}, + {0.606666666666669,0.393333333333333,0.617777333333336,0.394444666666667}, + {0.617777333333336,0.394444666666667,0.629444000000002,0.395555333333334}, + {0.629444000000002,0.395555333333334,0.640555333333334,0.396666666666667}, + {0.640555333333334,0.396666666666667,0.651666666666666,0.397778}, + {0.651666666666666,0.397778,0.662222,0.398888666666667}, + {0.671666666666667,0.398888666666667,0.679444000000004,0.398333333333333}, + {0.679444000000004,0.398333333333333,0.686110666666669,0.397222}, + {0.686110666666669,0.397222,0.691110666666669,0.395555333333334}, + {0.691110666666669,0.395555333333334,0.694444,0.393333333333333}, + {0.694444,0.393333333333333,0.697222000000001,0.390555333333333}, + {0.697222000000001,0.390555333333333,0.699444,0.387778}, + {0.699444,0.387778,0.70111066666667,0.383888666666667}, + {0.70111066666667,0.383888666666667,0.702777333333335,0.38}, + {0.702777333333335,0.38,0.703888666666666,0.375555333333333}, + {0.703888666666666,0.375555333333333,0.705000000000003,0.370555333333333}, + {0.705000000000003,0.370555333333333,0.705555333333336,0.366111333333333}, + {0.705555333333336,0.366111333333333,0.70611066666667,0.361111333333334}, + {0.70611066666667,0.361111333333334,0.70611066666667,0.356111333333333}, + {0.70611066666667,0.356111333333333,0.705555333333336,0.351666666666667}, + {0.705555333333336,0.351666666666667,0.704444,0.347778}, + {0.704444,0.347778,0.702777333333335,0.343888666666667}, + {0.702777333333335,0.343888666666667,0.700000000000003,0.341111333333333}, + {0.700000000000003,0.341111333333333,0.696110666666669,0.338333333333334}, + {0.696110666666669,0.338333333333334,0.691110666666669,0.336111333333333}, + {0.691110666666669,0.336111333333333,0.685555333333336,0.334444666666667}, + {0.685555333333336,0.334444666666667,0.678333333333337,0.333333333333333}, + {0.678333333333337,0.333333333333333,0.670000000000002,0.332222}, + {0.670000000000002,0.332222,0.660000000000001,0.331111333333334}, + {0.660000000000001,0.331111333333334,0.649444000000003,0.33}, + {0.649444000000003,0.33,0.637222000000004,0.328333333333333}, + {0.637222000000004,0.328333333333333,0.625,0.327222}, + {0.625,0.327222,0.611666666666669,0.326111333333333}, + {0.611666666666669,0.326111333333333,0.597777333333335,0.325}, + {0.597777333333335,0.325,0.584444,0.323888666666667}, + {0.584444,0.323888666666667,0.571110666666669,0.323333333333334}, + {0.546666666666667,0.323333333333334,0.536110666666668,0.324444666666666}, + {0.536110666666668,0.324444666666666,0.526110666666668,0.326111333333333}, + {0.526110666666668,0.326111333333333,0.517777333333332,0.328333333333333}, + {0.517777333333332,0.328333333333333,0.510555333333334,0.331666666666666}, + {0.510555333333334,0.331666666666666,0.505,0.336111333333333}, + {0.505,0.336111333333333,0.5,0.342222}, + {0.5,0.342222,0.496110666666667,0.350555333333334}, + {0.496110666666667,0.350555333333334,0.493333333333335,0.36}, + {0.493333333333335,0.36,0.491666666666669,0.370555333333333}, + {0.491666666666669,0.370555333333333,0.490555333333333,0.383333333333334}, + {0.490555333333333,0.383333333333334,0.49,0.396666666666667}, + {0.49,0.396666666666667,0.49,0.410555333333334}, + {0.49,0.410555333333334,0.490555333333333,0.425555333333334}, + {0.490555333333333,0.425555333333334,0.491110666666666,0.44}, + {0.491110666666666,0.44,0.492222000000003,0.453888666666667}, + {0.492222000000003,0.453888666666667,0.493333333333335,0.467222}, + {0.493333333333335,0.467222,0.495,0.48}, + {0.495,0.48,0.49666666666667,0.490555333333334}, + {0.49666666666667,0.490555333333334,0.498888666666668,0.5}, + {0.498888666666668,0.5,0.50166666666667,0.508333333333334}, + {0.50166666666667,0.508333333333334,0.505,0.514444666666667}, + {0.752777333333337,0.633888666666667,0.758333333333335,0.641111333333334}, + {0.758333333333335,0.641111333333334,0.765555333333334,0.646666666666667}, + {0.765555333333334,0.646666666666667,0.773888666666669,0.651111333333333}, + {0.773888666666669,0.651111333333333,0.78388866666667,0.653333333333334}, + {0.78388866666667,0.653333333333334,0.794444000000003,0.654444666666667}, + {0.794444000000003,0.654444666666667,0.806666666666667,0.655}, + {0.806666666666667,0.655,0.818888666666666,0.653888666666666}, + {0.818888666666666,0.653888666666666,0.832222000000002,0.652778}, + {0.832222000000002,0.652778,0.84611066666667,0.650555333333333}, + {0.84611066666667,0.650555333333333,0.859444000000001,0.648333333333333}, + {0.859444000000001,0.648333333333333,0.872777333333336,0.646111333333333}, + {0.872777333333336,0.646111333333333,0.885,0.643888666666667}, + {0.885,0.643888666666667,0.897221999999999,0.641666666666667}, + {0.897221999999999,0.641666666666667,0.907777333333333,0.64}, + {0.907777333333333,0.64,0.917777333333333,0.638333333333333}, + {0.917777333333333,0.638333333333333,0.926110666666669,0.636666666666667}, + {0.926110666666669,0.636666666666667,0.933333333333332,0.635555333333333}, + {0.933333333333332,0.635555333333333,0.938888666666666,0.633888666666667}, + {0.938888666666666,0.633888666666667,0.943888666666666,0.631666666666667}, + {0.943888666666666,0.631666666666667,0.947777333333335,0.628888666666667}, + {0.947777333333335,0.628888666666667,0.950555333333336,0.626111333333334}, + {0.950555333333336,0.626111333333334,0.952222000000001,0.622222}, + {0.952222000000001,0.622222,0.953333333333333,0.618333333333334}, + {0.953333333333333,0.618333333333334,0.953888666666666,0.613333333333333}, + {0.953888666666666,0.613333333333333,0.953888666666666,0.608888666666667}, + {0.953888666666666,0.608888666666667,0.953333333333333,0.603888666666667}, + {0.953333333333333,0.603888666666667,0.952777333333335,0.598888666666667}, + {0.952777333333335,0.598888666666667,0.951666666666668,0.594444666666667}, + {0.951666666666668,0.594444666666667,0.950555333333336,0.589444666666667}, + {0.950555333333336,0.589444666666667,0.948888666666666,0.585555333333333}, + {0.948888666666666,0.585555333333333,0.947222000000001,0.581666666666666}, + {0.947222000000001,0.581666666666666,0.945000000000003,0.578888666666667}, + {0.945000000000003,0.578888666666667,0.942222000000001,0.576111333333333}, + {0.942222000000001,0.576111333333333,0.938888666666666,0.573888666666667}, + {0.938888666666666,0.573888666666667,0.933888666666666,0.572222}, + {0.933888666666666,0.572222,0.927222,0.571111333333333}, + {0.927222,0.571111333333333,0.919444000000003,0.570555333333333}, + {0.910000000000001,0.570555333333333,0.899444000000003,0.571666666666667}, + {0.899444000000003,0.571666666666667,0.888333333333335,0.572778}, + {0.888333333333335,0.572778,0.87666666666667,0.573888666666667}, + {0.87666666666667,0.573888666666667,0.865555333333333,0.575}, + {0.865555333333333,0.575,0.854444000000001,0.576111333333333}, + {0.854444000000001,0.576111333333333,0.843888666666667,0.577222}, + {0.834444,0.577222,0.826666666666668,0.576666666666667}, + {0.826666666666668,0.576666666666667,0.820000000000003,0.575555333333333}, + {0.820000000000003,0.575555333333333,0.815000000000002,0.573888666666667}, + {0.815000000000002,0.573888666666667,0.810555333333336,0.571111333333333}, + {0.810555333333336,0.571111333333333,0.807777333333334,0.567222}, + {0.807777333333334,0.567222,0.806110666666669,0.562222}, + {0.806110666666669,0.562222,0.805555333333335,0.556666666666667}, + {0.805555333333335,0.556666666666667,0.805555333333335,0.550555333333334}, + {0.805555333333335,0.550555333333334,0.806110666666669,0.543888666666666}, + {0.806110666666669,0.543888666666666,0.807222000000001,0.537778}, + {0.807222000000001,0.537778,0.808333333333332,0.531666666666667}, + {0.808333333333332,0.531666666666667,0.809443999999999,0.526111333333333}, + {0.809443999999999,0.526111333333333,0.811110666666669,0.521111333333333}, + {0.811110666666669,0.521111333333333,0.812777333333334,0.517222}, + {0.812777333333334,0.517222,0.815000000000002,0.514444666666667}, + {0.815000000000002,0.514444666666667,0.818888666666666,0.512222}, + {0.818888666666666,0.512222,0.823888666666666,0.511111333333333}, + {0.823888666666666,0.511111333333333,0.830555333333336,0.511666666666667}, + {0.830555333333336,0.511666666666667,0.837777333333335,0.512778}, + {0.837777333333335,0.512778,0.84611066666667,0.514444666666667}, + {0.84611066666667,0.514444666666667,0.853888666666667,0.516111333333334}, + {0.853888666666667,0.516111333333334,0.861110666666666,0.517222}, + {0.861110666666666,0.517222,0.867777333333336,0.517778}, + {0.867777333333336,0.517778,0.872777333333336,0.516666666666667}, + {0.872777333333336,0.516666666666667,0.87666666666667,0.514444666666667}, + {0.87666666666667,0.514444666666667,0.879444000000002,0.511111333333333}, + {0.879444000000002,0.511111333333333,0.880555333333334,0.506111333333333}, + {0.880555333333334,0.506111333333333,0.88166666666667,0.5}, + {0.88166666666667,0.5,0.882222000000003,0.492778}, + {0.882222000000003,0.492778,0.882222000000003,0.485}, + {0.882222000000003,0.485,0.882222000000003,0.477222}, + {0.882222000000003,0.477222,0.88166666666667,0.47}, + {0.88166666666667,0.47,0.880555333333334,0.463888666666667}, + {0.880555333333334,0.463888666666667,0.879444000000002,0.458888666666667}, + {0.879444000000002,0.458888666666667,0.87666666666667,0.455555333333334}, + {0.87666666666667,0.455555333333334,0.872777333333336,0.453333333333333}, + {0.872777333333336,0.453333333333333,0.867777333333336,0.452222}, + {0.867777333333336,0.452222,0.861110666666666,0.452778}, + {0.861110666666666,0.452778,0.853888666666667,0.453888666666667}, + {0.853888666666667,0.453888666666667,0.845555333333337,0.455555333333334}, + {0.845555333333337,0.455555333333334,0.837777333333335,0.457222}, + {0.837777333333335,0.457222,0.830555333333336,0.458888666666667}, + {0.823888666666666,0.458888666666667,0.818888666666666,0.457778}, + {0.818888666666666,0.457778,0.815000000000002,0.455555333333334}, + {0.815000000000002,0.455555333333334,0.812777333333334,0.452778}, + {0.812777333333334,0.452778,0.811110666666669,0.448888666666667}, + {0.811110666666669,0.448888666666667,0.809443999999999,0.443888666666667}, + {0.809443999999999,0.443888666666667,0.808333333333332,0.438333333333333}, + {0.808333333333332,0.438333333333333,0.807222000000001,0.432222}, + {0.807222000000001,0.432222,0.806110666666669,0.425555333333334}, + {0.806110666666669,0.425555333333334,0.805555333333335,0.418888666666666}, + {0.805555333333335,0.418888666666666,0.805555333333335,0.412778}, + {0.805555333333335,0.412778,0.806110666666669,0.407222}, + {0.806110666666669,0.407222,0.807777333333334,0.402222}, + {0.807777333333334,0.402222,0.810555333333336,0.398333333333333}, + {0.810555333333336,0.398333333333333,0.815000000000002,0.395555333333334}, + {0.815000000000002,0.395555333333334,0.820000000000003,0.393888666666667}, + {0.820000000000003,0.393888666666667,0.826666666666668,0.392778}, + {0.826666666666668,0.392778,0.834444,0.392222}, + {0.843888666666667,0.392222,0.854444000000001,0.393333333333333}, + {0.854444000000001,0.393333333333333,0.865555333333333,0.394444666666667}, + {0.865555333333333,0.394444666666667,0.877222000000003,0.395555333333334}, + {0.877222000000003,0.395555333333334,0.888333333333335,0.396666666666667}, + {0.888333333333335,0.396666666666667,0.899444000000003,0.397778}, + {0.899444000000003,0.397778,0.910000000000001,0.398888666666667}, + {0.919444000000003,0.398888666666667,0.927222,0.398333333333333}, + {0.927222,0.398333333333333,0.933888666666666,0.397222}, + {0.933888666666666,0.397222,0.938888666666666,0.395555333333334}, + {0.938888666666666,0.395555333333334,0.942222000000001,0.393333333333333}, + {0.942222000000001,0.393333333333333,0.945000000000003,0.390555333333333}, + {0.945000000000003,0.390555333333333,0.947222000000001,0.387778}, + {0.947222000000001,0.387778,0.948888666666666,0.383888666666667}, + {0.948888666666666,0.383888666666667,0.950555333333336,0.38}, + {0.950555333333336,0.38,0.951666666666668,0.375555333333333}, + {0.951666666666668,0.375555333333333,0.952777333333335,0.370555333333333}, + {0.952777333333335,0.370555333333333,0.953333333333333,0.366111333333333}, + {0.953333333333333,0.366111333333333,0.953888666666666,0.361111333333334}, + {0.953888666666666,0.361111333333334,0.953888666666666,0.356111333333333}, + {0.953888666666666,0.356111333333333,0.953333333333333,0.351666666666667}, + {0.953333333333333,0.351666666666667,0.952222000000001,0.347778}, + {0.952222000000001,0.347778,0.950555333333336,0.343888666666667}, + {0.950555333333336,0.343888666666667,0.947777333333335,0.341111333333333}, + {0.947777333333335,0.341111333333333,0.943888666666666,0.338333333333334}, + {0.943888666666666,0.338333333333334,0.938888666666666,0.336111333333333}, + {0.938888666666666,0.336111333333333,0.933333333333332,0.334444666666667}, + {0.933333333333332,0.334444666666667,0.926110666666669,0.333333333333333}, + {0.926110666666669,0.333333333333333,0.917777333333333,0.331666666666666}, + {0.917777333333333,0.331666666666666,0.907777333333333,0.33}, + {0.907777333333333,0.33,0.897221999999999,0.328333333333333}, + {0.897221999999999,0.328333333333333,0.885,0.326111333333333}, + {0.885,0.326111333333333,0.872777333333336,0.323888666666667}, + {0.872777333333336,0.323888666666667,0.859444000000001,0.321666666666667}, + {0.859444000000001,0.321666666666667,0.845555333333337,0.319444666666667}, + {0.845555333333337,0.319444666666667,0.832222000000002,0.317222}, + {0.832222000000002,0.317222,0.818888666666666,0.316111333333333}, + {0.818888666666666,0.316111333333333,0.806666666666667,0.315555333333334}, + {0.794444000000003,0.315555333333334,0.78388866666667,0.316666666666666}, + {0.78388866666667,0.316666666666666,0.773888666666669,0.318888666666667}, + {0.773888666666669,0.318888666666667,0.765555333333334,0.323333333333334}, + {0.765555333333334,0.323333333333334,0.758333333333335,0.328888666666667}, + {0.758333333333335,0.328888666666667,0.752777333333337,0.336111333333333}, + {0.752777333333337,0.336111333333333,0.748888666666668,0.343333333333333}, + {0.748888666666668,0.343333333333333,0.745555333333333,0.352222}, + {0.745555333333333,0.352222,0.743333333333335,0.362222}, + {0.743333333333335,0.362222,0.741110666666666,0.373888666666667}, + {0.741110666666666,0.373888666666667,0.739444000000001,0.387222}, + {0.739444000000001,0.387222,0.737777333333336,0.401111333333333}, + {0.737777333333336,0.401111333333333,0.737222000000003,0.416666666666667}, + {0.737222000000003,0.416666666666667,0.736110666666666,0.432778}, + {0.736110666666666,0.432778,0.735555333333333,0.45}, + {0.735555333333333,0.45,0.735555333333333,0.467222}, + {0.735555333333333,0.467222,0.735555333333333,0.485}, + {0.735555333333333,0.485,0.735555333333333,0.502778}, + {0.735555333333333,0.502778,0.735555333333333,0.52}, + {0.735555333333333,0.52,0.736110666666666,0.537222}, + {0.736110666666666,0.537222,0.737222000000003,0.553333333333333}, + {0.737222000000003,0.553333333333333,0.737777333333336,0.568888666666667}, + {0.737777333333336,0.568888666666667,0.739444000000001,0.582778}, + {0.739444000000001,0.582778,0.741110666666666,0.596111333333334}, + {0.741110666666666,0.596111333333334,0.743333333333335,0.607778}, + {0.743333333333335,0.607778,0.745555333333333,0.617778}, + {0.745555333333333,0.617778,0.748888666666668,0.626666666666667}, + {0.748888666666668,0.626666666666667,0.752777333333337,0.633888666666667}, + {1.18388866666667,0.397778,1.18666666666667,0.395555333333334}, + {1.179444,0.398333333333333,1.18388866666667,0.397778}, + {1.174444,0.397222,1.179444,0.398333333333333}, + {1.16888866666667,0.394444666666667,1.174444,0.397222}, + {1.16277733333333,0.391111333333334,1.16888866666667,0.394444666666667}, + {1.15555533333333,0.387222,1.16277733333333,0.391111333333334}, + {1.14888866666667,0.383333333333334,1.15555533333333,0.387222}, + {1.14277733333333,0.381111333333333,1.14888866666667,0.383333333333334}, + {1.137222,0.380555333333334,1.14277733333333,0.381111333333333}, + {1.132222,0.382222,1.137222,0.380555333333334}, + {1.12777733333334,0.387222,1.132222,0.382222}, + {1.125,0.395555333333334,1.12777733333334,0.387222}, + {1.12388866666667,0.402222,1.125,0.395555333333334}, + {1.12277733333334,0.41,1.12388866666667,0.402222}, + {1.12166666666667,0.419444666666667,1.12277733333334,0.41}, + {1.12166666666667,0.43,1.12166666666667,0.419444666666667}, + {1.12166666666667,0.441666666666666,1.12166666666667,0.43}, + {1.12166666666667,0.455,1.12166666666667,0.441666666666666}, + {1.122222,0.468888666666667,1.12166666666667,0.455}, + {1.12333333333333,0.483888666666667,1.122222,0.468888666666667}, + {1.12388866666667,0.498888666666667,1.12333333333333,0.483888666666667}, + {1.125,0.515,1.12388866666667,0.498888666666667}, + {1.12611066666667,0.530555333333333,1.125,0.515}, + {1.12666666666667,0.545555333333333,1.12611066666667,0.530555333333333}, + {1.12777733333334,0.560555333333333,1.12666666666667,0.545555333333333}, + {1.12833333333333,0.574444666666666,1.12777733333334,0.560555333333333}, + {1.12833333333333,0.587778,1.12833333333333,0.574444666666666}, + {1.12833333333333,0.599444666666667,1.12833333333333,0.587778}, + {1.12833333333333,0.61,1.12833333333333,0.599444666666667}, + {1.127222,0.619444666666666,1.12833333333333,0.61}, + {1.12666666666667,0.627222,1.127222,0.619444666666666}, + {1.125,0.633888666666667,1.12666666666667,0.627222}, + {1.12333333333333,0.638888666666666,1.125,0.633888666666667}, + {1.12166666666667,0.642778,1.12333333333333,0.638888666666666}, + {1.119444,0.646111333333333,1.12166666666667,0.642778}, + {1.117222,0.648888666666667,1.119444,0.646111333333333}, + {1.114444,0.651111333333333,1.117222,0.648888666666667}, + {1.11166666666667,0.652778,1.114444,0.651111333333333}, + {1.10833333333333,0.653888666666666,1.11166666666667,0.652778}, + {1.105,0.655,1.10833333333333,0.653888666666666}, + {1.10111066666667,0.655555333333333,1.105,0.655}, + {1.09777733333334,0.656111333333333,1.10111066666667,0.655555333333333}, + {1.08666666666667,0.655555333333333,1.09,0.656111333333333}, + {1.08277733333333,0.655,1.08666666666667,0.655555333333333}, + {1.079444,0.653888666666666,1.08277733333333,0.655}, + {1.07611066666667,0.652778,1.079444,0.653888666666666}, + {1.07333333333333,0.651111333333333,1.07611066666667,0.652778}, + {1.07055533333334,0.648888666666667,1.07333333333333,0.651111333333333}, + {1.06833333333333,0.646111333333333,1.07055533333334,0.648888666666667}, + {1.06611066666667,0.642778,1.06833333333333,0.646111333333333}, + {1.064444,0.638888666666666,1.06611066666667,0.642778}, + {1.06277733333333,0.633888666666667,1.064444,0.638888666666666}, + {1.06111066666667,0.627222,1.06277733333333,0.633888666666667}, + {1.06055533333334,0.619444666666666,1.06111066666667,0.627222}, + {1.059444,0.61,1.06055533333334,0.619444666666666}, + {1.059444,0.599444666666667,1.059444,0.61}, + {1.059444,0.587778,1.059444,0.599444666666667}, + {1.059444,0.574444666666666,1.059444,0.587778}, + {1.06,0.560555333333333,1.059444,0.574444666666666}, + {1.06111066666667,0.545555333333333,1.06,0.560555333333333}, + {1.06166666666667,0.530555333333333,1.06111066666667,0.545555333333333}, + {1.06277733333333,0.514444666666667,1.06166666666667,0.530555333333333}, + {1.06388866666667,0.498888666666667,1.06277733333333,0.514444666666667}, + {1.064444,0.483888666666667,1.06388866666667,0.498888666666667}, + {1.06555533333334,0.468888666666667,1.064444,0.483888666666667}, + {1.06611066666667,0.455,1.06555533333334,0.468888666666667}, + {1.06611066666667,0.441666666666666,1.06611066666667,0.455}, + {1.06611066666667,0.43,1.06611066666667,0.441666666666666}, + {1.06611066666667,0.419444666666667,1.06611066666667,0.43}, + {1.065,0.41,1.06611066666667,0.419444666666667}, + {1.064444,0.402222,1.065,0.41}, + {1.06277733333333,0.395555333333334,1.064444,0.402222}, + {1.06,0.387222,1.06277733333333,0.395555333333334}, + {1.05555533333334,0.382222,1.06,0.387222}, + {1.05055533333334,0.380555333333334,1.05555533333334,0.382222}, + {1.045,0.381111333333333,1.05055533333334,0.380555333333334}, + {1.03833333333334,0.383333333333334,1.045,0.381111333333333}, + {1.03166666666667,0.387222,1.03833333333334,0.383333333333334}, + {1.025,0.391111333333334,1.03166666666667,0.387222}, + {1.01833333333334,0.394444666666667,1.025,0.391111333333334}, + {1.01277733333334,0.397222,1.01833333333334,0.394444666666667}, + {1.00777733333334,0.398333333333333,1.01277733333334,0.397222}, + {1.00333333333333,0.397778,1.00777733333334,0.398333333333333}, + {1.00055533333333,0.395555333333334,1.00333333333333,0.397778}, + {0.998333333333335,0.393333333333333,1.00055533333333,0.395555333333334}, + {0.99666666666667,0.39,0.998333333333335,0.393333333333333}, + {0.995555333333333,0.386111333333333,0.99666666666667,0.39}, + {0.993888666666668,0.381666666666667,0.995555333333333,0.386111333333333}, + {0.992222000000003,0.376666666666667,0.993888666666668,0.381666666666667}, + {0.990555333333333,0.371111333333333,0.992222000000003,0.376666666666667}, + {0.988888666666668,0.365555333333334,0.990555333333333,0.371111333333333}, + {0.987777333333336,0.360555333333333,0.988888666666668,0.365555333333334}, + {0.987222000000003,0.355,0.987777333333336,0.360555333333333}, + {0.987222000000003,0.35,0.987222000000003,0.355}, + {0.988333333333334,0.345555333333333,0.987222000000003,0.35}, + {0.991110666666666,0.341666666666667,0.988333333333334,0.345555333333333}, + {0.995,0.338333333333334,0.991110666666666,0.341666666666667}, + {1.00055533333333,0.336111333333333,0.995,0.338333333333334}, + {1.00611066666667,0.334444666666667,1.00055533333333,0.336111333333333}, + {1.01333333333334,0.333333333333333,1.00611066666667,0.334444666666667}, + {1.02166666666667,0.332778,1.01333333333334,0.333333333333333}, + {1.03166666666667,0.331666666666666,1.02166666666667,0.332778}, + {1.042222,0.331111333333334,1.03166666666667,0.331666666666666}, + {1.06666666666667,0.330555333333334,1.054444,0.331111333333334}, + {1.13277733333334,0.331111333333334,1.12055533333333,0.330555333333334}, + {1.15555533333333,0.331666666666666,1.145,0.331111333333334}, + {1.16555533333333,0.332778,1.15555533333333,0.331666666666666}, + {1.17388866666667,0.333333333333333,1.16555533333333,0.332778}, + {1.18111066666667,0.334444666666667,1.17388866666667,0.333333333333333}, + {1.18666666666667,0.336111333333333,1.18111066666667,0.334444666666667}, + {1.192222,0.338333333333334,1.18666666666667,0.336111333333333}, + {1.19611066666667,0.341666666666667,1.192222,0.338333333333334}, + {1.19888866666667,0.345555333333333,1.19611066666667,0.341666666666667}, + {1.2,0.35,1.19888866666667,0.345555333333333}, + {1.2,0.355,1.2,0.35}, + {1.199444,0.360555333333333,1.2,0.355}, + {1.19833333333333,0.366111333333333,1.199444,0.360555333333333}, + {1.19666666666667,0.371111333333333,1.19833333333333,0.366111333333333}, + {1.195,0.376666666666667,1.19666666666667,0.371111333333333}, + {1.19333333333333,0.381666666666667,1.195,0.376666666666667}, + {1.19166666666667,0.386111333333333,1.19333333333333,0.381666666666667}, + {1.19,0.39,1.19166666666667,0.386111333333333}, + {1.18888866666667,0.393333333333333,1.19,0.39}, + {1.18666666666667,0.395555333333334,1.18888866666667,0.393333333333333}, + {0,0,0,0} +}; + +double Icon38[][4] = { + {0.166666666666667,0,0,1}, + {0.166666666666667,1,0.333333333333333,0}, + {0,0,0,0} +}; + +typedef double LineType[4]; +typedef LineType *IconType; +IconType Icons[] = { + Icon0, + Icon1, + Icon2, + Icon3, + Icon4, + Icon5, + Icon6, + Icon7, + Icon8, + Icon9, + Icon10, + Icon11, + Icon12, + Icon13, + Icon14, + Icon15, + Icon16, + Icon17, + Icon18, + Icon19, + Icon20, + Icon21, + Icon22, + Icon23, + Icon24, + Icon25, + Icon26, + Icon27, + Icon28, + Icon29, + Icon30, + Icon31, + Icon32, + Icon33, + Icon34, + Icon35, + Icon36, + Icon37, + Icon38, +}; + +double IconWidths[] = { + 0.5, + 0.5, + 0.333333333333333, + 0.5, + 0.5, + 0.541666666666667, + 0.541666666666667, + 0.166666666666667, + 0.5, + 0.5, + 0.707221999999999, + 0.75, + 0.318888666666666, + 0.106111333333333, + 0.312222, + 0.315555333333333, + 0.291666666666667, + 0.312777333333333, + 0.316111333333333, + 0.296666666666667, + 0.273333333333333, + 0.31, + 0.166666666666667, + 0.166666666666667, + 0.375, + 0.333333333333333, + 0.939999999999998, + 1, + 0.356111333333333, + 1, + 0.666666666666667, + 0.5, + 0.5, + 0.583333333333333, + 0.583333333333333, + 0.583333333333333, + 0.920556, + 1.2, + 0.333333333333333, +}; diff --git a/install-sh b/install-sh new file mode 100755 index 0000000..d4744f0 --- /dev/null +++ b/install-sh @@ -0,0 +1,269 @@ +#!/bin/sh +# +# install - install a program, script, or datafile +# +# This originates from X11R5 (mit/util/scripts/install.sh), which was +# later released in X11R6 (xc/config/util/install.sh) with the +# following copyright and license. +# +# Copyright (C) 1994 X Consortium +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC- +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +# +# Except as contained in this notice, the name of the X Consortium shall not +# be used in advertising or otherwise to promote the sale, use or other deal- +# ings in this Software without prior written authorization from the X Consor- +# tium. +# +# +# FSF changes to this file are in the public domain. +# +# Calling this script install-sh is preferred over install.sh, to prevent +# `make' implicit rules from creating a file called install from it +# when there is no Makefile. +# +# This script is compatible with the BSD install script, but was written +# from scratch. It can only install one file at a time, a restriction +# shared with many OS's install programs. + + +# set DOITPROG to echo to test this script + +# Don't use :- since 4.3BSD and earlier shells don't like it. +doit="${DOITPROG-}" + + +# put in absolute paths if you don't have them in your path; or use env. vars. + +mvprog="${MVPROG-mv}" +cpprog="${CPPROG-cp}" +chmodprog="${CHMODPROG-chmod}" +chownprog="${CHOWNPROG-chown}" +chgrpprog="${CHGRPPROG-chgrp}" +stripprog="${STRIPPROG-strip}" +rmprog="${RMPROG-rm}" +mkdirprog="${MKDIRPROG-mkdir}" + +transformbasename="" +transform_arg="" +instcmd="$mvprog" +chmodcmd="$chmodprog 0755" +chowncmd="" +chgrpcmd="" +stripcmd="" +rmcmd="$rmprog -f" +mvcmd="$mvprog" +src="" +dst="" +dir_arg="" + +while [ x"$1" != x ]; do + case $1 in + -c) instcmd="$cpprog" + shift + continue;; + + -d) dir_arg=true + shift + continue;; + + -m) chmodcmd="$chmodprog $2" + shift + shift + continue;; + + -o) chowncmd="$chownprog $2" + shift + shift + continue;; + + -g) chgrpcmd="$chgrpprog $2" + shift + shift + continue;; + + -s) stripcmd="$stripprog" + shift + continue;; + + -t=*) transformarg=`echo $1 | sed 's/-t=//'` + shift + continue;; + + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` + shift + continue;; + + *) if [ x"$src" = x ] + then + src=$1 + else + # this colon is to work around a 386BSD /bin/sh bug + : + dst=$1 + fi + shift + continue;; + esac +done + +if [ x"$src" = x ] +then + echo "install: no input file specified" + exit 1 +else + true +fi + +if [ x"$dir_arg" != x ]; then + dst=$src + src="" + + if [ -d $dst ]; then + instcmd=: + chmodcmd="" + else + instcmd=mkdir + fi +else + +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command +# might cause directories to be created, which would be especially bad +# if $src (and thus $dsttmp) contains '*'. + + if [ -f $src -o -d $src ] + then + true + else + echo "install: $src does not exist" + exit 1 + fi + + if [ x"$dst" = x ] + then + echo "install: no destination specified" + exit 1 + else + true + fi + +# If destination is a directory, append the input filename; if your system +# does not like double slashes in filenames, you may need to add some logic + + if [ -d $dst ] + then + dst="$dst"/`basename $src` + else + true + fi +fi + +## this sed command emulates the dirname command +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` + +# Make sure that the destination directory exists. +# this part is taken from Noah Friedman's mkinstalldirs script + +# Skip lots of stat calls in the usual case. +if [ ! -d "$dstdir" ]; then +defaultIFS=' +' +IFS="${IFS-${defaultIFS}}" + +oIFS="${IFS}" +# Some sh's can't handle IFS=/ for some reason. +IFS='%' +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` +IFS="${oIFS}" + +pathcomp='' + +while [ $# -ne 0 ] ; do + pathcomp="${pathcomp}${1}" + shift + + if [ ! -d "${pathcomp}" ] ; + then + $mkdirprog "${pathcomp}" + else + true + fi + + pathcomp="${pathcomp}/" +done +fi + +if [ x"$dir_arg" != x ] +then + $doit $instcmd $dst && + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi +else + +# If we're going to rename the final executable, determine the name now. + + if [ x"$transformarg" = x ] + then + dstfile=`basename $dst` + else + dstfile=`basename $dst $transformbasename | + sed $transformarg`$transformbasename + fi + +# don't allow the sed command to completely eliminate the filename + + if [ x"$dstfile" = x ] + then + dstfile=`basename $dst` + else + true + fi + +# Make a temp file name in the proper directory. + + dsttmp=$dstdir/#inst.$$# + +# Move or copy the file name to the temp name + + $doit $instcmd $src $dsttmp && + + trap "rm -f ${dsttmp}" 0 && + +# and set any options; do chmod last to preserve setuid bits + +# If any of these fail, we abort the whole thing. If we want to +# ignore errors from any of these, just make sure not to ignore +# errors from the above "$doit $instcmd $src $dsttmp" command. + + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && + +# Now rename the file to the real destination. + + $doit $rmcmd -f $dstdir/$dstfile && + $doit $mvcmd $dsttmp $dstdir/$dstfile + +fi && + + +exit 0 diff --git a/main.cc b/main.cc new file mode 100644 index 0000000..67bfa7f --- /dev/null +++ b/main.cc @@ -0,0 +1,432 @@ +/* Synaesthesia - program to display sound graphically + Copyright (C) 1997 Paul Francis Harrison + + 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., + 675 Mass Ave, Cambridge, MA 02139, USA. + + The author may be contacted at: + pfh@yoyo.cc.monash.edu.au + or + 27 Bond St., Mt. Waverley, 3149, Melbourne, Australia +*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "syna.h" + +//void setupIcons(); + +/* Config and globals =============================================== */ + +BaseScreen *screen; + +sampleType *data; + +int outWidth, outHeight; +Bitmap outputBmp, lastOutputBmp, lastLastOutputBmp; + +PolygonEngine polygonEngine; + +void allocOutput(int w,int h) { + /*delete[] output; + delete[] lastOutput; + delete[] lastLastOutput; + output = new unsigned char[w*h*2]; + lastOutput = new unsigned char[w*h*2]; + lastLastOutput = new unsigned char[w*h*2]; + memset(output,32,w*h*2); + memset(lastOutput,32,w*h*2); + outWidth = w; + outHeight = h;*/ + + outputBmp.size(w,h); + lastOutputBmp.size(w,h); + lastLastOutputBmp.size(w,h); + polygonEngine.size(w,h); + outWidth = w; + outHeight = h; +} + +SymbolID state = NoCD; +int track = 1, frames = 0; +double trackProgress = 0.0; + +char **playList; +int playListLength, playListPosition; + +SymbolID fadeMode; +bool pointsAreDiamonds; + +double brightnessTwiddler; +double starSize; +double volume = 0.5; + +double fgRedSlider, fgGreenSlider, bgRedSlider, bgGreenSlider; + +static SoundSource soundSource; + +static int windX, windY, windWidth, windHeight; +static char dspName[80]; +static char mixerName[80]; +static char cdromName[80]; + +void setStateToDefaults() { + fadeMode = Stars; + pointsAreDiamonds = true; + + brightnessTwiddler = 0.3; + starSize = 0.5; + + fgRedSlider=0.0; + fgGreenSlider=0.5; + bgRedSlider=0.75; + bgGreenSlider=0.4; +} + +bool loadConfig() { + setStateToDefaults(); + windX=10; + windY=30; + windWidth = DefaultWidth; + windHeight = DefaultHeight; + strcpy(dspName, "/dev/dsp"); + strcpy(mixerName, "/dev/mixer"); + strcpy(cdromName, "/dev/cdrom"); + + //Should i free this? Manual is unclear + struct passwd *passWord = getpwuid(getuid()); + if (passWord == 0) return false; + + char *fileName = new char[strlen(passWord->pw_dir) + 20]; + strcpy(fileName,passWord->pw_dir); + strcat(fileName,"/.synaesthesia"); + FILE *f = fopen(fileName,"rt"); + delete fileName; + + if (f) { + char line[80]; + while(0 != fgets(line,80,f)) { + sscanf(line,"x %d",&windX); + sscanf(line,"y %d",&windY); + sscanf(line,"width %d",&windWidth); + sscanf(line,"height %d",&windHeight); + sscanf(line,"brightness %lf",&brightnessTwiddler); + sscanf(line,"pointsize %lf",&starSize); + sscanf(line,"fgred %lf",&fgRedSlider); + sscanf(line,"fggreen %lf",&fgGreenSlider); + sscanf(line,"bgred %lf",&bgRedSlider); + sscanf(line,"bggreen %lf",&bgGreenSlider); + sscanf(line,"dsp %s",dspName); + sscanf(line,"mixer %s",mixerName); + sscanf(line,"cdrom %s",cdromName); + if (strncmp(line,"fade",4) == 0) fadeMode = Stars; + if (strncmp(line,"wave",4) == 0) fadeMode = Wave; + if (strncmp(line,"heat",4) == 0) fadeMode = Flame; + if (strncmp(line,"stars",5) == 0) pointsAreDiamonds = false; + if (strncmp(line,"diamonds",8) == 0) pointsAreDiamonds = true; + } + fclose(f); + + if (windWidth < 1) + windWidth = DefaultWidth; + if (windHeight < 1) + windHeight = DefaultHeight; + windWidth &= ~3; + +# define bound(v) \ + if (v < 0.0) v = 0.0; \ + if (v > 1.0) v = 1.0; + + bound(brightnessTwiddler) + bound(starSize) + bound(fgRedSlider) + bound(fgGreenSlider) + bound(bgRedSlider) + bound(bgGreenSlider) + +# undef bound + + return true; + } else + return false; + +} + +void saveConfig() { + //Should i free this? Manual is unclear + struct passwd *passWord = getpwuid(getuid()); + if (passWord == 0) { + fprintf(stderr,"Couldn't work out where to put config file.\n"); + return; + } + + char *fileName = new char[strlen(passWord->pw_dir) + 20]; + strcpy(fileName,passWord->pw_dir); + strcat(fileName,"/.synaesthesia"); + FILE *f = fopen(fileName,"wt"); + delete fileName; + + if (f) { + fprintf(f,"# Synaesthesia config file\n"); + fprintf(f,"x %d\n",windX); + fprintf(f,"y %d\n",windY); + fprintf(f,"width %d\n",outWidth); + fprintf(f,"height %d\n",outHeight); + + fprintf(f,"# Point style: either diamonds or stars\n"); + fprintf(f,"%s\n",pointsAreDiamonds ? "diamonds" : "stars"); + + fprintf(f,"# Fade style: either fade, wave or heat\n"); + fprintf(f,"%s\n",fadeMode==Stars ? "fade" : (fadeMode==Wave ? "wave" : "heat")); + + fprintf(f,"brightness %f\n",brightnessTwiddler); + fprintf(f,"pointsize %f\n",starSize); + fprintf(f,"fgred %f\n",fgRedSlider); + fprintf(f,"fggreen %f\n",fgGreenSlider); + fprintf(f,"bgred %f\n",bgRedSlider); + fprintf(f,"bggreen %f\n",bgGreenSlider); + fprintf(f,"dsp %s\n",dspName); + fprintf(f,"mixer %s\n",mixerName); + fprintf(f,"cdrom %s\n",cdromName); + fclose(f); + } else { + fprintf(stderr,"Couldn't open config file to save settings.\n"); + } +} + +void chomp(int &argc,char **argv,int argNum) { + argc--; + for(int i=argNum;i ...\n" + " - play these CD tracks one after the other\n" + " |synaesthesia pipe \n" + " - send output of program to sound card as well as displaying it.\n" + " (must be 16-bit stereo sound)\n" + " example: mpg123 -s file.mp3 |synaesthesia pipe 44100\n\n" + "The following optional flags may be used\n" + +#if HAVE_SDL + " --use-sdl force use of Simple DirectMedia Layer\n" +#endif +#ifndef X_DISPLAY_MISSING + " --use-x force use of X-Windows\n" +#endif +#if HAVE_LIBVGA + " --use-svga force use of SVGALib\n" +#endif + " --fullscreen try to take over the whole screen\n" + " --width nnn make the window this wide\n" + " --height nnn make the window this high\n\n" + "For more information, see http://logarithmic.net/pfh/Synaesthesia\n\n" + "Enjoy!\n" + ); + return 1; + } + + //Do flags + bool fullscreen = false, useSDL = true, useX = true, useSVGA = true; + for(int i=0;i 0.0) { + // brightnessTwiddler /= volume; + //} + //if (brightnessTwiddler > 1.0) + // brightnessTwiddler = 1.0; + //else if (brightnessTwiddler < 0.0) + // brightnessTwiddler = 0.0; + + //if (volume > 1.0) + // volume = 1.0; + //else if (volume < 0.0) + // volume = 0.0; + + screen = 0; + +#if HAVE_SDL + if (!screen && useSDL) { + screen = new SdlScreen; + if (!screen->init(windX,windY,windWidth,windHeight,fullscreen)) + screen = 0; + } +#endif + +#ifndef X_DISPLAY_MISSING + if (!screen && useX) { + screen = new XScreen; + if (!screen->init(windX,windY,windWidth,windHeight,fullscreen)) + screen = 0; + } +#endif + +#if HAVE_LIBVGA + if (!screen && useSVGA) { + screen = new SvgaScreen; + if (!screen->init(windX,windY,windWidth,windHeight,fullscreen)) + screen = 0; + } +#endif + + if (!screen) + error("opening any kind of display device"); + + allocOutput(outWidth,outHeight); + + coreInit(); + + setStarSize(starSize); + + interfaceInit(); + + time_t timer = time(NULL); + + int frames = 0; + for(;;) { + fade(); + + if (-1 == coreGo()) + break; + + if (interfaceGo()) break; + + screen->show(); + + frames++; + } + + timer = time(NULL) - timer; + + interfaceEnd(); + +// if (configPlayTrack != -1) +// cdStop(); + + if (soundSource == SourceCD) + cdClose(); + + closeSound(); + + screen->end(); + delete screen; + + if (timer > 10) + printf("Frames per second: %f\n", double(frames) / timer); + + return 0; +} + +void error(char *str, bool syscall) { + fprintf(stderr, "synaesthesia: Error %s\n",str); + if (syscall) + fprintf(stderr,"(reason for error: %s)\n",strerror(errno)); + exit(1); +} +void warning(char *str, bool syscall) { + fprintf(stderr, "synaesthesia: Possible error %s\n",str); + if (syscall) + fprintf(stderr,"(reason for error: %s)\n",strerror(errno)); +} + diff --git a/missing b/missing new file mode 100755 index 0000000..7789652 --- /dev/null +++ b/missing @@ -0,0 +1,190 @@ +#! /bin/sh +# Common stub for a few missing GNU programs while installing. +# Copyright (C) 1996, 1997 Free Software Foundation, Inc. +# Franc,ois Pinard , 1996. + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA +# 02111-1307, USA. + +if test $# -eq 0; then + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 +fi + +case "$1" in + + -h|--h|--he|--hel|--help) + echo "\ +$0 [OPTION]... PROGRAM [ARGUMENT]... + +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an +error status if there is no known handling for PROGRAM. + +Options: + -h, --help display this help and exit + -v, --version output version information and exit + +Supported PROGRAM values: + aclocal touch file \`aclocal.m4' + autoconf touch file \`configure' + autoheader touch file \`config.h.in' + automake touch all \`Makefile.in' files + bison create \`y.tab.[ch]', if possible, from existing .[ch] + flex create \`lex.yy.c', if possible, from existing .c + lex create \`lex.yy.c', if possible, from existing .c + makeinfo touch the output file + yacc create \`y.tab.[ch]', if possible, from existing .[ch]" + ;; + + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) + echo "missing - GNU libit 0.0" + ;; + + -*) + echo 1>&2 "$0: Unknown \`$1' option" + echo 1>&2 "Try \`$0 --help' for more information" + exit 1 + ;; + + aclocal) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acinclude.m4' or \`configure.in'. You might want + to install the \`Automake' and \`Perl' packages. Grab them from + any GNU archive site." + touch aclocal.m4 + ;; + + autoconf) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`configure.in'. You might want to install the + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU + archive site." + touch configure + ;; + + autoheader) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`acconfig.h' or \`configure.in'. You might want + to install the \`Autoconf' and \`GNU m4' packages. Grab them + from any GNU archive site." + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` + test -z "$files" && files="config.h" + touch_files= + for f in $files; do + case "$f" in + *:*) touch_files="$touch_files "`echo "$f" | + sed -e 's/^[^:]*://' -e 's/:.*//'`;; + *) touch_files="$touch_files $f.in";; + esac + done + touch $touch_files + ;; + + automake) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. + You might want to install the \`Automake' and \`Perl' packages. + Grab them from any GNU archive site." + find . -type f -name Makefile.am -print | + sed 's/\.am$/.in/' | + while read f; do touch "$f"; done + ;; + + bison|yacc) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.y' file. You may need the \`Bison' package + in order for those modifications to take effect. You can get + \`Bison' from any GNU archive site." + rm -f y.tab.c y.tab.h + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.y) + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.c + fi + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" y.tab.h + fi + ;; + esac + fi + if [ ! -f y.tab.h ]; then + echo >y.tab.h + fi + if [ ! -f y.tab.c ]; then + echo 'main() { return 0; }' >y.tab.c + fi + ;; + + lex|flex) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.l' file. You may need the \`Flex' package + in order for those modifications to take effect. You can get + \`Flex' from any GNU archive site." + rm -f lex.yy.c + if [ $# -ne 1 ]; then + eval LASTARG="\${$#}" + case "$LASTARG" in + *.l) + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` + if [ -f "$SRCFILE" ]; then + cp "$SRCFILE" lex.yy.c + fi + ;; + esac + fi + if [ ! -f lex.yy.c ]; then + echo 'main() { return 0; }' >lex.yy.c + fi + ;; + + makeinfo) + echo 1>&2 "\ +WARNING: \`$1' is missing on your system. You should only need it if + you modified a \`.texi' or \`.texinfo' file, or any other file + indirectly affecting the aspect of the manual. The spurious + call might also be the consequence of using a buggy \`make' (AIX, + DU, IRIX). You might want to install the \`Texinfo' package or + the \`GNU make' package. Grab either from any GNU archive site." + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` + if test -z "$file"; then + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` + fi + touch $file + ;; + + *) + echo 1>&2 "\ +WARNING: \`$1' is needed, and you do not seem to have it handy on your + system. You might have modified some files without having the + proper tools for further handling them. Check the \`README' file, + it often tells you about the needed prerequirements for installing + this package. You may also peek at any GNU archive site, in case + some other package would contain this missing \`$1' program." + exit 1 + ;; +esac + +exit 0 diff --git a/mkinstalldirs b/mkinstalldirs new file mode 100755 index 0000000..4f58503 --- /dev/null +++ b/mkinstalldirs @@ -0,0 +1,40 @@ +#! /bin/sh +# mkinstalldirs --- make directory hierarchy +# Author: Noah Friedman +# Created: 1993-05-16 +# Public domain + +# $Id: mkinstalldirs,v 1.13 1999/01/05 03:18:55 bje Exp $ + +errstatus=0 + +for file +do + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` + shift + + pathcomp= + for d + do + pathcomp="$pathcomp$d" + case "$pathcomp" in + -* ) pathcomp=./$pathcomp ;; + esac + + if test ! -d "$pathcomp"; then + echo "mkdir $pathcomp" + + mkdir "$pathcomp" || lasterr=$? + + if test ! -d "$pathcomp"; then + errstatus=$lasterr + fi + fi + + pathcomp="$pathcomp/" + done +done + +exit $errstatus + +# mkinstalldirs ends here diff --git a/polygon.h b/polygon.h new file mode 100644 index 0000000..f711c03 --- /dev/null +++ b/polygon.h @@ -0,0 +1,98 @@ +#include + +template +struct Bitmap { + int width, height, extra; + Pixel *data; + + Bitmap(int e=0) : extra(e), data(0) { }; + ~Bitmap() { delete[] data; }; + + void size(int w,int h) { + delete[] data; + width = w; + height = h; + data = new Pixel[w*h+extra]; + clear(); + } + + void clear() { + memset(data,0,sizeof(Pixel)*(width*height+extra)); + } +}; + +template +struct PolygonEngine : public Bitmap { + PolygonEngine() : Bitmap(1) { } + +#define super (1<width*this->height; + Pixel *src = this->data; + while(count--) { + sum += *(src++); + if (sum) + *dest = Combiner::combine(sum,*dest); + dest++; + } + } + + void add(Pixel color,int x,int y) { + if (y < 0) return; + if (y >= this->height) return; + if (x < 0) x = 0; + if (x > this->width) x = this->width; + this->data[x+y*this->width] += color; + } + + /* Color is char[layers] */ + + // zwoosh, yknow, it goes... zwoosh an all these bars and lines and + // crap intersect. + Pixel colorTable[2][super+1]; + void pen(Pixel color) { + for(int i=0;i>16)&(super-1))], + x>>(16+superSampleShift),y>>superSampleShift); + add(colors[(x>>16)&(super-1)], + 1+(x>>(16+superSampleShift)),y>>superSampleShift); + x += slope; + y++; + } + } + + void icon(double icon[][4],Pixel color,double x,double y, + double scaleX, double scaleY) { + pen(color); + x *= super; + y *= super; + scaleX *= super; + scaleY *= super; + for(int i=0;icon[i][1] != icon[i][3];i++) + line(int(icon[i][0]*scaleX+x),int(icon[i][1]*scaleY+y), + int(icon[i][2]*scaleX+x),int(icon[i][3]*scaleY+y)); + } +#undef super +}; diff --git a/sdlwrap.cc b/sdlwrap.cc new file mode 100644 index 0000000..ae78cc4 --- /dev/null +++ b/sdlwrap.cc @@ -0,0 +1,237 @@ +/* Synaesthesia - program to display sound graphically + Copyright (C) 1997 Paul Francis Harrison + + 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., + 675 Mass Ave, Cambridge, MA 02139, USA. + + The author may be contacted at: + pfh@yoyo.cc.monash.edu.au + or + 27 Bond St., Mt. Waverley, 3149, Melbourne, Australia +*/ + +#include +#include +#include +#include +#include +#include "syna.h" + +#if HAVE_SDL + +#include "SDL.h" + +static SDL_Surface *surface; +static SDL_Color sdlPalette[256]; +static bool fullscreen; +static int scaling; //currently only supports 1, 2 + +static void createSurface() { + Uint32 videoflags = SDL_HWSURFACE | SDL_DOUBLEBUF | + SDL_RESIZABLE | (fullscreen?SDL_FULLSCREEN:0); + + + /* Get available fullscreen modes */ + SDL_Rect **modes = SDL_ListModes(0, videoflags); + + bool any = false; + + if(modes == (SDL_Rect **)-1){ + /* All resolutions ok */ + any = true; + } else { + /* Is there a resolution that will fit the display nicely */ + for(int i=0;modes[i];i++) + if (modes[i]->w < outWidth*2 || modes[i]->h < outHeight*2) + any = true; + } + + scaling = (any?1:2); + + surface = SDL_SetVideoMode(outWidth*scaling, outHeight*scaling, 8, videoflags); + SDL_SetColors(surface, sdlPalette, 0, 256); + + if (!surface) + error("setting video mode"); +} + +void SdlScreen::setPalette(unsigned char *palette) { + for(int i=0;i<256;i++) { + sdlPalette[i].r = palette[i*3+0]; + sdlPalette[i].g = palette[i*3+1]; + sdlPalette[i].b = palette[i*3+2]; + } + + SDL_SetColors(surface, sdlPalette, 0, 256); +} + +bool SdlScreen::init(int xHint,int yHint,int width,int height,bool fullscreen) +{ + Uint32 videoflags; + + outWidth = width; + outHeight = height; + ::fullscreen = fullscreen; + + /* Initialize SDL */ + if ( SDL_Init(SDL_INIT_VIDEO) < 0 ) { + char str[1000]; + printf(str, "Could not initialize SDL library: %s\n",SDL_GetError()); + return false; + } + + SDL_WM_SetCaption("Synaesthesia","synaesthesia"); + + createSurface(); + + SDL_EnableUNICODE(1); + SDL_ShowCursor(0); + + return true; +} + +void SdlScreen::end(void) { + SDL_Quit(); +} + +void SdlScreen::toggleFullScreen(void) { + fullscreen = !fullscreen; + createSurface(); +} + +void SdlScreen::inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit) { + SDL_Event event; + bool resized = false; + + keyHit = 0; + + while ( SDL_PollEvent(&event) > 0 ) { + switch (event.type) { + case SDL_MOUSEBUTTONUP: + case SDL_MOUSEBUTTONDOWN: + if ( event.button.state == SDL_PRESSED ) + mouseButtons |= 1 << event.button.button; + else + mouseButtons &= ~( 1 << event.button.button ); + mouseX = event.button.x / scaling; + mouseY = event.button.y / scaling; + break; + case SDL_MOUSEMOTION : + mouseX = event.motion.x / scaling; + mouseY = event.motion.y / scaling; + break; + case SDL_ACTIVEEVENT : + /* Lost focus, hide mouse */ + if (!event.active.gain) { + mouseX = outWidth; + mouseY = outHeight; + } + case SDL_KEYDOWN: + ///* Ignore key releases */ + //if ( event.key.state == SDL_RELEASED ) { + // break; + //} + /* Ignore ALT-TAB for windows */ + if ( (event.key.keysym.sym == SDLK_LALT) || + (event.key.keysym.sym == SDLK_TAB) ) { + break; + } + + if (event.key.keysym.unicode > 255) + break; + + keyHit = event.key.keysym.unicode; + return; + case SDL_VIDEORESIZE: + event.resize.w &= ~3; + allocOutput(event.resize.w,event.resize.h); + createSurface(); + break; + case SDL_QUIT: + keyHit = 'q'; + return; + default: + break; + } + } +} + +void SdlScreen::show(void) { + attempt(SDL_LockSurface(surface),"locking screen for output."); + + if (scaling == 1) { + register uint32_t *ptr2 = (uint32_t*)output; + uint32_t *ptr1 = (uint32_t*)( surface->pixels ); + int i = outWidth*outHeight/sizeof(*ptr2); + + do { + // Asger Alstrup Nielsen's (alstrup@diku.dk) + // optimized 32 bit screen loop + register unsigned int const r1 = *(ptr2++); + register unsigned int const r2 = *(ptr2++); + + //if (r1 || r2) { + #ifdef LITTLEENDIAN + register unsigned int const v = + ((r1 & 0x000000f0ul) >> 4) + | ((r1 & 0x0000f000ul) >> 8) + | ((r1 & 0x00f00000ul) >> 12) + | ((r1 & 0xf0000000ul) >> 16); + *(ptr1++) = v | + ( ((r2 & 0x000000f0ul) << 12) + | ((r2 & 0x0000f000ul) << 8) + | ((r2 & 0x00f00000ul) << 4) + | ((r2 & 0xf0000000ul))); + #else + register unsigned int const v = + ((r2 & 0x000000f0ul) >> 4) + | ((r2 & 0x0000f000ul) >> 8) + | ((r2 & 0x00f00000ul) >> 12) + | ((r2 & 0xf0000000ul) >> 16); + *(ptr1++) = v | + ( ((r1 & 0x000000f0ul) << 12) + | ((r1 & 0x0000f000ul) << 8) + | ((r1 & 0x00f00000ul) << 4) + | ((r1 & 0xf0000000ul))); + #endif + //} else ptr1++; + } while (--i); + + } else { + // SDL has no standard image scaling routine (!) + uint8_t *pixels = (uint8_t*)(surface->pixels); + for(int y=0;y> 4) + | ((v&0x0000f000) >> 8) + | ((v&0x00f00000) >> 4) + | ((v&0xf0000000) >> 8); + v |= v<<8; + *(p2++) = v; + *(p3++) = v; + } + } + } + + SDL_UnlockSurface(surface); + + //SDL_UpdateRect(surface, 0, 0, 0, 0); + SDL_Flip(surface); +} + +#endif diff --git a/sound.cc b/sound.cc new file mode 100644 index 0000000..e16ec0b --- /dev/null +++ b/sound.cc @@ -0,0 +1,595 @@ +/* Synaesthesia - program to display sound graphically + Copyright (C) 1997 Paul Francis Harrison + + 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., + 675 Mass Ave, Cambridge, MA 02139, USA. + + The author may be contacted at: + pfh@yoyo.cc.monash.edu.au + or + 27 Bond St., Mt. Waverley, 3149, Melbourne, Australia +*/ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) +#include +#include +//#include +#else +#include +#include +#define CDROM_LEADOUT 0xAA +#define CD_FRAMES 75 /* frames per second */ +#define CDROM_DATA_TRACK 0x4 +#endif +#include + +#include +#include +#include +#include +#include "syna.h" + +#if HAVE_LIBESD +#include +#endif + +static int cdDevice; + +static int trackCount = 0, *trackFrame = 0; + +void cdOpen(char *cdromName) { + //6/7/2000 Some CDs seem to need to be opened nonblocking. + //attempt(cdDevice = open(cdromName,O_RDONLY),"talking to CD device",true); + attempt(cdDevice = open(cdromName,O_RDONLY|O_NONBLOCK),"talking to CD device",true); +} + +void cdClose(void) { + close(cdDevice); + + delete[] trackFrame; +} + +//void cdConfigure(void) { +//#ifdef HAVE_UCDROM +// if (!cdOpen()) return; +// int options = (CDO_AUTO_EJECT|CDO_AUTO_CLOSE); +// attemptNoDie(ioctl(cdDevice, CDROM_CLEAR_OPTIONS, options), +// "configuring CD behaviour"); +// cdClose(); +//#endif +//} + +void getTrackInfo(void) { + delete trackFrame; + trackFrame = 0; + trackCount = 0; + +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + cdrom_tochdr cdTochdr; + if (-1 == ioctl(cdDevice, CDROMREADTOCHDR, &cdTochdr)) +#else + ioc_toc_header cdTochdr; + if (-1 == ioctl(cdDevice, CDIOREADTOCHEADER, (char *)&cdTochdr)) +#endif + return; +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + trackCount = cdTochdr.cdth_trk1; +#else + trackCount = cdTochdr.ending_track - cdTochdr.starting_track + 1; +#endif + + int i; + trackFrame = new int[trackCount+1]; + for(i=trackCount;i>=0;i--) { +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + cdrom_tocentry cdTocentry; + cdTocentry.cdte_format = CDROM_MSF; + cdTocentry.cdte_track = (i == trackCount ? CDROM_LEADOUT : i+1); +#else + cd_toc_entry cdTocentry; + struct ioc_read_toc_entry t; + t.address_format = CD_MSF_FORMAT; + t.starting_track = (i == trackCount ? CDROM_LEADOUT : i+1); + t.data_len = sizeof(struct cd_toc_entry); + t.data = &cdTocentry; +#endif + + //Bug fix: thanks to Ben Gertzfield (9/7/98) + //Leadout track is sometimes reported as data. + //Added check for this. +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + if (-1 == ioctl(cdDevice, CDROMREADTOCENTRY, & cdTocentry) || + (i != trackCount && (cdTocentry.cdte_ctrl & CDROM_DATA_TRACK))) + trackFrame[i] = (i==trackCount?0:trackFrame[i+1]); + else + trackFrame[i] = cdTocentry.cdte_addr.msf.minute*60*CD_FRAMES+ + cdTocentry.cdte_addr.msf.second*CD_FRAMES+ + cdTocentry.cdte_addr.msf.frame; +#else + if ((ioctl(cdDevice, CDIOREADTOCENTRYS, (char *) &t) == -1) || + (i != trackCount && (cdTocentry.control & CDROM_DATA_TRACK))) + trackFrame[i] = (i==trackCount?0:trackFrame[i+1]); + else + trackFrame[i] = cdTocentry.addr.msf.minute*60*CD_FRAMES+ + cdTocentry.addr.msf.second*CD_FRAMES+ + cdTocentry.addr.msf.frame; +#endif + } +} + +int cdGetTrackCount(void) { + return trackCount; +} +int cdGetTrackFrame(int track) { + if (!trackFrame) + return 0; + else if (track <= 1 || track > trackCount+1) + return trackFrame[0]; + else + return trackFrame[track-1]; +} + +void cdPlay(int frame, int endFrame) { +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + cdrom_msf msf; +#else + struct ioc_play_msf msf; +#endif + if (frame < 1) frame = 1; + if (endFrame < 1) { + if (!trackFrame) return; + endFrame = trackFrame[trackCount]; + } + + //Some CDs can't change tracks unless not playing. + // (Sybren Stuvel) + cdStop(); + +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + msf.cdmsf_min0 = frame / (60*CD_FRAMES); + msf.cdmsf_sec0 = frame / CD_FRAMES % 60; + msf.cdmsf_frame0 = frame % CD_FRAMES; +#else + msf.start_m = frame / (60*CD_FRAMES); + msf.start_s = frame / CD_FRAMES % 60; + msf.start_f = frame % CD_FRAMES; +#endif + + //Bug fix: thanks to Martin Mitchell + //An out by one error that affects some CD players. + //Have to use endFrame-1 rather than endFrame (9/7/98) +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + msf.cdmsf_min1 = (endFrame-1) / (60*CD_FRAMES); + msf.cdmsf_sec1 = (endFrame-1) / CD_FRAMES % 60; + msf.cdmsf_frame1 = (endFrame-1) % CD_FRAMES; + attemptNoDie(ioctl(cdDevice, CDROMPLAYMSF, &msf),"playing CD",true); +#else + msf.end_m = (endFrame-1) / (60*CD_FRAMES); + msf.end_s = (endFrame-1) / CD_FRAMES % 60; + msf.end_f = (endFrame-1) % CD_FRAMES; + attemptNoDie(ioctl(cdDevice, CDIOCPLAYMSF, (char *) &msf),"playing CD",true); +#endif +} + +void cdGetStatus(int &track, int &frames, SymbolID &state) { +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + cdrom_subchnl subchnl; + subchnl.cdsc_format = CDROM_MSF; + if (-1 == ioctl(cdDevice, CDROMSUBCHNL, &subchnl)) { +#else + ioc_read_subchannel subchnl; + struct cd_sub_channel_info info; + + subchnl.data = &info; + subchnl.data_len = sizeof (info); + subchnl.address_format = CD_MSF_FORMAT; + subchnl.data_format = CD_CURRENT_POSITION; + + if (-1 == ioctl(cdDevice, CDIOCREADSUBCHANNEL, (char *) &subchnl)) { +#endif + track = 1; + frames = 0; + state = (state == Open ? Open : NoCD); /* ? */ + return; + } +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + track = subchnl.cdsc_trk; + frames = subchnl.cdsc_reladdr.msf.minute*60*CD_FRAMES+ + subchnl.cdsc_reladdr.msf.second*CD_FRAMES+ + subchnl.cdsc_reladdr.msf.frame; +#else + track = subchnl.data->what.position.track_number; + frames = subchnl.data->what.position.reladdr.msf.minute*60*CD_FRAMES+ + subchnl.data->what.position.reladdr.msf.second*CD_FRAMES+ + subchnl.data->what.position.reladdr.msf.frame; +#endif + + SymbolID oldState = state; +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + switch(subchnl.cdsc_audiostatus) { + case CDROM_AUDIO_PAUSED : state = Pause; break; + case CDROM_AUDIO_PLAY : state = Play; break; + case CDROM_AUDIO_COMPLETED : state = Stop; break; + case CDROM_AUDIO_NO_STATUS : state = Stop; break; + case CDROM_AUDIO_INVALID : state = Stop; break; +#else + switch(subchnl.data->header.audio_status) { + case CD_AS_PLAY_PAUSED : state = Pause; break; + case CD_AS_PLAY_IN_PROGRESS : state = Play; break; + case CD_AS_PLAY_COMPLETED : state = Stop; break; + case CD_AS_NO_STATUS : state = Stop; break; + case CD_AS_AUDIO_INVALID : state = Stop; break; +#endif + default : state = NoCD; break; + } + + if ((oldState == NoCD || oldState == Open) && + (state == Pause || state == Play || state == Stop)) { + getTrackInfo(); + } + + if (state != Play && state != Pause) { + track = 1; + frames = 0; + } +} + +void cdStop(void) { + //attemptNoDie(ioctl(cdDevice, CDROMSTOP),"stopping CD"); +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + ioctl(cdDevice, CDROMSTOP); +#else + ioctl(cdDevice, CDIOCSTOP); +#endif +} +void cdPause(void) { +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + attemptNoDie(ioctl(cdDevice, CDROMPAUSE),"pausing CD",true); +#else + attemptNoDie(ioctl(cdDevice, CDIOCPAUSE),"pausing CD",true); +#endif +} +void cdResume(void) { +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + attemptNoDie(ioctl(cdDevice, CDROMRESUME),"resuming CD",true); +#else + attemptNoDie(ioctl(cdDevice, CDIOCRESUME),"resuming CD",true); +#endif +} +void cdEject(void) { +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + attemptNoDie(ioctl(cdDevice, CDROMEJECT),"ejecting CD",true); +#else + attemptNoDie(ioctl(cdDevice, CDIOCEJECT),"ejecting CD",true); +#endif +} +void cdCloseTray(void) { +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + attemptNoDie(ioctl(cdDevice, CDROMCLOSETRAY),"ejecting CD",true); +#else + attemptNoDie(ioctl(cdDevice, CDIOCCLOSE),"ejecting CD",true); +#endif +} + +/* Sound Recording ================================================= */ + +#ifdef LITTLEENDIAN +#define SOUNDFORMAT AFMT_S16_LE +#else +#define SOUNDFORMAT AFMT_S16_BE +#endif + +//If kernel starts running out of sound memory playing mp3s, this could +//be the problem. OTOH if it is too small, it will start ticking on slow +//computers +#define MAXWINDOWSIZE 32 + +//Used for various buffers +#define BUFFERSIZE (1<<18) + +static SoundSource source; +static int inFrequency, downFactor, windowSize, pipeIn, device; + +// pipe stuff +//static int16_t *dataIn; +//static int dataInAvailable; // current size of data available +//static int feederFd; // fd of pipe to feeded process +char pipeBuffer[BUFFERSIZE]; +int pipeBufferUsed, pipeBufferDelay; + +static char *mixer; + +int readWholeBlock(int pipe,char *dest,int length) { + while(length > 0) { + int result = read(pipe,dest,length); + if (result < 1) + return -1; + dest += result; + length -= result; + } + return 0; +} + +int writeWholeBlock(int pipe,char *src,int length) { + while(length > 0) { + int result = write(pipe,src,length); + if (result < 1) + return -1; + src += result; + length -= result; + } + return 0; +} + +int makePiper(void) { + int p[2]; + attempt(pipe(p), "making pipe"); + + if (!fork()) { + close(p[0]); + + static char buffer[BUFFERSIZE]; + int bufferUsed = 0; + int device_p = 0; + bool doneReading = false; + + while(!doneReading || bufferUsed >= 256) { + fd_set readers, writers; + FD_ZERO(&readers); + if (bufferUsed < BUFFERSIZE-256) FD_SET(0, &readers); + FD_ZERO(&writers); + if (device_p >= 4) FD_SET(p[1], &writers); + if (bufferUsed-device_p >= 256) FD_SET(device, &writers); + + select((p[1]= 256) { + int n = write(device, buffer+device_p, 256); + + if (n < 1) + break; + + device_p += n; + } + + if (FD_ISSET(0, &readers) && bufferUsed < BUFFERSIZE-256) { + int n = read(0, buffer+bufferUsed, 256); + + if (n < 1) + doneReading = true; + + bufferUsed += n; + } + + if (FD_ISSET(p[1], &writers) && device_p >= 4) { + static char b2[BUFFERSIZE]; + int b2Used = 0; + for(int i=0;i 100) scaledLoudness = 100; + scaledLoudness = scaledLoudness*256 + scaledLoudness; + if (source == SourceCD) { + attemptNoDie(ioctl(device,SOUND_MIXER_WRITE_CD,&scaledLoudness),"writing to mixer",true); + } else if (source == SourceLine) { + attemptNoDie(ioctl(device,SOUND_MIXER_WRITE_LINE,&scaledLoudness),"writing to mixer",true); + attemptNoDie(ioctl(device,SOUND_MIXER_WRITE_MIC,&scaledLoudness),"writing to mixer",true); + } else { + attemptNoDie(ioctl(device,SOUND_MIXER_WRITE_PCM,&scaledLoudness),"writing to mixer",true); + } + close(device); + } +} + +void openSound(SoundSource source, int inFrequency, char *dspName, + char *mixerName) { + ::source = source; + ::inFrequency = inFrequency; + ::windowSize = 1; + pipeBufferUsed = 0; + pipeBufferDelay = 0; + mixer = mixerName; + + if (source == SourceESD) { +#if HAVE_LIBESD + attempt(pipeIn = esd_monitor_stream( + ESD_BITS16|ESD_STEREO|ESD_STREAM|ESD_PLAY,Frequency,0,PACKAGE), + "connecting to EsounD"); + + int esd; + attempt(esd = esd_open_sound(0), "querying esd latency"); + attempt(pipeBufferDelay = esd_get_latency(esd_open_sound(0)), "querying esd latency"); + esd_close(esd); + + pipeBufferDelay = int( double(pipeBufferDelay) * Frequency * 2 / 44100 ); + // there should be an extra factor of two here... but it looks wrong + // if i put it in... hmm + +#endif + } else { + downFactor = inFrequency / Frequency; + if (downFactor <= 0) + downFactor = 1; + + int format, stereo, fragment, fqc; + +#if defined(__FreeBSD__) || defined(_FreeBSD_kernel__) + attempt(device = open(dspName,O_WRONLY),"opening dsp device",true); + format = SOUNDFORMAT; + attempt(ioctl(device,SNDCTL_DSP_SETFMT,&format),"setting format",true); + if (format != SOUNDFORMAT) error("setting format (2)"); + close(device); +#endif + if (source == SourcePipe) + attempt(device = open(dspName,O_WRONLY),"opening dsp device",true); + else + attempt(device = open(dspName,O_RDONLY),"opening dsp device",true); + + format = SOUNDFORMAT; + fqc = (source == SourcePipe ? inFrequency : Frequency); + stereo = 1; + + //if (source == SourcePipe) + //fragment = 0x00010000*(MAXWINDOWSIZE+1) + (LogSize-Overlap+1); + //else + //Added extra fragments to allow recording overrun (9/7/98) + //8 fragments of size 2*(2^(LogSize-Overlap+1)) bytes + // fragment = 0x00080000 + (LogSize-Overlap+1); + + fragment = 0x0003000e; + attemptNoDie(ioctl(device,SNDCTL_DSP_SETFRAGMENT,&fragment),"setting fragment",true); + +#if !defined (__FreeBSD__) && !defined(__FreeBSD_kernel__) + attempt(ioctl(device,SNDCTL_DSP_SETFMT,&format),"setting format",true); + if (format != SOUNDFORMAT) error("setting format (2)"); +#endif + attempt(ioctl(device,SNDCTL_DSP_STEREO,&stereo),"setting stereo",true); + attemptNoDie(ioctl(device,SNDCTL_DSP_SPEED,&fqc),"setting frequency",true); + + if (source == SourcePipe) { + //dataIn = new int16_t[NumSamples*2*downFactor*MAXWINDOWSIZE]; + //memset(dataIn,0,NumSamples*4*downFactor*MAXWINDOWSIZE); + //dataInAvailable = NumSamples*4*downFactor*windowSize; + //pipeIn = 0;//dup(0); + + pipeIn = makePiper(); + } else { + pipeIn = device; + } + } + + fcntl(pipeIn, F_SETFL, O_NONBLOCK); + + data = new int16_t[NumSamples*2]; + memset((char*)data,0,NumSamples*4); +} + +void closeSound() { + delete data; + + close(pipeIn); +} + +int getNextFragment(void) { + // Linux wasn't designed for real time piping + // hence, this section is a bit hacked... + static int step = 4096; + + bool end = false, any = false; + + // This seems to be necessary. Not sure why. + usleep(1000); + + // Read all data in pipe + while(pipeBufferUsed < BUFFERSIZE) { + int result = read(pipeIn,pipeBuffer+pipeBufferUsed,BUFFERSIZE-pipeBufferUsed); + if (result == 0) + end = true; + if (result < 1) + break; + pipeBufferUsed += result; + } + + //printf("%d\n",pipeBufferUsed); + //if (pipeBufferUsed == BUFFERSIZE) { + // delay += 10000; + //} + + int eat = pipeBufferUsed - pipeBufferDelay; + + if (eat < step && step > 256) step -= 128; + else if (eat > step * 16) step += 128; + + if (eat > 0) { + if (eat > step) eat = step; + + if (eat > NumSamples*4) + memcpy((char*)data, pipeBuffer+eat-NumSamples*4, NumSamples*4); + else { + memmove((char*)data,(char*)data+eat,NumSamples*4-eat); + memcpy((char*)data+NumSamples*4-eat,pipeBuffer,eat); + } + + pipeBufferUsed -= eat; + memmove(pipeBuffer,pipeBuffer+eat,pipeBufferUsed); + } + + return end && eat <= 0 ? -1 : 0; +} + diff --git a/stamp-h.in b/stamp-h.in new file mode 100644 index 0000000..e69de29 diff --git a/svgawrap.cc b/svgawrap.cc new file mode 100644 index 0000000..1acfde9 --- /dev/null +++ b/svgawrap.cc @@ -0,0 +1,168 @@ +/* Synaesthesia - program to display sound graphically + Copyright (C) 1997 Paul Francis Harrison + + 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., + 675 Mass Ave, Cambridge, MA 02139, USA. + + The author may be contacted at: + pfh@yoyo.cc.monash.edu.au + or + 27 Bond St., Mt. Waverley, 3149, Melbourne, Australia +*/ + +#include +#include +#include +#include +#include "syna.h" + +#if HAVE_LIBVGA + +#include +#include + +static unsigned char *scr; +static int keyboardDevice; + +static void setOnePalette(int i,int r,int g,int b) { + vga_setpalette(i,r/4,g/4,b/4); +} + +bool SvgaScreen::init(int xHint,int yHint,int widthHint,int heightHint,bool fullscreen) { + attempt(vga_init(),"initializing svgalib"); + if (!vga_hasmode(G320x200x256)) + error("requesting 320x200 graphics mode"); + + attempt(vga_setmode(G320x200x256),"entering 320x200 graphics mode"); + + scr = vga_getgraphmem(); + outWidth = 320; + outHeight = 200; + + attemptNoDie(mouse_init("/dev/mouse", + vga_getmousetype(),MOUSE_DEFAULTSAMPLERATE),"initializing mouse"); + mouse_setxrange(-1,321); + mouse_setyrange(-1,201); + mouse_setposition(160,34); + //mouse_setscale(32); + + /*#define BOUND(x) ((x) > 255 ? 255 : (x)) + #define PEAKIFY(x) BOUND((x) - (x)*(255-(x))/255/2) + int i; + for(i=0;i<256;i++) + setPalette(i,PEAKIFY((i&15*16)), + PEAKIFY((i&15)*16+(i&15*16)/4), + PEAKIFY((i&15)*16)); + */ + + /* Get keyboard input descriptor */ + if (!isatty(0)) { + char *tty; + + //Ok, we're getting piped input, so we can't use stdin. + //Find out where stdout is going and read from it. + tty = ttyname(1); + + keyboardDevice = -1; + + if (tty) { + keyboardDevice = open(tty, O_RDONLY); + + if (keyboardDevice != -1) { + termios term; + tcgetattr(keyboardDevice, &term); + cfmakeraw(&term); + tcsetattr(keyboardDevice, TCSANOW, &term); + } + } + } else + keyboardDevice = 0; + + if (keyboardDevice != -1) + fcntl(keyboardDevice,F_SETFL,O_NONBLOCK); + + return true; +} + +void SvgaScreen::setPalette(unsigned char *palette) { + int i; + for(i=0;i<256;i++) + setOnePalette(i,palette[i*3],palette[i*3+1],palette[i*3+2]); +} + +void SvgaScreen::end() { + if (keyboardDevice > 0) + close(keyboardDevice); + + mouse_close(); + vga_setmode(TEXT); +} + +void SvgaScreen::inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit) { + mouse_update(); + mouseX = mouse_getx(); + mouseY = mouse_gety(); + mouseButtons = mouse_getbutton(); + + if (keyboardDevice == -1 || read(keyboardDevice, &keyHit, 1) != 1) + keyHit = 0; +} + +void SvgaScreen::show(void) { + register uint32_t *ptr2 = (uint32_t*)output; + uint32_t *ptr1 = (uint32_t*)scr; + int i = 320*200/sizeof(uint32_t); + // Asger Alstrup Nielsen's (alstrup@diku.dk) + // optimized 32 bit screen loop + do { + //Original bytewize version: + //unsigned char v = (*(ptr2++)&15*16); + //*(ptr1++) = v|(*(ptr2++)>>4); + register uint32_t const r1 = *(ptr2++); + register uint32_t const r2 = *(ptr2++); + + //Fade will continue even after value > 16 + //thus black pixel will be written when values just > 0 + //thus no need to write true black + //if (r1 || r2) { +#ifdef LITTLEENDIAN + register uint32_t const v = + ((r1 & 0x000000f0ul) >> 4) + | ((r1 & 0x0000f000ul) >> 8) + | ((r1 & 0x00f00000ul) >> 12) + | ((r1 & 0xf0000000ul) >> 16); + *(ptr1++) = v | + ( ((r2 & 0x000000f0ul) << 12) + | ((r2 & 0x0000f000ul) << 8) + | ((r2 & 0x00f00000ul) << 4) + | ((r2 & 0xf0000000ul))); +#else + register uint32_t const v = + ((r2 & 0x000000f0ul) >> 4) + | ((r2 & 0x0000f000ul) >> 8) + | ((r2 & 0x00f00000ul) >> 12) + | ((r2 & 0xf0000000ul) >> 16); + *(ptr1++) = v | + ( ((r1 & 0x000000f0ul) << 12) + | ((r1 & 0x0000f000ul) << 8) + | ((r1 & 0x00f00000ul) << 4) + | ((r1 & 0xf0000000ul))); +#endif + //} else { + // ptr1++; + //} + } while (--i); +} + +#endif diff --git a/symbol.h b/symbol.h new file mode 100644 index 0000000..53137c0 --- /dev/null +++ b/symbol.h @@ -0,0 +1,1021 @@ +#define SYMBOLSWIDTH 586 +#define SYMBOLSHEIGHT 50 +unsigned char Symbols[586*50] = { + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,241,72,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,13,30,37,31,24,5,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,132,254,237,72,0,0,0,0,0,0,0,0,0,0,0,1,7,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,46,0,0,0,0,0,0,0,0,0,0,0,0,0,10,87, + 176,225,244,246,244,238,206,135,39,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254, + 254,236,73,0,0,0,0,0,0,0,0,0,0,3,154,138,58,9,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,36,211,80,0,0,0,0,0,0,0,0,0,0,0,2,77,204,252,254,254,254, + 254,254,254,254,254,239,145,21,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255,245, + 215,72,0,0,0,0,0,0,0,0,0,0,115,254,249,213,138,58,8,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,36,212,253,80,0,0,0,0,0,0,0,0,0,0,7,136,247,254,254,254,254, + 254,254,254,254,254,254,254,254,208,52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254, + 255,225,66,210,72,0,0,0,0,0,0,0,0,0,40,244,254,254,254,249,214,137,57,8, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,37,212,254,254,80,0,0,0,0,0,0,0,0,0,4,150,253,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,227,50,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,132,254,255,225,10,55,217,71,0,0,0,0,0,0,0,0,4,194,254,255,255, + 255,255,254,250,214,137,57,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,211,254,254,254,80,0,0, + 0,0,0,0,0,0,0,100,250,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,203,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255,225,10,1,196,187,1, + 0,0,0,0,0,0,0,0,115,254,255,255,255,255,255,254,254,254,249,212,137,57, + 10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,36,211,254,254,254,254,80,0,0,0,0,0,0,0,0,29,230,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,255,255,254,130,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,41,244,255,255, + 255,255,255,255,255,255,254,254,254,249,212,137,58,8,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,212,254,254,254, + 254,254,80,0,0,0,0,0,0,0,0,134,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,255,255,255,232,26,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255, + 225,10,1,196,190,1,0,0,0,0,0,0,0,0,4,196,254,255,255,255,255,255,255,255, + 255,255,255,255,254,254,249,212,137,57,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,212,254,254,254,254,254,254,80,0,0, + 0,0,0,0,0,16,225,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,255,255,255,254,112,0,0,0,0,0,0,0,3,12,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16, + 0,0,0,0,0,0,7,9,0,0,0,0,0,0,0,0,0,0,0,0,111,155,155,111,0,0,0,16,148,155, + 155,58,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,132,254, + 255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,115,253,254,255,255,255,255,255, + 255,255,255,255,255,255,255,254,254,254,250,194,15,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,7,147,99,1,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,38,179, + 38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,211,254,254,254,254,254, + 254,254,80,0,0,0,0,0,0,0,62,251,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,255,255,255,254,182,1,0,0,0,0,0,0,18,171,19,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,1,162,44,0,0,0,0,0,37,159,11,0,0,0,0,0,0,0,0,0,0,1,182,254, + 254,182,1,0,0,27,243,254,254,96,0,0,0,0,0,0,0,0,0,0,0,23,136,1,0,0,0,0, + 0,68,92,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0, + 40,244,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254, + 232,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,151,253,245,99,1,0,0, + 6,50,106,155,166,174,166,162,115,52,11,0,0,0,38,213,254,213,39,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,210,254,254,254,254,254,254,254,254,80, + 0,0,0,0,0,0,0,108,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,255,255,255,254,223,9,0,0,0,0,0,0,18,239,185,19,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,1,197,219,45,0,0,0,0,38,246,166,11,0,0,0,0,0,0,0,0,0,1,182,254,254, + 182,1,0,0,27,243,254,254,96,0,0,0,0,0,0,0,0,0,0,23,192,196,1,0,0,0,0,68, + 233,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0, + 4,196,254,255,255,255,255,255,255,255,255,255,255,255,255,255,254,232,65, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,180,252,255,254,244,95,10,97, + 197,248,254,254,255,255,255,254,254,248,210,118,20,36,212,254,255,254,213, + 39,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,211,254,254,254,254,254,254,254, + 254,254,80,0,0,0,0,0,0,0,117,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,255,255,255,255,228,11,0,0,0,0,0,0,18,240,254,185, + 19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0, + 1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, + 1,1,0,0,0,0,0,0,0,1,197,254,218,44,0,0,0,38,247,253,165,11,0,0,0,0,0,0, + 0,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0,0,0,0,0,0,0,0,0,23,192, + 254,196,1,0,0,0,67,234,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190, + 1,0,0,0,0,0,0,0,0,0,0,116,254,255,255,255,255,255,255,255,255,255,255,255, + 255,254,233,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,186,254,255, + 254,254,225,74,34,220,254,254,255,255,255,255,255,255,255,254,254,248,95, + 44,205,254,254,255,254,213,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,35,211,254, + 254,254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,122,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,255,255,255,255,228, + 11,0,0,0,0,0,0,18,240,254,254,186,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 17,187,197,197,197,197,197,195,46,0,0,0,0,0,0,0,142,197,197,197,197,197, + 197,107,0,0,0,0,0,0,0,81,196,197,197,197,197,197,197,197,197,197,197,197, + 197,197,197,197,197,197,197,197,197,194,37,0,0,0,0,0,0,1,197,254,254,219, + 44,0,0,38,247,254,253,165,11,0,0,0,0,0,0,0,1,182,254,254,182,1,0,0,27,243, + 254,254,96,0,0,0,0,0,0,0,0,22,192,254,254,196,1,0,0,66,235,254,254,111, + 0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,39,246, + 254,255,255,255,255,255,255,255,255,255,255,254,234,64,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,17,187,254,255,254,254,204,34,0,0,47,222,254,254, + 255,255,255,255,255,255,254,248,113,2,0,18,175,254,254,255,254,214,36,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,36,211,254,254,254,254,254,254,254,254,254,254, + 254,80,0,0,0,0,0,0,0,114,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,255,255,255,254,227,11,0,0,0,0,0,0,18,240,255,254,254, + 185,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60, + 0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,251,47,0,0,0,0,0,0,1,197,254,254,254,220,43,0,38,247,254,254,253,166, + 11,0,0,0,0,0,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0,0,0,0,0,0,0, + 22,193,254,254,254,196,1,0,67,234,254,255,254,111,0,0,0,0,0,0,0,132,254, + 255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,3,196,254,255,255,255,255,255, + 255,255,255,255,255,236,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,29, + 211,254,255,254,204,30,0,0,0,0,47,221,254,255,255,255,255,255,254,243,112, + 2,0,0,0,14,175,253,255,254,231,54,0,0,0,0,0,0,1,5,5,5,5,5,5,5,5,5,5,5,5, + 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,5,5,5,1, + 0,0,0,0,0,0,0,0,0,0,0,5,5,5,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,210,254,255, + 254,254,254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,74,253,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,255,255,255,254, + 194,2,0,0,0,0,0,0,18,240,255,255,255,254,184,19,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,23,242,255,255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254, + 254,254,138,0,0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254, + 254,254,219,44,38,247,254,254,254,253,166,11,0,0,0,0,0,1,182,254,254,182, + 1,0,0,27,243,254,254,96,0,0,0,0,0,0,23,192,254,254,254,254,196,1,68,233, + 254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0, + 0,0,0,0,0,0,0,0,116,254,255,255,255,255,255,255,255,255,255,255,231,53, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,36,210,254,225,33,0,0,0,0,0, + 0,48,221,254,254,255,255,254,237,78,1,0,0,0,0,0,15,198,254,231,61,0,0,0, + 0,0,0,0,73,213,214,214,214,214,214,214,214,213,214,214,214,214,214,214, + 214,214,214,214,214,214,214,214,213,214,214,214,214,214,214,214,214,214, + 156,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,8,145,213,214,213,133,5,0,0,0,0,0,0,0,0,0,88,211,213, + 214,181,24,0,0,0,0,3,11,11,11,11,11,11,11,40,210,254,255,255,254,254,254, + 254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,26,235,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,255,255,255,254,131,0,0,0,0, + 0,0,0,18,240,255,255,255,254,254,184,19,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23, + 242,255,255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254, + 138,0,0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254, + 254,218,83,247,254,254,254,254,253,165,11,0,0,0,0,1,182,254,254,182,1,0, + 0,27,243,254,254,96,0,0,0,0,0,23,191,254,254,254,254,254,197,69,233,254, + 254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0, + 0,0,0,0,0,0,0,0,40,245,255,255,255,255,255,255,255,255,255,255,254,226, + 52,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,205,79,0,0,0,0,0,0,0, + 0,47,222,254,254,254,238,76,0,0,0,0,0,0,0,0,45,212,62,0,0,0,0,0,0,0,0,87, + 253,185,168,168,168,168,168,171,243,249,175,168,204,254,255,254,220,168, + 170,239,243,171,168,220,254,195,168,168,168,168,168,169,236,185,1,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,11,11,11,5, + 0,0,0,0,0,0,0,0,0,0,7,11,11,11,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,11,11,11,11,4,0,0,0,0,0,0,0,0,0,0,8,11,11,11,8,0,0,0,0,0, + 0,0,0,0,0,4,11,11,11,11,1,0,0,0,0,0,0,0,0,0,1,11,11,11,11,4,0,0,0,0,0,0, + 0,0,0,0,8,11,11,11,7,0,0,0,0,0,0,0,0,0,0,5,11,11,11,10,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,151,252,254,254,254,251,136,2,0, + 0,0,0,0,0,0,88,242,254,224,246,254,194,22,0,0,0,64,228,229,229,229,229, + 229,229,239,254,254,254,254,254,254,254,254,254,254,254,254,254,254,80, + 0,0,0,0,0,0,0,1,163,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,255,255,255,244,45,0,0,0,0,0,0,0,18,240,255,255,255,255,254, + 254,185,18,0,0,0,0,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60, + 0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,237,253,254,254,254, + 254,254,253,165,11,0,0,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0,0, + 0,0,22,191,254,254,254,254,254,254,233,235,254,254,254,255,255,254,111, + 0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,4,196, + 255,255,255,255,255,255,255,255,255,255,255,254,225,52,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,21,4,0,0,0,0,0,0,0,0,0,48,222,254,239,77,0, + 0,0,0,0,0,0,0,0,1,24,0,0,0,0,0,0,0,0,0,87,251,50,0,0,0,0,0,10,223,251,67, + 0,53,246,255,253,99,0,31,241,222,9,0,153,253,80,0,0,0,0,0,2,200,185,1,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,87,224,229, + 229,229,179,18,0,0,0,0,0,0,0,0,37,203,229,229,229,214,55,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,98,226,229,229,229,170,14,0,0,0,0,0,0, + 0,0,45,208,229,229,229,209,47,0,0,0,0,0,0,0,0,13,167,229,229,229,227,101, + 1,0,0,0,0,0,0,0,1,109,227,229,229,229,161,11,0,0,0,0,0,0,0,0,52,213,229, + 229,229,205,39,0,0,0,0,0,0,0,0,16,177,229,229,229,225,90,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65,251,254,255,255,255,255,238,15, + 0,0,0,0,0,0,11,225,254,207,34,104,247,253,80,0,0,0,71,253,255,255,255,255, + 254,254,254,255,255,255,255,254,254,254,254,254,254,254,254,254,254,80, + 0,0,0,0,0,0,0,0,49,243,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,255,255,254,161,1,0,0,0,0,0,0,0,18,240,255,255,255,255,254, + 254,254,185,18,0,0,0,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60, + 0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,253,165,11,0,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0, + 0,0,22,192,254,254,254,254,254,254,254,254,254,254,254,254,255,255,254, + 111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0, + 0,116,253,254,255,255,255,254,235,219,254,255,255,255,254,226,53,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,21,21,21,21,21,21,21,21,21, + 21,21,21,21,21,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,95,114,2,0,0,0,0,0, + 0,0,0,0,47,207,76,0,0,0,0,0,0,0,0,0,0,80,130,0,0,0,0,0,0,0,0,0,87,251,50, + 0,0,0,0,0,9,223,254,161,0,5,193,254,235,28,0,116,254,222,9,0,153,254,79, + 0,0,0,0,0,1,200,185,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,88,242,254,254,255,255,254,185,18,0,0,0,0,0,0,37,214,254,254, + 255,255,254,228,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,98,246,254, + 254,255,255,254,175,14,0,0,0,0,0,0,44,220,254,254,255,255,254,222,47,0, + 0,0,0,0,0,13,172,254,254,255,255,254,246,101,1,0,0,0,0,0,1,109,248,254, + 254,255,255,253,165,11,0,0,0,0,0,0,53,226,254,254,255,255,254,216,39,0, + 0,0,0,0,0,17,182,254,254,255,255,254,243,91,1,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,69,253,254,255,255,255,255,239,16,0,0,0,0,0,0,12, + 230,212,32,0,1,113,253,81,0,0,0,71,253,254,255,255,255,254,255,255,255, + 255,254,255,254,254,254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,0, + 2,141,253,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 229,36,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255,255,254,254,184,19,0, + 0,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60,0,0,0,0,0,0,1,183, + 254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,251,47,0,0,0,0, + 0,0,1,197,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,253, + 165,11,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0,0,22,192,254,254,254, + 254,254,254,254,254,254,254,254,254,254,255,255,254,111,0,0,0,0,0,0,0,132, + 254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,41,244,254,255,255,254, + 233,66,37,212,254,255,255,255,254,226,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,108,240,241,241,241,241,241,241,241,241,241,241,241,241, + 241,224,30,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,199,249,115,2,0,0,0,0,0,0,0, + 29,99,119,113,55,4,0,0,0,0,0,0,0,80,240,230,22,0,0,0,0,0,0,0,0,87,251,50, + 0,0,0,0,0,9,223,255,228,18,0,97,253,165,1,4,196,254,222,9,0,153,254,79, + 0,0,0,0,0,1,200,185,1,0,0,0,0,0,0,0,0,0,0,0,0,0,8,53,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,6,176,254,255,255,255,255,254,242,110,18,0,0,0,0,0,106,250,255, + 255,255,255,254,252,154,44,0,0,0,0,10,51,0,0,0,0,0,0,0,3,56,2,0,0,0,1,64, + 193,254,255,255,255,255,254,237,57,0,0,0,0,0,39,143,251,255,255,255,255, + 254,251,123,0,0,0,0,0,0,54,236,254,255,255,255,254,254,196,66,1,0,0,0,2, + 69,202,254,255,255,255,255,254,234,98,11,0,0,0,0,43,151,252,255,255,255, + 255,254,251,137,35,0,0,0,0,17,108,241,254,255,255,255,254,254,187,61,1, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,253,255,255,255,255,255, + 239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,71,253,254,255,255, + 255,254,255,255,254,255,254,255,254,254,254,254,254,254,254,254,254,254, + 80,0,0,0,0,0,0,0,0,0,13,192,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,244,84,0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255,255, + 255,254,254,184,19,0,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60, + 0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,253,165,11,1,182,254,254,182,1,0,0,27,243,254,254,96, + 0,23,191,254,254,254,254,254,254,254,254,254,254,254,254,254,254,255,255, + 254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0, + 0,0,0,4,196,254,255,254,233,66,0,0,37,211,254,255,255,255,254,225,34,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,219,255,255,255,255,255,255, + 255,255,255,255,255,255,255,255,254,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,53, + 248,254,248,115,2,0,0,0,0,3,112,186,152,158,153,173,163,23,0,0,0,0,0,80, + 240,254,253,85,0,0,0,0,0,0,0,0,87,251,50,0,5,36,37,37,45,228,255,252,79, + 0,20,226,73,0,40,244,254,222,9,0,153,253,105,37,15,0,1,32,38,208,185,1, + 0,0,0,0,0,0,0,0,0,0,0,0,8,150,240,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,186, + 253,253,253,253,242,144,228,183,19,0,0,0,0,3,126,249,253,253,253,251,170, + 192,227,55,0,0,10,161,237,76,0,0,0,0,0,3,123,243,112,2,0,1,98,241,163,201, + 253,253,253,253,238,78,0,0,0,0,0,45,219,201,162,250,253,253,253,250,140, + 6,0,0,0,0,0,0,0,75,237,253,253,253,253,203,161,242,102,1,0,2,109,243,157, + 207,253,253,253,253,234,143,236,164,11,0,0,52,225,194,169,251,253,253,253, + 250,158,206,214,40,0,0,17,181,229,143,241,253,253,253,253,196,167,240,91, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,253,255,255,255,255,255, + 239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,71,253,254,255,255, + 255,254,254,255,254,255,254,254,254,254,254,254,254,254,254,254,254,254, + 80,0,0,0,0,0,0,0,0,0,0,24,188,253,254,254,254,254,254,254,254,254,254,254, + 254,254,237,97,1,0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255,255,255,254, + 254,254,184,18,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60,0,0, + 0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,253,164,12,182,254,254,182,1,0,0,27,243,254,254,96, + 22,191,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,255, + 255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0, + 0,0,0,0,0,0,116,254,254,233,66,0,0,0,0,37,212,254,255,254,253,161,9,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109,253,255,255,255,255,255,255,255, + 255,255,255,255,255,255,255,255,234,28,0,0,0,0,0,0,0,0,0,0,0,0,0,0,109, + 254,254,254,248,115,2,0,0,0,113,161,193,249,253,252,224,149,171,14,0,0, + 0,80,239,254,255,254,154,0,0,0,0,0,0,0,0,87,251,50,0,38,240,247,247,247, + 253,255,254,165,1,0,115,12,0,121,254,255,222,9,0,153,254,249,247,102,0, + 8,214,247,253,185,1,0,0,0,0,0,0,0,0,0,0,0,2,145,252,254,241,58,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,17,67,68,68,68,93,228,254,254,171,2,0,0,0,0,3,59,68, + 68,68,73,190,254,254,226,27,3,156,253,254,237,48,0,0,0,0,115,250,254,247, + 86,0,87,245,254,251,135,67,68,68,68,46,0,0,0,0,0,34,219,254,254,192,67, + 68,68,68,62,6,0,0,0,0,0,0,0,0,0,45,68,68,68,68,149,251,254,245,74,0,99, + 247,254,250,126,67,68,68,68,105,237,254,253,146,0,41,225,254,254,182,66, + 68,68,68,78,205,254,254,211,15,7,179,254,254,229,78,68,68,68,68,158,252, + 254,243,63,0,0,0,0,0,0,0,0,0,0,1,3,0,0,0,0,0,0,0,0,0,0,69,253,254,254,254, + 254,254,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,71,253,254, + 255,255,255,254,255,255,255,255,255,255,254,254,254,254,254,254,254,254, + 254,254,80,0,0,0,0,0,0,0,0,0,0,0,11,133,239,254,254,254,254,254,254,254, + 254,254,252,200,55,0,0,0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255,255, + 255,255,255,254,254,185,17,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253, + 60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,253,165,193,254,254,182,1,0,0,27,243,254, + 254,118,191,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0, + 0,0,0,0,0,0,0,0,0,0,41,244,234,65,0,0,0,0,0,0,36,213,254,253,161,10,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,219,255,255,255,255,255,255,255, + 255,255,255,255,255,255,255,255,255,254,135,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 159,254,255,255,254,248,115,2,0,31,186,194,254,255,255,254,254,238,162, + 105,0,0,80,239,254,255,255,255,201,3,0,0,0,0,0,0,0,87,251,50,0,16,102,116, + 246,254,255,255,255,236,26,0,10,0,7,208,254,255,222,9,0,153,255,255,254, + 106,0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,5,213,254,255,254,88,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,91,254,255,255,211,4,0,0,0,0,0,0,0, + 0,0,23,241,254,255,250,46,9,223,254,255,253,75,0,0,0,1,184,254,255,254, + 122,0,152,254,255,255,154,0,0,0,0,0,0,0,0,0,0,73,253,254,255,224,10,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,197,254,255,254,108,0,166,254,255,254, + 140,0,0,0,0,118,254,255,255,187,1,87,254,255,255,214,6,0,0,0,43,249,254, + 255,243,26,20,240,254,255,252,49,0,0,0,3,208,254,255,254,95,0,0,0,0,0,0, + 0,0,0,68,189,198,107,5,0,0,0,0,0,0,0,0,69,252,144,104,105,104,183,239,16, + 0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,71,253,254,255,255,255,254, + 255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,80,0,0, + 0,0,0,0,0,0,0,0,0,0,0,37,147,225,249,254,254,253,252,242,193,87,8,0,0,0, + 0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255,255,255,255,255,255,254,254, + 184,18,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60,0,0,0,0,0,0,1,183, + 254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,251,47,0,0,0,0, + 0,0,1,197,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,252,254,254,182,1,0,0,27,243,254,254,242,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,255,255,254,111,0,0, + 0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,4,176, + 65,0,0,0,0,0,0,0,0,36,211,160,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,109,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255, + 255,255,233,29,0,0,0,0,0,0,0,0,0,0,0,0,0,170,255,255,255,255,255,249,115, + 2,103,151,250,255,255,255,255,255,254,169,172,3,80,240,254,255,255,255, + 255,211,5,0,0,0,0,0,0,0,87,251,50,0,0,0,19,240,255,255,255,255,253,94,0, + 0,0,53,248,255,255,222,9,0,153,255,255,254,106,0,8,220,255,255,185,1,0, + 0,0,0,0,0,0,0,0,0,0,5,213,255,255,254,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,91,254,255,255,211,4,0,0,0,0,0,0,0,0,0,23,242,255,255,250,46,9, + 223,255,255,253,75,0,0,0,1,184,255,255,254,122,0,153,255,255,255,154,0, + 0,0,0,0,0,0,0,0,0,74,253,255,255,224,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,1,197,255,255,254,108,0,166,255,255,254,140,0,0,0,0,118,254,255,255, + 187,1,87,254,255,255,214,6,0,0,0,43,249,255,255,243,26,20,240,255,255,252, + 49,0,0,0,3,209,255,255,254,95,0,0,0,0,0,0,0,0,34,233,254,254,251,82,0,0, + 0,0,0,0,0,0,69,252,67,0,0,0,133,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55, + 252,81,0,0,0,71,253,254,255,255,254,254,254,255,254,255,254,254,254,254, + 254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,52, + 83,84,84,73,32,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255, + 255,255,255,255,255,254,254,254,156,2,0,0,0,0,0,0,23,242,255,255,255,255, + 255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0, + 104,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,182,1,0,0,27, + 243,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190, + 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,26,10,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,218,254,255,255,255,255,255,255,255, + 255,255,255,255,255,255,255,255,255,255,254,135,0,0,0,0,0,0,0,0,0,0,0,0, + 1,178,255,255,255,255,255,255,249,112,123,158,254,255,255,255,255,255,254, + 187,177,81,240,254,255,255,255,255,255,211,5,0,0,0,0,0,0,0,87,251,50,0, + 0,0,19,240,255,255,255,255,254,161,0,0,0,116,254,255,255,222,9,0,153,255, + 255,254,106,0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,5,213,255,255,254, + 88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,91,254,255,255,211,4,0,0,0,0,0, + 0,0,0,0,23,242,255,255,250,46,9,223,255,255,253,75,0,0,0,1,184,255,255, + 254,122,0,153,255,255,255,154,0,0,0,0,0,0,0,0,0,0,74,253,255,255,224,10, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,197,255,255,254,108,0,166,255,255, + 254,140,0,0,0,0,118,254,255,255,187,1,87,254,255,255,214,6,0,0,0,43,249, + 255,255,243,26,20,240,255,255,252,49,0,0,0,3,209,255,255,254,95,0,0,0,0, + 0,0,0,0,72,253,255,254,254,136,0,0,0,0,0,0,0,0,69,252,121,73,73,73,168, + 239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,71,253,255,255,255, + 255,254,255,255,255,255,255,255,254,254,254,254,254,254,254,254,254,254, + 80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,18,240,255,255,255,255,255,255,255,255,255,255,255,254,218,43,0,0, + 0,0,0,0,0,23,242,255,255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254, + 254,254,254,138,0,0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,182,1,0,0,27,243,254,254,252,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,255,255,254,111,0,0,0,0,0,0,0,132, + 254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,108,251,253,253,253, + 253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,253,230,29, + 0,0,0,0,0,0,0,0,0,0,0,0,170,255,255,255,255,255,254,248,112,120,153,253, + 255,255,255,255,255,254,181,176,81,240,254,255,255,255,255,255,211,5,0, + 0,0,0,0,0,0,87,251,50,0,0,0,19,240,255,255,255,255,254,113,0,0,0,69,251, + 255,255,222,9,0,153,255,255,254,106,0,8,220,255,255,185,1,0,0,0,0,0,0,0, + 0,0,0,0,5,211,254,255,254,88,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,89,254, + 255,255,211,4,0,0,0,0,0,0,1,1,1,23,240,255,255,250,45,9,221,254,255,253, + 75,1,1,1,2,181,254,255,254,122,0,150,254,255,254,154,1,1,1,1,0,0,0,0,0, + 0,71,253,255,255,224,10,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,194,254,255, + 254,108,0,163,254,255,254,140,1,1,1,1,116,254,255,254,187,1,84,253,255, + 255,214,7,1,1,1,42,248,255,255,242,26,19,238,255,255,252,49,0,0,0,3,206, + 254,255,254,94,0,0,0,0,0,0,0,0,47,244,254,254,253,104,0,0,0,0,0,0,0,0,69, + 253,252,252,252,252,253,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0, + 0,0,71,253,254,255,255,255,254,255,255,255,255,255,255,254,254,254,254, + 254,254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,3,81,94,94,94,94,94, + 94,94,94,94,93,19,0,0,0,0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255,255, + 255,255,255,255,254,219,43,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253, + 60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,205,208,254,254,182,1,0,0,27,243,254, + 254,145,224,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,11,134,158,158,158,158,158,158,158,158,158,158,158,158, + 158,158,158,158,158,158,158,158,158,66,0,0,0,0,0,0,0,0,0,0,0,0,167,254, + 255,255,255,254,248,115,2,62,170,229,254,254,255,255,255,251,159,145,1, + 80,240,254,255,255,255,255,208,4,0,0,0,0,0,0,0,87,251,50,0,14,91,106,245, + 254,255,255,255,243,39,0,2,0,14,222,255,255,222,9,0,153,255,255,254,106, + 0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,0,90,243,254,214,32,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,54,184,190,190,190,155,195,254,250,124,1,0,0,0,0,17, + 161,190,190,190,176,157,250,254,187,14,1,101,246,254,210,142,190,190,190, + 188,140,235,254,229,52,0,46,222,254,240,136,187,190,190,190,127,4,0,0,0, + 0,14,174,254,252,162,169,190,190,190,167,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 75,239,254,224,43,0,54,227,254,236,135,187,190,190,190,148,208,254,247, + 100,0,17,184,254,251,156,173,190,190,190,169,168,253,253,167,7,2,123,250, + 254,190,15,0,0,0,0,85,242,254,218,35,0,0,0,0,0,0,0,0,1,115,233,237,163, + 14,0,0,0,0,0,0,0,0,69,252,114,63,63,63,164,239,16,0,0,0,0,0,0,12,230,146, + 0,0,0,55,252,81,0,0,0,71,253,254,255,255,255,254,255,255,254,255,254,255, + 254,254,254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,8,217, + 250,250,250,250,250,250,250,250,250,248,51,0,0,0,0,0,0,0,0,0,0,0,0,18,240, + 255,255,255,255,255,255,255,255,255,254,218,43,0,0,0,0,0,0,0,0,0,23,242, + 255,255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138, + 0,0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,204,31,182,254,254, + 182,1,0,0,27,243,254,254,96,49,223,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10, + 1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,245,252,250,250,250,250,250,250, + 250,250,250,250,250,250,250,250,250,250,250,250,250,254,127,0,0,0,0,0,0, + 0,0,0,0,0,0,121,254,255,255,254,248,115,2,0,5,170,149,242,254,254,254,252, + 181,184,44,0,0,80,239,254,254,255,254,166,0,0,0,0,0,0,0,0,87,251,50,0,38, + 243,250,250,250,254,254,254,187,4,0,82,6,0,144,254,254,222,9,0,153,255, + 255,254,106,0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,0,0,90,204,37,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,55,227,254,254,255,255,253,168,191,126,3,0,0, + 0,0,17,184,254,254,255,255,254,207,157,184,19,0,0,1,101,203,155,250,254, + 254,255,254,238,141,211,57,0,0,0,47,207,142,233,254,254,255,255,252,137, + 5,0,0,0,0,14,173,164,199,254,254,255,255,254,195,24,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,76,208,49,0,0,0,55,210,141,237,254,254,255,254,250,157,202,104, + 1,0,0,17,182,159,205,254,254,255,255,254,194,168,166,12,0,0,3,123,186,21, + 0,0,0,0,0,0,86,205,41,0,0,0,0,0,0,0,0,0,0,0,15,16,1,0,0,0,0,0,0,0,0,0,69, + 252,67,0,0,0,133,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,71, + 253,254,255,254,254,254,254,254,254,255,254,254,254,254,254,254,254,254, + 254,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,1,38,44,44,44,44,44,44,44,44, + 44,44,9,0,0,0,0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255,255,255,255, + 254,218,44,0,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60,0,0,0, + 0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,251, + 47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,204,30,1,182,254,254,182,1,0,0,27,243,254,254,96,0,49,223, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,255,255,254,111, + 0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31, + 245,137,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,62,243,127, + 0,0,0,0,0,0,0,0,0,0,0,0,65,251,254,254,248,115,2,0,0,0,27,177,159,174,192, + 185,159,183,80,0,0,0,0,80,239,254,254,254,99,0,0,0,0,0,0,0,0,87,251,50, + 0,6,43,44,44,52,229,254,253,98,0,11,209,53,0,56,249,254,222,9,0,153,255, + 255,254,106,0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,0,0,3,37,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,31,192,254,255,255,255,255,254,248,85,3,0,0,0,0,0, + 118,253,255,255,255,255,254,254,159,31,0,0,0,0,1,63,241,254,255,255,255, + 254,254,215,54,0,0,0,0,0,24,201,254,255,255,255,255,254,245,85,5,0,0,0, + 0,26,146,253,255,255,255,255,254,253,144,18,0,0,0,0,0,0,0,0,0,0,0,0,0,1, + 38,0,0,0,0,0,53,212,254,255,255,255,255,254,242,89,5,0,0,0,0,11,148,254, + 255,255,255,255,254,253,139,24,0,0,0,0,9,31,0,0,0,0,0,0,0,2,37,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,252,67,0,0,0,133,239,16,0,0, + 0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,71,253,254,255,255,255,254,255, + 255,255,255,255,255,254,254,254,254,254,254,254,254,254,254,80,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,240, + 255,255,255,255,255,255,255,254,218,44,0,0,0,0,0,0,0,0,0,0,0,23,242,255, + 255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0, + 0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254, + 254,254,254,254,254,254,254,254,254,254,254,204,30,0,1,182,254,254,182, + 1,0,0,27,243,254,254,96,0,0,49,223,254,254,254,254,254,254,254,254,254, + 254,254,254,254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196, + 190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,31,245,112,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,21,241,127,0,0,0,0,0,0,0,0,0,0,0,0,14,216,254,248,115,2,0,0,0,0,0, + 18,115,175,181,180,148,47,0,0,0,0,0,0,80,239,254,239,36,0,0,0,0,0,0,0,0, + 87,251,50,0,0,0,0,0,9,223,255,238,28,0,75,252,146,0,8,212,254,222,9,0,153, + 255,255,254,106,0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,0,2,111,220, + 52,0,0,0,0,0,0,0,0,0,0,0,0,54,220,151,217,254,254,254,254,250,127,3,0,0, + 0,0,0,0,11,165,253,254,254,254,254,194,168,201,29,0,0,0,0,1,102,245,254, + 254,254,254,230,143,225,75,0,0,0,0,0,47,221,254,254,254,254,248,153,210, + 137,5,0,0,23,191,177,186,254,254,254,254,254,188,175,194,24,0,0,0,0,0,0, + 0,0,0,0,0,1,96,223,66,0,0,0,72,224,144,228,254,254,254,254,246,149,215, + 126,3,0,0,0,0,19,184,254,254,254,254,253,181,181,185,20,0,0,6,144,203,32, + 0,0,0,0,0,2,106,221,57,0,0,0,0,0,0,0,0,0,0,2,34,41,5,0,0,0,0,0,0,0,0,0, + 69,252,67,0,0,0,133,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0, + 71,253,254,255,255,255,254,255,255,255,255,255,255,254,254,254,254,254, + 254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,4,118,137,137,137,137,137, + 137,137,137,137,135,28,0,0,0,0,0,0,0,0,0,0,0,0,18,240,255,255,255,255,255, + 255,254,219,43,0,0,0,0,0,0,0,0,0,0,0,0,23,242,255,255,255,255,255,253,60, + 0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0,0,0,0,0,104,254,254, + 254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,204,31,0,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0, + 0,0,50,224,254,254,254,254,254,254,254,254,254,254,254,254,255,255,254, + 111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,31,245,112,0,44,136,137,137,137,137,137,137,137,137,137,137,137,137,137, + 120,6,20,241,127,0,0,0,0,0,0,0,0,0,0,0,0,0,126,248,115,2,0,0,0,0,0,0,0, + 0,5,43,9,0,0,0,0,0,0,0,0,0,80,240,169,2,0,0,0,0,0,0,0,0,87,251,50,0,0,0, + 0,0,9,223,254,179,2,2,172,254,222,17,0,135,254,222,9,0,153,255,255,254, + 106,0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,1,109,247,254,225,41,0, + 0,0,0,0,0,0,0,0,0,51,226,254,247,138,115,116,116,116,90,3,0,0,0,0,0,0,0, + 0,11,105,116,116,116,116,167,252,254,202,18,0,0,0,0,1,78,116,116,116,116, + 134,241,254,237,64,0,0,0,0,0,43,116,116,116,116,118,214,254,251,129,0,20, + 191,254,253,172,111,116,116,116,116,174,253,254,193,14,0,0,0,0,0,0,0,0, + 0,0,93,244,254,233,54,0,69,236,254,242,127,116,116,116,116,120,219,254, + 250,117,0,0,0,0,0,19,110,116,116,116,116,181,254,254,184,10,4,143,252,254, + 205,20,0,0,0,0,104,246,254,228,45,0,0,0,0,0,0,0,0,3,136,242,246,185,20, + 0,0,0,0,0,0,0,0,69,252,168,137,137,137,198,239,16,0,0,0,0,0,0,12,230,146, + 0,0,0,55,252,81,0,0,0,66,236,237,237,237,237,237,237,247,254,255,254,254, + 254,254,254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,8,206, + 237,237,237,237,237,237,237,237,237,235,49,0,0,0,0,0,0,0,0,0,0,0,0,18,240, + 255,255,255,255,255,254,219,43,0,0,0,0,0,0,0,0,0,0,0,0,0,23,242,255,255, + 255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0,0,0, + 0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254,254, + 251,254,254,254,254,254,254,254,205,31,0,0,0,1,182,254,254,182,1,0,0,27, + 243,254,254,96,0,0,0,0,50,224,254,254,254,254,254,254,245,249,254,254,254, + 255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,29,228,104,2,170,254,254,254,254,253,252,251,249,251,252, + 254,254,254,254,250,76,19,224,118,0,0,0,0,0,0,0,0,0,0,0,0,0,22,76,2,0,0, + 0,0,0,0,0,0,0,78,233,114,2,0,0,0,0,0,0,0,0,0,57,43,0,0,0,0,0,0,0,0,0,87, + 251,50,0,0,0,0,0,9,223,253,89,0,36,240,254,252,80,0,48,247,222,9,0,153, + 254,255,254,106,0,8,220,255,255,185,1,0,0,0,0,0,0,0,0,0,0,0,5,212,254,255, + 254,88,0,0,0,0,0,0,0,0,0,0,138,254,255,254,167,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,23,241,254,255,250,46,0,0,0,0,0,0,0,0,0,1,183,254,255,254, + 122,0,0,0,0,0,0,0,0,0,0,104,254,255,255,200,1,73,253,254,255,224,10,0,0, + 0,32,245,254,255,247,36,0,0,0,0,0,0,0,0,0,1,196,254,255,254,108,0,165,254, + 255,254,140,0,0,0,0,117,254,255,254,187,1,0,0,0,0,0,0,0,0,0,42,249,254, + 255,243,26,19,239,254,255,252,49,0,0,0,3,207,254,255,254,94,0,0,0,0,0,0, + 0,0,53,248,255,254,254,112,0,0,0,0,0,0,0,0,69,253,241,237,237,237,246,239, + 16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,4,14,14,14,14,14,14,14, + 72,235,254,254,254,254,254,254,254,254,254,254,254,254,254,80,0,0,0,0,0, + 0,0,0,0,0,0,0,0,12,14,14,14,14,14,14,14,14,14,14,2,0,0,0,0,0,0,0,0,0,0, + 0,0,18,240,255,255,255,255,254,218,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,242, + 255,255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138, + 0,0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,254, + 240,119,248,254,254,254,254,254,204,30,0,0,0,0,1,182,254,254,182,1,0,0, + 27,243,254,254,96,0,0,0,0,0,50,223,254,254,254,254,254,198,112,247,254, + 254,255,255,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,1,14,6,54,246,255,253,219,141,82,49,48,42,49,55,102,172, + 241,254,254,194,7,14,7,0,0,0,0,0,0,0,0,0,0,0,0,0,59,43,0,0,0,0,0,0,0,0, + 0,79,240,254,249,114,2,0,0,0,0,0,0,0,0,23,78,1,0,0,0,0,0,0,0,0,87,253,177, + 158,158,158,158,158,161,242,251,170,158,189,254,254,254,206,158,162,242, + 242,161,158,216,254,255,254,198,158,161,241,255,255,185,1,0,0,0,0,0,0,0, + 0,0,0,0,5,213,255,255,254,88,0,0,0,0,0,0,0,0,0,0,139,254,255,255,167,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,242,255,255,250,46,0,0,0,0,0,0,0, + 0,0,1,184,255,255,254,122,0,0,0,0,0,0,0,0,0,0,105,254,255,255,201,1,74, + 253,255,255,224,10,0,0,0,33,246,255,255,247,36,0,0,0,0,0,0,0,0,0,1,197, + 255,255,254,108,0,166,255,255,254,140,0,0,0,0,118,254,255,255,187,1,0,0, + 0,0,0,0,0,0,0,43,249,255,255,243,26,20,240,255,255,252,49,0,0,0,3,209,255, + 255,254,95,0,0,0,0,0,0,0,0,72,253,255,254,254,136,0,0,0,0,0,0,0,0,69,252, + 78,14,14,14,140,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,0,0, + 0,0,0,0,0,0,0,70,235,254,255,254,254,254,254,254,254,254,254,254,254,80, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,18,240,255,255,255,254,218,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,242,255, + 255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138,0, + 0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,254,240, + 81,38,247,254,254,254,254,205,30,0,0,0,0,0,1,182,254,254,182,1,0,0,27,243, + 254,254,96,0,0,0,0,0,0,50,223,254,254,254,254,196,4,111,247,254,255,255, + 254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,2,171,254,254,177,18,0,0,0,0,0,0,0,0,1,59,238,255,251,76,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,64,232,199,14,0,0,0,0,0,0,0,78,239,254,255,255, + 248,113,2,0,0,0,0,0,0,4,163,244,96,1,0,0,0,0,0,0,0,75,221,221,221,221,221, + 221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221,221, + 221,221,221,221,221,221,221,221,221,221,161,1,0,0,0,0,0,0,0,0,0,0,0,5,213, + 255,255,254,88,0,0,0,0,0,0,0,0,0,0,139,254,255,255,167,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,23,242,255,255,250,46,0,0,0,0,0,0,0,0,0,1,184,255, + 255,254,122,0,0,0,0,0,0,0,0,0,0,105,254,255,255,201,1,74,253,255,255,224, + 10,0,0,0,33,246,255,255,247,36,0,0,0,0,0,0,0,0,0,1,197,255,255,254,108, + 0,166,255,255,254,140,0,0,0,0,118,254,255,255,187,1,0,0,0,0,0,0,0,0,0,43, + 249,255,255,243,26,20,240,255,255,252,49,0,0,0,3,209,255,255,254,95,0,0, + 0,0,0,0,0,0,27,224,254,254,248,71,0,0,0,0,0,0,0,0,69,252,68,0,0,0,134,239, + 16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,0,0,0,0,0,0,0,0,0,0,70, + 235,254,254,254,254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0, + 0,0,5,155,179,179,179,179,179,179,179,179,179,177,36,0,0,0,0,0,0,0,0,0, + 0,0,0,18,240,255,255,254,219,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,242, + 255,255,255,255,255,253,60,0,0,0,0,0,0,1,183,254,254,254,254,254,254,138, + 0,0,0,0,0,0,0,104,254,254,254,254,254,254,254,254,254,254,254,254,254,254, + 254,254,254,254,254,254,254,251,47,0,0,0,0,0,0,1,197,254,254,254,241,81, + 0,38,247,254,254,254,204,31,0,0,0,0,0,0,1,182,254,254,182,1,0,0,27,243, + 254,254,96,0,0,0,0,0,0,0,50,224,254,254,254,196,1,2,111,248,254,255,254, + 111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,54,246,254,254,129,1,0,0,0,0,0,0,0,0,0,15,223,255,254,193,6,0,0,0, + 0,0,0,0,0,0,0,0,0,64,232,254,253,165,11,0,0,0,0,0,78,239,254,255,255,255, + 254,248,113,2,0,0,0,0,4,129,251,254,244,96,1,0,0,0,0,0,0,2,8,8,8,8,8,8, + 8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,6,0,0,0,0,0,0,0,0, + 0,0,0,0,5,213,255,255,254,88,0,0,0,0,0,0,0,0,0,0,139,254,255,255,167,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,23,241,255,255,250,46,0,0,0,0,0,0,0, + 0,0,1,183,254,255,254,122,0,0,0,0,0,0,0,0,0,0,104,254,255,255,201,1,73, + 253,255,255,224,10,0,0,0,33,245,255,255,247,36,0,0,0,0,0,0,0,0,0,1,197, + 255,255,254,108,0,166,254,255,254,140,0,0,0,0,118,254,255,255,187,1,0,0, + 0,0,0,0,0,0,0,43,249,255,255,243,26,20,240,255,255,252,49,0,0,0,3,208,255, + 255,254,95,0,0,0,0,0,0,0,0,0,51,162,167,84,2,0,0,0,0,0,0,0,0,69,253,199, + 179,179,179,218,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,70,236,254,254,254,254,254,254,254,254,254,254,80,0,0, + 0,0,0,0,0,0,0,0,0,0,6,179,206,206,206,206,206,206,206,206,206,204,42,0, + 0,0,0,0,0,0,0,0,0,0,0,18,240,255,254,220,43,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,18,196,206,206,206,206,206,204,48,0,0,0,0,0,0,0,148,206,206,206,206, + 206,206,112,0,0,0,0,0,0,0,84,206,206,206,206,206,206,206,206,206,206,206, + 206,206,206,206,206,206,206,206,206,206,203,38,0,0,0,0,0,0,1,197,254,254, + 241,82,0,0,38,247,254,254,205,31,0,0,0,0,0,0,0,1,182,254,254,182,1,0,0, + 27,243,254,254,96,0,0,0,0,0,0,0,0,50,224,254,254,196,1,0,2,111,248,254, + 254,111,0,0,0,0,0,0,0,132,254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,2,170,254,255,255,242,137,48,10,1,1,1,1,3,19,76,187,253,255,255, + 250,75,0,0,0,0,0,0,0,0,0,0,0,39,231,254,254,254,253,164,11,0,0,0,78,238, + 254,255,255,255,255,255,254,248,113,2,0,0,4,129,250,255,255,254,244,72, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,127,251,254,234,49,0,0,0,0,0,0,0,0, + 0,0,63,236,254,250,143,136,142,142,141,91,1,0,0,0,0,0,0,0,0,6,113,142,142, + 142,131,178,253,254,215,23,0,0,0,0,0,0,0,0,0,0,98,246,254,243,75,0,0,0, + 0,0,34,138,142,142,141,126,224,254,253,145,0,26,206,254,254,182,123,142, + 142,142,130,185,254,254,207,17,0,0,0,0,0,0,0,0,0,0,109,249,254,240,64,0, + 84,242,254,247,130,139,142,142,141,128,229,254,252,132,0,0,0,0,0,0,0,0, + 0,0,13,185,254,254,198,12,5,161,253,254,220,114,141,142,142,137,152,250, + 254,237,53,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,69,253,255,255,255, + 255,255,239,16,0,0,0,0,0,0,12,230,146,0,0,0,55,252,81,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,70,236,254,254,254,254,254,254,254,254,254,80,0,0,0,0,0,0,0, + 0,0,0,0,0,0,2,3,3,3,3,3,3,3,3,3,2,0,0,0,0,0,0,0,0,0,0,0,0,0,18,240,254, + 219,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,3,3,3,3,2,0,0,0,0,0,0, + 0,0,2,3,3,3,3,3,2,1,0,0,0,0,0,0,0,1,2,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3, + 3,3,3,2,0,0,0,0,0,0,0,1,197,254,240,82,0,0,0,38,247,254,205,30,0,0,0,0, + 0,0,0,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0,0,0,0,0,0,0,0,0,50, + 224,254,196,1,0,0,1,111,248,254,111,0,0,0,0,0,0,0,132,254,255,225,10,1, + 196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,54,245,255,255,255,254,254,247,225, + 200,199,199,199,204,237,252,254,255,255,255,254,192,6,0,0,0,0,0,0,0,0,0, + 0,7,151,252,254,255,254,253,188,37,0,75,239,254,255,255,255,255,255,255, + 255,254,248,113,2,22,160,251,254,255,255,254,185,17,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,4,130,231,66,0,0,0,0,0,0,0,0,0,0,0,0,68,232,158,207,254, + 254,254,254,248,108,1,0,0,0,0,0,0,6,147,252,254,254,254,254,183,179,215, + 40,0,0,0,0,0,0,0,0,0,0,0,1,102,236,92,1,0,0,0,0,35,211,254,254,254,254, + 245,146,222,155,8,0,0,31,206,188,174,253,254,254,254,253,176,186,208,33, + 0,0,0,0,0,0,0,0,0,0,0,2,113,234,81,0,0,0,88,235,148,220,254,254,254,254, + 242,144,227,144,6,0,0,0,0,0,0,0,0,0,0,0,18,186,200,28,0,0,10,162,219,148, + 247,254,254,254,254,209,156,232,71,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,69,253,255,255,255,255,255,239,16,0,0,0,0,0,0,12,230,146,0,0, + 0,55,252,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,235,254,254,254,254,254, + 254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,6,6,6,6,6,6,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,18,240,218,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,197,240,82,0,0,0,0,38, + 247,205,30,0,0,0,0,0,0,0,0,0,1,182,254,254,182,1,0,0,27,243,254,254,96, + 0,0,0,0,0,0,0,0,0,0,50,224,196,1,0,0,0,2,111,247,111,0,0,0,0,0,0,0,132, + 254,255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,117,193,193,193,193, + 193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,193,189,44, + 0,0,0,0,0,0,0,0,0,0,0,7,151,252,254,255,255,254,223,38,128,235,254,254, + 255,255,255,255,255,254,254,241,169,19,178,254,254,255,255,254,190,18,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,35,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 43,190,254,255,255,255,255,254,246,72,0,0,0,0,0,0,114,252,255,255,255,255, + 254,253,155,30,0,0,0,0,0,0,0,0,0,0,0,0,0,1,37,0,0,0,0,0,10,196,254,255, + 255,255,255,254,243,93,8,0,0,0,0,25,142,253,255,255,255,255,254,253,145, + 26,0,0,0,0,0,0,0,0,0,0,0,0,0,2,37,0,0,0,0,0,51,209,254,255,255,255,255, + 254,240,85,6,0,0,0,0,0,0,0,0,0,0,0,0,0,17,23,0,0,0,0,10,99,245,255,255, + 255,255,254,254,193,44,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 69,253,255,255,255,255,255,239,16,0,0,0,0,0,0,12,230,147,0,0,0,55,252,81, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71,235,254,254,254,254,254,254,254,80, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,60,205,216,216,216,215,147,7,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,18,204,45,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,183,82,0,0,0,0,0,38,198,31, + 0,0,0,0,0,0,0,0,0,0,1,182,254,254,182,1,0,0,27,243,254,254,96,0,0,0,0,0, + 0,0,0,0,0,0,50,167,1,0,0,0,0,2,112,104,0,0,0,0,0,0,0,132,254,255,225,10, + 1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,26,209,217,217,217,217,217,217,217, + 217,217,217,217,217,217,217,217,217,217,217,217,217,217,108,0,0,0,0,0,0, + 0,0,0,0,0,0,8,151,252,254,254,245,99,1,1,28,104,164,209,218,218,218,214, + 173,106,40,2,0,38,212,254,254,254,213,37,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,234,254,255,255,255,253, + 166,11,0,0,0,0,0,0,26,198,254,255,255,255,254,215,41,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,79,239,254,255,255,255,253,155,9,0,0,0,0,0,0, + 32,206,254,255,255,255,254,208,34,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,89,243,254,255,255,255,252,144,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,10,162,253,255,255,255,254,236,73,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,69,253,255,255,255,255,255,239,16,0,0,0,0,0,0,12, + 230,222,45,0,3,131,253,81,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71,236,254, + 254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,86,165,166,166,147, + 20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,35,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,41,0,0,0,0, + 0,0,15,27,0,0,0,0,0,0,0,0,0,0,0,0,119,166,166,118,0,0,0,17,158,166,165, + 62,0,0,0,0,0,0,0,0,0,0,0,0,20,0,0,0,0,0,0,2,17,0,0,0,0,0,0,0,132,254,255, + 225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,20,159,166,166,166,166,166, + 166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,166,82,0,0, + 0,0,0,0,0,0,0,0,0,0,0,8,151,252,245,99,1,0,0,0,0,0,6,7,7,7,7,1,0,0,0,0, + 0,38,213,254,213,39,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,67,164,166,166,166,137,11,0,0,0,0,0,0,0,0,26, + 153,166,166,166,160,41,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 75,165,166,166,166,130,9,0,0,0,0,0,0,0,0,32,156,166,166,166,157,34,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,84,165,166,166,166,123,7,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,135,166,166,166,165,70,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,61,250,255,255,255,255, + 255,237,15,0,0,0,0,0,0,10,221,254,219,49,124,250,253,79,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,70,237,254,254,254,254,254,80,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255,225, + 10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,147,99,1,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,38,179,38,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,131,251, + 254,254,254,249,116,1,0,0,0,0,0,0,0,69,237,254,236,250,254,178,15,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,70,236,254,254,254,254,80,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254, + 255,225,10,1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,105,144, + 145,144,96,2,0,0,0,0,0,0,0,0,0,64,144,145,145,129,14,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,71,235,254,254,254,80,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255,225,10, + 1,196,190,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72, + 236,254,253,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,132,254,255,225,10,12,209,141,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71,237,254,80,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255, + 224,21,163,155,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,71,236,80,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255,233,173,155,8,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,71,63,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,254,255, + 252,155,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,132,254,253,155,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,132,253,156,9,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 132,160,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, + 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,}; diff --git a/syna.h b/syna.h new file mode 100644 index 0000000..7ff64f9 --- /dev/null +++ b/syna.h @@ -0,0 +1,203 @@ +/* Synaesthesia - program to display sound graphically + Copyright (C) 1997 Paul Francis Harrison + + 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., + 675 Mass Ave, Cambridge, MA 02139, USA. + + The author may be contacted at: + phar6@student.monash.edu.au + or + 27 Bond St., Mt. Waverley, 3149, Melbourne, Australia +*/ + +#include "config.h" + +#include "polygon.h" + +/***************************************/ +/* For the incurably fiddle prone: */ + +/* log2 of sample size */ +#define LogSize 10 //was 9 + +/* Brightness */ +#define Brightness 150 + +/* Sample frequency*/ +#define Frequency 22050 + +#define DefaultWidth 200 +#define DefaultHeight 200 + +/***************************************/ + +#define NumSamples (1< +#else +#include +#endif + +#if BYTE_ORDER == BIG_ENDIAN +#define BIGENDIAN +#else +#define LITTLEENDIAN +#endif + +void error(char *str,bool syscall=false); +void inline attempt(int x,char *y,bool syscall=false) { if (x == -1) error(y,syscall); } +void warning(char *str,bool syscall=false); +void inline attemptNoDie(int x,char *y,bool syscall=false) { if (x == -1) warning(y,syscall); } + +/* *wrap */ +struct BaseScreen { + virtual bool init(int xHint, int yHint, int widthHint, int heightHint, bool fullscreen) = 0; + virtual void setPalette(unsigned char *palette) = 0; + virtual void end() = 0; + virtual void inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit) = 0; + virtual void show() = 0; + virtual void toggleFullScreen() { } +}; + +struct SvgaScreen : public BaseScreen { + bool init(int xHint, int yHint, int widthHint, int heightHint, bool fullscreen); + void setPalette(unsigned char *palette); + void end(); + void inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit); + void show(); +}; + +struct SdlScreen : public BaseScreen { + bool init(int xHint, int yHint, int widthHint, int heightHint, bool fullscreen); + void setPalette(unsigned char *palette); + void end(); + void inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit); + void show(); + void toggleFullScreen(); +}; + +struct XScreen : public BaseScreen { + bool init(int xHint, int yHint, int widthHint, int heightHint, bool fullscreen); + void setPalette(unsigned char *palette); + void end(); + void inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit); + void show(); +}; + +/* core */ +extern BaseScreen *screen; +extern sampleType *data; +extern Bitmap outputBmp, lastOutputBmp, lastLastOutputBmp; +#define output ((unsigned char*)outputBmp.data) +#define lastOutput ((unsigned char*)lastOutputBmp.data) +#define lastLastOutput ((unsigned char*)lastLastOutputBmp.data) + +struct Combiner { + static unsigned short combine(unsigned short a,unsigned short b) { + //Not that i want to give the compiler a hint or anything... + unsigned char ah = a>>8, al = a&255, bh = b>>8, bl = b&255; + if (ah < 64) ah *= 4; else ah = 255; + if (al < 64) al *= 4; else al = 255; + if (bh > ah) ah = bh; + if (bl > al) al = bl; + return ah*256+al; + } +}; + +extern PolygonEngine polygonEngine; + +extern int outWidth, outHeight; + +void allocOutput(int w,int h); + +void coreInit(); +void setStarSize(double size); +int coreGo(); +void fade(); + +/* ui */ +void interfaceInit(); +void interfaceSyncToState(); +void interfaceEnd(); +bool interfaceGo(); + +enum SymbolID { + Speaker, Bulb, + Play, Pause, Stop, SkipFwd, SkipBack, + Handle, Pointer, Open, NoCD, Exit, + Zero, One, Two, Three, Four, + Five, Six, Seven, Eight, Nine, + Slider, Selector, Plug, Loop, Box, Bar, + Flame, Wave, Stars, Star, Diamond, Size, FgColor, BgColor, + Save, Reset, TrackSelect, + NotASymbol +}; + +/* State information */ + +extern SymbolID state; +extern int track, frames; +extern double trackProgress; +extern char **playList; +extern int playListLength, playListPosition; +extern SymbolID fadeMode; +extern bool pointsAreDiamonds; +extern double brightnessTwiddler; +extern double starSize; +extern double fgRedSlider, fgGreenSlider, bgRedSlider, bgGreenSlider; + +extern double volume; + +void setStateToDefaults(); +void saveConfig(); + +void putString(char *string,int x,int y,int red,int blue); + +/* sound */ +enum SoundSource { SourceLine, SourceCD, SourcePipe, SourceESD }; + +void cdOpen(char *cdromName); +void cdClose(void); +void cdGetStatus(int &track, int &frames, SymbolID &state); +void cdPlay(int trackFrame, int endFrame=-1); +void cdStop(void); +void cdPause(void); +void cdResume(void); +void cdEject(void); +void cdCloseTray(void); +int cdGetTrackCount(void); +int cdGetTrackFrame(int track); +void openSound(SoundSource sound, int downFactor, char *dspName, char *mixerName); +void closeSound(); +void setupMixer(double &loudness); +void setVolume(double loudness); +int getNextFragment(void); + diff --git a/ui.cc b/ui.cc new file mode 100644 index 0000000..aeefc94 --- /dev/null +++ b/ui.cc @@ -0,0 +1,644 @@ +#include "font.h" +#include "icons.h" +#include "syna.h" +#include +#include +#include + +void putChar(unsigned char character,int x,int y,int red,int blue) { + unsigned short *ptr = ((unsigned short *)output) + x + y*outWidth; + unsigned short put = (blue<<8)+red; + int i,j; + for(i=0;i<8;i++,ptr += outWidth-8) + for(j=0;j<8;j++,ptr++) + if (font[character*8+i] & (128>>j)) + *ptr = put; +} + +void putString(char *string,int x,int y,int red,int blue) { + if (x < 0 || y < 0 || y >= outHeight-8) + return; + for(;*string && x <= outWidth-8;string++,x+=8) + putChar((unsigned char)(*string),x,y,red,blue); +} + +struct UIObject { + UIObject *next; + + int visibleMask, activeMask; + double x,y,width,height; + bool active; + + virtual int go(bool mouseDown,bool mouseClick,bool mouseOver, + double x, double y, double scale, char &hotKey, int &action) + = 0; + + virtual void handleKey(char key, int &action) = 0; +}; + +struct Button : public UIObject { + int icon; + char hotKey; + + bool passive, bright; + + Button(int _am,int _vm,double _x,double _y, + double _size,int _icon,char _key = 0, + bool _passive = false, bool _bright = false) { + activeMask = _am; visibleMask = _vm; + x = _x; y = _y; width = height = _size; + icon = _icon; hotKey = _key; passive = _passive; bright = _bright; + } + + int go(bool mouseDown,bool mouseClick,bool mouseOver, + double _x, double _y, double scale, char &_hotKey, int &action) { + polygonEngine.icon( + Icons[icon], + (bright ? 0x0404 : 0x0200), + x*scale,y*scale,width*scale,height*scale); + + if (mouseOver && !passive) + polygonEngine.icon( + Icons[icon], + 0x0004, + (x-IconWidths[icon]*width/2)*scale, + (y-height/2)*scale,width*scale*2,height*scale*2); + + if (mouseOver && mouseClick && !passive) + action = icon; + + if (mouseOver && !passive && hotKey) + _hotKey = hotKey; + + return 0; + } + + void handleKey(char key, int &action) { + if (key == hotKey && !passive) + action = icon; + } +}; + +struct PopperUpper : public UIObject { + int maskAdd; + + PopperUpper(int _am,int _vm,double _x,double _y, + double _width,double _height, int _maskAdd) { + activeMask = _am; visibleMask = _vm; + x = _x; y = _y; width = _width; height = _height; + maskAdd = _maskAdd; + } + + int go(bool mouseDown,bool mouseClick,bool mouseOver, + double _x, double _y, double scale, char &_hotKey, int &action) { + polygonEngine.icon( + Icons[Box], + 0x0200, + x*scale,y*scale,width*scale,height*scale); + + return mouseOver ? maskAdd : 0; + } + + void handleKey(char key, int &action) { } +}; + +#define BarWidth 0.1 +struct SliderBar : public UIObject { + double *value; + char leftKey, rightKey; + + typedef void (*Callback)(double v); + Callback callback; + + SliderBar(int _am,int _vm,double _x,double _y, + double _width,double _height, double *_value, + Callback _callback, char _leftKey, char _rightKey) { + activeMask = _am; visibleMask = _vm; + x = _x; y = _y; width = _width; height = _height; + value = _value; callback = _callback; + leftKey = _leftKey; rightKey = _rightKey; + } + + int go(bool mouseDown,bool mouseClick,bool mouseOver, + double _x, double _y, double scale, char &_hotKey, int &action) { + polygonEngine.icon( + Icons[Bar], + 0x0100, + x*scale,y*scale,width*scale,height*scale); + polygonEngine.icon( + Icons[Slider], + 0x0400, + (x+*value*width-IconWidths[Slider]*height/2)*scale, + y*scale,height*scale,height*scale); + + if (mouseOver) { + double newValue = (_x)/(width); + if (newValue < 0.0) newValue = 0.0; + if (newValue > 1.0) newValue = 1.0; + + polygonEngine.icon( + Icons[Selector], + 0x0004, + (x+newValue*width-IconWidths[Selector]*height/2)*scale, + y*scale,height*scale,height*scale); + + if (mouseDown) { + *value = newValue; + + if (callback) + callback(*value); + } + + if (mouseOver) + _hotKey = (newValue < *value ? leftKey : rightKey); + } + + return 0; + } + + void handleKey(char key, int &action) { + if (key == leftKey || key == rightKey) { + if (key == leftKey) { + if (*value == 0.0) return; + *value -= 0.05; + if (*value < 0.0) *value = 0.0; + } else { + if (*value == 1.0) return; + *value += 0.05; + if (*value > 1.0) *value = 1.0; + } + + if (callback) + callback(*value); + } + } +}; + +//Dodgy, uses some globals +struct TrackSelector : public UIObject { + int position; + + TrackSelector(int _am,int _vm,double _x,double _y, + double _width,double _height) { + activeMask = _am; visibleMask = _vm; + x = _x; y = _y; width = _width; height = _height; + } + + int go(bool mouseDown,bool mouseClick,bool mouseOver, + double _x, double _y, double scale, char &_hotKey, int &action) { + int count = cdGetTrackCount(); + if (count == 0) return 0; + + position = -1; + if (mouseOver) { + position = int(_x/width*count)+1; + + if (mouseClick) + action = -position; + + if (position < 10) + _hotKey = '0' + position; + else if (position == 10) + _hotKey = '0'; + } + + for(int i=0;i= '1' && key <= '9') + action = -(key-'0'); + else if (key == '0') + action = -10; + } +}; + +static UIObject *uiObjects; +static Button *stateButton, *starsButton, *waveButton, *flameButton, + *starButton, *diamondButton; +static TrackSelector *trackSelector; +static int mouseButtons; + +void setupPalette(double dummy=0.0) { + #define BOUND(x) ((x) > 255 ? 255 : (x)) + #define PEAKIFY(x) int(BOUND((x) - (x)*(255-(x))/255/2)) + #define MAX(x,y) ((x) > (y) ? (x) : (y)) + int i; + unsigned char palette[768]; + + double scale, fgRed, fgGreen, fgBlue, bgRed, bgGreen, bgBlue; + fgRed = fgRedSlider; + fgGreen = fgGreenSlider; + fgBlue = 1.0 - MAX(fgRedSlider,fgGreenSlider); + //scale = MAX(MAX(fgRed,fgGreen),fgBlue); + scale = (fgRed+fgGreen+fgBlue)/2.0; + fgRed /= scale; + fgGreen /= scale; + fgBlue /= scale; + + bgRed = bgRedSlider; + bgGreen = bgGreenSlider; + bgBlue = 1.0 - MAX(bgRedSlider,bgGreenSlider); + //scale = MAX(MAX(bgRed,bgGreen),bgBlue); + scale = (bgRed+bgGreen+bgBlue)/2.0; + bgRed /= scale; + bgGreen /= scale; + bgBlue /= scale; + + for(i=0;i<256;i++) { + int f = i&15, b = i/16; + //palette[i*3+0] = PEAKIFY(b*bgRed*16+f*fgRed*16); + //palette[i*3+1] = PEAKIFY(b*bgGreen*16+f*fgGreen*16); + //palette[i*3+2] = PEAKIFY(b*bgBlue*16+f*fgBlue*16); + + double red = b*bgRed*16+f*fgRed*16; + double green = b*bgGreen*16+f*fgGreen*16; + double blue = b*bgBlue*16+f*fgBlue*16; + + double excess = 0.0; + for(int j=0;j<5;j++) { + red += excess / 3; + green += excess / 3; + blue += excess / 3; + excess = 0.0; + if (red > 255) { excess += red-255; red = 255; } + if (green > 255) { excess += green-255; green = 255; } + if (blue > 255) { excess += blue-255; blue = 255; } + } + + double scale = (0.5 + (red+green+blue)/768.0) / 1.5; + red *= scale; + green *= scale; + blue *= scale; + + palette[i*3+0] = BOUND(int(red)); + palette[i*3+1] = BOUND(int(green)); + palette[i*3+2] = BOUND(int(blue)); + } + screen->setPalette(palette); +} + +void setTrackProgress(double progress) { + int interval = cdGetTrackFrame(track+1)-cdGetTrackFrame(track); + if (interval <= 0) return; + cdPlay(cdGetTrackFrame(track)+int(interval*progress)); +} + +//Visible mask +#define ALL 1 +#define BUTTONBAR 2 +#define TRACKBAR 4 +#define DIALBAR 8 +#define VOLUMEBAR 16 + +//Active mask +//#define ALL 1 +#define PLAYING 2 +#define PAUSED 4 +#define STOPPED 8 +#define NOCD 32 +#define OPEN 64 + +static int visibleMask, cdCheckCountDown; +static int mouseX, mouseY, lastX, lastY, countDown; + +void addUI(UIObject *obj) { + obj->next = uiObjects; + uiObjects = obj; +} + +#define IconSize 0.2 +#define SliderSize 0.125 +void interfaceInit() { + double x,y; + uiObjects = 0; + //addUI(new Button(ALL,0.025,0.525,IconSize, 0, 'x')); + addUI(new PopperUpper(ALL,ALL,0,0,0.25,0.25, BUTTONBAR)); + addUI(stateButton = new Button(ALL,ALL,0.05,0.025,IconSize, 0, 0, true, false)); + + addUI(new PopperUpper(ALL,BUTTONBAR,x=0.25,y=0,1.375,0.25, BUTTONBAR)); + x += 0.1; y += 0.025; + addUI(new Button(PLAYING|PAUSED,BUTTONBAR,x,y,IconSize, SkipBack, '[')); + addUI(new Button(PAUSED|STOPPED|OPEN,BUTTONBAR,x += IconSize,y,IconSize, Play, 'p')); + addUI(new Button(PLAYING,BUTTONBAR,x,y,IconSize, Pause, 'p')); + addUI(new Button(PLAYING|PAUSED|OPEN,BUTTONBAR,x += IconSize,y,IconSize, Stop, 's')); + addUI(new Button(PLAYING|PAUSED,BUTTONBAR,x += IconSize,y,IconSize, SkipFwd, ']')); + addUI(new Button(PLAYING|PAUSED|STOPPED|NOCD, BUTTONBAR, + x += IconSize,y,IconSize, Open, 'e')); + addUI(new Button(ALL, BUTTONBAR,x += IconSize,y,IconSize, Exit, 'q')); + + addUI(new PopperUpper(PLAYING|PAUSED|STOPPED, ALL,0,0.25,0.25,0.25, TRACKBAR)); + addUI(new PopperUpper(PLAYING|PAUSED|STOPPED, TRACKBAR,x=0.25,y=0.25,1.0,0.625, TRACKBAR)); + x += 0.1; y += 0.1; + addUI(trackSelector = new TrackSelector(PLAYING|PAUSED|STOPPED, TRACKBAR,x,y,0.75,0.25)); + addUI(new SliderBar(PLAYING|PAUSED, TRACKBAR,x,y+=0.25,0.75,0.25, + &trackProgress,setTrackProgress,'{','}')); + + addUI(new PopperUpper(ALL,ALL,0,0.5,0.25,0.25, DIALBAR)); + addUI(new Button(ALL,ALL,0.05,0.525,IconSize, Bulb, 0, true, false)); + + addUI(new PopperUpper(ALL,DIALBAR,x=0.25,y=0.0,1.25,1.0, DIALBAR)); + x += 0.05; y += 0.025; + + addUI(starsButton = new Button(ALL,DIALBAR,x,y,IconSize, Stars, 'd')); + addUI(waveButton = new Button(ALL,DIALBAR,x+IconSize,y,IconSize, Wave, 'f')); + addUI(flameButton = new Button(ALL,DIALBAR,x+IconSize*2.5,y,IconSize, Flame, 'g')); + + addUI(starButton = new Button(ALL,DIALBAR,x+IconSize*3.5,y,IconSize, Star, 'h')); + addUI(diamondButton = new Button(ALL,DIALBAR,x+IconSize*4.5,y,IconSize, Diamond, 'j')); + + addUI(new Button(ALL,DIALBAR,x+0.4,y+0.8,IconSize, Save, '?')); + addUI(new Button(ALL,DIALBAR,x+0.65,y+0.8,IconSize, Reset, '/')); + + y += IconSize*1.3; + + addUI(new Button(ALL,DIALBAR,x,y-0.05,IconSize, Bulb, 0, true)); + addUI(new SliderBar(ALL,DIALBAR, + x+IconSize,y, 0.75, SliderSize, &brightnessTwiddler, 0, 'z', 'x')); + + addUI(new Button(ALL,DIALBAR,x,y+SliderSize*1,IconSize, Size, 'x', true)); + addUI(new SliderBar(ALL,DIALBAR, + x+IconSize,y+SliderSize, 0.75, SliderSize, &starSize, setStarSize, 'c','v')); + + addUI(new Button(ALL,DIALBAR,x+0.5,y+SliderSize*2-0.025,IconSize, FgColor, 0, true)); + addUI(new SliderBar(ALL,DIALBAR, + x,y+SliderSize*2, 0.45, SliderSize, &fgRedSlider, setupPalette, 'b','n')); + addUI(new SliderBar(ALL,DIALBAR, + x+0.5+SliderSize,y+SliderSize*2, 0.45, SliderSize, &fgGreenSlider, setupPalette, 'm',',')); + + + addUI(new Button(ALL,DIALBAR,x+0.5,y+SliderSize*3,IconSize, BgColor, 0, true)); + addUI(new SliderBar(ALL,DIALBAR, + x,y+SliderSize*3, 0.45, SliderSize, &bgRedSlider, setupPalette, 'B','N')); + addUI(new SliderBar(ALL,DIALBAR, + x+0.5+SliderSize,y+SliderSize*3, 0.45, SliderSize, &bgGreenSlider, setupPalette, 'M','<')); + + addUI(new PopperUpper(ALL,ALL,0,0.75,0.25,0.25, VOLUMEBAR)); + addUI(new Button(ALL,ALL,0.05,0.775,IconSize, Speaker, 0, true, false)); + + addUI(new PopperUpper(ALL,VOLUMEBAR,x=0.25,y=0.75,1.0,0.25, VOLUMEBAR)); + x += 0.1;// y += 0.0625; + addUI(new SliderBar(ALL,VOLUMEBAR,x,y, 0.75, 0.25, &volume, setVolume, '-','+')); + //static double value = 0.5; + //addUI(new SliderBar(ALL,0,0.75,1.0,0.25,&value)); + + //addUI(new Button(BUTTONBAR,x,y,IconSize, 1, 'x')); + //addUI(new Button(BUTTONBAR,x += IconSize,y,IconSize, 2, 'x')); + //addUI(new Button(BUTTONBAR,x += IconSize,y,IconSize, 3, 'x')); + + visibleMask = ALL; + cdCheckCountDown = 0; + mouseX = -1; + mouseY = -1; + lastY = -1; + lastY = -1; + countDown = 0; + mouseButtons = 0; + + interfaceSyncToState(); +} + +void interfaceSyncToState() { + starsButton->bright = (fadeMode == Stars); + flameButton->bright = (fadeMode == Flame); + waveButton->bright = (fadeMode == Wave); + + starButton->bright = !pointsAreDiamonds; + diamondButton->bright = pointsAreDiamonds; + + setupPalette(); +} + +int changeState(int transitionSymbol) { + if (transitionSymbol < 0) { + cdPlay(cdGetTrackFrame(-transitionSymbol)); + return 0; + } + + int retVal = 0; + switch(transitionSymbol) { + case Play : + if (state == Open) { + cdCloseTray(); + state = NoCD; + cdGetStatus(track, frames, state); + } + if (state == Pause) cdResume(); else cdPlay(cdGetTrackFrame(1)); + break; + case Pause : + cdPause(); break; + case Stop : + if (state == Open) { + cdCloseTray(); + state = NoCD; + } + cdStop(); + break; + case Open : + cdEject(); + state = Open; + break; + case SkipBack : + cdPlay(cdGetTrackFrame(track-1)); + break; + case SkipFwd : + cdPlay(cdGetTrackFrame(track+1)); + break; + + case Flame : + starsButton->bright = false; + flameButton->bright = true; + waveButton->bright = false; + fadeMode = Flame; + setStarSize(starSize); + break; + case Wave : + starsButton->bright = false; + flameButton->bright = false; + waveButton->bright = true; + fadeMode = Wave; + setStarSize(starSize); + break; + case Stars : + starsButton->bright = true; + flameButton->bright = false; + waveButton->bright = false; + fadeMode = Stars; + setStarSize(starSize); + break; + + case Star : + pointsAreDiamonds = false; + starButton->bright = true; + diamondButton->bright = false; + break; + case Diamond : + pointsAreDiamonds = true; + starButton->bright = false; + diamondButton->bright = true; + break; + + case Save : + saveConfig(); + break; + case Reset : + setStateToDefaults(); + interfaceSyncToState(); + setStarSize(starSize); + break; + + case Exit : + retVal = 1; break; + } + return retVal; +} + +bool interfaceGo() { + int newVisibleMask = ALL; + char keyHit; + bool quit = false; + int action = NotASymbol; + int oldButtons = mouseButtons; + + screen->inputUpdate(mouseX,mouseY,mouseButtons,keyHit); //may also resize output + + bool mouseClick = (mouseButtons && !oldButtons); + + if ((mouseX != lastX || mouseY != lastY) && + lastX > 0 && lastY > 0 && + lastX < outWidth && lastY < outHeight) + countDown = 40; + + int activeMask = ALL; + switch(state) { + case Play : activeMask |= PLAYING; break; + case Pause : activeMask |= PAUSED; break; + case Stop : activeMask |= STOPPED; break; + case NoCD : activeMask |= NOCD; break; + case Open : activeMask |= OPEN; break; + default : break; + } + + if (countDown) { + countDown--; + + double scale = + (outWidth*0.625 < outHeight ? outWidth*0.625 : outHeight); + double scaledX = mouseX / scale; + double scaledY = mouseY / scale; + + char hotKey = 0; + + polygonEngine.clear(); + + stateButton->icon = state; + + + for(UIObject *i=uiObjects;i;i = i->next) { + if ((i->visibleMask & visibleMask) && (i->activeMask & activeMask)) + newVisibleMask |= i->go(mouseButtons,mouseClick, + (scaledX >= i->x && + scaledY >= i->y && + scaledX < i->x+i->width && + scaledY < i->y+i->height), + scaledX - i->x, + scaledY - i->y, + scale, + hotKey, + action); + } + + if (activeMask & (PLAYING|PAUSED|STOPPED)) { + int trackNumber = (activeMask&(PLAYING|PAUSED) ? track : -1); + unsigned short trackColor = 0x0100; + if ((visibleMask&TRACKBAR) && trackSelector->position != -1) { + trackNumber = trackSelector->position; + trackColor = 0x0003; + } + + if (trackNumber != -1) { + if (trackNumber > 9) + polygonEngine.icon(Icons[Zero+trackNumber/10%10],trackColor, + scale*0.03125,scale*0.25,scale*0.25,scale*0.25); + + polygonEngine.icon(Icons[Zero+trackNumber%10],trackColor, + scale*0.125,scale*0.25,scale*0.25,scale*0.25); + } + } + + visibleMask = newVisibleMask; + if (visibleMask != 1) + countDown = 20; + + polygonEngine.icon(Icons[Pointer],0x0303,mouseX,mouseY,50,50); + + polygonEngine.apply(outputBmp.data); + + char hint[2] = " "; + hint[0] = hotKey; + putString(hint,mouseX+6,mouseY+7,0,0); + } + + if (keyHit) + for(UIObject *i=uiObjects;i;i = i->next) + if (i->activeMask & activeMask) + i->handleKey(keyHit,action); + + + lastX = mouseX; + lastY = mouseY; + + if (action != NotASymbol) + quit = quit || changeState(action); + + if (state != Plug && (action != NotASymbol || cdCheckCountDown < 0)) { + SymbolID oldState = state; + cdGetStatus(track, frames, state); + if (action == NotASymbol && + (oldState == Play || oldState == Open || oldState == NoCD) && + state == Stop) { + if (playListLength == 0) + cdPlay(cdGetTrackFrame(1)); + else { + int track = atoi(playList[playListPosition]); + playListPosition = (playListPosition+1) % playListLength; + cdPlay(cdGetTrackFrame(track),cdGetTrackFrame(track+1)); + } + } + + int interval = cdGetTrackFrame(track+1)-cdGetTrackFrame(track); + if (interval > 0) + trackProgress = double(frames)/interval; + else + trackProgress = 0.0; + + cdCheckCountDown = 100; + } else + cdCheckCountDown -= (countDown ? 10 : 1); + + if (mouseClick && action == NotASymbol && !(visibleMask&~ALL)) { + screen->toggleFullScreen(); + screen->inputUpdate(mouseX,mouseY,mouseButtons,keyHit); + lastX = mouseX; + lastY = mouseY; + } + + return quit; +} + +void interfaceEnd() { + while(uiObjects) { + UIObject *next = uiObjects->next; + delete uiObjects; + uiObjects = next; + } +} diff --git a/xlib.c b/xlib.c new file mode 100644 index 0000000..dff2abb --- /dev/null +++ b/xlib.c @@ -0,0 +1,784 @@ +/* + * XaoS, a fast portable realtime fractal zoomer + * Copyright (C) 1996,1997 by + * + * Jan Hubicka (hubicka@paru.cas.cz) + * Thomas Marsh (tmarsh@austin.ibm.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 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., 675 Mass Ave, Cambridge, MA 02139, USA. + * + * + * Shamelessly ripped for use in xsynaesthesia + */ +#include "config.h" +#ifndef X_DISPLAY_MISSING + +#define X11_DRIVER +//#define MITSHM + +#ifdef X11_DRIVER +#include +#include +#include +#include +#include +#include +#include +#ifndef __FreeBSD__ +#include +#else +#include +#endif +#include "xlib.h" +#ifdef AMIGA +#define XFlush(x) while(0) +#endif + +#undef PIXMAP + +#define chkalloc(n) if (!n) fprintf(stderr, "out of memory\n"), exit(-1) + +int xupdate_size(xdisplay * d) +{ + int tmp; + Window wtmp; + int width = d->width, height = d->height; + XGetGeometry(d->display, d->window, &wtmp, &tmp, &tmp, &d->width, &d->height, (unsigned int *) &tmp, (unsigned int *) &tmp); + if (d->width != width || d->height != height) + return 1; + return 0; +} + +void xflip_buffers(xdisplay * d) +{ + d->back = d->vbuffs[d->current]; + d->current ^= 1; + d->vbuff = d->vbuffs[d->current]; +} + +void draw_screen(xdisplay * d) +{ + switch (d->image[0]->bits_per_pixel) { + case 16:{ + uint16_t *de; + unsigned char *s; + unsigned char *e; + for (s = (unsigned char *) d->vbuffs[d->current], + e = (unsigned char *) d->vbuffs[d->current] + (d->linewidth * d->height), + de = (unsigned short *) d->data[d->current]; s < e; s += 8, de += 8) + *de = d->pixels[*s], + *(de + 1) = d->pixels[*(s + 1)], + *(de + 2) = d->pixels[*(s + 2)], + *(de + 3) = d->pixels[*(s + 3)], + *(de + 4) = d->pixels[*(s + 4)], + *(de + 5) = d->pixels[*(s + 5)], + *(de + 6) = d->pixels[*(s + 6)], + *(de + 7) = d->pixels[*(s + 7)]; + s -= 8; + de -= 8; + for (; s < e; s++, de++) + *de = d->pixels[*s]; + break; + } + case 24:{ + unsigned char *de; + unsigned char *s; + unsigned char *e; + for (s = (unsigned char *) d->vbuffs[d->current], + e = (unsigned char *) d->vbuffs[d->current] + (d->linewidth * d->height), + de = (unsigned char *) d->data[d->current]; s < e; s++, de+=3) + de[0] = d->pixels[*s], + de[1] = d->pixels[*s]>>8, + de[2] = d->pixels[*s]>>16; + + break; + } + case 32:{ + uint32_t *de; + unsigned char *s; + unsigned char *e; + for (s = (unsigned char *) d->vbuffs[d->current], + e = (unsigned char *) d->vbuffs[d->current] + (d->linewidth * d->height), + de = (uint32_t *) d->data[d->current]; s < e; s += 8, de += 8) + *de = d->pixels[*s], + *(de + 1) = d->pixels[*(s + 1)], + *(de + 2) = d->pixels[*(s + 2)], + *(de + 3) = d->pixels[*(s + 3)], + *(de + 4) = d->pixels[*(s + 4)], + *(de + 5) = d->pixels[*(s + 5)], + *(de + 6) = d->pixels[*(s + 6)], + *(de + 7) = d->pixels[*(s + 7)]; + s -= 8; + de -= 8; + for (; s < e; s++, de++) + *de = d->pixels[*s]; + break; + } + } +#ifdef MITSHM + if (d->SharedMemFlag) { + XShmPutImage(d->display, d->window, d->gc, d->image[d->current], 0, 0, 0, + 0, d->width, d->height, True); + XFlush(d->display); + } else +#endif + { + XPutImage(d->display, d->window, d->gc, d->image[d->current], 0, 0, 0, 0, d->width, d->height); + XFlush(d->display); + } + d->screen_changed = 0; +} + +#ifdef MITSHM +int alloc_shm_image(xdisplay * new) +{ + register char *ptr; + int temp, size = 0, i; + ptr = DisplayString(new->display); + if (!ptr || (*ptr == ':') || !strncmp(ptr, "localhost:", 10) || + !strncmp(ptr, "unix:", 5) || !strncmp(ptr, "local:", 6)) { + new->SharedMemOption = XQueryExtension(new->display, "MIT-SHM", &temp, &temp, &temp); + } else { + new->SharedMemOption = False; + return 0; + } + new->SharedMemFlag = False; +#if 0 + new->SharedMemOption = True; + new->SharedMemFlag = False; +#endif + + if (new->SharedMemFlag) { + XShmDetach(new->display, &new->xshminfo[0]); + XShmDetach(new->display, &new->xshminfo[1]); + new->image[0]->data = (char *) NULL; + new->image[1]->data = (char *) NULL; + shmdt(new->xshminfo[0].shmaddr); + shmdt(new->xshminfo[1].shmaddr); + } + for (i = 0; i < 2; i++) { + if (new->SharedMemOption) { + int mul; + if (new->depth == 8) + mul = 1; + else if (new->depth <= 24) + mul = 2; + else + mul = 4; + new->SharedMemFlag = False; + new->image[i] = XShmCreateImage(new->display, new->visual, new->depth, ZPixmap, + NULL, &new->xshminfo[i], new->width, new->height * mul); + if (new->image[i]) { + temp = new->image[i]->bytes_per_line * new->image[i]->height; + new->linewidth = new->image[i]->bytes_per_line * 8 / new->image[i]->bits_per_pixel; + if (temp > size) + size = temp; + new->xshminfo[i].shmid = shmget(IPC_PRIVATE, size, IPC_CREAT | 0777); + if (new->xshminfo[i].shmid != -1) { + new->xshminfo[i].shmaddr = (char *) shmat(new->xshminfo[i].shmid, 0, 0); + if (new->xshminfo[i].shmaddr != (char *) -1) { + new->image[i]->data = new->xshminfo[i].shmaddr; + new->data[i] = new->vbuffs[i] = (char *) new->image[i]->data; + new->xshminfo[i].readOnly = True; + + new->SharedMemFlag = XShmAttach(new->display, &new->xshminfo[i]); + XSync(new->display, False); + if (!new->SharedMemFlag) { + XDestroyImage(new->image[i]); + new->image[i] = (XImage *) NULL; + new->SharedMemFlag = 0; + return 0; + } + } + /* Always Destroy Shared Memory Ident */ + shmctl(new->xshminfo[i].shmid, IPC_RMID, 0); + } + if (!new->SharedMemFlag) { + XDestroyImage(new->image[i]); + new->image[i] = (XImage *) NULL; + new->SharedMemFlag = 0; + return 0; + } + } else { + new->SharedMemFlag = 0; + return 0; + } + } else { + new->SharedMemFlag = 0; + return 0; + } + } + new->current = 0; + xflip_buffers(new); + return 1; +} + +void free_shm_image(xdisplay * d) +{ + if (d->SharedMemFlag) { + XDestroyImage(d->image[0]); + XDestroyImage(d->image[1]); + XShmDetach(d->display, &d->xshminfo[0]); + XShmDetach(d->display, &d->xshminfo[1]); + shmdt(d->xshminfo[0].shmaddr); + shmdt(d->xshminfo[1].shmaddr); + } +} + +#endif + +int alloc_image(xdisplay * d) +{ + int i; +#ifdef MITSHM + if (!d->params->nomitshm && alloc_shm_image(d)) { + if (d->depth != 8) { + for (i = 0; i < 2; i++) + d->vbuffs[i] = malloc(d->linewidth * d->height); + } + return 1; + } +#endif + for (i = 0; i < 2; i++) { + d->image[i] = XCreateImage(d->display, d->visual, d->depth, ZPixmap, 0, + NULL, d->width, d->height, 8, 0); + if (d->image[i] == NULL) { + printf("Out of memory for image..exiting\n"); + exit(-1); + } + //Add a little extra memory to catch overruns when dumping image to buffer in draw_screen + d->image[i]->data = malloc(d->image[i]->bytes_per_line * d->height + 32); + memset(d->image[i]->data,0,d->image[i]->bytes_per_line * d->height); + + if (d->image[i]->data == NULL) { + printf("Out of memory for image buffers..exiting\n"); + exit(-1); + } + d->data[i] = d->vbuffs[i] = (char *) d->image[i]->data; + d->linewidth = d->image[i]->bytes_per_line * 8 / d->image[i]->bits_per_pixel; + } + if (d->depth != 8) { + for (i = 0; i < 2; i++) { + //Add a little extra memory to catch overruns + //when dumping image to buffer in draw_screen + d->vbuffs[i] = malloc(d->linewidth * d->height + 32); + memset(d->vbuffs[i],0,d->linewidth * d->height); + + if (d->vbuffs[i] == NULL) { + printf("Out of memory for image buffers2..exiting\n"); + exit(-1); + } + } + } + xflip_buffers(d); + return 1; +} + +void free_image(xdisplay * d) +{ + if (d->depth != 8) + free(d->vbuffs[0]), free(d->vbuffs[1]); +#ifdef MITSHM + if (d->SharedMemFlag) { + free_shm_image(d); + return; + } +#endif + XDestroyImage(d->image[0]); + XDestroyImage(d->image[1]); +} +#define MAX(x,y) ((x)>(y)?(x):(y)) + + +xdisplay *xalloc_display(char *s, int xHint, int yHint, int x, int y, xlibparam * params) +{ + xdisplay *new; + Visual *defaultvisual; + XVisualInfo vis; + + + new = (xdisplay *) calloc(sizeof(xdisplay), 1); + chkalloc(new); + new->display = XOpenDisplay((char *) NULL); + if (!new->display) { + free((void *) new); + return NULL; + } + new->screen = DefaultScreen(new->display); + new->attributes = (XSetWindowAttributes *) + malloc(sizeof(XSetWindowAttributes)); + chkalloc(new->attributes); + new->attributes->background_pixel = BlackPixel(new->display, + new->screen); + new->attributes->border_pixel = BlackPixel(new->display, new->screen); + new->attributes->event_mask = ButtonPressMask | StructureNotifyMask | ButtonReleaseMask | ButtonMotionMask | KeyPressMask | ExposureMask | KeyReleaseMask; + new->attributes->override_redirect = False; + new->attr_mask = CWBackPixel | CWBorderPixel | CWEventMask; + new->classX = InputOutput; + new->xcolor.n = 0; + new->parent_window = RootWindow(new->display, new->screen); + defaultvisual = DefaultVisual(new->display, new->screen); + new->params = params; + if (!params->usedefault) { + if (defaultvisual->class != PseudoColor || (!XMatchVisualInfo(new->display, new->screen, 8, PseudoColor, &vis) && vis.colormap_size > 128)) { + new->fixedcolormap = 1; + if (!XMatchVisualInfo(new->display, new->screen, 15, TrueColor, &vis)) { + if (!XMatchVisualInfo(new->display, new->screen, 16, TrueColor, &vis)) { + if (!XMatchVisualInfo(new->display, new->screen, 32, TrueColor, &vis) && + !XMatchVisualInfo(new->display, new->screen, 24, TrueColor, &vis)) { + if (!XMatchVisualInfo(new->display, new->screen, 8, PseudoColor, &vis) && + !XMatchVisualInfo(new->display, new->screen, 7, PseudoColor, &vis)) { + if (!XMatchVisualInfo(new->display, new->screen, 8, TrueColor, &vis) && + !XMatchVisualInfo(new->display, new->screen, 8, StaticColor, &vis) && + !XMatchVisualInfo(new->display, new->screen, 8, StaticGray, &vis)) { + printf("Display does not support PseudoColor depth 7,8,StaticColor depth 8, StaticGray depth 8, Truecolor depth 8,15,16,24 nor 32!\n"); + return NULL; + } else + new->truecolor = 1; + } else + new->fixedcolormap = 0, new->truecolor = 0; + } else + new->truecolor = 1; + } else + new->truecolor = 1; + } else + new->truecolor = 1; + } else { + new->truecolor = 0; + } + new->depth = vis.depth; + new->visual = vis.visual; + } else { /*usedefault */ + vis.depth = new->depth = DefaultDepth(new->display, new->screen); + new->visual = defaultvisual; + switch (defaultvisual->class) { + case PseudoColor: + if (new->depth <= 8) { + new->depth = 8; + new->truecolor = 0; + new->fixedcolormap = 0; + } else { + printf("Pseudocolor visual on unsuported depth\n"); + return NULL; + } + break; + case TrueColor: + case StaticColor: + case StaticGray: + new->truecolor = 1; + new->fixedcolormap = 1; + if (new->depth <= 8) + new->depth = 8; + else if (new->depth <= 16) + new->depth = 16; + else if (new->depth <= 32) + new->depth = 32; + else { + printf("Truecolor visual on unsuported depth\n"); + return NULL; + } + break; + default: + printf("Unusuported visual\n"); + break; + } + } + /*new->visual->map_entries = 256; */ + new->colormap = new->defaultcolormap = DefaultColormap(new->display, new->screen); + + new->window_name = s; + new->height = y; + new->width = x; + new->border_width = 2; + new->lastx = 0; + new->lasty = 0; + new->font_struct = (XFontStruct *) NULL; + + new->window = XCreateWindow(new->display, new->parent_window, xHint, yHint, + new->width, new->height, new->border_width, + vis.depth, new->classX, new->visual, + new->attr_mask, new->attributes); + if (!new->fixedcolormap && params->privatecolormap) { + unsigned long pixels[256]; + int i; + new->colormap = XCreateColormap(new->display, new->window, new->visual, AllocNone); + XAllocColorCells(new->display, new->colormap, 1, 0, 0, pixels, MAX(new->visual->map_entries, 256)); + for (i = 0; i < 16; i++) { + new->xcolor.c[i].pixel = pixels[i]; + } + XQueryColors(new->display, new->defaultcolormap, new->xcolor.c, 16); + XStoreColors(new->display, new->colormap, new->xcolor.c, 16); + new->privatecolormap = 1; + } + if (!new->fixedcolormap) + XSetWindowColormap(new->display, new->window, new->colormap); + new->gc = XCreateGC(new->display, new->window, 0L, &(new->xgcvalues)); + XSetBackground(new->display, new->gc, + BlackPixel(new->display, new->screen)); + XSetForeground(new->display, new->gc, + WhitePixel(new->display, new->screen)); + XStoreName(new->display, new->window, new->window_name); + XMapWindow(new->display, new->window); +#if 1 + XSelectInput(new->display, new->window, + //ExposureMask | + KeyPress | + //KeyRelease | + //ConfigureRequest | + //FocusChangeMask | + StructureNotifyMask | + ButtonPressMask | ButtonReleaseMask); +#endif +#ifdef PIXAMP + new->pixmap = XCreatePixmap(new->display, new->window, new->width, + new->height, new->depth); +#endif + + { + XColor c; + Pixmap p = XCreatePixmap(new->display, new->window, 1,1,1); + memset(&c,0,sizeof(c)); + new->cursor = XCreatePixmapCursor(new->display, p,p, + &c,&c, 0,0); + XDefineCursor(new->display,new->window,new->cursor); + XFreePixmap(new->display, p); + } + + return (new); +} + +void xsetcolor(xdisplay * d, int col) +{ + switch (col) { + case 0: + XSetForeground(d->display, d->gc, + BlackPixel(d->display, d->screen)); + break; + case 1: + XSetForeground(d->display, d->gc, + WhitePixel(d->display, d->screen)); + break; + default: + if ((col - 2) > d->xcolor.n) { + fprintf(stderr, "color error\n"); + exit(-1); + } + XSetForeground(d->display, d->gc, + d->xcolor.c[col - 2].pixel); + break; + } +} +void xrotate_palette(xdisplay * d, int direction, unsigned char co[3][256], int ncolors) +{ + int i, p; + + if (d->privatecolormap) { + for (i = 0; i < d->xcolor.n; i++) { + p = d->xcolor.c[i].pixel; + d->xcolor.c[i].red = (int) co[0][p] * 256; + d->xcolor.c[i].green = (int) co[1][p] * 256; + d->xcolor.c[i].blue = (int) co[2][p] * 256; + } + XStoreColors(d->display, d->colormap, d->xcolor.c, d->xcolor.n); + } + if (d->truecolor) { + unsigned long oldpixels[256]; + memcpy(oldpixels, d->pixels, sizeof(oldpixels)); + p = (ncolors - 1 + direction) % (ncolors - 1) + 1; + for (i = 1; i < ncolors; i++) { /*this is ugly..I know */ + d->pixels[i] = oldpixels[p]; + p++; + if (p >= ncolors) + p = 1; + } + draw_screen(d); + } +} +int xalloc_color(xdisplay * d, int r, int g, int b, int readwrite) +{ + d->xcolor.n++; + d->xcolor.c[d->xcolor.n - 1].flags = DoRed | DoGreen | DoBlue; + d->xcolor.c[d->xcolor.n - 1].red = r; + d->xcolor.c[d->xcolor.n - 1].green = g; + d->xcolor.c[d->xcolor.n - 1].blue = b; + d->xcolor.c[d->xcolor.n - 1].pixel = d->xcolor.n - 1; + if ((readwrite && !d->fixedcolormap) || d->privatecolormap) { + unsigned long cell; + if (d->privatecolormap) { + cell = d->xcolor.c[d->xcolor.n - 1].pixel += 16; + if (d->xcolor.c[d->xcolor.n - 1].pixel >= d->visual->map_entries) { + d->xcolor.n--; + return (-1); + } + } else { + if (!XAllocColorCells(d->display, d->colormap, 0, 0, 0, &cell, 1)) { + d->xcolor.n--; + if (d->xcolor.n <= 32) + printf("Colormap is too full! close some colorfull aplications or use -private\n"); + return (-1); + } + d->xcolor.c[d->xcolor.n - 1].pixel = cell; + } + XStoreColor(d->display, d->colormap, &(d->xcolor.c[d->xcolor.n - 1])); + return (cell); + } + if (!XAllocColor(d->display, d->colormap, &(d->xcolor.c[d->xcolor.n - 1]))) { + d->xcolor.n--; + if (d->xcolor.n <= 32) + printf("Colormap is too full! close some colorfull aplications or use -private\n"); + return (-1); + } + d->pixels[d->xcolor.n - 1] = d->xcolor.c[d->xcolor.n - 1].pixel; + return (d->depth != 8 ? d->xcolor.n - 1 : d->xcolor.c[d->xcolor.n - 1].pixel); +} + +void xfree_colors(xdisplay * d) +{ + unsigned long pixels[256]; + int i; + for (i = 0; i < d->xcolor.n; i++) + pixels[i] = d->xcolor.c[i].pixel; + if (!d->privatecolormap) + XFreeColors(d->display, d->colormap, pixels, d->xcolor.n, 0); + d->xcolor.n = 0; +} + +void xfree_display(xdisplay * d) +{ + XSync(d->display, 0); + if (d->font_struct != (XFontStruct *) NULL) { + XFreeFont(d->display, d->font_struct); + } + XUnmapWindow(d->display, d->window); +#ifdef PIXMAP + XFreePixmap(d->display, d->pixmap); +#endif + XDestroyWindow(d->display, d->window); + XFreeCursor(d->display, d->cursor); + XCloseDisplay(d->display); + free((void *) d->attributes); + free((void *) d); +} + +#ifdef PIXMAP +void xline(xdisplay * d, int x1, int y1, int x2, int y2) +{ + XDrawLine(d->display, d->pixmap, d->gc, x1, y1, x2, y2); + d->lastx = x2, d->lasty = y2; + d->screen_changed = 1; +} void xlineto(xdisplay * d, int x, int y) +{ + + XDrawLine(d->display, d->pixmap, d->gc, d->lastx, d->lasty, x, y); + d->lastx = x, d->lasty = y; + d->screen_changed = 1; +} void xrect(xdisplay * d, int x1, int y1, int x2, int y2) +{ + + XDrawRectangle(d->display, d->pixmap, d->gc, x1, y1, + (x2 - x1), (y2 - y1)); + d->lastx = x2, d->lasty = y2; + d->screen_changed = 1; +} void xfillrect(xdisplay * d, int x1, int y1, int x2, int y2) +{ + + XFillRectangle(d->display, d->pixmap, d->gc, x1, y1, + (x2 - x1), (y2 - y1)); + d->lastx = x2, d->lasty = y2; + d->screen_changed = 1; +} void xpoint(xdisplay * d, int x, int y) +{ + + XDrawPoint(d->display, d->pixmap, d->gc, x, y); + d->lastx = x, d->lasty = y; + d->screen_changed = 1; +} void xflush(xdisplay * d) +{ + + draw_screen(d); + XFlush(d->display); +} + +void xclear_screen(xdisplay * d) +{ + xfillrect(d, 0, 0, d->width, d->height); + d->screen_changed = 1; +} + +#endif +void xmoveto(xdisplay * d, int x, int y) +{ + d->lastx = x, d->lasty = y; +} int xsetfont(xdisplay * d, char *font_name) +{ + + if (d->font_struct != (XFontStruct *) NULL) { + XFreeFont(d->display, d->font_struct); + } + d->font_struct = XLoadQueryFont(d->display, font_name); + if (!d->font_struct) { + fprintf(stderr, "could not load font: %s\n", font_name); + exit(-1); + } + return (d->font_struct->max_bounds.ascent + d->font_struct->max_bounds.descent); +} + +void xouttext(xdisplay * d, char *string) +{ + int sz; + + sz = strlen(string); + XDrawImageString(d->display, d->window, d->gc, d->lastx, d->lasty, + string, sz); +#if 0 + d->lastx += XTextWidth(d->font_struct, string, sz); + d->screen_changed = 1; +#endif +} void xresize(xdisplay * d, XEvent * ev) +{ + +#ifdef PIXMAP + XFreePixmap(d->display, d->pixmap); +#endif + d->width = ev->xconfigure.width; + d->height = ev->xconfigure.height; +#ifdef PIXMAP + d->pixmap = XCreatePixmap(d->display, d->window, d->width, + d->height, d->depth); +#endif +} + +#ifdef PIXMAP +void xarc(xdisplay * d, int x, int y, unsigned int w, + unsigned int h, int a1, int a2) +{ + XDrawArc(d->display, d->pixmap, d->gc, x, y, w, h, a1, a2); +} void xfillarc(xdisplay * d, int x, int y, unsigned int w, + unsigned int h, int a1, int a2) +{ + XFillArc(d->display, d->pixmap, d->gc, x, y, w, h, a1, a2); +} +#endif + +void xsize_set(xdisplay *d, int width, int height) +{ + XResizeWindow(d->display, d->window, width, height); +} + +int xmouse_x(xdisplay * d) +{ + + return d->mouse_x; +} + +int xmouse_y(xdisplay * d) +{ + return d->mouse_y; +} + +void xmouse_update(xdisplay * d) +{ + Window rootreturn, childreturn; + int rootx = 0, rooty = 0, buttons = 0; + + XEvent event; + + if (XCheckMaskEvent(d->display,ButtonPressMask | ButtonReleaseMask, &event)) { + if (event.type == ButtonPress) + d->mouse_buttons |= 1 << ((XButtonEvent*)(&event))->button; + else + d->mouse_buttons &= ~( 1 << ((XButtonEvent*)(&event))->button ); + } + + XQueryPointer(d->display, d->window, &rootreturn, &childreturn, + &rootx, &rooty, &(d->mouse_x), &(d->mouse_y), + &buttons); +} + +char xkeyboard_query(xdisplay * d) { + XEvent event; + + if (XCheckMaskEvent(d->display,KeyPressMask | KeyReleaseMask, &event)) { + char *str = + XKeysymToString(XLookupKeysym((XKeyPressedEvent*)(&event),0)); + + if ( ((XKeyPressedEvent*)(&event))->state & + (ControlMask|Mod1Mask|Mod2Mask|Mod3Mask|Mod4Mask|Mod5Mask) ) + return 0; + + if (str) { + char key; + + if (strlen(str) == 1) + key = str[0]; + else if (strcmp(str,"equal") == 0) + key = '='; + else if (strcmp(str,"minus") == 0) + key = '-'; + else if (strcmp(str,"bracketleft") == 0) + key = '['; + else if (strcmp(str,"bracketright") == 0) + key = ']'; + else if (strcmp(str,"comma") == 0) + key = ','; + else if (strcmp(str,"period") == 0) + key = '.'; + else if (strcmp(str,"slash") == 0) + key = '/'; + else return 0; + + if ( ((XKeyPressedEvent*)(&event))->state & ShiftMask ) + switch(key) { + case '=' : key = '+'; break; + case '[' : key = '{'; break; + case ']' : key = '}'; break; + case ',' : key = '<'; break; + case '/' : key = '?'; break; + default : + if (key >= 'a' && key <= 'z') + key = key+'A'-'a'; + break; + } + return key; + } + } + + return 0; +} + +int xsize_update(xdisplay *d,int *width,int *height) { + XEvent event; + + if (XCheckMaskEvent(d->display,StructureNotifyMask, &event)) { + if (event.type == ConfigureNotify) { + xupdate_size(d); + free_image(d); + alloc_image(d); + *width = d->linewidth; + *height = d->height; + return 1; + } + } + + return 0; +} + +unsigned int xmouse_buttons(xdisplay * d) +{ + return d->mouse_buttons; +} +#endif + +#endif diff --git a/xlib.h b/xlib.h new file mode 100644 index 0000000..e1e813e --- /dev/null +++ b/xlib.h @@ -0,0 +1,135 @@ +/* + * XaoS, a fast portable realtime fractal zoomer + * Copyright (C) 1996,1997 by + * + * Jan Hubicka (hubicka@paru.cas.cz) + * Thomas Marsh (tmarsh@austin.ibm.com) + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 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., 675 Mass Ave, Cambridge, MA 02139, USA. + */ +#ifndef XAOS_X11_H +#define XAOS_X11_H + +#include +#include +#include +#include +//#include "config.h" +//#define MITSHM + +#ifdef MITSHM +#include +#include +#include +#include +#endif /* MITSHM */ + +typedef struct { + int n; + XColor c[256]; +} xcol_t; + +typedef struct { + int privatecolormap; + int usedefault; + int nomitshm; +} xlibparam; + +typedef struct { + Colormap colormap; + Colormap defaultcolormap; + int fixedcolormap; + int privatecolormap; + xlibparam *params; + Display *display; + Window parent_window; + Window window; + unsigned int width, height; + unsigned int border_width; + unsigned long background; + int depth; + unsigned int classX; + Visual *visual; + unsigned long valuemask; + XSetWindowAttributes *attributes; + unsigned long attr_mask; + XSizeHints sizehints; + int screen; + char *window_name; + int status; + GC gc; + XGCValues xgcvalues; + xcol_t xcolor; + Pixmap pixmap; + XFontStruct *font_struct; + int screen_changed; + int lastx, lasty; + int mouse_x, mouse_y; + unsigned int mouse_buttons; + int current; + XImage *image[2]; +#ifdef MITSHM + XShmSegmentInfo xshminfo[2]; + int SharedMemOption; + int SharedMemFlag; +#endif /* MITSHM */ + unsigned long pixels[256]; + char *vbuffs[2]; + char *data[2]; + char *vbuff; + char *back; + int truecolor; + int linewidth; + + Cursor cursor; +} xdisplay; + +extern int alloc_shm_image(xdisplay * d); +extern void free_shm_image(xdisplay * d); +extern int alloc_image(xdisplay * d); +extern void free_image(xdisplay * d); +extern int xupdate_size(xdisplay * d); +extern void xflip_buffers(xdisplay * d); +extern xdisplay *xalloc_display(char *n, int x, int y, int width,int height, xlibparam * p); +extern void xfree_display(xdisplay * d); +extern void xsetcolor(xdisplay * d, int col); +extern int xsetfont(xdisplay * d, char *font_name); +extern int xalloc_color(xdisplay * d, int r, int g, int b, int readwrite); +extern void xfree_colors(xdisplay * d); +extern void xline(xdisplay * d, int x1, int y1, int x2, int y2); +extern void xmoveto(xdisplay * d, int x, int y); +extern void xlineto(xdisplay * d, int x, int y); +extern void xrect(xdisplay * d, int x1, int y1, int x2, int y2); +extern void xfillrect(xdisplay * d, int x1, int y1, int x2, int y2); +extern void xarc(xdisplay * d, int x, int y, unsigned int w, + unsigned int h, int a1, int a2); +extern void xfillarc(xdisplay * d, int x, int y, unsigned int w, + unsigned int h, int a1, int a2); +extern void xpoint(xdisplay * d, int x, int y); +extern void xflush(xdisplay * d); +extern void xclear_screen(xdisplay * d); +extern void xrotate_palette(xdisplay * d, int direction, unsigned char c[3][256], int ncolors); +extern void draw_screen(xdisplay * d); +extern void xouttext(xdisplay * d, char *string); +extern void xresize(xdisplay * d, XEvent * ev); +extern void xsize_set(xdisplay *d, int width, int height); +extern int xsize_update(xdisplay *d,int *width,int *height); +extern int xmouse_x(xdisplay * d); +extern int xmouse_y(xdisplay * d); +extern void xmouse_update(xdisplay * d); +extern char xkeyboard_query(xdisplay * d); +extern unsigned int xmouse_buttons(xdisplay * d); + +#endif /* XAOS_X11_H */ diff --git a/xlibwrap.cc b/xlibwrap.cc new file mode 100644 index 0000000..c8e93d6 --- /dev/null +++ b/xlibwrap.cc @@ -0,0 +1,187 @@ +/* Synaesthesia - program to display sound graphically + Copyright (C) 1997 Paul Francis Harrison + + 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., + 675 Mass Ave, Cambridge, MA 02139, USA. + + The author may be contacted at: + pfh@yoyo.cc.monash.edu.au + or + 27 Bond St., Mt. Waverley, 3149, Melbourne, Australia +*/ + +#include +#include +#include + +#include "syna.h" + +#ifndef X_DISPLAY_MISSING + +extern "C" { +#include "xlib.h" +} + +static xlibparam xparams = { 0, 0, 0 }; +static xdisplay *d; + +static bool lowColor, paletteInstalled; +static unsigned char mapping[64]; + +static int setOnePalette(int i,int r,int g,int b) { + return xalloc_color(d,r*257,g*257,b*257,0); +} + +bool XScreen::init(int xHint,int yHint,int widthHint,int heightHint,bool fullscreen) { + d = xalloc_display("Synaesthesia",xHint,yHint,widthHint,heightHint,&xparams); + if (d == 0) { + printf("Opening an X window failed.\n"); + return false; + } + + if (!alloc_image(d)) error("allocating window buffer"); + outWidth = widthHint; + outHeight = heightHint; + + //XMoveWindow(d->display,d->window,xHint,yHint); + + #define BOUND(x) ((x) > 255 ? 255 : (x)) + #define PEAKIFY(x) BOUND((x) - (x)*(255-(x))/255/2) + + lowColor = (d->depth <= 8); + +/* if (!lowColor) { + for(i=0;i<256;i++) + attempt(setPalette(i,PEAKIFY((i&15*16)), + PEAKIFY((i&15)*16+(i&15*16)/4), + PEAKIFY((i&15)*16)), + " in X: could not allocate sufficient palette entries"); + } else { + for(i=0;i<64;i++) + attempt(mapping[i] = setPalette(i,PEAKIFY((i&7*8)*4), + PEAKIFY((i&7)*32+(i&7*8)*2), + PEAKIFY((i&7)*32)), + " in X: could not allocate sufficient palette entries"); + }*/ + return true; +} + +void XScreen::setPalette(unsigned char *palette) { + int i; + + if (paletteInstalled) + xfree_colors(d); + + if (!lowColor) { + for(i=0;i<256;i++) + attempt(setOnePalette(i,palette[i*3],palette[i*3+1],palette[i*3+2]), + " in X: could not allocate sufficient palette entries"); + } else { + const int array[8] = {0,2,5,7,9,11,13,15}; + for(i=0;i<64;i++) { + int p = (array[i&7]+array[i/8]*16) *3; + attempt(mapping[i] = setOnePalette(i,palette[p],palette[p+1],palette[p+2]), + " in X: could not allocate sufficient palette entries"); + } + } + + paletteInstalled = true; +} + +void XScreen::end() { + if (paletteInstalled) + xfree_colors(d); + xfree_display(d); +} + +void XScreen::inputUpdate(int &mouseX,int &mouseY,int &mouseButtons,char &keyHit) { + int newWidth,newHeight; + if (xsize_update(d,&newWidth,&newHeight)) + if (newWidth != outWidth || newHeight != outHeight) + allocOutput(newWidth,newHeight); + + xmouse_update(d); + mouseX = xmouse_x(d); + mouseY = xmouse_y(d); + mouseButtons = xmouse_buttons(d); + keyHit = xkeyboard_query(d); +} + +void XScreen::show(void) { + register uint32_t *ptr2 = (uint32_t*)output; + uint32_t *ptr1 = (uint32_t*)d->back; + int i = outWidth*outHeight/sizeof(uint32_t); + if (lowColor) + do { + register uint32_t const r1 = *(ptr2++); + register uint32_t const r2 = *(ptr2++); + + //if (r1 || r2) { +#ifdef LITTLEENDIAN + register uint32_t const v = + mapping[((r1&0xe0ul)>>5)|((r1&0xe000ul)>>10)] + |mapping[((r1&0xe00000ul)>>21)|((r1&0xe0000000ul)>>26)]*256U; + *(ptr1++) = v | + mapping[((r2&0xe0ul)>>5)|((r2&0xe000ul)>>10)]*65536U + |mapping[((r2&0xe00000ul)>>21)|((r2&0xe0000000ul)>>26)]*16777216U; +#else + register uint32_t const v = + mapping[((r2&0xe0ul)>>5)|((r2&0xe000ul)>>10)] + |mapping[((r2&0xe00000ul)>>21)|((r2&0xe0000000ul)>>26)]*256U; + *(ptr1++) = v | + mapping[((r1&0xe0ul)>>5)|((r1&0xe000ul)>>10)]*65536U + |mapping[((r1&0xe00000ul)>>21)|((r1&0xe0000000ul)>>26)]*16777216U; +#endif + //} else ptr1++; + } while (--i); + else + do { + // Asger Alstrup Nielsen's (alstrup@diku.dk) + // optimized 32 bit screen loop + register uint32_t const r1 = *(ptr2++); + register uint32_t const r2 = *(ptr2++); + + //if (r1 || r2) { +#ifdef LITTLEENDIAN + register uint32_t const v = + ((r1 & 0x000000f0ul) >> 4) + | ((r1 & 0x0000f000ul) >> 8) + | ((r1 & 0x00f00000ul) >> 12) + | ((r1 & 0xf0000000ul) >> 16); + *(ptr1++) = v | + ((r2 & 0x000000f0ul) << 16 -4) + | ((r2 & 0x0000f000ul) << 16 -8) + | ((r2 & 0x00f00000ul) << 16 -12) + | ((r2 & 0xf0000000ul) << 16 -16); +#else + register uint32_t const v = + ((r2 & 0x000000f0ul) >> 4) + | ((r2 & 0x0000f000ul) >> 8) + | ((r2 & 0x00f00000ul) >> 12) + | ((r2 & 0xf0000000ul) >> 16); + *(ptr1++) = v | + ((r1 & 0x000000f0ul) << 16 -4) + | ((r1 & 0x0000f000ul) << 16 -8) + | ((r1 & 0x00f00000ul) << 16 -12) + | ((r1 & 0xf0000000ul) << 16 -16); +#endif + //} else ptr1++; + } while (--i); + + xflip_buffers(d); + draw_screen(d); + XFlush(d->display); +} + +#endif -- 2.11.4.GIT