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