Happy new year 2017!
[MUtilities.git] / LICENSE.html
blob414611d75c2332de3b22e77614d1ffd77ea1042b
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head>
3 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4 <title>GNU Lesser General Public License v2.1 - GNU Project - Free Software Foundation (FSF)</title>
5 <link rel="alternate" type="application/rdf+xml" href="http://www.gnu.org/licenses/old-licenses/lgpl-2.1.rdf">
6 </head>
7 <body>
8 <h3><a id="SEC1">GNU LESSER GENERAL PUBLIC LICENSE</a></h3>
9 <p>
10 Version 2.1, February 1999
11 </p>
13 <pre>Copyright (C) 1991, 1999 Free Software Foundation, Inc.
14 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
15 Everyone is permitted to copy and distribute verbatim copies
16 of this license document, but changing it is not allowed.
18 [This is the first released version of the Lesser GPL. It also counts
19 as the successor of the GNU Library Public License, version 2, hence
20 the version number 2.1.]
21 </pre>
24 <h3><a id="SEC2">Preamble</a></h3>
26 <p>
27 The licenses for most software are designed to take away your
28 freedom to share and change it. By contrast, the GNU General Public
29 Licenses are intended to guarantee your freedom to share and change
30 free software--to make sure the software is free for all its users.
31 </p>
32 <p>
33 This license, the Lesser General Public License, applies to some
34 specially designated software packages--typically libraries--of the
35 Free Software Foundation and other authors who decide to use it. You
36 can use it too, but we suggest you first think carefully about whether
37 this license or the ordinary General Public License is the better
38 strategy to use in any particular case, based on the explanations below.
39 </p>
40 <p>
41 When we speak of free software, we are referring to freedom of use,
42 not price. Our General Public Licenses are designed to make sure that
43 you have the freedom to distribute copies of free software (and charge
44 for this service if you wish); that you receive source code or can get
45 it if you want it; that you can change the software and use pieces of
46 it in new free programs; and that you are informed that you can do
47 these things.
48 </p>
49 <p>
50 To protect your rights, we need to make restrictions that forbid
51 distributors to deny you these rights or to ask you to surrender these
52 rights. These restrictions translate to certain responsibilities for
53 you if you distribute copies of the library or if you modify it.
54 </p>
55 <p>
56 For example, if you distribute copies of the library, whether gratis
57 or for a fee, you must give the recipients all the rights that we gave
58 you. You must make sure that they, too, receive or can get the source
59 code. If you link other code with the library, you must provide
60 complete object files to the recipients, so that they can relink them
61 with the library after making changes to the library and recompiling
62 it. And you must show them these terms so they know their rights.
63 </p>
64 <p>
65 We protect your rights with a two-step method: (1) we copyright the
66 library, and (2) we offer you this license, which gives you legal
67 permission to copy, distribute and/or modify the library.
68 </p>
69 <p>
70 To protect each distributor, we want to make it very clear that
71 there is no warranty for the free library. Also, if the library is
72 modified by someone else and passed on, the recipients should know
73 that what they have is not the original version, so that the original
74 author's reputation will not be affected by problems that might be
75 introduced by others.
76 </p>
77 <p>
78 Finally, software patents pose a constant threat to the existence of
79 any free program. We wish to make sure that a company cannot
80 effectively restrict the users of a free program by obtaining a
81 restrictive license from a patent holder. Therefore, we insist that
82 any patent license obtained for a version of the library must be
83 consistent with the full freedom of use specified in this license.
84 </p>
85 <p>
86 Most GNU software, including some libraries, is covered by the
87 ordinary GNU General Public License. This license, the GNU Lesser
88 General Public License, applies to certain designated libraries, and
89 is quite different from the ordinary General Public License. We use
90 this license for certain libraries in order to permit linking those
91 libraries into non-free programs.
92 </p>
93 <p>
94 When a program is linked with a library, whether statically or using
95 a shared library, the combination of the two is legally speaking a
96 combined work, a derivative of the original library. The ordinary
97 General Public License therefore permits such linking only if the
98 entire combination fits its criteria of freedom. The Lesser General
99 Public License permits more lax criteria for linking other code with
100 the library.
101 </p>
103 We call this license the "Lesser" General Public License because it
104 does Less to protect the user's freedom than the ordinary General
105 Public License. It also provides other free software developers Less
106 of an advantage over competing non-free programs. These disadvantages
107 are the reason we use the ordinary General Public License for many
108 libraries. However, the Lesser license provides advantages in certain
109 special circumstances.
110 </p>
112 For example, on rare occasions, there may be a special need to
113 encourage the widest possible use of a certain library, so that it becomes
114 a de-facto standard. To achieve this, non-free programs must be
115 allowed to use the library. A more frequent case is that a free
116 library does the same job as widely used non-free libraries. In this
117 case, there is little to gain by limiting the free library to free
118 software only, so we use the Lesser General Public License.
119 </p>
121 In other cases, permission to use a particular library in non-free
122 programs enables a greater number of people to use a large body of
123 free software. For example, permission to use the GNU C Library in
124 non-free programs enables many more people to use the whole GNU
125 operating system, as well as its variant, the GNU/Linux operating
126 system.
127 </p>
129 Although the Lesser General Public License is Less protective of the
130 users' freedom, it does ensure that the user of a program that is
131 linked with the Library has the freedom and the wherewithal to run
132 that program using a modified version of the Library.
133 </p>
135 The precise terms and conditions for copying, distribution and
136 modification follow. Pay close attention to the difference between a
137 "work based on the library" and a "work that uses the library". The
138 former contains code derived from the library, whereas the latter must
139 be combined with the library in order to run.
140 </p>
142 <h3><a id="SEC3">TERMS AND CONDITIONS FOR COPYING,
143 DISTRIBUTION AND MODIFICATION</a></h3>
147 <strong>0.</strong>
148 This License Agreement applies to any software library or other
149 program which contains a notice placed by the copyright holder or
150 other authorized party saying it may be distributed under the terms of
151 this Lesser General Public License (also called "this License").
152 Each licensee is addressed as "you".
153 </p>
155 A "library" means a collection of software functions and/or data
156 prepared so as to be conveniently linked with application programs
157 (which use some of those functions and data) to form executables.
158 </p>
160 The "Library", below, refers to any such software library or work
161 which has been distributed under these terms. A "work based on the
162 Library" means either the Library or any derivative work under
163 copyright law: that is to say, a work containing the Library or a
164 portion of it, either verbatim or with modifications and/or translated
165 straightforwardly into another language. (Hereinafter, translation is
166 included without limitation in the term "modification".)
167 </p>
169 "Source code" for a work means the preferred form of the work for
170 making modifications to it. For a library, complete source code means
171 all the source code for all modules it contains, plus any associated
172 interface definition files, plus the scripts used to control compilation
173 and installation of the library.
174 </p>
176 Activities other than copying, distribution and modification are not
177 covered by this License; they are outside its scope. The act of
178 running a program using the Library is not restricted, and output from
179 such a program is covered only if its contents constitute a work based
180 on the Library (independent of the use of the Library in a tool for
181 writing it). Whether that is true depends on what the Library does
182 and what the program that uses the Library does.
183 </p>
185 <strong>1.</strong>
186 You may copy and distribute verbatim copies of the Library's
187 complete source code as you receive it, in any medium, provided that
188 you conspicuously and appropriately publish on each copy an
189 appropriate copyright notice and disclaimer of warranty; keep intact
190 all the notices that refer to this License and to the absence of any
191 warranty; and distribute a copy of this License along with the
192 Library.
193 </p>
195 You may charge a fee for the physical act of transferring a copy,
196 and you may at your option offer warranty protection in exchange for a
197 fee.
198 </p>
200 <strong>2.</strong>
201 You may modify your copy or copies of the Library or any portion
202 of it, thus forming a work based on the Library, and copy and
203 distribute such modifications or work under the terms of Section 1
204 above, provided that you also meet all of these conditions:
205 </p>
207 <ul>
208 <li><strong>a)</strong>
209 The modified work must itself be a software library.</li>
210 <li><strong>b)</strong>
211 You must cause the files modified to carry prominent notices
212 stating that you changed the files and the date of any change.</li>
214 <li><strong>c)</strong>
215 You must cause the whole of the work to be licensed at no
216 charge to all third parties under the terms of this License.</li>
218 <li><strong>d)</strong>
219 If a facility in the modified Library refers to a function or a
220 table of data to be supplied by an application program that uses
221 the facility, other than as an argument passed when the facility
222 is invoked, then you must make a good faith effort to ensure that,
223 in the event an application does not supply such function or
224 table, the facility still operates, and performs whatever part of
225 its purpose remains meaningful.
227 (For example, a function in a library to compute square roots has
228 a purpose that is entirely well-defined independent of the
229 application. Therefore, Subsection 2d requires that any
230 application-supplied function or table used by this function must
231 be optional: if the application does not supply it, the square
232 root function must still compute square roots.)</p></li>
233 </ul>
236 These requirements apply to the modified work as a whole. If identifiable
237 sections of that work are not derived from the Library, and can be
238 reasonably considered independent and separate works in themselves, then
239 this License, and its terms, do not apply to those sections when you
240 distribute them as separate works. But when you distribute the same
241 sections as part of a whole which is a work based on the Library, the
242 distribution of the whole must be on the terms of this License, whose
243 permissions for other licensees extend to the entire whole, and thus to
244 each and every part regardless of who wrote it.
245 </p>
247 Thus, it is not the intent of this section to claim rights or contest your
248 rights to work written entirely by you; rather, the intent is to exercise
249 the right to control the distribution of derivative or collective works
250 based on the Library.
251 </p>
253 In addition, mere aggregation of another work not based on the Library with
254 the Library (or with a work based on the Library) on a volume of a storage
255 or distribution medium does not bring the other work under the scope of
256 this License.
257 </p>
259 <strong>3.</strong>
260 You may opt to apply the terms of the ordinary GNU General Public
261 License instead of this License to a given copy of the Library. To do
262 this, you must alter all the notices that refer to this License, so
263 that they refer to the ordinary GNU General Public License, version 2,
264 instead of to this License. (If a newer version than version 2 of the
265 ordinary GNU General Public License has appeared, then you can specify
266 that version instead if you wish.) Do not make any other change in
267 these notices.
268 </p>
270 Once this change is made in a given copy, it is irreversible for
271 that copy, so the ordinary GNU General Public License applies to all
272 subsequent copies and derivative works made from that copy.
273 </p>
275 This option is useful when you wish to copy part of the code of
276 the Library into a program that is not a library.
277 </p>
279 <strong>4.</strong>
280 You may copy and distribute the Library (or a portion or
281 derivative of it, under Section 2) in object code or executable form
282 under the terms of Sections 1 and 2 above provided that you accompany
283 it with the complete corresponding machine-readable source code, which
284 must be distributed under the terms of Sections 1 and 2 above on a
285 medium customarily used for software interchange.
286 </p>
288 If distribution of object code is made by offering access to copy
289 from a designated place, then offering equivalent access to copy the
290 source code from the same place satisfies the requirement to
291 distribute the source code, even though third parties are not
292 compelled to copy the source along with the object code.
293 </p>
295 <strong>5.</strong>
296 A program that contains no derivative of any portion of the
297 Library, but is designed to work with the Library by being compiled or
298 linked with it, is called a "work that uses the Library". Such a
299 work, in isolation, is not a derivative work of the Library, and
300 therefore falls outside the scope of this License.
301 </p>
303 However, linking a "work that uses the Library" with the Library
304 creates an executable that is a derivative of the Library (because it
305 contains portions of the Library), rather than a "work that uses the
306 library". The executable is therefore covered by this License.
307 Section 6 states terms for distribution of such executables.
308 </p>
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 </p>
318 If such an object file uses only numerical parameters, data
319 structure layouts and accessors, and small macros and small inline
320 functions (ten lines or less in length), then the use of the object
321 file is unrestricted, regardless of whether it is legally a derivative
322 work. (Executables containing this object code plus portions of the
323 Library will still fall under Section 6.)
324 </p>
326 Otherwise, if the work is a derivative of the Library, you may
327 distribute the object code for the work under the terms of Section 6.
328 Any executables containing that work also fall under Section 6,
329 whether or not they are linked directly with the Library itself.
330 </p>
332 <strong>6.</strong>
333 As an exception to the Sections above, you may also combine or
334 link a "work that uses the Library" with the Library to produce a
335 work containing portions of the Library, and distribute that work
336 under terms of your choice, provided that the terms permit
337 modification of the work for the customer's own use and reverse
338 engineering for debugging such modifications.
339 </p>
341 You must give prominent notice with each copy of the work that the
342 Library is used in it and that the Library and its use are covered by
343 this License. You must supply a copy of this License. If the work
344 during execution displays copyright notices, you must include the
345 copyright notice for the Library among them, as well as a reference
346 directing the user to the copy of this License. Also, you must do one
347 of these things:
348 </p>
350 <ul>
351 <li><strong>a)</strong> Accompany the work with the complete
352 corresponding machine-readable source code for the Library
353 including whatever changes were used in the work (which must be
354 distributed under Sections 1 and 2 above); and, if the work is an
355 executable linked with the Library, with the complete
356 machine-readable "work that uses the Library", as object code
357 and/or source code, so that the user can modify the Library and
358 then relink to produce a modified executable containing the
359 modified Library. (It is understood that the user who changes the
360 contents of definitions files in the Library will not necessarily
361 be able to recompile the application to use the modified
362 definitions.)</li>
364 <li><strong>b)</strong> Use a suitable shared library mechanism
365 for linking with the Library. A suitable mechanism is one that
366 (1) uses at run time a copy of the library already present on the
367 user's computer system, rather than copying library functions into
368 the executable, and (2) will operate properly with a modified
369 version of the library, if the user installs one, as long as the
370 modified version is interface-compatible with the version that the
371 work was made with.</li>
373 <li><strong>c)</strong> Accompany the work with a written offer,
374 valid for at least three years, to give the same user the
375 materials specified in Subsection 6a, above, for a charge no more
376 than the cost of performing this distribution.</li>
378 <li><strong>d)</strong> If distribution of the work is made by
379 offering access to copy from a designated place, offer equivalent
380 access to copy the above specified materials from the same
381 place.</li>
383 <li><strong>e)</strong> Verify that the user has already received
384 a copy of these materials or that you have already sent this user
385 a copy.</li>
386 </ul>
389 For an executable, the required form of the "work that uses the
390 Library" must include any data and utility programs needed for
391 reproducing the executable from it. However, as a special exception,
392 the materials to be distributed need not include anything that is
393 normally distributed (in either source or binary form) with the major
394 components (compiler, kernel, and so on) of the operating system on
395 which the executable runs, unless that component itself accompanies
396 the executable.
397 </p>
399 It may happen that this requirement contradicts the license
400 restrictions of other proprietary libraries that do not normally
401 accompany the operating system. Such a contradiction means you cannot
402 use both them and the Library together in an executable that you
403 distribute.
404 </p>
406 <strong>7.</strong> You may place library facilities that are a work
407 based on the Library side-by-side in a single library together with
408 other library facilities not covered by this License, and distribute
409 such a combined library, provided that the separate distribution of
410 the work based on the Library and of the other library facilities is
411 otherwise permitted, and provided that you do these two things:
412 </p>
414 <ul>
415 <li><strong>a)</strong> Accompany the combined library with a copy
416 of the same work based on the Library, uncombined with any other
417 library facilities. This must be distributed under the terms of
418 the Sections above.</li>
420 <li><strong>b)</strong> Give prominent notice with the combined
421 library of the fact that part of it is a work based on the
422 Library, and explaining where to find the accompanying uncombined
423 form of the same work.</li>
424 </ul>
427 <strong>8.</strong> You may not copy, modify, sublicense, link with,
428 or distribute the Library except as expressly provided under this
429 License. Any attempt otherwise to copy, modify, sublicense, link
430 with, or distribute the Library is void, and will automatically
431 terminate your rights under this License. However, parties who have
432 received copies, or rights, from you under this License will not have
433 their licenses terminated so long as such parties remain in full
434 compliance.
435 </p>
437 <strong>9.</strong>
438 You are not required to accept this License, since you have not
439 signed it. However, nothing else grants you permission to modify or
440 distribute the Library or its derivative works. These actions are
441 prohibited by law if you do not accept this License. Therefore, by
442 modifying or distributing the Library (or any work based on the
443 Library), you indicate your acceptance of this License to do so, and
444 all its terms and conditions for copying, distributing or modifying
445 the Library or works based on it.
446 </p>
448 <strong>10.</strong>
449 Each time you redistribute the Library (or any work based on the
450 Library), the recipient automatically receives a license from the
451 original licensor to copy, distribute, link with or modify the Library
452 subject to these terms and conditions. You may not impose any further
453 restrictions on the recipients' exercise of the rights granted herein.
454 You are not responsible for enforcing compliance by third parties with
455 this License.
456 </p>
458 <strong>11.</strong>
459 If, as a consequence of a court judgment or allegation of patent
460 infringement or for any other reason (not limited to patent issues),
461 conditions are imposed on you (whether by court order, agreement or
462 otherwise) that contradict the conditions of this License, they do not
463 excuse you from the conditions of this License. If you cannot
464 distribute so as to satisfy simultaneously your obligations under this
465 License and any other pertinent obligations, then as a consequence you
466 may not distribute the Library at all. For example, if a patent
467 license would not permit royalty-free redistribution of the Library by
468 all those who receive copies directly or indirectly through you, then
469 the only way you could satisfy both it and this License would be to
470 refrain entirely from distribution of the Library.
471 </p>
473 If any portion of this section is held invalid or unenforceable under any
474 particular circumstance, the balance of the section is intended to apply,
475 and the section as a whole is intended to apply in other circumstances.
476 </p>
478 It is not the purpose of this section to induce you to infringe any
479 patents or other property right claims or to contest validity of any
480 such claims; this section has the sole purpose of protecting the
481 integrity of the free software distribution system which is
482 implemented by public license practices. Many people have made
483 generous contributions to the wide range of software distributed
484 through that system in reliance on consistent application of that
485 system; it is up to the author/donor to decide if he or she is willing
486 to distribute software through any other system and a licensee cannot
487 impose that choice.
488 </p>
490 This section is intended to make thoroughly clear what is believed to
491 be a consequence of the rest of this License.
492 </p>
494 <strong>12.</strong>
495 If the distribution and/or use of the Library is restricted in
496 certain countries either by patents or by copyrighted interfaces, the
497 original copyright holder who places the Library under this License may add
498 an explicit geographical distribution limitation excluding those countries,
499 so that distribution is permitted only in or among countries not thus
500 excluded. In such case, this License incorporates the limitation as if
501 written in the body of this License.
502 </p>
504 <strong>13.</strong>
505 The Free Software Foundation may publish revised and/or new
506 versions of the Lesser General Public License from time to time.
507 Such new versions will be similar in spirit to the present version,
508 but may differ in detail to address new problems or concerns.
509 </p>
511 Each version is given a distinguishing version number. If the Library
512 specifies a version number of this License which applies to it and
513 "any later version", you have the option of following the terms and
514 conditions either of that version or of any later version published by
515 the Free Software Foundation. If the Library does not specify a
516 license version number, you may choose any version ever published by
517 the Free Software Foundation.
518 </p>
520 <strong>14.</strong>
521 If you wish to incorporate parts of the Library into other free
522 programs whose distribution conditions are incompatible with these,
523 write to the author to ask for permission. For software which is
524 copyrighted by the Free Software Foundation, write to the Free
525 Software Foundation; we sometimes make exceptions for this. Our
526 decision will be guided by the two goals of preserving the free status
527 of all derivatives of our free software and of promoting the sharing
528 and reuse of software generally.
529 </p>
531 <strong>NO WARRANTY</strong>
532 </p>
534 <strong>15.</strong>
535 BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
536 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
537 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
538 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
539 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
540 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
541 PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
542 LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
543 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
544 </p>
546 <strong>16.</strong>
547 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
548 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
549 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
550 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
551 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
552 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
553 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
554 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
555 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
556 DAMAGES.
557 </p>
559 <h3>END OF TERMS AND CONDITIONS</h3>
561 <h3><a id="SEC4">How to Apply These Terms to Your New
562 Libraries</a></h3>
564 If you develop a new library, and you want it to be of the greatest
565 possible use to the public, we recommend making it free software that
566 everyone can redistribute and change. You can do so by permitting
567 redistribution under these terms (or, alternatively, under the terms of the
568 ordinary General Public License).
569 </p>
571 To apply these terms, attach the following notices to the library. It is
572 safest to attach them to the start of each source file to most effectively
573 convey the exclusion of warranty; and each file should have at least the
574 "copyright" line and a pointer to where the full notice is found.
575 </p>
577 <pre><var>one line to give the library's name and an idea of what it does.</var>
578 Copyright (C) <var>year</var> <var>name of author</var>
580 This library is free software; you can redistribute it and/or
581 modify it under the terms of the GNU Lesser General Public
582 License as published by the Free Software Foundation; either
583 version 2.1 of the License, or (at your option) any later version.
585 This library is distributed in the hope that it will be useful,
586 but WITHOUT ANY WARRANTY; without even the implied warranty of
587 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
588 Lesser General Public License for more details.
590 You should have received a copy of the GNU Lesser General Public
591 License along with this library; if not, write to the Free Software
592 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
593 </pre>
596 Also add information on how to contact you by electronic and paper mail.
597 </p>
599 You should also get your employer (if you work as a programmer) or your
600 school, if any, to sign a "copyright disclaimer" for the library, if
601 necessary. Here is a sample; alter the names:
602 </p>
604 <pre>Yoyodyne, Inc., hereby disclaims all copyright interest in
605 the library `Frob' (a library for tweaking knobs) written
606 by James Random Hacker.
608 <var>signature of Ty Coon</var>, 1 April 1990
609 Ty Coon, President of Vice
610 </pre>
613 That's all there is to it!</p>
616 </body></html>