1*404b540aSrobert GNU GENERAL PUBLIC LICENSE 2*404b540aSrobert Version 2, June 1991 3*404b540aSrobert 4*404b540aSrobert Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*404b540aSrobert 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6*404b540aSrobert Everyone is permitted to copy and distribute verbatim copies 7*404b540aSrobert of this license document, but changing it is not allowed. 8*404b540aSrobert 9*404b540aSrobert Preamble 10*404b540aSrobert 11*404b540aSrobert The licenses for most software are designed to take away your 12*404b540aSrobertfreedom to share and change it. By contrast, the GNU General Public 13*404b540aSrobertLicense is intended to guarantee your freedom to share and change free 14*404b540aSrobertsoftware--to make sure the software is free for all its users. This 15*404b540aSrobertGeneral Public License applies to most of the Free Software 16*404b540aSrobertFoundation's software and to any other program whose authors commit to 17*404b540aSrobertusing it. (Some other Free Software Foundation software is covered by 18*404b540aSrobertthe GNU Library General Public License instead.) You can apply it to 19*404b540aSrobertyour programs, too. 20*404b540aSrobert 21*404b540aSrobert When we speak of free software, we are referring to freedom, not 22*404b540aSrobertprice. Our General Public Licenses are designed to make sure that you 23*404b540aSroberthave the freedom to distribute copies of free software (and charge for 24*404b540aSrobertthis service if you wish), that you receive source code or can get it 25*404b540aSrobertif you want it, that you can change the software or use pieces of it 26*404b540aSrobertin new free programs; and that you know you can do these things. 27*404b540aSrobert 28*404b540aSrobert To protect your rights, we need to make restrictions that forbid 29*404b540aSrobertanyone to deny you these rights or to ask you to surrender the rights. 30*404b540aSrobertThese restrictions translate to certain responsibilities for you if you 31*404b540aSrobertdistribute copies of the software, or if you modify it. 32*404b540aSrobert 33*404b540aSrobert For example, if you distribute copies of such a program, whether 34*404b540aSrobertgratis or for a fee, you must give the recipients all the rights that 35*404b540aSrobertyou have. You must make sure that they, too, receive or can get the 36*404b540aSrobertsource code. And you must show them these terms so they know their 37*404b540aSrobertrights. 38*404b540aSrobert 39*404b540aSrobert We protect your rights with two steps: (1) copyright the software, and 40*404b540aSrobert(2) offer you this license which gives you legal permission to copy, 41*404b540aSrobertdistribute and/or modify the software. 42*404b540aSrobert 43*404b540aSrobert Also, for each author's protection and ours, we want to make certain 44*404b540aSrobertthat everyone understands that there is no warranty for this free 45*404b540aSrobertsoftware. If the software is modified by someone else and passed on, we 46*404b540aSrobertwant its recipients to know that what they have is not the original, so 47*404b540aSrobertthat any problems introduced by others will not reflect on the original 48*404b540aSrobertauthors' reputations. 49*404b540aSrobert 50*404b540aSrobert Finally, any free program is threatened constantly by software 51*404b540aSrobertpatents. We wish to avoid the danger that redistributors of a free 52*404b540aSrobertprogram will individually obtain patent licenses, in effect making the 53*404b540aSrobertprogram proprietary. To prevent this, we have made it clear that any 54*404b540aSrobertpatent must be licensed for everyone's free use or not licensed at all. 55*404b540aSrobert 56*404b540aSrobert The precise terms and conditions for copying, distribution and 57*404b540aSrobertmodification follow. 58*404b540aSrobert 59*404b540aSrobert GNU GENERAL PUBLIC LICENSE 60*404b540aSrobert TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*404b540aSrobert 62*404b540aSrobert 0. This License applies to any program or other work which contains 63*404b540aSroberta notice placed by the copyright holder saying it may be distributed 64*404b540aSrobertunder the terms of this General Public License. The "Program", below, 65*404b540aSrobertrefers to any such program or work, and a "work based on the Program" 66*404b540aSrobertmeans either the Program or any derivative work under copyright law: 67*404b540aSrobertthat is to say, a work containing the Program or a portion of it, 68*404b540aSroberteither verbatim or with modifications and/or translated into another 69*404b540aSrobertlanguage. (Hereinafter, translation is included without limitation in 70*404b540aSrobertthe term "modification".) Each licensee is addressed as "you". 71*404b540aSrobert 72*404b540aSrobertActivities other than copying, distribution and modification are not 73*404b540aSrobertcovered by this License; they are outside its scope. The act of 74*404b540aSrobertrunning the Program is not restricted, and the output from the Program 75*404b540aSrobertis covered only if its contents constitute a work based on the 76*404b540aSrobertProgram (independent of having been made by running the Program). 77*404b540aSrobertWhether that is true depends on what the Program does. 78*404b540aSrobert 79*404b540aSrobert 1. You may copy and distribute verbatim copies of the Program's 80*404b540aSrobertsource code as you receive it, in any medium, provided that you 81*404b540aSrobertconspicuously and appropriately publish on each copy an appropriate 82*404b540aSrobertcopyright notice and disclaimer of warranty; keep intact all the 83*404b540aSrobertnotices that refer to this License and to the absence of any warranty; 84*404b540aSrobertand give any other recipients of the Program a copy of this License 85*404b540aSrobertalong with the Program. 86*404b540aSrobert 87*404b540aSrobertYou may charge a fee for the physical act of transferring a copy, and 88*404b540aSrobertyou may at your option offer warranty protection in exchange for a fee. 89*404b540aSrobert 90*404b540aSrobert 2. You may modify your copy or copies of the Program or any portion 91*404b540aSrobertof it, thus forming a work based on the Program, and copy and 92*404b540aSrobertdistribute such modifications or work under the terms of Section 1 93*404b540aSrobertabove, provided that you also meet all of these conditions: 94*404b540aSrobert 95*404b540aSrobert a) You must cause the modified files to carry prominent notices 96*404b540aSrobert stating that you changed the files and the date of any change. 97*404b540aSrobert 98*404b540aSrobert b) You must cause any work that you distribute or publish, that in 99*404b540aSrobert whole or in part contains or is derived from the Program or any 100*404b540aSrobert part thereof, to be licensed as a whole at no charge to all third 101*404b540aSrobert parties under the terms of this License. 102*404b540aSrobert 103*404b540aSrobert c) If the modified program normally reads commands interactively 104*404b540aSrobert when run, you must cause it, when started running for such 105*404b540aSrobert interactive use in the most ordinary way, to print or display an 106*404b540aSrobert announcement including an appropriate copyright notice and a 107*404b540aSrobert notice that there is no warranty (or else, saying that you provide 108*404b540aSrobert a warranty) and that users may redistribute the program under 109*404b540aSrobert these conditions, and telling the user how to view a copy of this 110*404b540aSrobert License. (Exception: if the Program itself is interactive but 111*404b540aSrobert does not normally print such an announcement, your work based on 112*404b540aSrobert the Program is not required to print an announcement.) 113*404b540aSrobert 114*404b540aSrobertThese requirements apply to the modified work as a whole. If 115*404b540aSrobertidentifiable sections of that work are not derived from the Program, 116*404b540aSrobertand can be reasonably considered independent and separate works in 117*404b540aSrobertthemselves, then this License, and its terms, do not apply to those 118*404b540aSrobertsections when you distribute them as separate works. But when you 119*404b540aSrobertdistribute the same sections as part of a whole which is a work based 120*404b540aSroberton the Program, the distribution of the whole must be on the terms of 121*404b540aSrobertthis License, whose permissions for other licensees extend to the 122*404b540aSrobertentire whole, and thus to each and every part regardless of who wrote it. 123*404b540aSrobert 124*404b540aSrobertThus, it is not the intent of this section to claim rights or contest 125*404b540aSrobertyour rights to work written entirely by you; rather, the intent is to 126*404b540aSrobertexercise the right to control the distribution of derivative or 127*404b540aSrobertcollective works based on the Program. 128*404b540aSrobert 129*404b540aSrobertIn addition, mere aggregation of another work not based on the Program 130*404b540aSrobertwith the Program (or with a work based on the Program) on a volume of 131*404b540aSroberta storage or distribution medium does not bring the other work under 132*404b540aSrobertthe scope of this License. 133*404b540aSrobert 134*404b540aSrobert 3. You may copy and distribute the Program (or a work based on it, 135*404b540aSrobertunder Section 2) in object code or executable form under the terms of 136*404b540aSrobertSections 1 and 2 above provided that you also do one of the following: 137*404b540aSrobert 138*404b540aSrobert a) Accompany it with the complete corresponding machine-readable 139*404b540aSrobert source code, which must be distributed under the terms of Sections 140*404b540aSrobert 1 and 2 above on a medium customarily used for software interchange; or, 141*404b540aSrobert 142*404b540aSrobert b) Accompany it with a written offer, valid for at least three 143*404b540aSrobert years, to give any third party, for a charge no more than your 144*404b540aSrobert cost of physically performing source distribution, a complete 145*404b540aSrobert machine-readable copy of the corresponding source code, to be 146*404b540aSrobert distributed under the terms of Sections 1 and 2 above on a medium 147*404b540aSrobert customarily used for software interchange; or, 148*404b540aSrobert 149*404b540aSrobert c) Accompany it with the information you received as to the offer 150*404b540aSrobert to distribute corresponding source code. (This alternative is 151*404b540aSrobert allowed only for noncommercial distribution and only if you 152*404b540aSrobert received the program in object code or executable form with such 153*404b540aSrobert an offer, in accord with Subsection b above.) 154*404b540aSrobert 155*404b540aSrobertThe source code for a work means the preferred form of the work for 156*404b540aSrobertmaking modifications to it. For an executable work, complete source 157*404b540aSrobertcode means all the source code for all modules it contains, plus any 158*404b540aSrobertassociated interface definition files, plus the scripts used to 159*404b540aSrobertcontrol compilation and installation of the executable. However, as a 160*404b540aSrobertspecial exception, the source code distributed need not include 161*404b540aSrobertanything that is normally distributed (in either source or binary 162*404b540aSrobertform) with the major components (compiler, kernel, and so on) of the 163*404b540aSrobertoperating system on which the executable runs, unless that component 164*404b540aSrobertitself accompanies the executable. 165*404b540aSrobert 166*404b540aSrobertIf distribution of executable or object code is made by offering 167*404b540aSrobertaccess to copy from a designated place, then offering equivalent 168*404b540aSrobertaccess to copy the source code from the same place counts as 169*404b540aSrobertdistribution of the source code, even though third parties are not 170*404b540aSrobertcompelled to copy the source along with the object code. 171*404b540aSrobert 172*404b540aSrobert 4. You may not copy, modify, sublicense, or distribute the Program 173*404b540aSrobertexcept as expressly provided under this License. Any attempt 174*404b540aSrobertotherwise to copy, modify, sublicense or distribute the Program is 175*404b540aSrobertvoid, and will automatically terminate your rights under this License. 176*404b540aSrobertHowever, parties who have received copies, or rights, from you under 177*404b540aSrobertthis License will not have their licenses terminated so long as such 178*404b540aSrobertparties remain in full compliance. 179*404b540aSrobert 180*404b540aSrobert 5. You are not required to accept this License, since you have not 181*404b540aSrobertsigned it. However, nothing else grants you permission to modify or 182*404b540aSrobertdistribute the Program or its derivative works. These actions are 183*404b540aSrobertprohibited by law if you do not accept this License. Therefore, by 184*404b540aSrobertmodifying or distributing the Program (or any work based on the 185*404b540aSrobertProgram), you indicate your acceptance of this License to do so, and 186*404b540aSrobertall its terms and conditions for copying, distributing or modifying 187*404b540aSrobertthe Program or works based on it. 188*404b540aSrobert 189*404b540aSrobert 6. Each time you redistribute the Program (or any work based on the 190*404b540aSrobertProgram), the recipient automatically receives a license from the 191*404b540aSrobertoriginal licensor to copy, distribute or modify the Program subject to 192*404b540aSrobertthese terms and conditions. You may not impose any further 193*404b540aSrobertrestrictions on the recipients' exercise of the rights granted herein. 194*404b540aSrobertYou are not responsible for enforcing compliance by third parties to 195*404b540aSrobertthis License. 196*404b540aSrobert 197*404b540aSrobert 7. If, as a consequence of a court judgment or allegation of patent 198*404b540aSrobertinfringement or for any other reason (not limited to patent issues), 199*404b540aSrobertconditions are imposed on you (whether by court order, agreement or 200*404b540aSrobertotherwise) that contradict the conditions of this License, they do not 201*404b540aSrobertexcuse you from the conditions of this License. If you cannot 202*404b540aSrobertdistribute so as to satisfy simultaneously your obligations under this 203*404b540aSrobertLicense and any other pertinent obligations, then as a consequence you 204*404b540aSrobertmay not distribute the Program at all. For example, if a patent 205*404b540aSrobertlicense would not permit royalty-free redistribution of the Program by 206*404b540aSrobertall those who receive copies directly or indirectly through you, then 207*404b540aSrobertthe only way you could satisfy both it and this License would be to 208*404b540aSrobertrefrain entirely from distribution of the Program. 209*404b540aSrobert 210*404b540aSrobertIf any portion of this section is held invalid or unenforceable under 211*404b540aSrobertany particular circumstance, the balance of the section is intended to 212*404b540aSrobertapply and the section as a whole is intended to apply in other 213*404b540aSrobertcircumstances. 214*404b540aSrobert 215*404b540aSrobertIt is not the purpose of this section to induce you to infringe any 216*404b540aSrobertpatents or other property right claims or to contest validity of any 217*404b540aSrobertsuch claims; this section has the sole purpose of protecting the 218*404b540aSrobertintegrity of the free software distribution system, which is 219*404b540aSrobertimplemented by public license practices. Many people have made 220*404b540aSrobertgenerous contributions to the wide range of software distributed 221*404b540aSrobertthrough that system in reliance on consistent application of that 222*404b540aSrobertsystem; it is up to the author/donor to decide if he or she is willing 223*404b540aSrobertto distribute software through any other system and a licensee cannot 224*404b540aSrobertimpose that choice. 225*404b540aSrobert 226*404b540aSrobertThis section is intended to make thoroughly clear what is believed to 227*404b540aSrobertbe a consequence of the rest of this License. 228*404b540aSrobert 229*404b540aSrobert 8. If the distribution and/or use of the Program is restricted in 230*404b540aSrobertcertain countries either by patents or by copyrighted interfaces, the 231*404b540aSrobertoriginal copyright holder who places the Program under this License 232*404b540aSrobertmay add an explicit geographical distribution limitation excluding 233*404b540aSrobertthose countries, so that distribution is permitted only in or among 234*404b540aSrobertcountries not thus excluded. In such case, this License incorporates 235*404b540aSrobertthe limitation as if written in the body of this License. 236*404b540aSrobert 237*404b540aSrobert 9. The Free Software Foundation may publish revised and/or new versions 238*404b540aSrobertof the General Public License from time to time. Such new versions will 239*404b540aSrobertbe similar in spirit to the present version, but may differ in detail to 240*404b540aSrobertaddress new problems or concerns. 241*404b540aSrobert 242*404b540aSrobertEach version is given a distinguishing version number. If the Program 243*404b540aSrobertspecifies a version number of this License which applies to it and "any 244*404b540aSrobertlater version", you have the option of following the terms and conditions 245*404b540aSroberteither of that version or of any later version published by the Free 246*404b540aSrobertSoftware Foundation. If the Program does not specify a version number of 247*404b540aSrobertthis License, you may choose any version ever published by the Free Software 248*404b540aSrobertFoundation. 249*404b540aSrobert 250*404b540aSrobert 10. If you wish to incorporate parts of the Program into other free 251*404b540aSrobertprograms whose distribution conditions are different, write to the author 252*404b540aSrobertto ask for permission. For software which is copyrighted by the Free 253*404b540aSrobertSoftware Foundation, write to the Free Software Foundation; we sometimes 254*404b540aSrobertmake exceptions for this. Our decision will be guided by the two goals 255*404b540aSrobertof preserving the free status of all derivatives of our free software and 256*404b540aSrobertof promoting the sharing and reuse of software generally. 257*404b540aSrobert 258*404b540aSrobert NO WARRANTY 259*404b540aSrobert 260*404b540aSrobert 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*404b540aSrobertFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*404b540aSrobertOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*404b540aSrobertPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*404b540aSrobertOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*404b540aSrobertMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*404b540aSrobertTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*404b540aSrobertPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*404b540aSrobertREPAIR OR CORRECTION. 269*404b540aSrobert 270*404b540aSrobert 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*404b540aSrobertWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*404b540aSrobertREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*404b540aSrobertINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*404b540aSrobertOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*404b540aSrobertTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*404b540aSrobertYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*404b540aSrobertPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*404b540aSrobertPOSSIBILITY OF SUCH DAMAGES. 279*404b540aSrobert 280*404b540aSrobert END OF TERMS AND CONDITIONS 281*404b540aSrobert 282*404b540aSrobert How to Apply These Terms to Your New Programs 283*404b540aSrobert 284*404b540aSrobert If you develop a new program, and you want it to be of the greatest 285*404b540aSrobertpossible use to the public, the best way to achieve this is to make it 286*404b540aSrobertfree software which everyone can redistribute and change under these terms. 287*404b540aSrobert 288*404b540aSrobert To do so, attach the following notices to the program. It is safest 289*404b540aSrobertto attach them to the start of each source file to most effectively 290*404b540aSrobertconvey the exclusion of warranty; and each file should have at least 291*404b540aSrobertthe "copyright" line and a pointer to where the full notice is found. 292*404b540aSrobert 293*404b540aSrobert <one line to give the program's name and a brief idea of what it does.> 294*404b540aSrobert Copyright (C) <year> <name of author> 295*404b540aSrobert 296*404b540aSrobert This program is free software; you can redistribute it and/or modify 297*404b540aSrobert it under the terms of the GNU General Public License as published by 298*404b540aSrobert the Free Software Foundation; either version 2 of the License, or 299*404b540aSrobert (at your option) any later version. 300*404b540aSrobert 301*404b540aSrobert This program is distributed in the hope that it will be useful, 302*404b540aSrobert but WITHOUT ANY WARRANTY; without even the implied warranty of 303*404b540aSrobert MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*404b540aSrobert GNU General Public License for more details. 305*404b540aSrobert 306*404b540aSrobert You should have received a copy of the GNU General Public License 307*404b540aSrobert along with this program; if not, write to the Free Software 308*404b540aSrobert Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 309*404b540aSrobert 310*404b540aSrobert 311*404b540aSrobertAlso add information on how to contact you by electronic and paper mail. 312*404b540aSrobert 313*404b540aSrobertIf the program is interactive, make it output a short notice like this 314*404b540aSrobertwhen it starts in an interactive mode: 315*404b540aSrobert 316*404b540aSrobert Gnomovision version 69, Copyright (C) year name of author 317*404b540aSrobert Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318*404b540aSrobert This is free software, and you are welcome to redistribute it 319*404b540aSrobert under certain conditions; type `show c' for details. 320*404b540aSrobert 321*404b540aSrobertThe hypothetical commands `show w' and `show c' should show the appropriate 322*404b540aSrobertparts of the General Public License. Of course, the commands you use may 323*404b540aSrobertbe called something other than `show w' and `show c'; they could even be 324*404b540aSrobertmouse-clicks or menu items--whatever suits your program. 325*404b540aSrobert 326*404b540aSrobertYou should also get your employer (if you work as a programmer) or your 327*404b540aSrobertschool, if any, to sign a "copyright disclaimer" for the program, if 328*404b540aSrobertnecessary. Here is a sample; alter the names: 329*404b540aSrobert 330*404b540aSrobert Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331*404b540aSrobert `Gnomovision' (which makes passes at compilers) written by James Hacker. 332*404b540aSrobert 333*404b540aSrobert <signature of Ty Coon>, 1 April 1989 334*404b540aSrobert Ty Coon, President of Vice 335*404b540aSrobert 336*404b540aSrobertThis General Public License does not permit incorporating your program into 337*404b540aSrobertproprietary programs. If your program is a subroutine library, you may 338*404b540aSrobertconsider it more useful to permit linking proprietary applications with the 339*404b540aSrobertlibrary. If this is what you want to do, use the GNU Library General 340*404b540aSrobertPublic License instead of this License. 341