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