1b5975d6bSopenharmony_ci GNU LESSER GENERAL PUBLIC LICENSE 2b5975d6bSopenharmony_ci Version 2.1, February 1999 3b5975d6bSopenharmony_ci 4b5975d6bSopenharmony_ci Copyright (C) 1991, 1999 Free Software Foundation, Inc. 5b5975d6bSopenharmony_ci 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6b5975d6bSopenharmony_ci Everyone is permitted to copy and distribute verbatim copies 7b5975d6bSopenharmony_ci of this license document, but changing it is not allowed. 8b5975d6bSopenharmony_ci 9b5975d6bSopenharmony_ci[This is the first released version of the Lesser GPL. It also counts 10b5975d6bSopenharmony_ci as the successor of the GNU Library Public License, version 2, hence 11b5975d6bSopenharmony_ci the version number 2.1.] 12b5975d6bSopenharmony_ci 13b5975d6bSopenharmony_ci Preamble 14b5975d6bSopenharmony_ci 15b5975d6bSopenharmony_ci The licenses for most software are designed to take away your 16b5975d6bSopenharmony_cifreedom to share and change it. By contrast, the GNU General Public 17b5975d6bSopenharmony_ciLicenses are intended to guarantee your freedom to share and change 18b5975d6bSopenharmony_cifree software--to make sure the software is free for all its users. 19b5975d6bSopenharmony_ci 20b5975d6bSopenharmony_ci This license, the Lesser General Public License, applies to some 21b5975d6bSopenharmony_cispecially designated software packages--typically libraries--of the 22b5975d6bSopenharmony_ciFree Software Foundation and other authors who decide to use it. You 23b5975d6bSopenharmony_cican use it too, but we suggest you first think carefully about whether 24b5975d6bSopenharmony_cithis license or the ordinary General Public License is the better 25b5975d6bSopenharmony_cistrategy to use in any particular case, based on the explanations below. 26b5975d6bSopenharmony_ci 27b5975d6bSopenharmony_ci When we speak of free software, we are referring to freedom of use, 28b5975d6bSopenharmony_cinot price. Our General Public Licenses are designed to make sure that 29b5975d6bSopenharmony_ciyou have the freedom to distribute copies of free software (and charge 30b5975d6bSopenharmony_cifor this service if you wish); that you receive source code or can get 31b5975d6bSopenharmony_ciit if you want it; that you can change the software and use pieces of 32b5975d6bSopenharmony_ciit in new free programs; and that you are informed that you can do 33b5975d6bSopenharmony_cithese things. 34b5975d6bSopenharmony_ci 35b5975d6bSopenharmony_ci To protect your rights, we need to make restrictions that forbid 36b5975d6bSopenharmony_cidistributors to deny you these rights or to ask you to surrender these 37b5975d6bSopenharmony_cirights. These restrictions translate to certain responsibilities for 38b5975d6bSopenharmony_ciyou if you distribute copies of the library or if you modify it. 39b5975d6bSopenharmony_ci 40b5975d6bSopenharmony_ci For example, if you distribute copies of the library, whether gratis 41b5975d6bSopenharmony_cior for a fee, you must give the recipients all the rights that we gave 42b5975d6bSopenharmony_ciyou. You must make sure that they, too, receive or can get the source 43b5975d6bSopenharmony_cicode. If you link other code with the library, you must provide 44b5975d6bSopenharmony_cicomplete object files to the recipients, so that they can relink them 45b5975d6bSopenharmony_ciwith the library after making changes to the library and recompiling 46b5975d6bSopenharmony_ciit. And you must show them these terms so they know their rights. 47b5975d6bSopenharmony_ci 48b5975d6bSopenharmony_ci We protect your rights with a two-step method: (1) we copyright the 49b5975d6bSopenharmony_cilibrary, and (2) we offer you this license, which gives you legal 50b5975d6bSopenharmony_cipermission to copy, distribute and/or modify the library. 51b5975d6bSopenharmony_ci 52b5975d6bSopenharmony_ci To protect each distributor, we want to make it very clear that 53b5975d6bSopenharmony_cithere is no warranty for the free library. Also, if the library is 54b5975d6bSopenharmony_cimodified by someone else and passed on, the recipients should know 55b5975d6bSopenharmony_cithat what they have is not the original version, so that the original 56b5975d6bSopenharmony_ciauthor's reputation will not be affected by problems that might be 57b5975d6bSopenharmony_ciintroduced by others. 58b5975d6bSopenharmony_ci 59b5975d6bSopenharmony_ci Finally, software patents pose a constant threat to the existence of 60b5975d6bSopenharmony_ciany free program. We wish to make sure that a company cannot 61b5975d6bSopenharmony_cieffectively restrict the users of a free program by obtaining a 62b5975d6bSopenharmony_cirestrictive license from a patent holder. Therefore, we insist that 63b5975d6bSopenharmony_ciany patent license obtained for a version of the library must be 64b5975d6bSopenharmony_ciconsistent with the full freedom of use specified in this license. 65b5975d6bSopenharmony_ci 66b5975d6bSopenharmony_ci Most GNU software, including some libraries, is covered by the 67b5975d6bSopenharmony_ciordinary GNU General Public License. This license, the GNU Lesser 68b5975d6bSopenharmony_ciGeneral Public License, applies to certain designated libraries, and 69b5975d6bSopenharmony_ciis quite different from the ordinary General Public License. We use 70b5975d6bSopenharmony_cithis license for certain libraries in order to permit linking those 71b5975d6bSopenharmony_cilibraries into non-free programs. 72b5975d6bSopenharmony_ci 73b5975d6bSopenharmony_ci When a program is linked with a library, whether statically or using 74b5975d6bSopenharmony_cia shared library, the combination of the two is legally speaking a 75b5975d6bSopenharmony_cicombined work, a derivative of the original library. The ordinary 76b5975d6bSopenharmony_ciGeneral Public License therefore permits such linking only if the 77b5975d6bSopenharmony_cientire combination fits its criteria of freedom. The Lesser General 78b5975d6bSopenharmony_ciPublic License permits more lax criteria for linking other code with 79b5975d6bSopenharmony_cithe library. 80b5975d6bSopenharmony_ci 81b5975d6bSopenharmony_ci We call this license the "Lesser" General Public License because it 82b5975d6bSopenharmony_cidoes Less to protect the user's freedom than the ordinary General 83b5975d6bSopenharmony_ciPublic License. It also provides other free software developers Less 84b5975d6bSopenharmony_ciof an advantage over competing non-free programs. These disadvantages 85b5975d6bSopenharmony_ciare the reason we use the ordinary General Public License for many 86b5975d6bSopenharmony_cilibraries. However, the Lesser license provides advantages in certain 87b5975d6bSopenharmony_cispecial circumstances. 88b5975d6bSopenharmony_ci 89b5975d6bSopenharmony_ci For example, on rare occasions, there may be a special need to 90b5975d6bSopenharmony_ciencourage the widest possible use of a certain library, so that it becomes 91b5975d6bSopenharmony_cia de-facto standard. To achieve this, non-free programs must be 92b5975d6bSopenharmony_ciallowed to use the library. A more frequent case is that a free 93b5975d6bSopenharmony_cilibrary does the same job as widely used non-free libraries. In this 94b5975d6bSopenharmony_cicase, there is little to gain by limiting the free library to free 95b5975d6bSopenharmony_cisoftware only, so we use the Lesser General Public License. 96b5975d6bSopenharmony_ci 97b5975d6bSopenharmony_ci In other cases, permission to use a particular library in non-free 98b5975d6bSopenharmony_ciprograms enables a greater number of people to use a large body of 99b5975d6bSopenharmony_cifree software. For example, permission to use the GNU C Library in 100b5975d6bSopenharmony_cinon-free programs enables many more people to use the whole GNU 101b5975d6bSopenharmony_cioperating system, as well as its variant, the GNU/Linux operating 102b5975d6bSopenharmony_cisystem. 103b5975d6bSopenharmony_ci 104b5975d6bSopenharmony_ci Although the Lesser General Public License is Less protective of the 105b5975d6bSopenharmony_ciusers' freedom, it does ensure that the user of a program that is 106b5975d6bSopenharmony_cilinked with the Library has the freedom and the wherewithal to run 107b5975d6bSopenharmony_cithat program using a modified version of the Library. 108b5975d6bSopenharmony_ci 109b5975d6bSopenharmony_ci The precise terms and conditions for copying, distribution and 110b5975d6bSopenharmony_cimodification follow. Pay close attention to the difference between a 111b5975d6bSopenharmony_ci"work based on the library" and a "work that uses the library". The 112b5975d6bSopenharmony_ciformer contains code derived from the library, whereas the latter must 113b5975d6bSopenharmony_cibe combined with the library in order to run. 114b5975d6bSopenharmony_ci 115b5975d6bSopenharmony_ci GNU LESSER GENERAL PUBLIC LICENSE 116b5975d6bSopenharmony_ci TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 117b5975d6bSopenharmony_ci 118b5975d6bSopenharmony_ci 0. This License Agreement applies to any software library or other 119b5975d6bSopenharmony_ciprogram which contains a notice placed by the copyright holder or 120b5975d6bSopenharmony_ciother authorized party saying it may be distributed under the terms of 121b5975d6bSopenharmony_cithis Lesser General Public License (also called "this License"). 122b5975d6bSopenharmony_ciEach licensee is addressed as "you". 123b5975d6bSopenharmony_ci 124b5975d6bSopenharmony_ci A "library" means a collection of software functions and/or data 125b5975d6bSopenharmony_ciprepared so as to be conveniently linked with application programs 126b5975d6bSopenharmony_ci(which use some of those functions and data) to form executables. 127b5975d6bSopenharmony_ci 128b5975d6bSopenharmony_ci The "Library", below, refers to any such software library or work 129b5975d6bSopenharmony_ciwhich has been distributed under these terms. A "work based on the 130b5975d6bSopenharmony_ciLibrary" means either the Library or any derivative work under 131b5975d6bSopenharmony_cicopyright law: that is to say, a work containing the Library or a 132b5975d6bSopenharmony_ciportion of it, either verbatim or with modifications and/or translated 133b5975d6bSopenharmony_cistraightforwardly into another language. (Hereinafter, translation is 134b5975d6bSopenharmony_ciincluded without limitation in the term "modification".) 135b5975d6bSopenharmony_ci 136b5975d6bSopenharmony_ci "Source code" for a work means the preferred form of the work for 137b5975d6bSopenharmony_cimaking modifications to it. For a library, complete source code means 138b5975d6bSopenharmony_ciall the source code for all modules it contains, plus any associated 139b5975d6bSopenharmony_ciinterface definition files, plus the scripts used to control compilation 140b5975d6bSopenharmony_ciand installation of the library. 141b5975d6bSopenharmony_ci 142b5975d6bSopenharmony_ci Activities other than copying, distribution and modification are not 143b5975d6bSopenharmony_cicovered by this License; they are outside its scope. The act of 144b5975d6bSopenharmony_cirunning a program using the Library is not restricted, and output from 145b5975d6bSopenharmony_cisuch a program is covered only if its contents constitute a work based 146b5975d6bSopenharmony_cion the Library (independent of the use of the Library in a tool for 147b5975d6bSopenharmony_ciwriting it). Whether that is true depends on what the Library does 148b5975d6bSopenharmony_ciand what the program that uses the Library does. 149b5975d6bSopenharmony_ci 150b5975d6bSopenharmony_ci 1. You may copy and distribute verbatim copies of the Library's 151b5975d6bSopenharmony_cicomplete source code as you receive it, in any medium, provided that 152b5975d6bSopenharmony_ciyou conspicuously and appropriately publish on each copy an 153b5975d6bSopenharmony_ciappropriate copyright notice and disclaimer of warranty; keep intact 154b5975d6bSopenharmony_ciall the notices that refer to this License and to the absence of any 155b5975d6bSopenharmony_ciwarranty; and distribute a copy of this License along with the 156b5975d6bSopenharmony_ciLibrary. 157b5975d6bSopenharmony_ci 158b5975d6bSopenharmony_ci You may charge a fee for the physical act of transferring a copy, 159b5975d6bSopenharmony_ciand you may at your option offer warranty protection in exchange for a 160b5975d6bSopenharmony_cifee. 161b5975d6bSopenharmony_ci 162b5975d6bSopenharmony_ci 2. You may modify your copy or copies of the Library or any portion 163b5975d6bSopenharmony_ciof it, thus forming a work based on the Library, and copy and 164b5975d6bSopenharmony_cidistribute such modifications or work under the terms of Section 1 165b5975d6bSopenharmony_ciabove, provided that you also meet all of these conditions: 166b5975d6bSopenharmony_ci 167b5975d6bSopenharmony_ci a) The modified work must itself be a software library. 168b5975d6bSopenharmony_ci 169b5975d6bSopenharmony_ci b) You must cause the files modified to carry prominent notices 170b5975d6bSopenharmony_ci stating that you changed the files and the date of any change. 171b5975d6bSopenharmony_ci 172b5975d6bSopenharmony_ci c) You must cause the whole of the work to be licensed at no 173b5975d6bSopenharmony_ci charge to all third parties under the terms of this License. 174b5975d6bSopenharmony_ci 175b5975d6bSopenharmony_ci d) If a facility in the modified Library refers to a function or a 176b5975d6bSopenharmony_ci table of data to be supplied by an application program that uses 177b5975d6bSopenharmony_ci the facility, other than as an argument passed when the facility 178b5975d6bSopenharmony_ci is invoked, then you must make a good faith effort to ensure that, 179b5975d6bSopenharmony_ci in the event an application does not supply such function or 180b5975d6bSopenharmony_ci table, the facility still operates, and performs whatever part of 181b5975d6bSopenharmony_ci its purpose remains meaningful. 182b5975d6bSopenharmony_ci 183b5975d6bSopenharmony_ci (For example, a function in a library to compute square roots has 184b5975d6bSopenharmony_ci a purpose that is entirely well-defined independent of the 185b5975d6bSopenharmony_ci application. Therefore, Subsection 2d requires that any 186b5975d6bSopenharmony_ci application-supplied function or table used by this function must 187b5975d6bSopenharmony_ci be optional: if the application does not supply it, the square 188b5975d6bSopenharmony_ci root function must still compute square roots.) 189b5975d6bSopenharmony_ci 190b5975d6bSopenharmony_ciThese requirements apply to the modified work as a whole. If 191b5975d6bSopenharmony_ciidentifiable sections of that work are not derived from the Library, 192b5975d6bSopenharmony_ciand can be reasonably considered independent and separate works in 193b5975d6bSopenharmony_cithemselves, then this License, and its terms, do not apply to those 194b5975d6bSopenharmony_cisections when you distribute them as separate works. But when you 195b5975d6bSopenharmony_cidistribute the same sections as part of a whole which is a work based 196b5975d6bSopenharmony_cion the Library, the distribution of the whole must be on the terms of 197b5975d6bSopenharmony_cithis License, whose permissions for other licensees extend to the 198b5975d6bSopenharmony_cientire whole, and thus to each and every part regardless of who wrote 199b5975d6bSopenharmony_ciit. 200b5975d6bSopenharmony_ci 201b5975d6bSopenharmony_ciThus, it is not the intent of this section to claim rights or contest 202b5975d6bSopenharmony_ciyour rights to work written entirely by you; rather, the intent is to 203b5975d6bSopenharmony_ciexercise the right to control the distribution of derivative or 204b5975d6bSopenharmony_cicollective works based on the Library. 205b5975d6bSopenharmony_ci 206b5975d6bSopenharmony_ciIn addition, mere aggregation of another work not based on the Library 207b5975d6bSopenharmony_ciwith the Library (or with a work based on the Library) on a volume of 208b5975d6bSopenharmony_cia storage or distribution medium does not bring the other work under 209b5975d6bSopenharmony_cithe scope of this License. 210b5975d6bSopenharmony_ci 211b5975d6bSopenharmony_ci 3. You may opt to apply the terms of the ordinary GNU General Public 212b5975d6bSopenharmony_ciLicense instead of this License to a given copy of the Library. To do 213b5975d6bSopenharmony_cithis, you must alter all the notices that refer to this License, so 214b5975d6bSopenharmony_cithat they refer to the ordinary GNU General Public License, version 2, 215b5975d6bSopenharmony_ciinstead of to this License. (If a newer version than version 2 of the 216b5975d6bSopenharmony_ciordinary GNU General Public License has appeared, then you can specify 217b5975d6bSopenharmony_cithat version instead if you wish.) Do not make any other change in 218b5975d6bSopenharmony_cithese notices. 219b5975d6bSopenharmony_ci 220b5975d6bSopenharmony_ci Once this change is made in a given copy, it is irreversible for 221b5975d6bSopenharmony_cithat copy, so the ordinary GNU General Public License applies to all 222b5975d6bSopenharmony_cisubsequent copies and derivative works made from that copy. 223b5975d6bSopenharmony_ci 224b5975d6bSopenharmony_ci This option is useful when you wish to copy part of the code of 225b5975d6bSopenharmony_cithe Library into a program that is not a library. 226b5975d6bSopenharmony_ci 227b5975d6bSopenharmony_ci 4. You may copy and distribute the Library (or a portion or 228b5975d6bSopenharmony_ciderivative of it, under Section 2) in object code or executable form 229b5975d6bSopenharmony_ciunder the terms of Sections 1 and 2 above provided that you accompany 230b5975d6bSopenharmony_ciit with the complete corresponding machine-readable source code, which 231b5975d6bSopenharmony_cimust be distributed under the terms of Sections 1 and 2 above on a 232b5975d6bSopenharmony_cimedium customarily used for software interchange. 233b5975d6bSopenharmony_ci 234b5975d6bSopenharmony_ci If distribution of object code is made by offering access to copy 235b5975d6bSopenharmony_cifrom a designated place, then offering equivalent access to copy the 236b5975d6bSopenharmony_cisource code from the same place satisfies the requirement to 237b5975d6bSopenharmony_cidistribute the source code, even though third parties are not 238b5975d6bSopenharmony_cicompelled to copy the source along with the object code. 239b5975d6bSopenharmony_ci 240b5975d6bSopenharmony_ci 5. A program that contains no derivative of any portion of the 241b5975d6bSopenharmony_ciLibrary, but is designed to work with the Library by being compiled or 242b5975d6bSopenharmony_cilinked with it, is called a "work that uses the Library". Such a 243b5975d6bSopenharmony_ciwork, in isolation, is not a derivative work of the Library, and 244b5975d6bSopenharmony_citherefore falls outside the scope of this License. 245b5975d6bSopenharmony_ci 246b5975d6bSopenharmony_ci However, linking a "work that uses the Library" with the Library 247b5975d6bSopenharmony_cicreates an executable that is a derivative of the Library (because it 248b5975d6bSopenharmony_cicontains portions of the Library), rather than a "work that uses the 249b5975d6bSopenharmony_cilibrary". The executable is therefore covered by this License. 250b5975d6bSopenharmony_ciSection 6 states terms for distribution of such executables. 251b5975d6bSopenharmony_ci 252b5975d6bSopenharmony_ci When a "work that uses the Library" uses material from a header file 253b5975d6bSopenharmony_cithat is part of the Library, the object code for the work may be a 254b5975d6bSopenharmony_ciderivative work of the Library even though the source code is not. 255b5975d6bSopenharmony_ciWhether this is true is especially significant if the work can be 256b5975d6bSopenharmony_cilinked without the Library, or if the work is itself a library. The 257b5975d6bSopenharmony_cithreshold for this to be true is not precisely defined by law. 258b5975d6bSopenharmony_ci 259b5975d6bSopenharmony_ci If such an object file uses only numerical parameters, data 260b5975d6bSopenharmony_cistructure layouts and accessors, and small macros and small inline 261b5975d6bSopenharmony_cifunctions (ten lines or less in length), then the use of the object 262b5975d6bSopenharmony_cifile is unrestricted, regardless of whether it is legally a derivative 263b5975d6bSopenharmony_ciwork. (Executables containing this object code plus portions of the 264b5975d6bSopenharmony_ciLibrary will still fall under Section 6.) 265b5975d6bSopenharmony_ci 266b5975d6bSopenharmony_ci Otherwise, if the work is a derivative of the Library, you may 267b5975d6bSopenharmony_cidistribute the object code for the work under the terms of Section 6. 268b5975d6bSopenharmony_ciAny executables containing that work also fall under Section 6, 269b5975d6bSopenharmony_ciwhether or not they are linked directly with the Library itself. 270b5975d6bSopenharmony_ci 271b5975d6bSopenharmony_ci 6. As an exception to the Sections above, you may also combine or 272b5975d6bSopenharmony_cilink a "work that uses the Library" with the Library to produce a 273b5975d6bSopenharmony_ciwork containing portions of the Library, and distribute that work 274b5975d6bSopenharmony_ciunder terms of your choice, provided that the terms permit 275b5975d6bSopenharmony_cimodification of the work for the customer's own use and reverse 276b5975d6bSopenharmony_ciengineering for debugging such modifications. 277b5975d6bSopenharmony_ci 278b5975d6bSopenharmony_ci You must give prominent notice with each copy of the work that the 279b5975d6bSopenharmony_ciLibrary is used in it and that the Library and its use are covered by 280b5975d6bSopenharmony_cithis License. You must supply a copy of this License. If the work 281b5975d6bSopenharmony_ciduring execution displays copyright notices, you must include the 282b5975d6bSopenharmony_cicopyright notice for the Library among them, as well as a reference 283b5975d6bSopenharmony_cidirecting the user to the copy of this License. Also, you must do one 284b5975d6bSopenharmony_ciof these things: 285b5975d6bSopenharmony_ci 286b5975d6bSopenharmony_ci a) Accompany the work with the complete corresponding 287b5975d6bSopenharmony_ci machine-readable source code for the Library including whatever 288b5975d6bSopenharmony_ci changes were used in the work (which must be distributed under 289b5975d6bSopenharmony_ci Sections 1 and 2 above); and, if the work is an executable linked 290b5975d6bSopenharmony_ci with the Library, with the complete machine-readable "work that 291b5975d6bSopenharmony_ci uses the Library", as object code and/or source code, so that the 292b5975d6bSopenharmony_ci user can modify the Library and then relink to produce a modified 293b5975d6bSopenharmony_ci executable containing the modified Library. (It is understood 294b5975d6bSopenharmony_ci that the user who changes the contents of definitions files in the 295b5975d6bSopenharmony_ci Library will not necessarily be able to recompile the application 296b5975d6bSopenharmony_ci to use the modified definitions.) 297b5975d6bSopenharmony_ci 298b5975d6bSopenharmony_ci b) Use a suitable shared library mechanism for linking with the 299b5975d6bSopenharmony_ci Library. A suitable mechanism is one that (1) uses at run time a 300b5975d6bSopenharmony_ci copy of the library already present on the user's computer system, 301b5975d6bSopenharmony_ci rather than copying library functions into the executable, and (2) 302b5975d6bSopenharmony_ci will operate properly with a modified version of the library, if 303b5975d6bSopenharmony_ci the user installs one, as long as the modified version is 304b5975d6bSopenharmony_ci interface-compatible with the version that the work was made with. 305b5975d6bSopenharmony_ci 306b5975d6bSopenharmony_ci c) Accompany the work with a written offer, valid for at 307b5975d6bSopenharmony_ci least three years, to give the same user the materials 308b5975d6bSopenharmony_ci specified in Subsection 6a, above, for a charge no more 309b5975d6bSopenharmony_ci than the cost of performing this distribution. 310b5975d6bSopenharmony_ci 311b5975d6bSopenharmony_ci d) If distribution of the work is made by offering access to copy 312b5975d6bSopenharmony_ci from a designated place, offer equivalent access to copy the above 313b5975d6bSopenharmony_ci specified materials from the same place. 314b5975d6bSopenharmony_ci 315b5975d6bSopenharmony_ci e) Verify that the user has already received a copy of these 316b5975d6bSopenharmony_ci materials or that you have already sent this user a copy. 317b5975d6bSopenharmony_ci 318b5975d6bSopenharmony_ci For an executable, the required form of the "work that uses the 319b5975d6bSopenharmony_ciLibrary" must include any data and utility programs needed for 320b5975d6bSopenharmony_cireproducing the executable from it. However, as a special exception, 321b5975d6bSopenharmony_cithe materials to be distributed need not include anything that is 322b5975d6bSopenharmony_cinormally distributed (in either source or binary form) with the major 323b5975d6bSopenharmony_cicomponents (compiler, kernel, and so on) of the operating system on 324b5975d6bSopenharmony_ciwhich the executable runs, unless that component itself accompanies 325b5975d6bSopenharmony_cithe executable. 326b5975d6bSopenharmony_ci 327b5975d6bSopenharmony_ci It may happen that this requirement contradicts the license 328b5975d6bSopenharmony_cirestrictions of other proprietary libraries that do not normally 329b5975d6bSopenharmony_ciaccompany the operating system. Such a contradiction means you cannot 330b5975d6bSopenharmony_ciuse both them and the Library together in an executable that you 331b5975d6bSopenharmony_cidistribute. 332b5975d6bSopenharmony_ci 333b5975d6bSopenharmony_ci 7. You may place library facilities that are a work based on the 334b5975d6bSopenharmony_ciLibrary side-by-side in a single library together with other library 335b5975d6bSopenharmony_cifacilities not covered by this License, and distribute such a combined 336b5975d6bSopenharmony_cilibrary, provided that the separate distribution of the work based on 337b5975d6bSopenharmony_cithe Library and of the other library facilities is otherwise 338b5975d6bSopenharmony_cipermitted, and provided that you do these two things: 339b5975d6bSopenharmony_ci 340b5975d6bSopenharmony_ci a) Accompany the combined library with a copy of the same work 341b5975d6bSopenharmony_ci based on the Library, uncombined with any other library 342b5975d6bSopenharmony_ci facilities. This must be distributed under the terms of the 343b5975d6bSopenharmony_ci Sections above. 344b5975d6bSopenharmony_ci 345b5975d6bSopenharmony_ci b) Give prominent notice with the combined library of the fact 346b5975d6bSopenharmony_ci that part of it is a work based on the Library, and explaining 347b5975d6bSopenharmony_ci where to find the accompanying uncombined form of the same work. 348b5975d6bSopenharmony_ci 349b5975d6bSopenharmony_ci 8. You may not copy, modify, sublicense, link with, or distribute 350b5975d6bSopenharmony_cithe Library except as expressly provided under this License. Any 351b5975d6bSopenharmony_ciattempt otherwise to copy, modify, sublicense, link with, or 352b5975d6bSopenharmony_cidistribute the Library is void, and will automatically terminate your 353b5975d6bSopenharmony_cirights under this License. However, parties who have received copies, 354b5975d6bSopenharmony_cior rights, from you under this License will not have their licenses 355b5975d6bSopenharmony_citerminated so long as such parties remain in full compliance. 356b5975d6bSopenharmony_ci 357b5975d6bSopenharmony_ci 9. You are not required to accept this License, since you have not 358b5975d6bSopenharmony_cisigned it. However, nothing else grants you permission to modify or 359b5975d6bSopenharmony_cidistribute the Library or its derivative works. These actions are 360b5975d6bSopenharmony_ciprohibited by law if you do not accept this License. Therefore, by 361b5975d6bSopenharmony_cimodifying or distributing the Library (or any work based on the 362b5975d6bSopenharmony_ciLibrary), you indicate your acceptance of this License to do so, and 363b5975d6bSopenharmony_ciall its terms and conditions for copying, distributing or modifying 364b5975d6bSopenharmony_cithe Library or works based on it. 365b5975d6bSopenharmony_ci 366b5975d6bSopenharmony_ci 10. Each time you redistribute the Library (or any work based on the 367b5975d6bSopenharmony_ciLibrary), the recipient automatically receives a license from the 368b5975d6bSopenharmony_cioriginal licensor to copy, distribute, link with or modify the Library 369b5975d6bSopenharmony_cisubject to these terms and conditions. You may not impose any further 370b5975d6bSopenharmony_cirestrictions on the recipients' exercise of the rights granted herein. 371b5975d6bSopenharmony_ciYou are not responsible for enforcing compliance by third parties with 372b5975d6bSopenharmony_cithis License. 373b5975d6bSopenharmony_ci 374b5975d6bSopenharmony_ci 11. If, as a consequence of a court judgment or allegation of patent 375b5975d6bSopenharmony_ciinfringement or for any other reason (not limited to patent issues), 376b5975d6bSopenharmony_ciconditions are imposed on you (whether by court order, agreement or 377b5975d6bSopenharmony_ciotherwise) that contradict the conditions of this License, they do not 378b5975d6bSopenharmony_ciexcuse you from the conditions of this License. If you cannot 379b5975d6bSopenharmony_cidistribute so as to satisfy simultaneously your obligations under this 380b5975d6bSopenharmony_ciLicense and any other pertinent obligations, then as a consequence you 381b5975d6bSopenharmony_cimay not distribute the Library at all. For example, if a patent 382b5975d6bSopenharmony_cilicense would not permit royalty-free redistribution of the Library by 383b5975d6bSopenharmony_ciall those who receive copies directly or indirectly through you, then 384b5975d6bSopenharmony_cithe only way you could satisfy both it and this License would be to 385b5975d6bSopenharmony_cirefrain entirely from distribution of the Library. 386b5975d6bSopenharmony_ci 387b5975d6bSopenharmony_ciIf any portion of this section is held invalid or unenforceable under any 388b5975d6bSopenharmony_ciparticular circumstance, the balance of the section is intended to apply, 389b5975d6bSopenharmony_ciand the section as a whole is intended to apply in other circumstances. 390b5975d6bSopenharmony_ci 391b5975d6bSopenharmony_ciIt is not the purpose of this section to induce you to infringe any 392b5975d6bSopenharmony_cipatents or other property right claims or to contest validity of any 393b5975d6bSopenharmony_cisuch claims; this section has the sole purpose of protecting the 394b5975d6bSopenharmony_ciintegrity of the free software distribution system which is 395b5975d6bSopenharmony_ciimplemented by public license practices. Many people have made 396b5975d6bSopenharmony_cigenerous contributions to the wide range of software distributed 397b5975d6bSopenharmony_cithrough that system in reliance on consistent application of that 398b5975d6bSopenharmony_cisystem; it is up to the author/donor to decide if he or she is willing 399b5975d6bSopenharmony_cito distribute software through any other system and a licensee cannot 400b5975d6bSopenharmony_ciimpose that choice. 401b5975d6bSopenharmony_ci 402b5975d6bSopenharmony_ciThis section is intended to make thoroughly clear what is believed to 403b5975d6bSopenharmony_cibe a consequence of the rest of this License. 404b5975d6bSopenharmony_ci 405b5975d6bSopenharmony_ci 12. If the distribution and/or use of the Library is restricted in 406b5975d6bSopenharmony_cicertain countries either by patents or by copyrighted interfaces, the 407b5975d6bSopenharmony_cioriginal copyright holder who places the Library under this License may add 408b5975d6bSopenharmony_cian explicit geographical distribution limitation excluding those countries, 409b5975d6bSopenharmony_ciso that distribution is permitted only in or among countries not thus 410b5975d6bSopenharmony_ciexcluded. In such case, this License incorporates the limitation as if 411b5975d6bSopenharmony_ciwritten in the body of this License. 412b5975d6bSopenharmony_ci 413b5975d6bSopenharmony_ci 13. The Free Software Foundation may publish revised and/or new 414b5975d6bSopenharmony_civersions of the Lesser General Public License from time to time. 415b5975d6bSopenharmony_ciSuch new versions will be similar in spirit to the present version, 416b5975d6bSopenharmony_cibut may differ in detail to address new problems or concerns. 417b5975d6bSopenharmony_ci 418b5975d6bSopenharmony_ciEach version is given a distinguishing version number. If the Library 419b5975d6bSopenharmony_cispecifies a version number of this License which applies to it and 420b5975d6bSopenharmony_ci"any later version", you have the option of following the terms and 421b5975d6bSopenharmony_ciconditions either of that version or of any later version published by 422b5975d6bSopenharmony_cithe Free Software Foundation. If the Library does not specify a 423b5975d6bSopenharmony_cilicense version number, you may choose any version ever published by 424b5975d6bSopenharmony_cithe Free Software Foundation. 425b5975d6bSopenharmony_ci 426b5975d6bSopenharmony_ci 14. If you wish to incorporate parts of the Library into other free 427b5975d6bSopenharmony_ciprograms whose distribution conditions are incompatible with these, 428b5975d6bSopenharmony_ciwrite to the author to ask for permission. For software which is 429b5975d6bSopenharmony_cicopyrighted by the Free Software Foundation, write to the Free 430b5975d6bSopenharmony_ciSoftware Foundation; we sometimes make exceptions for this. Our 431b5975d6bSopenharmony_cidecision will be guided by the two goals of preserving the free status 432b5975d6bSopenharmony_ciof all derivatives of our free software and of promoting the sharing 433b5975d6bSopenharmony_ciand reuse of software generally. 434b5975d6bSopenharmony_ci 435b5975d6bSopenharmony_ci NO WARRANTY 436b5975d6bSopenharmony_ci 437b5975d6bSopenharmony_ci 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 438b5975d6bSopenharmony_ciWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. 439b5975d6bSopenharmony_ciEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR 440b5975d6bSopenharmony_ciOTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY 441b5975d6bSopenharmony_ciKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE 442b5975d6bSopenharmony_ciIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 443b5975d6bSopenharmony_ciPURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE 444b5975d6bSopenharmony_ciLIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME 445b5975d6bSopenharmony_ciTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 446b5975d6bSopenharmony_ci 447b5975d6bSopenharmony_ci 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN 448b5975d6bSopenharmony_ciWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY 449b5975d6bSopenharmony_ciAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU 450b5975d6bSopenharmony_ciFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR 451b5975d6bSopenharmony_ciCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE 452b5975d6bSopenharmony_ciLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING 453b5975d6bSopenharmony_ciRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A 454b5975d6bSopenharmony_ciFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF 455b5975d6bSopenharmony_ciSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 456b5975d6bSopenharmony_ciDAMAGES. 457b5975d6bSopenharmony_ci 458b5975d6bSopenharmony_ci END OF TERMS AND CONDITIONS 459b5975d6bSopenharmony_ci 460b5975d6bSopenharmony_ci How to Apply These Terms to Your New Libraries 461b5975d6bSopenharmony_ci 462b5975d6bSopenharmony_ci If you develop a new library, and you want it to be of the greatest 463b5975d6bSopenharmony_cipossible use to the public, we recommend making it free software that 464b5975d6bSopenharmony_cieveryone can redistribute and change. You can do so by permitting 465b5975d6bSopenharmony_ciredistribution under these terms (or, alternatively, under the terms of the 466b5975d6bSopenharmony_ciordinary General Public License). 467b5975d6bSopenharmony_ci 468b5975d6bSopenharmony_ci To apply these terms, attach the following notices to the library. It is 469b5975d6bSopenharmony_cisafest to attach them to the start of each source file to most effectively 470b5975d6bSopenharmony_ciconvey the exclusion of warranty; and each file should have at least the 471b5975d6bSopenharmony_ci"copyright" line and a pointer to where the full notice is found. 472b5975d6bSopenharmony_ci 473b5975d6bSopenharmony_ci <one line to give the library's name and a brief idea of what it does.> 474b5975d6bSopenharmony_ci Copyright (C) <year> <name of author> 475b5975d6bSopenharmony_ci 476b5975d6bSopenharmony_ci This library is free software; you can redistribute it and/or 477b5975d6bSopenharmony_ci modify it under the terms of the GNU Lesser General Public 478b5975d6bSopenharmony_ci License as published by the Free Software Foundation; either 479b5975d6bSopenharmony_ci version 2.1 of the License, or (at your option) any later version. 480b5975d6bSopenharmony_ci 481b5975d6bSopenharmony_ci This library is distributed in the hope that it will be useful, 482b5975d6bSopenharmony_ci but WITHOUT ANY WARRANTY; without even the implied warranty of 483b5975d6bSopenharmony_ci MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 484b5975d6bSopenharmony_ci Lesser General Public License for more details. 485b5975d6bSopenharmony_ci 486b5975d6bSopenharmony_ci You should have received a copy of the GNU Lesser General Public 487b5975d6bSopenharmony_ci License along with this library; if not, write to the Free Software 488b5975d6bSopenharmony_ci Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 489b5975d6bSopenharmony_ci 490b5975d6bSopenharmony_ciAlso add information on how to contact you by electronic and paper mail. 491b5975d6bSopenharmony_ci 492b5975d6bSopenharmony_ciYou should also get your employer (if you work as a programmer) or your 493b5975d6bSopenharmony_cischool, if any, to sign a "copyright disclaimer" for the library, if 494b5975d6bSopenharmony_cinecessary. Here is a sample; alter the names: 495b5975d6bSopenharmony_ci 496b5975d6bSopenharmony_ci Yoyodyne, Inc., hereby disclaims all copyright interest in the 497b5975d6bSopenharmony_ci library `Frob' (a library for tweaking knobs) written by James Random Hacker. 498b5975d6bSopenharmony_ci 499b5975d6bSopenharmony_ci <signature of Ty Coon>, 1 April 1990 500b5975d6bSopenharmony_ci Ty Coon, President of Vice 501b5975d6bSopenharmony_ci 502b5975d6bSopenharmony_ciThat's all there is to it! 503