1*075184b7Schristos GNU GENERAL PUBLIC LICENSE 2*075184b7Schristos Version 2, June 1991 3*075184b7Schristos 4*075184b7Schristos Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*075184b7Schristos 675 Mass Ave, Cambridge, MA 02139, USA 6*075184b7Schristos Everyone is permitted to copy and distribute verbatim copies 7*075184b7Schristos of this license document, but changing it is not allowed. 8*075184b7Schristos 9*075184b7Schristos Preamble 10*075184b7Schristos 11*075184b7Schristos The licenses for most software are designed to take away your 12*075184b7Schristosfreedom to share and change it. By contrast, the GNU General Public 13*075184b7SchristosLicense is intended to guarantee your freedom to share and change free 14*075184b7Schristossoftware--to make sure the software is free for all its users. This 15*075184b7SchristosGeneral Public License applies to most of the Free Software 16*075184b7SchristosFoundation's software and to any other program whose authors commit to 17*075184b7Schristosusing it. (Some other Free Software Foundation software is covered by 18*075184b7Schristosthe GNU Library General Public License instead.) You can apply it to 19*075184b7Schristosyour programs, too. 20*075184b7Schristos 21*075184b7Schristos When we speak of free software, we are referring to freedom, not 22*075184b7Schristosprice. Our General Public Licenses are designed to make sure that you 23*075184b7Schristoshave the freedom to distribute copies of free software (and charge for 24*075184b7Schristosthis service if you wish), that you receive source code or can get it 25*075184b7Schristosif you want it, that you can change the software or use pieces of it 26*075184b7Schristosin new free programs; and that you know you can do these things. 27*075184b7Schristos 28*075184b7Schristos To protect your rights, we need to make restrictions that forbid 29*075184b7Schristosanyone to deny you these rights or to ask you to surrender the rights. 30*075184b7SchristosThese restrictions translate to certain responsibilities for you if you 31*075184b7Schristosdistribute copies of the software, or if you modify it. 32*075184b7Schristos 33*075184b7Schristos For example, if you distribute copies of such a program, whether 34*075184b7Schristosgratis or for a fee, you must give the recipients all the rights that 35*075184b7Schristosyou have. You must make sure that they, too, receive or can get the 36*075184b7Schristossource code. And you must show them these terms so they know their 37*075184b7Schristosrights. 38*075184b7Schristos 39*075184b7Schristos We protect your rights with two steps: (1) copyright the software, and 40*075184b7Schristos(2) offer you this license which gives you legal permission to copy, 41*075184b7Schristosdistribute and/or modify the software. 42*075184b7Schristos 43*075184b7Schristos Also, for each author's protection and ours, we want to make certain 44*075184b7Schristosthat everyone understands that there is no warranty for this free 45*075184b7Schristossoftware. If the software is modified by someone else and passed on, we 46*075184b7Schristoswant its recipients to know that what they have is not the original, so 47*075184b7Schristosthat any problems introduced by others will not reflect on the original 48*075184b7Schristosauthors' reputations. 49*075184b7Schristos 50*075184b7Schristos Finally, any free program is threatened constantly by software 51*075184b7Schristospatents. We wish to avoid the danger that redistributors of a free 52*075184b7Schristosprogram will individually obtain patent licenses, in effect making the 53*075184b7Schristosprogram proprietary. To prevent this, we have made it clear that any 54*075184b7Schristospatent must be licensed for everyone's free use or not licensed at all. 55*075184b7Schristos 56*075184b7Schristos The precise terms and conditions for copying, distribution and 57*075184b7Schristosmodification follow. 58*075184b7Schristos 59*075184b7Schristos GNU GENERAL PUBLIC LICENSE 60*075184b7Schristos TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*075184b7Schristos 62*075184b7Schristos 0. This License applies to any program or other work which contains 63*075184b7Schristosa notice placed by the copyright holder saying it may be distributed 64*075184b7Schristosunder the terms of this General Public License. The "Program", below, 65*075184b7Schristosrefers to any such program or work, and a "work based on the Program" 66*075184b7Schristosmeans either the Program or any derivative work under copyright law: 67*075184b7Schristosthat is to say, a work containing the Program or a portion of it, 68*075184b7Schristoseither verbatim or with modifications and/or translated into another 69*075184b7Schristoslanguage. (Hereinafter, translation is included without limitation in 70*075184b7Schristosthe term "modification".) Each licensee is addressed as "you". 71*075184b7Schristos 72*075184b7SchristosActivities other than copying, distribution and modification are not 73*075184b7Schristoscovered by this License; they are outside its scope. The act of 74*075184b7Schristosrunning the Program is not restricted, and the output from the Program 75*075184b7Schristosis covered only if its contents constitute a work based on the 76*075184b7SchristosProgram (independent of having been made by running the Program). 77*075184b7SchristosWhether that is true depends on what the Program does. 78*075184b7Schristos 79*075184b7Schristos 1. You may copy and distribute verbatim copies of the Program's 80*075184b7Schristossource code as you receive it, in any medium, provided that you 81*075184b7Schristosconspicuously and appropriately publish on each copy an appropriate 82*075184b7Schristoscopyright notice and disclaimer of warranty; keep intact all the 83*075184b7Schristosnotices that refer to this License and to the absence of any warranty; 84*075184b7Schristosand give any other recipients of the Program a copy of this License 85*075184b7Schristosalong with the Program. 86*075184b7Schristos 87*075184b7SchristosYou may charge a fee for the physical act of transferring a copy, and 88*075184b7Schristosyou may at your option offer warranty protection in exchange for a fee. 89*075184b7Schristos 90*075184b7Schristos 2. You may modify your copy or copies of the Program or any portion 91*075184b7Schristosof it, thus forming a work based on the Program, and copy and 92*075184b7Schristosdistribute such modifications or work under the terms of Section 1 93*075184b7Schristosabove, provided that you also meet all of these conditions: 94*075184b7Schristos 95*075184b7Schristos a) You must cause the modified files to carry prominent notices 96*075184b7Schristos stating that you changed the files and the date of any change. 97*075184b7Schristos 98*075184b7Schristos b) You must cause any work that you distribute or publish, that in 99*075184b7Schristos whole or in part contains or is derived from the Program or any 100*075184b7Schristos part thereof, to be licensed as a whole at no charge to all third 101*075184b7Schristos parties under the terms of this License. 102*075184b7Schristos 103*075184b7Schristos c) If the modified program normally reads commands interactively 104*075184b7Schristos when run, you must cause it, when started running for such 105*075184b7Schristos interactive use in the most ordinary way, to print or display an 106*075184b7Schristos announcement including an appropriate copyright notice and a 107*075184b7Schristos notice that there is no warranty (or else, saying that you provide 108*075184b7Schristos a warranty) and that users may redistribute the program under 109*075184b7Schristos these conditions, and telling the user how to view a copy of this 110*075184b7Schristos License. (Exception: if the Program itself is interactive but 111*075184b7Schristos does not normally print such an announcement, your work based on 112*075184b7Schristos the Program is not required to print an announcement.) 113*075184b7Schristos 114*075184b7SchristosThese requirements apply to the modified work as a whole. If 115*075184b7Schristosidentifiable sections of that work are not derived from the Program, 116*075184b7Schristosand can be reasonably considered independent and separate works in 117*075184b7Schristosthemselves, then this License, and its terms, do not apply to those 118*075184b7Schristossections when you distribute them as separate works. But when you 119*075184b7Schristosdistribute the same sections as part of a whole which is a work based 120*075184b7Schristoson the Program, the distribution of the whole must be on the terms of 121*075184b7Schristosthis License, whose permissions for other licensees extend to the 122*075184b7Schristosentire whole, and thus to each and every part regardless of who wrote it. 123*075184b7Schristos 124*075184b7SchristosThus, it is not the intent of this section to claim rights or contest 125*075184b7Schristosyour rights to work written entirely by you; rather, the intent is to 126*075184b7Schristosexercise the right to control the distribution of derivative or 127*075184b7Schristoscollective works based on the Program. 128*075184b7Schristos 129*075184b7SchristosIn addition, mere aggregation of another work not based on the Program 130*075184b7Schristoswith the Program (or with a work based on the Program) on a volume of 131*075184b7Schristosa storage or distribution medium does not bring the other work under 132*075184b7Schristosthe scope of this License. 133*075184b7Schristos 134*075184b7Schristos 3. You may copy and distribute the Program (or a work based on it, 135*075184b7Schristosunder Section 2) in object code or executable form under the terms of 136*075184b7SchristosSections 1 and 2 above provided that you also do one of the following: 137*075184b7Schristos 138*075184b7Schristos a) Accompany it with the complete corresponding machine-readable 139*075184b7Schristos source code, which must be distributed under the terms of Sections 140*075184b7Schristos 1 and 2 above on a medium customarily used for software interchange; or, 141*075184b7Schristos 142*075184b7Schristos b) Accompany it with a written offer, valid for at least three 143*075184b7Schristos years, to give any third party, for a charge no more than your 144*075184b7Schristos cost of physically performing source distribution, a complete 145*075184b7Schristos machine-readable copy of the corresponding source code, to be 146*075184b7Schristos distributed under the terms of Sections 1 and 2 above on a medium 147*075184b7Schristos customarily used for software interchange; or, 148*075184b7Schristos 149*075184b7Schristos c) Accompany it with the information you received as to the offer 150*075184b7Schristos to distribute corresponding source code. (This alternative is 151*075184b7Schristos allowed only for noncommercial distribution and only if you 152*075184b7Schristos received the program in object code or executable form with such 153*075184b7Schristos an offer, in accord with Subsection b above.) 154*075184b7Schristos 155*075184b7SchristosThe source code for a work means the preferred form of the work for 156*075184b7Schristosmaking modifications to it. For an executable work, complete source 157*075184b7Schristoscode means all the source code for all modules it contains, plus any 158*075184b7Schristosassociated interface definition files, plus the scripts used to 159*075184b7Schristoscontrol compilation and installation of the executable. However, as a 160*075184b7Schristosspecial exception, the source code distributed need not include 161*075184b7Schristosanything that is normally distributed (in either source or binary 162*075184b7Schristosform) with the major components (compiler, kernel, and so on) of the 163*075184b7Schristosoperating system on which the executable runs, unless that component 164*075184b7Schristositself accompanies the executable. 165*075184b7Schristos 166*075184b7SchristosIf distribution of executable or object code is made by offering 167*075184b7Schristosaccess to copy from a designated place, then offering equivalent 168*075184b7Schristosaccess to copy the source code from the same place counts as 169*075184b7Schristosdistribution of the source code, even though third parties are not 170*075184b7Schristoscompelled to copy the source along with the object code. 171*075184b7Schristos 172*075184b7Schristos 4. You may not copy, modify, sublicense, or distribute the Program 173*075184b7Schristosexcept as expressly provided under this License. Any attempt 174*075184b7Schristosotherwise to copy, modify, sublicense or distribute the Program is 175*075184b7Schristosvoid, and will automatically terminate your rights under this License. 176*075184b7SchristosHowever, parties who have received copies, or rights, from you under 177*075184b7Schristosthis License will not have their licenses terminated so long as such 178*075184b7Schristosparties remain in full compliance. 179*075184b7Schristos 180*075184b7Schristos 5. You are not required to accept this License, since you have not 181*075184b7Schristossigned it. However, nothing else grants you permission to modify or 182*075184b7Schristosdistribute the Program or its derivative works. These actions are 183*075184b7Schristosprohibited by law if you do not accept this License. Therefore, by 184*075184b7Schristosmodifying or distributing the Program (or any work based on the 185*075184b7SchristosProgram), you indicate your acceptance of this License to do so, and 186*075184b7Schristosall its terms and conditions for copying, distributing or modifying 187*075184b7Schristosthe Program or works based on it. 188*075184b7Schristos 189*075184b7Schristos 6. Each time you redistribute the Program (or any work based on the 190*075184b7SchristosProgram), the recipient automatically receives a license from the 191*075184b7Schristosoriginal licensor to copy, distribute or modify the Program subject to 192*075184b7Schristosthese terms and conditions. You may not impose any further 193*075184b7Schristosrestrictions on the recipients' exercise of the rights granted herein. 194*075184b7SchristosYou are not responsible for enforcing compliance by third parties to 195*075184b7Schristosthis License. 196*075184b7Schristos 197*075184b7Schristos 7. If, as a consequence of a court judgment or allegation of patent 198*075184b7Schristosinfringement or for any other reason (not limited to patent issues), 199*075184b7Schristosconditions are imposed on you (whether by court order, agreement or 200*075184b7Schristosotherwise) that contradict the conditions of this License, they do not 201*075184b7Schristosexcuse you from the conditions of this License. If you cannot 202*075184b7Schristosdistribute so as to satisfy simultaneously your obligations under this 203*075184b7SchristosLicense and any other pertinent obligations, then as a consequence you 204*075184b7Schristosmay not distribute the Program at all. For example, if a patent 205*075184b7Schristoslicense would not permit royalty-free redistribution of the Program by 206*075184b7Schristosall those who receive copies directly or indirectly through you, then 207*075184b7Schristosthe only way you could satisfy both it and this License would be to 208*075184b7Schristosrefrain entirely from distribution of the Program. 209*075184b7Schristos 210*075184b7SchristosIf any portion of this section is held invalid or unenforceable under 211*075184b7Schristosany particular circumstance, the balance of the section is intended to 212*075184b7Schristosapply and the section as a whole is intended to apply in other 213*075184b7Schristoscircumstances. 214*075184b7Schristos 215*075184b7SchristosIt is not the purpose of this section to induce you to infringe any 216*075184b7Schristospatents or other property right claims or to contest validity of any 217*075184b7Schristossuch claims; this section has the sole purpose of protecting the 218*075184b7Schristosintegrity of the free software distribution system, which is 219*075184b7Schristosimplemented by public license practices. Many people have made 220*075184b7Schristosgenerous contributions to the wide range of software distributed 221*075184b7Schristosthrough that system in reliance on consistent application of that 222*075184b7Schristossystem; it is up to the author/donor to decide if he or she is willing 223*075184b7Schristosto distribute software through any other system and a licensee cannot 224*075184b7Schristosimpose that choice. 225*075184b7Schristos 226*075184b7SchristosThis section is intended to make thoroughly clear what is believed to 227*075184b7Schristosbe a consequence of the rest of this License. 228*075184b7Schristos 229*075184b7Schristos 8. If the distribution and/or use of the Program is restricted in 230*075184b7Schristoscertain countries either by patents or by copyrighted interfaces, the 231*075184b7Schristosoriginal copyright holder who places the Program under this License 232*075184b7Schristosmay add an explicit geographical distribution limitation excluding 233*075184b7Schristosthose countries, so that distribution is permitted only in or among 234*075184b7Schristoscountries not thus excluded. In such case, this License incorporates 235*075184b7Schristosthe limitation as if written in the body of this License. 236*075184b7Schristos 237*075184b7Schristos 9. The Free Software Foundation may publish revised and/or new versions 238*075184b7Schristosof the General Public License from time to time. Such new versions will 239*075184b7Schristosbe similar in spirit to the present version, but may differ in detail to 240*075184b7Schristosaddress new problems or concerns. 241*075184b7Schristos 242*075184b7SchristosEach version is given a distinguishing version number. If the Program 243*075184b7Schristosspecifies a version number of this License which applies to it and "any 244*075184b7Schristoslater version", you have the option of following the terms and conditions 245*075184b7Schristoseither of that version or of any later version published by the Free 246*075184b7SchristosSoftware Foundation. If the Program does not specify a version number of 247*075184b7Schristosthis License, you may choose any version ever published by the Free Software 248*075184b7SchristosFoundation. 249*075184b7Schristos 250*075184b7Schristos 10. If you wish to incorporate parts of the Program into other free 251*075184b7Schristosprograms whose distribution conditions are different, write to the author 252*075184b7Schristosto ask for permission. For software which is copyrighted by the Free 253*075184b7SchristosSoftware Foundation, write to the Free Software Foundation; we sometimes 254*075184b7Schristosmake exceptions for this. Our decision will be guided by the two goals 255*075184b7Schristosof preserving the free status of all derivatives of our free software and 256*075184b7Schristosof promoting the sharing and reuse of software generally. 257*075184b7Schristos 258*075184b7Schristos NO WARRANTY 259*075184b7Schristos 260*075184b7Schristos 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*075184b7SchristosFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*075184b7SchristosOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*075184b7SchristosPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*075184b7SchristosOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*075184b7SchristosMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*075184b7SchristosTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*075184b7SchristosPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*075184b7SchristosREPAIR OR CORRECTION. 269*075184b7Schristos 270*075184b7Schristos 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*075184b7SchristosWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*075184b7SchristosREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*075184b7SchristosINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*075184b7SchristosOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*075184b7SchristosTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*075184b7SchristosYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*075184b7SchristosPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*075184b7SchristosPOSSIBILITY OF SUCH DAMAGES. 279*075184b7Schristos 280*075184b7Schristos END OF TERMS AND CONDITIONS 281*075184b7Schristos 282*075184b7Schristos Appendix: How to Apply These Terms to Your New Programs 283*075184b7Schristos 284*075184b7Schristos If you develop a new program, and you want it to be of the greatest 285*075184b7Schristospossible use to the public, the best way to achieve this is to make it 286*075184b7Schristosfree software which everyone can redistribute and change under these terms. 287*075184b7Schristos 288*075184b7Schristos To do so, attach the following notices to the program. It is safest 289*075184b7Schristosto attach them to the start of each source file to most effectively 290*075184b7Schristosconvey the exclusion of warranty; and each file should have at least 291*075184b7Schristosthe "copyright" line and a pointer to where the full notice is found. 292*075184b7Schristos 293*075184b7Schristos <one line to give the program's name and a brief idea of what it does.> 294*075184b7Schristos Copyright (C) 19yy <name of author> 295*075184b7Schristos 296*075184b7Schristos This program is free software; you can redistribute it and/or modify 297*075184b7Schristos it under the terms of the GNU General Public License as published by 298*075184b7Schristos the Free Software Foundation; either version 2 of the License, or 299*075184b7Schristos (at your option) any later version. 300*075184b7Schristos 301*075184b7Schristos This program is distributed in the hope that it will be useful, 302*075184b7Schristos but WITHOUT ANY WARRANTY; without even the implied warranty of 303*075184b7Schristos MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*075184b7Schristos GNU General Public License for more details. 305*075184b7Schristos 306*075184b7Schristos You should have received a copy of the GNU General Public License 307*075184b7Schristos along with this program; if not, write to the Free Software 308*075184b7Schristos Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 309*075184b7Schristos 310*075184b7SchristosAlso add information on how to contact you by electronic and paper mail. 311*075184b7Schristos 312*075184b7SchristosIf the program is interactive, make it output a short notice like this 313*075184b7Schristoswhen it starts in an interactive mode: 314*075184b7Schristos 315*075184b7Schristos Gnomovision version 69, Copyright (C) 19yy name of author 316*075184b7Schristos Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*075184b7Schristos This is free software, and you are welcome to redistribute it 318*075184b7Schristos under certain conditions; type `show c' for details. 319*075184b7Schristos 320*075184b7SchristosThe hypothetical commands `show w' and `show c' should show the appropriate 321*075184b7Schristosparts of the General Public License. Of course, the commands you use may 322*075184b7Schristosbe called something other than `show w' and `show c'; they could even be 323*075184b7Schristosmouse-clicks or menu items--whatever suits your program. 324*075184b7Schristos 325*075184b7SchristosYou should also get your employer (if you work as a programmer) or your 326*075184b7Schristosschool, if any, to sign a "copyright disclaimer" for the program, if 327*075184b7Schristosnecessary. Here is a sample; alter the names: 328*075184b7Schristos 329*075184b7Schristos Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*075184b7Schristos `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*075184b7Schristos 332*075184b7Schristos <signature of Ty Coon>, 1 April 1989 333*075184b7Schristos Ty Coon, President of Vice 334*075184b7Schristos 335*075184b7SchristosThis General Public License does not permit incorporating your program into 336*075184b7Schristosproprietary programs. If your program is a subroutine library, you may 337*075184b7Schristosconsider it more useful to permit linking proprietary applications with the 338*075184b7Schristoslibrary. If this is what you want to do, use the GNU Library General 339*075184b7SchristosPublic License instead of this License. 340