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