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