1*10491SRishi.Srivatsavai@Sun.COM GNU LESSER GENERAL PUBLIC LICENSE 2*10491SRishi.Srivatsavai@Sun.COM Version 2.1, February 1999 3*10491SRishi.Srivatsavai@Sun.COM 4*10491SRishi.Srivatsavai@Sun.COM Copyright (C) 1991, 1999 Free Software Foundation, Inc. 5*10491SRishi.Srivatsavai@Sun.COM 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 6*10491SRishi.Srivatsavai@Sun.COM Everyone is permitted to copy and distribute verbatim copies 7*10491SRishi.Srivatsavai@Sun.COM of this license document, but changing it is not allowed. 8*10491SRishi.Srivatsavai@Sun.COM 9*10491SRishi.Srivatsavai@Sun.COM[This is the first released version of the Lesser GPL. It also counts 10*10491SRishi.Srivatsavai@Sun.COM as the successor of the GNU Library Public License, version 2, hence 11*10491SRishi.Srivatsavai@Sun.COM the version number 2.1.] 12*10491SRishi.Srivatsavai@Sun.COM 13*10491SRishi.Srivatsavai@Sun.COM Preamble 14*10491SRishi.Srivatsavai@Sun.COM 15*10491SRishi.Srivatsavai@Sun.COM The licenses for most software are designed to take away your 16*10491SRishi.Srivatsavai@Sun.COMfreedom to share and change it. By contrast, the GNU General Public 17*10491SRishi.Srivatsavai@Sun.COMLicenses are intended to guarantee your freedom to share and change 18*10491SRishi.Srivatsavai@Sun.COMfree software--to make sure the software is free for all its users. 19*10491SRishi.Srivatsavai@Sun.COM 20*10491SRishi.Srivatsavai@Sun.COM This license, the Lesser General Public License, applies to some 21*10491SRishi.Srivatsavai@Sun.COMspecially designated software packages--typically libraries--of the 22*10491SRishi.Srivatsavai@Sun.COMFree Software Foundation and other authors who decide to use it. You 23*10491SRishi.Srivatsavai@Sun.COMcan use it too, but we suggest you first think carefully about whether 24*10491SRishi.Srivatsavai@Sun.COMthis license or the ordinary General Public License is the better 25*10491SRishi.Srivatsavai@Sun.COMstrategy to use in any particular case, based on the explanations below. 26*10491SRishi.Srivatsavai@Sun.COM 27*10491SRishi.Srivatsavai@Sun.COM When we speak of free software, we are referring to freedom of use, 28*10491SRishi.Srivatsavai@Sun.COMnot price. Our General Public Licenses are designed to make sure that 29*10491SRishi.Srivatsavai@Sun.COMyou have the freedom to distribute copies of free software (and charge 30*10491SRishi.Srivatsavai@Sun.COMfor this service if you wish); that you receive source code or can get 31*10491SRishi.Srivatsavai@Sun.COMit if you want it; that you can change the software and use pieces of 32*10491SRishi.Srivatsavai@Sun.COMit in new free programs; and that you are informed that you can do 33*10491SRishi.Srivatsavai@Sun.COMthese things. 34*10491SRishi.Srivatsavai@Sun.COM 35*10491SRishi.Srivatsavai@Sun.COM To protect your rights, we need to make restrictions that forbid 36*10491SRishi.Srivatsavai@Sun.COMdistributors to deny you these rights or to ask you to surrender these 37*10491SRishi.Srivatsavai@Sun.COMrights. These restrictions translate to certain responsibilities for 38*10491SRishi.Srivatsavai@Sun.COMyou if you distribute copies of the library or if you modify it. 39*10491SRishi.Srivatsavai@Sun.COM 40*10491SRishi.Srivatsavai@Sun.COM For example, if you distribute copies of the library, whether gratis 41*10491SRishi.Srivatsavai@Sun.COMor for a fee, you must give the recipients all the rights that we gave 42*10491SRishi.Srivatsavai@Sun.COMyou. You must make sure that they, too, receive or can get the source 43*10491SRishi.Srivatsavai@Sun.COMcode. If you link other code with the library, you must provide 44*10491SRishi.Srivatsavai@Sun.COMcomplete object files to the recipients, so that they can relink them 45*10491SRishi.Srivatsavai@Sun.COMwith the library after making changes to the library and recompiling 46*10491SRishi.Srivatsavai@Sun.COMit. And you must show them these terms so they know their rights. 47*10491SRishi.Srivatsavai@Sun.COM 48*10491SRishi.Srivatsavai@Sun.COM We protect your rights with a two-step method: (1) we copyright the 49*10491SRishi.Srivatsavai@Sun.COMlibrary, and (2) we offer you this license, which gives you legal 50*10491SRishi.Srivatsavai@Sun.COMpermission to copy, distribute and/or modify the library. 51*10491SRishi.Srivatsavai@Sun.COM 52*10491SRishi.Srivatsavai@Sun.COM To protect each distributor, we want to make it very clear that 53*10491SRishi.Srivatsavai@Sun.COMthere is no warranty for the free library. Also, if the library is 54*10491SRishi.Srivatsavai@Sun.COMmodified by someone else and passed on, the recipients should know 55*10491SRishi.Srivatsavai@Sun.COMthat what they have is not the original version, so that the original 56*10491SRishi.Srivatsavai@Sun.COMauthor's reputation will not be affected by problems that might be 57*10491SRishi.Srivatsavai@Sun.COMintroduced by others. 58*10491SRishi.Srivatsavai@Sun.COM 59*10491SRishi.Srivatsavai@Sun.COM Finally, software patents pose a constant threat to the existence of 60*10491SRishi.Srivatsavai@Sun.COMany free program. We wish to make sure that a company cannot 61*10491SRishi.Srivatsavai@Sun.COMeffectively restrict the users of a free program by obtaining a 62*10491SRishi.Srivatsavai@Sun.COMrestrictive license from a patent holder. Therefore, we insist that 63*10491SRishi.Srivatsavai@Sun.COMany patent license obtained for a version of the library must be 64*10491SRishi.Srivatsavai@Sun.COMconsistent with the full freedom of use specified in this license. 65*10491SRishi.Srivatsavai@Sun.COM 66*10491SRishi.Srivatsavai@Sun.COM Most GNU software, including some libraries, is covered by the 67*10491SRishi.Srivatsavai@Sun.COMordinary GNU General Public License. This license, the GNU Lesser 68*10491SRishi.Srivatsavai@Sun.COMGeneral Public License, applies to certain designated libraries, and 69*10491SRishi.Srivatsavai@Sun.COMis quite different from the ordinary General Public License. We use 70*10491SRishi.Srivatsavai@Sun.COMthis license for certain libraries in order to permit linking those 71*10491SRishi.Srivatsavai@Sun.COMlibraries into non-free programs. 72*10491SRishi.Srivatsavai@Sun.COM 73*10491SRishi.Srivatsavai@Sun.COM When a program is linked with a library, whether statically or using 74*10491SRishi.Srivatsavai@Sun.COMa shared library, the combination of the two is legally speaking a 75*10491SRishi.Srivatsavai@Sun.COMcombined work, a derivative of the original library. The ordinary 76*10491SRishi.Srivatsavai@Sun.COMGeneral Public License therefore permits such linking only if the 77*10491SRishi.Srivatsavai@Sun.COMentire combination fits its criteria of freedom. The Lesser General 78*10491SRishi.Srivatsavai@Sun.COMPublic License permits more lax criteria for linking other code with 79*10491SRishi.Srivatsavai@Sun.COMthe library. 80*10491SRishi.Srivatsavai@Sun.COM 81*10491SRishi.Srivatsavai@Sun.COM We call this license the "Lesser" General Public License because it 82*10491SRishi.Srivatsavai@Sun.COMdoes Less to protect the user's freedom than the ordinary General 83*10491SRishi.Srivatsavai@Sun.COMPublic License. It also provides other free software developers Less 84*10491SRishi.Srivatsavai@Sun.COMof an advantage over competing non-free programs. These disadvantages 85*10491SRishi.Srivatsavai@Sun.COMare the reason we use the ordinary General Public License for many 86*10491SRishi.Srivatsavai@Sun.COMlibraries. However, the Lesser license provides advantages in certain 87*10491SRishi.Srivatsavai@Sun.COMspecial circumstances. 88*10491SRishi.Srivatsavai@Sun.COM 89*10491SRishi.Srivatsavai@Sun.COM For example, on rare occasions, there may be a special need to 90*10491SRishi.Srivatsavai@Sun.COMencourage the widest possible use of a certain library, so that it becomes 91*10491SRishi.Srivatsavai@Sun.COMa de-facto standard. To achieve this, non-free programs must be 92*10491SRishi.Srivatsavai@Sun.COMallowed to use the library. A more frequent case is that a free 93*10491SRishi.Srivatsavai@Sun.COMlibrary does the same job as widely used non-free libraries. In this 94*10491SRishi.Srivatsavai@Sun.COMcase, there is little to gain by limiting the free library to free 95*10491SRishi.Srivatsavai@Sun.COMsoftware only, so we use the Lesser General Public License. 96*10491SRishi.Srivatsavai@Sun.COM 97*10491SRishi.Srivatsavai@Sun.COM In other cases, permission to use a particular library in non-free 98*10491SRishi.Srivatsavai@Sun.COMprograms enables a greater number of people to use a large body of 99*10491SRishi.Srivatsavai@Sun.COMfree software. For example, permission to use the GNU C Library in 100*10491SRishi.Srivatsavai@Sun.COMnon-free programs enables many more people to use the whole GNU 101*10491SRishi.Srivatsavai@Sun.COMoperating system, as well as its variant, the GNU/Linux operating 102*10491SRishi.Srivatsavai@Sun.COMsystem. 103*10491SRishi.Srivatsavai@Sun.COM 104*10491SRishi.Srivatsavai@Sun.COM Although the Lesser General Public License is Less protective of the 105*10491SRishi.Srivatsavai@Sun.COMusers' freedom, it does ensure that the user of a program that is 106*10491SRishi.Srivatsavai@Sun.COMlinked with the Library has the freedom and the wherewithal to run 107*10491SRishi.Srivatsavai@Sun.COMthat program using a modified version of the Library. 108*10491SRishi.Srivatsavai@Sun.COM 109*10491SRishi.Srivatsavai@Sun.COM The precise terms and conditions for copying, distribution and 110*10491SRishi.Srivatsavai@Sun.COMmodification follow. Pay close attention to the difference between a 111*10491SRishi.Srivatsavai@Sun.COM"work based on the library" and a "work that uses the library". The 112*10491SRishi.Srivatsavai@Sun.COMformer contains code derived from the library, whereas the latter must 113*10491SRishi.Srivatsavai@Sun.COMbe combined with the library in order to run. 114*10491SRishi.Srivatsavai@Sun.COM 115*10491SRishi.Srivatsavai@Sun.COM GNU LESSER GENERAL PUBLIC LICENSE 116*10491SRishi.Srivatsavai@Sun.COM TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 117*10491SRishi.Srivatsavai@Sun.COM 118*10491SRishi.Srivatsavai@Sun.COM 0. This License Agreement applies to any software library or other 119*10491SRishi.Srivatsavai@Sun.COMprogram which contains a notice placed by the copyright holder or 120*10491SRishi.Srivatsavai@Sun.COMother authorized party saying it may be distributed under the terms of 121*10491SRishi.Srivatsavai@Sun.COMthis Lesser General Public License (also called "this License"). 122*10491SRishi.Srivatsavai@Sun.COMEach licensee is addressed as "you". 123*10491SRishi.Srivatsavai@Sun.COM 124*10491SRishi.Srivatsavai@Sun.COM A "library" means a collection of software functions and/or data 125*10491SRishi.Srivatsavai@Sun.COMprepared so as to be conveniently linked with application programs 126*10491SRishi.Srivatsavai@Sun.COM(which use some of those functions and data) to form executables. 127*10491SRishi.Srivatsavai@Sun.COM 128*10491SRishi.Srivatsavai@Sun.COM The "Library", below, refers to any such software library or work 129*10491SRishi.Srivatsavai@Sun.COMwhich has been distributed under these terms. A "work based on the 130*10491SRishi.Srivatsavai@Sun.COMLibrary" means either the Library or any derivative work under 131*10491SRishi.Srivatsavai@Sun.COMcopyright law: that is to say, a work containing the Library or a 132*10491SRishi.Srivatsavai@Sun.COMportion of it, either verbatim or with modifications and/or translated 133*10491SRishi.Srivatsavai@Sun.COMstraightforwardly into another language. (Hereinafter, translation is 134*10491SRishi.Srivatsavai@Sun.COMincluded without limitation in the term "modification".) 135*10491SRishi.Srivatsavai@Sun.COM 136*10491SRishi.Srivatsavai@Sun.COM "Source code" for a work means the preferred form of the work for 137*10491SRishi.Srivatsavai@Sun.COMmaking modifications to it. For a library, complete source code means 138*10491SRishi.Srivatsavai@Sun.COMall the source code for all modules it contains, plus any associated 139*10491SRishi.Srivatsavai@Sun.COMinterface definition files, plus the scripts used to control compilation 140*10491SRishi.Srivatsavai@Sun.COMand installation of the library. 141*10491SRishi.Srivatsavai@Sun.COM 142*10491SRishi.Srivatsavai@Sun.COM Activities other than copying, distribution and modification are not 143*10491SRishi.Srivatsavai@Sun.COMcovered by this License; they are outside its scope. The act of 144*10491SRishi.Srivatsavai@Sun.COMrunning a program using the Library is not restricted, and output from 145*10491SRishi.Srivatsavai@Sun.COMsuch a program is covered only if its contents constitute a work based 146*10491SRishi.Srivatsavai@Sun.COMon the Library (independent of the use of the Library in a tool for 147*10491SRishi.Srivatsavai@Sun.COMwriting it). Whether that is true depends on what the Library does 148*10491SRishi.Srivatsavai@Sun.COMand what the program that uses the Library does. 149*10491SRishi.Srivatsavai@Sun.COM 150*10491SRishi.Srivatsavai@Sun.COM 1. You may copy and distribute verbatim copies of the Library's 151*10491SRishi.Srivatsavai@Sun.COMcomplete source code as you receive it, in any medium, provided that 152*10491SRishi.Srivatsavai@Sun.COMyou conspicuously and appropriately publish on each copy an 153*10491SRishi.Srivatsavai@Sun.COMappropriate copyright notice and disclaimer of warranty; keep intact 154*10491SRishi.Srivatsavai@Sun.COMall the notices that refer to this License and to the absence of any 155*10491SRishi.Srivatsavai@Sun.COMwarranty; and distribute a copy of this License along with the 156*10491SRishi.Srivatsavai@Sun.COMLibrary. 157*10491SRishi.Srivatsavai@Sun.COM 158*10491SRishi.Srivatsavai@Sun.COM You may charge a fee for the physical act of transferring a copy, 159*10491SRishi.Srivatsavai@Sun.COMand you may at your option offer warranty protection in exchange for a 160*10491SRishi.Srivatsavai@Sun.COMfee. 161*10491SRishi.Srivatsavai@Sun.COM 162*10491SRishi.Srivatsavai@Sun.COM 2. You may modify your copy or copies of the Library or any portion 163*10491SRishi.Srivatsavai@Sun.COMof it, thus forming a work based on the Library, and copy and 164*10491SRishi.Srivatsavai@Sun.COMdistribute such modifications or work under the terms of Section 1 165*10491SRishi.Srivatsavai@Sun.COMabove, provided that you also meet all of these conditions: 166*10491SRishi.Srivatsavai@Sun.COM 167*10491SRishi.Srivatsavai@Sun.COM a) The modified work must itself be a software library. 168*10491SRishi.Srivatsavai@Sun.COM 169*10491SRishi.Srivatsavai@Sun.COM b) You must cause the files modified to carry prominent notices 170*10491SRishi.Srivatsavai@Sun.COM stating that you changed the files and the date of any change. 171*10491SRishi.Srivatsavai@Sun.COM 172*10491SRishi.Srivatsavai@Sun.COM c) You must cause the whole of the work to be licensed at no 173*10491SRishi.Srivatsavai@Sun.COM charge to all third parties under the terms of this License. 174*10491SRishi.Srivatsavai@Sun.COM 175*10491SRishi.Srivatsavai@Sun.COM d) If a facility in the modified Library refers to a function or a 176*10491SRishi.Srivatsavai@Sun.COM table of data to be supplied by an application program that uses 177*10491SRishi.Srivatsavai@Sun.COM the facility, other than as an argument passed when the facility 178*10491SRishi.Srivatsavai@Sun.COM is invoked, then you must make a good faith effort to ensure that, 179*10491SRishi.Srivatsavai@Sun.COM in the event an application does not supply such function or 180*10491SRishi.Srivatsavai@Sun.COM table, the facility still operates, and performs whatever part of 181*10491SRishi.Srivatsavai@Sun.COM its purpose remains meaningful. 182*10491SRishi.Srivatsavai@Sun.COM 183*10491SRishi.Srivatsavai@Sun.COM (For example, a function in a library to compute square roots has 184*10491SRishi.Srivatsavai@Sun.COM a purpose that is entirely well-defined independent of the 185*10491SRishi.Srivatsavai@Sun.COM application. Therefore, Subsection 2d requires that any 186*10491SRishi.Srivatsavai@Sun.COM application-supplied function or table used by this function must 187*10491SRishi.Srivatsavai@Sun.COM be optional: if the application does not supply it, the square 188*10491SRishi.Srivatsavai@Sun.COM root function must still compute square roots.) 189*10491SRishi.Srivatsavai@Sun.COM 190*10491SRishi.Srivatsavai@Sun.COMThese requirements apply to the modified work as a whole. If 191*10491SRishi.Srivatsavai@Sun.COMidentifiable sections of that work are not derived from the Library, 192*10491SRishi.Srivatsavai@Sun.COMand can be reasonably considered independent and separate works in 193*10491SRishi.Srivatsavai@Sun.COMthemselves, then this License, and its terms, do not apply to those 194*10491SRishi.Srivatsavai@Sun.COMsections when you distribute them as separate works. But when you 195*10491SRishi.Srivatsavai@Sun.COMdistribute the same sections as part of a whole which is a work based 196*10491SRishi.Srivatsavai@Sun.COMon the Library, the distribution of the whole must be on the terms of 197*10491SRishi.Srivatsavai@Sun.COMthis License, whose permissions for other licensees extend to the 198*10491SRishi.Srivatsavai@Sun.COMentire whole, and thus to each and every part regardless of who wrote 199*10491SRishi.Srivatsavai@Sun.COMit. 200*10491SRishi.Srivatsavai@Sun.COM 201*10491SRishi.Srivatsavai@Sun.COMThus, it is not the intent of this section to claim rights or contest 202*10491SRishi.Srivatsavai@Sun.COMyour rights to work written entirely by you; rather, the intent is to 203*10491SRishi.Srivatsavai@Sun.COMexercise the right to control the distribution of derivative or 204*10491SRishi.Srivatsavai@Sun.COMcollective works based on the Library. 205*10491SRishi.Srivatsavai@Sun.COM 206*10491SRishi.Srivatsavai@Sun.COMIn addition, mere aggregation of another work not based on the Library 207*10491SRishi.Srivatsavai@Sun.COMwith the Library (or with a work based on the Library) on a volume of 208*10491SRishi.Srivatsavai@Sun.COMa storage or distribution medium does not bring the other work under 209*10491SRishi.Srivatsavai@Sun.COMthe scope of this License. 210*10491SRishi.Srivatsavai@Sun.COM 211*10491SRishi.Srivatsavai@Sun.COM 3. You may opt to apply the terms of the ordinary GNU General Public 212*10491SRishi.Srivatsavai@Sun.COMLicense instead of this License to a given copy of the Library. To do 213*10491SRishi.Srivatsavai@Sun.COMthis, you must alter all the notices that refer to this License, so 214*10491SRishi.Srivatsavai@Sun.COMthat they refer to the ordinary GNU General Public License, version 2, 215*10491SRishi.Srivatsavai@Sun.COMinstead of to this License. (If a newer version than version 2 of the 216*10491SRishi.Srivatsavai@Sun.COMordinary GNU General Public License has appeared, then you can specify 217*10491SRishi.Srivatsavai@Sun.COMthat version instead if you wish.) Do not make any other change in 218*10491SRishi.Srivatsavai@Sun.COMthese notices. 219*10491SRishi.Srivatsavai@Sun.COM 220*10491SRishi.Srivatsavai@Sun.COM Once this change is made in a given copy, it is irreversible for 221*10491SRishi.Srivatsavai@Sun.COMthat copy, so the ordinary GNU General Public License applies to all 222*10491SRishi.Srivatsavai@Sun.COMsubsequent copies and derivative works made from that copy. 223*10491SRishi.Srivatsavai@Sun.COM 224*10491SRishi.Srivatsavai@Sun.COM This option is useful when you wish to copy part of the code of 225*10491SRishi.Srivatsavai@Sun.COMthe Library into a program that is not a library. 226*10491SRishi.Srivatsavai@Sun.COM 227*10491SRishi.Srivatsavai@Sun.COM 4. You may copy and distribute the Library (or a portion or 228*10491SRishi.Srivatsavai@Sun.COMderivative of it, under Section 2) in object code or executable form 229*10491SRishi.Srivatsavai@Sun.COMunder the terms of Sections 1 and 2 above provided that you accompany 230*10491SRishi.Srivatsavai@Sun.COMit with the complete corresponding machine-readable source code, which 231*10491SRishi.Srivatsavai@Sun.COMmust be distributed under the terms of Sections 1 and 2 above on a 232*10491SRishi.Srivatsavai@Sun.COMmedium customarily used for software interchange. 233*10491SRishi.Srivatsavai@Sun.COM 234*10491SRishi.Srivatsavai@Sun.COM If distribution of object code is made by offering access to copy 235*10491SRishi.Srivatsavai@Sun.COMfrom a designated place, then offering equivalent access to copy the 236*10491SRishi.Srivatsavai@Sun.COMsource code from the same place satisfies the requirement to 237*10491SRishi.Srivatsavai@Sun.COMdistribute the source code, even though third parties are not 238*10491SRishi.Srivatsavai@Sun.COMcompelled to copy the source along with the object code. 239*10491SRishi.Srivatsavai@Sun.COM 240*10491SRishi.Srivatsavai@Sun.COM 5. A program that contains no derivative of any portion of the 241*10491SRishi.Srivatsavai@Sun.COMLibrary, but is designed to work with the Library by being compiled or 242*10491SRishi.Srivatsavai@Sun.COMlinked with it, is called a "work that uses the Library". Such a 243*10491SRishi.Srivatsavai@Sun.COMwork, in isolation, is not a derivative work of the Library, and 244*10491SRishi.Srivatsavai@Sun.COMtherefore falls outside the scope of this License. 245*10491SRishi.Srivatsavai@Sun.COM 246*10491SRishi.Srivatsavai@Sun.COM However, linking a "work that uses the Library" with the Library 247*10491SRishi.Srivatsavai@Sun.COMcreates an executable that is a derivative of the Library (because it 248*10491SRishi.Srivatsavai@Sun.COMcontains portions of the Library), rather than a "work that uses the 249*10491SRishi.Srivatsavai@Sun.COMlibrary". The executable is therefore covered by this License. 250*10491SRishi.Srivatsavai@Sun.COMSection 6 states terms for distribution of such executables. 251*10491SRishi.Srivatsavai@Sun.COM 252*10491SRishi.Srivatsavai@Sun.COM When a "work that uses the Library" uses material from a header file 253*10491SRishi.Srivatsavai@Sun.COMthat is part of the Library, the object code for the work may be a 254*10491SRishi.Srivatsavai@Sun.COMderivative work of the Library even though the source code is not. 255*10491SRishi.Srivatsavai@Sun.COMWhether this is true is especially significant if the work can be 256*10491SRishi.Srivatsavai@Sun.COMlinked without the Library, or if the work is itself a library. The 257*10491SRishi.Srivatsavai@Sun.COMthreshold for this to be true is not precisely defined by law. 258*10491SRishi.Srivatsavai@Sun.COM 259*10491SRishi.Srivatsavai@Sun.COM If such an object file uses only numerical parameters, data 260*10491SRishi.Srivatsavai@Sun.COMstructure layouts and accessors, and small macros and small inline 261*10491SRishi.Srivatsavai@Sun.COMfunctions (ten lines or less in length), then the use of the object 262*10491SRishi.Srivatsavai@Sun.COMfile is unrestricted, regardless of whether it is legally a derivative 263*10491SRishi.Srivatsavai@Sun.COMwork. (Executables containing this object code plus portions of the 264*10491SRishi.Srivatsavai@Sun.COMLibrary will still fall under Section 6.) 265*10491SRishi.Srivatsavai@Sun.COM 266*10491SRishi.Srivatsavai@Sun.COM Otherwise, if the work is a derivative of the Library, you may 267*10491SRishi.Srivatsavai@Sun.COMdistribute the object code for the work under the terms of Section 6. 268*10491SRishi.Srivatsavai@Sun.COMAny executables containing that work also fall under Section 6, 269*10491SRishi.Srivatsavai@Sun.COMwhether or not they are linked directly with the Library itself. 270*10491SRishi.Srivatsavai@Sun.COM 271*10491SRishi.Srivatsavai@Sun.COM 6. As an exception to the Sections above, you may also combine or 272*10491SRishi.Srivatsavai@Sun.COMlink a "work that uses the Library" with the Library to produce a 273*10491SRishi.Srivatsavai@Sun.COMwork containing portions of the Library, and distribute that work 274*10491SRishi.Srivatsavai@Sun.COMunder terms of your choice, provided that the terms permit 275*10491SRishi.Srivatsavai@Sun.COMmodification of the work for the customer's own use and reverse 276*10491SRishi.Srivatsavai@Sun.COMengineering for debugging such modifications. 277*10491SRishi.Srivatsavai@Sun.COM 278*10491SRishi.Srivatsavai@Sun.COM You must give prominent notice with each copy of the work that the 279*10491SRishi.Srivatsavai@Sun.COMLibrary is used in it and that the Library and its use are covered by 280*10491SRishi.Srivatsavai@Sun.COMthis License. You must supply a copy of this License. If the work 281*10491SRishi.Srivatsavai@Sun.COMduring execution displays copyright notices, you must include the 282*10491SRishi.Srivatsavai@Sun.COMcopyright notice for the Library among them, as well as a reference 283*10491SRishi.Srivatsavai@Sun.COMdirecting the user to the copy of this License. Also, you must do one 284*10491SRishi.Srivatsavai@Sun.COMof these things: 285*10491SRishi.Srivatsavai@Sun.COM 286*10491SRishi.Srivatsavai@Sun.COM a) Accompany the work with the complete corresponding 287*10491SRishi.Srivatsavai@Sun.COM machine-readable source code for the Library including whatever 288*10491SRishi.Srivatsavai@Sun.COM changes were used in the work (which must be distributed under 289*10491SRishi.Srivatsavai@Sun.COM Sections 1 and 2 above); and, if the work is an executable linked 290*10491SRishi.Srivatsavai@Sun.COM with the Library, with the complete machine-readable "work that 291*10491SRishi.Srivatsavai@Sun.COM uses the Library", as object code and/or source code, so that the 292*10491SRishi.Srivatsavai@Sun.COM user can modify the Library and then relink to produce a modified 293*10491SRishi.Srivatsavai@Sun.COM executable containing the modified Library. (It is understood 294*10491SRishi.Srivatsavai@Sun.COM that the user who changes the contents of definitions files in the 295*10491SRishi.Srivatsavai@Sun.COM Library will not necessarily be able to recompile the application 296*10491SRishi.Srivatsavai@Sun.COM to use the modified definitions.) 297*10491SRishi.Srivatsavai@Sun.COM 298*10491SRishi.Srivatsavai@Sun.COM b) Use a suitable shared library mechanism for linking with the 299*10491SRishi.Srivatsavai@Sun.COM Library. A suitable mechanism is one that (1) uses at run time a 300*10491SRishi.Srivatsavai@Sun.COM copy of the library already present on the user's computer system, 301*10491SRishi.Srivatsavai@Sun.COM rather than copying library functions into the executable, and (2) 302*10491SRishi.Srivatsavai@Sun.COM will operate properly with a modified version of the library, if 303*10491SRishi.Srivatsavai@Sun.COM the user installs one, as long as the modified version is 304*10491SRishi.Srivatsavai@Sun.COM interface-compatible with the version that the work was made with. 305*10491SRishi.Srivatsavai@Sun.COM 306*10491SRishi.Srivatsavai@Sun.COM c) Accompany the work with a written offer, valid for at 307*10491SRishi.Srivatsavai@Sun.COM least three years, to give the same user the materials 308*10491SRishi.Srivatsavai@Sun.COM specified in Subsection 6a, above, for a charge no more 309*10491SRishi.Srivatsavai@Sun.COM than the cost of performing this distribution. 310*10491SRishi.Srivatsavai@Sun.COM 311*10491SRishi.Srivatsavai@Sun.COM d) If distribution of the work is made by offering access to copy 312*10491SRishi.Srivatsavai@Sun.COM from a designated place, offer equivalent access to copy the above 313*10491SRishi.Srivatsavai@Sun.COM specified materials from the same place. 314*10491SRishi.Srivatsavai@Sun.COM 315*10491SRishi.Srivatsavai@Sun.COM e) Verify that the user has already received a copy of these 316*10491SRishi.Srivatsavai@Sun.COM materials or that you have already sent this user a copy. 317*10491SRishi.Srivatsavai@Sun.COM 318*10491SRishi.Srivatsavai@Sun.COM For an executable, the required form of the "work that uses the 319*10491SRishi.Srivatsavai@Sun.COMLibrary" must include any data and utility programs needed for 320*10491SRishi.Srivatsavai@Sun.COMreproducing the executable from it. However, as a special exception, 321*10491SRishi.Srivatsavai@Sun.COMthe materials to be distributed need not include anything that is 322*10491SRishi.Srivatsavai@Sun.COMnormally distributed (in either source or binary form) with the major 323*10491SRishi.Srivatsavai@Sun.COMcomponents (compiler, kernel, and so on) of the operating system on 324*10491SRishi.Srivatsavai@Sun.COMwhich the executable runs, unless that component itself accompanies 325*10491SRishi.Srivatsavai@Sun.COMthe executable. 326*10491SRishi.Srivatsavai@Sun.COM 327*10491SRishi.Srivatsavai@Sun.COM It may happen that this requirement contradicts the license 328*10491SRishi.Srivatsavai@Sun.COMrestrictions of other proprietary libraries that do not normally 329*10491SRishi.Srivatsavai@Sun.COMaccompany the operating system. Such a contradiction means you cannot 330*10491SRishi.Srivatsavai@Sun.COMuse both them and the Library together in an executable that you 331*10491SRishi.Srivatsavai@Sun.COMdistribute. 332*10491SRishi.Srivatsavai@Sun.COM 333*10491SRishi.Srivatsavai@Sun.COM 7. You may place library facilities that are a work based on the 334*10491SRishi.Srivatsavai@Sun.COMLibrary side-by-side in a single library together with other library 335*10491SRishi.Srivatsavai@Sun.COMfacilities not covered by this License, and distribute such a combined 336*10491SRishi.Srivatsavai@Sun.COMlibrary, provided that the separate distribution of the work based on 337*10491SRishi.Srivatsavai@Sun.COMthe Library and of the other library facilities is otherwise 338*10491SRishi.Srivatsavai@Sun.COMpermitted, and provided that you do these two things: 339*10491SRishi.Srivatsavai@Sun.COM 340*10491SRishi.Srivatsavai@Sun.COM a) Accompany the combined library with a copy of the same work 341*10491SRishi.Srivatsavai@Sun.COM based on the Library, uncombined with any other library 342*10491SRishi.Srivatsavai@Sun.COM facilities. This must be distributed under the terms of the 343*10491SRishi.Srivatsavai@Sun.COM Sections above. 344*10491SRishi.Srivatsavai@Sun.COM 345*10491SRishi.Srivatsavai@Sun.COM b) Give prominent notice with the combined library of the fact 346*10491SRishi.Srivatsavai@Sun.COM that part of it is a work based on the Library, and explaining 347*10491SRishi.Srivatsavai@Sun.COM where to find the accompanying uncombined form of the same work. 348*10491SRishi.Srivatsavai@Sun.COM 349*10491SRishi.Srivatsavai@Sun.COM 8. You may not copy, modify, sublicense, link with, or distribute 350*10491SRishi.Srivatsavai@Sun.COMthe Library except as expressly provided under this License. Any 351*10491SRishi.Srivatsavai@Sun.COMattempt otherwise to copy, modify, sublicense, link with, or 352*10491SRishi.Srivatsavai@Sun.COMdistribute the Library is void, and will automatically terminate your 353*10491SRishi.Srivatsavai@Sun.COMrights under this License. However, parties who have received copies, 354*10491SRishi.Srivatsavai@Sun.COMor rights, from you under this License will not have their licenses 355*10491SRishi.Srivatsavai@Sun.COMterminated so long as such parties remain in full compliance. 356*10491SRishi.Srivatsavai@Sun.COM 357*10491SRishi.Srivatsavai@Sun.COM 9. You are not required to accept this License, since you have not 358*10491SRishi.Srivatsavai@Sun.COMsigned it. However, nothing else grants you permission to modify or 359*10491SRishi.Srivatsavai@Sun.COMdistribute the Library or its derivative works. These actions are 360*10491SRishi.Srivatsavai@Sun.COMprohibited by law if you do not accept this License. Therefore, by 361*10491SRishi.Srivatsavai@Sun.COMmodifying or distributing the Library (or any work based on the 362*10491SRishi.Srivatsavai@Sun.COMLibrary), you indicate your acceptance of this License to do so, and 363*10491SRishi.Srivatsavai@Sun.COMall its terms and conditions for copying, distributing or modifying 364*10491SRishi.Srivatsavai@Sun.COMthe Library or works based on it. 365*10491SRishi.Srivatsavai@Sun.COM 366*10491SRishi.Srivatsavai@Sun.COM 10. Each time you redistribute the Library (or any work based on the 367*10491SRishi.Srivatsavai@Sun.COMLibrary), the recipient automatically receives a license from the 368*10491SRishi.Srivatsavai@Sun.COMoriginal licensor to copy, distribute, link with or modify the Library 369*10491SRishi.Srivatsavai@Sun.COMsubject to these terms and conditions. You may not impose any further 370*10491SRishi.Srivatsavai@Sun.COMrestrictions on the recipients' exercise of the rights granted herein. 371*10491SRishi.Srivatsavai@Sun.COMYou are not responsible for enforcing compliance by third parties with 372*10491SRishi.Srivatsavai@Sun.COMthis License. 373*10491SRishi.Srivatsavai@Sun.COM 374*10491SRishi.Srivatsavai@Sun.COM 11. If, as a consequence of a court judgment or allegation of patent 375*10491SRishi.Srivatsavai@Sun.COMinfringement or for any other reason (not limited to patent issues), 376*10491SRishi.Srivatsavai@Sun.COMconditions are imposed on you (whether by court order, agreement or 377*10491SRishi.Srivatsavai@Sun.COMotherwise) that contradict the conditions of this License, they do not 378*10491SRishi.Srivatsavai@Sun.COMexcuse you from the conditions of this License. If you cannot 379*10491SRishi.Srivatsavai@Sun.COMdistribute so as to satisfy simultaneously your obligations under this 380*10491SRishi.Srivatsavai@Sun.COMLicense and any other pertinent obligations, then as a consequence you 381*10491SRishi.Srivatsavai@Sun.COMmay not distribute the Library at all. For example, if a patent 382*10491SRishi.Srivatsavai@Sun.COMlicense would not permit royalty-free redistribution of the Library by 383*10491SRishi.Srivatsavai@Sun.COMall those who receive copies directly or indirectly through you, then 384*10491SRishi.Srivatsavai@Sun.COMthe only way you could satisfy both it and this License would be to 385*10491SRishi.Srivatsavai@Sun.COMrefrain entirely from distribution of the Library. 386*10491SRishi.Srivatsavai@Sun.COM 387*10491SRishi.Srivatsavai@Sun.COMIf any portion of this section is held invalid or unenforceable under any 388*10491SRishi.Srivatsavai@Sun.COMparticular circumstance, the balance of the section is intended to apply, 389*10491SRishi.Srivatsavai@Sun.COMand the section as a whole is intended to apply in other circumstances. 390*10491SRishi.Srivatsavai@Sun.COM 391*10491SRishi.Srivatsavai@Sun.COMIt is not the purpose of this section to induce you to infringe any 392*10491SRishi.Srivatsavai@Sun.COMpatents or other property right claims or to contest validity of any 393*10491SRishi.Srivatsavai@Sun.COMsuch claims; this section has the sole purpose of protecting the 394*10491SRishi.Srivatsavai@Sun.COMintegrity of the free software distribution system which is 395*10491SRishi.Srivatsavai@Sun.COMimplemented by public license practices. Many people have made 396*10491SRishi.Srivatsavai@Sun.COMgenerous contributions to the wide range of software distributed 397*10491SRishi.Srivatsavai@Sun.COMthrough that system in reliance on consistent application of that 398*10491SRishi.Srivatsavai@Sun.COMsystem; it is up to the author/donor to decide if he or she is willing 399*10491SRishi.Srivatsavai@Sun.COMto distribute software through any other system and a licensee cannot 400*10491SRishi.Srivatsavai@Sun.COMimpose that choice. 401*10491SRishi.Srivatsavai@Sun.COM 402*10491SRishi.Srivatsavai@Sun.COMThis section is intended to make thoroughly clear what is believed to 403*10491SRishi.Srivatsavai@Sun.COMbe a consequence of the rest of this License. 404*10491SRishi.Srivatsavai@Sun.COM 405*10491SRishi.Srivatsavai@Sun.COM 12. If the distribution and/or use of the Library is restricted in 406*10491SRishi.Srivatsavai@Sun.COMcertain countries either by patents or by copyrighted interfaces, the 407*10491SRishi.Srivatsavai@Sun.COMoriginal copyright holder who places the Library under this License may add 408*10491SRishi.Srivatsavai@Sun.COMan explicit geographical distribution limitation excluding those countries, 409*10491SRishi.Srivatsavai@Sun.COMso that distribution is permitted only in or among countries not thus 410*10491SRishi.Srivatsavai@Sun.COMexcluded. In such case, this License incorporates the limitation as if 411*10491SRishi.Srivatsavai@Sun.COMwritten in the body of this License. 412*10491SRishi.Srivatsavai@Sun.COM 413*10491SRishi.Srivatsavai@Sun.COM 13. The Free Software Foundation may publish revised and/or new 414*10491SRishi.Srivatsavai@Sun.COMversions of the Lesser General Public License from time to time. 415*10491SRishi.Srivatsavai@Sun.COMSuch new versions will be similar in spirit to the present version, 416*10491SRishi.Srivatsavai@Sun.COMbut may differ in detail to address new problems or concerns. 417*10491SRishi.Srivatsavai@Sun.COM 418*10491SRishi.Srivatsavai@Sun.COMEach version is given a distinguishing version number. If the Library 419*10491SRishi.Srivatsavai@Sun.COMspecifies a version number of this License which applies to it and 420*10491SRishi.Srivatsavai@Sun.COM"any later version", you have the option of following the terms and 421*10491SRishi.Srivatsavai@Sun.COMconditions either of that version or of any later version published by 422*10491SRishi.Srivatsavai@Sun.COMthe Free Software Foundation. If the Library does not specify a 423*10491SRishi.Srivatsavai@Sun.COMlicense version number, you may choose any version ever published by 424*10491SRishi.Srivatsavai@Sun.COMthe Free Software Foundation. 425*10491SRishi.Srivatsavai@Sun.COM 426*10491SRishi.Srivatsavai@Sun.COM 14. If you wish to incorporate parts of the Library into other free 427*10491SRishi.Srivatsavai@Sun.COMprograms whose distribution conditions are incompatible with these, 428*10491SRishi.Srivatsavai@Sun.COMwrite to the author to ask for permission. For software which is 429*10491SRishi.Srivatsavai@Sun.COMcopyrighted by the Free Software Foundation, write to the Free 430*10491SRishi.Srivatsavai@Sun.COMSoftware Foundation; we sometimes make exceptions for this. Our 431*10491SRishi.Srivatsavai@Sun.COMdecision will be guided by the two goals of preserving the free status 432*10491SRishi.Srivatsavai@Sun.COMof all derivatives of our free software and of promoting the sharing 433*10491SRishi.Srivatsavai@Sun.COMand reuse of software generally. 434*10491SRishi.Srivatsavai@Sun.COM 435*10491SRishi.Srivatsavai@Sun.COM NO WARRANTY 436*10491SRishi.Srivatsavai@Sun.COM 437*10491SRishi.Srivatsavai@Sun.COM 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 438*10491SRishi.Srivatsavai@Sun.COMWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 439*10491SRishi.Srivatsavai@Sun.COMEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 440*10491SRishi.Srivatsavai@Sun.COMOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 441*10491SRishi.Srivatsavai@Sun.COMKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 442*10491SRishi.Srivatsavai@Sun.COMIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 443*10491SRishi.Srivatsavai@Sun.COMPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 444*10491SRishi.Srivatsavai@Sun.COMLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 445*10491SRishi.Srivatsavai@Sun.COMTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 446*10491SRishi.Srivatsavai@Sun.COM 447*10491SRishi.Srivatsavai@Sun.COM 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 448*10491SRishi.Srivatsavai@Sun.COMWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 449*10491SRishi.Srivatsavai@Sun.COMAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 450*10491SRishi.Srivatsavai@Sun.COMFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 451*10491SRishi.Srivatsavai@Sun.COMCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 452*10491SRishi.Srivatsavai@Sun.COMLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 453*10491SRishi.Srivatsavai@Sun.COMRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 454*10491SRishi.Srivatsavai@Sun.COMFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 455*10491SRishi.Srivatsavai@Sun.COMSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 456*10491SRishi.Srivatsavai@Sun.COMDAMAGES. 457*10491SRishi.Srivatsavai@Sun.COM 458*10491SRishi.Srivatsavai@Sun.COM END OF TERMS AND CONDITIONS 459*10491SRishi.Srivatsavai@Sun.COM 460*10491SRishi.Srivatsavai@Sun.COM How to Apply These Terms to Your New Libraries 461*10491SRishi.Srivatsavai@Sun.COM 462*10491SRishi.Srivatsavai@Sun.COM If you develop a new library, and you want it to be of the greatest 463*10491SRishi.Srivatsavai@Sun.COMpossible use to the public, we recommend making it free software that 464*10491SRishi.Srivatsavai@Sun.COMeveryone can redistribute and change. You can do so by permitting 465*10491SRishi.Srivatsavai@Sun.COMredistribution under these terms (or, alternatively, under the terms of the 466*10491SRishi.Srivatsavai@Sun.COMordinary General Public License). 467*10491SRishi.Srivatsavai@Sun.COM 468*10491SRishi.Srivatsavai@Sun.COM To apply these terms, attach the following notices to the library. It is 469*10491SRishi.Srivatsavai@Sun.COMsafest to attach them to the start of each source file to most effectively 470*10491SRishi.Srivatsavai@Sun.COMconvey the exclusion of warranty; and each file should have at least the 471*10491SRishi.Srivatsavai@Sun.COM"copyright" line and a pointer to where the full notice is found. 472*10491SRishi.Srivatsavai@Sun.COM 473*10491SRishi.Srivatsavai@Sun.COM <one line to give the library's name and a brief idea of what it does.> 474*10491SRishi.Srivatsavai@Sun.COM Copyright (C) <year> <name of author> 475*10491SRishi.Srivatsavai@Sun.COM 476*10491SRishi.Srivatsavai@Sun.COM This library is free software; you can redistribute it and/or 477*10491SRishi.Srivatsavai@Sun.COM modify it under the terms of the GNU Lesser General Public 478*10491SRishi.Srivatsavai@Sun.COM License as published by the Free Software Foundation; either 479*10491SRishi.Srivatsavai@Sun.COM version 2 of the License, or (at your option) any later version. 480*10491SRishi.Srivatsavai@Sun.COM 481*10491SRishi.Srivatsavai@Sun.COM This library is distributed in the hope that it will be useful, 482*10491SRishi.Srivatsavai@Sun.COM but WITHOUT ANY WARRANTY; without even the implied warranty of 483*10491SRishi.Srivatsavai@Sun.COM MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 484*10491SRishi.Srivatsavai@Sun.COM Lesser General Public License for more details. 485*10491SRishi.Srivatsavai@Sun.COM 486*10491SRishi.Srivatsavai@Sun.COM You should have received a copy of the GNU Lesser General Public 487*10491SRishi.Srivatsavai@Sun.COM License along with this library; if not, write to the Free Software 488*10491SRishi.Srivatsavai@Sun.COM Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 489*10491SRishi.Srivatsavai@Sun.COM 490*10491SRishi.Srivatsavai@Sun.COMAlso add information on how to contact you by electronic and paper mail. 491*10491SRishi.Srivatsavai@Sun.COM 492*10491SRishi.Srivatsavai@Sun.COMYou should also get your employer (if you work as a programmer) or your 493*10491SRishi.Srivatsavai@Sun.COMschool, if any, to sign a "copyright disclaimer" for the library, if 494*10491SRishi.Srivatsavai@Sun.COMnecessary. Here is a sample; alter the names: 495*10491SRishi.Srivatsavai@Sun.COM 496*10491SRishi.Srivatsavai@Sun.COM Yoyodyne, Inc., hereby disclaims all copyright interest in the 497*10491SRishi.Srivatsavai@Sun.COM library `Frob' (a library for tweaking knobs) written by James Random Hacker. 498*10491SRishi.Srivatsavai@Sun.COM 499*10491SRishi.Srivatsavai@Sun.COM <signature of Ty Coon>, 1 April 1990 500*10491SRishi.Srivatsavai@Sun.COM Ty Coon, President of Vice 501*10491SRishi.Srivatsavai@Sun.COM 502*10491SRishi.Srivatsavai@Sun.COMThat's all there is to it! 503*10491SRishi.Srivatsavai@Sun.COM 504*10491SRishi.Srivatsavai@Sun.COM 505