Debian Codegraph @

LICENSE

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