Home | History | Annotate | Download | only in webkit
      1 (WebKit doesn't distribute an explicit license.  This LICENSE is derived from
      2 license text in the source.)
      3 
      4 Copyright (c) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
      5 2006, 2007 Alexander Kellett, Alexey Proskuryakov, Alex Mathews, Allan
      6 Sandfeld Jensen, Alp Toker, Anders Carlsson, Andrew Wellington, Antti
      7 Koivisto, Apple Inc., Arthur Langereis, Baron Schwartz, Bjoern Graf,
      8 Brent Fulgham, Cameron Zwarich, Charles Samuels, Christian Dywan,
      9 Collabora Ltd., Cyrus Patel, Daniel Molkentin, Dave Maclachlan, David
     10 Smith, Dawit Alemayehu, Dirk Mueller, Dirk Schulze, Don Gibson, Enrico
     11 Ros, Eric Seidel, Frederik Holljen, Frerich Raabe, Friedmann Kleint,
     12 George Staikos, Google Inc., Graham Dennis, Harri Porten, Henry Mason,
     13 Hiroyuki Ikezoe, Holger Hans Peter Freyther, IBM, James G. Speth, Jan
     14 Alonzo, Jean-Loup Gailly, John Reis, Jonas Witt, Jon Shier, Jonas
     15 Witt, Julien Chaffraix, Justin Haygood, Kevin Ollivier, Kevin Watters,
     16 Kimmo Kinnunen, Kouhei Sutou, Krzysztof Kowalczyk, Lars Knoll, Luca
     17 Bruno, Maks Orlovich, Malte Starostik, Mark Adler, Martin Jones,
     18 Marvin Decker, Matt Lilek, Michael Emmel, Mitz Pettel, mozilla.org,
     19 Netscape Communications Corporation, Nicholas Shanks, Nikolas
     20 Zimmermann, Nokia, Oliver Hunt, Opened Hand, Paul Johnston, Peter
     21 Kelly, Pioneer Research Center USA, Rich Moore, Rob Buis, Robin Dunn,
     22 Ronald Tschalr, Samuel Weinig, Simon Hausmann, Staikos Computing
     23 Services Inc., Stefan Schimanski, Symantec Corporation, The Dojo
     24 Foundation, The Karbon Developers, Thomas Boyer, Tim Copperfield,
     25 Tobias Anton, Torben Weis, Trolltech, University of Cambridge, Vaclav
     26 Slavik, Waldo Bastian, Xan Lopez, Zack Rusin
     27 
     28 The terms and conditions vary from file to file, but are one of:
     29 
     30 Redistribution and use in source and binary forms, with or without
     31 modification, are permitted provided that the following conditions are
     32 met:
     33 
     34 1. Redistributions of source code must retain the above copyright
     35    notice, this list of conditions and the following disclaimer.
     36 
     37 2. Redistributions in binary form must reproduce the above copyright
     38    notice, this list of conditions and the following disclaimer in the
     39    documentation and/or other materials provided with the
     40    distribution.
     41 
     42 *OR*
     43 
     44 Redistribution and use in source and binary forms, with or without
     45 modification, are permitted provided that the following conditions are
     46 met:
     47 
     48 1. Redistributions of source code must retain the above copyright
     49    notice, this list of conditions and the following disclaimer.
     50 2. Redistributions in binary form must reproduce the above copyright
     51    notice, this list of conditions and the following disclaimer in the
     52    documentation and/or other materials provided with the
     53    distribution.
     54 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
     55    its contributors may be used to endorse or promote products derived
     56    from this software without specific prior written permission.
     57 
     58 THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
     59 EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     60 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     61 PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
     62 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     63 EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     64 PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
     65 PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
     66 
     67 OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     68 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
     69 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     70 
     71 
     72                   GNU LIBRARY GENERAL PUBLIC LICENSE
     73                        Version 2, June 1991
     74 
     75  Copyright (C) 1991 Free Software Foundation, Inc.
     76  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
     77  Everyone is permitted to copy and distribute verbatim copies
     78  of this license document, but changing it is not allowed.
     79 
     80 [This is the first released version of the library GPL.  It is
     81  numbered 2 because it goes with version 2 of the ordinary GPL.]
     82 
     83                             Preamble
     84 
     85   The licenses for most software are designed to take away your
     86 freedom to share and change it.  By contrast, the GNU General Public
     87 Licenses are intended to guarantee your freedom to share and change
     88 free software--to make sure the software is free for all its users.
     89 
     90   This license, the Library General Public License, applies to some
     91 specially designated Free Software Foundation software, and to any
     92 other libraries whose authors decide to use it.  You can use it for
     93 your libraries, too.
     94 
     95   When we speak of free software, we are referring to freedom, not
     96 price.  Our General Public Licenses are designed to make sure that you
     97 have the freedom to distribute copies of free software (and charge for
     98 this service if you wish), that you receive source code or can get it
     99 if you want it, that you can change the software or use pieces of it
    100 in new free programs; and that you know you can do these things.
    101 
    102   To protect your rights, we need to make restrictions that forbid
    103 anyone to deny you these rights or to ask you to surrender the rights.
    104 These restrictions translate to certain responsibilities for you if
    105 you distribute copies of the library, or if you modify it.
    106 
    107   For example, if you distribute copies of the library, whether gratis
    108 or for a fee, you must give the recipients all the rights that we gave
    109 you.  You must make sure that they, too, receive or can get the source
    110 code.  If you link a program with the library, you must provide
    111 complete object files to the recipients so that they can relink them
    112 with the library, after making changes to the library and recompiling
    113 it.  And you must show them these terms so they know their rights.
    114 
    115   Our method of protecting your rights has two steps: (1) copyright
    116 the library, and (2) offer you this license which gives you legal
    117 permission to copy, distribute and/or modify the library.
    118 
    119   Also, for each distributor's protection, we want to make certain
    120 that everyone understands that there is no warranty for this free
    121 library.  If the library is modified by someone else and passed on, we
    122 want its recipients to know that what they have is not the original
    123 version, so that any problems introduced by others will not reflect on
    124 the original authors' reputations.
    125 
    127   Finally, any free program is threatened constantly by software
    128 patents.  We wish to avoid the danger that companies distributing free
    129 software will individually obtain patent licenses, thus in effect
    130 transforming the program into proprietary software.  To prevent this,
    131 we have made it clear that any patent must be licensed for everyone's
    132 free use or not licensed at all.
    133 
    134   Most GNU software, including some libraries, is covered by the ordinary
    135 GNU General Public License, which was designed for utility programs.  This
    136 license, the GNU Library General Public License, applies to certain
    137 designated libraries.  This license is quite different from the ordinary
    138 one; be sure to read it in full, and don't assume that anything in it is
    139 the same as in the ordinary license.
    140 
    141   The reason we have a separate public license for some libraries is that
    142 they blur the distinction we usually make between modifying or adding to a
    143 program and simply using it.  Linking a program with a library, without
    144 changing the library, is in some sense simply using the library, and is
    145 analogous to running a utility program or application program.  However, in
    146 a textual and legal sense, the linked executable is a combined work, a
    147 derivative of the original library, and the ordinary General Public License
    148 treats it as such.
    149 
    150   Because of this blurred distinction, using the ordinary General
    151 Public License for libraries did not effectively promote software
    152 sharing, because most developers did not use the libraries.  We
    153 concluded that weaker conditions might promote sharing better.
    154 
    155   However, unrestricted linking of non-free programs would deprive the
    156 users of those programs of all benefit from the free status of the
    157 libraries themselves.  This Library General Public License is intended to
    158 permit developers of non-free programs to use free libraries, while
    159 preserving your freedom as a user of such programs to change the free
    160 libraries that are incorporated in them.  (We have not seen how to achieve
    161 this as regards changes in header files, but we have achieved it as regards
    162 changes in the actual functions of the Library.)  The hope is that this
    163 will lead to faster development of free libraries.
    164 
    165   The precise terms and conditions for copying, distribution and
    166 modification follow.  Pay close attention to the difference between a
    167 "work based on the library" and a "work that uses the library".  The
    168 former contains code derived from the library, while the latter only
    169 works together with the library.
    170 
    171   Note that it is possible for a library to be covered by the ordinary
    172 General Public License rather than by this special one.
    173 
    175                   GNU LIBRARY GENERAL PUBLIC LICENSE
    176    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    177 
    178   0. This License Agreement applies to any software library which
    179 contains a notice placed by the copyright holder or other authorized
    180 party saying it may be distributed under the terms of this Library
    181 General Public License (also called "this License").  Each licensee is
    182 addressed as "you".
    183 
    184   A "library" means a collection of software functions and/or data
    185 prepared so as to be conveniently linked with application programs
    186 (which use some of those functions and data) to form executables.
    187 
    188   The "Library", below, refers to any such software library or work
    189 which has been distributed under these terms.  A "work based on the
    190 Library" means either the Library or any derivative work under
    191 copyright law: that is to say, a work containing the Library or a
    192 portion of it, either verbatim or with modifications and/or translated
    193 straightforwardly into another language.  (Hereinafter, translation is
    194 included without limitation in the term "modification".)
    195 
    196   "Source code" for a work means the preferred form of the work for
    197 making modifications to it.  For a library, complete source code means
    198 all the source code for all modules it contains, plus any associated
    199 interface definition files, plus the scripts used to control compilation
    200 and installation of the library.
    201 
    202   Activities other than copying, distribution and modification are not
    203 covered by this License; they are outside its scope.  The act of
    204 running a program using the Library is not restricted, and output from
    205 such a program is covered only if its contents constitute a work based
    206 on the Library (independent of the use of the Library in a tool for
    207 writing it).  Whether that is true depends on what the Library does
    208 and what the program that uses the Library does.
    209   
    210   1. You may copy and distribute verbatim copies of the Library's
    211 complete source code as you receive it, in any medium, provided that
    212 you conspicuously and appropriately publish on each copy an
    213 appropriate copyright notice and disclaimer of warranty; keep intact
    214 all the notices that refer to this License and to the absence of any
    215 warranty; and distribute a copy of this License along with the
    216 Library.
    217 
    218   You may charge a fee for the physical act of transferring a copy,
    219 and you may at your option offer warranty protection in exchange for a
    220 fee.
    221 
    223   2. You may modify your copy or copies of the Library or any portion
    224 of it, thus forming a work based on the Library, and copy and
    225 distribute such modifications or work under the terms of Section 1
    226 above, provided that you also meet all of these conditions:
    227 
    228     a) The modified work must itself be a software library.
    229 
    230     b) You must cause the files modified to carry prominent notices
    231     stating that you changed the files and the date of any change.
    232 
    233     c) You must cause the whole of the work to be licensed at no
    234     charge to all third parties under the terms of this License.
    235 
    236     d) If a facility in the modified Library refers to a function or a
    237     table of data to be supplied by an application program that uses
    238     the facility, other than as an argument passed when the facility
    239     is invoked, then you must make a good faith effort to ensure that,
    240     in the event an application does not supply such function or
    241     table, the facility still operates, and performs whatever part of
    242     its purpose remains meaningful.
    243 
    244     (For example, a function in a library to compute square roots has
    245     a purpose that is entirely well-defined independent of the
    246     application.  Therefore, Subsection 2d requires that any
    247     application-supplied function or table used by this function must
    248     be optional: if the application does not supply it, the square
    249     root function must still compute square roots.)
    250 
    251 These requirements apply to the modified work as a whole.  If
    252 identifiable sections of that work are not derived from the Library,
    253 and can be reasonably considered independent and separate works in
    254 themselves, then this License, and its terms, do not apply to those
    255 sections when you distribute them as separate works.  But when you
    256 distribute the same sections as part of a whole which is a work based
    257 on the Library, the distribution of the whole must be on the terms of
    258 this License, whose permissions for other licensees extend to the
    259 entire whole, and thus to each and every part regardless of who wrote
    260 it.
    261 
    262 Thus, it is not the intent of this section to claim rights or contest
    263 your rights to work written entirely by you; rather, the intent is to
    264 exercise the right to control the distribution of derivative or
    265 collective works based on the Library.
    266 
    267 In addition, mere aggregation of another work not based on the Library
    268 with the Library (or with a work based on the Library) on a volume of
    269 a storage or distribution medium does not bring the other work under
    270 the scope of this License.
    271 
    272   3. You may opt to apply the terms of the ordinary GNU General Public
    273 License instead of this License to a given copy of the Library.  To do
    274 this, you must alter all the notices that refer to this License, so
    275 that they refer to the ordinary GNU General Public License, version 2,
    276 instead of to this License.  (If a newer version than version 2 of the
    277 ordinary GNU General Public License has appeared, then you can specify
    278 that version instead if you wish.)  Do not make any other change in
    279 these notices.
    280 
    282   Once this change is made in a given copy, it is irreversible for
    283 that copy, so the ordinary GNU General Public License applies to all
    284 subsequent copies and derivative works made from that copy.
    285 
    286   This option is useful when you wish to copy part of the code of
    287 the Library into a program that is not a library.
    288 
    289   4. You may copy and distribute the Library (or a portion or
    290 derivative of it, under Section 2) in object code or executable form
    291 under the terms of Sections 1 and 2 above provided that you accompany
    292 it with the complete corresponding machine-readable source code, which
    293 must be distributed under the terms of Sections 1 and 2 above on a
    294 medium customarily used for software interchange.
    295 
    296   If distribution of object code is made by offering access to copy
    297 from a designated place, then offering equivalent access to copy the
    298 source code from the same place satisfies the requirement to
    299 distribute the source code, even though third parties are not
    300 compelled to copy the source along with the object code.
    301 
    302   5. A program that contains no derivative of any portion of the
    303 Library, but is designed to work with the Library by being compiled or
    304 linked with it, is called a "work that uses the Library".  Such a
    305 work, in isolation, is not a derivative work of the Library, and
    306 therefore falls outside the scope of this License.
    307 
    308   However, linking a "work that uses the Library" with the Library
    309 creates an executable that is a derivative of the Library (because it
    310 contains portions of the Library), rather than a "work that uses the
    311 library".  The executable is therefore covered by this License.
    312 Section 6 states terms for distribution of such executables.
    313 
    314   When a "work that uses the Library" uses material from a header file
    315 that is part of the Library, the object code for the work may be a
    316 derivative work of the Library even though the source code is not.
    317 Whether this is true is especially significant if the work can be
    318 linked without the Library, or if the work is itself a library.  The
    319 threshold for this to be true is not precisely defined by law.
    320 
    321   If such an object file uses only numerical parameters, data
    322 structure layouts and accessors, and small macros and small inline
    323 functions (ten lines or less in length), then the use of the object
    324 file is unrestricted, regardless of whether it is legally a derivative
    325 work.  (Executables containing this object code plus portions of the
    326 Library will still fall under Section 6.)
    327 
    328   Otherwise, if the work is a derivative of the Library, you may
    329 distribute the object code for the work under the terms of Section 6.
    330 Any executables containing that work also fall under Section 6,
    331 whether or not they are linked directly with the Library itself.
    332 
    334   6. As an exception to the Sections above, you may also compile or
    335 link a "work that uses the Library" with the Library to produce a
    336 work containing portions of the Library, and distribute that work
    337 under terms of your choice, provided that the terms permit
    338 modification of the work for the customer's own use and reverse
    339 engineering for debugging such modifications.
    340 
    341   You must give prominent notice with each copy of the work that the
    342 Library is used in it and that the Library and its use are covered by
    343 this License.  You must supply a copy of this License.  If the work
    344 during execution displays copyright notices, you must include the
    345 copyright notice for the Library among them, as well as a reference
    346 directing the user to the copy of this License.  Also, you must do one
    347 of these things:
    348 
    349     a) Accompany the work with the complete corresponding
    350     machine-readable source code for the Library including whatever
    351     changes were used in the work (which must be distributed under
    352     Sections 1 and 2 above); and, if the work is an executable linked
    353     with the Library, with the complete machine-readable "work that
    354     uses the Library", as object code and/or source code, so that the
    355     user can modify the Library and then relink to produce a modified
    356     executable containing the modified Library.  (It is understood
    357     that the user who changes the contents of definitions files in the
    358     Library will not necessarily be able to recompile the application
    359     to use the modified definitions.)
    360 
    361     b) Accompany the work with a written offer, valid for at
    362     least three years, to give the same user the materials
    363     specified in Subsection 6a, above, for a charge no more
    364     than the cost of performing this distribution.
    365 
    366     c) If distribution of the work is made by offering access to copy
    367     from a designated place, offer equivalent access to copy the above
    368     specified materials from the same place.
    369 
    370     d) Verify that the user has already received a copy of these
    371     materials or that you have already sent this user a copy.
    372 
    373   For an executable, the required form of the "work that uses the
    374 Library" must include any data and utility programs needed for
    375 reproducing the executable from it.  However, as a special exception,
    376 the source code distributed need not include anything that is normally
    377 distributed (in either source or binary form) with the major
    378 components (compiler, kernel, and so on) of the operating system on
    379 which the executable runs, unless that component itself accompanies
    380 the executable.
    381 
    382   It may happen that this requirement contradicts the license
    383 restrictions of other proprietary libraries that do not normally
    384 accompany the operating system.  Such a contradiction means you cannot
    385 use both them and the Library together in an executable that you
    386 distribute.
    387 
    389   7. You may place library facilities that are a work based on the
    390 Library side-by-side in a single library together with other library
    391 facilities not covered by this License, and distribute such a combined
    392 library, provided that the separate distribution of the work based on
    393 the Library and of the other library facilities is otherwise
    394 permitted, and provided that you do these two things:
    395 
    396     a) Accompany the combined library with a copy of the same work
    397     based on the Library, uncombined with any other library
    398     facilities.  This must be distributed under the terms of the
    399     Sections above.
    400 
    401     b) Give prominent notice with the combined library of the fact
    402     that part of it is a work based on the Library, and explaining
    403     where to find the accompanying uncombined form of the same work.
    404 
    405   8. You may not copy, modify, sublicense, link with, or distribute
    406 the Library except as expressly provided under this License.  Any
    407 attempt otherwise to copy, modify, sublicense, link with, or
    408 distribute the Library is void, and will automatically terminate your
    409 rights under this License.  However, parties who have received copies,
    410 or rights, from you under this License will not have their licenses
    411 terminated so long as such parties remain in full compliance.
    412 
    413   9. You are not required to accept this License, since you have not
    414 signed it.  However, nothing else grants you permission to modify or
    415 distribute the Library or its derivative works.  These actions are
    416 prohibited by law if you do not accept this License.  Therefore, by
    417 modifying or distributing the Library (or any work based on the
    418 Library), you indicate your acceptance of this License to do so, and
    419 all its terms and conditions for copying, distributing or modifying
    420 the Library or works based on it.
    421 
    422   10. Each time you redistribute the Library (or any work based on the
    423 Library), the recipient automatically receives a license from the
    424 original licensor to copy, distribute, link with or modify the Library
    425 subject to these terms and conditions.  You may not impose any further
    426 restrictions on the recipients' exercise of the rights granted herein.
    427 You are not responsible for enforcing compliance by third parties to
    428 this License.
    429 
    431   11. If, as a consequence of a court judgment or allegation of patent
    432 infringement or for any other reason (not limited to patent issues),
    433 conditions are imposed on you (whether by court order, agreement or
    434 otherwise) that contradict the conditions of this License, they do not
    435 excuse you from the conditions of this License.  If you cannot
    436 distribute so as to satisfy simultaneously your obligations under this
    437 License and any other pertinent obligations, then as a consequence you
    438 may not distribute the Library at all.  For example, if a patent
    439 license would not permit royalty-free redistribution of the Library by
    440 all those who receive copies directly or indirectly through you, then
    441 the only way you could satisfy both it and this License would be to
    442 refrain entirely from distribution of the Library.
    443 
    444 If any portion of this section is held invalid or unenforceable under any
    445 particular circumstance, the balance of the section is intended to apply,
    446 and the section as a whole is intended to apply in other circumstances.
    447 
    448 It is not the purpose of this section to induce you to infringe any
    449 patents or other property right claims or to contest validity of any
    450 such claims; this section has the sole purpose of protecting the
    451 integrity of the free software distribution system which is
    452 implemented by public license practices.  Many people have made
    453 generous contributions to the wide range of software distributed
    454 through that system in reliance on consistent application of that
    455 system; it is up to the author/donor to decide if he or she is willing
    456 to distribute software through any other system and a licensee cannot
    457 impose that choice.
    458 
    459 This section is intended to make thoroughly clear what is believed to
    460 be a consequence of the rest of this License.
    461 
    462   12. If the distribution and/or use of the Library is restricted in
    463 certain countries either by patents or by copyrighted interfaces, the
    464 original copyright holder who places the Library under this License may add
    465 an explicit geographical distribution limitation excluding those countries,
    466 so that distribution is permitted only in or among countries not thus
    467 excluded.  In such case, this License incorporates the limitation as if
    468 written in the body of this License.
    469 
    470   13. The Free Software Foundation may publish revised and/or new
    471 versions of the Library General Public License from time to time.
    472 Such new versions will be similar in spirit to the present version,
    473 but may differ in detail to address new problems or concerns.
    474 
    475 Each version is given a distinguishing version number.  If the Library
    476 specifies a version number of this License which applies to it and
    477 "any later version", you have the option of following the terms and
    478 conditions either of that version or of any later version published by
    479 the Free Software Foundation.  If the Library does not specify a
    480 license version number, you may choose any version ever published by
    481 the Free Software Foundation.
    482 
    484   14. If you wish to incorporate parts of the Library into other free
    485 programs whose distribution conditions are incompatible with these,
    486 write to the author to ask for permission.  For software which is
    487 copyrighted by the Free Software Foundation, write to the Free
    488 Software Foundation; we sometimes make exceptions for this.  Our
    489 decision will be guided by the two goals of preserving the free status
    490 of all derivatives of our free software and of promoting the sharing
    491 and reuse of software generally.
    492 
    493                             NO WARRANTY
    494 
    495   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
    496 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
    497 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
    498 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
    499 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
    500 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    501 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
    502 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
    503 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
    504 
    505   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
    506 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
    507 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
    508 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
    509 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
    510 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
    511 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
    512 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
    513 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
    514 DAMAGES.
    515 
    516                      END OF TERMS AND CONDITIONS
    517 
    518                   GNU LESSER GENERAL PUBLIC LICENSE
    519                        Version 2.1, February 1999
    520 
    521  Copyright (C) 1991, 1999 Free Software Foundation, Inc.
    522  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
    523  Everyone is permitted to copy and distribute verbatim copies
    524  of this license document, but changing it is not allowed.
    525 
    526 [This is the first released version of the Lesser GPL.  It also counts
    527  as the successor of the GNU Library Public License, version 2, hence
    528  the version number 2.1.]
    529 
    530                             Preamble
    531 
    532   The licenses for most software are designed to take away your
    533 freedom to share and change it.  By contrast, the GNU General Public
    534 Licenses are intended to guarantee your freedom to share and change
    535 free software--to make sure the software is free for all its users.
    536 
    537   This license, the Lesser General Public License, applies to some
    538 specially designated software packages--typically libraries--of the
    539 Free Software Foundation and other authors who decide to use it.  You
    540 can use it too, but we suggest you first think carefully about whether
    541 this license or the ordinary General Public License is the better
    542 strategy to use in any particular case, based on the explanations below.
    543 
    544   When we speak of free software, we are referring to freedom of use,
    545 not price.  Our General Public Licenses are designed to make sure that
    546 you have the freedom to distribute copies of free software (and charge
    547 for this service if you wish); that you receive source code or can get
    548 it if you want it; that you can change the software and use pieces of
    549 it in new free programs; and that you are informed that you can do
    550 these things.
    551 
    552   To protect your rights, we need to make restrictions that forbid
    553 distributors to deny you these rights or to ask you to surrender these
    554 rights.  These restrictions translate to certain responsibilities for
    555 you if you distribute copies of the library or if you modify it.
    556 
    557   For example, if you distribute copies of the library, whether gratis
    558 or for a fee, you must give the recipients all the rights that we gave
    559 you.  You must make sure that they, too, receive or can get the source
    560 code.  If you link other code with the library, you must provide
    561 complete object files to the recipients, so that they can relink them
    562 with the library after making changes to the library and recompiling
    563 it.  And you must show them these terms so they know their rights.
    564 
    565   We protect your rights with a two-step method: (1) we copyright the
    566 library, and (2) we offer you this license, which gives you legal
    567 permission to copy, distribute and/or modify the library.
    568 
    569   To protect each distributor, we want to make it very clear that
    570 there is no warranty for the free library.  Also, if the library is
    571 modified by someone else and passed on, the recipients should know
    572 that what they have is not the original version, so that the original
    573 author's reputation will not be affected by problems that might be
    574 introduced by others.
    575 
    577   Finally, software patents pose a constant threat to the existence of
    578 any free program.  We wish to make sure that a company cannot
    579 effectively restrict the users of a free program by obtaining a
    580 restrictive license from a patent holder.  Therefore, we insist that
    581 any patent license obtained for a version of the library must be
    582 consistent with the full freedom of use specified in this license.
    583 
    584   Most GNU software, including some libraries, is covered by the
    585 ordinary GNU General Public License.  This license, the GNU Lesser
    586 General Public License, applies to certain designated libraries, and
    587 is quite different from the ordinary General Public License.  We use
    588 this license for certain libraries in order to permit linking those
    589 libraries into non-free programs.
    590 
    591   When a program is linked with a library, whether statically or using
    592 a shared library, the combination of the two is legally speaking a
    593 combined work, a derivative of the original library.  The ordinary
    594 General Public License therefore permits such linking only if the
    595 entire combination fits its criteria of freedom.  The Lesser General
    596 Public License permits more lax criteria for linking other code with
    597 the library.
    598 
    599   We call this license the "Lesser" General Public License because it
    600 does Less to protect the user's freedom than the ordinary General
    601 Public License.  It also provides other free software developers Less
    602 of an advantage over competing non-free programs.  These disadvantages
    603 are the reason we use the ordinary General Public License for many
    604 libraries.  However, the Lesser license provides advantages in certain
    605 special circumstances.
    606 
    607   For example, on rare occasions, there may be a special need to
    608 encourage the widest possible use of a certain library, so that it becomes
    609 a de-facto standard.  To achieve this, non-free programs must be
    610 allowed to use the library.  A more frequent case is that a free
    611 library does the same job as widely used non-free libraries.  In this
    612 case, there is little to gain by limiting the free library to free
    613 software only, so we use the Lesser General Public License.
    614 
    615   In other cases, permission to use a particular library in non-free
    616 programs enables a greater number of people to use a large body of
    617 free software.  For example, permission to use the GNU C Library in
    618 non-free programs enables many more people to use the whole GNU
    619 operating system, as well as its variant, the GNU/Linux operating
    620 system.
    621 
    622   Although the Lesser General Public License is Less protective of the
    623 users' freedom, it does ensure that the user of a program that is
    624 linked with the Library has the freedom and the wherewithal to run
    625 that program using a modified version of the Library.
    626 
    627   The precise terms and conditions for copying, distribution and
    628 modification follow.  Pay close attention to the difference between a
    629 "work based on the library" and a "work that uses the library".  The
    630 former contains code derived from the library, whereas the latter must
    631 be combined with the library in order to run.
    632 
    634                   GNU LESSER GENERAL PUBLIC LICENSE
    635    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
    636 
    637   0. This License Agreement applies to any software library or other
    638 program which contains a notice placed by the copyright holder or
    639 other authorized party saying it may be distributed under the terms of
    640 this Lesser General Public License (also called "this License").
    641 Each licensee is addressed as "you".
    642 
    643   A "library" means a collection of software functions and/or data
    644 prepared so as to be conveniently linked with application programs
    645 (which use some of those functions and data) to form executables.
    646 
    647   The "Library", below, refers to any such software library or work
    648 which has been distributed under these terms.  A "work based on the
    649 Library" means either the Library or any derivative work under
    650 copyright law: that is to say, a work containing the Library or a
    651 portion of it, either verbatim or with modifications and/or translated
    652 straightforwardly into another language.  (Hereinafter, translation is
    653 included without limitation in the term "modification".)
    654 
    655   "Source code" for a work means the preferred form of the work for
    656 making modifications to it.  For a library, complete source code means
    657 all the source code for all modules it contains, plus any associated
    658 interface definition files, plus the scripts used to control compilation
    659 and installation of the library.
    660 
    661   Activities other than copying, distribution and modification are not
    662 covered by this License; they are outside its scope.  The act of
    663 running a program using the Library is not restricted, and output from
    664 such a program is covered only if its contents constitute a work based
    665 on the Library (independent of the use of the Library in a tool for
    666 writing it).  Whether that is true depends on what the Library does
    667 and what the program that uses the Library does.
    668 
    669   1. You may copy and distribute verbatim copies of the Library's
    670 complete source code as you receive it, in any medium, provided that
    671 you conspicuously and appropriately publish on each copy an
    672 appropriate copyright notice and disclaimer of warranty; keep intact
    673 all the notices that refer to this License and to the absence of any
    674 warranty; and distribute a copy of this License along with the
    675 Library.
    676 
    677   You may charge a fee for the physical act of transferring a copy,
    678 and you may at your option offer warranty protection in exchange for a
    679 fee.
    680 
    682   2. You may modify your copy or copies of the Library or any portion
    683 of it, thus forming a work based on the Library, and copy and
    684 distribute such modifications or work under the terms of Section 1
    685 above, provided that you also meet all of these conditions:
    686 
    687     a) The modified work must itself be a software library.
    688 
    689     b) You must cause the files modified to carry prominent notices
    690     stating that you changed the files and the date of any change.
    691 
    692     c) You must cause the whole of the work to be licensed at no
    693     charge to all third parties under the terms of this License.
    694 
    695     d) If a facility in the modified Library refers to a function or a
    696     table of data to be supplied by an application program that uses
    697     the facility, other than as an argument passed when the facility
    698     is invoked, then you must make a good faith effort to ensure that,
    699     in the event an application does not supply such function or
    700     table, the facility still operates, and performs whatever part of
    701     its purpose remains meaningful.
    702 
    703     (For example, a function in a library to compute square roots has
    704     a purpose that is entirely well-defined independent of the
    705     application.  Therefore, Subsection 2d requires that any
    706     application-supplied function or table used by this function must
    707     be optional: if the application does not supply it, the square
    708     root function must still compute square roots.)
    709 
    710 These requirements apply to the modified work as a whole.  If
    711 identifiable sections of that work are not derived from the Library,
    712 and can be reasonably considered independent and separate works in
    713 themselves, then this License, and its terms, do not apply to those
    714 sections when you distribute them as separate works.  But when you
    715 distribute the same sections as part of a whole which is a work based
    716 on the Library, the distribution of the whole must be on the terms of
    717 this License, whose permissions for other licensees extend to the
    718 entire whole, and thus to each and every part regardless of who wrote
    719 it.
    720 
    721 Thus, it is not the intent of this section to claim rights or contest
    722 your rights to work written entirely by you; rather, the intent is to
    723 exercise the right to control the distribution of derivative or
    724 collective works based on the Library.
    725 
    726 In addition, mere aggregation of another work not based on the Library
    727 with the Library (or with a work based on the Library) on a volume of
    728 a storage or distribution medium does not bring the other work under
    729 the scope of this License.
    730 
    731   3. You may opt to apply the terms of the ordinary GNU General Public
    732 License instead of this License to a given copy of the Library.  To do
    733 this, you must alter all the notices that refer to this License, so
    734 that they refer to the ordinary GNU General Public License, version 2,
    735 instead of to this License.  (If a newer version than version 2 of the
    736 ordinary GNU General Public License has appeared, then you can specify
    737 that version instead if you wish.)  Do not make any other change in
    738 these notices.
    739 
    741   Once this change is made in a given copy, it is irreversible for
    742 that copy, so the ordinary GNU General Public License applies to all
    743 subsequent copies and derivative works made from that copy.
    744 
    745   This option is useful when you wish to copy part of the code of
    746 the Library into a program that is not a library.
    747 
    748   4. You may copy and distribute the Library (or a portion or
    749 derivative of it, under Section 2) in object code or executable form
    750 under the terms of Sections 1 and 2 above provided that you accompany
    751 it with the complete corresponding machine-readable source code, which
    752 must be distributed under the terms of Sections 1 and 2 above on a
    753 medium customarily used for software interchange.
    754 
    755   If distribution of object code is made by offering access to copy
    756 from a designated place, then offering equivalent access to copy the
    757 source code from the same place satisfies the requirement to
    758 distribute the source code, even though third parties are not
    759 compelled to copy the source along with the object code.
    760 
    761   5. A program that contains no derivative of any portion of the
    762 Library, but is designed to work with the Library by being compiled or
    763 linked with it, is called a "work that uses the Library".  Such a
    764 work, in isolation, is not a derivative work of the Library, and
    765 therefore falls outside the scope of this License.
    766 
    767   However, linking a "work that uses the Library" with the Library
    768 creates an executable that is a derivative of the Library (because it
    769 contains portions of the Library), rather than a "work that uses the
    770 library".  The executable is therefore covered by this License.
    771 Section 6 states terms for distribution of such executables.
    772 
    773   When a "work that uses the Library" uses material from a header file
    774 that is part of the Library, the object code for the work may be a
    775 derivative work of the Library even though the source code is not.
    776 Whether this is true is especially significant if the work can be
    777 linked without the Library, or if the work is itself a library.  The
    778 threshold for this to be true is not precisely defined by law.
    779 
    780   If such an object file uses only numerical parameters, data
    781 structure layouts and accessors, and small macros and small inline
    782 functions (ten lines or less in length), then the use of the object
    783 file is unrestricted, regardless of whether it is legally a derivative
    784 work.  (Executables containing this object code plus portions of the
    785 Library will still fall under Section 6.)
    786 
    787   Otherwise, if the work is a derivative of the Library, you may
    788 distribute the object code for the work under the terms of Section 6.
    789 Any executables containing that work also fall under Section 6,
    790 whether or not they are linked directly with the Library itself.
    791 
    793   6. As an exception to the Sections above, you may also combine or
    794 link a "work that uses the Library" with the Library to produce a
    795 work containing portions of the Library, and distribute that work
    796 under terms of your choice, provided that the terms permit
    797 modification of the work for the customer's own use and reverse
    798 engineering for debugging such modifications.
    799 
    800   You must give prominent notice with each copy of the work that the
    801 Library is used in it and that the Library and its use are covered by
    802 this License.  You must supply a copy of this License.  If the work
    803 during execution displays copyright notices, you must include the
    804 copyright notice for the Library among them, as well as a reference
    805 directing the user to the copy of this License.  Also, you must do one
    806 of these things:
    807 
    808     a) Accompany the work with the complete corresponding
    809     machine-readable source code for the Library including whatever
    810     changes were used in the work (which must be distributed under
    811     Sections 1 and 2 above); and, if the work is an executable linked
    812     with the Library, with the complete machine-readable "work that
    813     uses the Library", as object code and/or source code, so that the
    814     user can modify the Library and then relink to produce a modified
    815     executable containing the modified Library.  (It is understood
    816     that the user who changes the contents of definitions files in the
    817     Library will not necessarily be able to recompile the application
    818     to use the modified definitions.)
    819 
    820     b) Use a suitable shared library mechanism for linking with the
    821     Library.  A suitable mechanism is one that (1) uses at run time a
    822     copy of the library already present on the user's computer system,
    823     rather than copying library functions into the executable, and (2)
    824     will operate properly with a modified version of the library, if
    825     the user installs one, as long as the modified version is
    826     interface-compatible with the version that the work was made with.
    827 
    828     c) Accompany the work with a written offer, valid for at
    829     least three years, to give the same user the materials
    830     specified in Subsection 6a, above, for a charge no more
    831     than the cost of performing this distribution.
    832 
    833     d) If distribution of the work is made by offering access to copy
    834     from a designated place, offer equivalent access to copy the above
    835     specified materials from the same place.
    836 
    837     e) Verify that the user has already received a copy of these
    838     materials or that you have already sent this user a copy.
    839 
    840   For an executable, the required form of the "work that uses the
    841 Library" must include any data and utility programs needed for
    842 reproducing the executable from it.  However, as a special exception,
    843 the materials to be distributed need not include anything that is
    844 normally distributed (in either source or binary form) with the major
    845 components (compiler, kernel, and so on) of the operating system on
    846 which the executable runs, unless that component itself accompanies
    847 the executable.
    848 
    849   It may happen that this requirement contradicts the license
    850 restrictions of other proprietary libraries that do not normally
    851 accompany the operating system.  Such a contradiction means you cannot
    852 use both them and the Library together in an executable that you
    853 distribute.
    854 
    856   7. You may place library facilities that are a work based on the
    857 Library side-by-side in a single library together with other library
    858 facilities not covered by this License, and distribute such a combined
    859 library, provided that the separate distribution of the work based on
    860 the Library and of the other library facilities is otherwise
    861 permitted, and provided that you do these two things:
    862 
    863     a) Accompany the combined library with a copy of the same work
    864     based on the Library, uncombined with any other library
    865     facilities.  This must be distributed under the terms of the
    866     Sections above.
    867 
    868     b) Give prominent notice with the combined library of the fact
    869     that part of it is a work based on the Library, and explaining
    870     where to find the accompanying uncombined form of the same work.
    871 
    872   8. You may not copy, modify, sublicense, link with, or distribute
    873 the Library except as expressly provided under this License.  Any
    874 attempt otherwise to copy, modify, sublicense, link with, or
    875 distribute the Library is void, and will automatically terminate your
    876 rights under this License.  However, parties who have received copies,
    877 or rights, from you under this License will not have their licenses
    878 terminated so long as such parties remain in full compliance.
    879 
    880   9. You are not required to accept this License, since you have not
    881 signed it.  However, nothing else grants you permission to modify or
    882 distribute the Library or its derivative works.  These actions are
    883 prohibited by law if you do not accept this License.  Therefore, by
    884 modifying or distributing the Library (or any work based on the
    885 Library), you indicate your acceptance of this License to do so, and
    886 all its terms and conditions for copying, distributing or modifying
    887 the Library or works based on it.
    888 
    889   10. Each time you redistribute the Library (or any work based on the
    890 Library), the recipient automatically receives a license from the
    891 original licensor to copy, distribute, link with or modify the Library
    892 subject to these terms and conditions.  You may not impose any further
    893 restrictions on the recipients' exercise of the rights granted herein.
    894 You are not responsible for enforcing compliance by third parties with
    895 this License.
    896 
    898   11. If, as a consequence of a court judgment or allegation of patent
    899 infringement or for any other reason (not limited to patent issues),
    900 conditions are imposed on you (whether by court order, agreement or
    901 otherwise) that contradict the conditions of this License, they do not
    902 excuse you from the conditions of this License.  If you cannot
    903 distribute so as to satisfy simultaneously your obligations under this
    904 License and any other pertinent obligations, then as a consequence you
    905 may not distribute the Library at all.  For example, if a patent
    906 license would not permit royalty-free redistribution of the Library by
    907 all those who receive copies directly or indirectly through you, then
    908 the only way you could satisfy both it and this License would be to
    909 refrain entirely from distribution of the Library.
    910 
    911 If any portion of this section is held invalid or unenforceable under any
    912 particular circumstance, the balance of the section is intended to apply,
    913 and the section as a whole is intended to apply in other circumstances.
    914 
    915 It is not the purpose of this section to induce you to infringe any
    916 patents or other property right claims or to contest validity of any
    917 such claims; this section has the sole purpose of protecting the
    918 integrity of the free software distribution system which is
    919 implemented by public license practices.  Many people have made
    920 generous contributions to the wide range of software distributed
    921 through that system in reliance on consistent application of that
    922 system; it is up to the author/donor to decide if he or she is willing
    923 to distribute software through any other system and a licensee cannot
    924 impose that choice.
    925 
    926 This section is intended to make thoroughly clear what is believed to
    927 be a consequence of the rest of this License.
    928 
    929   12. If the distribution and/or use of the Library is restricted in
    930 certain countries either by patents or by copyrighted interfaces, the
    931 original copyright holder who places the Library under this License may add
    932 an explicit geographical distribution limitation excluding those countries,
    933 so that distribution is permitted only in or among countries not thus
    934 excluded.  In such case, this License incorporates the limitation as if
    935 written in the body of this License.
    936 
    937   13. The Free Software Foundation may publish revised and/or new
    938 versions of the Lesser General Public License from time to time.
    939 Such new versions will be similar in spirit to the present version,
    940 but may differ in detail to address new problems or concerns.
    941 
    942 Each version is given a distinguishing version number.  If the Library
    943 specifies a version number of this License which applies to it and
    944 "any later version", you have the option of following the terms and
    945 conditions either of that version or of any later version published by
    946 the Free Software Foundation.  If the Library does not specify a
    947 license version number, you may choose any version ever published by
    948 the Free Software Foundation.
    949 
    951   14. If you wish to incorporate parts of the Library into other free
    952 programs whose distribution conditions are incompatible with these,
    953 write to the author to ask for permission.  For software which is
    954 copyrighted by the Free Software Foundation, write to the Free
    955 Software Foundation; we sometimes make exceptions for this.  Our
    956 decision will be guided by the two goals of preserving the free status
    957 of all derivatives of our free software and of promoting the sharing
    958 and reuse of software generally.
    959 
    960                             NO WARRANTY
    961 
    962   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
    963 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
    964 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
    965 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
    966 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
    967 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    968 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
    969 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
    970 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
    971 
    972   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
    973 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
    974 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
    975 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
    976 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
    977 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
    978 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
    979 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
    980 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
    981 DAMAGES.
    982 
    983                      END OF TERMS AND CONDITIONS
    984