167064Sobrien                    GNU GENERAL PUBLIC LICENSE
267064Sobrien                       Version 2, June 1991
318214Speter
467064Sobrien Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5228060Sbapt                          51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
667064Sobrien                          USA.
718214Speter Everyone is permitted to copy and distribute verbatim copies
818214Speter of this license document, but changing it is not allowed.
918214Speter
1067064Sobrien                            Preamble
1118214Speter
1267064Sobrien  The licenses for most software are designed to take away your
1367064Sobrienfreedom to share and change it.  By contrast, the GNU General Public
1418214SpeterLicense is intended to guarantee your freedom to share and change free
1567064Sobriensoftware--to make sure the software is free for all its users.  This
1667064SobrienGeneral Public License applies to most of the Free Software
1767064SobrienFoundation's software and to any other program whose authors commit to
1867064Sobrienusing it.  (Some other Free Software Foundation software is covered by
1967064Sobrienthe GNU Library General Public License instead.)  You can apply it to
2067064Sobrienyour programs, too.
2118214Speter
2218214Speter  When we speak of free software, we are referring to freedom, not
2367064Sobrienprice.  Our General Public Licenses are designed to make sure that you
2467064Sobrienhave the freedom to distribute copies of free software (and charge for
2567064Sobrienthis service if you wish), that you receive source code or can get it
2667064Sobrienif you want it, that you can change the software or use pieces of it
2767064Sobrienin new free programs; and that you know you can do these things.
2818214Speter
2918214Speter  To protect your rights, we need to make restrictions that forbid
3018214Speteranyone to deny you these rights or to ask you to surrender the rights.
3118214SpeterThese restrictions translate to certain responsibilities for you if you
3218214Speterdistribute copies of the software, or if you modify it.
3318214Speter
3467064Sobrien  For example, if you distribute copies of such a program, whether
3518214Spetergratis or for a fee, you must give the recipients all the rights that
3618214Speteryou have.  You must make sure that they, too, receive or can get the
3767064Sobriensource code.  And you must show them these terms so they know their
3867064Sobrienrights.
3918214Speter
4018214Speter  We protect your rights with two steps: (1) copyright the software, and
4118214Speter(2) offer you this license which gives you legal permission to copy,
4218214Speterdistribute and/or modify the software.
4318214Speter
4418214Speter  Also, for each author's protection and ours, we want to make certain
4518214Speterthat everyone understands that there is no warranty for this free
4618214Spetersoftware.  If the software is modified by someone else and passed on, we
4718214Speterwant its recipients to know that what they have is not the original, so
4818214Speterthat any problems introduced by others will not reflect on the original
4918214Speterauthors' reputations.
5018214Speter
5167064Sobrien  Finally, any free program is threatened constantly by software
5267064Sobrienpatents.  We wish to avoid the danger that redistributors of a free
5367064Sobrienprogram will individually obtain patent licenses, in effect making the
5467064Sobrienprogram proprietary.  To prevent this, we have made it clear that any
5567064Sobrienpatent must be licensed for everyone's free use or not licensed at all.
5667064Sobrien
5718214Speter  The precise terms and conditions for copying, distribution and
5818214Spetermodification follow.
5918214Speter
6067064Sobrien                    GNU GENERAL PUBLIC LICENSE
6118214Speter   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
6218214Speter
6367064Sobrien  0. This License applies to any program or other work which contains
6467064Sobriena notice placed by the copyright holder saying it may be distributed
6567064Sobrienunder the terms of this General Public License.  The "Program", below,
6667064Sobrienrefers to any such program or work, and a "work based on the Program"
6767064Sobrienmeans either the Program or any derivative work under copyright law:
6867064Sobrienthat is to say, a work containing the Program or a portion of it,
6967064Sobrieneither verbatim or with modifications and/or translated into another
7067064Sobrienlanguage.  (Hereinafter, translation is included without limitation in
7167064Sobrienthe term "modification".)  Each licensee is addressed as "you".
7218214Speter
7367064SobrienActivities other than copying, distribution and modification are not
7467064Sobriencovered by this License; they are outside its scope.  The act of
7567064Sobrienrunning the Program is not restricted, and the output from the Program
7667064Sobrienis covered only if its contents constitute a work based on the
7767064SobrienProgram (independent of having been made by running the Program).
7867064SobrienWhether that is true depends on what the Program does.
7918214Speter
8067064Sobrien  1. You may copy and distribute verbatim copies of the Program's
8167064Sobriensource code as you receive it, in any medium, provided that you
8267064Sobrienconspicuously and appropriately publish on each copy an appropriate
8367064Sobriencopyright notice and disclaimer of warranty; keep intact all the
8467064Sobriennotices that refer to this License and to the absence of any warranty;
8567064Sobrienand give any other recipients of the Program a copy of this License
8667064Sobrienalong with the Program.
8718214Speter
8867064SobrienYou may charge a fee for the physical act of transferring a copy, and
8967064Sobrienyou may at your option offer warranty protection in exchange for a fee.
9018214Speter
9167064Sobrien  2. You may modify your copy or copies of the Program or any portion
9267064Sobrienof it, thus forming a work based on the Program, and copy and
9367064Sobriendistribute such modifications or work under the terms of Section 1
9467064Sobrienabove, provided that you also meet all of these conditions:
9518214Speter
9667064Sobrien    a) You must cause the modified files to carry prominent notices
9767064Sobrien    stating that you changed the files and the date of any change.
9818214Speter
9967064Sobrien    b) You must cause any work that you distribute or publish, that in
10067064Sobrien    whole or in part contains or is derived from the Program or any
10167064Sobrien    part thereof, to be licensed as a whole at no charge to all third
10267064Sobrien    parties under the terms of this License.
10318214Speter
10467064Sobrien    c) If the modified program normally reads commands interactively
10567064Sobrien    when run, you must cause it, when started running for such
10667064Sobrien    interactive use in the most ordinary way, to print or display an
10767064Sobrien    announcement including an appropriate copyright notice and a
10867064Sobrien    notice that there is no warranty (or else, saying that you provide
10967064Sobrien    a warranty) and that users may redistribute the program under
11067064Sobrien    these conditions, and telling the user how to view a copy of this
11167064Sobrien    License.  (Exception: if the Program itself is interactive but
11267064Sobrien    does not normally print such an announcement, your work based on
11367064Sobrien    the Program is not required to print an announcement.)
11418214Speter
11567064SobrienThese requirements apply to the modified work as a whole.  If
11667064Sobrienidentifiable sections of that work are not derived from the Program,
11767064Sobrienand can be reasonably considered independent and separate works in
11867064Sobrienthemselves, then this License, and its terms, do not apply to those
11967064Sobriensections when you distribute them as separate works.  But when you
12067064Sobriendistribute the same sections as part of a whole which is a work based
12167064Sobrienon the Program, the distribution of the whole must be on the terms of
12267064Sobrienthis License, whose permissions for other licensees extend to the
12367064Sobrienentire whole, and thus to each and every part regardless of who wrote it.
12418214Speter
12567064SobrienThus, it is not the intent of this section to claim rights or contest
12667064Sobrienyour rights to work written entirely by you; rather, the intent is to
12767064Sobrienexercise the right to control the distribution of derivative or
12867064Sobriencollective works based on the Program.
12918214Speter
13067064SobrienIn addition, mere aggregation of another work not based on the Program
13167064Sobrienwith the Program (or with a work based on the Program) on a volume of
13267064Sobriena storage or distribution medium does not bring the other work under
13367064Sobrienthe scope of this License.
13418214Speter
13567064Sobrien  3. You may copy and distribute the Program (or a work based on it,
13667064Sobrienunder Section 2) in object code or executable form under the terms of
13767064SobrienSections 1 and 2 above provided that you also do one of the following:
13867064Sobrien
13967064Sobrien    a) Accompany it with the complete corresponding machine-readable
14067064Sobrien    source code, which must be distributed under the terms of Sections
14167064Sobrien    1 and 2 above on a medium customarily used for software interchange; or,
14267064Sobrien
14367064Sobrien    b) Accompany it with a written offer, valid for at least three
14467064Sobrien    years, to give any third party, for a charge no more than your
14567064Sobrien    cost of physically performing source distribution, a complete
14667064Sobrien    machine-readable copy of the corresponding source code, to be
14767064Sobrien    distributed under the terms of Sections 1 and 2 above on a medium
14867064Sobrien    customarily used for software interchange; or,
14967064Sobrien
15067064Sobrien    c) Accompany it with the information you received as to the offer
15167064Sobrien    to distribute corresponding source code.  (This alternative is
15218214Speter    allowed only for noncommercial distribution and only if you
15367064Sobrien    received the program in object code or executable form with such
15467064Sobrien    an offer, in accord with Subsection b above.)
15518214Speter
15667064SobrienThe source code for a work means the preferred form of the work for
15767064Sobrienmaking modifications to it.  For an executable work, complete source
15867064Sobriencode means all the source code for all modules it contains, plus any
15967064Sobrienassociated interface definition files, plus the scripts used to
16067064Sobriencontrol compilation and installation of the executable.  However, as a
16167064Sobrienspecial exception, the source code distributed need not include
16267064Sobrienanything that is normally distributed (in either source or binary
16367064Sobrienform) with the major components (compiler, kernel, and so on) of the
16467064Sobrienoperating system on which the executable runs, unless that component
16567064Sobrienitself accompanies the executable.
16618214Speter
16767064SobrienIf distribution of executable or object code is made by offering
16867064Sobrienaccess to copy from a designated place, then offering equivalent
16967064Sobrienaccess to copy the source code from the same place counts as
17067064Sobriendistribution of the source code, even though third parties are not
17167064Sobriencompelled to copy the source along with the object code.
17267064Sobrien
17367064Sobrien  4. You may not copy, modify, sublicense, or distribute the Program
17467064Sobrienexcept as expressly provided under this License.  Any attempt
17567064Sobrienotherwise to copy, modify, sublicense or distribute the Program is
17667064Sobrienvoid, and will automatically terminate your rights under this License.
17767064SobrienHowever, parties who have received copies, or rights, from you under
17867064Sobrienthis License will not have their licenses terminated so long as such
17967064Sobrienparties remain in full compliance.
18018214Speter
18167064Sobrien  5. You are not required to accept this License, since you have not
18267064Sobriensigned it.  However, nothing else grants you permission to modify or
18367064Sobriendistribute the Program or its derivative works.  These actions are
18467064Sobrienprohibited by law if you do not accept this License.  Therefore, by
18567064Sobrienmodifying or distributing the Program (or any work based on the
18667064SobrienProgram), you indicate your acceptance of this License to do so, and
18767064Sobrienall its terms and conditions for copying, distributing or modifying
18867064Sobrienthe Program or works based on it.
18918214Speter
19018214Speter  6. Each time you redistribute the Program (or any work based on the
19167064SobrienProgram), the recipient automatically receives a license from the
19267064Sobrienoriginal licensor to copy, distribute or modify the Program subject to
19367064Sobrienthese terms and conditions.  You may not impose any further
19467064Sobrienrestrictions on the recipients' exercise of the rights granted herein.
19567064SobrienYou are not responsible for enforcing compliance by third parties to
19667064Sobrienthis License.
19767064Sobrien
19867064Sobrien  7. If, as a consequence of a court judgment or allegation of patent
19967064Sobrieninfringement or for any other reason (not limited to patent issues),
20067064Sobrienconditions are imposed on you (whether by court order, agreement or
20167064Sobrienotherwise) that contradict the conditions of this License, they do not
20267064Sobrienexcuse you from the conditions of this License.  If you cannot
20367064Sobriendistribute so as to satisfy simultaneously your obligations under this
20467064SobrienLicense and any other pertinent obligations, then as a consequence you
20567064Sobrienmay not distribute the Program at all.  For example, if a patent
20667064Sobrienlicense would not permit royalty-free redistribution of the Program by
20767064Sobrienall those who receive copies directly or indirectly through you, then
20867064Sobrienthe only way you could satisfy both it and this License would be to
20967064Sobrienrefrain entirely from distribution of the Program.
21067064Sobrien
21167064SobrienIf any portion of this section is held invalid or unenforceable under
21267064Sobrienany particular circumstance, the balance of the section is intended to
21367064Sobrienapply and the section as a whole is intended to apply in other
21467064Sobriencircumstances.
21567064Sobrien
21667064SobrienIt is not the purpose of this section to induce you to infringe any
21767064Sobrienpatents or other property right claims or to contest validity of any
21867064Sobriensuch claims; this section has the sole purpose of protecting the
21967064Sobrienintegrity of the free software distribution system, which is
22067064Sobrienimplemented by public license practices.  Many people have made
22167064Sobriengenerous contributions to the wide range of software distributed
22267064Sobrienthrough that system in reliance on consistent application of that
22367064Sobriensystem; it is up to the author/donor to decide if he or she is willing
22467064Sobriento distribute software through any other system and a licensee cannot
22567064Sobrienimpose that choice.
22667064Sobrien
22767064SobrienThis section is intended to make thoroughly clear what is believed to
22867064Sobrienbe a consequence of the rest of this License.
22918214Speter
23067064Sobrien  8. If the distribution and/or use of the Program is restricted in
23167064Sobriencertain countries either by patents or by copyrighted interfaces, the
23267064Sobrienoriginal copyright holder who places the Program under this License
23367064Sobrienmay add an explicit geographical distribution limitation excluding
23467064Sobrienthose countries, so that distribution is permitted only in or among
23567064Sobriencountries not thus excluded.  In such case, this License incorporates
23667064Sobrienthe limitation as if written in the body of this License.
23767064Sobrien
23867064Sobrien  9. The Free Software Foundation may publish revised and/or new versions
23918214Speterof the General Public License from time to time.  Such new versions will
24018214Speterbe similar in spirit to the present version, but may differ in detail to
24118214Speteraddress new problems or concerns.
24218214Speter
24318214SpeterEach version is given a distinguishing version number.  If the Program
24467064Sobrienspecifies a version number of this License which applies to it and "any
24518214Speterlater version", you have the option of following the terms and conditions
24618214Spetereither of that version or of any later version published by the Free
24718214SpeterSoftware Foundation.  If the Program does not specify a version number of
24867064Sobrienthis License, you may choose any version ever published by the Free Software
24918214SpeterFoundation.
25018214Speter
25167064Sobrien  10. If you wish to incorporate parts of the Program into other free
25218214Speterprograms whose distribution conditions are different, write to the author
25318214Speterto ask for permission.  For software which is copyrighted by the Free
25418214SpeterSoftware Foundation, write to the Free Software Foundation; we sometimes
25518214Spetermake exceptions for this.  Our decision will be guided by the two goals
25618214Speterof preserving the free status of all derivatives of our free software and
25718214Speterof promoting the sharing and reuse of software generally.
25818214Speter
25967064Sobrien                            NO WARRANTY
26018214Speter
26167064Sobrien  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
26218214SpeterFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
26318214SpeterOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
26418214SpeterPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
26518214SpeterOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
26618214SpeterMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
26718214SpeterTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
26818214SpeterPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
26918214SpeterREPAIR OR CORRECTION.
27018214Speter
27167064Sobrien  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
27218214SpeterWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
27318214SpeterREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
27418214SpeterINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
27518214SpeterOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
27618214SpeterTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
27718214SpeterYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
27818214SpeterPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
27918214SpeterPOSSIBILITY OF SUCH DAMAGES.
28018214Speter
28167064Sobrien                     END OF TERMS AND CONDITIONS
28218214Speter
28367064Sobrien        Appendix: How to Apply These Terms to Your New Programs
28418214Speter
28518214Speter  If you develop a new program, and you want it to be of the greatest
28667064Sobrienpossible use to the public, the best way to achieve this is to make it
28767064Sobrienfree software which everyone can redistribute and change under these terms.
28818214Speter
28967064Sobrien  To do so, attach the following notices to the program.  It is safest
29067064Sobriento attach them to the start of each source file to most effectively
29167064Sobrienconvey the exclusion of warranty; and each file should have at least
29267064Sobrienthe "copyright" line and a pointer to where the full notice is found.
29318214Speter
29418214Speter    <one line to give the program's name and a brief idea of what it does.>
29567064Sobrien    Copyright (C) <year>  <name of author>
29618214Speter
29718214Speter    This program is free software; you can redistribute it and/or modify
29818214Speter    it under the terms of the GNU General Public License as published by
29967064Sobrien    the Free Software Foundation; either version 2 of the License, or
30067064Sobrien    (at your option) any later version.
30118214Speter
30218214Speter    This program is distributed in the hope that it will be useful,
30318214Speter    but WITHOUT ANY WARRANTY; without even the implied warranty of
30418214Speter    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
30518214Speter    GNU General Public License for more details.
30618214Speter
30718214Speter    You should have received a copy of the GNU General Public License
30818214Speter    along with this program; if not, write to the Free Software
30967064Sobrien    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
31018214Speter
31118214SpeterAlso add information on how to contact you by electronic and paper mail.
31218214Speter
31318214SpeterIf the program is interactive, make it output a short notice like this
31418214Speterwhen it starts in an interactive mode:
31518214Speter
31667064Sobrien    Gnomovision version 69, Copyright (C) year  name of author
31718214Speter    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
31818214Speter    This is free software, and you are welcome to redistribute it
31918214Speter    under certain conditions; type `show c' for details.
32018214Speter
32167064SobrienThe hypothetical commands `show w' and `show c' should show the appropriate
32267064Sobrienparts of the General Public License.  Of course, the commands you use may
32367064Sobrienbe called something other than `show w' and `show c'; they could even be
32467064Sobrienmouse-clicks or menu items--whatever suits your program.
32518214Speter
32618214SpeterYou should also get your employer (if you work as a programmer) or your
32718214Speterschool, if any, to sign a "copyright disclaimer" for the program, if
32867064Sobriennecessary.  Here is a sample; alter the names:
32918214Speter
33067064Sobrien  Yoyodyne, Inc., hereby disclaims all copyright interest in the program
33167064Sobrien  `Gnomovision' (which makes passes at compilers) written by James Hacker.
33218214Speter
33318214Speter  <signature of Ty Coon>, 1 April 1989
33418214Speter  Ty Coon, President of Vice
33518214Speter
33667064SobrienThis General Public License does not permit incorporating your program into
33767064Sobrienproprietary programs.  If your program is a subroutine library, you may
33867064Sobrienconsider it more useful to permit linking proprietary applications with the
33967064Sobrienlibrary.  If this is what you want to do, use the GNU Library General
34067064SobrienPublic License instead of this License.
341