- add sources.
[platform/framework/web/crosswalk.git] / src / webkit / LICENSE
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 Tschalär, 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 \f
126   Finally, any free program is threatened constantly by software
127 patents.  We wish to avoid the danger that companies distributing free
128 software will individually obtain patent licenses, thus in effect
129 transforming the program into proprietary software.  To prevent this,
130 we have made it clear that any patent must be licensed for everyone's
131 free use or not licensed at all.
132
133   Most GNU software, including some libraries, is covered by the ordinary
134 GNU General Public License, which was designed for utility programs.  This
135 license, the GNU Library General Public License, applies to certain
136 designated libraries.  This license is quite different from the ordinary
137 one; be sure to read it in full, and don't assume that anything in it is
138 the same as in the ordinary license.
139
140   The reason we have a separate public license for some libraries is that
141 they blur the distinction we usually make between modifying or adding to a
142 program and simply using it.  Linking a program with a library, without
143 changing the library, is in some sense simply using the library, and is
144 analogous to running a utility program or application program.  However, in
145 a textual and legal sense, the linked executable is a combined work, a
146 derivative of the original library, and the ordinary General Public License
147 treats it as such.
148
149   Because of this blurred distinction, using the ordinary General
150 Public License for libraries did not effectively promote software
151 sharing, because most developers did not use the libraries.  We
152 concluded that weaker conditions might promote sharing better.
153
154   However, unrestricted linking of non-free programs would deprive the
155 users of those programs of all benefit from the free status of the
156 libraries themselves.  This Library General Public License is intended to
157 permit developers of non-free programs to use free libraries, while
158 preserving your freedom as a user of such programs to change the free
159 libraries that are incorporated in them.  (We have not seen how to achieve
160 this as regards changes in header files, but we have achieved it as regards
161 changes in the actual functions of the Library.)  The hope is that this
162 will lead to faster development of free libraries.
163
164   The precise terms and conditions for copying, distribution and
165 modification follow.  Pay close attention to the difference between a
166 "work based on the library" and a "work that uses the library".  The
167 former contains code derived from the library, while the latter only
168 works together with the library.
169
170   Note that it is possible for a library to be covered by the ordinary
171 General Public License rather than by this special one.
172 \f
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
177 contains a notice placed by the copyright holder or other authorized
178 party saying it may be distributed under the terms of this Library
179 General Public License (also called "this License").  Each licensee is
180 addressed as "you".
181
182   A "library" means a collection of software functions and/or data
183 prepared 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
187 which has been distributed under these terms.  A "work based on the
188 Library" means either the Library or any derivative work under
189 copyright law: that is to say, a work containing the Library or a
190 portion of it, either verbatim or with modifications and/or translated
191 straightforwardly into another language.  (Hereinafter, translation is
192 included without limitation in the term "modification".)
193
194   "Source code" for a work means the preferred form of the work for
195 making modifications to it.  For a library, complete source code means
196 all the source code for all modules it contains, plus any associated
197 interface definition files, plus the scripts used to control compilation
198 and installation of the library.
199
200   Activities other than copying, distribution and modification are not
201 covered by this License; they are outside its scope.  The act of
202 running a program using the Library is not restricted, and output from
203 such a program is covered only if its contents constitute a work based
204 on the Library (independent of the use of the Library in a tool for
205 writing it).  Whether that is true depends on what the Library does
206 and what the program that uses the Library does.
207   
208   1. You may copy and distribute verbatim copies of the Library's
209 complete source code as you receive it, in any medium, provided that
210 you conspicuously and appropriately publish on each copy an
211 appropriate copyright notice and disclaimer of warranty; keep intact
212 all the notices that refer to this License and to the absence of any
213 warranty; and distribute a copy of this License along with the
214 Library.
215
216   You may charge a fee for the physical act of transferring a copy,
217 and you may at your option offer warranty protection in exchange for a
218 fee.
219 \f
220   2. You may modify your copy or copies of the Library or any portion
221 of it, thus forming a work based on the Library, and copy and
222 distribute such modifications or work under the terms of Section 1
223 above, 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
248 These requirements apply to the modified work as a whole.  If
249 identifiable sections of that work are not derived from the Library,
250 and can be reasonably considered independent and separate works in
251 themselves, then this License, and its terms, do not apply to those
252 sections when you distribute them as separate works.  But when you
253 distribute the same sections as part of a whole which is a work based
254 on the Library, the distribution of the whole must be on the terms of
255 this License, whose permissions for other licensees extend to the
256 entire whole, and thus to each and every part regardless of who wrote
257 it.
258
259 Thus, it is not the intent of this section to claim rights or contest
260 your rights to work written entirely by you; rather, the intent is to
261 exercise the right to control the distribution of derivative or
262 collective works based on the Library.
263
264 In addition, mere aggregation of another work not based on the Library
265 with the Library (or with a work based on the Library) on a volume of
266 a storage or distribution medium does not bring the other work under
267 the scope of this License.
268
269   3. You may opt to apply the terms of the ordinary GNU General Public
270 License instead of this License to a given copy of the Library.  To do
271 this, you must alter all the notices that refer to this License, so
272 that they refer to the ordinary GNU General Public License, version 2,
273 instead of to this License.  (If a newer version than version 2 of the
274 ordinary GNU General Public License has appeared, then you can specify
275 that version instead if you wish.)  Do not make any other change in
276 these notices.
277 \f
278   Once this change is made in a given copy, it is irreversible for
279 that copy, so the ordinary GNU General Public License applies to all
280 subsequent copies and derivative works made from that copy.
281
282   This option is useful when you wish to copy part of the code of
283 the Library into a program that is not a library.
284
285   4. You may copy and distribute the Library (or a portion or
286 derivative of it, under Section 2) in object code or executable form
287 under the terms of Sections 1 and 2 above provided that you accompany
288 it with the complete corresponding machine-readable source code, which
289 must be distributed under the terms of Sections 1 and 2 above on a
290 medium customarily used for software interchange.
291
292   If distribution of object code is made by offering access to copy
293 from a designated place, then offering equivalent access to copy the
294 source code from the same place satisfies the requirement to
295 distribute the source code, even though third parties are not
296 compelled to copy the source along with the object code.
297
298   5. A program that contains no derivative of any portion of the
299 Library, but is designed to work with the Library by being compiled or
300 linked with it, is called a "work that uses the Library".  Such a
301 work, in isolation, is not a derivative work of the Library, and
302 therefore falls outside the scope of this License.
303
304   However, linking a "work that uses the Library" with the Library
305 creates an executable that is a derivative of the Library (because it
306 contains portions of the Library), rather than a "work that uses the
307 library".  The executable is therefore covered by this License.
308 Section 6 states terms for distribution of such executables.
309
310   When a "work that uses the Library" uses material from a header file
311 that is part of the Library, the object code for the work may be a
312 derivative work of the Library even though the source code is not.
313 Whether this is true is especially significant if the work can be
314 linked without the Library, or if the work is itself a library.  The
315 threshold for this to be true is not precisely defined by law.
316
317   If such an object file uses only numerical parameters, data
318 structure layouts and accessors, and small macros and small inline
319 functions (ten lines or less in length), then the use of the object
320 file is unrestricted, regardless of whether it is legally a derivative
321 work.  (Executables containing this object code plus portions of the
322 Library will still fall under Section 6.)
323
324   Otherwise, if the work is a derivative of the Library, you may
325 distribute the object code for the work under the terms of Section 6.
326 Any executables containing that work also fall under Section 6,
327 whether or not they are linked directly with the Library itself.
328 \f
329   6. As an exception to the Sections above, you may also compile or
330 link a "work that uses the Library" with the Library to produce a
331 work containing portions of the Library, and distribute that work
332 under terms of your choice, provided that the terms permit
333 modification of the work for the customer's own use and reverse
334 engineering for debugging such modifications.
335
336   You must give prominent notice with each copy of the work that the
337 Library is used in it and that the Library and its use are covered by
338 this License.  You must supply a copy of this License.  If the work
339 during execution displays copyright notices, you must include the
340 copyright notice for the Library among them, as well as a reference
341 directing the user to the copy of this License.  Also, you must do one
342 of 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
369 Library" must include any data and utility programs needed for
370 reproducing the executable from it.  However, as a special exception,
371 the source code distributed need not include anything that is normally
372 distributed (in either source or binary form) with the major
373 components (compiler, kernel, and so on) of the operating system on
374 which the executable runs, unless that component itself accompanies
375 the executable.
376
377   It may happen that this requirement contradicts the license
378 restrictions of other proprietary libraries that do not normally
379 accompany the operating system.  Such a contradiction means you cannot
380 use both them and the Library together in an executable that you
381 distribute.
382 \f
383   7. You may place library facilities that are a work based on the
384 Library side-by-side in a single library together with other library
385 facilities not covered by this License, and distribute such a combined
386 library, provided that the separate distribution of the work based on
387 the Library and of the other library facilities is otherwise
388 permitted, 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
400 the Library except as expressly provided under this License.  Any
401 attempt otherwise to copy, modify, sublicense, link with, or
402 distribute the Library is void, and will automatically terminate your
403 rights under this License.  However, parties who have received copies,
404 or rights, from you under this License will not have their licenses
405 terminated so long as such parties remain in full compliance.
406
407   9. You are not required to accept this License, since you have not
408 signed it.  However, nothing else grants you permission to modify or
409 distribute the Library or its derivative works.  These actions are
410 prohibited by law if you do not accept this License.  Therefore, by
411 modifying or distributing the Library (or any work based on the
412 Library), you indicate your acceptance of this License to do so, and
413 all its terms and conditions for copying, distributing or modifying
414 the Library or works based on it.
415
416   10. Each time you redistribute the Library (or any work based on the
417 Library), the recipient automatically receives a license from the
418 original licensor to copy, distribute, link with or modify the Library
419 subject to these terms and conditions.  You may not impose any further
420 restrictions on the recipients' exercise of the rights granted herein.
421 You are not responsible for enforcing compliance by third parties to
422 this License.
423 \f
424   11. If, as a consequence of a court judgment or allegation of patent
425 infringement or for any other reason (not limited to patent issues),
426 conditions are imposed on you (whether by court order, agreement or
427 otherwise) that contradict the conditions of this License, they do not
428 excuse you from the conditions of this License.  If you cannot
429 distribute so as to satisfy simultaneously your obligations under this
430 License and any other pertinent obligations, then as a consequence you
431 may not distribute the Library at all.  For example, if a patent
432 license would not permit royalty-free redistribution of the Library by
433 all those who receive copies directly or indirectly through you, then
434 the only way you could satisfy both it and this License would be to
435 refrain entirely from distribution of the Library.
436
437 If any portion of this section is held invalid or unenforceable under any
438 particular circumstance, the balance of the section is intended to apply,
439 and the section as a whole is intended to apply in other circumstances.
440
441 It is not the purpose of this section to induce you to infringe any
442 patents or other property right claims or to contest validity of any
443 such claims; this section has the sole purpose of protecting the
444 integrity of the free software distribution system which is
445 implemented by public license practices.  Many people have made
446 generous contributions to the wide range of software distributed
447 through that system in reliance on consistent application of that
448 system; it is up to the author/donor to decide if he or she is willing
449 to distribute software through any other system and a licensee cannot
450 impose that choice.
451
452 This section is intended to make thoroughly clear what is believed to
453 be a consequence of the rest of this License.
454
455   12. If the distribution and/or use of the Library is restricted in
456 certain countries either by patents or by copyrighted interfaces, the
457 original copyright holder who places the Library under this License may add
458 an explicit geographical distribution limitation excluding those countries,
459 so that distribution is permitted only in or among countries not thus
460 excluded.  In such case, this License incorporates the limitation as if
461 written in the body of this License.
462
463   13. The Free Software Foundation may publish revised and/or new
464 versions of the Library General Public License from time to time.
465 Such new versions will be similar in spirit to the present version,
466 but may differ in detail to address new problems or concerns.
467
468 Each version is given a distinguishing version number.  If the Library
469 specifies a version number of this License which applies to it and
470 "any later version", you have the option of following the terms and
471 conditions either of that version or of any later version published by
472 the Free Software Foundation.  If the Library does not specify a
473 license version number, you may choose any version ever published by
474 the Free Software Foundation.
475 \f
476   14. If you wish to incorporate parts of the Library into other free
477 programs whose distribution conditions are incompatible with these,
478 write to the author to ask for permission.  For software which is
479 copyrighted by the Free Software Foundation, write to the Free
480 Software Foundation; we sometimes make exceptions for this.  Our
481 decision will be guided by the two goals of preserving the free status
482 of all derivatives of our free software and of promoting the sharing
483 and reuse of software generally.
484
485                             NO WARRANTY
486
487   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
488 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
489 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
490 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
491 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
492 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
493 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
494 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
495 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
496
497   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
498 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
499 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
500 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
501 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
502 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
503 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
504 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
505 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
506 DAMAGES.
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
525 freedom to share and change it.  By contrast, the GNU General Public
526 Licenses are intended to guarantee your freedom to share and change
527 free software--to make sure the software is free for all its users.
528
529   This license, the Lesser General Public License, applies to some
530 specially designated software packages--typically libraries--of the
531 Free Software Foundation and other authors who decide to use it.  You
532 can use it too, but we suggest you first think carefully about whether
533 this license or the ordinary General Public License is the better
534 strategy 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,
537 not price.  Our General Public Licenses are designed to make sure that
538 you have the freedom to distribute copies of free software (and charge
539 for this service if you wish); that you receive source code or can get
540 it if you want it; that you can change the software and use pieces of
541 it in new free programs; and that you are informed that you can do
542 these things.
543
544   To protect your rights, we need to make restrictions that forbid
545 distributors to deny you these rights or to ask you to surrender these
546 rights.  These restrictions translate to certain responsibilities for
547 you 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
550 or for a fee, you must give the recipients all the rights that we gave
551 you.  You must make sure that they, too, receive or can get the source
552 code.  If you link other code with the library, you must provide
553 complete object files to the recipients, so that they can relink them
554 with the library after making changes to the library and recompiling
555 it.  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
558 library, and (2) we offer you this license, which gives you legal
559 permission to copy, distribute and/or modify the library.
560
561   To protect each distributor, we want to make it very clear that
562 there is no warranty for the free library.  Also, if the library is
563 modified by someone else and passed on, the recipients should know
564 that what they have is not the original version, so that the original
565 author's reputation will not be affected by problems that might be
566 introduced by others.
567 \f
568   Finally, software patents pose a constant threat to the existence of
569 any free program.  We wish to make sure that a company cannot
570 effectively restrict the users of a free program by obtaining a
571 restrictive license from a patent holder.  Therefore, we insist that
572 any patent license obtained for a version of the library must be
573 consistent with the full freedom of use specified in this license.
574
575   Most GNU software, including some libraries, is covered by the
576 ordinary GNU General Public License.  This license, the GNU Lesser
577 General Public License, applies to certain designated libraries, and
578 is quite different from the ordinary General Public License.  We use
579 this license for certain libraries in order to permit linking those
580 libraries into non-free programs.
581
582   When a program is linked with a library, whether statically or using
583 a shared library, the combination of the two is legally speaking a
584 combined work, a derivative of the original library.  The ordinary
585 General Public License therefore permits such linking only if the
586 entire combination fits its criteria of freedom.  The Lesser General
587 Public License permits more lax criteria for linking other code with
588 the library.
589
590   We call this license the "Lesser" General Public License because it
591 does Less to protect the user's freedom than the ordinary General
592 Public License.  It also provides other free software developers Less
593 of an advantage over competing non-free programs.  These disadvantages
594 are the reason we use the ordinary General Public License for many
595 libraries.  However, the Lesser license provides advantages in certain
596 special circumstances.
597
598   For example, on rare occasions, there may be a special need to
599 encourage the widest possible use of a certain library, so that it becomes
600 a de-facto standard.  To achieve this, non-free programs must be
601 allowed to use the library.  A more frequent case is that a free
602 library does the same job as widely used non-free libraries.  In this
603 case, there is little to gain by limiting the free library to free
604 software only, so we use the Lesser General Public License.
605
606   In other cases, permission to use a particular library in non-free
607 programs enables a greater number of people to use a large body of
608 free software.  For example, permission to use the GNU C Library in
609 non-free programs enables many more people to use the whole GNU
610 operating system, as well as its variant, the GNU/Linux operating
611 system.
612
613   Although the Lesser General Public License is Less protective of the
614 users' freedom, it does ensure that the user of a program that is
615 linked with the Library has the freedom and the wherewithal to run
616 that program using a modified version of the Library.
617
618   The precise terms and conditions for copying, distribution and
619 modification follow.  Pay close attention to the difference between a
620 "work based on the library" and a "work that uses the library".  The
621 former contains code derived from the library, whereas the latter must
622 be combined with the library in order to run.
623 \f
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
628 program which contains a notice placed by the copyright holder or
629 other authorized party saying it may be distributed under the terms of
630 this Lesser General Public License (also called "this License").
631 Each licensee is addressed as "you".
632
633   A "library" means a collection of software functions and/or data
634 prepared 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
638 which has been distributed under these terms.  A "work based on the
639 Library" means either the Library or any derivative work under
640 copyright law: that is to say, a work containing the Library or a
641 portion of it, either verbatim or with modifications and/or translated
642 straightforwardly into another language.  (Hereinafter, translation is
643 included without limitation in the term "modification".)
644
645   "Source code" for a work means the preferred form of the work for
646 making modifications to it.  For a library, complete source code means
647 all the source code for all modules it contains, plus any associated
648 interface definition files, plus the scripts used to control compilation
649 and installation of the library.
650
651   Activities other than copying, distribution and modification are not
652 covered by this License; they are outside its scope.  The act of
653 running a program using the Library is not restricted, and output from
654 such a program is covered only if its contents constitute a work based
655 on the Library (independent of the use of the Library in a tool for
656 writing it).  Whether that is true depends on what the Library does
657 and what the program that uses the Library does.
658
659   1. You may copy and distribute verbatim copies of the Library's
660 complete source code as you receive it, in any medium, provided that
661 you conspicuously and appropriately publish on each copy an
662 appropriate copyright notice and disclaimer of warranty; keep intact
663 all the notices that refer to this License and to the absence of any
664 warranty; and distribute a copy of this License along with the
665 Library.
666
667   You may charge a fee for the physical act of transferring a copy,
668 and you may at your option offer warranty protection in exchange for a
669 fee.
670 \f
671   2. You may modify your copy or copies of the Library or any portion
672 of it, thus forming a work based on the Library, and copy and
673 distribute such modifications or work under the terms of Section 1
674 above, 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
699 These requirements apply to the modified work as a whole.  If
700 identifiable sections of that work are not derived from the Library,
701 and can be reasonably considered independent and separate works in
702 themselves, then this License, and its terms, do not apply to those
703 sections when you distribute them as separate works.  But when you
704 distribute the same sections as part of a whole which is a work based
705 on the Library, the distribution of the whole must be on the terms of
706 this License, whose permissions for other licensees extend to the
707 entire whole, and thus to each and every part regardless of who wrote
708 it.
709
710 Thus, it is not the intent of this section to claim rights or contest
711 your rights to work written entirely by you; rather, the intent is to
712 exercise the right to control the distribution of derivative or
713 collective works based on the Library.
714
715 In addition, mere aggregation of another work not based on the Library
716 with the Library (or with a work based on the Library) on a volume of
717 a storage or distribution medium does not bring the other work under
718 the scope of this License.
719
720   3. You may opt to apply the terms of the ordinary GNU General Public
721 License instead of this License to a given copy of the Library.  To do
722 this, you must alter all the notices that refer to this License, so
723 that they refer to the ordinary GNU General Public License, version 2,
724 instead of to this License.  (If a newer version than version 2 of the
725 ordinary GNU General Public License has appeared, then you can specify
726 that version instead if you wish.)  Do not make any other change in
727 these notices.
728 \f
729   Once this change is made in a given copy, it is irreversible for
730 that copy, so the ordinary GNU General Public License applies to all
731 subsequent copies and derivative works made from that copy.
732
733   This option is useful when you wish to copy part of the code of
734 the Library into a program that is not a library.
735
736   4. You may copy and distribute the Library (or a portion or
737 derivative of it, under Section 2) in object code or executable form
738 under the terms of Sections 1 and 2 above provided that you accompany
739 it with the complete corresponding machine-readable source code, which
740 must be distributed under the terms of Sections 1 and 2 above on a
741 medium customarily used for software interchange.
742
743   If distribution of object code is made by offering access to copy
744 from a designated place, then offering equivalent access to copy the
745 source code from the same place satisfies the requirement to
746 distribute the source code, even though third parties are not
747 compelled to copy the source along with the object code.
748
749   5. A program that contains no derivative of any portion of the
750 Library, but is designed to work with the Library by being compiled or
751 linked with it, is called a "work that uses the Library".  Such a
752 work, in isolation, is not a derivative work of the Library, and
753 therefore falls outside the scope of this License.
754
755   However, linking a "work that uses the Library" with the Library
756 creates an executable that is a derivative of the Library (because it
757 contains portions of the Library), rather than a "work that uses the
758 library".  The executable is therefore covered by this License.
759 Section 6 states terms for distribution of such executables.
760
761   When a "work that uses the Library" uses material from a header file
762 that is part of the Library, the object code for the work may be a
763 derivative work of the Library even though the source code is not.
764 Whether this is true is especially significant if the work can be
765 linked without the Library, or if the work is itself a library.  The
766 threshold for this to be true is not precisely defined by law.
767
768   If such an object file uses only numerical parameters, data
769 structure layouts and accessors, and small macros and small inline
770 functions (ten lines or less in length), then the use of the object
771 file is unrestricted, regardless of whether it is legally a derivative
772 work.  (Executables containing this object code plus portions of the
773 Library will still fall under Section 6.)
774
775   Otherwise, if the work is a derivative of the Library, you may
776 distribute the object code for the work under the terms of Section 6.
777 Any executables containing that work also fall under Section 6,
778 whether or not they are linked directly with the Library itself.
779 \f
780   6. As an exception to the Sections above, you may also combine or
781 link a "work that uses the Library" with the Library to produce a
782 work containing portions of the Library, and distribute that work
783 under terms of your choice, provided that the terms permit
784 modification of the work for the customer's own use and reverse
785 engineering for debugging such modifications.
786
787   You must give prominent notice with each copy of the work that the
788 Library is used in it and that the Library and its use are covered by
789 this License.  You must supply a copy of this License.  If the work
790 during execution displays copyright notices, you must include the
791 copyright notice for the Library among them, as well as a reference
792 directing the user to the copy of this License.  Also, you must do one
793 of 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
828 Library" must include any data and utility programs needed for
829 reproducing the executable from it.  However, as a special exception,
830 the materials to be distributed need not include anything that is
831 normally distributed (in either source or binary form) with the major
832 components (compiler, kernel, and so on) of the operating system on
833 which the executable runs, unless that component itself accompanies
834 the executable.
835
836   It may happen that this requirement contradicts the license
837 restrictions of other proprietary libraries that do not normally
838 accompany the operating system.  Such a contradiction means you cannot
839 use both them and the Library together in an executable that you
840 distribute.
841 \f
842   7. You may place library facilities that are a work based on the
843 Library side-by-side in a single library together with other library
844 facilities not covered by this License, and distribute such a combined
845 library, provided that the separate distribution of the work based on
846 the Library and of the other library facilities is otherwise
847 permitted, 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
859 the Library except as expressly provided under this License.  Any
860 attempt otherwise to copy, modify, sublicense, link with, or
861 distribute the Library is void, and will automatically terminate your
862 rights under this License.  However, parties who have received copies,
863 or rights, from you under this License will not have their licenses
864 terminated so long as such parties remain in full compliance.
865
866   9. You are not required to accept this License, since you have not
867 signed it.  However, nothing else grants you permission to modify or
868 distribute the Library or its derivative works.  These actions are
869 prohibited by law if you do not accept this License.  Therefore, by
870 modifying or distributing the Library (or any work based on the
871 Library), you indicate your acceptance of this License to do so, and
872 all its terms and conditions for copying, distributing or modifying
873 the Library or works based on it.
874
875   10. Each time you redistribute the Library (or any work based on the
876 Library), the recipient automatically receives a license from the
877 original licensor to copy, distribute, link with or modify the Library
878 subject to these terms and conditions.  You may not impose any further
879 restrictions on the recipients' exercise of the rights granted herein.
880 You are not responsible for enforcing compliance by third parties with
881 this License.
882 \f
883   11. If, as a consequence of a court judgment or allegation of patent
884 infringement or for any other reason (not limited to patent issues),
885 conditions are imposed on you (whether by court order, agreement or
886 otherwise) that contradict the conditions of this License, they do not
887 excuse you from the conditions of this License.  If you cannot
888 distribute so as to satisfy simultaneously your obligations under this
889 License and any other pertinent obligations, then as a consequence you
890 may not distribute the Library at all.  For example, if a patent
891 license would not permit royalty-free redistribution of the Library by
892 all those who receive copies directly or indirectly through you, then
893 the only way you could satisfy both it and this License would be to
894 refrain entirely from distribution of the Library.
895
896 If any portion of this section is held invalid or unenforceable under any
897 particular circumstance, the balance of the section is intended to apply,
898 and the section as a whole is intended to apply in other circumstances.
899
900 It is not the purpose of this section to induce you to infringe any
901 patents or other property right claims or to contest validity of any
902 such claims; this section has the sole purpose of protecting the
903 integrity of the free software distribution system which is
904 implemented by public license practices.  Many people have made
905 generous contributions to the wide range of software distributed
906 through that system in reliance on consistent application of that
907 system; it is up to the author/donor to decide if he or she is willing
908 to distribute software through any other system and a licensee cannot
909 impose that choice.
910
911 This section is intended to make thoroughly clear what is believed to
912 be a consequence of the rest of this License.
913
914   12. If the distribution and/or use of the Library is restricted in
915 certain countries either by patents or by copyrighted interfaces, the
916 original copyright holder who places the Library under this License may add
917 an explicit geographical distribution limitation excluding those countries,
918 so that distribution is permitted only in or among countries not thus
919 excluded.  In such case, this License incorporates the limitation as if
920 written in the body of this License.
921
922   13. The Free Software Foundation may publish revised and/or new
923 versions of the Lesser General Public License from time to time.
924 Such new versions will be similar in spirit to the present version,
925 but may differ in detail to address new problems or concerns.
926
927 Each version is given a distinguishing version number.  If the Library
928 specifies a version number of this License which applies to it and
929 "any later version", you have the option of following the terms and
930 conditions either of that version or of any later version published by
931 the Free Software Foundation.  If the Library does not specify a
932 license version number, you may choose any version ever published by
933 the Free Software Foundation.
934 \f
935   14. If you wish to incorporate parts of the Library into other free
936 programs whose distribution conditions are incompatible with these,
937 write to the author to ask for permission.  For software which is
938 copyrighted by the Free Software Foundation, write to the Free
939 Software Foundation; we sometimes make exceptions for this.  Our
940 decision will be guided by the two goals of preserving the free status
941 of all derivatives of our free software and of promoting the sharing
942 and reuse of software generally.
943
944                             NO WARRANTY
945
946   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
947 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
948 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
949 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
950 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
951 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
952 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
953 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
954 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
955
956   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
957 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
958 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
959 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
960 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
961 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
962 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
963 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
964 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
965 DAMAGES.
966
967                      END OF TERMS AND CONDITIONS