119370Spst GNU GENERAL PUBLIC LICENSE 219370Spst Version 2, June 1991 319370Spst 419370Spst Copyright (C) 1989, 1991 Free Software Foundation, Inc. 546283Sdfr 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 619370Spst Everyone is permitted to copy and distribute verbatim copies 719370Spst of this license document, but changing it is not allowed. 819370Spst 919370Spst Preamble 1019370Spst 1119370Spst The licenses for most software are designed to take away your 1219370Spstfreedom to share and change it. By contrast, the GNU General Public 1319370SpstLicense is intended to guarantee your freedom to share and change free 1419370Spstsoftware--to make sure the software is free for all its users. This 1519370SpstGeneral Public License applies to most of the Free Software 1619370SpstFoundation's software and to any other program whose authors commit to 1719370Spstusing it. (Some other Free Software Foundation software is covered by 1819370Spstthe GNU Library General Public License instead.) You can apply it to 1919370Spstyour programs, too. 2019370Spst 2119370Spst When we speak of free software, we are referring to freedom, not 2219370Spstprice. Our General Public Licenses are designed to make sure that you 2319370Spsthave the freedom to distribute copies of free software (and charge for 2419370Spstthis service if you wish), that you receive source code or can get it 2519370Spstif you want it, that you can change the software or use pieces of it 2619370Spstin new free programs; and that you know you can do these things. 2719370Spst 2819370Spst To protect your rights, we need to make restrictions that forbid 2919370Spstanyone to deny you these rights or to ask you to surrender the rights. 3019370SpstThese restrictions translate to certain responsibilities for you if you 3119370Spstdistribute copies of the software, or if you modify it. 3219370Spst 3319370Spst For example, if you distribute copies of such a program, whether 3419370Spstgratis or for a fee, you must give the recipients all the rights that 3519370Spstyou have. You must make sure that they, too, receive or can get the 3619370Spstsource code. And you must show them these terms so they know their 3719370Spstrights. 3819370Spst 3919370Spst We protect your rights with two steps: (1) copyright the software, and 4019370Spst(2) offer you this license which gives you legal permission to copy, 4119370Spstdistribute and/or modify the software. 4219370Spst 4319370Spst Also, for each author's protection and ours, we want to make certain 4419370Spstthat everyone understands that there is no warranty for this free 4519370Spstsoftware. If the software is modified by someone else and passed on, we 4619370Spstwant its recipients to know that what they have is not the original, so 4719370Spstthat any problems introduced by others will not reflect on the original 4819370Spstauthors' reputations. 4919370Spst 5019370Spst Finally, any free program is threatened constantly by software 5119370Spstpatents. We wish to avoid the danger that redistributors of a free 5219370Spstprogram will individually obtain patent licenses, in effect making the 5319370Spstprogram proprietary. To prevent this, we have made it clear that any 5419370Spstpatent must be licensed for everyone's free use or not licensed at all. 5519370Spst 5619370Spst The precise terms and conditions for copying, distribution and 5719370Spstmodification follow. 5819370Spst 5919370Spst GNU GENERAL PUBLIC LICENSE 6019370Spst TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 6119370Spst 6219370Spst 0. This License applies to any program or other work which contains 6319370Spsta notice placed by the copyright holder saying it may be distributed 6419370Spstunder the terms of this General Public License. The "Program", below, 6519370Spstrefers to any such program or work, and a "work based on the Program" 6619370Spstmeans either the Program or any derivative work under copyright law: 6719370Spstthat is to say, a work containing the Program or a portion of it, 6819370Spsteither verbatim or with modifications and/or translated into another 6919370Spstlanguage. (Hereinafter, translation is included without limitation in 7019370Spstthe term "modification".) Each licensee is addressed as "you". 7119370Spst 7219370SpstActivities other than copying, distribution and modification are not 7319370Spstcovered by this License; they are outside its scope. The act of 7419370Spstrunning the Program is not restricted, and the output from the Program 7519370Spstis covered only if its contents constitute a work based on the 7619370SpstProgram (independent of having been made by running the Program). 7719370SpstWhether that is true depends on what the Program does. 7819370Spst 7919370Spst 1. You may copy and distribute verbatim copies of the Program's 8019370Spstsource code as you receive it, in any medium, provided that you 8119370Spstconspicuously and appropriately publish on each copy an appropriate 8219370Spstcopyright notice and disclaimer of warranty; keep intact all the 8319370Spstnotices that refer to this License and to the absence of any warranty; 8419370Spstand give any other recipients of the Program a copy of this License 8519370Spstalong with the Program. 8619370Spst 8719370SpstYou may charge a fee for the physical act of transferring a copy, and 8819370Spstyou may at your option offer warranty protection in exchange for a fee. 8919370Spst 9019370Spst 2. You may modify your copy or copies of the Program or any portion 9119370Spstof it, thus forming a work based on the Program, and copy and 9219370Spstdistribute such modifications or work under the terms of Section 1 9319370Spstabove, provided that you also meet all of these conditions: 9419370Spst 9519370Spst a) You must cause the modified files to carry prominent notices 9619370Spst stating that you changed the files and the date of any change. 9719370Spst 9819370Spst b) You must cause any work that you distribute or publish, that in 9919370Spst whole or in part contains or is derived from the Program or any 10019370Spst part thereof, to be licensed as a whole at no charge to all third 10119370Spst parties under the terms of this License. 10219370Spst 10319370Spst c) If the modified program normally reads commands interactively 10419370Spst when run, you must cause it, when started running for such 10519370Spst interactive use in the most ordinary way, to print or display an 10619370Spst announcement including an appropriate copyright notice and a 10719370Spst notice that there is no warranty (or else, saying that you provide 10819370Spst a warranty) and that users may redistribute the program under 10919370Spst these conditions, and telling the user how to view a copy of this 11019370Spst License. (Exception: if the Program itself is interactive but 11119370Spst does not normally print such an announcement, your work based on 11219370Spst the Program is not required to print an announcement.) 11319370Spst 11419370SpstThese requirements apply to the modified work as a whole. If 11519370Spstidentifiable sections of that work are not derived from the Program, 11619370Spstand can be reasonably considered independent and separate works in 11719370Spstthemselves, then this License, and its terms, do not apply to those 11819370Spstsections when you distribute them as separate works. But when you 11919370Spstdistribute the same sections as part of a whole which is a work based 12019370Spston the Program, the distribution of the whole must be on the terms of 12119370Spstthis License, whose permissions for other licensees extend to the 12219370Spstentire whole, and thus to each and every part regardless of who wrote it. 12319370Spst 12419370SpstThus, it is not the intent of this section to claim rights or contest 12519370Spstyour rights to work written entirely by you; rather, the intent is to 12619370Spstexercise the right to control the distribution of derivative or 12719370Spstcollective works based on the Program. 12819370Spst 12919370SpstIn addition, mere aggregation of another work not based on the Program 13019370Spstwith the Program (or with a work based on the Program) on a volume of 13119370Spsta storage or distribution medium does not bring the other work under 13219370Spstthe scope of this License. 13319370Spst 13419370Spst 3. You may copy and distribute the Program (or a work based on it, 13519370Spstunder Section 2) in object code or executable form under the terms of 13619370SpstSections 1 and 2 above provided that you also do one of the following: 13719370Spst 13819370Spst a) Accompany it with the complete corresponding machine-readable 13919370Spst source code, which must be distributed under the terms of Sections 14019370Spst 1 and 2 above on a medium customarily used for software interchange; or, 14119370Spst 14219370Spst b) Accompany it with a written offer, valid for at least three 14319370Spst years, to give any third party, for a charge no more than your 14419370Spst cost of physically performing source distribution, a complete 14519370Spst machine-readable copy of the corresponding source code, to be 14619370Spst distributed under the terms of Sections 1 and 2 above on a medium 14719370Spst customarily used for software interchange; or, 14819370Spst 14919370Spst c) Accompany it with the information you received as to the offer 15019370Spst to distribute corresponding source code. (This alternative is 15119370Spst allowed only for noncommercial distribution and only if you 15219370Spst received the program in object code or executable form with such 15319370Spst an offer, in accord with Subsection b above.) 15419370Spst 15519370SpstThe source code for a work means the preferred form of the work for 15619370Spstmaking modifications to it. For an executable work, complete source 15719370Spstcode means all the source code for all modules it contains, plus any 15819370Spstassociated interface definition files, plus the scripts used to 15919370Spstcontrol compilation and installation of the executable. However, as a 16019370Spstspecial exception, the source code distributed need not include 16119370Spstanything that is normally distributed (in either source or binary 16219370Spstform) with the major components (compiler, kernel, and so on) of the 16319370Spstoperating system on which the executable runs, unless that component 16419370Spstitself accompanies the executable. 16519370Spst 16619370SpstIf distribution of executable or object code is made by offering 16719370Spstaccess to copy from a designated place, then offering equivalent 16819370Spstaccess to copy the source code from the same place counts as 16919370Spstdistribution of the source code, even though third parties are not 17019370Spstcompelled to copy the source along with the object code. 17119370Spst 17219370Spst 4. You may not copy, modify, sublicense, or distribute the Program 17319370Spstexcept as expressly provided under this License. Any attempt 17419370Spstotherwise to copy, modify, sublicense or distribute the Program is 17519370Spstvoid, and will automatically terminate your rights under this License. 17619370SpstHowever, parties who have received copies, or rights, from you under 17719370Spstthis License will not have their licenses terminated so long as such 17819370Spstparties remain in full compliance. 17919370Spst 18019370Spst 5. You are not required to accept this License, since you have not 18119370Spstsigned it. However, nothing else grants you permission to modify or 18219370Spstdistribute the Program or its derivative works. These actions are 18319370Spstprohibited by law if you do not accept this License. Therefore, by 18419370Spstmodifying or distributing the Program (or any work based on the 18519370SpstProgram), you indicate your acceptance of this License to do so, and 18619370Spstall its terms and conditions for copying, distributing or modifying 18719370Spstthe Program or works based on it. 18819370Spst 18919370Spst 6. Each time you redistribute the Program (or any work based on the 19019370SpstProgram), the recipient automatically receives a license from the 19119370Spstoriginal licensor to copy, distribute or modify the Program subject to 19219370Spstthese terms and conditions. You may not impose any further 19319370Spstrestrictions on the recipients' exercise of the rights granted herein. 19419370SpstYou are not responsible for enforcing compliance by third parties to 19519370Spstthis License. 19619370Spst 19719370Spst 7. If, as a consequence of a court judgment or allegation of patent 19819370Spstinfringement or for any other reason (not limited to patent issues), 19919370Spstconditions are imposed on you (whether by court order, agreement or 20019370Spstotherwise) that contradict the conditions of this License, they do not 20119370Spstexcuse you from the conditions of this License. If you cannot 20219370Spstdistribute so as to satisfy simultaneously your obligations under this 20319370SpstLicense and any other pertinent obligations, then as a consequence you 20419370Spstmay not distribute the Program at all. For example, if a patent 20519370Spstlicense would not permit royalty-free redistribution of the Program by 20619370Spstall those who receive copies directly or indirectly through you, then 20719370Spstthe only way you could satisfy both it and this License would be to 20819370Spstrefrain entirely from distribution of the Program. 20919370Spst 21019370SpstIf any portion of this section is held invalid or unenforceable under 21119370Spstany particular circumstance, the balance of the section is intended to 21219370Spstapply and the section as a whole is intended to apply in other 21319370Spstcircumstances. 21419370Spst 21519370SpstIt is not the purpose of this section to induce you to infringe any 21619370Spstpatents or other property right claims or to contest validity of any 21719370Spstsuch claims; this section has the sole purpose of protecting the 21819370Spstintegrity of the free software distribution system, which is 21919370Spstimplemented by public license practices. Many people have made 22019370Spstgenerous contributions to the wide range of software distributed 22119370Spstthrough that system in reliance on consistent application of that 22219370Spstsystem; it is up to the author/donor to decide if he or she is willing 22319370Spstto distribute software through any other system and a licensee cannot 22419370Spstimpose that choice. 22519370Spst 22619370SpstThis section is intended to make thoroughly clear what is believed to 22719370Spstbe a consequence of the rest of this License. 22819370Spst 22919370Spst 8. If the distribution and/or use of the Program is restricted in 23019370Spstcertain countries either by patents or by copyrighted interfaces, the 23119370Spstoriginal copyright holder who places the Program under this License 23219370Spstmay add an explicit geographical distribution limitation excluding 23319370Spstthose countries, so that distribution is permitted only in or among 23419370Spstcountries not thus excluded. In such case, this License incorporates 23519370Spstthe limitation as if written in the body of this License. 23619370Spst 23719370Spst 9. The Free Software Foundation may publish revised and/or new versions 23819370Spstof the General Public License from time to time. Such new versions will 23919370Spstbe similar in spirit to the present version, but may differ in detail to 24019370Spstaddress new problems or concerns. 24119370Spst 24219370SpstEach version is given a distinguishing version number. If the Program 24319370Spstspecifies a version number of this License which applies to it and "any 24419370Spstlater version", you have the option of following the terms and conditions 24519370Spsteither of that version or of any later version published by the Free 24619370SpstSoftware Foundation. If the Program does not specify a version number of 24719370Spstthis License, you may choose any version ever published by the Free Software 24819370SpstFoundation. 24919370Spst 25019370Spst 10. If you wish to incorporate parts of the Program into other free 25119370Spstprograms whose distribution conditions are different, write to the author 25219370Spstto ask for permission. For software which is copyrighted by the Free 25319370SpstSoftware Foundation, write to the Free Software Foundation; we sometimes 25419370Spstmake exceptions for this. Our decision will be guided by the two goals 25519370Spstof preserving the free status of all derivatives of our free software and 25619370Spstof promoting the sharing and reuse of software generally. 25719370Spst 25819370Spst NO WARRANTY 25919370Spst 26019370Spst 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 26119370SpstFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 26219370SpstOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 26319370SpstPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 26419370SpstOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 26519370SpstMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 26619370SpstTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 26719370SpstPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 26819370SpstREPAIR OR CORRECTION. 26919370Spst 27019370Spst 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 27119370SpstWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 27219370SpstREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 27319370SpstINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 27419370SpstOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 27519370SpstTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 27619370SpstYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 27719370SpstPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 27819370SpstPOSSIBILITY OF SUCH DAMAGES. 27919370Spst 28019370Spst END OF TERMS AND CONDITIONS 28119370Spst 28246283Sdfr How to Apply These Terms to Your New Programs 28319370Spst 28419370Spst If you develop a new program, and you want it to be of the greatest 28519370Spstpossible use to the public, the best way to achieve this is to make it 28619370Spstfree software which everyone can redistribute and change under these terms. 28719370Spst 28819370Spst To do so, attach the following notices to the program. It is safest 28919370Spstto attach them to the start of each source file to most effectively 29019370Spstconvey the exclusion of warranty; and each file should have at least 29119370Spstthe "copyright" line and a pointer to where the full notice is found. 29219370Spst 29319370Spst <one line to give the program's name and a brief idea of what it does.> 29419370Spst Copyright (C) 19yy <name of author> 29519370Spst 29619370Spst This program is free software; you can redistribute it and/or modify 29719370Spst it under the terms of the GNU General Public License as published by 29819370Spst the Free Software Foundation; either version 2 of the License, or 29919370Spst (at your option) any later version. 30019370Spst 30119370Spst This program is distributed in the hope that it will be useful, 30219370Spst but WITHOUT ANY WARRANTY; without even the implied warranty of 30319370Spst MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 30419370Spst GNU General Public License for more details. 30519370Spst 30619370Spst You should have received a copy of the GNU General Public License 30719370Spst along with this program; if not, write to the Free Software 30846283Sdfr Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 30919370Spst 31046283Sdfr 31119370SpstAlso add information on how to contact you by electronic and paper mail. 31219370Spst 31319370SpstIf the program is interactive, make it output a short notice like this 31419370Spstwhen it starts in an interactive mode: 31519370Spst 31619370Spst Gnomovision version 69, Copyright (C) 19yy name of author 31719370Spst Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 31819370Spst This is free software, and you are welcome to redistribute it 31919370Spst under certain conditions; type `show c' for details. 32019370Spst 32119370SpstThe hypothetical commands `show w' and `show c' should show the appropriate 32219370Spstparts of the General Public License. Of course, the commands you use may 32319370Spstbe called something other than `show w' and `show c'; they could even be 32419370Spstmouse-clicks or menu items--whatever suits your program. 32519370Spst 32619370SpstYou should also get your employer (if you work as a programmer) or your 32719370Spstschool, if any, to sign a "copyright disclaimer" for the program, if 32819370Spstnecessary. Here is a sample; alter the names: 32919370Spst 33019370Spst Yoyodyne, Inc., hereby disclaims all copyright interest in the program 33119370Spst `Gnomovision' (which makes passes at compilers) written by James Hacker. 33219370Spst 33319370Spst <signature of Ty Coon>, 1 April 1989 33419370Spst Ty Coon, President of Vice 33519370Spst 33619370SpstThis General Public License does not permit incorporating your program into 33719370Spstproprietary programs. If your program is a subroutine library, you may 33819370Spstconsider it more useful to permit linking proprietary applications with the 33919370Spstlibrary. If this is what you want to do, use the GNU Library General 34019370SpstPublic License instead of this License. 341