1*e2738c5eSjacobs Common UNIX Printing System License Agreement 2*e2738c5eSjacobs 3*e2738c5eSjacobs Copyright 1997-2006 by Easy Software Products 4*e2738c5eSjacobs 44141 AIRPORT VIEW DR STE 204 5*e2738c5eSjacobs HOLLYWOOD, MARYLAND 20636 USA 6*e2738c5eSjacobs 7*e2738c5eSjacobs Voice: +1.301.373.9600 8*e2738c5eSjacobs Email: cups-info@cups.org 9*e2738c5eSjacobs WWW: http://www.cups.org 10*e2738c5eSjacobs 11*e2738c5eSjacobs 12*e2738c5eSjacobsINTRODUCTION 13*e2738c5eSjacobs 14*e2738c5eSjacobsThe Common UNIX Printing System(tm), ("CUPS(tm)"), is provided 15*e2738c5eSjacobsunder the GNU General Public License ("GPL") and GNU Library 16*e2738c5eSjacobsGeneral Public License ("LGPL"), Version 2, with exceptions for 17*e2738c5eSjacobsApple operating systems and the OpenSSL toolkit. A copy of the 18*e2738c5eSjacobsexceptions and licenses follow this introduction. 19*e2738c5eSjacobs 20*e2738c5eSjacobsThe GNU LGPL applies to the CUPS API library, located in the 21*e2738c5eSjacobs"cups" subdirectory of the CUPS source distribution and in the 22*e2738c5eSjacobs"cups" include directory and library files in the binary 23*e2738c5eSjacobsdistributions. The GNU GPL applies to the remainder of the CUPS 24*e2738c5eSjacobsdistribution, including the "pdftops" filter which is based upon 25*e2738c5eSjacobsXpdf and the CUPS imaging library. 26*e2738c5eSjacobs 27*e2738c5eSjacobsFor those not familiar with the GNU GPL, the license basically 28*e2738c5eSjacobsallows you to: 29*e2738c5eSjacobs 30*e2738c5eSjacobs - Use the CUPS software at no charge. 31*e2738c5eSjacobs - Distribute verbatim copies of the software in source or 32*e2738c5eSjacobs binary form. 33*e2738c5eSjacobs - Sell verbatim copies of the software for a media fee, or 34*e2738c5eSjacobs sell support for the software. 35*e2738c5eSjacobs - Distribute or sell printer drivers and filters that use 36*e2738c5eSjacobs CUPS so long as source code is made available under the 37*e2738c5eSjacobs GPL. 38*e2738c5eSjacobs 39*e2738c5eSjacobsWhat this license *does not* allow you to do is make changes or 40*e2738c5eSjacobsadd features to CUPS and then sell a binary distribution without 41*e2738c5eSjacobssource code. You must provide source for any new drivers, 42*e2738c5eSjacobschanges, or additions to the software, and all code must be 43*e2738c5eSjacobsprovided under the GPL or LGPL as appropriate. The only 44*e2738c5eSjacobsexceptions to this are the portions of the CUPS software covered 45*e2738c5eSjacobsby the Apple operating system license exceptions outlined later 46*e2738c5eSjacobsin this license agreement. 47*e2738c5eSjacobs 48*e2738c5eSjacobsThe GNU LGPL relaxes the "link-to" restriction, allowing you to 49*e2738c5eSjacobsdevelop applications that use the CUPS API library under other 50*e2738c5eSjacobslicenses and/or conditions as appropriate for your application. 51*e2738c5eSjacobs 52*e2738c5eSjacobs 53*e2738c5eSjacobsLICENSE EXCEPTIONS 54*e2738c5eSjacobs 55*e2738c5eSjacobsIn addition, as the copyright holder of CUPS, Easy Software 56*e2738c5eSjacobsProducts grants the following special exceptions: 57*e2738c5eSjacobs 58*e2738c5eSjacobs 1. Apple Operating System Development License Exception; 59*e2738c5eSjacobs 60*e2738c5eSjacobs a. Software that is developed by any person or entity 61*e2738c5eSjacobs for an Apple Operating System ("Apple OS-Developed 62*e2738c5eSjacobs Software"), including but not limited to Apple and 63*e2738c5eSjacobs third party printer drivers, filters, and backends 64*e2738c5eSjacobs for an Apple Operating System, that is linked to the 65*e2738c5eSjacobs CUPS imaging library or based on any sample filters 66*e2738c5eSjacobs or backends provided with CUPS shall not be 67*e2738c5eSjacobs considered to be a derivative work or collective work 68*e2738c5eSjacobs based on the CUPS program and is exempt from the 69*e2738c5eSjacobs mandatory source code release clauses of the GNU GPL. 70*e2738c5eSjacobs You may therefore distribute linked combinations of 71*e2738c5eSjacobs the CUPS imaging library with Apple OS-Developed 72*e2738c5eSjacobs Software without releasing the source code of the 73*e2738c5eSjacobs Apple OS-Developed Software. You may also use sample 74*e2738c5eSjacobs filters and backends provided with CUPS to develop 75*e2738c5eSjacobs Apple OS-Developed Software without releasing the 76*e2738c5eSjacobs source code of the Apple OS-Developed Software. 77*e2738c5eSjacobs 78*e2738c5eSjacobs b. An Apple Operating System means any operating system 79*e2738c5eSjacobs software developed and/or marketed by Apple Computer, 80*e2738c5eSjacobs Inc., including but not limited to all existing 81*e2738c5eSjacobs releases and versions of Apple's Darwin, Mac OS X, 82*e2738c5eSjacobs and Mac OS X Server products and all follow-on 83*e2738c5eSjacobs releases and future versions thereof. 84*e2738c5eSjacobs 85*e2738c5eSjacobs c. This exception is only available for Apple 86*e2738c5eSjacobs OS-Developed Software and does not apply to software 87*e2738c5eSjacobs that is distributed for use on other operating 88*e2738c5eSjacobs systems. 89*e2738c5eSjacobs 90*e2738c5eSjacobs d. All CUPS software that falls under this license 91*e2738c5eSjacobs exception have the following text at the top of each 92*e2738c5eSjacobs source file: 93*e2738c5eSjacobs 94*e2738c5eSjacobs This file is subject to the Apple OS-Developed 95*e2738c5eSjacobs Software exception. 96*e2738c5eSjacobs 97*e2738c5eSjacobs 2. OpenSSL Toolkit License Exception; 98*e2738c5eSjacobs 99*e2738c5eSjacobs a. Easy Software Products explicitly allows the 100*e2738c5eSjacobs compilation and distribution of the CUPS software 101*e2738c5eSjacobs with the OpenSSL Toolkit. 102*e2738c5eSjacobs 103*e2738c5eSjacobsNo developer is required to provide these exceptions in a 104*e2738c5eSjacobsderived work. 105*e2738c5eSjacobs 106*e2738c5eSjacobs 107*e2738c5eSjacobsTRADEMARKS 108*e2738c5eSjacobs 109*e2738c5eSjacobsEasy Software Products has trademarked the Common UNIX Printing 110*e2738c5eSjacobsSystem, CUPS, and CUPS logo. You may use these names and logos 111*e2738c5eSjacobsin any direct port or binary distribution of CUPS. Please 112*e2738c5eSjacobscontact Easy Software Products for written permission to use 113*e2738c5eSjacobsthem in derivative products. Our intention is to protect the 114*e2738c5eSjacobsvalue of these trademarks and ensure that any derivative product 115*e2738c5eSjacobsmeets the same high-quality standards as the original. 116*e2738c5eSjacobs 117*e2738c5eSjacobs 118*e2738c5eSjacobsBINARY DISTRIBUTION RIGHTS 119*e2738c5eSjacobs 120*e2738c5eSjacobsEasy Software Products also sells rights to the CUPS source code 121*e2738c5eSjacobsunder a binary distribution license for vendors that are unable 122*e2738c5eSjacobsto release source code for their drivers, additions, and 123*e2738c5eSjacobsmodifications to CUPS under the GNU GPL and LGPL. For 124*e2738c5eSjacobsinformation please contact us at the address shown above. 125*e2738c5eSjacobs 126*e2738c5eSjacobsThe Common UNIX Printing System provides a "pdftops" filter that 127*e2738c5eSjacobsis based on the Xpdf software. For binary distribution licensing 128*e2738c5eSjacobsof this software, please contact: 129*e2738c5eSjacobs 130*e2738c5eSjacobs Derek B. Noonburg 131*e2738c5eSjacobs Email: derekn@glyphandcog.com 132*e2738c5eSjacobs WWW: http://www.glyphandcog.com/ 133*e2738c5eSjacobs 134*e2738c5eSjacobs 135*e2738c5eSjacobsSUPPORT 136*e2738c5eSjacobs 137*e2738c5eSjacobsEasy Software Products sells software support for CUPS as well 138*e2738c5eSjacobsas a commercial printing product based on CUPS called ESP Print 139*e2738c5eSjacobsPro. You can find out more at our web site: 140*e2738c5eSjacobs 141*e2738c5eSjacobs http://www.easysw.com/ 142*e2738c5eSjacobs 143*e2738c5eSjacobs GNU GENERAL PUBLIC LICENSE 144*e2738c5eSjacobs Version 2, June 1991 145*e2738c5eSjacobs 146*e2738c5eSjacobs Copyright (C) 1989, 1991 Free Software Foundation, Inc. 147*e2738c5eSjacobs 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 148*e2738c5eSjacobs Everyone is permitted to copy and distribute verbatim copies 149*e2738c5eSjacobs of this license document, but changing it is not allowed. 150*e2738c5eSjacobs 151*e2738c5eSjacobs Preamble 152*e2738c5eSjacobs 153*e2738c5eSjacobs The licenses for most software are designed to take away your 154*e2738c5eSjacobsfreedom to share and change it. By contrast, the GNU General Public 155*e2738c5eSjacobsLicense is intended to guarantee your freedom to share and change free 156*e2738c5eSjacobssoftware--to make sure the software is free for all its users. This 157*e2738c5eSjacobsGeneral Public License applies to most of the Free Software 158*e2738c5eSjacobsFoundation's software and to any other program whose authors commit to 159*e2738c5eSjacobsusing it. (Some other Free Software Foundation software is covered by 160*e2738c5eSjacobsthe GNU Library General Public License instead.) You can apply it to 161*e2738c5eSjacobsyour programs, too. 162*e2738c5eSjacobs 163*e2738c5eSjacobs When we speak of free software, we are referring to freedom, not 164*e2738c5eSjacobsprice. Our General Public Licenses are designed to make sure that you 165*e2738c5eSjacobshave the freedom to distribute copies of free software (and charge for 166*e2738c5eSjacobsthis service if you wish), that you receive source code or can get it 167*e2738c5eSjacobsif you want it, that you can change the software or use pieces of it 168*e2738c5eSjacobsin new free programs; and that you know you can do these things. 169*e2738c5eSjacobs 170*e2738c5eSjacobs To protect your rights, we need to make restrictions that forbid 171*e2738c5eSjacobsanyone to deny you these rights or to ask you to surrender the rights. 172*e2738c5eSjacobsThese restrictions translate to certain responsibilities for you if you 173*e2738c5eSjacobsdistribute copies of the software, or if you modify it. 174*e2738c5eSjacobs 175*e2738c5eSjacobs For example, if you distribute copies of such a program, whether 176*e2738c5eSjacobsgratis or for a fee, you must give the recipients all the rights that 177*e2738c5eSjacobsyou have. You must make sure that they, too, receive or can get the 178*e2738c5eSjacobssource code. And you must show them these terms so they know their 179*e2738c5eSjacobsrights. 180*e2738c5eSjacobs 181*e2738c5eSjacobs We protect your rights with two steps: (1) copyright the software, and 182*e2738c5eSjacobs(2) offer you this license which gives you legal permission to copy, 183*e2738c5eSjacobsdistribute and/or modify the software. 184*e2738c5eSjacobs 185*e2738c5eSjacobs Also, for each author's protection and ours, we want to make certain 186*e2738c5eSjacobsthat everyone understands that there is no warranty for this free 187*e2738c5eSjacobssoftware. If the software is modified by someone else and passed on, we 188*e2738c5eSjacobswant its recipients to know that what they have is not the original, so 189*e2738c5eSjacobsthat any problems introduced by others will not reflect on the original 190*e2738c5eSjacobsauthors' reputations. 191*e2738c5eSjacobs 192*e2738c5eSjacobs Finally, any free program is threatened constantly by software 193*e2738c5eSjacobspatents. We wish to avoid the danger that redistributors of a free 194*e2738c5eSjacobsprogram will individually obtain patent licenses, in effect making the 195*e2738c5eSjacobsprogram proprietary. To prevent this, we have made it clear that any 196*e2738c5eSjacobspatent must be licensed for everyone's free use or not licensed at all. 197*e2738c5eSjacobs 198*e2738c5eSjacobs The precise terms and conditions for copying, distribution and 199*e2738c5eSjacobsmodification follow. 200*e2738c5eSjacobs 201*e2738c5eSjacobs GNU GENERAL PUBLIC LICENSE 202*e2738c5eSjacobs TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 203*e2738c5eSjacobs 204*e2738c5eSjacobs 0. This License applies to any program or other work which contains 205*e2738c5eSjacobsa notice placed by the copyright holder saying it may be distributed 206*e2738c5eSjacobsunder the terms of this General Public License. The "Program", below, 207*e2738c5eSjacobsrefers to any such program or work, and a "work based on the Program" 208*e2738c5eSjacobsmeans either the Program or any derivative work under copyright law: 209*e2738c5eSjacobsthat is to say, a work containing the Program or a portion of it, 210*e2738c5eSjacobseither verbatim or with modifications and/or translated into another 211*e2738c5eSjacobslanguage. (Hereinafter, translation is included without limitation in 212*e2738c5eSjacobsthe term "modification".) Each licensee is addressed as "you". 213*e2738c5eSjacobs 214*e2738c5eSjacobsActivities other than copying, distribution and modification are not 215*e2738c5eSjacobscovered by this License; they are outside its scope. The act of 216*e2738c5eSjacobsrunning the Program is not restricted, and the output from the Program 217*e2738c5eSjacobsis covered only if its contents constitute a work based on the 218*e2738c5eSjacobsProgram (independent of having been made by running the Program). 219*e2738c5eSjacobsWhether that is true depends on what the Program does. 220*e2738c5eSjacobs 221*e2738c5eSjacobs 1. You may copy and distribute verbatim copies of the Program's 222*e2738c5eSjacobssource code as you receive it, in any medium, provided that you 223*e2738c5eSjacobsconspicuously and appropriately publish on each copy an appropriate 224*e2738c5eSjacobscopyright notice and disclaimer of warranty; keep intact all the 225*e2738c5eSjacobsnotices that refer to this License and to the absence of any warranty; 226*e2738c5eSjacobsand give any other recipients of the Program a copy of this License 227*e2738c5eSjacobsalong with the Program. 228*e2738c5eSjacobs 229*e2738c5eSjacobsYou may charge a fee for the physical act of transferring a copy, and 230*e2738c5eSjacobsyou may at your option offer warranty protection in exchange for a fee. 231*e2738c5eSjacobs 232*e2738c5eSjacobs 2. You may modify your copy or copies of the Program or any portion 233*e2738c5eSjacobsof it, thus forming a work based on the Program, and copy and 234*e2738c5eSjacobsdistribute such modifications or work under the terms of Section 1 235*e2738c5eSjacobsabove, provided that you also meet all of these conditions: 236*e2738c5eSjacobs 237*e2738c5eSjacobs a) You must cause the modified files to carry prominent notices 238*e2738c5eSjacobs stating that you changed the files and the date of any change. 239*e2738c5eSjacobs 240*e2738c5eSjacobs b) You must cause any work that you distribute or publish, that in 241*e2738c5eSjacobs whole or in part contains or is derived from the Program or any 242*e2738c5eSjacobs part thereof, to be licensed as a whole at no charge to all third 243*e2738c5eSjacobs parties under the terms of this License. 244*e2738c5eSjacobs 245*e2738c5eSjacobs c) If the modified program normally reads commands interactively 246*e2738c5eSjacobs when run, you must cause it, when started running for such 247*e2738c5eSjacobs interactive use in the most ordinary way, to print or display an 248*e2738c5eSjacobs announcement including an appropriate copyright notice and a 249*e2738c5eSjacobs notice that there is no warranty (or else, saying that you provide 250*e2738c5eSjacobs a warranty) and that users may redistribute the program under 251*e2738c5eSjacobs these conditions, and telling the user how to view a copy of this 252*e2738c5eSjacobs License. (Exception: if the Program itself is interactive but 253*e2738c5eSjacobs does not normally print such an announcement, your work based on 254*e2738c5eSjacobs the Program is not required to print an announcement.) 255*e2738c5eSjacobs 256*e2738c5eSjacobsThese requirements apply to the modified work as a whole. If 257*e2738c5eSjacobsidentifiable sections of that work are not derived from the Program, 258*e2738c5eSjacobsand can be reasonably considered independent and separate works in 259*e2738c5eSjacobsthemselves, then this License, and its terms, do not apply to those 260*e2738c5eSjacobssections when you distribute them as separate works. But when you 261*e2738c5eSjacobsdistribute the same sections as part of a whole which is a work based 262*e2738c5eSjacobson the Program, the distribution of the whole must be on the terms of 263*e2738c5eSjacobsthis License, whose permissions for other licensees extend to the 264*e2738c5eSjacobsentire whole, and thus to each and every part regardless of who wrote it. 265*e2738c5eSjacobs 266*e2738c5eSjacobsThus, it is not the intent of this section to claim rights or contest 267*e2738c5eSjacobsyour rights to work written entirely by you; rather, the intent is to 268*e2738c5eSjacobsexercise the right to control the distribution of derivative or 269*e2738c5eSjacobscollective works based on the Program. 270*e2738c5eSjacobs 271*e2738c5eSjacobsIn addition, mere aggregation of another work not based on the Program 272*e2738c5eSjacobswith the Program (or with a work based on the Program) on a volume of 273*e2738c5eSjacobsa storage or distribution medium does not bring the other work under 274*e2738c5eSjacobsthe scope of this License. 275*e2738c5eSjacobs 276*e2738c5eSjacobs 3. You may copy and distribute the Program (or a work based on it, 277*e2738c5eSjacobsunder Section 2) in object code or executable form under the terms of 278*e2738c5eSjacobsSections 1 and 2 above provided that you also do one of the following: 279*e2738c5eSjacobs 280*e2738c5eSjacobs a) Accompany it with the complete corresponding machine-readable 281*e2738c5eSjacobs source code, which must be distributed under the terms of Sections 282*e2738c5eSjacobs 1 and 2 above on a medium customarily used for software interchange; or, 283*e2738c5eSjacobs 284*e2738c5eSjacobs b) Accompany it with a written offer, valid for at least three 285*e2738c5eSjacobs years, to give any third party, for a charge no more than your 286*e2738c5eSjacobs cost of physically performing source distribution, a complete 287*e2738c5eSjacobs machine-readable copy of the corresponding source code, to be 288*e2738c5eSjacobs distributed under the terms of Sections 1 and 2 above on a medium 289*e2738c5eSjacobs customarily used for software interchange; or, 290*e2738c5eSjacobs 291*e2738c5eSjacobs c) Accompany it with the information you received as to the offer 292*e2738c5eSjacobs to distribute corresponding source code. (This alternative is 293*e2738c5eSjacobs allowed only for noncommercial distribution and only if you 294*e2738c5eSjacobs received the program in object code or executable form with such 295*e2738c5eSjacobs an offer, in accord with Subsection b above.) 296*e2738c5eSjacobs 297*e2738c5eSjacobsThe source code for a work means the preferred form of the work for 298*e2738c5eSjacobsmaking modifications to it. For an executable work, complete source 299*e2738c5eSjacobscode means all the source code for all modules it contains, plus any 300*e2738c5eSjacobsassociated interface definition files, plus the scripts used to 301*e2738c5eSjacobscontrol compilation and installation of the executable. However, as a 302*e2738c5eSjacobsspecial exception, the source code distributed need not include 303*e2738c5eSjacobsanything that is normally distributed (in either source or binary 304*e2738c5eSjacobsform) with the major components (compiler, kernel, and so on) of the 305*e2738c5eSjacobsoperating system on which the executable runs, unless that component 306*e2738c5eSjacobsitself accompanies the executable. 307*e2738c5eSjacobs 308*e2738c5eSjacobsIf distribution of executable or object code is made by offering 309*e2738c5eSjacobsaccess to copy from a designated place, then offering equivalent 310*e2738c5eSjacobsaccess to copy the source code from the same place counts as 311*e2738c5eSjacobsdistribution of the source code, even though third parties are not 312*e2738c5eSjacobscompelled to copy the source along with the object code. 313*e2738c5eSjacobs 314*e2738c5eSjacobs 4. You may not copy, modify, sublicense, or distribute the Program 315*e2738c5eSjacobsexcept as expressly provided under this License. Any attempt 316*e2738c5eSjacobsotherwise to copy, modify, sublicense or distribute the Program is 317*e2738c5eSjacobsvoid, and will automatically terminate your rights under this License. 318*e2738c5eSjacobsHowever, parties who have received copies, or rights, from you under 319*e2738c5eSjacobsthis License will not have their licenses terminated so long as such 320*e2738c5eSjacobsparties remain in full compliance. 321*e2738c5eSjacobs 322*e2738c5eSjacobs 5. You are not required to accept this License, since you have not 323*e2738c5eSjacobssigned it. However, nothing else grants you permission to modify or 324*e2738c5eSjacobsdistribute the Program or its derivative works. These actions are 325*e2738c5eSjacobsprohibited by law if you do not accept this License. Therefore, by 326*e2738c5eSjacobsmodifying or distributing the Program (or any work based on the 327*e2738c5eSjacobsProgram), you indicate your acceptance of this License to do so, and 328*e2738c5eSjacobsall its terms and conditions for copying, distributing or modifying 329*e2738c5eSjacobsthe Program or works based on it. 330*e2738c5eSjacobs 331*e2738c5eSjacobs 6. Each time you redistribute the Program (or any work based on the 332*e2738c5eSjacobsProgram), the recipient automatically receives a license from the 333*e2738c5eSjacobsoriginal licensor to copy, distribute or modify the Program subject to 334*e2738c5eSjacobsthese terms and conditions. You may not impose any further 335*e2738c5eSjacobsrestrictions on the recipients' exercise of the rights granted herein. 336*e2738c5eSjacobsYou are not responsible for enforcing compliance by third parties to 337*e2738c5eSjacobsthis License. 338*e2738c5eSjacobs 339*e2738c5eSjacobs 7. If, as a consequence of a court judgment or allegation of patent 340*e2738c5eSjacobsinfringement or for any other reason (not limited to patent issues), 341*e2738c5eSjacobsconditions are imposed on you (whether by court order, agreement or 342*e2738c5eSjacobsotherwise) that contradict the conditions of this License, they do not 343*e2738c5eSjacobsexcuse you from the conditions of this License. If you cannot 344*e2738c5eSjacobsdistribute so as to satisfy simultaneously your obligations under this 345*e2738c5eSjacobsLicense and any other pertinent obligations, then as a consequence you 346*e2738c5eSjacobsmay not distribute the Program at all. For example, if a patent 347*e2738c5eSjacobslicense would not permit royalty-free redistribution of the Program by 348*e2738c5eSjacobsall those who receive copies directly or indirectly through you, then 349*e2738c5eSjacobsthe only way you could satisfy both it and this License would be to 350*e2738c5eSjacobsrefrain entirely from distribution of the Program. 351*e2738c5eSjacobs 352*e2738c5eSjacobsIf any portion of this section is held invalid or unenforceable under 353*e2738c5eSjacobsany particular circumstance, the balance of the section is intended to 354*e2738c5eSjacobsapply and the section as a whole is intended to apply in other 355*e2738c5eSjacobscircumstances. 356*e2738c5eSjacobs 357*e2738c5eSjacobsIt is not the purpose of this section to induce you to infringe any 358*e2738c5eSjacobspatents or other property right claims or to contest validity of any 359*e2738c5eSjacobssuch claims; this section has the sole purpose of protecting the 360*e2738c5eSjacobsintegrity of the free software distribution system, which is 361*e2738c5eSjacobsimplemented by public license practices. Many people have made 362*e2738c5eSjacobsgenerous contributions to the wide range of software distributed 363*e2738c5eSjacobsthrough that system in reliance on consistent application of that 364*e2738c5eSjacobssystem; it is up to the author/donor to decide if he or she is willing 365*e2738c5eSjacobsto distribute software through any other system and a licensee cannot 366*e2738c5eSjacobsimpose that choice. 367*e2738c5eSjacobs 368*e2738c5eSjacobsThis section is intended to make thoroughly clear what is believed to 369*e2738c5eSjacobsbe a consequence of the rest of this License. 370*e2738c5eSjacobs 371*e2738c5eSjacobs 8. If the distribution and/or use of the Program is restricted in 372*e2738c5eSjacobscertain countries either by patents or by copyrighted interfaces, the 373*e2738c5eSjacobsoriginal copyright holder who places the Program under this License 374*e2738c5eSjacobsmay add an explicit geographical distribution limitation excluding 375*e2738c5eSjacobsthose countries, so that distribution is permitted only in or among 376*e2738c5eSjacobscountries not thus excluded. In such case, this License incorporates 377*e2738c5eSjacobsthe limitation as if written in the body of this License. 378*e2738c5eSjacobs 379*e2738c5eSjacobs 9. The Free Software Foundation may publish revised and/or new versions 380*e2738c5eSjacobsof the General Public License from time to time. Such new versions will 381*e2738c5eSjacobsbe similar in spirit to the present version, but may differ in detail to 382*e2738c5eSjacobsaddress new problems or concerns. 383*e2738c5eSjacobs 384*e2738c5eSjacobsEach version is given a distinguishing version number. If the Program 385*e2738c5eSjacobsspecifies a version number of this License which applies to it and "any 386*e2738c5eSjacobslater version", you have the option of following the terms and conditions 387*e2738c5eSjacobseither of that version or of any later version published by the Free 388*e2738c5eSjacobsSoftware Foundation. If the Program does not specify a version number of 389*e2738c5eSjacobsthis License, you may choose any version ever published by the Free Software 390*e2738c5eSjacobsFoundation. 391*e2738c5eSjacobs 392*e2738c5eSjacobs 10. If you wish to incorporate parts of the Program into other free 393*e2738c5eSjacobsprograms whose distribution conditions are different, write to the author 394*e2738c5eSjacobsto ask for permission. For software which is copyrighted by the Free 395*e2738c5eSjacobsSoftware Foundation, write to the Free Software Foundation; we sometimes 396*e2738c5eSjacobsmake exceptions for this. Our decision will be guided by the two goals 397*e2738c5eSjacobsof preserving the free status of all derivatives of our free software and 398*e2738c5eSjacobsof promoting the sharing and reuse of software generally. 399*e2738c5eSjacobs 400*e2738c5eSjacobs NO WARRANTY 401*e2738c5eSjacobs 402*e2738c5eSjacobs 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 403*e2738c5eSjacobsFOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 404*e2738c5eSjacobsOTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 405*e2738c5eSjacobsPROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 406*e2738c5eSjacobsOR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 407*e2738c5eSjacobsMERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 408*e2738c5eSjacobsTO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 409*e2738c5eSjacobsPROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 410*e2738c5eSjacobsREPAIR OR CORRECTION. 411*e2738c5eSjacobs 412*e2738c5eSjacobs 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 413*e2738c5eSjacobsWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 414*e2738c5eSjacobsREDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 415*e2738c5eSjacobsINCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 416*e2738c5eSjacobsOUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 417*e2738c5eSjacobsTO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 418*e2738c5eSjacobsYOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 419*e2738c5eSjacobsPROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 420*e2738c5eSjacobsPOSSIBILITY OF SUCH DAMAGES. 421*e2738c5eSjacobs 422*e2738c5eSjacobs END OF TERMS AND CONDITIONS 423*e2738c5eSjacobs 424*e2738c5eSjacobs Appendix: How to Apply These Terms to Your New Programs 425*e2738c5eSjacobs 426*e2738c5eSjacobs If you develop a new program, and you want it to be of the greatest 427*e2738c5eSjacobspossible use to the public, the best way to achieve this is to make it 428*e2738c5eSjacobsfree software which everyone can redistribute and change under these terms. 429*e2738c5eSjacobs 430*e2738c5eSjacobs To do so, attach the following notices to the program. It is safest 431*e2738c5eSjacobsto attach them to the start of each source file to most effectively 432*e2738c5eSjacobsconvey the exclusion of warranty; and each file should have at least 433*e2738c5eSjacobsthe "copyright" line and a pointer to where the full notice is found. 434*e2738c5eSjacobs 435*e2738c5eSjacobs <one line to give the program's name and a brief idea of what it does.> 436*e2738c5eSjacobs Copyright (C) 19yy <name of author> 437*e2738c5eSjacobs 438*e2738c5eSjacobs This program is free software; you can redistribute it and/or modify 439*e2738c5eSjacobs it under the terms of the GNU General Public License as published by 440*e2738c5eSjacobs the Free Software Foundation; either version 2 of the License, or 441*e2738c5eSjacobs (at your option) any later version. 442*e2738c5eSjacobs 443*e2738c5eSjacobs This program is distributed in the hope that it will be useful, 444*e2738c5eSjacobs but WITHOUT ANY WARRANTY; without even the implied warranty of 445*e2738c5eSjacobs MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 446*e2738c5eSjacobs GNU General Public License for more details. 447*e2738c5eSjacobs 448*e2738c5eSjacobs You should have received a copy of the GNU General Public License 449*e2738c5eSjacobs along with this program; if not, write to the Free Software 450*e2738c5eSjacobs Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 451*e2738c5eSjacobs 452*e2738c5eSjacobsAlso add information on how to contact you by electronic and paper mail. 453*e2738c5eSjacobs 454*e2738c5eSjacobsIf the program is interactive, make it output a short notice like this 455*e2738c5eSjacobswhen it starts in an interactive mode: 456*e2738c5eSjacobs 457*e2738c5eSjacobs Gnomovision version 69, Copyright (C) 19yy name of author 458*e2738c5eSjacobs Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 459*e2738c5eSjacobs This is free software, and you are welcome to redistribute it 460*e2738c5eSjacobs under certain conditions; type `show c' for details. 461*e2738c5eSjacobs 462*e2738c5eSjacobsThe hypothetical commands `show w' and `show c' should show the appropriate 463*e2738c5eSjacobsparts of the General Public License. Of course, the commands you use may 464*e2738c5eSjacobsbe called something other than `show w' and `show c'; they could even be 465*e2738c5eSjacobsmouse-clicks or menu items--whatever suits your program. 466*e2738c5eSjacobs 467*e2738c5eSjacobsYou should also get your employer (if you work as a programmer) or your 468*e2738c5eSjacobsschool, if any, to sign a "copyright disclaimer" for the program, if 469*e2738c5eSjacobsnecessary. Here is a sample; alter the names: 470*e2738c5eSjacobs 471*e2738c5eSjacobs Yoyodyne, Inc., hereby disclaims all copyright interest in the program 472*e2738c5eSjacobs `Gnomovision' (which makes passes at compilers) written by James Hacker. 473*e2738c5eSjacobs 474*e2738c5eSjacobs <signature of Ty Coon>, 1 April 1989 475*e2738c5eSjacobs Ty Coon, President of Vice 476*e2738c5eSjacobs 477*e2738c5eSjacobsThis General Public License does not permit incorporating your program into 478*e2738c5eSjacobsproprietary programs. If your program is a subroutine library, you may 479*e2738c5eSjacobsconsider it more useful to permit linking proprietary applications with the 480*e2738c5eSjacobslibrary. If this is what you want to do, use the GNU Library General 481*e2738c5eSjacobsPublic License instead of this License. 482*e2738c5eSjacobs 483*e2738c5eSjacobs GNU LIBRARY GENERAL PUBLIC LICENSE 484*e2738c5eSjacobs Version 2, June 1991 485*e2738c5eSjacobs 486*e2738c5eSjacobs Copyright (C) 1991 Free Software Foundation, Inc. 487*e2738c5eSjacobs 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 488*e2738c5eSjacobs 489*e2738c5eSjacobs Everyone is permitted to copy and distribute verbatim copies 490*e2738c5eSjacobs of this license document, but changing it is not allowed. 491*e2738c5eSjacobs 492*e2738c5eSjacobs [This is the first released version of the library GPL. It is 493*e2738c5eSjacobs numbered 2 because it goes with version 2 of the ordinary GPL.] 494*e2738c5eSjacobs 495*e2738c5eSjacobs Preamble 496*e2738c5eSjacobs 497*e2738c5eSjacobs The licenses for most software are designed to take away your 498*e2738c5eSjacobsfreedom to share and change it. By contrast, the GNU General Public 499*e2738c5eSjacobsLicenses are intended to guarantee your freedom to share and change 500*e2738c5eSjacobsfree software--to make sure the software is free for all its users. 501*e2738c5eSjacobs 502*e2738c5eSjacobs This license, the Library General Public License, applies to some 503*e2738c5eSjacobsspecially designated Free Software Foundation software, and to any 504*e2738c5eSjacobsother libraries whose authors decide to use it. You can use it for 505*e2738c5eSjacobsyour libraries, too. 506*e2738c5eSjacobs 507*e2738c5eSjacobs When we speak of free software, we are referring to freedom, not 508*e2738c5eSjacobsprice. Our General Public Licenses are designed to make sure that you 509*e2738c5eSjacobshave the freedom to distribute copies of free software (and charge for 510*e2738c5eSjacobsthis service if you wish), that you receive source code or can get it 511*e2738c5eSjacobsif you want it, that you can change the software or use pieces of it 512*e2738c5eSjacobsin new free programs; and that you know you can do these things. 513*e2738c5eSjacobs 514*e2738c5eSjacobs To protect your rights, we need to make restrictions that forbid 515*e2738c5eSjacobsanyone to deny you these rights or to ask you to surrender the rights. 516*e2738c5eSjacobsThese restrictions translate to certain responsibilities for you if 517*e2738c5eSjacobsyou distribute copies of the library, or if you modify it. 518*e2738c5eSjacobs 519*e2738c5eSjacobs For example, if you distribute copies of the library, whether gratis 520*e2738c5eSjacobsor for a fee, you must give the recipients all the rights that we gave 521*e2738c5eSjacobsyou. You must make sure that they, too, receive or can get the source 522*e2738c5eSjacobscode. If you link a program with the library, you must provide 523*e2738c5eSjacobscomplete object files to the recipients so that they can relink them 524*e2738c5eSjacobswith the library, after making changes to the library and recompiling 525*e2738c5eSjacobsit. And you must show them these terms so they know their rights. 526*e2738c5eSjacobs 527*e2738c5eSjacobs Our method of protecting your rights has two steps: (1) copyright 528*e2738c5eSjacobsthe library, and (2) offer you this license which gives you legal 529*e2738c5eSjacobspermission to copy, distribute and/or modify the library. 530*e2738c5eSjacobs 531*e2738c5eSjacobs Also, for each distributor's protection, we want to make certain 532*e2738c5eSjacobsthat everyone understands that there is no warranty for this free 533*e2738c5eSjacobslibrary. If the library is modified by someone else and passed on, we 534*e2738c5eSjacobswant its recipients to know that what they have is not the original 535*e2738c5eSjacobsversion, so that any problems introduced by others will not reflect on 536*e2738c5eSjacobsthe original authors' reputations. 537*e2738c5eSjacobs 538*e2738c5eSjacobs Finally, any free program is threatened constantly by software 539*e2738c5eSjacobspatents. We wish to avoid the danger that companies distributing free 540*e2738c5eSjacobssoftware will individually obtain patent licenses, thus in effect 541*e2738c5eSjacobstransforming the program into proprietary software. To prevent this, 542*e2738c5eSjacobswe have made it clear that any patent must be licensed for everyone's 543*e2738c5eSjacobsfree use or not licensed at all. 544*e2738c5eSjacobs 545*e2738c5eSjacobs Most GNU software, including some libraries, is covered by the ordinary 546*e2738c5eSjacobsGNU General Public License, which was designed for utility programs. This 547*e2738c5eSjacobslicense, the GNU Library General Public License, applies to certain 548*e2738c5eSjacobsdesignated libraries. This license is quite different from the ordinary 549*e2738c5eSjacobsone; be sure to read it in full, and don't assume that anything in it is 550*e2738c5eSjacobsthe same as in the ordinary license. 551*e2738c5eSjacobs 552*e2738c5eSjacobs The reason we have a separate public license for some libraries is that 553*e2738c5eSjacobsthey blur the distinction we usually make between modifying or adding to a 554*e2738c5eSjacobsprogram and simply using it. Linking a program with a library, without 555*e2738c5eSjacobschanging the library, is in some sense simply using the library, and is 556*e2738c5eSjacobsanalogous to running a utility program or application program. However, in 557*e2738c5eSjacobsa textual and legal sense, the linked executable is a combined work, a 558*e2738c5eSjacobsderivative of the original library, and the ordinary General Public License 559*e2738c5eSjacobstreats it as such. 560*e2738c5eSjacobs 561*e2738c5eSjacobs Because of this blurred distinction, using the ordinary General 562*e2738c5eSjacobsPublic License for libraries did not effectively promote software 563*e2738c5eSjacobssharing, because most developers did not use the libraries. We 564*e2738c5eSjacobsconcluded that weaker conditions might promote sharing better. 565*e2738c5eSjacobs 566*e2738c5eSjacobs However, unrestricted linking of non-free programs would deprive the 567*e2738c5eSjacobsusers of those programs of all benefit from the free status of the 568*e2738c5eSjacobslibraries themselves. This Library General Public License is intended to 569*e2738c5eSjacobspermit developers of non-free programs to use free libraries, while 570*e2738c5eSjacobspreserving your freedom as a user of such programs to change the free 571*e2738c5eSjacobslibraries that are incorporated in them. (We have not seen how to achieve 572*e2738c5eSjacobsthis as regards changes in header files, but we have achieved it as regards 573*e2738c5eSjacobschanges in the actual functions of the Library.) The hope is that this 574*e2738c5eSjacobswill lead to faster development of free libraries. 575*e2738c5eSjacobs 576*e2738c5eSjacobs The precise terms and conditions for copying, distribution and 577*e2738c5eSjacobsmodification follow. Pay close attention to the difference between a 578*e2738c5eSjacobs"work based on the library" and a "work that uses the library". The 579*e2738c5eSjacobsformer contains code derived from the library, while the latter only 580*e2738c5eSjacobsworks together with the library. 581*e2738c5eSjacobs 582*e2738c5eSjacobs Note that it is possible for a library to be covered by the ordinary 583*e2738c5eSjacobsGeneral Public License rather than by this special one. 584*e2738c5eSjacobs 585*e2738c5eSjacobs GNU LIBRARY GENERAL PUBLIC LICENSE 586*e2738c5eSjacobs TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 587*e2738c5eSjacobs 588*e2738c5eSjacobs 0. This License Agreement applies to any software library which 589*e2738c5eSjacobscontains a notice placed by the copyright holder or other authorized 590*e2738c5eSjacobsparty saying it may be distributed under the terms of this Library 591*e2738c5eSjacobsGeneral Public License (also called "this License"). Each licensee is 592*e2738c5eSjacobsaddressed as "you". 593*e2738c5eSjacobs 594*e2738c5eSjacobs A "library" means a collection of software functions and/or data 595*e2738c5eSjacobsprepared so as to be conveniently linked with application programs 596*e2738c5eSjacobs(which use some of those functions and data) to form executables. 597*e2738c5eSjacobs 598*e2738c5eSjacobs The "Library", below, refers to any such software library or work 599*e2738c5eSjacobswhich has been distributed under these terms. A "work based on the 600*e2738c5eSjacobsLibrary" means either the Library or any derivative work under 601*e2738c5eSjacobscopyright law: that is to say, a work containing the Library or a 602*e2738c5eSjacobsportion of it, either verbatim or with modifications and/or translated 603*e2738c5eSjacobsstraightforwardly into another language. (Hereinafter, translation is 604*e2738c5eSjacobsincluded without limitation in the term "modification".) 605*e2738c5eSjacobs 606*e2738c5eSjacobs "Source code" for a work means the preferred form of the work for 607*e2738c5eSjacobsmaking modifications to it. For a library, complete source code means 608*e2738c5eSjacobsall the source code for all modules it contains, plus any associated 609*e2738c5eSjacobsinterface definition files, plus the scripts used to control compilation 610*e2738c5eSjacobsand installation of the library. 611*e2738c5eSjacobs 612*e2738c5eSjacobs Activities other than copying, distribution and modification are not 613*e2738c5eSjacobscovered by this License; they are outside its scope. The act of 614*e2738c5eSjacobsrunning a program using the Library is not restricted, and output from 615*e2738c5eSjacobssuch a program is covered only if its contents constitute a work based 616*e2738c5eSjacobson the Library (independent of the use of the Library in a tool for 617*e2738c5eSjacobswriting it). Whether that is true depends on what the Library does 618*e2738c5eSjacobsand what the program that uses the Library does. 619*e2738c5eSjacobs 620*e2738c5eSjacobs 1. You may copy and distribute verbatim copies of the Library's 621*e2738c5eSjacobscomplete source code as you receive it, in any medium, provided that 622*e2738c5eSjacobsyou conspicuously and appropriately publish on each copy an 623*e2738c5eSjacobsappropriate copyright notice and disclaimer of warranty; keep intact 624*e2738c5eSjacobsall the notices that refer to this License and to the absence of any 625*e2738c5eSjacobswarranty; and distribute a copy of this License along with the 626*e2738c5eSjacobsLibrary. 627*e2738c5eSjacobs 628*e2738c5eSjacobs You may charge a fee for the physical act of transferring a copy, 629*e2738c5eSjacobsand you may at your option offer warranty protection in exchange for a 630*e2738c5eSjacobsfee. 631*e2738c5eSjacobs 632*e2738c5eSjacobs 2. You may modify your copy or copies of the Library or any portion 633*e2738c5eSjacobsof it, thus forming a work based on the Library, and copy and 634*e2738c5eSjacobsdistribute such modifications or work under the terms of Section 1 635*e2738c5eSjacobsabove, provided that you also meet all of these conditions: 636*e2738c5eSjacobs 637*e2738c5eSjacobs a) The modified work must itself be a software library. 638*e2738c5eSjacobs 639*e2738c5eSjacobs b) You must cause the files modified to carry prominent notices 640*e2738c5eSjacobs stating that you changed the files and the date of any change. 641*e2738c5eSjacobs 642*e2738c5eSjacobs c) You must cause the whole of the work to be licensed at no 643*e2738c5eSjacobs charge to all third parties under the terms of this License. 644*e2738c5eSjacobs 645*e2738c5eSjacobs d) If a facility in the modified Library refers to a function or a 646*e2738c5eSjacobs table of data to be supplied by an application program that uses 647*e2738c5eSjacobs the facility, other than as an argument passed when the facility 648*e2738c5eSjacobs is invoked, then you must make a good faith effort to ensure that, 649*e2738c5eSjacobs in the event an application does not supply such function or 650*e2738c5eSjacobs table, the facility still operates, and performs whatever part of 651*e2738c5eSjacobs its purpose remains meaningful. 652*e2738c5eSjacobs 653*e2738c5eSjacobs (For example, a function in a library to compute square roots has 654*e2738c5eSjacobs a purpose that is entirely well-defined independent of the 655*e2738c5eSjacobs application. Therefore, Subsection 2d requires that any 656*e2738c5eSjacobs application-supplied function or table used by this function must 657*e2738c5eSjacobs be optional: if the application does not supply it, the square 658*e2738c5eSjacobs root function must still compute square roots.) 659*e2738c5eSjacobs 660*e2738c5eSjacobsThese requirements apply to the modified work as a whole. If 661*e2738c5eSjacobsidentifiable sections of that work are not derived from the Library, 662*e2738c5eSjacobsand can be reasonably considered independent and separate works in 663*e2738c5eSjacobsthemselves, then this License, and its terms, do not apply to those 664*e2738c5eSjacobssections when you distribute them as separate works. But when you 665*e2738c5eSjacobsdistribute the same sections as part of a whole which is a work based 666*e2738c5eSjacobson the Library, the distribution of the whole must be on the terms of 667*e2738c5eSjacobsthis License, whose permissions for other licensees extend to the 668*e2738c5eSjacobsentire whole, and thus to each and every part regardless of who wrote 669*e2738c5eSjacobsit. 670*e2738c5eSjacobs 671*e2738c5eSjacobsThus, it is not the intent of this section to claim rights or contest 672*e2738c5eSjacobsyour rights to work written entirely by you; rather, the intent is to 673*e2738c5eSjacobsexercise the right to control the distribution of derivative or 674*e2738c5eSjacobscollective works based on the Library. 675*e2738c5eSjacobs 676*e2738c5eSjacobsIn addition, mere aggregation of another work not based on the Library 677*e2738c5eSjacobswith the Library (or with a work based on the Library) on a volume of 678*e2738c5eSjacobsa storage or distribution medium does not bring the other work under 679*e2738c5eSjacobsthe scope of this License. 680*e2738c5eSjacobs 681*e2738c5eSjacobs 3. You may opt to apply the terms of the ordinary GNU General Public 682*e2738c5eSjacobsLicense instead of this License to a given copy of the Library. To do 683*e2738c5eSjacobsthis, you must alter all the notices that refer to this License, so 684*e2738c5eSjacobsthat they refer to the ordinary GNU General Public License, version 2, 685*e2738c5eSjacobsinstead of to this License. (If a newer version than version 2 of the 686*e2738c5eSjacobsordinary GNU General Public License has appeared, then you can specify 687*e2738c5eSjacobsthat version instead if you wish.) Do not make any other change in 688*e2738c5eSjacobsthese notices. 689*e2738c5eSjacobs 690*e2738c5eSjacobs Once this change is made in a given copy, it is irreversible for 691*e2738c5eSjacobsthat copy, so the ordinary GNU General Public License applies to all 692*e2738c5eSjacobssubsequent copies and derivative works made from that copy. 693*e2738c5eSjacobs 694*e2738c5eSjacobs This option is useful when you wish to copy part of the code of 695*e2738c5eSjacobsthe Library into a program that is not a library. 696*e2738c5eSjacobs 697*e2738c5eSjacobs 4. You may copy and distribute the Library (or a portion or 698*e2738c5eSjacobsderivative of it, under Section 2) in object code or executable form 699*e2738c5eSjacobsunder the terms of Sections 1 and 2 above provided that you accompany 700*e2738c5eSjacobsit with the complete corresponding machine-readable source code, which 701*e2738c5eSjacobsmust be distributed under the terms of Sections 1 and 2 above on a 702*e2738c5eSjacobsmedium customarily used for software interchange. 703*e2738c5eSjacobs 704*e2738c5eSjacobs If distribution of object code is made by offering access to copy 705*e2738c5eSjacobsfrom a designated place, then offering equivalent access to copy the 706*e2738c5eSjacobssource code from the same place satisfies the requirement to 707*e2738c5eSjacobsdistribute the source code, even though third parties are not 708*e2738c5eSjacobscompelled to copy the source along with the object code. 709*e2738c5eSjacobs 710*e2738c5eSjacobs 5. A program that contains no derivative of any portion of the 711*e2738c5eSjacobsLibrary, but is designed to work with the Library by being compiled or 712*e2738c5eSjacobslinked with it, is called a "work that uses the Library". Such a 713*e2738c5eSjacobswork, in isolation, is not a derivative work of the Library, and 714*e2738c5eSjacobstherefore falls outside the scope of this License. 715*e2738c5eSjacobs 716*e2738c5eSjacobs However, linking a "work that uses the Library" with the Library 717*e2738c5eSjacobscreates an executable that is a derivative of the Library (because it 718*e2738c5eSjacobscontains portions of the Library), rather than a "work that uses the 719*e2738c5eSjacobslibrary". The executable is therefore covered by this License. 720*e2738c5eSjacobsSection 6 states terms for distribution of such executables. 721*e2738c5eSjacobs 722*e2738c5eSjacobs When a "work that uses the Library" uses material from a header file 723*e2738c5eSjacobsthat is part of the Library, the object code for the work may be a 724*e2738c5eSjacobsderivative work of the Library even though the source code is not. 725*e2738c5eSjacobsWhether this is true is especially significant if the work can be 726*e2738c5eSjacobslinked without the Library, or if the work is itself a library. The 727*e2738c5eSjacobsthreshold for this to be true is not precisely defined by law. 728*e2738c5eSjacobs 729*e2738c5eSjacobs If such an object file uses only numerical parameters, data 730*e2738c5eSjacobsstructure layouts and accessors, and small macros and small inline 731*e2738c5eSjacobsfunctions (ten lines or less in length), then the use of the object 732*e2738c5eSjacobsfile is unrestricted, regardless of whether it is legally a derivative 733*e2738c5eSjacobswork. (Executables containing this object code plus portions of the 734*e2738c5eSjacobsLibrary will still fall under Section 6.) 735*e2738c5eSjacobs 736*e2738c5eSjacobs Otherwise, if the work is a derivative of the Library, you may 737*e2738c5eSjacobsdistribute the object code for the work under the terms of Section 6. 738*e2738c5eSjacobsAny executables containing that work also fall under Section 6, 739*e2738c5eSjacobswhether or not they are linked directly with the Library itself. 740*e2738c5eSjacobs 741*e2738c5eSjacobs 6. As an exception to the Sections above, you may also compile or 742*e2738c5eSjacobslink a "work that uses the Library" with the Library to produce a 743*e2738c5eSjacobswork containing portions of the Library, and distribute that work 744*e2738c5eSjacobsunder terms of your choice, provided that the terms permit 745*e2738c5eSjacobsmodification of the work for the customer's own use and reverse 746*e2738c5eSjacobsengineering for debugging such modifications. 747*e2738c5eSjacobs 748*e2738c5eSjacobs You must give prominent notice with each copy of the work that the 749*e2738c5eSjacobsLibrary is used in it and that the Library and its use are covered by 750*e2738c5eSjacobsthis License. You must supply a copy of this License. If the work 751*e2738c5eSjacobsduring execution displays copyright notices, you must include the 752*e2738c5eSjacobscopyright notice for the Library among them, as well as a reference 753*e2738c5eSjacobsdirecting the user to the copy of this License. Also, you must do one 754*e2738c5eSjacobsof these things: 755*e2738c5eSjacobs 756*e2738c5eSjacobs a) Accompany the work with the complete corresponding 757*e2738c5eSjacobs machine-readable source code for the Library including whatever 758*e2738c5eSjacobs changes were used in the work (which must be distributed under 759*e2738c5eSjacobs Sections 1 and 2 above); and, if the work is an executable linked 760*e2738c5eSjacobs with the Library, with the complete machine-readable "work that 761*e2738c5eSjacobs uses the Library", as object code and/or source code, so that the 762*e2738c5eSjacobs user can modify the Library and then relink to produce a modified 763*e2738c5eSjacobs executable containing the modified Library. (It is understood 764*e2738c5eSjacobs that the user who changes the contents of definitions files in the 765*e2738c5eSjacobs Library will not necessarily be able to recompile the application 766*e2738c5eSjacobs to use the modified definitions.) 767*e2738c5eSjacobs 768*e2738c5eSjacobs b) Accompany the work with a written offer, valid for at 769*e2738c5eSjacobs least three years, to give the same user the materials 770*e2738c5eSjacobs specified in Subsection 6a, above, for a charge no more 771*e2738c5eSjacobs than the cost of performing this distribution. 772*e2738c5eSjacobs 773*e2738c5eSjacobs c) If distribution of the work is made by offering access to copy 774*e2738c5eSjacobs from a designated place, offer equivalent access to copy the above 775*e2738c5eSjacobs specified materials from the same place. 776*e2738c5eSjacobs 777*e2738c5eSjacobs d) Verify that the user has already received a copy of these 778*e2738c5eSjacobs materials or that you have already sent this user a copy. 779*e2738c5eSjacobs 780*e2738c5eSjacobs For an executable, the required form of the "work that uses the 781*e2738c5eSjacobsLibrary" must include any data and utility programs needed for 782*e2738c5eSjacobsreproducing the executable from it. However, as a special exception, 783*e2738c5eSjacobsthe source code distributed need not include anything that is normally 784*e2738c5eSjacobsdistributed (in either source or binary form) with the major 785*e2738c5eSjacobscomponents (compiler, kernel, and so on) of the operating system on 786*e2738c5eSjacobswhich the executable runs, unless that component itself accompanies 787*e2738c5eSjacobsthe executable. 788*e2738c5eSjacobs 789*e2738c5eSjacobs It may happen that this requirement contradicts the license 790*e2738c5eSjacobsrestrictions of other proprietary libraries that do not normally 791*e2738c5eSjacobsaccompany the operating system. Such a contradiction means you cannot 792*e2738c5eSjacobsuse both them and the Library together in an executable that you 793*e2738c5eSjacobsdistribute. 794*e2738c5eSjacobs 795*e2738c5eSjacobs 7. You may place library facilities that are a work based on the 796*e2738c5eSjacobsLibrary side-by-side in a single library together with other library 797*e2738c5eSjacobsfacilities not covered by this License, and distribute such a combined 798*e2738c5eSjacobslibrary, provided that the separate distribution of the work based on 799*e2738c5eSjacobsthe Library and of the other library facilities is otherwise 800*e2738c5eSjacobspermitted, and provided that you do these two things: 801*e2738c5eSjacobs 802*e2738c5eSjacobs a) Accompany the combined library with a copy of the same work 803*e2738c5eSjacobs based on the Library, uncombined with any other library 804*e2738c5eSjacobs facilities. This must be distributed under the terms of the 805*e2738c5eSjacobs Sections above. 806*e2738c5eSjacobs 807*e2738c5eSjacobs b) Give prominent notice with the combined library of the fact 808*e2738c5eSjacobs that part of it is a work based on the Library, and explaining 809*e2738c5eSjacobs where to find the accompanying uncombined form of the same work. 810*e2738c5eSjacobs 811*e2738c5eSjacobs 8. You may not copy, modify, sublicense, link with, or distribute 812*e2738c5eSjacobsthe Library except as expressly provided under this License. Any 813*e2738c5eSjacobsattempt otherwise to copy, modify, sublicense, link with, or 814*e2738c5eSjacobsdistribute the Library is void, and will automatically terminate your 815*e2738c5eSjacobsrights under this License. However, parties who have received copies, 816*e2738c5eSjacobsor rights, from you under this License will not have their licenses 817*e2738c5eSjacobsterminated so long as such parties remain in full compliance. 818*e2738c5eSjacobs 819*e2738c5eSjacobs 9. You are not required to accept this License, since you have not 820*e2738c5eSjacobssigned it. However, nothing else grants you permission to modify or 821*e2738c5eSjacobsdistribute the Library or its derivative works. These actions are 822*e2738c5eSjacobsprohibited by law if you do not accept this License. Therefore, by 823*e2738c5eSjacobsmodifying or distributing the Library (or any work based on the 824*e2738c5eSjacobsLibrary), you indicate your acceptance of this License to do so, and 825*e2738c5eSjacobsall its terms and conditions for copying, distributing or modifying 826*e2738c5eSjacobsthe Library or works based on it. 827*e2738c5eSjacobs 828*e2738c5eSjacobs 10. Each time you redistribute the Library (or any work based on the 829*e2738c5eSjacobsLibrary), the recipient automatically receives a license from the 830*e2738c5eSjacobsoriginal licensor to copy, distribute, link with or modify the Library 831*e2738c5eSjacobssubject to these terms and conditions. You may not impose any further 832*e2738c5eSjacobsrestrictions on the recipients' exercise of the rights granted herein. 833*e2738c5eSjacobsYou are not responsible for enforcing compliance by third parties to 834*e2738c5eSjacobsthis License. 835*e2738c5eSjacobs 836*e2738c5eSjacobs 11. If, as a consequence of a court judgment or allegation of patent 837*e2738c5eSjacobsinfringement or for any other reason (not limited to patent issues), 838*e2738c5eSjacobsconditions are imposed on you (whether by court order, agreement or 839*e2738c5eSjacobsotherwise) that contradict the conditions of this License, they do not 840*e2738c5eSjacobsexcuse you from the conditions of this License. If you cannot 841*e2738c5eSjacobsdistribute so as to satisfy simultaneously your obligations under this 842*e2738c5eSjacobsLicense and any other pertinent obligations, then as a consequence you 843*e2738c5eSjacobsmay not distribute the Library at all. For example, if a patent 844*e2738c5eSjacobslicense would not permit royalty-free redistribution of the Library by 845*e2738c5eSjacobsall those who receive copies directly or indirectly through you, then 846*e2738c5eSjacobsthe only way you could satisfy both it and this License would be to 847*e2738c5eSjacobsrefrain entirely from distribution of the Library. 848*e2738c5eSjacobs 849*e2738c5eSjacobsIf any portion of this section is held invalid or unenforceable under any 850*e2738c5eSjacobsparticular circumstance, the balance of the section is intended to apply, 851*e2738c5eSjacobsand the section as a whole is intended to apply in other circumstances. 852*e2738c5eSjacobs 853*e2738c5eSjacobsIt is not the purpose of this section to induce you to infringe any 854*e2738c5eSjacobspatents or other property right claims or to contest validity of any 855*e2738c5eSjacobssuch claims; this section has the sole purpose of protecting the 856*e2738c5eSjacobsintegrity of the free software distribution system which is 857*e2738c5eSjacobsimplemented by public license practices. Many people have made 858*e2738c5eSjacobsgenerous contributions to the wide range of software distributed 859*e2738c5eSjacobsthrough that system in reliance on consistent application of that 860*e2738c5eSjacobssystem; it is up to the author/donor to decide if he or she is willing 861*e2738c5eSjacobsto distribute software through any other system and a licensee cannot 862*e2738c5eSjacobsimpose that choice. 863*e2738c5eSjacobs 864*e2738c5eSjacobsThis section is intended to make thoroughly clear what is believed to 865*e2738c5eSjacobsbe a consequence of the rest of this License. 866*e2738c5eSjacobs 867*e2738c5eSjacobs 12. If the distribution and/or use of the Library is restricted in 868*e2738c5eSjacobscertain countries either by patents or by copyrighted interfaces, the 869*e2738c5eSjacobsoriginal copyright holder who places the Library under this License may add 870*e2738c5eSjacobsan explicit geographical distribution limitation excluding those countries, 871*e2738c5eSjacobsso that distribution is permitted only in or among countries not thus 872*e2738c5eSjacobsexcluded. In such case, this License incorporates the limitation as if 873*e2738c5eSjacobswritten in the body of this License. 874*e2738c5eSjacobs 875*e2738c5eSjacobs 13. The Free Software Foundation may publish revised and/or new 876*e2738c5eSjacobsversions of the Library General Public License from time to time. 877*e2738c5eSjacobsSuch new versions will be similar in spirit to the present version, 878*e2738c5eSjacobsbut may differ in detail to address new problems or concerns. 879*e2738c5eSjacobs 880*e2738c5eSjacobsEach version is given a distinguishing version number. If the Library 881*e2738c5eSjacobsspecifies a version number of this License which applies to it and 882*e2738c5eSjacobs"any later version", you have the option of following the terms and 883*e2738c5eSjacobsconditions either of that version or of any later version published by 884*e2738c5eSjacobsthe Free Software Foundation. If the Library does not specify a 885*e2738c5eSjacobslicense version number, you may choose any version ever published by 886*e2738c5eSjacobsthe Free Software Foundation. 887*e2738c5eSjacobs 888*e2738c5eSjacobs 14. If you wish to incorporate parts of the Library into other free 889*e2738c5eSjacobsprograms whose distribution conditions are incompatible with these, 890*e2738c5eSjacobswrite to the author to ask for permission. For software which is 891*e2738c5eSjacobscopyrighted by the Free Software Foundation, write to the Free 892*e2738c5eSjacobsSoftware Foundation; we sometimes make exceptions for this. Our 893*e2738c5eSjacobsdecision will be guided by the two goals of preserving the free status 894*e2738c5eSjacobsof all derivatives of our free software and of promoting the sharing 895*e2738c5eSjacobsand reuse of software generally. 896*e2738c5eSjacobs 897*e2738c5eSjacobs NO WARRANTY 898*e2738c5eSjacobs 899*e2738c5eSjacobs 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 900*e2738c5eSjacobsWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 901*e2738c5eSjacobsEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 902*e2738c5eSjacobsOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 903*e2738c5eSjacobsKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 904*e2738c5eSjacobsIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 905*e2738c5eSjacobsPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 906*e2738c5eSjacobsLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 907*e2738c5eSjacobsTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 908*e2738c5eSjacobs 909*e2738c5eSjacobs 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 910*e2738c5eSjacobsWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 911*e2738c5eSjacobsAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 912*e2738c5eSjacobsFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 913*e2738c5eSjacobsCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 914*e2738c5eSjacobsLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 915*e2738c5eSjacobsRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 916*e2738c5eSjacobsFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 917*e2738c5eSjacobsSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 918*e2738c5eSjacobsDAMAGES. 919*e2738c5eSjacobs 920*e2738c5eSjacobs END OF TERMS AND CONDITIONS 921*e2738c5eSjacobs 922*e2738c5eSjacobs Appendix: How to Apply These Terms to Your New Libraries 923*e2738c5eSjacobs 924*e2738c5eSjacobs If you develop a new library, and you want it to be of the greatest 925*e2738c5eSjacobspossible use to the public, we recommend making it free software that 926*e2738c5eSjacobseveryone can redistribute and change. You can do so by permitting 927*e2738c5eSjacobsredistribution under these terms (or, alternatively, under the terms of the 928*e2738c5eSjacobsordinary General Public License). 929*e2738c5eSjacobs 930*e2738c5eSjacobs To apply these terms, attach the following notices to the library. It is 931*e2738c5eSjacobssafest to attach them to the start of each source file to most effectively 932*e2738c5eSjacobsconvey the exclusion of warranty; and each file should have at least the 933*e2738c5eSjacobs"copyright" line and a pointer to where the full notice is found. 934*e2738c5eSjacobs 935*e2738c5eSjacobs <one line to give the library's name and a brief idea of what it does.> 936*e2738c5eSjacobs Copyright (C) <year> <name of author> 937*e2738c5eSjacobs 938*e2738c5eSjacobs This library is free software; you can redistribute it and/or 939*e2738c5eSjacobs modify it under the terms of the GNU Library General Public 940*e2738c5eSjacobs License as published by the Free Software Foundation; either 941*e2738c5eSjacobs version 2 of the License, or (at your option) any later version. 942*e2738c5eSjacobs 943*e2738c5eSjacobs This library is distributed in the hope that it will be useful, 944*e2738c5eSjacobs but WITHOUT ANY WARRANTY; without even the implied warranty of 945*e2738c5eSjacobs MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 946*e2738c5eSjacobs Library General Public License for more details. 947*e2738c5eSjacobs 948*e2738c5eSjacobs You should have received a copy of the GNU Library General Public 949*e2738c5eSjacobs License along with this library; if not, write to the Free 950*e2738c5eSjacobs Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 951*e2738c5eSjacobs 952*e2738c5eSjacobsAlso add information on how to contact you by electronic and paper mail. 953*e2738c5eSjacobs 954*e2738c5eSjacobsYou should also get your employer (if you work as a programmer) or your 955*e2738c5eSjacobsschool, if any, to sign a "copyright disclaimer" for the library, if 956*e2738c5eSjacobsnecessary. Here is a sample; alter the names: 957*e2738c5eSjacobs 958*e2738c5eSjacobs Yoyodyne, Inc., hereby disclaims all copyright interest in the 959*e2738c5eSjacobs library `Frob' (a library for tweaking knobs) written by James Random Hacker. 960*e2738c5eSjacobs 961*e2738c5eSjacobs <signature of Ty Coon>, 1 April 1990 962*e2738c5eSjacobs Ty Coon, President of Vice 963*e2738c5eSjacobs 964*e2738c5eSjacobsThat's all there is to it! 965