1*3d8817e4Smiod GNU GENERAL PUBLIC LICENSE 2*3d8817e4Smiod Version 2, June 1991 3*3d8817e4Smiod 4*3d8817e4Smiod Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*3d8817e4Smiod 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*3d8817e4Smiod Everyone is permitted to copy and distribute verbatim copies 7*3d8817e4Smiod of this license document, but changing it is not allowed. 8*3d8817e4Smiod 9*3d8817e4Smiod Preamble 10*3d8817e4Smiod 11*3d8817e4Smiod The licenses for most software are designed to take away your 12*3d8817e4Smiodfreedom to share and change it. By contrast, the GNU General Public 13*3d8817e4SmiodLicense is intended to guarantee your freedom to share and change free 14*3d8817e4Smiodsoftware--to make sure the software is free for all its users. This 15*3d8817e4SmiodGeneral Public License applies to most of the Free Software 16*3d8817e4SmiodFoundation's software and to any other program whose authors commit to 17*3d8817e4Smiodusing it. (Some other Free Software Foundation software is covered by 18*3d8817e4Smiodthe GNU Library General Public License instead.) You can apply it to 19*3d8817e4Smiodyour programs, too. 20*3d8817e4Smiod 21*3d8817e4Smiod When we speak of free software, we are referring to freedom, not 22*3d8817e4Smiodprice. Our General Public Licenses are designed to make sure that you 23*3d8817e4Smiodhave the freedom to distribute copies of free software (and charge for 24*3d8817e4Smiodthis service if you wish), that you receive source code or can get it 25*3d8817e4Smiodif you want it, that you can change the software or use pieces of it 26*3d8817e4Smiodin new free programs; and that you know you can do these things. 27*3d8817e4Smiod 28*3d8817e4Smiod To protect your rights, we need to make restrictions that forbid 29*3d8817e4Smiodanyone to deny you these rights or to ask you to surrender the rights. 30*3d8817e4SmiodThese restrictions translate to certain responsibilities for you if you 31*3d8817e4Smioddistribute copies of the software, or if you modify it. 32*3d8817e4Smiod 33*3d8817e4Smiod For example, if you distribute copies of such a program, whether 34*3d8817e4Smiodgratis or for a fee, you must give the recipients all the rights that 35*3d8817e4Smiodyou have. You must make sure that they, too, receive or can get the 36*3d8817e4Smiodsource code. And you must show them these terms so they know their 37*3d8817e4Smiodrights. 38*3d8817e4Smiod 39*3d8817e4Smiod We protect your rights with two steps: (1) copyright the software, and 40*3d8817e4Smiod(2) offer you this license which gives you legal permission to copy, 41*3d8817e4Smioddistribute and/or modify the software. 42*3d8817e4Smiod 43*3d8817e4Smiod Also, for each author's protection and ours, we want to make certain 44*3d8817e4Smiodthat everyone understands that there is no warranty for this free 45*3d8817e4Smiodsoftware. If the software is modified by someone else and passed on, we 46*3d8817e4Smiodwant its recipients to know that what they have is not the original, so 47*3d8817e4Smiodthat any problems introduced by others will not reflect on the original 48*3d8817e4Smiodauthors' reputations. 49*3d8817e4Smiod 50*3d8817e4Smiod Finally, any free program is threatened constantly by software 51*3d8817e4Smiodpatents. We wish to avoid the danger that redistributors of a free 52*3d8817e4Smiodprogram will individually obtain patent licenses, in effect making the 53*3d8817e4Smiodprogram proprietary. To prevent this, we have made it clear that any 54*3d8817e4Smiodpatent must be licensed for everyone's free use or not licensed at all. 55*3d8817e4Smiod 56*3d8817e4Smiod The precise terms and conditions for copying, distribution and 57*3d8817e4Smiodmodification follow. 58*3d8817e4Smiod 59*3d8817e4Smiod GNU GENERAL PUBLIC LICENSE 60*3d8817e4Smiod TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*3d8817e4Smiod 62*3d8817e4Smiod 0. This License applies to any program or other work which contains 63*3d8817e4Smioda notice placed by the copyright holder saying it may be distributed 64*3d8817e4Smiodunder the terms of this General Public License. The "Program", below, 65*3d8817e4Smiodrefers to any such program or work, and a "work based on the Program" 66*3d8817e4Smiodmeans either the Program or any derivative work under copyright law: 67*3d8817e4Smiodthat is to say, a work containing the Program or a portion of it, 68*3d8817e4Smiodeither verbatim or with modifications and/or translated into another 69*3d8817e4Smiodlanguage. (Hereinafter, translation is included without limitation in 70*3d8817e4Smiodthe term "modification".) Each licensee is addressed as "you". 71*3d8817e4Smiod 72*3d8817e4SmiodActivities other than copying, distribution and modification are not 73*3d8817e4Smiodcovered by this License; they are outside its scope. The act of 74*3d8817e4Smiodrunning the Program is not restricted, and the output from the Program 75*3d8817e4Smiodis covered only if its contents constitute a work based on the 76*3d8817e4SmiodProgram (independent of having been made by running the Program). 77*3d8817e4SmiodWhether that is true depends on what the Program does. 78*3d8817e4Smiod 79*3d8817e4Smiod 1. You may copy and distribute verbatim copies of the Program's 80*3d8817e4Smiodsource code as you receive it, in any medium, provided that you 81*3d8817e4Smiodconspicuously and appropriately publish on each copy an appropriate 82*3d8817e4Smiodcopyright notice and disclaimer of warranty; keep intact all the 83*3d8817e4Smiodnotices that refer to this License and to the absence of any warranty; 84*3d8817e4Smiodand give any other recipients of the Program a copy of this License 85*3d8817e4Smiodalong with the Program. 86*3d8817e4Smiod 87*3d8817e4SmiodYou may charge a fee for the physical act of transferring a copy, and 88*3d8817e4Smiodyou may at your option offer warranty protection in exchange for a fee. 89*3d8817e4Smiod 90*3d8817e4Smiod 2. You may modify your copy or copies of the Program or any portion 91*3d8817e4Smiodof it, thus forming a work based on the Program, and copy and 92*3d8817e4Smioddistribute such modifications or work under the terms of Section 1 93*3d8817e4Smiodabove, provided that you also meet all of these conditions: 94*3d8817e4Smiod 95*3d8817e4Smiod a) You must cause the modified files to carry prominent notices 96*3d8817e4Smiod stating that you changed the files and the date of any change. 97*3d8817e4Smiod 98*3d8817e4Smiod b) You must cause any work that you distribute or publish, that in 99*3d8817e4Smiod whole or in part contains or is derived from the Program or any 100*3d8817e4Smiod part thereof, to be licensed as a whole at no charge to all third 101*3d8817e4Smiod parties under the terms of this License. 102*3d8817e4Smiod 103*3d8817e4Smiod c) If the modified program normally reads commands interactively 104*3d8817e4Smiod when run, you must cause it, when started running for such 105*3d8817e4Smiod interactive use in the most ordinary way, to print or display an 106*3d8817e4Smiod announcement including an appropriate copyright notice and a 107*3d8817e4Smiod notice that there is no warranty (or else, saying that you provide 108*3d8817e4Smiod a warranty) and that users may redistribute the program under 109*3d8817e4Smiod these conditions, and telling the user how to view a copy of this 110*3d8817e4Smiod License. (Exception: if the Program itself is interactive but 111*3d8817e4Smiod does not normally print such an announcement, your work based on 112*3d8817e4Smiod the Program is not required to print an announcement.) 113*3d8817e4Smiod 114*3d8817e4SmiodThese requirements apply to the modified work as a whole. If 115*3d8817e4Smiodidentifiable sections of that work are not derived from the Program, 116*3d8817e4Smiodand can be reasonably considered independent and separate works in 117*3d8817e4Smiodthemselves, then this License, and its terms, do not apply to those 118*3d8817e4Smiodsections when you distribute them as separate works. But when you 119*3d8817e4Smioddistribute the same sections as part of a whole which is a work based 120*3d8817e4Smiodon the Program, the distribution of the whole must be on the terms of 121*3d8817e4Smiodthis License, whose permissions for other licensees extend to the 122*3d8817e4Smiodentire whole, and thus to each and every part regardless of who wrote it. 123*3d8817e4Smiod 124*3d8817e4SmiodThus, it is not the intent of this section to claim rights or contest 125*3d8817e4Smiodyour rights to work written entirely by you; rather, the intent is to 126*3d8817e4Smiodexercise the right to control the distribution of derivative or 127*3d8817e4Smiodcollective works based on the Program. 128*3d8817e4Smiod 129*3d8817e4SmiodIn addition, mere aggregation of another work not based on the Program 130*3d8817e4Smiodwith the Program (or with a work based on the Program) on a volume of 131*3d8817e4Smioda storage or distribution medium does not bring the other work under 132*3d8817e4Smiodthe scope of this License. 133*3d8817e4Smiod 134*3d8817e4Smiod 3. You may copy and distribute the Program (or a work based on it, 135*3d8817e4Smiodunder Section 2) in object code or executable form under the terms of 136*3d8817e4SmiodSections 1 and 2 above provided that you also do one of the following: 137*3d8817e4Smiod 138*3d8817e4Smiod a) Accompany it with the complete corresponding machine-readable 139*3d8817e4Smiod source code, which must be distributed under the terms of Sections 140*3d8817e4Smiod 1 and 2 above on a medium customarily used for software interchange; or, 141*3d8817e4Smiod 142*3d8817e4Smiod b) Accompany it with a written offer, valid for at least three 143*3d8817e4Smiod years, to give any third party, for a charge no more than your 144*3d8817e4Smiod cost of physically performing source distribution, a complete 145*3d8817e4Smiod machine-readable copy of the corresponding source code, to be 146*3d8817e4Smiod distributed under the terms of Sections 1 and 2 above on a medium 147*3d8817e4Smiod customarily used for software interchange; or, 148*3d8817e4Smiod 149*3d8817e4Smiod c) Accompany it with the information you received as to the offer 150*3d8817e4Smiod to distribute corresponding source code. (This alternative is 151*3d8817e4Smiod allowed only for noncommercial distribution and only if you 152*3d8817e4Smiod received the program in object code or executable form with such 153*3d8817e4Smiod an offer, in accord with Subsection b above.) 154*3d8817e4Smiod 155*3d8817e4SmiodThe source code for a work means the preferred form of the work for 156*3d8817e4Smiodmaking modifications to it. For an executable work, complete source 157*3d8817e4Smiodcode means all the source code for all modules it contains, plus any 158*3d8817e4Smiodassociated interface definition files, plus the scripts used to 159*3d8817e4Smiodcontrol compilation and installation of the executable. However, as a 160*3d8817e4Smiodspecial exception, the source code distributed need not include 161*3d8817e4Smiodanything that is normally distributed (in either source or binary 162*3d8817e4Smiodform) with the major components (compiler, kernel, and so on) of the 163*3d8817e4Smiodoperating system on which the executable runs, unless that component 164*3d8817e4Smioditself accompanies the executable. 165*3d8817e4Smiod 166*3d8817e4SmiodIf distribution of executable or object code is made by offering 167*3d8817e4Smiodaccess to copy from a designated place, then offering equivalent 168*3d8817e4Smiodaccess to copy the source code from the same place counts as 169*3d8817e4Smioddistribution of the source code, even though third parties are not 170*3d8817e4Smiodcompelled to copy the source along with the object code. 171*3d8817e4Smiod 172*3d8817e4Smiod 4. You may not copy, modify, sublicense, or distribute the Program 173*3d8817e4Smiodexcept as expressly provided under this License. Any attempt 174*3d8817e4Smiodotherwise to copy, modify, sublicense or distribute the Program is 175*3d8817e4Smiodvoid, and will automatically terminate your rights under this License. 176*3d8817e4SmiodHowever, parties who have received copies, or rights, from you under 177*3d8817e4Smiodthis License will not have their licenses terminated so long as such 178*3d8817e4Smiodparties remain in full compliance. 179*3d8817e4Smiod 180*3d8817e4Smiod 5. You are not required to accept this License, since you have not 181*3d8817e4Smiodsigned it. However, nothing else grants you permission to modify or 182*3d8817e4Smioddistribute the Program or its derivative works. These actions are 183*3d8817e4Smiodprohibited by law if you do not accept this License. Therefore, by 184*3d8817e4Smiodmodifying or distributing the Program (or any work based on the 185*3d8817e4SmiodProgram), you indicate your acceptance of this License to do so, and 186*3d8817e4Smiodall its terms and conditions for copying, distributing or modifying 187*3d8817e4Smiodthe Program or works based on it. 188*3d8817e4Smiod 189*3d8817e4Smiod 6. Each time you redistribute the Program (or any work based on the 190*3d8817e4SmiodProgram), the recipient automatically receives a license from the 191*3d8817e4Smiodoriginal licensor to copy, distribute or modify the Program subject to 192*3d8817e4Smiodthese terms and conditions. You may not impose any further 193*3d8817e4Smiodrestrictions on the recipients' exercise of the rights granted herein. 194*3d8817e4SmiodYou are not responsible for enforcing compliance by third parties to 195*3d8817e4Smiodthis License. 196*3d8817e4Smiod 197*3d8817e4Smiod 7. If, as a consequence of a court judgment or allegation of patent 198*3d8817e4Smiodinfringement or for any other reason (not limited to patent issues), 199*3d8817e4Smiodconditions are imposed on you (whether by court order, agreement or 200*3d8817e4Smiodotherwise) that contradict the conditions of this License, they do not 201*3d8817e4Smiodexcuse you from the conditions of this License. If you cannot 202*3d8817e4Smioddistribute so as to satisfy simultaneously your obligations under this 203*3d8817e4SmiodLicense and any other pertinent obligations, then as a consequence you 204*3d8817e4Smiodmay not distribute the Program at all. For example, if a patent 205*3d8817e4Smiodlicense would not permit royalty-free redistribution of the Program by 206*3d8817e4Smiodall those who receive copies directly or indirectly through you, then 207*3d8817e4Smiodthe only way you could satisfy both it and this License would be to 208*3d8817e4Smiodrefrain entirely from distribution of the Program. 209*3d8817e4Smiod 210*3d8817e4SmiodIf any portion of this section is held invalid or unenforceable under 211*3d8817e4Smiodany particular circumstance, the balance of the section is intended to 212*3d8817e4Smiodapply and the section as a whole is intended to apply in other 213*3d8817e4Smiodcircumstances. 214*3d8817e4Smiod 215*3d8817e4SmiodIt is not the purpose of this section to induce you to infringe any 216*3d8817e4Smiodpatents or other property right claims or to contest validity of any 217*3d8817e4Smiodsuch claims; this section has the sole purpose of protecting the 218*3d8817e4Smiodintegrity of the free software distribution system, which is 219*3d8817e4Smiodimplemented by public license practices. Many people have made 220*3d8817e4Smiodgenerous contributions to the wide range of software distributed 221*3d8817e4Smiodthrough that system in reliance on consistent application of that 222*3d8817e4Smiodsystem; it is up to the author/donor to decide if he or she is willing 223*3d8817e4Smiodto distribute software through any other system and a licensee cannot 224*3d8817e4Smiodimpose that choice. 225*3d8817e4Smiod 226*3d8817e4SmiodThis section is intended to make thoroughly clear what is believed to 227*3d8817e4Smiodbe a consequence of the rest of this License. 228*3d8817e4Smiod 229*3d8817e4Smiod 8. If the distribution and/or use of the Program is restricted in 230*3d8817e4Smiodcertain countries either by patents or by copyrighted interfaces, the 231*3d8817e4Smiodoriginal copyright holder who places the Program under this License 232*3d8817e4Smiodmay add an explicit geographical distribution limitation excluding 233*3d8817e4Smiodthose countries, so that distribution is permitted only in or among 234*3d8817e4Smiodcountries not thus excluded. In such case, this License incorporates 235*3d8817e4Smiodthe limitation as if written in the body of this License. 236*3d8817e4Smiod 237*3d8817e4Smiod 9. The Free Software Foundation may publish revised and/or new versions 238*3d8817e4Smiodof the General Public License from time to time. Such new versions will 239*3d8817e4Smiodbe similar in spirit to the present version, but may differ in detail to 240*3d8817e4Smiodaddress new problems or concerns. 241*3d8817e4Smiod 242*3d8817e4SmiodEach version is given a distinguishing version number. If the Program 243*3d8817e4Smiodspecifies a version number of this License which applies to it and "any 244*3d8817e4Smiodlater version", you have the option of following the terms and conditions 245*3d8817e4Smiodeither of that version or of any later version published by the Free 246*3d8817e4SmiodSoftware Foundation. If the Program does not specify a version number of 247*3d8817e4Smiodthis License, you may choose any version ever published by the Free Software 248*3d8817e4SmiodFoundation. 249*3d8817e4Smiod 250*3d8817e4Smiod 10. If you wish to incorporate parts of the Program into other free 251*3d8817e4Smiodprograms whose distribution conditions are different, write to the author 252*3d8817e4Smiodto ask for permission. For software which is copyrighted by the Free 253*3d8817e4SmiodSoftware Foundation, write to the Free Software Foundation; we sometimes 254*3d8817e4Smiodmake exceptions for this. Our decision will be guided by the two goals 255*3d8817e4Smiodof preserving the free status of all derivatives of our free software and 256*3d8817e4Smiodof promoting the sharing and reuse of software generally. 257*3d8817e4Smiod 258*3d8817e4Smiod NO WARRANTY 259*3d8817e4Smiod 260*3d8817e4Smiod 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*3d8817e4SmiodFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*3d8817e4SmiodOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*3d8817e4SmiodPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*3d8817e4SmiodOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*3d8817e4SmiodMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*3d8817e4SmiodTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*3d8817e4SmiodPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*3d8817e4SmiodREPAIR OR CORRECTION. 269*3d8817e4Smiod 270*3d8817e4Smiod 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*3d8817e4SmiodWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*3d8817e4SmiodREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*3d8817e4SmiodINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*3d8817e4SmiodOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*3d8817e4SmiodTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*3d8817e4SmiodYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*3d8817e4SmiodPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*3d8817e4SmiodPOSSIBILITY OF SUCH DAMAGES. 279*3d8817e4Smiod 280*3d8817e4Smiod END OF TERMS AND CONDITIONS 281*3d8817e4Smiod 282*3d8817e4Smiod How to Apply These Terms to Your New Programs 283*3d8817e4Smiod 284*3d8817e4Smiod If you develop a new program, and you want it to be of the greatest 285*3d8817e4Smiodpossible use to the public, the best way to achieve this is to make it 286*3d8817e4Smiodfree software which everyone can redistribute and change under these terms. 287*3d8817e4Smiod 288*3d8817e4Smiod To do so, attach the following notices to the program. It is safest 289*3d8817e4Smiodto attach them to the start of each source file to most effectively 290*3d8817e4Smiodconvey the exclusion of warranty; and each file should have at least 291*3d8817e4Smiodthe "copyright" line and a pointer to where the full notice is found. 292*3d8817e4Smiod 293*3d8817e4Smiod <one line to give the program's name and a brief idea of what it does.> 294*3d8817e4Smiod Copyright (C) <year> <name of author> 295*3d8817e4Smiod 296*3d8817e4Smiod This program is free software; you can redistribute it and/or modify 297*3d8817e4Smiod it under the terms of the GNU General Public License as published by 298*3d8817e4Smiod the Free Software Foundation; either version 2 of the License, or 299*3d8817e4Smiod (at your option) any later version. 300*3d8817e4Smiod 301*3d8817e4Smiod This program is distributed in the hope that it will be useful, 302*3d8817e4Smiod but WITHOUT ANY WARRANTY; without even the implied warranty of 303*3d8817e4Smiod MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*3d8817e4Smiod GNU General Public License for more details. 305*3d8817e4Smiod 306*3d8817e4Smiod You should have received a copy of the GNU General Public License 307*3d8817e4Smiod along with this program; if not, write to the Free Software 308*3d8817e4Smiod Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 309*3d8817e4Smiod 310*3d8817e4Smiod 311*3d8817e4SmiodAlso add information on how to contact you by electronic and paper mail. 312*3d8817e4Smiod 313*3d8817e4SmiodIf the program is interactive, make it output a short notice like this 314*3d8817e4Smiodwhen it starts in an interactive mode: 315*3d8817e4Smiod 316*3d8817e4Smiod Gnomovision version 69, Copyright (C) year name of author 317*3d8817e4Smiod Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318*3d8817e4Smiod This is free software, and you are welcome to redistribute it 319*3d8817e4Smiod under certain conditions; type `show c' for details. 320*3d8817e4Smiod 321*3d8817e4SmiodThe hypothetical commands `show w' and `show c' should show the appropriate 322*3d8817e4Smiodparts of the General Public License. Of course, the commands you use may 323*3d8817e4Smiodbe called something other than `show w' and `show c'; they could even be 324*3d8817e4Smiodmouse-clicks or menu items--whatever suits your program. 325*3d8817e4Smiod 326*3d8817e4SmiodYou should also get your employer (if you work as a programmer) or your 327*3d8817e4Smiodschool, if any, to sign a "copyright disclaimer" for the program, if 328*3d8817e4Smiodnecessary. Here is a sample; alter the names: 329*3d8817e4Smiod 330*3d8817e4Smiod Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331*3d8817e4Smiod `Gnomovision' (which makes passes at compilers) written by James Hacker. 332*3d8817e4Smiod 333*3d8817e4Smiod <signature of Ty Coon>, 1 April 1989 334*3d8817e4Smiod Ty Coon, President of Vice 335*3d8817e4Smiod 336*3d8817e4SmiodThis General Public License does not permit incorporating your program into 337*3d8817e4Smiodproprietary programs. If your program is a subroutine library, you may 338*3d8817e4Smiodconsider it more useful to permit linking proprietary applications with the 339*3d8817e4Smiodlibrary. If this is what you want to do, use the GNU Library General 340*3d8817e4SmiodPublic License instead of this License. 341