1*a9fa9459Szrj GNU GENERAL PUBLIC LICENSE 2*a9fa9459Szrj Version 2, June 1991 3*a9fa9459Szrj 4*a9fa9459Szrj Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*a9fa9459Szrj 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*a9fa9459Szrj Everyone is permitted to copy and distribute verbatim copies 7*a9fa9459Szrj of this license document, but changing it is not allowed. 8*a9fa9459Szrj 9*a9fa9459Szrj Preamble 10*a9fa9459Szrj 11*a9fa9459Szrj The licenses for most software are designed to take away your 12*a9fa9459Szrjfreedom to share and change it. By contrast, the GNU General Public 13*a9fa9459SzrjLicense is intended to guarantee your freedom to share and change free 14*a9fa9459Szrjsoftware--to make sure the software is free for all its users. This 15*a9fa9459SzrjGeneral Public License applies to most of the Free Software 16*a9fa9459SzrjFoundation's software and to any other program whose authors commit to 17*a9fa9459Szrjusing it. (Some other Free Software Foundation software is covered by 18*a9fa9459Szrjthe GNU Library General Public License instead.) You can apply it to 19*a9fa9459Szrjyour programs, too. 20*a9fa9459Szrj 21*a9fa9459Szrj When we speak of free software, we are referring to freedom, not 22*a9fa9459Szrjprice. Our General Public Licenses are designed to make sure that you 23*a9fa9459Szrjhave the freedom to distribute copies of free software (and charge for 24*a9fa9459Szrjthis service if you wish), that you receive source code or can get it 25*a9fa9459Szrjif you want it, that you can change the software or use pieces of it 26*a9fa9459Szrjin new free programs; and that you know you can do these things. 27*a9fa9459Szrj 28*a9fa9459Szrj To protect your rights, we need to make restrictions that forbid 29*a9fa9459Szrjanyone to deny you these rights or to ask you to surrender the rights. 30*a9fa9459SzrjThese restrictions translate to certain responsibilities for you if you 31*a9fa9459Szrjdistribute copies of the software, or if you modify it. 32*a9fa9459Szrj 33*a9fa9459Szrj For example, if you distribute copies of such a program, whether 34*a9fa9459Szrjgratis or for a fee, you must give the recipients all the rights that 35*a9fa9459Szrjyou have. You must make sure that they, too, receive or can get the 36*a9fa9459Szrjsource code. And you must show them these terms so they know their 37*a9fa9459Szrjrights. 38*a9fa9459Szrj 39*a9fa9459Szrj We protect your rights with two steps: (1) copyright the software, and 40*a9fa9459Szrj(2) offer you this license which gives you legal permission to copy, 41*a9fa9459Szrjdistribute and/or modify the software. 42*a9fa9459Szrj 43*a9fa9459Szrj Also, for each author's protection and ours, we want to make certain 44*a9fa9459Szrjthat everyone understands that there is no warranty for this free 45*a9fa9459Szrjsoftware. If the software is modified by someone else and passed on, we 46*a9fa9459Szrjwant its recipients to know that what they have is not the original, so 47*a9fa9459Szrjthat any problems introduced by others will not reflect on the original 48*a9fa9459Szrjauthors' reputations. 49*a9fa9459Szrj 50*a9fa9459Szrj Finally, any free program is threatened constantly by software 51*a9fa9459Szrjpatents. We wish to avoid the danger that redistributors of a free 52*a9fa9459Szrjprogram will individually obtain patent licenses, in effect making the 53*a9fa9459Szrjprogram proprietary. To prevent this, we have made it clear that any 54*a9fa9459Szrjpatent must be licensed for everyone's free use or not licensed at all. 55*a9fa9459Szrj 56*a9fa9459Szrj The precise terms and conditions for copying, distribution and 57*a9fa9459Szrjmodification follow. 58*a9fa9459Szrj 59*a9fa9459Szrj GNU GENERAL PUBLIC LICENSE 60*a9fa9459Szrj TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*a9fa9459Szrj 62*a9fa9459Szrj 0. This License applies to any program or other work which contains 63*a9fa9459Szrja notice placed by the copyright holder saying it may be distributed 64*a9fa9459Szrjunder the terms of this General Public License. The "Program", below, 65*a9fa9459Szrjrefers to any such program or work, and a "work based on the Program" 66*a9fa9459Szrjmeans either the Program or any derivative work under copyright law: 67*a9fa9459Szrjthat is to say, a work containing the Program or a portion of it, 68*a9fa9459Szrjeither verbatim or with modifications and/or translated into another 69*a9fa9459Szrjlanguage. (Hereinafter, translation is included without limitation in 70*a9fa9459Szrjthe term "modification".) Each licensee is addressed as "you". 71*a9fa9459Szrj 72*a9fa9459SzrjActivities other than copying, distribution and modification are not 73*a9fa9459Szrjcovered by this License; they are outside its scope. The act of 74*a9fa9459Szrjrunning the Program is not restricted, and the output from the Program 75*a9fa9459Szrjis covered only if its contents constitute a work based on the 76*a9fa9459SzrjProgram (independent of having been made by running the Program). 77*a9fa9459SzrjWhether that is true depends on what the Program does. 78*a9fa9459Szrj 79*a9fa9459Szrj 1. You may copy and distribute verbatim copies of the Program's 80*a9fa9459Szrjsource code as you receive it, in any medium, provided that you 81*a9fa9459Szrjconspicuously and appropriately publish on each copy an appropriate 82*a9fa9459Szrjcopyright notice and disclaimer of warranty; keep intact all the 83*a9fa9459Szrjnotices that refer to this License and to the absence of any warranty; 84*a9fa9459Szrjand give any other recipients of the Program a copy of this License 85*a9fa9459Szrjalong with the Program. 86*a9fa9459Szrj 87*a9fa9459SzrjYou may charge a fee for the physical act of transferring a copy, and 88*a9fa9459Szrjyou may at your option offer warranty protection in exchange for a fee. 89*a9fa9459Szrj 90*a9fa9459Szrj 2. You may modify your copy or copies of the Program or any portion 91*a9fa9459Szrjof it, thus forming a work based on the Program, and copy and 92*a9fa9459Szrjdistribute such modifications or work under the terms of Section 1 93*a9fa9459Szrjabove, provided that you also meet all of these conditions: 94*a9fa9459Szrj 95*a9fa9459Szrj a) You must cause the modified files to carry prominent notices 96*a9fa9459Szrj stating that you changed the files and the date of any change. 97*a9fa9459Szrj 98*a9fa9459Szrj b) You must cause any work that you distribute or publish, that in 99*a9fa9459Szrj whole or in part contains or is derived from the Program or any 100*a9fa9459Szrj part thereof, to be licensed as a whole at no charge to all third 101*a9fa9459Szrj parties under the terms of this License. 102*a9fa9459Szrj 103*a9fa9459Szrj c) If the modified program normally reads commands interactively 104*a9fa9459Szrj when run, you must cause it, when started running for such 105*a9fa9459Szrj interactive use in the most ordinary way, to print or display an 106*a9fa9459Szrj announcement including an appropriate copyright notice and a 107*a9fa9459Szrj notice that there is no warranty (or else, saying that you provide 108*a9fa9459Szrj a warranty) and that users may redistribute the program under 109*a9fa9459Szrj these conditions, and telling the user how to view a copy of this 110*a9fa9459Szrj License. (Exception: if the Program itself is interactive but 111*a9fa9459Szrj does not normally print such an announcement, your work based on 112*a9fa9459Szrj the Program is not required to print an announcement.) 113*a9fa9459Szrj 114*a9fa9459SzrjThese requirements apply to the modified work as a whole. If 115*a9fa9459Szrjidentifiable sections of that work are not derived from the Program, 116*a9fa9459Szrjand can be reasonably considered independent and separate works in 117*a9fa9459Szrjthemselves, then this License, and its terms, do not apply to those 118*a9fa9459Szrjsections when you distribute them as separate works. But when you 119*a9fa9459Szrjdistribute the same sections as part of a whole which is a work based 120*a9fa9459Szrjon the Program, the distribution of the whole must be on the terms of 121*a9fa9459Szrjthis License, whose permissions for other licensees extend to the 122*a9fa9459Szrjentire whole, and thus to each and every part regardless of who wrote it. 123*a9fa9459Szrj 124*a9fa9459SzrjThus, it is not the intent of this section to claim rights or contest 125*a9fa9459Szrjyour rights to work written entirely by you; rather, the intent is to 126*a9fa9459Szrjexercise the right to control the distribution of derivative or 127*a9fa9459Szrjcollective works based on the Program. 128*a9fa9459Szrj 129*a9fa9459SzrjIn addition, mere aggregation of another work not based on the Program 130*a9fa9459Szrjwith the Program (or with a work based on the Program) on a volume of 131*a9fa9459Szrja storage or distribution medium does not bring the other work under 132*a9fa9459Szrjthe scope of this License. 133*a9fa9459Szrj 134*a9fa9459Szrj 3. You may copy and distribute the Program (or a work based on it, 135*a9fa9459Szrjunder Section 2) in object code or executable form under the terms of 136*a9fa9459SzrjSections 1 and 2 above provided that you also do one of the following: 137*a9fa9459Szrj 138*a9fa9459Szrj a) Accompany it with the complete corresponding machine-readable 139*a9fa9459Szrj source code, which must be distributed under the terms of Sections 140*a9fa9459Szrj 1 and 2 above on a medium customarily used for software interchange; or, 141*a9fa9459Szrj 142*a9fa9459Szrj b) Accompany it with a written offer, valid for at least three 143*a9fa9459Szrj years, to give any third party, for a charge no more than your 144*a9fa9459Szrj cost of physically performing source distribution, a complete 145*a9fa9459Szrj machine-readable copy of the corresponding source code, to be 146*a9fa9459Szrj distributed under the terms of Sections 1 and 2 above on a medium 147*a9fa9459Szrj customarily used for software interchange; or, 148*a9fa9459Szrj 149*a9fa9459Szrj c) Accompany it with the information you received as to the offer 150*a9fa9459Szrj to distribute corresponding source code. (This alternative is 151*a9fa9459Szrj allowed only for noncommercial distribution and only if you 152*a9fa9459Szrj received the program in object code or executable form with such 153*a9fa9459Szrj an offer, in accord with Subsection b above.) 154*a9fa9459Szrj 155*a9fa9459SzrjThe source code for a work means the preferred form of the work for 156*a9fa9459Szrjmaking modifications to it. For an executable work, complete source 157*a9fa9459Szrjcode means all the source code for all modules it contains, plus any 158*a9fa9459Szrjassociated interface definition files, plus the scripts used to 159*a9fa9459Szrjcontrol compilation and installation of the executable. However, as a 160*a9fa9459Szrjspecial exception, the source code distributed need not include 161*a9fa9459Szrjanything that is normally distributed (in either source or binary 162*a9fa9459Szrjform) with the major components (compiler, kernel, and so on) of the 163*a9fa9459Szrjoperating system on which the executable runs, unless that component 164*a9fa9459Szrjitself accompanies the executable. 165*a9fa9459Szrj 166*a9fa9459SzrjIf distribution of executable or object code is made by offering 167*a9fa9459Szrjaccess to copy from a designated place, then offering equivalent 168*a9fa9459Szrjaccess to copy the source code from the same place counts as 169*a9fa9459Szrjdistribution of the source code, even though third parties are not 170*a9fa9459Szrjcompelled to copy the source along with the object code. 171*a9fa9459Szrj 172*a9fa9459Szrj 4. You may not copy, modify, sublicense, or distribute the Program 173*a9fa9459Szrjexcept as expressly provided under this License. Any attempt 174*a9fa9459Szrjotherwise to copy, modify, sublicense or distribute the Program is 175*a9fa9459Szrjvoid, and will automatically terminate your rights under this License. 176*a9fa9459SzrjHowever, parties who have received copies, or rights, from you under 177*a9fa9459Szrjthis License will not have their licenses terminated so long as such 178*a9fa9459Szrjparties remain in full compliance. 179*a9fa9459Szrj 180*a9fa9459Szrj 5. You are not required to accept this License, since you have not 181*a9fa9459Szrjsigned it. However, nothing else grants you permission to modify or 182*a9fa9459Szrjdistribute the Program or its derivative works. These actions are 183*a9fa9459Szrjprohibited by law if you do not accept this License. Therefore, by 184*a9fa9459Szrjmodifying or distributing the Program (or any work based on the 185*a9fa9459SzrjProgram), you indicate your acceptance of this License to do so, and 186*a9fa9459Szrjall its terms and conditions for copying, distributing or modifying 187*a9fa9459Szrjthe Program or works based on it. 188*a9fa9459Szrj 189*a9fa9459Szrj 6. Each time you redistribute the Program (or any work based on the 190*a9fa9459SzrjProgram), the recipient automatically receives a license from the 191*a9fa9459Szrjoriginal licensor to copy, distribute or modify the Program subject to 192*a9fa9459Szrjthese terms and conditions. You may not impose any further 193*a9fa9459Szrjrestrictions on the recipients' exercise of the rights granted herein. 194*a9fa9459SzrjYou are not responsible for enforcing compliance by third parties to 195*a9fa9459Szrjthis License. 196*a9fa9459Szrj 197*a9fa9459Szrj 7. If, as a consequence of a court judgment or allegation of patent 198*a9fa9459Szrjinfringement or for any other reason (not limited to patent issues), 199*a9fa9459Szrjconditions are imposed on you (whether by court order, agreement or 200*a9fa9459Szrjotherwise) that contradict the conditions of this License, they do not 201*a9fa9459Szrjexcuse you from the conditions of this License. If you cannot 202*a9fa9459Szrjdistribute so as to satisfy simultaneously your obligations under this 203*a9fa9459SzrjLicense and any other pertinent obligations, then as a consequence you 204*a9fa9459Szrjmay not distribute the Program at all. For example, if a patent 205*a9fa9459Szrjlicense would not permit royalty-free redistribution of the Program by 206*a9fa9459Szrjall those who receive copies directly or indirectly through you, then 207*a9fa9459Szrjthe only way you could satisfy both it and this License would be to 208*a9fa9459Szrjrefrain entirely from distribution of the Program. 209*a9fa9459Szrj 210*a9fa9459SzrjIf any portion of this section is held invalid or unenforceable under 211*a9fa9459Szrjany particular circumstance, the balance of the section is intended to 212*a9fa9459Szrjapply and the section as a whole is intended to apply in other 213*a9fa9459Szrjcircumstances. 214*a9fa9459Szrj 215*a9fa9459SzrjIt is not the purpose of this section to induce you to infringe any 216*a9fa9459Szrjpatents or other property right claims or to contest validity of any 217*a9fa9459Szrjsuch claims; this section has the sole purpose of protecting the 218*a9fa9459Szrjintegrity of the free software distribution system, which is 219*a9fa9459Szrjimplemented by public license practices. Many people have made 220*a9fa9459Szrjgenerous contributions to the wide range of software distributed 221*a9fa9459Szrjthrough that system in reliance on consistent application of that 222*a9fa9459Szrjsystem; it is up to the author/donor to decide if he or she is willing 223*a9fa9459Szrjto distribute software through any other system and a licensee cannot 224*a9fa9459Szrjimpose that choice. 225*a9fa9459Szrj 226*a9fa9459SzrjThis section is intended to make thoroughly clear what is believed to 227*a9fa9459Szrjbe a consequence of the rest of this License. 228*a9fa9459Szrj 229*a9fa9459Szrj 8. If the distribution and/or use of the Program is restricted in 230*a9fa9459Szrjcertain countries either by patents or by copyrighted interfaces, the 231*a9fa9459Szrjoriginal copyright holder who places the Program under this License 232*a9fa9459Szrjmay add an explicit geographical distribution limitation excluding 233*a9fa9459Szrjthose countries, so that distribution is permitted only in or among 234*a9fa9459Szrjcountries not thus excluded. In such case, this License incorporates 235*a9fa9459Szrjthe limitation as if written in the body of this License. 236*a9fa9459Szrj 237*a9fa9459Szrj 9. The Free Software Foundation may publish revised and/or new versions 238*a9fa9459Szrjof the General Public License from time to time. Such new versions will 239*a9fa9459Szrjbe similar in spirit to the present version, but may differ in detail to 240*a9fa9459Szrjaddress new problems or concerns. 241*a9fa9459Szrj 242*a9fa9459SzrjEach version is given a distinguishing version number. If the Program 243*a9fa9459Szrjspecifies a version number of this License which applies to it and "any 244*a9fa9459Szrjlater version", you have the option of following the terms and conditions 245*a9fa9459Szrjeither of that version or of any later version published by the Free 246*a9fa9459SzrjSoftware Foundation. If the Program does not specify a version number of 247*a9fa9459Szrjthis License, you may choose any version ever published by the Free Software 248*a9fa9459SzrjFoundation. 249*a9fa9459Szrj 250*a9fa9459Szrj 10. If you wish to incorporate parts of the Program into other free 251*a9fa9459Szrjprograms whose distribution conditions are different, write to the author 252*a9fa9459Szrjto ask for permission. For software which is copyrighted by the Free 253*a9fa9459SzrjSoftware Foundation, write to the Free Software Foundation; we sometimes 254*a9fa9459Szrjmake exceptions for this. Our decision will be guided by the two goals 255*a9fa9459Szrjof preserving the free status of all derivatives of our free software and 256*a9fa9459Szrjof promoting the sharing and reuse of software generally. 257*a9fa9459Szrj 258*a9fa9459Szrj NO WARRANTY 259*a9fa9459Szrj 260*a9fa9459Szrj 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*a9fa9459SzrjFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*a9fa9459SzrjOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*a9fa9459SzrjPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*a9fa9459SzrjOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*a9fa9459SzrjMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*a9fa9459SzrjTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*a9fa9459SzrjPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*a9fa9459SzrjREPAIR OR CORRECTION. 269*a9fa9459Szrj 270*a9fa9459Szrj 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*a9fa9459SzrjWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*a9fa9459SzrjREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*a9fa9459SzrjINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*a9fa9459SzrjOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*a9fa9459SzrjTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*a9fa9459SzrjYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*a9fa9459SzrjPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*a9fa9459SzrjPOSSIBILITY OF SUCH DAMAGES. 279*a9fa9459Szrj 280*a9fa9459Szrj END OF TERMS AND CONDITIONS 281*a9fa9459Szrj 282*a9fa9459Szrj How to Apply These Terms to Your New Programs 283*a9fa9459Szrj 284*a9fa9459Szrj If you develop a new program, and you want it to be of the greatest 285*a9fa9459Szrjpossible use to the public, the best way to achieve this is to make it 286*a9fa9459Szrjfree software which everyone can redistribute and change under these terms. 287*a9fa9459Szrj 288*a9fa9459Szrj To do so, attach the following notices to the program. It is safest 289*a9fa9459Szrjto attach them to the start of each source file to most effectively 290*a9fa9459Szrjconvey the exclusion of warranty; and each file should have at least 291*a9fa9459Szrjthe "copyright" line and a pointer to where the full notice is found. 292*a9fa9459Szrj 293*a9fa9459Szrj <one line to give the program's name and a brief idea of what it does.> 294*a9fa9459Szrj Copyright (C) <year> <name of author> 295*a9fa9459Szrj 296*a9fa9459Szrj This program is free software; you can redistribute it and/or modify 297*a9fa9459Szrj it under the terms of the GNU General Public License as published by 298*a9fa9459Szrj the Free Software Foundation; either version 2 of the License, or 299*a9fa9459Szrj (at your option) any later version. 300*a9fa9459Szrj 301*a9fa9459Szrj This program is distributed in the hope that it will be useful, 302*a9fa9459Szrj but WITHOUT ANY WARRANTY; without even the implied warranty of 303*a9fa9459Szrj MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*a9fa9459Szrj GNU General Public License for more details. 305*a9fa9459Szrj 306*a9fa9459Szrj You should have received a copy of the GNU General Public License 307*a9fa9459Szrj along with this program; if not, write to the Free Software 308*a9fa9459Szrj Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 309*a9fa9459Szrj 310*a9fa9459Szrj 311*a9fa9459SzrjAlso add information on how to contact you by electronic and paper mail. 312*a9fa9459Szrj 313*a9fa9459SzrjIf the program is interactive, make it output a short notice like this 314*a9fa9459Szrjwhen it starts in an interactive mode: 315*a9fa9459Szrj 316*a9fa9459Szrj Gnomovision version 69, Copyright (C) year name of author 317*a9fa9459Szrj Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318*a9fa9459Szrj This is free software, and you are welcome to redistribute it 319*a9fa9459Szrj under certain conditions; type `show c' for details. 320*a9fa9459Szrj 321*a9fa9459SzrjThe hypothetical commands `show w' and `show c' should show the appropriate 322*a9fa9459Szrjparts of the General Public License. Of course, the commands you use may 323*a9fa9459Szrjbe called something other than `show w' and `show c'; they could even be 324*a9fa9459Szrjmouse-clicks or menu items--whatever suits your program. 325*a9fa9459Szrj 326*a9fa9459SzrjYou should also get your employer (if you work as a programmer) or your 327*a9fa9459Szrjschool, if any, to sign a "copyright disclaimer" for the program, if 328*a9fa9459Szrjnecessary. Here is a sample; alter the names: 329*a9fa9459Szrj 330*a9fa9459Szrj Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331*a9fa9459Szrj `Gnomovision' (which makes passes at compilers) written by James Hacker. 332*a9fa9459Szrj 333*a9fa9459Szrj <signature of Ty Coon>, 1 April 1989 334*a9fa9459Szrj Ty Coon, President of Vice 335*a9fa9459Szrj 336*a9fa9459SzrjThis General Public License does not permit incorporating your program into 337*a9fa9459Szrjproprietary programs. If your program is a subroutine library, you may 338*a9fa9459Szrjconsider it more useful to permit linking proprietary applications with the 339*a9fa9459Szrjlibrary. If this is what you want to do, use the GNU Library General 340*a9fa9459SzrjPublic License instead of this License. 341