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