1*1acd27e7Smillert GNU GENERAL PUBLIC LICENSE 2*1acd27e7Smillert Version 2, June 1991 3*1acd27e7Smillert 4*1acd27e7Smillert Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*1acd27e7Smillert 59 Temple Place, Suite 330, Boston, MA 02111 USA 6*1acd27e7Smillert Everyone is permitted to copy and distribute verbatim copies 7*1acd27e7Smillert of this license document, but changing it is not allowed. 8*1acd27e7Smillert 9*1acd27e7Smillert Preamble 10*1acd27e7Smillert 11*1acd27e7Smillert The licenses for most software are designed to take away your 12*1acd27e7Smillertfreedom to share and change it. By contrast, the GNU General Public 13*1acd27e7SmillertLicense is intended to guarantee your freedom to share and change free 14*1acd27e7Smillertsoftware--to make sure the software is free for all its users. This 15*1acd27e7SmillertGeneral Public License applies to most of the Free Software 16*1acd27e7SmillertFoundation's software and to any other program whose authors commit to 17*1acd27e7Smillertusing it. (Some other Free Software Foundation software is covered by 18*1acd27e7Smillertthe GNU Library General Public License instead.) You can apply it to 19*1acd27e7Smillertyour programs, too. 20*1acd27e7Smillert 21*1acd27e7Smillert When we speak of free software, we are referring to freedom, not 22*1acd27e7Smillertprice. Our General Public Licenses are designed to make sure that you 23*1acd27e7Smillerthave the freedom to distribute copies of free software (and charge for 24*1acd27e7Smillertthis service if you wish), that you receive source code or can get it 25*1acd27e7Smillertif you want it, that you can change the software or use pieces of it 26*1acd27e7Smillertin new free programs; and that you know you can do these things. 27*1acd27e7Smillert 28*1acd27e7Smillert To protect your rights, we need to make restrictions that forbid 29*1acd27e7Smillertanyone to deny you these rights or to ask you to surrender the rights. 30*1acd27e7SmillertThese restrictions translate to certain responsibilities for you if you 31*1acd27e7Smillertdistribute copies of the software, or if you modify it. 32*1acd27e7Smillert 33*1acd27e7Smillert For example, if you distribute copies of such a program, whether 34*1acd27e7Smillertgratis or for a fee, you must give the recipients all the rights that 35*1acd27e7Smillertyou have. You must make sure that they, too, receive or can get the 36*1acd27e7Smillertsource code. And you must show them these terms so they know their 37*1acd27e7Smillertrights. 38*1acd27e7Smillert 39*1acd27e7Smillert We protect your rights with two steps: (1) copyright the software, and 40*1acd27e7Smillert(2) offer you this license which gives you legal permission to copy, 41*1acd27e7Smillertdistribute and/or modify the software. 42*1acd27e7Smillert 43*1acd27e7Smillert Also, for each author's protection and ours, we want to make certain 44*1acd27e7Smillertthat everyone understands that there is no warranty for this free 45*1acd27e7Smillertsoftware. If the software is modified by someone else and passed on, we 46*1acd27e7Smillertwant its recipients to know that what they have is not the original, so 47*1acd27e7Smillertthat any problems introduced by others will not reflect on the original 48*1acd27e7Smillertauthors' reputations. 49*1acd27e7Smillert 50*1acd27e7Smillert Finally, any free program is threatened constantly by software 51*1acd27e7Smillertpatents. We wish to avoid the danger that redistributors of a free 52*1acd27e7Smillertprogram will individually obtain patent licenses, in effect making the 53*1acd27e7Smillertprogram proprietary. To prevent this, we have made it clear that any 54*1acd27e7Smillertpatent must be licensed for everyone's free use or not licensed at all. 55*1acd27e7Smillert 56*1acd27e7Smillert The precise terms and conditions for copying, distribution and 57*1acd27e7Smillertmodification follow. 58*1acd27e7Smillert 59*1acd27e7Smillert GNU GENERAL PUBLIC LICENSE 60*1acd27e7Smillert TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*1acd27e7Smillert 62*1acd27e7Smillert 0. This License applies to any program or other work which contains 63*1acd27e7Smillerta notice placed by the copyright holder saying it may be distributed 64*1acd27e7Smillertunder the terms of this General Public License. The "Program", below, 65*1acd27e7Smillertrefers to any such program or work, and a "work based on the Program" 66*1acd27e7Smillertmeans either the Program or any derivative work under copyright law: 67*1acd27e7Smillertthat is to say, a work containing the Program or a portion of it, 68*1acd27e7Smillerteither verbatim or with modifications and/or translated into another 69*1acd27e7Smillertlanguage. (Hereinafter, translation is included without limitation in 70*1acd27e7Smillertthe term "modification".) Each licensee is addressed as "you". 71*1acd27e7Smillert 72*1acd27e7SmillertActivities other than copying, distribution and modification are not 73*1acd27e7Smillertcovered by this License; they are outside its scope. The act of 74*1acd27e7Smillertrunning the Program is not restricted, and the output from the Program 75*1acd27e7Smillertis covered only if its contents constitute a work based on the 76*1acd27e7SmillertProgram (independent of having been made by running the Program). 77*1acd27e7SmillertWhether that is true depends on what the Program does. 78*1acd27e7Smillert 79*1acd27e7Smillert 1. You may copy and distribute verbatim copies of the Program's 80*1acd27e7Smillertsource code as you receive it, in any medium, provided that you 81*1acd27e7Smillertconspicuously and appropriately publish on each copy an appropriate 82*1acd27e7Smillertcopyright notice and disclaimer of warranty; keep intact all the 83*1acd27e7Smillertnotices that refer to this License and to the absence of any warranty; 84*1acd27e7Smillertand give any other recipients of the Program a copy of this License 85*1acd27e7Smillertalong with the Program. 86*1acd27e7Smillert 87*1acd27e7SmillertYou may charge a fee for the physical act of transferring a copy, and 88*1acd27e7Smillertyou may at your option offer warranty protection in exchange for a fee. 89*1acd27e7Smillert 90*1acd27e7Smillert 2. You may modify your copy or copies of the Program or any portion 91*1acd27e7Smillertof it, thus forming a work based on the Program, and copy and 92*1acd27e7Smillertdistribute such modifications or work under the terms of Section 1 93*1acd27e7Smillertabove, provided that you also meet all of these conditions: 94*1acd27e7Smillert 95*1acd27e7Smillert a) You must cause the modified files to carry prominent notices 96*1acd27e7Smillert stating that you changed the files and the date of any change. 97*1acd27e7Smillert 98*1acd27e7Smillert b) You must cause any work that you distribute or publish, that in 99*1acd27e7Smillert whole or in part contains or is derived from the Program or any 100*1acd27e7Smillert part thereof, to be licensed as a whole at no charge to all third 101*1acd27e7Smillert parties under the terms of this License. 102*1acd27e7Smillert 103*1acd27e7Smillert c) If the modified program normally reads commands interactively 104*1acd27e7Smillert when run, you must cause it, when started running for such 105*1acd27e7Smillert interactive use in the most ordinary way, to print or display an 106*1acd27e7Smillert announcement including an appropriate copyright notice and a 107*1acd27e7Smillert notice that there is no warranty (or else, saying that you provide 108*1acd27e7Smillert a warranty) and that users may redistribute the program under 109*1acd27e7Smillert these conditions, and telling the user how to view a copy of this 110*1acd27e7Smillert License. (Exception: if the Program itself is interactive but 111*1acd27e7Smillert does not normally print such an announcement, your work based on 112*1acd27e7Smillert the Program is not required to print an announcement.) 113*1acd27e7Smillert 114*1acd27e7SmillertThese requirements apply to the modified work as a whole. If 115*1acd27e7Smillertidentifiable sections of that work are not derived from the Program, 116*1acd27e7Smillertand can be reasonably considered independent and separate works in 117*1acd27e7Smillertthemselves, then this License, and its terms, do not apply to those 118*1acd27e7Smillertsections when you distribute them as separate works. But when you 119*1acd27e7Smillertdistribute the same sections as part of a whole which is a work based 120*1acd27e7Smillerton the Program, the distribution of the whole must be on the terms of 121*1acd27e7Smillertthis License, whose permissions for other licensees extend to the 122*1acd27e7Smillertentire whole, and thus to each and every part regardless of who wrote it. 123*1acd27e7Smillert 124*1acd27e7SmillertThus, it is not the intent of this section to claim rights or contest 125*1acd27e7Smillertyour rights to work written entirely by you; rather, the intent is to 126*1acd27e7Smillertexercise the right to control the distribution of derivative or 127*1acd27e7Smillertcollective works based on the Program. 128*1acd27e7Smillert 129*1acd27e7SmillertIn addition, mere aggregation of another work not based on the Program 130*1acd27e7Smillertwith the Program (or with a work based on the Program) on a volume of 131*1acd27e7Smillerta storage or distribution medium does not bring the other work under 132*1acd27e7Smillertthe scope of this License. 133*1acd27e7Smillert 134*1acd27e7Smillert 3. You may copy and distribute the Program (or a work based on it, 135*1acd27e7Smillertunder Section 2) in object code or executable form under the terms of 136*1acd27e7SmillertSections 1 and 2 above provided that you also do one of the following: 137*1acd27e7Smillert 138*1acd27e7Smillert a) Accompany it with the complete corresponding machine-readable 139*1acd27e7Smillert source code, which must be distributed under the terms of Sections 140*1acd27e7Smillert 1 and 2 above on a medium customarily used for software interchange; or, 141*1acd27e7Smillert 142*1acd27e7Smillert b) Accompany it with a written offer, valid for at least three 143*1acd27e7Smillert years, to give any third party, for a charge no more than your 144*1acd27e7Smillert cost of physically performing source distribution, a complete 145*1acd27e7Smillert machine-readable copy of the corresponding source code, to be 146*1acd27e7Smillert distributed under the terms of Sections 1 and 2 above on a medium 147*1acd27e7Smillert customarily used for software interchange; or, 148*1acd27e7Smillert 149*1acd27e7Smillert c) Accompany it with the information you received as to the offer 150*1acd27e7Smillert to distribute corresponding source code. (This alternative is 151*1acd27e7Smillert allowed only for noncommercial distribution and only if you 152*1acd27e7Smillert received the program in object code or executable form with such 153*1acd27e7Smillert an offer, in accord with Subsection b above.) 154*1acd27e7Smillert 155*1acd27e7SmillertThe source code for a work means the preferred form of the work for 156*1acd27e7Smillertmaking modifications to it. For an executable work, complete source 157*1acd27e7Smillertcode means all the source code for all modules it contains, plus any 158*1acd27e7Smillertassociated interface definition files, plus the scripts used to 159*1acd27e7Smillertcontrol compilation and installation of the executable. However, as a 160*1acd27e7Smillertspecial exception, the source code distributed need not include 161*1acd27e7Smillertanything that is normally distributed (in either source or binary 162*1acd27e7Smillertform) with the major components (compiler, kernel, and so on) of the 163*1acd27e7Smillertoperating system on which the executable runs, unless that component 164*1acd27e7Smillertitself accompanies the executable. 165*1acd27e7Smillert 166*1acd27e7SmillertIf distribution of executable or object code is made by offering 167*1acd27e7Smillertaccess to copy from a designated place, then offering equivalent 168*1acd27e7Smillertaccess to copy the source code from the same place counts as 169*1acd27e7Smillertdistribution of the source code, even though third parties are not 170*1acd27e7Smillertcompelled to copy the source along with the object code. 171*1acd27e7Smillert 172*1acd27e7Smillert 4. You may not copy, modify, sublicense, or distribute the Program 173*1acd27e7Smillertexcept as expressly provided under this License. Any attempt 174*1acd27e7Smillertotherwise to copy, modify, sublicense or distribute the Program is 175*1acd27e7Smillertvoid, and will automatically terminate your rights under this License. 176*1acd27e7SmillertHowever, parties who have received copies, or rights, from you under 177*1acd27e7Smillertthis License will not have their licenses terminated so long as such 178*1acd27e7Smillertparties remain in full compliance. 179*1acd27e7Smillert 180*1acd27e7Smillert 5. You are not required to accept this License, since you have not 181*1acd27e7Smillertsigned it. However, nothing else grants you permission to modify or 182*1acd27e7Smillertdistribute the Program or its derivative works. These actions are 183*1acd27e7Smillertprohibited by law if you do not accept this License. Therefore, by 184*1acd27e7Smillertmodifying or distributing the Program (or any work based on the 185*1acd27e7SmillertProgram), you indicate your acceptance of this License to do so, and 186*1acd27e7Smillertall its terms and conditions for copying, distributing or modifying 187*1acd27e7Smillertthe Program or works based on it. 188*1acd27e7Smillert 189*1acd27e7Smillert 6. Each time you redistribute the Program (or any work based on the 190*1acd27e7SmillertProgram), the recipient automatically receives a license from the 191*1acd27e7Smillertoriginal licensor to copy, distribute or modify the Program subject to 192*1acd27e7Smillertthese terms and conditions. You may not impose any further 193*1acd27e7Smillertrestrictions on the recipients' exercise of the rights granted herein. 194*1acd27e7SmillertYou are not responsible for enforcing compliance by third parties to 195*1acd27e7Smillertthis License. 196*1acd27e7Smillert 197*1acd27e7Smillert 7. If, as a consequence of a court judgment or allegation of patent 198*1acd27e7Smillertinfringement or for any other reason (not limited to patent issues), 199*1acd27e7Smillertconditions are imposed on you (whether by court order, agreement or 200*1acd27e7Smillertotherwise) that contradict the conditions of this License, they do not 201*1acd27e7Smillertexcuse you from the conditions of this License. If you cannot 202*1acd27e7Smillertdistribute so as to satisfy simultaneously your obligations under this 203*1acd27e7SmillertLicense and any other pertinent obligations, then as a consequence you 204*1acd27e7Smillertmay not distribute the Program at all. For example, if a patent 205*1acd27e7Smillertlicense would not permit royalty-free redistribution of the Program by 206*1acd27e7Smillertall those who receive copies directly or indirectly through you, then 207*1acd27e7Smillertthe only way you could satisfy both it and this License would be to 208*1acd27e7Smillertrefrain entirely from distribution of the Program. 209*1acd27e7Smillert 210*1acd27e7SmillertIf any portion of this section is held invalid or unenforceable under 211*1acd27e7Smillertany particular circumstance, the balance of the section is intended to 212*1acd27e7Smillertapply and the section as a whole is intended to apply in other 213*1acd27e7Smillertcircumstances. 214*1acd27e7Smillert 215*1acd27e7SmillertIt is not the purpose of this section to induce you to infringe any 216*1acd27e7Smillertpatents or other property right claims or to contest validity of any 217*1acd27e7Smillertsuch claims; this section has the sole purpose of protecting the 218*1acd27e7Smillertintegrity of the free software distribution system, which is 219*1acd27e7Smillertimplemented by public license practices. Many people have made 220*1acd27e7Smillertgenerous contributions to the wide range of software distributed 221*1acd27e7Smillertthrough that system in reliance on consistent application of that 222*1acd27e7Smillertsystem; it is up to the author/donor to decide if he or she is willing 223*1acd27e7Smillertto distribute software through any other system and a licensee cannot 224*1acd27e7Smillertimpose that choice. 225*1acd27e7Smillert 226*1acd27e7SmillertThis section is intended to make thoroughly clear what is believed to 227*1acd27e7Smillertbe a consequence of the rest of this License. 228*1acd27e7Smillert 229*1acd27e7Smillert 8. If the distribution and/or use of the Program is restricted in 230*1acd27e7Smillertcertain countries either by patents or by copyrighted interfaces, the 231*1acd27e7Smillertoriginal copyright holder who places the Program under this License 232*1acd27e7Smillertmay add an explicit geographical distribution limitation excluding 233*1acd27e7Smillertthose countries, so that distribution is permitted only in or among 234*1acd27e7Smillertcountries not thus excluded. In such case, this License incorporates 235*1acd27e7Smillertthe limitation as if written in the body of this License. 236*1acd27e7Smillert 237*1acd27e7Smillert 9. The Free Software Foundation may publish revised and/or new versions 238*1acd27e7Smillertof the General Public License from time to time. Such new versions will 239*1acd27e7Smillertbe similar in spirit to the present version, but may differ in detail to 240*1acd27e7Smillertaddress new problems or concerns. 241*1acd27e7Smillert 242*1acd27e7SmillertEach version is given a distinguishing version number. If the Program 243*1acd27e7Smillertspecifies a version number of this License which applies to it and "any 244*1acd27e7Smillertlater version", you have the option of following the terms and conditions 245*1acd27e7Smillerteither of that version or of any later version published by the Free 246*1acd27e7SmillertSoftware Foundation. If the Program does not specify a version number of 247*1acd27e7Smillertthis License, you may choose any version ever published by the Free Software 248*1acd27e7SmillertFoundation. 249*1acd27e7Smillert 250*1acd27e7Smillert 10. If you wish to incorporate parts of the Program into other free 251*1acd27e7Smillertprograms whose distribution conditions are different, write to the author 252*1acd27e7Smillertto ask for permission. For software which is copyrighted by the Free 253*1acd27e7SmillertSoftware Foundation, write to the Free Software Foundation; we sometimes 254*1acd27e7Smillertmake exceptions for this. Our decision will be guided by the two goals 255*1acd27e7Smillertof preserving the free status of all derivatives of our free software and 256*1acd27e7Smillertof promoting the sharing and reuse of software generally. 257*1acd27e7Smillert 258*1acd27e7Smillert NO WARRANTY 259*1acd27e7Smillert 260*1acd27e7Smillert 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*1acd27e7SmillertFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*1acd27e7SmillertOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*1acd27e7SmillertPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*1acd27e7SmillertOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*1acd27e7SmillertMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*1acd27e7SmillertTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*1acd27e7SmillertPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*1acd27e7SmillertREPAIR OR CORRECTION. 269*1acd27e7Smillert 270*1acd27e7Smillert 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*1acd27e7SmillertWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*1acd27e7SmillertREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*1acd27e7SmillertINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*1acd27e7SmillertOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*1acd27e7SmillertTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*1acd27e7SmillertYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*1acd27e7SmillertPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*1acd27e7SmillertPOSSIBILITY OF SUCH DAMAGES. 279*1acd27e7Smillert 280*1acd27e7Smillert END OF TERMS AND CONDITIONS 281*1acd27e7Smillert 282*1acd27e7Smillert Appendix: How to Apply These Terms to Your New Programs 283*1acd27e7Smillert 284*1acd27e7Smillert If you develop a new program, and you want it to be of the greatest 285*1acd27e7Smillertpossible use to the public, the best way to achieve this is to make it 286*1acd27e7Smillertfree software which everyone can redistribute and change under these terms. 287*1acd27e7Smillert 288*1acd27e7Smillert To do so, attach the following notices to the program. It is safest 289*1acd27e7Smillertto attach them to the start of each source file to most effectively 290*1acd27e7Smillertconvey the exclusion of warranty; and each file should have at least 291*1acd27e7Smillertthe "copyright" line and a pointer to where the full notice is found. 292*1acd27e7Smillert 293*1acd27e7Smillert <one line to give the program's name and a brief idea of what it does.> 294*1acd27e7Smillert Copyright (C) 19yy <name of author> 295*1acd27e7Smillert 296*1acd27e7Smillert This program is free software; you can redistribute it and/or modify 297*1acd27e7Smillert it under the terms of the GNU General Public License as published by 298*1acd27e7Smillert the Free Software Foundation; either version 2 of the License, or 299*1acd27e7Smillert (at your option) any later version. 300*1acd27e7Smillert 301*1acd27e7Smillert This program is distributed in the hope that it will be useful, 302*1acd27e7Smillert but WITHOUT ANY WARRANTY; without even the implied warranty of 303*1acd27e7Smillert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*1acd27e7Smillert GNU General Public License for more details. 305*1acd27e7Smillert 306*1acd27e7Smillert You should have received a copy of the GNU General Public License 307*1acd27e7Smillert along with this program; if not, write to the Free Software 308*1acd27e7Smillert Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA 309*1acd27e7Smillert 310*1acd27e7SmillertAlso add information on how to contact you by electronic and paper mail. 311*1acd27e7Smillert 312*1acd27e7SmillertIf the program is interactive, make it output a short notice like this 313*1acd27e7Smillertwhen it starts in an interactive mode: 314*1acd27e7Smillert 315*1acd27e7Smillert Gnomovision version 69, Copyright (C) 19yy name of author 316*1acd27e7Smillert Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*1acd27e7Smillert This is free software, and you are welcome to redistribute it 318*1acd27e7Smillert under certain conditions; type `show c' for details. 319*1acd27e7Smillert 320*1acd27e7SmillertThe hypothetical commands `show w' and `show c' should show the appropriate 321*1acd27e7Smillertparts of the General Public License. Of course, the commands you use may 322*1acd27e7Smillertbe called something other than `show w' and `show c'; they could even be 323*1acd27e7Smillertmouse-clicks or menu items--whatever suits your program. 324*1acd27e7Smillert 325*1acd27e7SmillertYou should also get your employer (if you work as a programmer) or your 326*1acd27e7Smillertschool, if any, to sign a "copyright disclaimer" for the program, if 327*1acd27e7Smillertnecessary. Here is a sample; alter the names: 328*1acd27e7Smillert 329*1acd27e7Smillert Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*1acd27e7Smillert `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*1acd27e7Smillert 332*1acd27e7Smillert <signature of Ty Coon>, 1 April 1989 333*1acd27e7Smillert Ty Coon, President of Vice 334*1acd27e7Smillert 335*1acd27e7SmillertThis General Public License does not permit incorporating your program into 336*1acd27e7Smillertproprietary programs. If your program is a subroutine library, you may 337*1acd27e7Smillertconsider it more useful to permit linking proprietary applications with the 338*1acd27e7Smillertlibrary. If this is what you want to do, use the GNU Library General 339*1acd27e7SmillertPublic License instead of this License. 340