1 GNU GENERAL PUBLIC LICENSE 2 Version 2, June 1991 3 4 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6 Everyone is permitted to copy and distribute verbatim copies 7 of this license document, but changing it is not allowed. 8 9 Preamble 10 11 The licenses for most software are designed to take away your 12freedom to share and change it. By contrast, the GNU General Public 13License is intended to guarantee your freedom to share and change free 14software--to make sure the software is free for all its users. This 15General Public License applies to most of the Free Software 16Foundation's software and to any other program whose authors commit to 17using it. (Some other Free Software Foundation software is covered by 18the GNU Library General Public License instead.) You can apply it to 19your programs, too. 20 21 When we speak of free software, we are referring to freedom, not 22price. Our General Public Licenses are designed to make sure that you 23have the freedom to distribute copies of free software (and charge for 24this service if you wish), that you receive source code or can get it 25if you want it, that you can change the software or use pieces of it 26in new free programs; and that you know you can do these things. 27 28 To protect your rights, we need to make restrictions that forbid 29anyone to deny you these rights or to ask you to surrender the rights. 30These restrictions translate to certain responsibilities for you if you 31distribute copies of the software, or if you modify it. 32 33 For example, if you distribute copies of such a program, whether 34gratis or for a fee, you must give the recipients all the rights that 35you have. You must make sure that they, too, receive or can get the 36source code. And you must show them these terms so they know their 37rights. 38 39 We protect your rights with two steps: (1) copyright the software, and 40(2) offer you this license which gives you legal permission to copy, 41distribute and/or modify the software. 42 43 Also, for each author's protection and ours, we want to make certain 44that everyone understands that there is no warranty for this free 45software. If the software is modified by someone else and passed on, we 46want its recipients to know that what they have is not the original, so 47that any problems introduced by others will not reflect on the original 48authors' reputations. 49 50 Finally, any free program is threatened constantly by software 51patents. We wish to avoid the danger that redistributors of a free 52program will individually obtain patent licenses, in effect making the 53program proprietary. To prevent this, we have made it clear that any 54patent must be licensed for everyone's free use or not licensed at all. 55 56 The precise terms and conditions for copying, distribution and 57modification follow. 58 59 GNU GENERAL PUBLIC LICENSE 60 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 62 0. This License applies to any program or other work which contains 63a notice placed by the copyright holder saying it may be distributed 64under the terms of this General Public License. The "Program", below, 65refers to any such program or work, and a "work based on the Program" 66means either the Program or any derivative work under copyright law: 67that is to say, a work containing the Program or a portion of it, 68either verbatim or with modifications and/or translated into another 69language. (Hereinafter, translation is included without limitation in 70the term "modification".) Each licensee is addressed as "you". 71 72Activities other than copying, distribution and modification are not 73covered by this License; they are outside its scope. The act of 74running the Program is not restricted, and the output from the Program 75is covered only if its contents constitute a work based on the 76Program (independent of having been made by running the Program). 77Whether that is true depends on what the Program does. 78 79 1. You may copy and distribute verbatim copies of the Program's 80source code as you receive it, in any medium, provided that you 81conspicuously and appropriately publish on each copy an appropriate 82copyright notice and disclaimer of warranty; keep intact all the 83notices that refer to this License and to the absence of any warranty; 84and give any other recipients of the Program a copy of this License 85along with the Program. 86 87You may charge a fee for the physical act of transferring a copy, and 88you may at your option offer warranty protection in exchange for a fee. 89 90 2. You may modify your copy or copies of the Program or any portion 91of it, thus forming a work based on the Program, and copy and 92distribute such modifications or work under the terms of Section 1 93above, provided that you also meet all of these conditions: 94 95 a) You must cause the modified files to carry prominent notices 96 stating that you changed the files and the date of any change. 97 98 b) You must cause any work that you distribute or publish, that in 99 whole or in part contains or is derived from the Program or any 100 part thereof, to be licensed as a whole at no charge to all third 101 parties under the terms of this License. 102 103 c) If the modified program normally reads commands interactively 104 when run, you must cause it, when started running for such 105 interactive use in the most ordinary way, to print or display an 106 announcement including an appropriate copyright notice and a 107 notice that there is no warranty (or else, saying that you provide 108 a warranty) and that users may redistribute the program under 109 these conditions, and telling the user how to view a copy of this 110 License. (Exception: if the Program itself is interactive but 111 does not normally print such an announcement, your work based on 112 the Program is not required to print an announcement.) 113 114These requirements apply to the modified work as a whole. If 115identifiable sections of that work are not derived from the Program, 116and can be reasonably considered independent and separate works in 117themselves, then this License, and its terms, do not apply to those 118sections when you distribute them as separate works. But when you 119distribute the same sections as part of a whole which is a work based 120on the Program, the distribution of the whole must be on the terms of 121this License, whose permissions for other licensees extend to the 122entire whole, and thus to each and every part regardless of who wrote it. 123 124Thus, it is not the intent of this section to claim rights or contest 125your rights to work written entirely by you; rather, the intent is to 126exercise the right to control the distribution of derivative or 127collective works based on the Program. 128 129In addition, mere aggregation of another work not based on the Program 130with the Program (or with a work based on the Program) on a volume of 131a storage or distribution medium does not bring the other work under 132the scope of this License. 133 134 3. You may copy and distribute the Program (or a work based on it, 135under Section 2) in object code or executable form under the terms of 136Sections 1 and 2 above provided that you also do one of the following: 137 138 a) Accompany it with the complete corresponding machine-readable 139 source code, which must be distributed under the terms of Sections 140 1 and 2 above on a medium customarily used for software interchange; or, 141 142 b) Accompany it with a written offer, valid for at least three 143 years, to give any third party, for a charge no more than your 144 cost of physically performing source distribution, a complete 145 machine-readable copy of the corresponding source code, to be 146 distributed under the terms of Sections 1 and 2 above on a medium 147 customarily used for software interchange; or, 148 149 c) Accompany it with the information you received as to the offer 150 to distribute corresponding source code. (This alternative is 151 allowed only for noncommercial distribution and only if you 152 received the program in object code or executable form with such 153 an offer, in accord with Subsection b above.) 154 155The source code for a work means the preferred form of the work for 156making modifications to it. For an executable work, complete source 157code means all the source code for all modules it contains, plus any 158associated interface definition files, plus the scripts used to 159control compilation and installation of the executable. However, as a 160special exception, the source code distributed need not include 161anything that is normally distributed (in either source or binary 162form) with the major components (compiler, kernel, and so on) of the 163operating system on which the executable runs, unless that component 164itself accompanies the executable. 165 166If distribution of executable or object code is made by offering 167access to copy from a designated place, then offering equivalent 168access to copy the source code from the same place counts as 169distribution of the source code, even though third parties are not 170compelled to copy the source along with the object code. 171 172 4. You may not copy, modify, sublicense, or distribute the Program 173except as expressly provided under this License. Any attempt 174otherwise to copy, modify, sublicense or distribute the Program is 175void, and will automatically terminate your rights under this License. 176However, parties who have received copies, or rights, from you under 177this License will not have their licenses terminated so long as such 178parties remain in full compliance. 179 180 5. You are not required to accept this License, since you have not 181signed it. However, nothing else grants you permission to modify or 182distribute the Program or its derivative works. These actions are 183prohibited by law if you do not accept this License. Therefore, by 184modifying or distributing the Program (or any work based on the 185Program), you indicate your acceptance of this License to do so, and 186all its terms and conditions for copying, distributing or modifying 187the Program or works based on it. 188 189 6. Each time you redistribute the Program (or any work based on the 190Program), the recipient automatically receives a license from the 191original licensor to copy, distribute or modify the Program subject to 192these terms and conditions. You may not impose any further 193restrictions on the recipients' exercise of the rights granted herein. 194You are not responsible for enforcing compliance by third parties to 195this License. 196 197 7. If, as a consequence of a court judgment or allegation of patent 198infringement or for any other reason (not limited to patent issues), 199conditions are imposed on you (whether by court order, agreement or 200otherwise) that contradict the conditions of this License, they do not 201excuse you from the conditions of this License. If you cannot 202distribute so as to satisfy simultaneously your obligations under this 203License and any other pertinent obligations, then as a consequence you 204may not distribute the Program at all. For example, if a patent 205license would not permit royalty-free redistribution of the Program by 206all those who receive copies directly or indirectly through you, then 207the only way you could satisfy both it and this License would be to 208refrain entirely from distribution of the Program. 209 210If any portion of this section is held invalid or unenforceable under 211any particular circumstance, the balance of the section is intended to 212apply and the section as a whole is intended to apply in other 213circumstances. 214 215It is not the purpose of this section to induce you to infringe any 216patents or other property right claims or to contest validity of any 217such claims; this section has the sole purpose of protecting the 218integrity of the free software distribution system, which is 219implemented by public license practices. Many people have made 220generous contributions to the wide range of software distributed 221through that system in reliance on consistent application of that 222system; it is up to the author/donor to decide if he or she is willing 223to distribute software through any other system and a licensee cannot 224impose that choice. 225 226This section is intended to make thoroughly clear what is believed to 227be a consequence of the rest of this License. 228 229 8. If the distribution and/or use of the Program is restricted in 230certain countries either by patents or by copyrighted interfaces, the 231original copyright holder who places the Program under this License 232may add an explicit geographical distribution limitation excluding 233those countries, so that distribution is permitted only in or among 234countries not thus excluded. In such case, this License incorporates 235the limitation as if written in the body of this License. 236 237 9. The Free Software Foundation may publish revised and/or new versions 238of the General Public License from time to time. Such new versions will 239be similar in spirit to the present version, but may differ in detail to 240address new problems or concerns. 241 242Each version is given a distinguishing version number. If the Program 243specifies a version number of this License which applies to it and "any 244later version", you have the option of following the terms and conditions 245either of that version or of any later version published by the Free 246Software Foundation. If the Program does not specify a version number of 247this License, you may choose any version ever published by the Free Software 248Foundation. 249 250 10. If you wish to incorporate parts of the Program into other free 251programs whose distribution conditions are different, write to the author 252to ask for permission. For software which is copyrighted by the Free 253Software Foundation, write to the Free Software Foundation; we sometimes 254make exceptions for this. Our decision will be guided by the two goals 255of preserving the free status of all derivatives of our free software and 256of promoting the sharing and reuse of software generally. 257 258 NO WARRANTY 259 260 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268REPAIR OR CORRECTION. 269 270 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278POSSIBILITY OF SUCH DAMAGES. 279 280 END OF TERMS AND CONDITIONS 281 282 How to Apply These Terms to Your New Programs 283 284 If you develop a new program, and you want it to be of the greatest 285possible use to the public, the best way to achieve this is to make it 286free software which everyone can redistribute and change under these terms. 287 288 To do so, attach the following notices to the program. It is safest 289to attach them to the start of each source file to most effectively 290convey the exclusion of warranty; and each file should have at least 291the "copyright" line and a pointer to where the full notice is found. 292 293 <one line to give the program's name and a brief idea of what it does.> 294 Copyright (C) <year> <name of author> 295 296 This program is free software; you can redistribute it and/or modify 297 it under the terms of the GNU General Public License as published by 298 the Free Software Foundation; either version 2 of the License, or 299 (at your option) any later version. 300 301 This program is distributed in the hope that it will be useful, 302 but WITHOUT ANY WARRANTY; without even the implied warranty of 303 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 GNU General Public License for more details. 305 306 You should have received a copy of the GNU General Public License 307 along with this program; if not, write to the Free Software 308 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 309 310 311Also add information on how to contact you by electronic and paper mail. 312 313If the program is interactive, make it output a short notice like this 314when it starts in an interactive mode: 315 316 Gnomovision version 69, Copyright (C) year name of author 317 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 318 This is free software, and you are welcome to redistribute it 319 under certain conditions; type `show c' for details. 320 321The hypothetical commands `show w' and `show c' should show the appropriate 322parts of the General Public License. Of course, the commands you use may 323be called something other than `show w' and `show c'; they could even be 324mouse-clicks or menu items--whatever suits your program. 325 326You should also get your employer (if you work as a programmer) or your 327school, if any, to sign a "copyright disclaimer" for the program, if 328necessary. Here is a sample; alter the names: 329 330 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 331 `Gnomovision' (which makes passes at compilers) written by James Hacker. 332 333 <signature of Ty Coon>, 1 April 1989 334 Ty Coon, President of Vice 335 336This General Public License does not permit incorporating your program into 337proprietary programs. If your program is a subroutine library, you may 338consider it more useful to permit linking proprietary applications with the 339library. If this is what you want to do, use the GNU Library General 340Public License instead of this License. 341 GNU LESSER GENERAL PUBLIC LICENSE 342 Version 2.1, February 1999 343 344 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 345 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 346 Everyone is permitted to copy and distribute verbatim copies 347 of this license document, but changing it is not allowed. 348 349[This is the first released version of the Lesser GPL. It also counts 350 as the successor of the GNU Library Public License, version 2, hence 351 the version number 2.1.] 352 353 Preamble 354 355 The licenses for most software are designed to take away your 356freedom to share and change it. By contrast, the GNU General Public 357Licenses are intended to guarantee your freedom to share and change 358free software--to make sure the software is free for all its users. 359 360 This license, the Lesser General Public License, applies to some 361specially designated software packages--typically libraries--of the 362Free Software Foundation and other authors who decide to use it. You 363can use it too, but we suggest you first think carefully about whether 364this license or the ordinary General Public License is the better 365strategy to use in any particular case, based on the explanations below. 366 367 When we speak of free software, we are referring to freedom of use, 368not price. Our General Public Licenses are designed to make sure that 369you have the freedom to distribute copies of free software (and charge 370for this service if you wish); that you receive source code or can get 371it if you want it; that you can change the software and use pieces of 372it in new free programs; and that you are informed that you can do 373these things. 374 375 To protect your rights, we need to make restrictions that forbid 376distributors to deny you these rights or to ask you to surrender these 377rights. These restrictions translate to certain responsibilities for 378you if you distribute copies of the library or if you modify it. 379 380 For example, if you distribute copies of the library, whether gratis 381or for a fee, you must give the recipients all the rights that we gave 382you. You must make sure that they, too, receive or can get the source 383code. If you link other code with the library, you must provide 384complete object files to the recipients, so that they can relink them 385with the library after making changes to the library and recompiling 386it. And you must show them these terms so they know their rights. 387 388 We protect your rights with a two-step method: (1) we copyright the 389library, and (2) we offer you this license, which gives you legal 390permission to copy, distribute and/or modify the library. 391 392 To protect each distributor, we want to make it very clear that 393there is no warranty for the free library. Also, if the library is 394modified by someone else and passed on, the recipients should know 395that what they have is not the original version, so that the original 396author's reputation will not be affected by problems that might be 397introduced by others. 398 399 Finally, software patents pose a constant threat to the existence of 400any free program. We wish to make sure that a company cannot 401effectively restrict the users of a free program by obtaining a 402restrictive license from a patent holder. Therefore, we insist that 403any patent license obtained for a version of the library must be 404consistent with the full freedom of use specified in this license. 405 406 Most GNU software, including some libraries, is covered by the 407ordinary GNU General Public License. This license, the GNU Lesser 408General Public License, applies to certain designated libraries, and 409is quite different from the ordinary General Public License. We use 410this license for certain libraries in order to permit linking those 411libraries into non-free programs. 412 413 When a program is linked with a library, whether statically or using 414a shared library, the combination of the two is legally speaking a 415combined work, a derivative of the original library. The ordinary 416General Public License therefore permits such linking only if the 417entire combination fits its criteria of freedom. The Lesser General 418Public License permits more lax criteria for linking other code with 419the library. 420 421 We call this license the "Lesser" General Public License because it 422does Less to protect the user's freedom than the ordinary General 423Public License. It also provides other free software developers Less 424of an advantage over competing non-free programs. These disadvantages 425are the reason we use the ordinary General Public License for many 426libraries. However, the Lesser license provides advantages in certain 427special circumstances. 428 429 For example, on rare occasions, there may be a special need to 430encourage the widest possible use of a certain library, so that it becomes 431a de-facto standard. To achieve this, non-free programs must be 432allowed to use the library. A more frequent case is that a free 433library does the same job as widely used non-free libraries. In this 434case, there is little to gain by limiting the free library to free 435software only, so we use the Lesser General Public License. 436 437 In other cases, permission to use a particular library in non-free 438programs enables a greater number of people to use a large body of 439free software. For example, permission to use the GNU C Library in 440non-free programs enables many more people to use the whole GNU 441operating system, as well as its variant, the GNU/Linux operating 442system. 443 444 Although the Lesser General Public License is Less protective of the 445users' freedom, it does ensure that the user of a program that is 446linked with the Library has the freedom and the wherewithal to run 447that program using a modified version of the Library. 448 449 The precise terms and conditions for copying, distribution and 450modification follow. Pay close attention to the difference between a 451"work based on the library" and a "work that uses the library". The 452former contains code derived from the library, whereas the latter must 453be combined with the library in order to run. 454 455 GNU LESSER GENERAL PUBLIC LICENSE 456 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 457 458 0. This License Agreement applies to any software library or other 459program which contains a notice placed by the copyright holder or 460other authorized party saying it may be distributed under the terms of 461this Lesser General Public License (also called "this License"). 462Each licensee is addressed as "you". 463 464 A "library" means a collection of software functions and/or data 465prepared so as to be conveniently linked with application programs 466(which use some of those functions and data) to form executables. 467 468 The "Library", below, refers to any such software library or work 469which has been distributed under these terms. A "work based on the 470Library" means either the Library or any derivative work under 471copyright law: that is to say, a work containing the Library or a 472portion of it, either verbatim or with modifications and/or translated 473straightforwardly into another language. (Hereinafter, translation is 474included without limitation in the term "modification".) 475 476 "Source code" for a work means the preferred form of the work for 477making modifications to it. For a library, complete source code means 478all the source code for all modules it contains, plus any associated 479interface definition files, plus the scripts used to control compilation 480and installation of the library. 481 482 Activities other than copying, distribution and modification are not 483covered by this License; they are outside its scope. The act of 484running a program using the Library is not restricted, and output from 485such a program is covered only if its contents constitute a work based 486on the Library (independent of the use of the Library in a tool for 487writing it). Whether that is true depends on what the Library does 488and what the program that uses the Library does. 489 490 1. You may copy and distribute verbatim copies of the Library's 491complete source code as you receive it, in any medium, provided that 492you conspicuously and appropriately publish on each copy an 493appropriate copyright notice and disclaimer of warranty; keep intact 494all the notices that refer to this License and to the absence of any 495warranty; and distribute a copy of this License along with the 496Library. 497 498 You may charge a fee for the physical act of transferring a copy, 499and you may at your option offer warranty protection in exchange for a 500fee. 501 502 2. You may modify your copy or copies of the Library or any portion 503of it, thus forming a work based on the Library, and copy and 504distribute such modifications or work under the terms of Section 1 505above, provided that you also meet all of these conditions: 506 507 a) The modified work must itself be a software library. 508 509 b) You must cause the files modified to carry prominent notices 510 stating that you changed the files and the date of any change. 511 512 c) You must cause the whole of the work to be licensed at no 513 charge to all third parties under the terms of this License. 514 515 d) If a facility in the modified Library refers to a function or a 516 table of data to be supplied by an application program that uses 517 the facility, other than as an argument passed when the facility 518 is invoked, then you must make a good faith effort to ensure that, 519 in the event an application does not supply such function or 520 table, the facility still operates, and performs whatever part of 521 its purpose remains meaningful. 522 523 (For example, a function in a library to compute square roots has 524 a purpose that is entirely well-defined independent of the 525 application. Therefore, Subsection 2d requires that any 526 application-supplied function or table used by this function must 527 be optional: if the application does not supply it, the square 528 root function must still compute square roots.) 529 530These requirements apply to the modified work as a whole. If 531identifiable sections of that work are not derived from the Library, 532and can be reasonably considered independent and separate works in 533themselves, then this License, and its terms, do not apply to those 534sections when you distribute them as separate works. But when you 535distribute the same sections as part of a whole which is a work based 536on the Library, the distribution of the whole must be on the terms of 537this License, whose permissions for other licensees extend to the 538entire whole, and thus to each and every part regardless of who wrote 539it. 540 541Thus, it is not the intent of this section to claim rights or contest 542your rights to work written entirely by you; rather, the intent is to 543exercise the right to control the distribution of derivative or 544collective works based on the Library. 545 546In addition, mere aggregation of another work not based on the Library 547with the Library (or with a work based on the Library) on a volume of 548a storage or distribution medium does not bring the other work under 549the scope of this License. 550 551 3. You may opt to apply the terms of the ordinary GNU General Public 552License instead of this License to a given copy of the Library. To do 553this, you must alter all the notices that refer to this License, so 554that they refer to the ordinary GNU General Public License, version 2, 555instead of to this License. (If a newer version than version 2 of the 556ordinary GNU General Public License has appeared, then you can specify 557that version instead if you wish.) Do not make any other change in 558these notices. 559 560 Once this change is made in a given copy, it is irreversible for 561that copy, so the ordinary GNU General Public License applies to all 562subsequent copies and derivative works made from that copy. 563 564 This option is useful when you wish to copy part of the code of 565the Library into a program that is not a library. 566 567 4. You may copy and distribute the Library (or a portion or 568derivative of it, under Section 2) in object code or executable form 569under the terms of Sections 1 and 2 above provided that you accompany 570it with the complete corresponding machine-readable source code, which 571must be distributed under the terms of Sections 1 and 2 above on a 572medium customarily used for software interchange. 573 574 If distribution of object code is made by offering access to copy 575from a designated place, then offering equivalent access to copy the 576source code from the same place satisfies the requirement to 577distribute the source code, even though third parties are not 578compelled to copy the source along with the object code. 579 580 5. A program that contains no derivative of any portion of the 581Library, but is designed to work with the Library by being compiled or 582linked with it, is called a "work that uses the Library". Such a 583work, in isolation, is not a derivative work of the Library, and 584therefore falls outside the scope of this License. 585 586 However, linking a "work that uses the Library" with the Library 587creates an executable that is a derivative of the Library (because it 588contains portions of the Library), rather than a "work that uses the 589library". The executable is therefore covered by this License. 590Section 6 states terms for distribution of such executables. 591 592 When a "work that uses the Library" uses material from a header file 593that is part of the Library, the object code for the work may be a 594derivative work of the Library even though the source code is not. 595Whether this is true is especially significant if the work can be 596linked without the Library, or if the work is itself a library. The 597threshold for this to be true is not precisely defined by law. 598 599 If such an object file uses only numerical parameters, data 600structure layouts and accessors, and small macros and small inline 601functions (ten lines or less in length), then the use of the object 602file is unrestricted, regardless of whether it is legally a derivative 603work. (Executables containing this object code plus portions of the 604Library will still fall under Section 6.) 605 606 Otherwise, if the work is a derivative of the Library, you may 607distribute the object code for the work under the terms of Section 6. 608Any executables containing that work also fall under Section 6, 609whether or not they are linked directly with the Library itself. 610 611 6. As an exception to the Sections above, you may also combine or 612link a "work that uses the Library" with the Library to produce a 613work containing portions of the Library, and distribute that work 614under terms of your choice, provided that the terms permit 615modification of the work for the customer's own use and reverse 616engineering for debugging such modifications. 617 618 You must give prominent notice with each copy of the work that the 619Library is used in it and that the Library and its use are covered by 620this License. You must supply a copy of this License. If the work 621during execution displays copyright notices, you must include the 622copyright notice for the Library among them, as well as a reference 623directing the user to the copy of this License. Also, you must do one 624of these things: 625 626 a) Accompany the work with the complete corresponding 627 machine-readable source code for the Library including whatever 628 changes were used in the work (which must be distributed under 629 Sections 1 and 2 above); and, if the work is an executable linked 630 with the Library, with the complete machine-readable "work that 631 uses the Library", as object code and/or source code, so that the 632 user can modify the Library and then relink to produce a modified 633 executable containing the modified Library. (It is understood 634 that the user who changes the contents of definitions files in the 635 Library will not necessarily be able to recompile the application 636 to use the modified definitions.) 637 638 b) Use a suitable shared library mechanism for linking with the 639 Library. A suitable mechanism is one that (1) uses at run time a 640 copy of the library already present on the user's computer system, 641 rather than copying library functions into the executable, and (2) 642 will operate properly with a modified version of the library, if 643 the user installs one, as long as the modified version is 644 interface-compatible with the version that the work was made with. 645 646 c) Accompany the work with a written offer, valid for at 647 least three years, to give the same user the materials 648 specified in Subsection 6a, above, for a charge no more 649 than the cost of performing this distribution. 650 651 d) If distribution of the work is made by offering access to copy 652 from a designated place, offer equivalent access to copy the above 653 specified materials from the same place. 654 655 e) Verify that the user has already received a copy of these 656 materials or that you have already sent this user a copy. 657 658 For an executable, the required form of the "work that uses the 659Library" must include any data and utility programs needed for 660reproducing the executable from it. However, as a special exception, 661the materials to be distributed need not include anything that is 662normally distributed (in either source or binary form) with the major 663components (compiler, kernel, and so on) of the operating system on 664which the executable runs, unless that component itself accompanies 665the executable. 666 667 It may happen that this requirement contradicts the license 668restrictions of other proprietary libraries that do not normally 669accompany the operating system. Such a contradiction means you cannot 670use both them and the Library together in an executable that you 671distribute. 672 673 7. You may place library facilities that are a work based on the 674Library side-by-side in a single library together with other library 675facilities not covered by this License, and distribute such a combined 676library, provided that the separate distribution of the work based on 677the Library and of the other library facilities is otherwise 678permitted, and provided that you do these two things: 679 680 a) Accompany the combined library with a copy of the same work 681 based on the Library, uncombined with any other library 682 facilities. This must be distributed under the terms of the 683 Sections above. 684 685 b) Give prominent notice with the combined library of the fact 686 that part of it is a work based on the Library, and explaining 687 where to find the accompanying uncombined form of the same work. 688 689 8. You may not copy, modify, sublicense, link with, or distribute 690the Library except as expressly provided under this License. Any 691attempt otherwise to copy, modify, sublicense, link with, or 692distribute the Library is void, and will automatically terminate your 693rights under this License. However, parties who have received copies, 694or rights, from you under this License will not have their licenses 695terminated so long as such parties remain in full compliance. 696 697 9. You are not required to accept this License, since you have not 698signed it. However, nothing else grants you permission to modify or 699distribute the Library or its derivative works. These actions are 700prohibited by law if you do not accept this License. Therefore, by 701modifying or distributing the Library (or any work based on the 702Library), you indicate your acceptance of this License to do so, and 703all its terms and conditions for copying, distributing or modifying 704the Library or works based on it. 705 706 10. Each time you redistribute the Library (or any work based on the 707Library), the recipient automatically receives a license from the 708original licensor to copy, distribute, link with or modify the Library 709subject to these terms and conditions. You may not impose any further 710restrictions on the recipients' exercise of the rights granted herein. 711You are not responsible for enforcing compliance by third parties with 712this License. 713 714 11. If, as a consequence of a court judgment or allegation of patent 715infringement or for any other reason (not limited to patent issues), 716conditions are imposed on you (whether by court order, agreement or 717otherwise) that contradict the conditions of this License, they do not 718excuse you from the conditions of this License. If you cannot 719distribute so as to satisfy simultaneously your obligations under this 720License and any other pertinent obligations, then as a consequence you 721may not distribute the Library at all. For example, if a patent 722license would not permit royalty-free redistribution of the Library by 723all those who receive copies directly or indirectly through you, then 724the only way you could satisfy both it and this License would be to 725refrain entirely from distribution of the Library. 726 727If any portion of this section is held invalid or unenforceable under any 728particular circumstance, the balance of the section is intended to apply, 729and the section as a whole is intended to apply in other circumstances. 730 731It is not the purpose of this section to induce you to infringe any 732patents or other property right claims or to contest validity of any 733such claims; this section has the sole purpose of protecting the 734integrity of the free software distribution system which is 735implemented by public license practices. Many people have made 736generous contributions to the wide range of software distributed 737through that system in reliance on consistent application of that 738system; it is up to the author/donor to decide if he or she is willing 739to distribute software through any other system and a licensee cannot 740impose that choice. 741 742This section is intended to make thoroughly clear what is believed to 743be a consequence of the rest of this License. 744 745 12. If the distribution and/or use of the Library is restricted in 746certain countries either by patents or by copyrighted interfaces, the 747original copyright holder who places the Library under this License may add 748an explicit geographical distribution limitation excluding those countries, 749so that distribution is permitted only in or among countries not thus 750excluded. In such case, this License incorporates the limitation as if 751written in the body of this License. 752 753 13. The Free Software Foundation may publish revised and/or new 754versions of the Lesser General Public License from time to time. 755Such new versions will be similar in spirit to the present version, 756but may differ in detail to address new problems or concerns. 757 758Each version is given a distinguishing version number. If the Library 759specifies a version number of this License which applies to it and 760"any later version", you have the option of following the terms and 761conditions either of that version or of any later version published by 762the Free Software Foundation. If the Library does not specify a 763license version number, you may choose any version ever published by 764the Free Software Foundation. 765 766 14. If you wish to incorporate parts of the Library into other free 767programs whose distribution conditions are incompatible with these, 768write to the author to ask for permission. For software which is 769copyrighted by the Free Software Foundation, write to the Free 770Software Foundation; we sometimes make exceptions for this. Our 771decision will be guided by the two goals of preserving the free status 772of all derivatives of our free software and of promoting the sharing 773and reuse of software generally. 774 775 NO WARRANTY 776 777 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 778WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 779EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 780OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 781KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 782IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 783PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 784LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 785THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 786 787 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 788WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 789AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 790FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 791CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 792LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 793RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 794FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 795SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 796DAMAGES. 797 798 END OF TERMS AND CONDITIONS 799 800 How to Apply These Terms to Your New Libraries 801 802 If you develop a new library, and you want it to be of the greatest 803possible use to the public, we recommend making it free software that 804everyone can redistribute and change. You can do so by permitting 805redistribution under these terms (or, alternatively, under the terms of the 806ordinary General Public License). 807 808 To apply these terms, attach the following notices to the library. It is 809safest to attach them to the start of each source file to most effectively 810convey the exclusion of warranty; and each file should have at least the 811"copyright" line and a pointer to where the full notice is found. 812 813 <one line to give the library's name and a brief idea of what it does.> 814 Copyright (C) <year> <name of author> 815 816 This library is free software; you can redistribute it and/or 817 modify it under the terms of the GNU Lesser General Public 818 License as published by the Free Software Foundation; either 819 version 2.1 of the License, or (at your option) any later version. 820 821 This library is distributed in the hope that it will be useful, 822 but WITHOUT ANY WARRANTY; without even the implied warranty of 823 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 824 Lesser General Public License for more details. 825 826 You should have received a copy of the GNU Lesser General Public 827 License along with this library; if not, write to the Free Software 828 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 829 830Also add information on how to contact you by electronic and paper mail. 831 832You should also get your employer (if you work as a programmer) or your 833school, if any, to sign a "copyright disclaimer" for the library, if 834necessary. Here is a sample; alter the names: 835 836 Yoyodyne, Inc., hereby disclaims all copyright interest in the 837 library `Frob' (a library for tweaking knobs) written by James Random Hacker. 838 839 <signature of Ty Coon>, 1 April 1990 840 Ty Coon, President of Vice 841 842That's all there is to it! 843 844 845 GNU LESSER GENERAL PUBLIC LICENSE 846 Version 2.1, February 1999 847 848 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 849 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 850 Everyone is permitted to copy and distribute verbatim copies 851 of this license document, but changing it is not allowed. 852 853[This is the first released version of the Lesser GPL. It also counts 854 as the successor of the GNU Library Public License, version 2, hence 855 the version number 2.1.] 856 857 Preamble 858 859 The licenses for most software are designed to take away your 860freedom to share and change it. By contrast, the GNU General Public 861Licenses are intended to guarantee your freedom to share and change 862free software--to make sure the software is free for all its users. 863 864 This license, the Lesser General Public License, applies to some 865specially designated software packages--typically libraries--of the 866Free Software Foundation and other authors who decide to use it. You 867can use it too, but we suggest you first think carefully about whether 868this license or the ordinary General Public License is the better 869strategy to use in any particular case, based on the explanations below. 870 871 When we speak of free software, we are referring to freedom of use, 872not price. Our General Public Licenses are designed to make sure that 873you have the freedom to distribute copies of free software (and charge 874for this service if you wish); that you receive source code or can get 875it if you want it; that you can change the software and use pieces of 876it in new free programs; and that you are informed that you can do 877these things. 878 879 To protect your rights, we need to make restrictions that forbid 880distributors to deny you these rights or to ask you to surrender these 881rights. These restrictions translate to certain responsibilities for 882you if you distribute copies of the library or if you modify it. 883 884 For example, if you distribute copies of the library, whether gratis 885or for a fee, you must give the recipients all the rights that we gave 886you. You must make sure that they, too, receive or can get the source 887code. If you link other code with the library, you must provide 888complete object files to the recipients, so that they can relink them 889with the library after making changes to the library and recompiling 890it. And you must show them these terms so they know their rights. 891 892 We protect your rights with a two-step method: (1) we copyright the 893library, and (2) we offer you this license, which gives you legal 894permission to copy, distribute and/or modify the library. 895 896 To protect each distributor, we want to make it very clear that 897there is no warranty for the free library. Also, if the library is 898modified by someone else and passed on, the recipients should know 899that what they have is not the original version, so that the original 900author's reputation will not be affected by problems that might be 901introduced by others. 902 903 Finally, software patents pose a constant threat to the existence of 904any free program. We wish to make sure that a company cannot 905effectively restrict the users of a free program by obtaining a 906restrictive license from a patent holder. Therefore, we insist that 907any patent license obtained for a version of the library must be 908consistent with the full freedom of use specified in this license. 909 910 Most GNU software, including some libraries, is covered by the 911ordinary GNU General Public License. This license, the GNU Lesser 912General Public License, applies to certain designated libraries, and 913is quite different from the ordinary General Public License. We use 914this license for certain libraries in order to permit linking those 915libraries into non-free programs. 916 917 When a program is linked with a library, whether statically or using 918a shared library, the combination of the two is legally speaking a 919combined work, a derivative of the original library. The ordinary 920General Public License therefore permits such linking only if the 921entire combination fits its criteria of freedom. The Lesser General 922Public License permits more lax criteria for linking other code with 923the library. 924 925 We call this license the "Lesser" General Public License because it 926does Less to protect the user's freedom than the ordinary General 927Public License. It also provides other free software developers Less 928of an advantage over competing non-free programs. These disadvantages 929are the reason we use the ordinary General Public License for many 930libraries. However, the Lesser license provides advantages in certain 931special circumstances. 932 933 For example, on rare occasions, there may be a special need to 934encourage the widest possible use of a certain library, so that it becomes 935a de-facto standard. To achieve this, non-free programs must be 936allowed to use the library. A more frequent case is that a free 937library does the same job as widely used non-free libraries. In this 938case, there is little to gain by limiting the free library to free 939software only, so we use the Lesser General Public License. 940 941 In other cases, permission to use a particular library in non-free 942programs enables a greater number of people to use a large body of 943free software. For example, permission to use the GNU C Library in 944non-free programs enables many more people to use the whole GNU 945operating system, as well as its variant, the GNU/Linux operating 946system. 947 948 Although the Lesser General Public License is Less protective of the 949users' freedom, it does ensure that the user of a program that is 950linked with the Library has the freedom and the wherewithal to run 951that program using a modified version of the Library. 952 953 The precise terms and conditions for copying, distribution and 954modification follow. Pay close attention to the difference between a 955"work based on the library" and a "work that uses the library". The 956former contains code derived from the library, whereas the latter must 957be combined with the library in order to run. 958 959 GNU LESSER GENERAL PUBLIC LICENSE 960 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 961 962 0. This License Agreement applies to any software library or other 963program which contains a notice placed by the copyright holder or 964other authorized party saying it may be distributed under the terms of 965this Lesser General Public License (also called "this License"). 966Each licensee is addressed as "you". 967 968 A "library" means a collection of software functions and/or data 969prepared so as to be conveniently linked with application programs 970(which use some of those functions and data) to form executables. 971 972 The "Library", below, refers to any such software library or work 973which has been distributed under these terms. A "work based on the 974Library" means either the Library or any derivative work under 975copyright law: that is to say, a work containing the Library or a 976portion of it, either verbatim or with modifications and/or translated 977straightforwardly into another language. (Hereinafter, translation is 978included without limitation in the term "modification".) 979 980 "Source code" for a work means the preferred form of the work for 981making modifications to it. For a library, complete source code means 982all the source code for all modules it contains, plus any associated 983interface definition files, plus the scripts used to control compilation 984and installation of the library. 985 986 Activities other than copying, distribution and modification are not 987covered by this License; they are outside its scope. The act of 988running a program using the Library is not restricted, and output from 989such a program is covered only if its contents constitute a work based 990on the Library (independent of the use of the Library in a tool for 991writing it). Whether that is true depends on what the Library does 992and what the program that uses the Library does. 993 994 1. You may copy and distribute verbatim copies of the Library's 995complete source code as you receive it, in any medium, provided that 996you conspicuously and appropriately publish on each copy an 997appropriate copyright notice and disclaimer of warranty; keep intact 998all the notices that refer to this License and to the absence of any 999warranty; and distribute a copy of this License along with the 1000Library. 1001 1002 You may charge a fee for the physical act of transferring a copy, 1003and you may at your option offer warranty protection in exchange for a 1004fee. 1005 1006 2. You may modify your copy or copies of the Library or any portion 1007of it, thus forming a work based on the Library, and copy and 1008distribute such modifications or work under the terms of Section 1 1009above, provided that you also meet all of these conditions: 1010 1011 a) The modified work must itself be a software library. 1012 1013 b) You must cause the files modified to carry prominent notices 1014 stating that you changed the files and the date of any change. 1015 1016 c) You must cause the whole of the work to be licensed at no 1017 charge to all third parties under the terms of this License. 1018 1019 d) If a facility in the modified Library refers to a function or a 1020 table of data to be supplied by an application program that uses 1021 the facility, other than as an argument passed when the facility 1022 is invoked, then you must make a good faith effort to ensure that, 1023 in the event an application does not supply such function or 1024 table, the facility still operates, and performs whatever part of 1025 its purpose remains meaningful. 1026 1027 (For example, a function in a library to compute square roots has 1028 a purpose that is entirely well-defined independent of the 1029 application. Therefore, Subsection 2d requires that any 1030 application-supplied function or table used by this function must 1031 be optional: if the application does not supply it, the square 1032 root function must still compute square roots.) 1033 1034These requirements apply to the modified work as a whole. If 1035identifiable sections of that work are not derived from the Library, 1036and can be reasonably considered independent and separate works in 1037themselves, then this License, and its terms, do not apply to those 1038sections when you distribute them as separate works. But when you 1039distribute the same sections as part of a whole which is a work based 1040on the Library, the distribution of the whole must be on the terms of 1041this License, whose permissions for other licensees extend to the 1042entire whole, and thus to each and every part regardless of who wrote 1043it. 1044 1045Thus, it is not the intent of this section to claim rights or contest 1046your rights to work written entirely by you; rather, the intent is to 1047exercise the right to control the distribution of derivative or 1048collective works based on the Library. 1049 1050In addition, mere aggregation of another work not based on the Library 1051with the Library (or with a work based on the Library) on a volume of 1052a storage or distribution medium does not bring the other work under 1053the scope of this License. 1054 1055 3. You may opt to apply the terms of the ordinary GNU General Public 1056License instead of this License to a given copy of the Library. To do 1057this, you must alter all the notices that refer to this License, so 1058that they refer to the ordinary GNU General Public License, version 2, 1059instead of to this License. (If a newer version than version 2 of the 1060ordinary GNU General Public License has appeared, then you can specify 1061that version instead if you wish.) Do not make any other change in 1062these notices. 1063 1064 Once this change is made in a given copy, it is irreversible for 1065that copy, so the ordinary GNU General Public License applies to all 1066subsequent copies and derivative works made from that copy. 1067 1068 This option is useful when you wish to copy part of the code of 1069the Library into a program that is not a library. 1070 1071 4. You may copy and distribute the Library (or a portion or 1072derivative of it, under Section 2) in object code or executable form 1073under the terms of Sections 1 and 2 above provided that you accompany 1074it with the complete corresponding machine-readable source code, which 1075must be distributed under the terms of Sections 1 and 2 above on a 1076medium customarily used for software interchange. 1077 1078 If distribution of object code is made by offering access to copy 1079from a designated place, then offering equivalent access to copy the 1080source code from the same place satisfies the requirement to 1081distribute the source code, even though third parties are not 1082compelled to copy the source along with the object code. 1083 1084 5. A program that contains no derivative of any portion of the 1085Library, but is designed to work with the Library by being compiled or 1086linked with it, is called a "work that uses the Library". Such a 1087work, in isolation, is not a derivative work of the Library, and 1088therefore falls outside the scope of this License. 1089 1090 However, linking a "work that uses the Library" with the Library 1091creates an executable that is a derivative of the Library (because it 1092contains portions of the Library), rather than a "work that uses the 1093library". The executable is therefore covered by this License. 1094Section 6 states terms for distribution of such executables. 1095 1096 When a "work that uses the Library" uses material from a header file 1097that is part of the Library, the object code for the work may be a 1098derivative work of the Library even though the source code is not. 1099Whether this is true is especially significant if the work can be 1100linked without the Library, or if the work is itself a library. The 1101threshold for this to be true is not precisely defined by law. 1102 1103 If such an object file uses only numerical parameters, data 1104structure layouts and accessors, and small macros and small inline 1105functions (ten lines or less in length), then the use of the object 1106file is unrestricted, regardless of whether it is legally a derivative 1107work. (Executables containing this object code plus portions of the 1108Library will still fall under Section 6.) 1109 1110 Otherwise, if the work is a derivative of the Library, you may 1111distribute the object code for the work under the terms of Section 6. 1112Any executables containing that work also fall under Section 6, 1113whether or not they are linked directly with the Library itself. 1114 1115 6. As an exception to the Sections above, you may also combine or 1116link a "work that uses the Library" with the Library to produce a 1117work containing portions of the Library, and distribute that work 1118under terms of your choice, provided that the terms permit 1119modification of the work for the customer's own use and reverse 1120engineering for debugging such modifications. 1121 1122 You must give prominent notice with each copy of the work that the 1123Library is used in it and that the Library and its use are covered by 1124this License. You must supply a copy of this License. If the work 1125during execution displays copyright notices, you must include the 1126copyright notice for the Library among them, as well as a reference 1127directing the user to the copy of this License. Also, you must do one 1128of these things: 1129 1130 a) Accompany the work with the complete corresponding 1131 machine-readable source code for the Library including whatever 1132 changes were used in the work (which must be distributed under 1133 Sections 1 and 2 above); and, if the work is an executable linked 1134 with the Library, with the complete machine-readable "work that 1135 uses the Library", as object code and/or source code, so that the 1136 user can modify the Library and then relink to produce a modified 1137 executable containing the modified Library. (It is understood 1138 that the user who changes the contents of definitions files in the 1139 Library will not necessarily be able to recompile the application 1140 to use the modified definitions.) 1141 1142 b) Use a suitable shared library mechanism for linking with the 1143 Library. A suitable mechanism is one that (1) uses at run time a 1144 copy of the library already present on the user's computer system, 1145 rather than copying library functions into the executable, and (2) 1146 will operate properly with a modified version of the library, if 1147 the user installs one, as long as the modified version is 1148 interface-compatible with the version that the work was made with. 1149 1150 c) Accompany the work with a written offer, valid for at 1151 least three years, to give the same user the materials 1152 specified in Subsection 6a, above, for a charge no more 1153 than the cost of performing this distribution. 1154 1155 d) If distribution of the work is made by offering access to copy 1156 from a designated place, offer equivalent access to copy the above 1157 specified materials from the same place. 1158 1159 e) Verify that the user has already received a copy of these 1160 materials or that you have already sent this user a copy. 1161 1162 For an executable, the required form of the "work that uses the 1163Library" must include any data and utility programs needed for 1164reproducing the executable from it. However, as a special exception, 1165the materials to be distributed need not include anything that is 1166normally distributed (in either source or binary form) with the major 1167components (compiler, kernel, and so on) of the operating system on 1168which the executable runs, unless that component itself accompanies 1169the executable. 1170 1171 It may happen that this requirement contradicts the license 1172restrictions of other proprietary libraries that do not normally 1173accompany the operating system. Such a contradiction means you cannot 1174use both them and the Library together in an executable that you 1175distribute. 1176 1177 7. You may place library facilities that are a work based on the 1178Library side-by-side in a single library together with other library 1179facilities not covered by this License, and distribute such a combined 1180library, provided that the separate distribution of the work based on 1181the Library and of the other library facilities is otherwise 1182permitted, and provided that you do these two things: 1183 1184 a) Accompany the combined library with a copy of the same work 1185 based on the Library, uncombined with any other library 1186 facilities. This must be distributed under the terms of the 1187 Sections above. 1188 1189 b) Give prominent notice with the combined library of the fact 1190 that part of it is a work based on the Library, and explaining 1191 where to find the accompanying uncombined form of the same work. 1192 1193 8. You may not copy, modify, sublicense, link with, or distribute 1194the Library except as expressly provided under this License. Any 1195attempt otherwise to copy, modify, sublicense, link with, or 1196distribute the Library is void, and will automatically terminate your 1197rights under this License. However, parties who have received copies, 1198or rights, from you under this License will not have their licenses 1199terminated so long as such parties remain in full compliance. 1200 1201 9. You are not required to accept this License, since you have not 1202signed it. However, nothing else grants you permission to modify or 1203distribute the Library or its derivative works. These actions are 1204prohibited by law if you do not accept this License. Therefore, by 1205modifying or distributing the Library (or any work based on the 1206Library), you indicate your acceptance of this License to do so, and 1207all its terms and conditions for copying, distributing or modifying 1208the Library or works based on it. 1209 1210 10. Each time you redistribute the Library (or any work based on the 1211Library), the recipient automatically receives a license from the 1212original licensor to copy, distribute, link with or modify the Library 1213subject to these terms and conditions. You may not impose any further 1214restrictions on the recipients' exercise of the rights granted herein. 1215You are not responsible for enforcing compliance by third parties with 1216this License. 1217 1218 11. If, as a consequence of a court judgment or allegation of patent 1219infringement or for any other reason (not limited to patent issues), 1220conditions are imposed on you (whether by court order, agreement or 1221otherwise) that contradict the conditions of this License, they do not 1222excuse you from the conditions of this License. If you cannot 1223distribute so as to satisfy simultaneously your obligations under this 1224License and any other pertinent obligations, then as a consequence you 1225may not distribute the Library at all. For example, if a patent 1226license would not permit royalty-free redistribution of the Library by 1227all those who receive copies directly or indirectly through you, then 1228the only way you could satisfy both it and this License would be to 1229refrain entirely from distribution of the Library. 1230 1231If any portion of this section is held invalid or unenforceable under any 1232particular circumstance, the balance of the section is intended to apply, 1233and the section as a whole is intended to apply in other circumstances. 1234 1235It is not the purpose of this section to induce you to infringe any 1236patents or other property right claims or to contest validity of any 1237such claims; this section has the sole purpose of protecting the 1238integrity of the free software distribution system which is 1239implemented by public license practices. Many people have made 1240generous contributions to the wide range of software distributed 1241through that system in reliance on consistent application of that 1242system; it is up to the author/donor to decide if he or she is willing 1243to distribute software through any other system and a licensee cannot 1244impose that choice. 1245 1246This section is intended to make thoroughly clear what is believed to 1247be a consequence of the rest of this License. 1248 1249 12. If the distribution and/or use of the Library is restricted in 1250certain countries either by patents or by copyrighted interfaces, the 1251original copyright holder who places the Library under this License may add 1252an explicit geographical distribution limitation excluding those countries, 1253so that distribution is permitted only in or among countries not thus 1254excluded. In such case, this License incorporates the limitation as if 1255written in the body of this License. 1256 1257 13. The Free Software Foundation may publish revised and/or new 1258versions of the Lesser General Public License from time to time. 1259Such new versions will be similar in spirit to the present version, 1260but may differ in detail to address new problems or concerns. 1261 1262Each version is given a distinguishing version number. If the Library 1263specifies a version number of this License which applies to it and 1264"any later version", you have the option of following the terms and 1265conditions either of that version or of any later version published by 1266the Free Software Foundation. If the Library does not specify a 1267license version number, you may choose any version ever published by 1268the Free Software Foundation. 1269 1270 14. If you wish to incorporate parts of the Library into other free 1271programs whose distribution conditions are incompatible with these, 1272write to the author to ask for permission. For software which is 1273copyrighted by the Free Software Foundation, write to the Free 1274Software Foundation; we sometimes make exceptions for this. Our 1275decision will be guided by the two goals of preserving the free status 1276of all derivatives of our free software and of promoting the sharing 1277and reuse of software generally. 1278 1279 NO WARRANTY 1280 1281 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 1282WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 1283EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 1284OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 1285KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 1286IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 1287PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 1288LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 1289THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 1290 1291 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 1292WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 1293AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 1294FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 1295CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 1296LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 1297RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 1298FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 1299SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 1300DAMAGES. 1301 1302 END OF TERMS AND CONDITIONS 1303 1304 How to Apply These Terms to Your New Libraries 1305 1306 If you develop a new library, and you want it to be of the greatest 1307possible use to the public, we recommend making it free software that 1308everyone can redistribute and change. You can do so by permitting 1309redistribution under these terms (or, alternatively, under the terms of the 1310ordinary General Public License). 1311 1312 To apply these terms, attach the following notices to the library. It is 1313safest to attach them to the start of each source file to most effectively 1314convey the exclusion of warranty; and each file should have at least the 1315"copyright" line and a pointer to where the full notice is found. 1316 1317 <one line to give the library's name and a brief idea of what it does.> 1318 Copyright (C) <year> <name of author> 1319 1320 This library is free software; you can redistribute it and/or 1321 modify it under the terms of the GNU Lesser General Public 1322 License as published by the Free Software Foundation; either 1323 version 2.1 of the License, or (at your option) any later version. 1324 1325 This library is distributed in the hope that it will be useful, 1326 but WITHOUT ANY WARRANTY; without even the implied warranty of 1327 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1328 Lesser General Public License for more details. 1329 1330 You should have received a copy of the GNU Lesser General Public 1331 License along with this library; if not, write to the Free Software 1332 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 1333 1334Also add information on how to contact you by electronic and paper mail. 1335 1336You should also get your employer (if you work as a programmer) or your 1337school, if any, to sign a "copyright disclaimer" for the library, if 1338necessary. Here is a sample; alter the names: 1339 1340 Yoyodyne, Inc., hereby disclaims all copyright interest in the 1341 library `Frob' (a library for tweaking knobs) written by James Random Hacker. 1342 1343 <signature of Ty Coon>, 1 April 1990 1344 Ty Coon, President of Vice 1345 1346That's all there is to it! 1347 1348 1349 GNU GENERAL PUBLIC LICENSE 1350 Version 2, June 1991 1351 1352 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 1353 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1354 Everyone is permitted to copy and distribute verbatim copies 1355 of this license document, but changing it is not allowed. 1356 1357 Preamble 1358 1359 The licenses for most software are designed to take away your 1360freedom to share and change it. By contrast, the GNU General Public 1361License is intended to guarantee your freedom to share and change free 1362software--to make sure the software is free for all its users. This 1363General Public License applies to most of the Free Software 1364Foundation's software and to any other program whose authors commit to 1365using it. (Some other Free Software Foundation software is covered by 1366the GNU Library General Public License instead.) You can apply it to 1367your programs, too. 1368 1369 When we speak of free software, we are referring to freedom, not 1370price. Our General Public Licenses are designed to make sure that you 1371have the freedom to distribute copies of free software (and charge for 1372this service if you wish), that you receive source code or can get it 1373if you want it, that you can change the software or use pieces of it 1374in new free programs; and that you know you can do these things. 1375 1376 To protect your rights, we need to make restrictions that forbid 1377anyone to deny you these rights or to ask you to surrender the rights. 1378These restrictions translate to certain responsibilities for you if you 1379distribute copies of the software, or if you modify it. 1380 1381 For example, if you distribute copies of such a program, whether 1382gratis or for a fee, you must give the recipients all the rights that 1383you have. You must make sure that they, too, receive or can get the 1384source code. And you must show them these terms so they know their 1385rights. 1386 1387 We protect your rights with two steps: (1) copyright the software, and 1388(2) offer you this license which gives you legal permission to copy, 1389distribute and/or modify the software. 1390 1391 Also, for each author's protection and ours, we want to make certain 1392that everyone understands that there is no warranty for this free 1393software. If the software is modified by someone else and passed on, we 1394want its recipients to know that what they have is not the original, so 1395that any problems introduced by others will not reflect on the original 1396authors' reputations. 1397 1398 Finally, any free program is threatened constantly by software 1399patents. We wish to avoid the danger that redistributors of a free 1400program will individually obtain patent licenses, in effect making the 1401program proprietary. To prevent this, we have made it clear that any 1402patent must be licensed for everyone's free use or not licensed at all. 1403 1404 The precise terms and conditions for copying, distribution and 1405modification follow. 1406 1407 GNU GENERAL PUBLIC LICENSE 1408 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 1409 1410 0. This License applies to any program or other work which contains 1411a notice placed by the copyright holder saying it may be distributed 1412under the terms of this General Public License. The "Program", below, 1413refers to any such program or work, and a "work based on the Program" 1414means either the Program or any derivative work under copyright law: 1415that is to say, a work containing the Program or a portion of it, 1416either verbatim or with modifications and/or translated into another 1417language. (Hereinafter, translation is included without limitation in 1418the term "modification".) Each licensee is addressed as "you". 1419 1420Activities other than copying, distribution and modification are not 1421covered by this License; they are outside its scope. The act of 1422running the Program is not restricted, and the output from the Program 1423is covered only if its contents constitute a work based on the 1424Program (independent of having been made by running the Program). 1425Whether that is true depends on what the Program does. 1426 1427 1. You may copy and distribute verbatim copies of the Program's 1428source code as you receive it, in any medium, provided that you 1429conspicuously and appropriately publish on each copy an appropriate 1430copyright notice and disclaimer of warranty; keep intact all the 1431notices that refer to this License and to the absence of any warranty; 1432and give any other recipients of the Program a copy of this License 1433along with the Program. 1434 1435You may charge a fee for the physical act of transferring a copy, and 1436you may at your option offer warranty protection in exchange for a fee. 1437 1438 2. You may modify your copy or copies of the Program or any portion 1439of it, thus forming a work based on the Program, and copy and 1440distribute such modifications or work under the terms of Section 1 1441above, provided that you also meet all of these conditions: 1442 1443 a) You must cause the modified files to carry prominent notices 1444 stating that you changed the files and the date of any change. 1445 1446 b) You must cause any work that you distribute or publish, that in 1447 whole or in part contains or is derived from the Program or any 1448 part thereof, to be licensed as a whole at no charge to all third 1449 parties under the terms of this License. 1450 1451 c) If the modified program normally reads commands interactively 1452 when run, you must cause it, when started running for such 1453 interactive use in the most ordinary way, to print or display an 1454 announcement including an appropriate copyright notice and a 1455 notice that there is no warranty (or else, saying that you provide 1456 a warranty) and that users may redistribute the program under 1457 these conditions, and telling the user how to view a copy of this 1458 License. (Exception: if the Program itself is interactive but 1459 does not normally print such an announcement, your work based on 1460 the Program is not required to print an announcement.) 1461 1462These requirements apply to the modified work as a whole. If 1463identifiable sections of that work are not derived from the Program, 1464and can be reasonably considered independent and separate works in 1465themselves, then this License, and its terms, do not apply to those 1466sections when you distribute them as separate works. But when you 1467distribute the same sections as part of a whole which is a work based 1468on the Program, the distribution of the whole must be on the terms of 1469this License, whose permissions for other licensees extend to the 1470entire whole, and thus to each and every part regardless of who wrote it. 1471 1472Thus, it is not the intent of this section to claim rights or contest 1473your rights to work written entirely by you; rather, the intent is to 1474exercise the right to control the distribution of derivative or 1475collective works based on the Program. 1476 1477In addition, mere aggregation of another work not based on the Program 1478with the Program (or with a work based on the Program) on a volume of 1479a storage or distribution medium does not bring the other work under 1480the scope of this License. 1481 1482 3. You may copy and distribute the Program (or a work based on it, 1483under Section 2) in object code or executable form under the terms of 1484Sections 1 and 2 above provided that you also do one of the following: 1485 1486 a) Accompany it with the complete corresponding machine-readable 1487 source code, which must be distributed under the terms of Sections 1488 1 and 2 above on a medium customarily used for software interchange; or, 1489 1490 b) Accompany it with a written offer, valid for at least three 1491 years, to give any third party, for a charge no more than your 1492 cost of physically performing source distribution, a complete 1493 machine-readable copy of the corresponding source code, to be 1494 distributed under the terms of Sections 1 and 2 above on a medium 1495 customarily used for software interchange; or, 1496 1497 c) Accompany it with the information you received as to the offer 1498 to distribute corresponding source code. (This alternative is 1499 allowed only for noncommercial distribution and only if you 1500 received the program in object code or executable form with such 1501 an offer, in accord with Subsection b above.) 1502 1503The source code for a work means the preferred form of the work for 1504making modifications to it. For an executable work, complete source 1505code means all the source code for all modules it contains, plus any 1506associated interface definition files, plus the scripts used to 1507control compilation and installation of the executable. However, as a 1508special exception, the source code distributed need not include 1509anything that is normally distributed (in either source or binary 1510form) with the major components (compiler, kernel, and so on) of the 1511operating system on which the executable runs, unless that component 1512itself accompanies the executable. 1513 1514If distribution of executable or object code is made by offering 1515access to copy from a designated place, then offering equivalent 1516access to copy the source code from the same place counts as 1517distribution of the source code, even though third parties are not 1518compelled to copy the source along with the object code. 1519 1520 4. You may not copy, modify, sublicense, or distribute the Program 1521except as expressly provided under this License. Any attempt 1522otherwise to copy, modify, sublicense or distribute the Program is 1523void, and will automatically terminate your rights under this License. 1524However, parties who have received copies, or rights, from you under 1525this License will not have their licenses terminated so long as such 1526parties remain in full compliance. 1527 1528 5. You are not required to accept this License, since you have not 1529signed it. However, nothing else grants you permission to modify or 1530distribute the Program or its derivative works. These actions are 1531prohibited by law if you do not accept this License. Therefore, by 1532modifying or distributing the Program (or any work based on the 1533Program), you indicate your acceptance of this License to do so, and 1534all its terms and conditions for copying, distributing or modifying 1535the Program or works based on it. 1536 1537 6. Each time you redistribute the Program (or any work based on the 1538Program), the recipient automatically receives a license from the 1539original licensor to copy, distribute or modify the Program subject to 1540these terms and conditions. You may not impose any further 1541restrictions on the recipients' exercise of the rights granted herein. 1542You are not responsible for enforcing compliance by third parties to 1543this License. 1544 1545 7. If, as a consequence of a court judgment or allegation of patent 1546infringement or for any other reason (not limited to patent issues), 1547conditions are imposed on you (whether by court order, agreement or 1548otherwise) that contradict the conditions of this License, they do not 1549excuse you from the conditions of this License. If you cannot 1550distribute so as to satisfy simultaneously your obligations under this 1551License and any other pertinent obligations, then as a consequence you 1552may not distribute the Program at all. For example, if a patent 1553license would not permit royalty-free redistribution of the Program by 1554all those who receive copies directly or indirectly through you, then 1555the only way you could satisfy both it and this License would be to 1556refrain entirely from distribution of the Program. 1557 1558If any portion of this section is held invalid or unenforceable under 1559any particular circumstance, the balance of the section is intended to 1560apply and the section as a whole is intended to apply in other 1561circumstances. 1562 1563It is not the purpose of this section to induce you to infringe any 1564patents or other property right claims or to contest validity of any 1565such claims; this section has the sole purpose of protecting the 1566integrity of the free software distribution system, which is 1567implemented by public license practices. Many people have made 1568generous contributions to the wide range of software distributed 1569through that system in reliance on consistent application of that 1570system; it is up to the author/donor to decide if he or she is willing 1571to distribute software through any other system and a licensee cannot 1572impose that choice. 1573 1574This section is intended to make thoroughly clear what is believed to 1575be a consequence of the rest of this License. 1576 1577 8. If the distribution and/or use of the Program is restricted in 1578certain countries either by patents or by copyrighted interfaces, the 1579original copyright holder who places the Program under this License 1580may add an explicit geographical distribution limitation excluding 1581those countries, so that distribution is permitted only in or among 1582countries not thus excluded. In such case, this License incorporates 1583the limitation as if written in the body of this License. 1584 1585 9. The Free Software Foundation may publish revised and/or new versions 1586of the General Public License from time to time. Such new versions will 1587be similar in spirit to the present version, but may differ in detail to 1588address new problems or concerns. 1589 1590Each version is given a distinguishing version number. If the Program 1591specifies a version number of this License which applies to it and "any 1592later version", you have the option of following the terms and conditions 1593either of that version or of any later version published by the Free 1594Software Foundation. If the Program does not specify a version number of 1595this License, you may choose any version ever published by the Free Software 1596Foundation. 1597 1598 10. If you wish to incorporate parts of the Program into other free 1599programs whose distribution conditions are different, write to the author 1600to ask for permission. For software which is copyrighted by the Free 1601Software Foundation, write to the Free Software Foundation; we sometimes 1602make exceptions for this. Our decision will be guided by the two goals 1603of preserving the free status of all derivatives of our free software and 1604of promoting the sharing and reuse of software generally. 1605 1606 NO WARRANTY 1607 1608 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 1609FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 1610OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 1611PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 1612OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1613MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 1614TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 1615PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 1616REPAIR OR CORRECTION. 1617 1618 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 1619WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 1620REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 1621INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 1622OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 1623TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 1624YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 1625PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 1626POSSIBILITY OF SUCH DAMAGES. 1627 1628 END OF TERMS AND CONDITIONS 1629 1630 How to Apply These Terms to Your New Programs 1631 1632 If you develop a new program, and you want it to be of the greatest 1633possible use to the public, the best way to achieve this is to make it 1634free software which everyone can redistribute and change under these terms. 1635 1636 To do so, attach the following notices to the program. It is safest 1637to attach them to the start of each source file to most effectively 1638convey the exclusion of warranty; and each file should have at least 1639the "copyright" line and a pointer to where the full notice is found. 1640 1641 <one line to give the program's name and a brief idea of what it does.> 1642 Copyright (C) <year> <name of author> 1643 1644 This program is free software; you can redistribute it and/or modify 1645 it under the terms of the GNU General Public License as published by 1646 the Free Software Foundation; either version 2 of the License, or 1647 (at your option) any later version. 1648 1649 This program is distributed in the hope that it will be useful, 1650 but WITHOUT ANY WARRANTY; without even the implied warranty of 1651 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1652 GNU General Public License for more details. 1653 1654 You should have received a copy of the GNU General Public License 1655 along with this program; if not, write to the Free Software 1656 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1657 1658 1659Also add information on how to contact you by electronic and paper mail. 1660 1661If the program is interactive, make it output a short notice like this 1662when it starts in an interactive mode: 1663 1664 Gnomovision version 69, Copyright (C) year name of author 1665 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 1666 This is free software, and you are welcome to redistribute it 1667 under certain conditions; type `show c' for details. 1668 1669The hypothetical commands `show w' and `show c' should show the appropriate 1670parts of the General Public License. Of course, the commands you use may 1671be called something other than `show w' and `show c'; they could even be 1672mouse-clicks or menu items--whatever suits your program. 1673 1674You should also get your employer (if you work as a programmer) or your 1675school, if any, to sign a "copyright disclaimer" for the program, if 1676necessary. Here is a sample; alter the names: 1677 1678 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 1679 `Gnomovision' (which makes passes at compilers) written by James Hacker. 1680 1681 <signature of Ty Coon>, 1 April 1989 1682 Ty Coon, President of Vice 1683 1684This General Public License does not permit incorporating your program into 1685proprietary programs. If your program is a subroutine library, you may 1686consider it more useful to permit linking proprietary applications with the 1687library. If this is what you want to do, use the GNU Library General 1688Public License instead of this License. 1689All files are licensed under the FreeBSD license, excepet for thid party 1690components, which are subject to their respective licenses as specified in 1691their source files. 1692 1693 FreeBSD License 1694 1695Copyright 2011 Tresys Technology, LLC. All rights reserved. 1696 1697Redistribution and use in source and binary forms, with or without 1698modification, are permitted provided that the following conditions are met: 1699 1700 1. Redistributions of source code must retain the above copyright notice, 1701 this list of conditions and the following disclaimer. 1702 1703 2. Redistributions in binary form must reproduce the above copyright notice, 1704 this list of conditions and the following disclaimer in the documentation 1705 and/or other materials provided with the distribution. 1706 1707THIS SOFTWARE IS PROVIDED BY TRESYS TECHNOLOGY, LLC ``AS IS'' AND ANY EXPRESS 1708OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1709MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 1710EVENT SHALL TRESYS TECHNOLOGY, LLC OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 1711INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 1712BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 1713DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 1714LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 1715OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 1716ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 1717 1718The views and conclusions contained in the software and documentation are those 1719of the authors and should not be interpreted as representing official policies, 1720either expressed or implied, of Tresys Technology, LLC. 1721 GNU GENERAL PUBLIC LICENSE 1722 Version 2, June 1991 1723 1724 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 1725 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 1726 Everyone is permitted to copy and distribute verbatim copies 1727 of this license document, but changing it is not allowed. 1728 1729 Preamble 1730 1731 The licenses for most software are designed to take away your 1732freedom to share and change it. By contrast, the GNU General Public 1733License is intended to guarantee your freedom to share and change free 1734software--to make sure the software is free for all its users. This 1735General Public License applies to most of the Free Software 1736Foundation's software and to any other program whose authors commit to 1737using it. (Some other Free Software Foundation software is covered by 1738the GNU Library General Public License instead.) You can apply it to 1739your programs, too. 1740 1741 When we speak of free software, we are referring to freedom, not 1742price. Our General Public Licenses are designed to make sure that you 1743have the freedom to distribute copies of free software (and charge for 1744this service if you wish), that you receive source code or can get it 1745if you want it, that you can change the software or use pieces of it 1746in new free programs; and that you know you can do these things. 1747 1748 To protect your rights, we need to make restrictions that forbid 1749anyone to deny you these rights or to ask you to surrender the rights. 1750These restrictions translate to certain responsibilities for you if you 1751distribute copies of the software, or if you modify it. 1752 1753 For example, if you distribute copies of such a program, whether 1754gratis or for a fee, you must give the recipients all the rights that 1755you have. You must make sure that they, too, receive or can get the 1756source code. And you must show them these terms so they know their 1757rights. 1758 1759 We protect your rights with two steps: (1) copyright the software, and 1760(2) offer you this license which gives you legal permission to copy, 1761distribute and/or modify the software. 1762 1763 Also, for each author's protection and ours, we want to make certain 1764that everyone understands that there is no warranty for this free 1765software. If the software is modified by someone else and passed on, we 1766want its recipients to know that what they have is not the original, so 1767that any problems introduced by others will not reflect on the original 1768authors' reputations. 1769 1770 Finally, any free program is threatened constantly by software 1771patents. We wish to avoid the danger that redistributors of a free 1772program will individually obtain patent licenses, in effect making the 1773program proprietary. To prevent this, we have made it clear that any 1774patent must be licensed for everyone's free use or not licensed at all. 1775 1776 The precise terms and conditions for copying, distribution and 1777modification follow. 1778 1779 GNU GENERAL PUBLIC LICENSE 1780 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 1781 1782 0. This License applies to any program or other work which contains 1783a notice placed by the copyright holder saying it may be distributed 1784under the terms of this General Public License. The "Program", below, 1785refers to any such program or work, and a "work based on the Program" 1786means either the Program or any derivative work under copyright law: 1787that is to say, a work containing the Program or a portion of it, 1788either verbatim or with modifications and/or translated into another 1789language. (Hereinafter, translation is included without limitation in 1790the term "modification".) Each licensee is addressed as "you". 1791 1792Activities other than copying, distribution and modification are not 1793covered by this License; they are outside its scope. The act of 1794running the Program is not restricted, and the output from the Program 1795is covered only if its contents constitute a work based on the 1796Program (independent of having been made by running the Program). 1797Whether that is true depends on what the Program does. 1798 1799 1. You may copy and distribute verbatim copies of the Program's 1800source code as you receive it, in any medium, provided that you 1801conspicuously and appropriately publish on each copy an appropriate 1802copyright notice and disclaimer of warranty; keep intact all the 1803notices that refer to this License and to the absence of any warranty; 1804and give any other recipients of the Program a copy of this License 1805along with the Program. 1806 1807You may charge a fee for the physical act of transferring a copy, and 1808you may at your option offer warranty protection in exchange for a fee. 1809 1810 2. You may modify your copy or copies of the Program or any portion 1811of it, thus forming a work based on the Program, and copy and 1812distribute such modifications or work under the terms of Section 1 1813above, provided that you also meet all of these conditions: 1814 1815 a) You must cause the modified files to carry prominent notices 1816 stating that you changed the files and the date of any change. 1817 1818 b) You must cause any work that you distribute or publish, that in 1819 whole or in part contains or is derived from the Program or any 1820 part thereof, to be licensed as a whole at no charge to all third 1821 parties under the terms of this License. 1822 1823 c) If the modified program normally reads commands interactively 1824 when run, you must cause it, when started running for such 1825 interactive use in the most ordinary way, to print or display an 1826 announcement including an appropriate copyright notice and a 1827 notice that there is no warranty (or else, saying that you provide 1828 a warranty) and that users may redistribute the program under 1829 these conditions, and telling the user how to view a copy of this 1830 License. (Exception: if the Program itself is interactive but 1831 does not normally print such an announcement, your work based on 1832 the Program is not required to print an announcement.) 1833 1834These requirements apply to the modified work as a whole. If 1835identifiable sections of that work are not derived from the Program, 1836and can be reasonably considered independent and separate works in 1837themselves, then this License, and its terms, do not apply to those 1838sections when you distribute them as separate works. But when you 1839distribute the same sections as part of a whole which is a work based 1840on the Program, the distribution of the whole must be on the terms of 1841this License, whose permissions for other licensees extend to the 1842entire whole, and thus to each and every part regardless of who wrote it. 1843 1844Thus, it is not the intent of this section to claim rights or contest 1845your rights to work written entirely by you; rather, the intent is to 1846exercise the right to control the distribution of derivative or 1847collective works based on the Program. 1848 1849In addition, mere aggregation of another work not based on the Program 1850with the Program (or with a work based on the Program) on a volume of 1851a storage or distribution medium does not bring the other work under 1852the scope of this License. 1853 1854 3. You may copy and distribute the Program (or a work based on it, 1855under Section 2) in object code or executable form under the terms of 1856Sections 1 and 2 above provided that you also do one of the following: 1857 1858 a) Accompany it with the complete corresponding machine-readable 1859 source code, which must be distributed under the terms of Sections 1860 1 and 2 above on a medium customarily used for software interchange; or, 1861 1862 b) Accompany it with a written offer, valid for at least three 1863 years, to give any third party, for a charge no more than your 1864 cost of physically performing source distribution, a complete 1865 machine-readable copy of the corresponding source code, to be 1866 distributed under the terms of Sections 1 and 2 above on a medium 1867 customarily used for software interchange; or, 1868 1869 c) Accompany it with the information you received as to the offer 1870 to distribute corresponding source code. (This alternative is 1871 allowed only for noncommercial distribution and only if you 1872 received the program in object code or executable form with such 1873 an offer, in accord with Subsection b above.) 1874 1875The source code for a work means the preferred form of the work for 1876making modifications to it. For an executable work, complete source 1877code means all the source code for all modules it contains, plus any 1878associated interface definition files, plus the scripts used to 1879control compilation and installation of the executable. However, as a 1880special exception, the source code distributed need not include 1881anything that is normally distributed (in either source or binary 1882form) with the major components (compiler, kernel, and so on) of the 1883operating system on which the executable runs, unless that component 1884itself accompanies the executable. 1885 1886If distribution of executable or object code is made by offering 1887access to copy from a designated place, then offering equivalent 1888access to copy the source code from the same place counts as 1889distribution of the source code, even though third parties are not 1890compelled to copy the source along with the object code. 1891 1892 4. You may not copy, modify, sublicense, or distribute the Program 1893except as expressly provided under this License. Any attempt 1894otherwise to copy, modify, sublicense or distribute the Program is 1895void, and will automatically terminate your rights under this License. 1896However, parties who have received copies, or rights, from you under 1897this License will not have their licenses terminated so long as such 1898parties remain in full compliance. 1899 1900 5. You are not required to accept this License, since you have not 1901signed it. However, nothing else grants you permission to modify or 1902distribute the Program or its derivative works. These actions are 1903prohibited by law if you do not accept this License. Therefore, by 1904modifying or distributing the Program (or any work based on the 1905Program), you indicate your acceptance of this License to do so, and 1906all its terms and conditions for copying, distributing or modifying 1907the Program or works based on it. 1908 1909 6. Each time you redistribute the Program (or any work based on the 1910Program), the recipient automatically receives a license from the 1911original licensor to copy, distribute or modify the Program subject to 1912these terms and conditions. You may not impose any further 1913restrictions on the recipients' exercise of the rights granted herein. 1914You are not responsible for enforcing compliance by third parties to 1915this License. 1916 1917 7. If, as a consequence of a court judgment or allegation of patent 1918infringement or for any other reason (not limited to patent issues), 1919conditions are imposed on you (whether by court order, agreement or 1920otherwise) that contradict the conditions of this License, they do not 1921excuse you from the conditions of this License. If you cannot 1922distribute so as to satisfy simultaneously your obligations under this 1923License and any other pertinent obligations, then as a consequence you 1924may not distribute the Program at all. For example, if a patent 1925license would not permit royalty-free redistribution of the Program by 1926all those who receive copies directly or indirectly through you, then 1927the only way you could satisfy both it and this License would be to 1928refrain entirely from distribution of the Program. 1929 1930If any portion of this section is held invalid or unenforceable under 1931any particular circumstance, the balance of the section is intended to 1932apply and the section as a whole is intended to apply in other 1933circumstances. 1934 1935It is not the purpose of this section to induce you to infringe any 1936patents or other property right claims or to contest validity of any 1937such claims; this section has the sole purpose of protecting the 1938integrity of the free software distribution system, which is 1939implemented by public license practices. Many people have made 1940generous contributions to the wide range of software distributed 1941through that system in reliance on consistent application of that 1942system; it is up to the author/donor to decide if he or she is willing 1943to distribute software through any other system and a licensee cannot 1944impose that choice. 1945 1946This section is intended to make thoroughly clear what is believed to 1947be a consequence of the rest of this License. 1948 1949 8. If the distribution and/or use of the Program is restricted in 1950certain countries either by patents or by copyrighted interfaces, the 1951original copyright holder who places the Program under this License 1952may add an explicit geographical distribution limitation excluding 1953those countries, so that distribution is permitted only in or among 1954countries not thus excluded. In such case, this License incorporates 1955the limitation as if written in the body of this License. 1956 1957 9. The Free Software Foundation may publish revised and/or new versions 1958of the General Public License from time to time. Such new versions will 1959be similar in spirit to the present version, but may differ in detail to 1960address new problems or concerns. 1961 1962Each version is given a distinguishing version number. If the Program 1963specifies a version number of this License which applies to it and "any 1964later version", you have the option of following the terms and conditions 1965either of that version or of any later version published by the Free 1966Software Foundation. If the Program does not specify a version number of 1967this License, you may choose any version ever published by the Free Software 1968Foundation. 1969 1970 10. If you wish to incorporate parts of the Program into other free 1971programs whose distribution conditions are different, write to the author 1972to ask for permission. For software which is copyrighted by the Free 1973Software Foundation, write to the Free Software Foundation; we sometimes 1974make exceptions for this. Our decision will be guided by the two goals 1975of preserving the free status of all derivatives of our free software and 1976of promoting the sharing and reuse of software generally. 1977 1978 NO WARRANTY 1979 1980 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 1981FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 1982OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 1983PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 1984OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 1985MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 1986TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 1987PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 1988REPAIR OR CORRECTION. 1989 1990 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 1991WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 1992REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 1993INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 1994OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 1995TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 1996YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 1997PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 1998POSSIBILITY OF SUCH DAMAGES. 1999 2000 END OF TERMS AND CONDITIONS 2001 2002 How to Apply These Terms to Your New Programs 2003 2004 If you develop a new program, and you want it to be of the greatest 2005possible use to the public, the best way to achieve this is to make it 2006free software which everyone can redistribute and change under these terms. 2007 2008 To do so, attach the following notices to the program. It is safest 2009to attach them to the start of each source file to most effectively 2010convey the exclusion of warranty; and each file should have at least 2011the "copyright" line and a pointer to where the full notice is found. 2012 2013 <one line to give the program's name and a brief idea of what it does.> 2014 Copyright (C) <year> <name of author> 2015 2016 This program is free software; you can redistribute it and/or modify 2017 it under the terms of the GNU General Public License as published by 2018 the Free Software Foundation; either version 2 of the License, or 2019 (at your option) any later version. 2020 2021 This program is distributed in the hope that it will be useful, 2022 but WITHOUT ANY WARRANTY; without even the implied warranty of 2023 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 2024 GNU General Public License for more details. 2025 2026 You should have received a copy of the GNU General Public License 2027 along with this program; if not, write to the Free Software 2028 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 2029 2030 2031Also add information on how to contact you by electronic and paper mail. 2032 2033If the program is interactive, make it output a short notice like this 2034when it starts in an interactive mode: 2035 2036 Gnomovision version 69, Copyright (C) year name of author 2037 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 2038 This is free software, and you are welcome to redistribute it 2039 under certain conditions; type `show c' for details. 2040 2041The hypothetical commands `show w' and `show c' should show the appropriate 2042parts of the General Public License. Of course, the commands you use may 2043be called something other than `show w' and `show c'; they could even be 2044mouse-clicks or menu items--whatever suits your program. 2045 2046You should also get your employer (if you work as a programmer) or your 2047school, if any, to sign a "copyright disclaimer" for the program, if 2048necessary. Here is a sample; alter the names: 2049 2050 Yoyodyne, Inc., hereby disclaims all copyright interest in the program 2051 `Gnomovision' (which makes passes at compilers) written by James Hacker. 2052 2053 <signature of Ty Coon>, 1 April 1989 2054 Ty Coon, President of Vice 2055 2056This General Public License does not permit incorporating your program into 2057proprietary programs. If your program is a subroutine library, you may 2058consider it more useful to permit linking proprietary applications with the 2059library. If this is what you want to do, use the GNU Library General 2060Public License instead of this License. 2061