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