1*14ea45b6Slogin GNU GENERAL PUBLIC LICENSE 2*14ea45b6Slogin Version 2, June 1991 3*14ea45b6Slogin 4*14ea45b6Slogin Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5*14ea45b6Slogin 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*14ea45b6Slogin Everyone is permitted to copy and distribute verbatim copies 7*14ea45b6Slogin of this license document, but changing it is not allowed. 8*14ea45b6Slogin 9*14ea45b6Slogin Preamble 10*14ea45b6Slogin 11*14ea45b6Slogin The licenses for most software are designed to take away your 12*14ea45b6Sloginfreedom to share and change it. By contrast, the GNU General Public 13*14ea45b6SloginLicense is intended to guarantee your freedom to share and change free 14*14ea45b6Sloginsoftware--to make sure the software is free for all its users. This 15*14ea45b6SloginGeneral Public License applies to most of the Free Software 16*14ea45b6SloginFoundation's software and to any other program whose authors commit to 17*14ea45b6Sloginusing it. (Some other Free Software Foundation software is covered by 18*14ea45b6Sloginthe GNU Lesser General Public License instead.) You can apply it to 19*14ea45b6Sloginyour programs, too. 20*14ea45b6Slogin 21*14ea45b6Slogin When we speak of free software, we are referring to freedom, not 22*14ea45b6Sloginprice. Our General Public Licenses are designed to make sure that you 23*14ea45b6Sloginhave the freedom to distribute copies of free software (and charge for 24*14ea45b6Sloginthis service if you wish), that you receive source code or can get it 25*14ea45b6Sloginif you want it, that you can change the software or use pieces of it 26*14ea45b6Sloginin new free programs; and that you know you can do these things. 27*14ea45b6Slogin 28*14ea45b6Slogin To protect your rights, we need to make restrictions that forbid 29*14ea45b6Sloginanyone to deny you these rights or to ask you to surrender the rights. 30*14ea45b6SloginThese restrictions translate to certain responsibilities for you if you 31*14ea45b6Slogindistribute copies of the software, or if you modify it. 32*14ea45b6Slogin 33*14ea45b6Slogin For example, if you distribute copies of such a program, whether 34*14ea45b6Slogingratis or for a fee, you must give the recipients all the rights that 35*14ea45b6Sloginyou have. You must make sure that they, too, receive or can get the 36*14ea45b6Sloginsource code. And you must show them these terms so they know their 37*14ea45b6Sloginrights. 38*14ea45b6Slogin 39*14ea45b6Slogin We protect your rights with two steps: (1) copyright the software, and 40*14ea45b6Slogin(2) offer you this license which gives you legal permission to copy, 41*14ea45b6Slogindistribute and/or modify the software. 42*14ea45b6Slogin 43*14ea45b6Slogin Also, for each author's protection and ours, we want to make certain 44*14ea45b6Sloginthat everyone understands that there is no warranty for this free 45*14ea45b6Sloginsoftware. If the software is modified by someone else and passed on, we 46*14ea45b6Sloginwant its recipients to know that what they have is not the original, so 47*14ea45b6Sloginthat any problems introduced by others will not reflect on the original 48*14ea45b6Sloginauthors' reputations. 49*14ea45b6Slogin 50*14ea45b6Slogin Finally, any free program is threatened constantly by software 51*14ea45b6Sloginpatents. We wish to avoid the danger that redistributors of a free 52*14ea45b6Sloginprogram will individually obtain patent licenses, in effect making the 53*14ea45b6Sloginprogram proprietary. To prevent this, we have made it clear that any 54*14ea45b6Sloginpatent must be licensed for everyone's free use or not licensed at all. 55*14ea45b6Slogin 56*14ea45b6Slogin The precise terms and conditions for copying, distribution and 57*14ea45b6Sloginmodification follow. 58*14ea45b6Slogin 59*14ea45b6Slogin GNU GENERAL PUBLIC LICENSE 60*14ea45b6Slogin TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*14ea45b6Slogin 62*14ea45b6Slogin 0. This License applies to any program or other work which contains 63*14ea45b6Slogina notice placed by the copyright holder saying it may be distributed 64*14ea45b6Sloginunder the terms of this General Public License. The "Program", below, 65*14ea45b6Sloginrefers to any such program or work, and a "work based on the Program" 66*14ea45b6Sloginmeans either the Program or any derivative work under copyright law: 67*14ea45b6Sloginthat is to say, a work containing the Program or a portion of it, 68*14ea45b6Slogineither verbatim or with modifications and/or translated into another 69*14ea45b6Sloginlanguage. (Hereinafter, translation is included without limitation in 70*14ea45b6Sloginthe term "modification".) Each licensee is addressed as "you". 71*14ea45b6Slogin 72*14ea45b6SloginActivities other than copying, distribution and modification are not 73*14ea45b6Slogincovered by this License; they are outside its scope. The act of 74*14ea45b6Sloginrunning the Program is not restricted, and the output from the Program 75*14ea45b6Sloginis covered only if its contents constitute a work based on the 76*14ea45b6SloginProgram (independent of having been made by running the Program). 77*14ea45b6SloginWhether that is true depends on what the Program does. 78*14ea45b6Slogin 79*14ea45b6Slogin 1. You may copy and distribute verbatim copies of the Program's 80*14ea45b6Sloginsource code as you receive it, in any medium, provided that you 81*14ea45b6Sloginconspicuously and appropriately publish on each copy an appropriate 82*14ea45b6Slogincopyright notice and disclaimer of warranty; keep intact all the 83*14ea45b6Sloginnotices that refer to this License and to the absence of any warranty; 84*14ea45b6Sloginand give any other recipients of the Program a copy of this License 85*14ea45b6Sloginalong with the Program. 86*14ea45b6Slogin 87*14ea45b6SloginYou may charge a fee for the physical act of transferring a copy, and 88*14ea45b6Sloginyou may at your option offer warranty protection in exchange for a fee. 89*14ea45b6Slogin 90*14ea45b6Slogin 2. You may modify your copy or copies of the Program or any portion 91*14ea45b6Sloginof it, thus forming a work based on the Program, and copy and 92*14ea45b6Slogindistribute such modifications or work under the terms of Section 1 93*14ea45b6Sloginabove, provided that you also meet all of these conditions: 94*14ea45b6Slogin 95*14ea45b6Slogin a) You must cause the modified files to carry prominent notices 96*14ea45b6Slogin stating that you changed the files and the date of any change. 97*14ea45b6Slogin 98*14ea45b6Slogin b) You must cause any work that you distribute or publish, that in 99*14ea45b6Slogin whole or in part contains or is derived from the Program or any 100*14ea45b6Slogin part thereof, to be licensed as a whole at no charge to all third 101*14ea45b6Slogin parties under the terms of this License. 102*14ea45b6Slogin 103*14ea45b6Slogin c) If the modified program normally reads commands interactively 104*14ea45b6Slogin when run, you must cause it, when started running for such 105*14ea45b6Slogin interactive use in the most ordinary way, to print or display an 106*14ea45b6Slogin announcement including an appropriate copyright notice and a 107*14ea45b6Slogin notice that there is no warranty (or else, saying that you provide 108*14ea45b6Slogin a warranty) and that users may redistribute the program under 109*14ea45b6Slogin these conditions, and telling the user how to view a copy of this 110*14ea45b6Slogin License. (Exception: if the Program itself is interactive but 111*14ea45b6Slogin does not normally print such an announcement, your work based on 112*14ea45b6Slogin the Program is not required to print an announcement.) 113*14ea45b6Slogin 114*14ea45b6SloginThese requirements apply to the modified work as a whole. If 115*14ea45b6Sloginidentifiable sections of that work are not derived from the Program, 116*14ea45b6Sloginand can be reasonably considered independent and separate works in 117*14ea45b6Sloginthemselves, then this License, and its terms, do not apply to those 118*14ea45b6Sloginsections when you distribute them as separate works. But when you 119*14ea45b6Slogindistribute the same sections as part of a whole which is a work based 120*14ea45b6Sloginon the Program, the distribution of the whole must be on the terms of 121*14ea45b6Sloginthis License, whose permissions for other licensees extend to the 122*14ea45b6Sloginentire whole, and thus to each and every part regardless of who wrote it. 123*14ea45b6Slogin 124*14ea45b6SloginThus, it is not the intent of this section to claim rights or contest 125*14ea45b6Sloginyour rights to work written entirely by you; rather, the intent is to 126*14ea45b6Sloginexercise the right to control the distribution of derivative or 127*14ea45b6Slogincollective works based on the Program. 128*14ea45b6Slogin 129*14ea45b6SloginIn addition, mere aggregation of another work not based on the Program 130*14ea45b6Sloginwith the Program (or with a work based on the Program) on a volume of 131*14ea45b6Slogina storage or distribution medium does not bring the other work under 132*14ea45b6Sloginthe scope of this License. 133*14ea45b6Slogin 134*14ea45b6Slogin 3. You may copy and distribute the Program (or a work based on it, 135*14ea45b6Sloginunder Section 2) in object code or executable form under the terms of 136*14ea45b6SloginSections 1 and 2 above provided that you also do one of the following: 137*14ea45b6Slogin 138*14ea45b6Slogin a) Accompany it with the complete corresponding machine-readable 139*14ea45b6Slogin source code, which must be distributed under the terms of Sections 140*14ea45b6Slogin 1 and 2 above on a medium customarily used for software interchange; or, 141*14ea45b6Slogin 142*14ea45b6Slogin b) Accompany it with a written offer, valid for at least three 143*14ea45b6Slogin years, to give any third party, for a charge no more than your 144*14ea45b6Slogin cost of physically performing source distribution, a complete 145*14ea45b6Slogin machine-readable copy of the corresponding source code, to be 146*14ea45b6Slogin distributed under the terms of Sections 1 and 2 above on a medium 147*14ea45b6Slogin customarily used for software interchange; or, 148*14ea45b6Slogin 149*14ea45b6Slogin c) Accompany it with the information you received as to the offer 150*14ea45b6Slogin to distribute corresponding source code. (This alternative is 151*14ea45b6Slogin allowed only for noncommercial distribution and only if you 152*14ea45b6Slogin received the program in object code or executable form with such 153*14ea45b6Slogin an offer, in accord with Subsection b above.) 154*14ea45b6Slogin 155*14ea45b6SloginThe source code for a work means the preferred form of the work for 156*14ea45b6Sloginmaking modifications to it. For an executable work, complete source 157*14ea45b6Slogincode means all the source code for all modules it contains, plus any 158*14ea45b6Sloginassociated interface definition files, plus the scripts used to 159*14ea45b6Slogincontrol compilation and installation of the executable. However, as a 160*14ea45b6Sloginspecial exception, the source code distributed need not include 161*14ea45b6Sloginanything that is normally distributed (in either source or binary 162*14ea45b6Sloginform) with the major components (compiler, kernel, and so on) of the 163*14ea45b6Sloginoperating system on which the executable runs, unless that component 164*14ea45b6Sloginitself accompanies the executable. 165*14ea45b6Slogin 166*14ea45b6SloginIf distribution of executable or object code is made by offering 167*14ea45b6Sloginaccess to copy from a designated place, then offering equivalent 168*14ea45b6Sloginaccess to copy the source code from the same place counts as 169*14ea45b6Slogindistribution of the source code, even though third parties are not 170*14ea45b6Slogincompelled to copy the source along with the object code. 171*14ea45b6Slogin 172*14ea45b6Slogin 4. You may not copy, modify, sublicense, or distribute the Program 173*14ea45b6Sloginexcept as expressly provided under this License. Any attempt 174*14ea45b6Sloginotherwise to copy, modify, sublicense or distribute the Program is 175*14ea45b6Sloginvoid, and will automatically terminate your rights under this License. 176*14ea45b6SloginHowever, parties who have received copies, or rights, from you under 177*14ea45b6Sloginthis License will not have their licenses terminated so long as such 178*14ea45b6Sloginparties remain in full compliance. 179*14ea45b6Slogin 180*14ea45b6Slogin 5. You are not required to accept this License, since you have not 181*14ea45b6Sloginsigned it. However, nothing else grants you permission to modify or 182*14ea45b6Slogindistribute the Program or its derivative works. These actions are 183*14ea45b6Sloginprohibited by law if you do not accept this License. Therefore, by 184*14ea45b6Sloginmodifying or distributing the Program (or any work based on the 185*14ea45b6SloginProgram), you indicate your acceptance of this License to do so, and 186*14ea45b6Sloginall its terms and conditions for copying, distributing or modifying 187*14ea45b6Sloginthe Program or works based on it. 188*14ea45b6Slogin 189*14ea45b6Slogin 6. Each time you redistribute the Program (or any work based on the 190*14ea45b6SloginProgram), the recipient automatically receives a license from the 191*14ea45b6Sloginoriginal licensor to copy, distribute or modify the Program subject to 192*14ea45b6Sloginthese terms and conditions. You may not impose any further 193*14ea45b6Sloginrestrictions on the recipients' exercise of the rights granted herein. 194*14ea45b6SloginYou are not responsible for enforcing compliance by third parties to 195*14ea45b6Sloginthis License. 196*14ea45b6Slogin 197*14ea45b6Slogin 7. If, as a consequence of a court judgment or allegation of patent 198*14ea45b6Slogininfringement or for any other reason (not limited to patent issues), 199*14ea45b6Sloginconditions are imposed on you (whether by court order, agreement or 200*14ea45b6Sloginotherwise) that contradict the conditions of this License, they do not 201*14ea45b6Sloginexcuse you from the conditions of this License. If you cannot 202*14ea45b6Slogindistribute so as to satisfy simultaneously your obligations under this 203*14ea45b6SloginLicense and any other pertinent obligations, then as a consequence you 204*14ea45b6Sloginmay not distribute the Program at all. For example, if a patent 205*14ea45b6Sloginlicense would not permit royalty-free redistribution of the Program by 206*14ea45b6Sloginall those who receive copies directly or indirectly through you, then 207*14ea45b6Sloginthe only way you could satisfy both it and this License would be to 208*14ea45b6Sloginrefrain entirely from distribution of the Program. 209*14ea45b6Slogin 210*14ea45b6SloginIf any portion of this section is held invalid or unenforceable under 211*14ea45b6Sloginany particular circumstance, the balance of the section is intended to 212*14ea45b6Sloginapply and the section as a whole is intended to apply in other 213*14ea45b6Slogincircumstances. 214*14ea45b6Slogin 215*14ea45b6SloginIt is not the purpose of this section to induce you to infringe any 216*14ea45b6Sloginpatents or other property right claims or to contest validity of any 217*14ea45b6Sloginsuch claims; this section has the sole purpose of protecting the 218*14ea45b6Sloginintegrity of the free software distribution system, which is 219*14ea45b6Sloginimplemented by public license practices. Many people have made 220*14ea45b6Slogingenerous contributions to the wide range of software distributed 221*14ea45b6Sloginthrough that system in reliance on consistent application of that 222*14ea45b6Sloginsystem; it is up to the author/donor to decide if he or she is willing 223*14ea45b6Sloginto distribute software through any other system and a licensee cannot 224*14ea45b6Sloginimpose that choice. 225*14ea45b6Slogin 226*14ea45b6SloginThis section is intended to make thoroughly clear what is believed to 227*14ea45b6Sloginbe a consequence of the rest of this License. 228*14ea45b6Slogin 229*14ea45b6Slogin 8. If the distribution and/or use of the Program is restricted in 230*14ea45b6Slogincertain countries either by patents or by copyrighted interfaces, the 231*14ea45b6Sloginoriginal copyright holder who places the Program under this License 232*14ea45b6Sloginmay add an explicit geographical distribution limitation excluding 233*14ea45b6Sloginthose countries, so that distribution is permitted only in or among 234*14ea45b6Slogincountries not thus excluded. In such case, this License incorporates 235*14ea45b6Sloginthe limitation as if written in the body of this License. 236*14ea45b6Slogin 237*14ea45b6Slogin 9. The Free Software Foundation may publish revised and/or new versions 238*14ea45b6Sloginof the General Public License from time to time. Such new versions will 239*14ea45b6Sloginbe similar in spirit to the present version, but may differ in detail to 240*14ea45b6Sloginaddress new problems or concerns. 241*14ea45b6Slogin 242*14ea45b6SloginEach version is given a distinguishing version number. If the Program 243*14ea45b6Sloginspecifies a version number of this License which applies to it and "any 244*14ea45b6Sloginlater version", you have the option of following the terms and conditions 245*14ea45b6Slogineither of that version or of any later version published by the Free 246*14ea45b6SloginSoftware Foundation. If the Program does not specify a version number of 247*14ea45b6Sloginthis License, you may choose any version ever published by the Free Software 248*14ea45b6SloginFoundation. 249*14ea45b6Slogin 250*14ea45b6Slogin 10. If you wish to incorporate parts of the Program into other free 251*14ea45b6Sloginprograms whose distribution conditions are different, write to the author 252*14ea45b6Sloginto ask for permission. For software which is copyrighted by the Free 253*14ea45b6SloginSoftware Foundation, write to the Free Software Foundation; we sometimes 254*14ea45b6Sloginmake exceptions for this. Our decision will be guided by the two goals 255*14ea45b6Sloginof preserving the free status of all derivatives of our free software and 256*14ea45b6Sloginof promoting the sharing and reuse of software generally. 257*14ea45b6Slogin 258*14ea45b6Slogin NO WARRANTY 259*14ea45b6Slogin 260*14ea45b6Slogin 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*14ea45b6SloginFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*14ea45b6SloginOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*14ea45b6SloginPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*14ea45b6SloginOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*14ea45b6SloginMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*14ea45b6SloginTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*14ea45b6SloginPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*14ea45b6SloginREPAIR OR CORRECTION. 269*14ea45b6Slogin 270*14ea45b6Slogin 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*14ea45b6SloginWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*14ea45b6SloginREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*14ea45b6SloginINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*14ea45b6SloginOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*14ea45b6SloginTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*14ea45b6SloginYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*14ea45b6SloginPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*14ea45b6SloginPOSSIBILITY OF SUCH DAMAGES. 279*14ea45b6Slogin 280*14ea45b6Slogin END OF TERMS AND CONDITIONS 281*14ea45b6Slogin 282*14ea45b6Slogin How to Apply These Terms to Your New Programs 283*14ea45b6Slogin 284*14ea45b6Slogin If you develop a new program, and you want it to be of the greatest 285*14ea45b6Sloginpossible use to the public, the best way to achieve this is to make it 286*14ea45b6Sloginfree software which everyone can redistribute and change under these terms. 287*14ea45b6Slogin 288*14ea45b6Slogin To do so, attach the following notices to the program. It is safest 289*14ea45b6Sloginto attach them to the start of each source file to most effectively 290*14ea45b6Sloginconvey the exclusion of warranty; and each file should have at least 291*14ea45b6Sloginthe "copyright" line and a pointer to where the full notice is found. 292*14ea45b6Slogin 293*14ea45b6Slogin <one line to give the program's name and a brief idea of what it does.> 294*14ea45b6Slogin Copyright (C) <year> <name of author> 295*14ea45b6Slogin 296*14ea45b6Slogin This program is free software; you can redistribute it and/or modify 297*14ea45b6Slogin it under the terms of the GNU General Public License as published by 298*14ea45b6Slogin the Free Software Foundation; either version 2 of the License, or 299*14ea45b6Slogin (at your option) any later version. 300*14ea45b6Slogin 301*14ea45b6Slogin This program is distributed in the hope that it will be useful, 302*14ea45b6Slogin but WITHOUT ANY WARRANTY; without even the implied warranty of 303*14ea45b6Slogin MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*14ea45b6Slogin GNU General Public License for more details. 305*14ea45b6Slogin 306*14ea45b6Slogin You should have received a copy of the GNU General Public License along 307*14ea45b6Slogin with this program; if not, write to the Free Software Foundation, Inc., 308*14ea45b6Slogin 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309*14ea45b6Slogin 310*14ea45b6SloginAlso add information on how to contact you by electronic and paper mail. 311*14ea45b6Slogin 312*14ea45b6SloginIf the program is interactive, make it output a short notice like this 313*14ea45b6Sloginwhen it starts in an interactive mode: 314*14ea45b6Slogin 315*14ea45b6Slogin Gnomovision version 69, Copyright (C) year name of author 316*14ea45b6Slogin Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*14ea45b6Slogin This is free software, and you are welcome to redistribute it 318*14ea45b6Slogin under certain conditions; type `show c' for details. 319*14ea45b6Slogin 320*14ea45b6SloginThe hypothetical commands `show w' and `show c' should show the appropriate 321*14ea45b6Sloginparts of the General Public License. Of course, the commands you use may 322*14ea45b6Sloginbe called something other than `show w' and `show c'; they could even be 323*14ea45b6Sloginmouse-clicks or menu items--whatever suits your program. 324*14ea45b6Slogin 325*14ea45b6SloginYou should also get your employer (if you work as a programmer) or your 326*14ea45b6Sloginschool, if any, to sign a "copyright disclaimer" for the program, if 327*14ea45b6Sloginnecessary. Here is a sample; alter the names: 328*14ea45b6Slogin 329*14ea45b6Slogin Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*14ea45b6Slogin `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*14ea45b6Slogin 332*14ea45b6Slogin <signature of Ty Coon>, 1 April 1989 333*14ea45b6Slogin Ty Coon, President of Vice 334*14ea45b6Slogin 335*14ea45b6SloginThis General Public License does not permit incorporating your program into 336*14ea45b6Sloginproprietary programs. If your program is a subroutine library, you may 337*14ea45b6Sloginconsider it more useful to permit linking proprietary applications with the 338*14ea45b6Sloginlibrary. If this is what you want to do, use the GNU Lesser General 339*14ea45b6SloginPublic License instead of this License. 340