1*e689d293SMark PrinsGNU GENERAL PUBLIC LICENSE 2*e689d293SMark Prins Version 2, June 1991 3*e689d293SMark Prins 4*e689d293SMark Prins Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/> 5*e689d293SMark Prins 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*e689d293SMark Prins Everyone is permitted to copy and distribute verbatim copies 7*e689d293SMark Prins of this license document, but changing it is not allowed. 8*e689d293SMark Prins 9*e689d293SMark Prins Preamble 10*e689d293SMark Prins 11*e689d293SMark Prins The licenses for most software are designed to take away your 12*e689d293SMark Prinsfreedom to share and change it. By contrast, the GNU General Public 13*e689d293SMark PrinsLicense is intended to guarantee your freedom to share and change free 14*e689d293SMark Prinssoftware--to make sure the software is free for all its users. This 15*e689d293SMark PrinsGeneral Public License applies to most of the Free Software 16*e689d293SMark PrinsFoundation's software and to any other program whose authors commit to 17*e689d293SMark Prinsusing it. (Some other Free Software Foundation software is covered by 18*e689d293SMark Prinsthe GNU Lesser General Public License instead.) You can apply it to 19*e689d293SMark Prinsyour programs, too. 20*e689d293SMark Prins 21*e689d293SMark Prins When we speak of free software, we are referring to freedom, not 22*e689d293SMark Prinsprice. Our General Public Licenses are designed to make sure that you 23*e689d293SMark Prinshave the freedom to distribute copies of free software (and charge for 24*e689d293SMark Prinsthis service if you wish), that you receive source code or can get it 25*e689d293SMark Prinsif you want it, that you can change the software or use pieces of it 26*e689d293SMark Prinsin new free programs; and that you know you can do these things. 27*e689d293SMark Prins 28*e689d293SMark Prins To protect your rights, we need to make restrictions that forbid 29*e689d293SMark Prinsanyone to deny you these rights or to ask you to surrender the rights. 30*e689d293SMark PrinsThese restrictions translate to certain responsibilities for you if you 31*e689d293SMark Prinsdistribute copies of the software, or if you modify it. 32*e689d293SMark Prins 33*e689d293SMark Prins For example, if you distribute copies of such a program, whether 34*e689d293SMark Prinsgratis or for a fee, you must give the recipients all the rights that 35*e689d293SMark Prinsyou have. You must make sure that they, too, receive or can get the 36*e689d293SMark Prinssource code. And you must show them these terms so they know their 37*e689d293SMark Prinsrights. 38*e689d293SMark Prins 39*e689d293SMark Prins We protect your rights with two steps: (1) copyright the software, and 40*e689d293SMark Prins(2) offer you this license which gives you legal permission to copy, 41*e689d293SMark Prinsdistribute and/or modify the software. 42*e689d293SMark Prins 43*e689d293SMark Prins Also, for each author's protection and ours, we want to make certain 44*e689d293SMark Prinsthat everyone understands that there is no warranty for this free 45*e689d293SMark Prinssoftware. If the software is modified by someone else and passed on, we 46*e689d293SMark Prinswant its recipients to know that what they have is not the original, so 47*e689d293SMark Prinsthat any problems introduced by others will not reflect on the original 48*e689d293SMark Prinsauthors' reputations. 49*e689d293SMark Prins 50*e689d293SMark Prins Finally, any free program is threatened constantly by software 51*e689d293SMark Prinspatents. We wish to avoid the danger that redistributors of a free 52*e689d293SMark Prinsprogram will individually obtain patent licenses, in effect making the 53*e689d293SMark Prinsprogram proprietary. To prevent this, we have made it clear that any 54*e689d293SMark Prinspatent must be licensed for everyone's free use or not licensed at all. 55*e689d293SMark Prins 56*e689d293SMark Prins The precise terms and conditions for copying, distribution and 57*e689d293SMark Prinsmodification follow. 58*e689d293SMark Prins 59*e689d293SMark Prins GNU GENERAL PUBLIC LICENSE 60*e689d293SMark Prins TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*e689d293SMark Prins 62*e689d293SMark Prins 0. This License applies to any program or other work which contains 63*e689d293SMark Prinsa notice placed by the copyright holder saying it may be distributed 64*e689d293SMark Prinsunder the terms of this General Public License. The "Program", below, 65*e689d293SMark Prinsrefers to any such program or work, and a "work based on the Program" 66*e689d293SMark Prinsmeans either the Program or any derivative work under copyright law: 67*e689d293SMark Prinsthat is to say, a work containing the Program or a portion of it, 68*e689d293SMark Prinseither verbatim or with modifications and/or translated into another 69*e689d293SMark Prinslanguage. (Hereinafter, translation is included without limitation in 70*e689d293SMark Prinsthe term "modification".) Each licensee is addressed as "you". 71*e689d293SMark Prins 72*e689d293SMark PrinsActivities other than copying, distribution and modification are not 73*e689d293SMark Prinscovered by this License; they are outside its scope. The act of 74*e689d293SMark Prinsrunning the Program is not restricted, and the output from the Program 75*e689d293SMark Prinsis covered only if its contents constitute a work based on the 76*e689d293SMark PrinsProgram (independent of having been made by running the Program). 77*e689d293SMark PrinsWhether that is true depends on what the Program does. 78*e689d293SMark Prins 79*e689d293SMark Prins 1. You may copy and distribute verbatim copies of the Program's 80*e689d293SMark Prinssource code as you receive it, in any medium, provided that you 81*e689d293SMark Prinsconspicuously and appropriately publish on each copy an appropriate 82*e689d293SMark Prinscopyright notice and disclaimer of warranty; keep intact all the 83*e689d293SMark Prinsnotices that refer to this License and to the absence of any warranty; 84*e689d293SMark Prinsand give any other recipients of the Program a copy of this License 85*e689d293SMark Prinsalong with the Program. 86*e689d293SMark Prins 87*e689d293SMark PrinsYou may charge a fee for the physical act of transferring a copy, and 88*e689d293SMark Prinsyou may at your option offer warranty protection in exchange for a fee. 89*e689d293SMark Prins 90*e689d293SMark Prins 2. You may modify your copy or copies of the Program or any portion 91*e689d293SMark Prinsof it, thus forming a work based on the Program, and copy and 92*e689d293SMark Prinsdistribute such modifications or work under the terms of Section 1 93*e689d293SMark Prinsabove, provided that you also meet all of these conditions: 94*e689d293SMark Prins 95*e689d293SMark Prins a) You must cause the modified files to carry prominent notices 96*e689d293SMark Prins stating that you changed the files and the date of any change. 97*e689d293SMark Prins 98*e689d293SMark Prins b) You must cause any work that you distribute or publish, that in 99*e689d293SMark Prins whole or in part contains or is derived from the Program or any 100*e689d293SMark Prins part thereof, to be licensed as a whole at no charge to all third 101*e689d293SMark Prins parties under the terms of this License. 102*e689d293SMark Prins 103*e689d293SMark Prins c) If the modified program normally reads commands interactively 104*e689d293SMark Prins when run, you must cause it, when started running for such 105*e689d293SMark Prins interactive use in the most ordinary way, to print or display an 106*e689d293SMark Prins announcement including an appropriate copyright notice and a 107*e689d293SMark Prins notice that there is no warranty (or else, saying that you provide 108*e689d293SMark Prins a warranty) and that users may redistribute the program under 109*e689d293SMark Prins these conditions, and telling the user how to view a copy of this 110*e689d293SMark Prins License. (Exception: if the Program itself is interactive but 111*e689d293SMark Prins does not normally print such an announcement, your work based on 112*e689d293SMark Prins the Program is not required to print an announcement.) 113*e689d293SMark Prins 114*e689d293SMark PrinsThese requirements apply to the modified work as a whole. If 115*e689d293SMark Prinsidentifiable sections of that work are not derived from the Program, 116*e689d293SMark Prinsand can be reasonably considered independent and separate works in 117*e689d293SMark Prinsthemselves, then this License, and its terms, do not apply to those 118*e689d293SMark Prinssections when you distribute them as separate works. But when you 119*e689d293SMark Prinsdistribute the same sections as part of a whole which is a work based 120*e689d293SMark Prinson the Program, the distribution of the whole must be on the terms of 121*e689d293SMark Prinsthis License, whose permissions for other licensees extend to the 122*e689d293SMark Prinsentire whole, and thus to each and every part regardless of who wrote it. 123*e689d293SMark Prins 124*e689d293SMark PrinsThus, it is not the intent of this section to claim rights or contest 125*e689d293SMark Prinsyour rights to work written entirely by you; rather, the intent is to 126*e689d293SMark Prinsexercise the right to control the distribution of derivative or 127*e689d293SMark Prinscollective works based on the Program. 128*e689d293SMark Prins 129*e689d293SMark PrinsIn addition, mere aggregation of another work not based on the Program 130*e689d293SMark Prinswith the Program (or with a work based on the Program) on a volume of 131*e689d293SMark Prinsa storage or distribution medium does not bring the other work under 132*e689d293SMark Prinsthe scope of this License. 133*e689d293SMark Prins 134*e689d293SMark Prins 3. You may copy and distribute the Program (or a work based on it, 135*e689d293SMark Prinsunder Section 2) in object code or executable form under the terms of 136*e689d293SMark PrinsSections 1 and 2 above provided that you also do one of the following: 137*e689d293SMark Prins 138*e689d293SMark Prins a) Accompany it with the complete corresponding machine-readable 139*e689d293SMark Prins source code, which must be distributed under the terms of Sections 140*e689d293SMark Prins 1 and 2 above on a medium customarily used for software interchange; or, 141*e689d293SMark Prins 142*e689d293SMark Prins b) Accompany it with a written offer, valid for at least three 143*e689d293SMark Prins years, to give any third party, for a charge no more than your 144*e689d293SMark Prins cost of physically performing source distribution, a complete 145*e689d293SMark Prins machine-readable copy of the corresponding source code, to be 146*e689d293SMark Prins distributed under the terms of Sections 1 and 2 above on a medium 147*e689d293SMark Prins customarily used for software interchange; or, 148*e689d293SMark Prins 149*e689d293SMark Prins c) Accompany it with the information you received as to the offer 150*e689d293SMark Prins to distribute corresponding source code. (This alternative is 151*e689d293SMark Prins allowed only for noncommercial distribution and only if you 152*e689d293SMark Prins received the program in object code or executable form with such 153*e689d293SMark Prins an offer, in accord with Subsection b above.) 154*e689d293SMark Prins 155*e689d293SMark PrinsThe source code for a work means the preferred form of the work for 156*e689d293SMark Prinsmaking modifications to it. For an executable work, complete source 157*e689d293SMark Prinscode means all the source code for all modules it contains, plus any 158*e689d293SMark Prinsassociated interface definition files, plus the scripts used to 159*e689d293SMark Prinscontrol compilation and installation of the executable. However, as a 160*e689d293SMark Prinsspecial exception, the source code distributed need not include 161*e689d293SMark Prinsanything that is normally distributed (in either source or binary 162*e689d293SMark Prinsform) with the major components (compiler, kernel, and so on) of the 163*e689d293SMark Prinsoperating system on which the executable runs, unless that component 164*e689d293SMark Prinsitself accompanies the executable. 165*e689d293SMark Prins 166*e689d293SMark PrinsIf distribution of executable or object code is made by offering 167*e689d293SMark Prinsaccess to copy from a designated place, then offering equivalent 168*e689d293SMark Prinsaccess to copy the source code from the same place counts as 169*e689d293SMark Prinsdistribution of the source code, even though third parties are not 170*e689d293SMark Prinscompelled to copy the source along with the object code. 171*e689d293SMark Prins 172*e689d293SMark Prins 4. You may not copy, modify, sublicense, or distribute the Program 173*e689d293SMark Prinsexcept as expressly provided under this License. Any attempt 174*e689d293SMark Prinsotherwise to copy, modify, sublicense or distribute the Program is 175*e689d293SMark Prinsvoid, and will automatically terminate your rights under this License. 176*e689d293SMark PrinsHowever, parties who have received copies, or rights, from you under 177*e689d293SMark Prinsthis License will not have their licenses terminated so long as such 178*e689d293SMark Prinsparties remain in full compliance. 179*e689d293SMark Prins 180*e689d293SMark Prins 5. You are not required to accept this License, since you have not 181*e689d293SMark Prinssigned it. However, nothing else grants you permission to modify or 182*e689d293SMark Prinsdistribute the Program or its derivative works. These actions are 183*e689d293SMark Prinsprohibited by law if you do not accept this License. Therefore, by 184*e689d293SMark Prinsmodifying or distributing the Program (or any work based on the 185*e689d293SMark PrinsProgram), you indicate your acceptance of this License to do so, and 186*e689d293SMark Prinsall its terms and conditions for copying, distributing or modifying 187*e689d293SMark Prinsthe Program or works based on it. 188*e689d293SMark Prins 189*e689d293SMark Prins 6. Each time you redistribute the Program (or any work based on the 190*e689d293SMark PrinsProgram), the recipient automatically receives a license from the 191*e689d293SMark Prinsoriginal licensor to copy, distribute or modify the Program subject to 192*e689d293SMark Prinsthese terms and conditions. You may not impose any further 193*e689d293SMark Prinsrestrictions on the recipients' exercise of the rights granted herein. 194*e689d293SMark PrinsYou are not responsible for enforcing compliance by third parties to 195*e689d293SMark Prinsthis License. 196*e689d293SMark Prins 197*e689d293SMark Prins 7. If, as a consequence of a court judgment or allegation of patent 198*e689d293SMark Prinsinfringement or for any other reason (not limited to patent issues), 199*e689d293SMark Prinsconditions are imposed on you (whether by court order, agreement or 200*e689d293SMark Prinsotherwise) that contradict the conditions of this License, they do not 201*e689d293SMark Prinsexcuse you from the conditions of this License. If you cannot 202*e689d293SMark Prinsdistribute so as to satisfy simultaneously your obligations under this 203*e689d293SMark PrinsLicense and any other pertinent obligations, then as a consequence you 204*e689d293SMark Prinsmay not distribute the Program at all. For example, if a patent 205*e689d293SMark Prinslicense would not permit royalty-free redistribution of the Program by 206*e689d293SMark Prinsall those who receive copies directly or indirectly through you, then 207*e689d293SMark Prinsthe only way you could satisfy both it and this License would be to 208*e689d293SMark Prinsrefrain entirely from distribution of the Program. 209*e689d293SMark Prins 210*e689d293SMark PrinsIf any portion of this section is held invalid or unenforceable under 211*e689d293SMark Prinsany particular circumstance, the balance of the section is intended to 212*e689d293SMark Prinsapply and the section as a whole is intended to apply in other 213*e689d293SMark Prinscircumstances. 214*e689d293SMark Prins 215*e689d293SMark PrinsIt is not the purpose of this section to induce you to infringe any 216*e689d293SMark Prinspatents or other property right claims or to contest validity of any 217*e689d293SMark Prinssuch claims; this section has the sole purpose of protecting the 218*e689d293SMark Prinsintegrity of the free software distribution system, which is 219*e689d293SMark Prinsimplemented by public license practices. Many people have made 220*e689d293SMark Prinsgenerous contributions to the wide range of software distributed 221*e689d293SMark Prinsthrough that system in reliance on consistent application of that 222*e689d293SMark Prinssystem; it is up to the author/donor to decide if he or she is willing 223*e689d293SMark Prinsto distribute software through any other system and a licensee cannot 224*e689d293SMark Prinsimpose that choice. 225*e689d293SMark Prins 226*e689d293SMark PrinsThis section is intended to make thoroughly clear what is believed to 227*e689d293SMark Prinsbe a consequence of the rest of this License. 228*e689d293SMark Prins 229*e689d293SMark Prins 8. If the distribution and/or use of the Program is restricted in 230*e689d293SMark Prinscertain countries either by patents or by copyrighted interfaces, the 231*e689d293SMark Prinsoriginal copyright holder who places the Program under this License 232*e689d293SMark Prinsmay add an explicit geographical distribution limitation excluding 233*e689d293SMark Prinsthose countries, so that distribution is permitted only in or among 234*e689d293SMark Prinscountries not thus excluded. In such case, this License incorporates 235*e689d293SMark Prinsthe limitation as if written in the body of this License. 236*e689d293SMark Prins 237*e689d293SMark Prins 9. The Free Software Foundation may publish revised and/or new versions 238*e689d293SMark Prinsof the General Public License from time to time. Such new versions will 239*e689d293SMark Prinsbe similar in spirit to the present version, but may differ in detail to 240*e689d293SMark Prinsaddress new problems or concerns. 241*e689d293SMark Prins 242*e689d293SMark PrinsEach version is given a distinguishing version number. If the Program 243*e689d293SMark Prinsspecifies a version number of this License which applies to it and "any 244*e689d293SMark Prinslater version", you have the option of following the terms and conditions 245*e689d293SMark Prinseither of that version or of any later version published by the Free 246*e689d293SMark PrinsSoftware Foundation. If the Program does not specify a version number of 247*e689d293SMark Prinsthis License, you may choose any version ever published by the Free Software 248*e689d293SMark PrinsFoundation. 249*e689d293SMark Prins 250*e689d293SMark Prins 10. If you wish to incorporate parts of the Program into other free 251*e689d293SMark Prinsprograms whose distribution conditions are different, write to the author 252*e689d293SMark Prinsto ask for permission. For software which is copyrighted by the Free 253*e689d293SMark PrinsSoftware Foundation, write to the Free Software Foundation; we sometimes 254*e689d293SMark Prinsmake exceptions for this. Our decision will be guided by the two goals 255*e689d293SMark Prinsof preserving the free status of all derivatives of our free software and 256*e689d293SMark Prinsof promoting the sharing and reuse of software generally. 257*e689d293SMark Prins 258*e689d293SMark Prins NO WARRANTY 259*e689d293SMark Prins 260*e689d293SMark Prins 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*e689d293SMark PrinsFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*e689d293SMark PrinsOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*e689d293SMark PrinsPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*e689d293SMark PrinsOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*e689d293SMark PrinsMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*e689d293SMark PrinsTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*e689d293SMark PrinsPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*e689d293SMark PrinsREPAIR OR CORRECTION. 269*e689d293SMark Prins 270*e689d293SMark Prins 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*e689d293SMark PrinsWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*e689d293SMark PrinsREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*e689d293SMark PrinsINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*e689d293SMark PrinsOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*e689d293SMark PrinsTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*e689d293SMark PrinsYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*e689d293SMark PrinsPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*e689d293SMark PrinsPOSSIBILITY OF SUCH DAMAGES. 279*e689d293SMark Prins 280*e689d293SMark Prins END OF TERMS AND CONDITIONS 281*e689d293SMark Prins 282*e689d293SMark Prins How to Apply These Terms to Your New Programs 283*e689d293SMark Prins 284*e689d293SMark Prins If you develop a new program, and you want it to be of the greatest 285*e689d293SMark Prinspossible use to the public, the best way to achieve this is to make it 286*e689d293SMark Prinsfree software which everyone can redistribute and change under these terms. 287*e689d293SMark Prins 288*e689d293SMark Prins To do so, attach the following notices to the program. It is safest 289*e689d293SMark Prinsto attach them to the start of each source file to most effectively 290*e689d293SMark Prinsconvey the exclusion of warranty; and each file should have at least 291*e689d293SMark Prinsthe "copyright" line and a pointer to where the full notice is found. 292*e689d293SMark Prins 293*e689d293SMark Prins {description} 294*e689d293SMark Prins Copyright (C) {year} {fullname} 295*e689d293SMark Prins 296*e689d293SMark Prins This program is free software; you can redistribute it and/or modify 297*e689d293SMark Prins it under the terms of the GNU General Public License as published by 298*e689d293SMark Prins the Free Software Foundation; either version 2 of the License, or 299*e689d293SMark Prins (at your option) any later version. 300*e689d293SMark Prins 301*e689d293SMark Prins This program is distributed in the hope that it will be useful, 302*e689d293SMark Prins but WITHOUT ANY WARRANTY; without even the implied warranty of 303*e689d293SMark Prins MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*e689d293SMark Prins GNU General Public License for more details. 305*e689d293SMark Prins 306*e689d293SMark Prins You should have received a copy of the GNU General Public License along 307*e689d293SMark Prins with this program; if not, write to the Free Software Foundation, Inc., 308*e689d293SMark Prins 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309*e689d293SMark Prins 310*e689d293SMark PrinsAlso add information on how to contact you by electronic and paper mail. 311*e689d293SMark Prins 312*e689d293SMark PrinsIf the program is interactive, make it output a short notice like this 313*e689d293SMark Prinswhen it starts in an interactive mode: 314*e689d293SMark Prins 315*e689d293SMark Prins Gnomovision version 69, Copyright (C) year name of author 316*e689d293SMark Prins Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317*e689d293SMark Prins This is free software, and you are welcome to redistribute it 318*e689d293SMark Prins under certain conditions; type `show c' for details. 319*e689d293SMark Prins 320*e689d293SMark PrinsThe hypothetical commands `show w' and `show c' should show the appropriate 321*e689d293SMark Prinsparts of the General Public License. Of course, the commands you use may 322*e689d293SMark Prinsbe called something other than `show w' and `show c'; they could even be 323*e689d293SMark Prinsmouse-clicks or menu items--whatever suits your program. 324*e689d293SMark Prins 325*e689d293SMark PrinsYou should also get your employer (if you work as a programmer) or your 326*e689d293SMark Prinsschool, if any, to sign a "copyright disclaimer" for the program, if 327*e689d293SMark Prinsnecessary. Here is a sample; alter the names: 328*e689d293SMark Prins 329*e689d293SMark Prins Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330*e689d293SMark Prins `Gnomovision' (which makes passes at compilers) written by James Hacker. 331*e689d293SMark Prins 332*e689d293SMark Prins {signature of Ty Coon}, 1 April 1989 333*e689d293SMark Prins Ty Coon, President of Vice 334*e689d293SMark Prins 335*e689d293SMark PrinsThis General Public License does not permit incorporating your program into 336*e689d293SMark Prinsproprietary programs. If your program is a subroutine library, you may 337*e689d293SMark Prinsconsider it more useful to permit linking proprietary applications with the 338*e689d293SMark Prinslibrary. If this is what you want to do, use the GNU Lesser General 339*e689d293SMark PrinsPublic License instead of this License.