1*568742a3Sdarren GNU GENERAL PUBLIC LICENSE 2*568742a3Sdarren Version 2, June 1991 3*568742a3Sdarren 4*568742a3Sdarren Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5*568742a3Sdarren 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6*568742a3Sdarren Everyone is permitted to copy and distribute verbatim copies 7*568742a3Sdarren of this license document, but changing it is not allowed. 8*568742a3Sdarren 9*568742a3Sdarren Preamble 10*568742a3Sdarren 11*568742a3Sdarren The licenses for most software are designed to take away your 12*568742a3Sdarrenfreedom to share and change it. By contrast, the GNU General Public 13*568742a3SdarrenLicense is intended to guarantee your freedom to share and change free 14*568742a3Sdarrensoftware--to make sure the software is free for all its users. This 15*568742a3SdarrenGeneral Public License applies to most of the Free Software 16*568742a3SdarrenFoundation's software and to any other program whose authors commit to 17*568742a3Sdarrenusing it. (Some other Free Software Foundation software is covered by 18*568742a3Sdarrenthe GNU Library General Public License instead.) You can apply it to 19*568742a3Sdarrenyour programs, too. 20*568742a3Sdarren 21*568742a3Sdarren When we speak of free software, we are referring to freedom, not 22*568742a3Sdarrenprice. Our General Public Licenses are designed to make sure that you 23*568742a3Sdarrenhave the freedom to distribute copies of free software (and charge for 24*568742a3Sdarrenthis service if you wish), that you receive source code or can get it 25*568742a3Sdarrenif you want it, that you can change the software or use pieces of it 26*568742a3Sdarrenin new free programs; and that you know you can do these things. 27*568742a3Sdarren 28*568742a3Sdarren To protect your rights, we need to make restrictions that forbid 29*568742a3Sdarrenanyone to deny you these rights or to ask you to surrender the rights. 30*568742a3SdarrenThese restrictions translate to certain responsibilities for you if you 31*568742a3Sdarrendistribute copies of the software, or if you modify it. 32*568742a3Sdarren 33*568742a3Sdarren For example, if you distribute copies of such a program, whether 34*568742a3Sdarrengratis or for a fee, you must give the recipients all the rights that 35*568742a3Sdarrenyou have. You must make sure that they, too, receive or can get the 36*568742a3Sdarrensource code. And you must show them these terms so they know their 37*568742a3Sdarrenrights. 38*568742a3Sdarren 39*568742a3Sdarren We protect your rights with two steps: (1) copyright the software, and 40*568742a3Sdarren(2) offer you this license which gives you legal permission to copy, 41*568742a3Sdarrendistribute and/or modify the software. 42*568742a3Sdarren 43*568742a3Sdarren Also, for each author's protection and ours, we want to make certain 44*568742a3Sdarrenthat everyone understands that there is no warranty for this free 45*568742a3Sdarrensoftware. If the software is modified by someone else and passed on, we 46*568742a3Sdarrenwant its recipients to know that what they have is not the original, so 47*568742a3Sdarrenthat any problems introduced by others will not reflect on the original 48*568742a3Sdarrenauthors' reputations. 49*568742a3Sdarren 50*568742a3Sdarren Finally, any free program is threatened constantly by software 51*568742a3Sdarrenpatents. We wish to avoid the danger that redistributors of a free 52*568742a3Sdarrenprogram will individually obtain patent licenses, in effect making the 53*568742a3Sdarrenprogram proprietary. To prevent this, we have made it clear that any 54*568742a3Sdarrenpatent must be licensed for everyone's free use or not licensed at all. 55*568742a3Sdarren 56*568742a3Sdarren The precise terms and conditions for copying, distribution and 57*568742a3Sdarrenmodification follow. 58*568742a3Sdarren 59*568742a3Sdarren GNU GENERAL PUBLIC LICENSE 60*568742a3Sdarren TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61*568742a3Sdarren 62*568742a3Sdarren 0. This License applies to any program or other work which contains 63*568742a3Sdarrena notice placed by the copyright holder saying it may be distributed 64*568742a3Sdarrenunder the terms of this General Public License. The "Program", below, 65*568742a3Sdarrenrefers to any such program or work, and a "work based on the Program" 66*568742a3Sdarrenmeans either the Program or any derivative work under copyright law: 67*568742a3Sdarrenthat is to say, a work containing the Program or a portion of it, 68*568742a3Sdarreneither verbatim or with modifications and/or translated into another 69*568742a3Sdarrenlanguage. (Hereinafter, translation is included without limitation in 70*568742a3Sdarrenthe term "modification".) Each licensee is addressed as "you". 71*568742a3Sdarren 72*568742a3SdarrenActivities other than copying, distribution and modification are not 73*568742a3Sdarrencovered by this License; they are outside its scope. The act of 74*568742a3Sdarrenrunning the Program is not restricted, and the output from the Program 75*568742a3Sdarrenis covered only if its contents constitute a work based on the 76*568742a3SdarrenProgram (independent of having been made by running the Program). 77*568742a3SdarrenWhether that is true depends on what the Program does. 78*568742a3Sdarren 79*568742a3Sdarren 1. You may copy and distribute verbatim copies of the Program's 80*568742a3Sdarrensource code as you receive it, in any medium, provided that you 81*568742a3Sdarrenconspicuously and appropriately publish on each copy an appropriate 82*568742a3Sdarrencopyright notice and disclaimer of warranty; keep intact all the 83*568742a3Sdarrennotices that refer to this License and to the absence of any warranty; 84*568742a3Sdarrenand give any other recipients of the Program a copy of this License 85*568742a3Sdarrenalong with the Program. 86*568742a3Sdarren 87*568742a3SdarrenYou may charge a fee for the physical act of transferring a copy, and 88*568742a3Sdarrenyou may at your option offer warranty protection in exchange for a fee. 89*568742a3Sdarren 90*568742a3Sdarren 2. You may modify your copy or copies of the Program or any portion 91*568742a3Sdarrenof it, thus forming a work based on the Program, and copy and 92*568742a3Sdarrendistribute such modifications or work under the terms of Section 1 93*568742a3Sdarrenabove, provided that you also meet all of these conditions: 94*568742a3Sdarren 95*568742a3Sdarren a) You must cause the modified files to carry prominent notices 96*568742a3Sdarren stating that you changed the files and the date of any change. 97*568742a3Sdarren 98*568742a3Sdarren b) You must cause any work that you distribute or publish, that in 99*568742a3Sdarren whole or in part contains or is derived from the Program or any 100*568742a3Sdarren part thereof, to be licensed as a whole at no charge to all third 101*568742a3Sdarren parties under the terms of this License. 102*568742a3Sdarren 103*568742a3Sdarren c) If the modified program normally reads commands interactively 104*568742a3Sdarren when run, you must cause it, when started running for such 105*568742a3Sdarren interactive use in the most ordinary way, to print or display an 106*568742a3Sdarren announcement including an appropriate copyright notice and a 107*568742a3Sdarren notice that there is no warranty (or else, saying that you provide 108*568742a3Sdarren a warranty) and that users may redistribute the program under 109*568742a3Sdarren these conditions, and telling the user how to view a copy of this 110*568742a3Sdarren License. (Exception: if the Program itself is interactive but 111*568742a3Sdarren does not normally print such an announcement, your work based on 112*568742a3Sdarren the Program is not required to print an announcement.) 113*568742a3Sdarren 114*568742a3SdarrenThese requirements apply to the modified work as a whole. If 115*568742a3Sdarrenidentifiable sections of that work are not derived from the Program, 116*568742a3Sdarrenand can be reasonably considered independent and separate works in 117*568742a3Sdarrenthemselves, then this License, and its terms, do not apply to those 118*568742a3Sdarrensections when you distribute them as separate works. But when you 119*568742a3Sdarrendistribute the same sections as part of a whole which is a work based 120*568742a3Sdarrenon the Program, the distribution of the whole must be on the terms of 121*568742a3Sdarrenthis License, whose permissions for other licensees extend to the 122*568742a3Sdarrenentire whole, and thus to each and every part regardless of who wrote it. 123*568742a3Sdarren 124*568742a3SdarrenThus, it is not the intent of this section to claim rights or contest 125*568742a3Sdarrenyour rights to work written entirely by you; rather, the intent is to 126*568742a3Sdarrenexercise the right to control the distribution of derivative or 127*568742a3Sdarrencollective works based on the Program. 128*568742a3Sdarren 129*568742a3SdarrenIn addition, mere aggregation of another work not based on the Program 130*568742a3Sdarrenwith the Program (or with a work based on the Program) on a volume of 131*568742a3Sdarrena storage or distribution medium does not bring the other work under 132*568742a3Sdarrenthe scope of this License. 133*568742a3Sdarren 134*568742a3Sdarren 3. You may copy and distribute the Program (or a work based on it, 135*568742a3Sdarrenunder Section 2) in object code or executable form under the terms of 136*568742a3SdarrenSections 1 and 2 above provided that you also do one of the following: 137*568742a3Sdarren 138*568742a3Sdarren a) Accompany it with the complete corresponding machine-readable 139*568742a3Sdarren source code, which must be distributed under the terms of Sections 140*568742a3Sdarren 1 and 2 above on a medium customarily used for software interchange; or, 141*568742a3Sdarren 142*568742a3Sdarren b) Accompany it with a written offer, valid for at least three 143*568742a3Sdarren years, to give any third party, for a charge no more than your 144*568742a3Sdarren cost of physically performing source distribution, a complete 145*568742a3Sdarren machine-readable copy of the corresponding source code, to be 146*568742a3Sdarren distributed under the terms of Sections 1 and 2 above on a medium 147*568742a3Sdarren customarily used for software interchange; or, 148*568742a3Sdarren 149*568742a3Sdarren c) Accompany it with the information you received as to the offer 150*568742a3Sdarren to distribute corresponding source code. (This alternative is 151*568742a3Sdarren allowed only for noncommercial distribution and only if you 152*568742a3Sdarren received the program in object code or executable form with such 153*568742a3Sdarren an offer, in accord with Subsection b above.) 154*568742a3Sdarren 155*568742a3SdarrenThe source code for a work means the preferred form of the work for 156*568742a3Sdarrenmaking modifications to it. For an executable work, complete source 157*568742a3Sdarrencode means all the source code for all modules it contains, plus any 158*568742a3Sdarrenassociated interface definition files, plus the scripts used to 159*568742a3Sdarrencontrol compilation and installation of the executable. However, as a 160*568742a3Sdarrenspecial exception, the source code distributed need not include 161*568742a3Sdarrenanything that is normally distributed (in either source or binary 162*568742a3Sdarrenform) with the major components (compiler, kernel, and so on) of the 163*568742a3Sdarrenoperating system on which the executable runs, unless that component 164*568742a3Sdarrenitself accompanies the executable. 165*568742a3Sdarren 166*568742a3SdarrenIf distribution of executable or object code is made by offering 167*568742a3Sdarrenaccess to copy from a designated place, then offering equivalent 168*568742a3Sdarrenaccess to copy the source code from the same place counts as 169*568742a3Sdarrendistribution of the source code, even though third parties are not 170*568742a3Sdarrencompelled to copy the source along with the object code. 171*568742a3Sdarren 172*568742a3Sdarren 4. You may not copy, modify, sublicense, or distribute the Program 173*568742a3Sdarrenexcept as expressly provided under this License. Any attempt 174*568742a3Sdarrenotherwise to copy, modify, sublicense or distribute the Program is 175*568742a3Sdarrenvoid, and will automatically terminate your rights under this License. 176*568742a3SdarrenHowever, parties who have received copies, or rights, from you under 177*568742a3Sdarrenthis License will not have their licenses terminated so long as such 178*568742a3Sdarrenparties remain in full compliance. 179*568742a3Sdarren 180*568742a3Sdarren 5. You are not required to accept this License, since you have not 181*568742a3Sdarrensigned it. However, nothing else grants you permission to modify or 182*568742a3Sdarrendistribute the Program or its derivative works. These actions are 183*568742a3Sdarrenprohibited by law if you do not accept this License. Therefore, by 184*568742a3Sdarrenmodifying or distributing the Program (or any work based on the 185*568742a3SdarrenProgram), you indicate your acceptance of this License to do so, and 186*568742a3Sdarrenall its terms and conditions for copying, distributing or modifying 187*568742a3Sdarrenthe Program or works based on it. 188*568742a3Sdarren 189*568742a3Sdarren 6. Each time you redistribute the Program (or any work based on the 190*568742a3SdarrenProgram), the recipient automatically receives a license from the 191*568742a3Sdarrenoriginal licensor to copy, distribute or modify the Program subject to 192*568742a3Sdarrenthese terms and conditions. You may not impose any further 193*568742a3Sdarrenrestrictions on the recipients' exercise of the rights granted herein. 194*568742a3SdarrenYou are not responsible for enforcing compliance by third parties to 195*568742a3Sdarrenthis License. 196*568742a3Sdarren 197*568742a3Sdarren 7. If, as a consequence of a court judgment or allegation of patent 198*568742a3Sdarreninfringement or for any other reason (not limited to patent issues), 199*568742a3Sdarrenconditions are imposed on you (whether by court order, agreement or 200*568742a3Sdarrenotherwise) that contradict the conditions of this License, they do not 201*568742a3Sdarrenexcuse you from the conditions of this License. If you cannot 202*568742a3Sdarrendistribute so as to satisfy simultaneously your obligations under this 203*568742a3SdarrenLicense and any other pertinent obligations, then as a consequence you 204*568742a3Sdarrenmay not distribute the Program at all. For example, if a patent 205*568742a3Sdarrenlicense would not permit royalty-free redistribution of the Program by 206*568742a3Sdarrenall those who receive copies directly or indirectly through you, then 207*568742a3Sdarrenthe only way you could satisfy both it and this License would be to 208*568742a3Sdarrenrefrain entirely from distribution of the Program. 209*568742a3Sdarren 210*568742a3SdarrenIf any portion of this section is held invalid or unenforceable under 211*568742a3Sdarrenany particular circumstance, the balance of the section is intended to 212*568742a3Sdarrenapply and the section as a whole is intended to apply in other 213*568742a3Sdarrencircumstances. 214*568742a3Sdarren 215*568742a3SdarrenIt is not the purpose of this section to induce you to infringe any 216*568742a3Sdarrenpatents or other property right claims or to contest validity of any 217*568742a3Sdarrensuch claims; this section has the sole purpose of protecting the 218*568742a3Sdarrenintegrity of the free software distribution system, which is 219*568742a3Sdarrenimplemented by public license practices. Many people have made 220*568742a3Sdarrengenerous contributions to the wide range of software distributed 221*568742a3Sdarrenthrough that system in reliance on consistent application of that 222*568742a3Sdarrensystem; it is up to the author/donor to decide if he or she is willing 223*568742a3Sdarrento distribute software through any other system and a licensee cannot 224*568742a3Sdarrenimpose that choice. 225*568742a3Sdarren 226*568742a3SdarrenThis section is intended to make thoroughly clear what is believed to 227*568742a3Sdarrenbe a consequence of the rest of this License. 228*568742a3Sdarren 229*568742a3Sdarren 8. If the distribution and/or use of the Program is restricted in 230*568742a3Sdarrencertain countries either by patents or by copyrighted interfaces, the 231*568742a3Sdarrenoriginal copyright holder who places the Program under this License 232*568742a3Sdarrenmay add an explicit geographical distribution limitation excluding 233*568742a3Sdarrenthose countries, so that distribution is permitted only in or among 234*568742a3Sdarrencountries not thus excluded. In such case, this License incorporates 235*568742a3Sdarrenthe limitation as if written in the body of this License. 236*568742a3Sdarren 237*568742a3Sdarren 9. The Free Software Foundation may publish revised and/or new versions 238*568742a3Sdarrenof the General Public License from time to time. Such new versions will 239*568742a3Sdarrenbe similar in spirit to the present version, but may differ in detail to 240*568742a3Sdarrenaddress new problems or concerns. 241*568742a3Sdarren 242*568742a3SdarrenEach version is given a distinguishing version number. If the Program 243*568742a3Sdarrenspecifies a version number of this License which applies to it and "any 244*568742a3Sdarrenlater version", you have the option of following the terms and conditions 245*568742a3Sdarreneither of that version or of any later version published by the Free 246*568742a3SdarrenSoftware Foundation. If the Program does not specify a version number of 247*568742a3Sdarrenthis License, you may choose any version ever published by the Free Software 248*568742a3SdarrenFoundation. 249*568742a3Sdarren 250*568742a3Sdarren 10. If you wish to incorporate parts of the Program into other free 251*568742a3Sdarrenprograms whose distribution conditions are different, write to the author 252*568742a3Sdarrento ask for permission. For software which is copyrighted by the Free 253*568742a3SdarrenSoftware Foundation, write to the Free Software Foundation; we sometimes 254*568742a3Sdarrenmake exceptions for this. Our decision will be guided by the two goals 255*568742a3Sdarrenof preserving the free status of all derivatives of our free software and 256*568742a3Sdarrenof promoting the sharing and reuse of software generally. 257*568742a3Sdarren 258*568742a3Sdarren NO WARRANTY 259*568742a3Sdarren 260*568742a3Sdarren 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261*568742a3SdarrenFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262*568742a3SdarrenOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263*568742a3SdarrenPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264*568742a3SdarrenOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265*568742a3SdarrenMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266*568742a3SdarrenTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267*568742a3SdarrenPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268*568742a3SdarrenREPAIR OR CORRECTION. 269*568742a3Sdarren 270*568742a3Sdarren 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271*568742a3SdarrenWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272*568742a3SdarrenREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273*568742a3SdarrenINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274*568742a3SdarrenOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275*568742a3SdarrenTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276*568742a3SdarrenYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277*568742a3SdarrenPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278*568742a3SdarrenPOSSIBILITY OF SUCH DAMAGES. 279*568742a3Sdarren 280*568742a3Sdarren END OF TERMS AND CONDITIONS 281*568742a3Sdarren 282*568742a3Sdarren How to Apply These Terms to Your New Programs 283*568742a3Sdarren 284*568742a3Sdarren If you develop a new program, and you want it to be of the greatest 285*568742a3Sdarrenpossible use to the public, the best way to achieve this is to make it 286*568742a3Sdarrenfree software which everyone can redistribute and change under these terms. 287*568742a3Sdarren 288*568742a3Sdarren To do so, attach the following notices to the program. It is safest 289*568742a3Sdarrento attach them to the start of each source file to most effectively 290*568742a3Sdarrenconvey the exclusion of warranty; and each file should have at least 291*568742a3Sdarrenthe "copyright" line and a pointer to where the full notice is found. 292*568742a3Sdarren 293*568742a3Sdarren <one line to give the program's name and a brief idea of what it does.> 294*568742a3Sdarren Copyright (C) 19yy <name of author> 295*568742a3Sdarren 296*568742a3Sdarren This program is free software; you can redistribute it and/or modify 297*568742a3Sdarren it under the terms of the GNU General Public License as published by 298*568742a3Sdarren the Free Software Foundation; either version 2 of the License, or 299*568742a3Sdarren (at your option) any later version. 300*568742a3Sdarren 301*568742a3Sdarren This program is distributed in the hope that it will be useful, 302*568742a3Sdarren but WITHOUT ANY WARRANTY; without even the implied warranty of 303*568742a3Sdarren MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304*568742a3Sdarren GNU General Public License for more details. 305*568742a3Sdarren 306*568742a3Sdarren You should have received a copy of the GNU General Public License 307*568742a3Sdarren along with this program; if not, write to the Free Software 308*568742a3Sdarren Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 309*568742a3Sdarren 310*568742a3Sdarren 311*568742a3SdarrenAlso add information on how to contact you by electronic and paper mail. 312*568742a3Sdarren 313*568742a3SdarrenIf the program is interactive, make it output a short notice like this 314*568742a3Sdarrenwhen it starts in an interactive mode: 315*568742a3Sdarren 316*568742a3Sdarren Gnomovision version 69, Copyright (C) 19yy name of author 317*568742a3Sdarren Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318*568742a3Sdarren This is free software, and you are welcome to redistribute it 319*568742a3Sdarren under certain conditions; type `show c' for details. 320*568742a3Sdarren 321*568742a3SdarrenThe hypothetical commands `show w' and `show c' should show the appropriate 322*568742a3Sdarrenparts of the General Public License. Of course, the commands you use may 323*568742a3Sdarrenbe called something other than `show w' and `show c'; they could even be 324*568742a3Sdarrenmouse-clicks or menu items--whatever suits your program. 325*568742a3Sdarren 326*568742a3SdarrenYou should also get your employer (if you work as a programmer) or your 327*568742a3Sdarrenschool, if any, to sign a "copyright disclaimer" for the program, if 328*568742a3Sdarrennecessary. Here is a sample; alter the names: 329*568742a3Sdarren 330*568742a3Sdarren Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331*568742a3Sdarren `Gnomovision' (which makes passes at compilers) written by James Hacker. 332*568742a3Sdarren 333*568742a3Sdarren <signature of Ty Coon>, 1 April 1989 334*568742a3Sdarren Ty Coon, President of Vice 335*568742a3Sdarren 336*568742a3SdarrenThis General Public License does not permit incorporating your program into 337*568742a3Sdarrenproprietary programs. If your program is a subroutine library, you may 338*568742a3Sdarrenconsider it more useful to permit linking proprietary applications with the 339*568742a3Sdarrenlibrary. If this is what you want to do, use the GNU Library General 340*568742a3SdarrenPublic License instead of this License. 341