(|l)gpl-2.[01].tex: Remove the `\renewcommand{\theenumi}...' comments.
[cfd] / lgpl-2.1.tex
1 % \iffalse <meta-comment>
2 %
3 % The GNU Lesser General Public License as a LaTeX section
4 %
5 % (c) 1991, 1999 Free Software Foundation, Inc.
6 % Minor LaTeX formatting changes by Mark Wooding
7 %
8
9 % --- Chapter heading ---
10 %
11 % We don't know whether this ought to be a section or a chapter. Easy.
12 % We'll see if chapters are possible.
13 %
14 % \fi
15
16 \begingroup
17 \makeatletter
18
19 \edef\next#1#2#3{\relax
20 \ifx\chapter\@@undefined
21 \ifx\documentclass\@notprerr#2\else#3\fi
22 \else#1\fi
23 }
24
25 \expandafter\endgroup\next
26 {
27 \let\gpltoplevel\chapter
28 \let\gplsec\section
29 \let\gplend\endinput
30 }{
31 \let\gpltoplevel\section
32 \let\gplsec\subsection
33 \let\gplend\endinput
34 }{
35 \documentclass[11pt]{article}
36 \def\gpltoplevel#1{%
37 \vspace*{1in}%
38 \hbox to\hsize{\hfil\LARGE\bfseries#1\hfil}%
39 \vspace{1in}%
40 }
41 \let\gplsec\section
42 \def\gplend{\end{document}}
43 \advance\textwidth1in
44 \advance\oddsidemargin-.5in
45 \sloppy
46 \begin{document}
47 }
48
49 %^^A-------------------------------------------------------------------------
50 \gpltoplevel{The GNU Lesser General Public License}
51
52 The following is the text of the GNU Library General Public License, under
53 the terms of which this software is distributed.
54
55 \vspace{12pt}
56
57 \begin{center}
58 \textbf{GNU LESSER GENERAL PUBLIC LICENSE} \\
59 Version 2.1, February 1999
60 \end{center}
61
62 \begin{center}
63 {\parindent 0in
64
65 Copyright \copyright\ 1991, 1999 Free Software Foundation, Inc.
66
67 \bigskip
68
69 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
70
71 \bigskip
72
73 Everyone is permitted to copy and distribute verbatim copies
74 of this license document, but changing it is not allowed.
75 }
76 \end{center}
77
78 \begin{center}
79 {\bf\large Preamble}
80 \end{center}
81
82
83 The licenses for most software are designed to take away your freedom to
84 share and change it. By contrast, the GNU General Public Licenses are
85 intended to guarantee your freedom to share and change free software--to
86 make sure the software is free for all its users.
87
88 This license, the Lesser General Public License, applies to some specially
89 designated software packages---typically libraries---of the Free Software
90 Foundation and other authors who decide to use it. You can use it too, but
91 we suggest you first think carefully about whether this license or the
92 ordinary General Public License is the better strategy to use in any
93 particular case, based on the explanations below.
94
95 When we speak of free software, we are referring to freedom of use, not
96 price. Our General Public Licenses are designed to make sure that you have
97 the freedom to distribute copies of free software (and charge for this
98 service if you wish); that you receive source code or can get it if you want
99 it; that you can change the software and use pieces of it in new free
100 programs; and that you are informed that you can do these things.
101
102 To protect your rights, we need to make restrictions that forbid distributors
103 to deny you these rights or to ask you to surrender these rights. These
104 restrictions translate to certain responsibilities for you if you distribute
105 copies of the library or if you modify it.
106
107 For example, if you distribute copies of the library, whether gratis or for a
108 fee, you must give the recipients all the rights that we gave you. You must
109 make sure that they, too, receive or can get the source code. If you link
110 other code with the library, you must provide complete object files to the
111 recipients, so that they can relink them with the library after making
112 changes to the library and recompiling it. And you must show them these
113 terms so they know their rights.
114
115 We protect your rights with a two-step method: (1) we copyright the library,
116 and (2) we offer you this license, which gives you legal permission to copy,
117 distribute and/or modify the library.
118
119 To protect each distributor, we want to make it very clear that there is no
120 warranty for the free library. Also, if the library is modified by someone
121 else and passed on, the recipients should know that what they have is not
122 the original version, so that the original author's reputation will not be
123 affected by problems that might be introduced by others.
124
125 Finally, software patents pose a constant threat to the existence of any free
126 program. We wish to make sure that a company cannot effectively restrict the
127 users of a free program by obtaining a restrictive license from a patent
128 holder. Therefore, we insist that any patent license obtained for a version
129 of the library must be consistent with the full freedom of use specified in
130 this license.
131
132 Most GNU software, including some libraries, is covered by the ordinary GNU
133 General Public License. This license, the GNU Lesser General Public License,
134 applies to certain designated libraries, and is quite different from the
135 ordinary General Public License. We use this license for certain libraries
136 in order to permit linking those libraries into non-free programs.
137
138 When a program is linked with a library, whether statically or using a shared
139 library, the combination of the two is legally speaking a combined work, a
140 derivative of the original library. The ordinary General Public License
141 therefore permits such linking only if the entire combination fits its
142 criteria of freedom. The Lesser General Public License permits more lax
143 criteria for linking other code with the library.
144
145 We call this license the ``Lesser'' General Public License because it does
146 Less to protect the user's freedom than the ordinary General Public License.
147 It also provides other free software developers Less of an advantage over
148 competing non-free programs. These disadvantages are the reason we use the
149 ordinary General Public License for many libraries. However, the Lesser
150 license provides advantages in certain special circumstances.
151
152 For example, on rare occasions, there may be a special need to encourage the
153 widest possible use of a certain library, so that it becomes a de-facto
154 standard. To achieve this, non-free programs must be allowed to use the
155 library. A more frequent case is that a free library does the same job as
156 widely used non-free libraries. In this case, there is little to gain by
157 limiting the free library to free software only, so we use the Lesser General
158 Public License.
159
160 In other cases, permission to use a particular library in non-free programs
161 enables a greater number of people to use a large body of free software. For
162 example, permission to use the GNU C Library in non-free programs enables
163 many more people to use the whole GNU operating system, as well as its
164 variant, the GNU/Linux operating system.
165
166 Although the Lesser General Public License is Less protective of the users'
167 freedom, it does ensure that the user of a program that is linked with the
168 Library has the freedom and the wherewithal to run that program using a
169 modified version of the Library.
170
171 The precise terms and conditions for copying, distribution and modification
172 follow. Pay close attention to the difference between a ``work based on the
173 library'' and a ``work that uses the library''. The former contains code
174 derived from the library, whereas the latter must be combined with the
175 library in order to run.
176
177 \begin{center}
178 {\Large \sc Terms and Conditions For Copying, Distribution and
179 Modification}
180 \end{center}
181
182
183 \begin{enumerate}
184
185 \addtocounter{enumi}{-1}
186
187 \item
188
189 This License Agreement applies to any software library or other program which
190 contains a notice placed by the copyright holder or other authorized party
191 saying it may be distributed under the terms of this Lesser General Public
192 License (also called ``this License''). Each licensee is addressed as
193 ``you''.
194
195 A ``library'' means a collection of software functions and/or data
196 prepared so as to be conveniently linked with application programs
197 (which use some of those functions and data) to form executables.
198
199 The ``Library'', below, refers to any such software library or work
200 which has been distributed under these terms. A ``work based on the
201 Library'' means either the Library or any derivative work under
202 copyright law: that is to say, a work containing the Library or a
203 portion of it, either verbatim or with modifications and/or translated
204 straightforwardly into another language. (Hereinafter, translation is
205 included without limitation in the term ``modification''.)
206
207 ``Source code'' for a work means the preferred form of the work for
208 making modifications to it. For a library, complete source code means
209 all the source code for all modules it contains, plus any associated
210 interface definition files, plus the scripts used to control
211 compilation and installation of the library.
212
213 Activities other than copying, distribution and modification are not
214 covered by this License; they are outside its scope. The act of
215 running a program using the Library is not restricted, and output from
216 such a program is covered only if its contents constitute a work based
217 on the Library (independent of the use of the Library in a tool for
218 writing it). Whether that is true depends on what the Library does and
219 what the program that uses the Library does.
220
221 \item You may copy and distribute verbatim copies of the Library's complete
222 source code as you receive it, in any medium, provided that you
223 conspicuously and appropriately publish on each copy an appropriate
224 copyright notice and disclaimer of warranty; keep intact all the notices
225 that refer to this License and to the absence of any warranty; and
226 distribute a copy of this License along with the Library.
227
228 You may charge a fee for the physical act of transferring a copy, and you
229 may at your option offer warranty protection in exchange for a fee.
230
231 \item
232
233 You may modify your copy or copies of the Library or any portion of it,
234 thus forming a work based on the Library, and copy and distribute such
235 modifications or work under the terms of Section 1 above, provided that you
236 also meet all of these conditions:
237
238 \begin{enumerate}
239
240 \item
241
242 The modified work must itself be a software library.
243
244 \item
245
246 You must cause the files modified to carry prominent notices stating that
247 you changed the files and the date of any change.
248
249 \item
250
251 You must cause the whole of the work to be licensed at no charge to all
252 third parties under the terms of this License.
253
254 \item
255
256 If a facility in the modified Library refers to a function or a table of
257 data to be supplied by an application program that uses the facility, other
258 than as an argument passed when the facility is invoked, then you must make
259 a good faith effort to ensure that, in the event an application does not
260 supply such function or table, the facility still operates, and performs
261 whatever part of its purpose remains meaningful.
262
263 (For example, a function in a library to compute square roots has a purpose
264 that is entirely well-defined independent of the application. Therefore,
265 Subsection 2d requires that any application-supplied function or table used
266 by this function must be optional: if the application does not supply it, the
267 square root function must still compute square roots.)
268
269 \end{enumerate}
270
271
272 These requirements apply to the modified work as a whole. If
273 identifiable sections of that work are not derived from the Library,
274 and can be reasonably considered independent and separate works in
275 themselves, then this License, and its terms, do not apply to those
276 sections when you distribute them as separate works. But when you
277 distribute the same sections as part of a whole which is a work based
278 on the Library, the distribution of the whole must be on the terms of
279 this License, whose permissions for other licensees extend to the
280 entire whole, and thus to each and every part regardless of who wrote it.
281
282 Thus, it is not the intent of this section to claim rights or contest
283 your rights to work written entirely by you; rather, the intent is to
284 exercise the right to control the distribution of derivative or
285 collective works based on the Library.
286
287 In addition, mere aggregation of another work not based on the Library
288 with the Library (or with a work based on the Library) on a volume of a
289 storage or distribution medium does not bring the other work under the
290 scope of this License.
291
292 \item
293 You may opt to apply the terms of the ordinary GNU General Public
294 License instead of this License to a given copy of the Library. To do
295 this, you must alter all the notices that refer to this License, so
296 that they refer to the ordinary GNU General Public License, version 2,
297 instead of to this License. (If a newer version than version 2 of the
298 ordinary GNU General Public License has appeared, then you can specify
299 that version instead if you wish.) Do not make any other change in
300 these notices.
301
302 Once this change is made in a given copy, it is irreversible for that
303 copy, so the ordinary GNU General Public License applies to all
304 subsequent copies and derivative works made from that copy.
305
306 This option is useful when you wish to copy part of the code of the
307 Library into a program that is not a library.
308
309 \item
310 You may copy and distribute the Library (or a portion or derivative of it,
311 under Section 2) in object code or executable form under the terms of
312 Sections 1 and 2 above provided that you accompany it with the complete
313 corresponding machine-readable
314 source code, which must be distributed under the terms of Sections
315 1 and 2 above on a medium customarily used for software interchange.
316
317 If distribution of object code is made by offering
318 access to copy from a designated place, then offering equivalent
319 access to copy the source code from the same place satisfies the requirement to
320 distribute the source code, even though third parties are not
321 compelled to copy the source along with the object code.
322
323 \item
324 A program that contains no derivative of any portion of the
325 Library, but is designed to work with the Library by being compiled or
326 linked with it, is called a ``work that uses the Library''. Such a
327 work, in isolation, is not a derivative work of the Library, and
328 therefore falls outside the scope of this License.
329
330 However, linking a ``work that uses the Library'' with the Library
331 creates an executable that is a derivative of the Library (because it
332 contains portions of the Library), rather than a ``work that uses the
333 library''. The executable is therefore covered by this License.
334 Section 6 states terms for distribution of such executables.
335
336 When a ``work that uses the Library'' uses material from a header file
337 that is part of the Library, the object code for the work may be a
338 derivative work of the Library even though the source code is not.
339 Whether this is true is especially significant if the work can be
340 linked without the Library, or if the work is itself a library. The
341 threshold for this to be true is not precisely defined by law.
342
343 If such an object file uses only numerical parameters, data structure
344 layouts and accessors, and small macros and small inline functions (ten
345 lines or less in length), then the use of the object file is
346 unrestricted, regardless of whether it is legally a derivative work.
347 (Executables containing this object code plus portions of the Library
348 will still fall under Section 6.)
349
350 Otherwise, if the work is a derivative of the Library, you may
351 distribute the object code for the work under the terms of Section 6.
352 Any executables containing that work also fall under Section 6, whether
353 or not they are linked directly with the Library itself.
354
355 \item
356
357 As an exception to the Sections above, you may also combine or
358 link a ``work that uses the Library'' with the Library to produce a
359 work containing portions of the Library, and distribute that work under
360 terms of your choice, provided that the terms permit modification of
361 the work for the customer's own use and reverse engineering for
362 debugging such modifications.
363
364 You must give prominent notice with each copy of the work that the
365 Library is used in it and that the Library and its use are covered by
366 this License. You must supply a copy of this License. If the work
367 during execution displays copyright notices, you must include the
368 copyright notice for the Library among them, as well as a reference
369 directing the user to the copy of this License. Also, you must do one
370 of these things:
371
372 \begin{enumerate}
373
374 \item
375
376 Accompany the work with the complete corresponding
377 machine-readable source code for the Library including whatever
378 changes were used in the work (which must be distributed under
379 Sections 1 and 2 above); and, if the work is an executable linked
380 with the Library, with the complete machine-readable ``work that
381 uses the Library'', as object code and/or source code, so that
382 the user can modify the Library and then relink to produce a
383 modified executable containing the modified Library. (It is
384 understood that the user who changes the contents of definitions
385 files in the Library will not necessarily be able to recompile
386 the application to use the modified definitions.)
387
388 \item
389
390 Use a suitable shared library mechanism for linking with the Library. A
391 suitable mechanism is one that (1) uses at run time a copy of the library
392 already present on the user's computer system, rather than copying library
393 functions into the executable, and (2) will operate properly with a modified
394 version of the library, if the user installs one, as long as the modified
395 version is interface-compatible with the version that the work was made with.
396
397 \item
398
399 Accompany the work with a written offer, valid for at least three
400 years, to give the same user the materials specified in
401 Subsection 6a, above, for a charge no more than the cost of
402 performing this distribution.
403
404 \item
405
406 If distribution of the work is made by offering access to
407 copy from a designated place, offer equivalent access to copy the
408 above specified materials from the same place.
409
410 \item
411
412 Verify that the user has already received a copy of these
413 materials or that you have already sent this user a copy.
414
415 \end{enumerate}
416
417 For an executable, the required form of the ``work that uses the
418 Library'' must include any data and utility programs needed for
419 reproducing the executable from it. However, as a special exception,
420 the materials to be distributed need not include anything that is normally
421 distributed (in either source or binary form) with the major
422 components (compiler, kernel, and so on) of the operating system on
423 which the executable runs, unless that component itself accompanies
424 the executable.
425
426 It may happen that this requirement contradicts the license
427 restrictions of other proprietary libraries that do not normally
428 accompany the operating system. Such a contradiction means you cannot
429 use both them and the Library together in an executable that you
430 distribute.
431
432 \item
433
434 You may place library facilities that are a work based on the
435 Library side-by-side in a single library together with other library
436 facilities not covered by this License, and distribute such a combined
437 library, provided that the separate distribution of the work based on
438 the Library and of the other library facilities is otherwise
439 permitted, and provided that you do these two things:
440
441 \begin{enumerate}
442
443 \item
444 Accompany the combined library with a copy of the same work
445 based on the Library, uncombined with any other library
446 facilities. This must be distributed under the terms of the
447 Sections above.
448
449 \item
450 Give prominent notice with the combined library of the fact
451 that part of it is a work based on the Library, and explaining
452 where to find the accompanying uncombined form of the same work.
453
454 \end{enumerate}
455
456 \item
457
458 You may not copy, modify, sublicense, link with, or distribute the Library
459 except as expressly provided under this License. Any attempt otherwise
460 to copy, modify, sublicense, link with, or distribute the Library is
461 void, and will automatically terminate your rights under this License.
462 However, parties who have received copies, or rights, from you under
463 this License will not have their licenses terminated so long as such
464 parties remain in full compliance.
465
466 \item
467 You are not required to accept this License, since you have not
468 signed it. However, nothing else grants you permission to modify or
469 distribute the Library or its derivative works. These actions are
470 prohibited by law if you do not accept this License. Therefore, by
471 modifying or distributing the Library (or any work based on the
472 Library), you indicate your acceptance of this License to do so, and
473 all its terms and conditions for copying, distributing or modifying the
474 Library or works based on it.
475
476 \item
477
478 Each time you redistribute the Library (or any work based on the
479 Library), the recipient automatically receives a license from the
480 original licensor to copy, distribute, link with or modify the Library
481 subject to these terms and conditions. You may not impose any further
482 restrictions on the recipients' exercise of the rights granted herein.
483 You are not responsible for enforcing compliance by third parties with
484 this License.
485
486 \item
487 If, as a consequence of a court judgment or allegation of patent
488 infringement or for any other reason (not limited to patent issues),
489 conditions are imposed on you (whether by court order, agreement or
490 otherwise) that contradict the conditions of this License, they do not
491 excuse you from the conditions of this License. If you cannot
492 distribute so as to satisfy simultaneously your obligations under this
493 License and any other pertinent obligations, then as a consequence you
494 may not distribute the Library at all. For example, if a patent
495 license would not permit royalty-free redistribution of the Library by
496 all those who receive copies directly or indirectly through you, then
497 the only way you could satisfy both it and this License would be to
498 refrain entirely from distribution of the Library.
499
500 If any portion of this section is held invalid or unenforceable under
501 any particular circumstance, the balance of the section is intended to
502 apply, and the section as a whole is intended to apply in other
503 circumstances.
504
505 It is not the purpose of this section to induce you to infringe any
506 patents or other property right claims or to contest validity of any
507 such claims; this section has the sole purpose of protecting the
508 integrity of the free software distribution system which is
509 implemented by public license practices. Many people have made
510 generous contributions to the wide range of software distributed
511 through that system in reliance on consistent application of that
512 system; it is up to the author/donor to decide if he or she is willing
513 to distribute software through any other system and a licensee cannot impose
514 that choice.
515
516 This section is intended to make thoroughly clear what is believed to
517 be a consequence of the rest of this License.
518
519 \item
520 If the distribution and/or use of the Library is restricted in
521 certain countries either by patents or by copyrighted interfaces, the
522 original copyright holder who places the Library under this License
523 may add an explicit geographical distribution limitation excluding
524 those countries, so that distribution is permitted only in or among
525 countries not thus excluded. In such case, this License incorporates
526 the limitation as if written in the body of this License.
527
528 \item
529 The Free Software Foundation may publish revised and/or new versions
530 of the Lesser General Public License from time to time. Such new versions
531 will be similar in spirit to the present version, but may differ in detail to
532 address new problems or concerns.
533
534 Each version is given a distinguishing version number. If the Library
535 specifies a version number of this License which applies to it and ``any
536 later version'', you have the option of following the terms and conditions
537 either of that version or of any later version published by the Free
538 Software Foundation. If the Library does not specify a license version
539 number, you may choose any version ever published by the Free Software
540 Foundation.
541
542 \item
543 If you wish to incorporate parts of the Library into other free
544 programs whose distribution conditions are incompatible with these,
545 write to the author to ask for permission. For software which is
546 copyrighted by the Free Software Foundation, write to the Free Software
547 Foundation; we sometimes make exceptions for this. Our decision will
548 be guided by the two goals of preserving the free status of all
549 derivatives of our free software and of promoting the sharing and reuse
550 of software generally.
551
552 \begin{center}
553 {\Large\sc
554 No Warranty
555 }
556 \end{center}
557
558 \item
559 {\sc Because the Library is licensed free of charge, there is no warranty
560 for the Library, to the extent permitted by applicable law. Except when
561 otherwise stated in writing the copyright holders and/or other parties
562 provide the Library ``as is'' without warranty of any kind, either expressed
563 or implied, including, but not limited to, the implied warranties of
564 merchantability and fitness for a particular purpose. The entire risk as
565 to the quality and performance of the Library is with you. Should the
566 Library prove defective, you assume the cost of all necessary servicing,
567 repair or correction.}
568
569 \item
570 {\sc In no event unless required by applicable law or agreed to in writing
571 will any copyright holder, or any other party who may modify and/or
572 redistribute the Library as permitted above, be liable to you for damages,
573 including any general, special, incidental or consequential damages arising
574 out of the use or inability to use the Library (including but not limited
575 to loss of data or data being rendered inaccurate or losses sustained by
576 you or third parties or a failure of the Library to operate with any other
577 software), even if such holder or other party has been advised of the
578 possibility of such damages.}
579
580 \end{enumerate}
581
582
583 \begin{center}
584 {\Large\sc End of Terms and Conditions}
585 \end{center}
586
587
588 \pagebreak[2]
589
590 \section*{Appendix: How to Apply These Terms to Your New Libraries}
591
592 If you develop a new library, and you want it to be of the greatest possible
593 use to the public, we recommend making it free software that everyone can
594 redistribute and change. You can do so by permitting redistribution under
595 these terms (or, alternatively, under the terms of the ordinary General
596 Public License).
597
598 To apply these terms, attach the following notices to the library. It is
599 safest to attach them to the start of each source file to most effectively
600 convey the exclusion of warranty; and each file should have at least the
601 ``copyright'' line and a pointer to where the full notice is found.
602
603 \begin{verbatim}
604 <one line to give the library's name and a brief idea of what it does.>
605 Copyright (C) <year> <name of author>
606
607 This library is free software; you can redistribute it and/or
608 modify it under the terms of the GNU Lesser General Public
609 License as published by the Free Software Foundation; either
610 version 2.1 of the License, or (at your option) any later version.
611
612 This library is distributed in the hope that it will be useful,
613 but WITHOUT ANY WARRANTY; without even the implied warranty of
614 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
615 Lesser General Public License for more details.
616
617 You should have received a copy of the GNU Lesser General Public License
618 along with this library; if not, write to the Free Software Foundation,
619 Inc., 51 Franklin Street, Fifth Floor, Boston, MA +02110-1301, USA.
620 \end{verbatim}
621
622 Also add information on how to contact you by electronic and paper mail.
623
624 You should also get your employer (if you work as a programmer) or your
625 school, if any, to sign a ``copyright disclaimer'' for the library, if
626 necessary. Here is a sample; alter the names:
627
628 \begin{verbatim}
629 Yoyodyne, Inc., hereby disclaims all copyright interest in the
630 library `Frob' (a library for tweaking knobs) written by James
631 Random Hacker.
632
633 <signature of Ty Coon>, 1 April 1990
634 Ty Coon, President of Vice
635 \end{verbatim}
636
637 That's all there is to it!
638
639 \gplend