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