]> git.ipfire.org Git - thirdparty/cups.git/blame - doc/help/license.html
Merge changes from CUPS 1.4svn-r7874.
[thirdparty/cups.git] / doc / help / license.html
CommitLineData
ef416fc2 1<HTML>
4744bd90 2<!-- SECTION: Getting Started -->
ef416fc2 3<HEAD>
4744bd90 4 <TITLE>Software License Agreement</TITLE>
ef416fc2 5</HEAD>
4744bd90 6<BODY>
ef416fc2 7
bc44d920 8<P ALIGN="CENTER">Copyright 2007 by Apple Inc.<BR>
91 Infinite Loop<BR>
10Cupertino, CA 95014 USA<BR>
ef416fc2 11<BR>
bc44d920 12WWW: <A HREF="http://www.cups.org/">http://www.cups.org/</A>
ef416fc2 13
4744bd90 14<H2 CLASS="title"><A NAME="INTRO">Introduction</A></H2>
ef416fc2 15
16<P>The Common UNIX Printing System<SUP>TM</SUP>,
17("CUPS<SUP>TM</SUP>"), is provided under the GNU General Public
18License ("GPL") and GNU Library General Public License ("LGPL"),
19Version 2, with exceptions for Apple operating systems and the
20OpenSSL toolkit. A copy of the exceptions and licenses follow
4744bd90 21this introduction.</P>
ef416fc2 22
26d47ec6 23<P>The GNU LGPL applies to the CUPS and CUPS Imaging libraries
24located in the "cups" and "filter" subdirectories of the CUPS
25source distribution and in the "cups" include directory and
26library files in the binary distributions. The GNU GPL applies to
27the remainder of the CUPS distribution, including the "pdftops"
28filter which is based upon Xpdf.</P>
ef416fc2 29
30<P>For those not familiar with the GNU GPL, the license basically
4744bd90 31allows you to:</P>
ef416fc2 32
33<UL>
34
35 <LI>Use the CUPS software at no charge.</LI>
36
37 <LI>Distribute verbatim copies of the software in source
38 or binary form.</LI>
39
40 <LI>Sell verbatim copies of the software for a media
41 fee, or sell support for the software.</LI>
42
ef416fc2 43</UL>
44
4744bd90 45<P>What this license <EM>does not</EM> allow you to do is make
ef416fc2 46changes or add features to CUPS and then sell a binary
4744bd90 47distribution without source code. You must provide source for any
26d47ec6 48changes or additions to the software, and all code must be
49provided under the GPL or LGPL as appropriate. The only
4744bd90 50exceptions to this are the portions of the CUPS software covered
51by the Apple operating system license exceptions outlined later
52in this license agreement.</P>
ef416fc2 53
54<P>The GNU LGPL relaxes the "link-to" restriction, allowing you
26d47ec6 55to develop applications that use the CUPS and CUPS Imaging
56libraries under other licenses and/or conditions as appropriate
57for your application, driver, or filter.</P>
ef416fc2 58
4744bd90 59
60<H2 CLASS="title"><A NAME="EXCEPTIONS">License Exceptions</A></H2>
ef416fc2 61
bc44d920 62<P>In addition, as the copyright holder of CUPS, Apple Inc. grants
63the following special exceptions:</P>
ef416fc2 64
65<OL>
66
67 <LI><B>Apple Operating System Development License
68 Exception</B>;
69
70 <OL TYPE="a">
71
72 <LI>Software that is developed by any person or
73 entity for an Apple Operating System ("Apple
74 OS-Developed Software"), including but not
75 limited to Apple and third party printer
76 drivers, filters, and backends for an Apple
77 Operating System, that is linked to the CUPS
78 imaging library or based on any sample filters
79 or backends provided with CUPS shall not be
80 considered to be a derivative work or collective
81 work based on the CUPS program and is exempt
82 from the mandatory source code release clauses
83 of the GNU GPL. You may therefore distribute
84 linked combinations of the CUPS imaging library
85 with Apple OS-Developed Software without
86 releasing the source code of the Apple
87 OS-Developed Software. You may also use sample
88 filters and backends provided with CUPS to
89 develop Apple OS-Developed Software without
90 releasing the source code of the Apple
91 OS-Developed Software.</LI>
92
93 <LI>An Apple Operating System means any
94 operating system software developed and/or
95 marketed by Apple Computer, Inc., including but
96 not limited to all existing releases and
97 versions of Apple's Darwin, Mac OS X, and Mac OS
98 X Server products and all follow-on releases and
99 future versions thereof.</LI>
100
101 <LI>This exception is only available for Apple
102 OS-Developed Software and does not apply to
103 software that is distributed for use on other
104 operating systems.</LI>
105
106 <LI>All CUPS software that falls under this
107 license exception have the following text at the
108 top of each source file:
109
110 <BLOCKQUOTE>This file is subject to the Apple
111 OS-Developed Software
112 exception.</BLOCKQUOTE></LI>
113
114 </OL>
115
116 <LI><B>OpenSSL Toolkit License Exception</B>;
117
118 <OL TYPE="a">
119
bc44d920 120 <LI>Apple Inc. explicitly allows the
ef416fc2 121 compilation and distribution of the CUPS
122 software with the OpenSSL Toolkit.</LI>
123
124 </OL>
125
126</OL>
127
128<P>No developer is required to provide these exceptions in a
4744bd90 129derived work.</P>
130
ef416fc2 131
f7deaa1a 132<H2 CLASS="title"><A NAME="KERBEROS">Kerberos Support Code</A></H2>
133
134<P>The Kerberos support code ("KSC") is copyright 2006 by Jelmer
135Vernooij and is provided 'as-is', without any express or implied
bc44d920 136warranty. In no event will the author or Apple Inc. be held liable
137for any damages arising from the use of the KSC.</P>
f7deaa1a 138
139<P>Sources files containing KSC have the following text at the top
140of each source file:</P>
141
142<BLOCKQUOTE>This file contains Kerberos support code, copyright
1432006 by Jelmer Vernooij.</BLOCKQUOTE>
144
145<P>The KSC copyright and license apply <EM>only</EM> to
146Kerberos-related feature code in CUPS. Such code is typically
147conditionally compiled based on the present of the
148<TT>HAVE_GSSAPI</TT> preprocessor definition.</P>
149
150<P>Permission is granted to anyone to use the KSC for any
151purpose, including commercial applications, and to alter it and
152redistribute it freely, subject to the following
153restrictions:</P>
154
155<OL>
156
157 <LI>The origin of the KSC must not be misrepresented; you
158 must not claim that you wrote the original software. If
159 you use the KSC in a product, an acknowledgment in the
160 product documentation would be appreciated but is not
161 required.</LI>
162
163 <LI>Altered source versions must be plainly marked as
164 such, and must not be misrepresented as being the
165 original software.</LI>
166
167 <LI>This notice may not be removed or altered from any
168 source distribution.</LI>
169
170</OL>
171
172
4744bd90 173<H2 CLASS="title"><A NAME="TRADEMARKS">Trademarks</A></H2>
ef416fc2 174
bc44d920 175<P>Apple Inc. has trademarked the Common UNIX
4744bd90 176Printing System, CUPS, and CUPS logo. You may use these names and
177logos in any direct port or binary distribution of CUPS. Please
bc44d920 178contact Apple Inc. for written permission to use them
4744bd90 179in derivative products. Our intention is to protect the value of
180these trademarks and ensure that any derivative product meets the
181same high-quality standards as the original.</P>
ef416fc2 182
4744bd90 183<H2 CLASS="title"><A NAME="GPL">GNU GENERAL PUBLIC LICENSE</A></H2>
ef416fc2 184
185<P>Version 2, June 1991
186
187<PRE>
188Copyright 1989, 1991 Free Software Foundation, Inc.
18959 Temple Place, Suite 330, Boston, MA 02111-1307 USA
190
191Everyone is permitted to copy and distribute verbatim
192copies of this license document, but changing it is not allowed.
193</PRE>
194
4744bd90 195<H3>Preamble</H3>
ef416fc2 196
197<P>The licenses for most software are designed to take away your
198freedom to share and change it. By contrast, the GNU General Public
199License is intended to guarantee your freedom to share and change free
200software--to make sure the software is free for all its users. This
201General Public License applies to most of the Free Software
202Foundation's software and to any other program whose authors commit to
203using it. (Some other Free Software Foundation software is covered by
204the GNU Library General Public License instead.) You can apply it to
205your programs, too.
206
207<P>When we speak of free software, we are referring to freedom, not
208price. Our General Public Licenses are designed to make sure that you
209have the freedom to distribute copies of free software (and charge for
210this service if you wish), that you receive source code or can get it
211if you want it, that you can change the software or use pieces of it
212in new free programs; and that you know you can do these things.
213
214<P>To protect your rights, we need to make restrictions that forbid
215anyone to deny you these rights or to ask you to surrender the rights.
216These restrictions translate to certain responsibilities for you if you
217distribute copies of the software, or if you modify it.
218
219<P>For example, if you distribute copies of such a program, whether
220gratis or for a fee, you must give the recipients all the rights that
221you have. You must make sure that they, too, receive or can get the
222source code. And you must show them these terms so they know their
223rights.
224
225<P>We protect your rights with two steps: (1) copyright the software, and
226(2) offer you this license which gives you legal permission to copy,
227distribute and/or modify the software.
228
229<P>Also, for each author's protection and ours, we want to make certain
230that everyone understands that there is no warranty for this free
231software. If the software is modified by someone else and passed on, we
232want its recipients to know that what they have is not the original, so
233that any problems introduced by others will not reflect on the original
234authors' reputations.
235
236<P>Finally, any free program is threatened constantly by software
237patents. We wish to avoid the danger that redistributors of a free
238program will individually obtain patent licenses, in effect making the
239program proprietary. To prevent this, we have made it clear that any
240patent must be licensed for everyone's free use or not licensed at all.
241
242<P>The precise terms and conditions for copying, distribution and
243modification follow.
244
4744bd90 245<H3>GNU GENERAL PUBLIC LICENSE<BR>
246TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H3>
ef416fc2 247
248<OL START="0">
249
250<LI>This License applies to any program or other work which contains
251a notice placed by the copyright holder saying it may be distributed
252under the terms of this General Public License. The "Program", below,
253refers to any such program or work, and a "work based on the Program"
254means either the Program or any derivative work under copyright law:
255that is to say, a work containing the Program or a portion of it,
256either verbatim or with modifications and/or translated into another
257language. (Hereinafter, translation is included without limitation in
258the term "modification".) Each licensee is addressed as "you".
259
260<P>Activities other than copying, distribution and modification are not
261covered by this License; they are outside its scope. The act of
262running the Program is not restricted, and the output from the Program
263is covered only if its contents constitute a work based on the
264Program (independent of having been made by running the Program).
265Whether that is true depends on what the Program does.
266
267<LI>You may copy and distribute verbatim copies of the Program's
268source code as you receive it, in any medium, provided that you
269conspicuously and appropriately publish on each copy an appropriate
270copyright notice and disclaimer of warranty; keep intact all the
271notices that refer to this License and to the absence of any warranty;
272and give any other recipients of the Program a copy of this License
273along with the Program.
274
275<P>You may charge a fee for the physical act of transferring a copy, and
276you may at your option offer warranty protection in exchange for a fee.
277
278<LI>You may modify your copy or copies of the Program or any portion
279of it, thus forming a work based on the Program, and copy and
280distribute such modifications or work under the terms of Section 1
281above, provided that you also meet all of these conditions:
282
283<OL TYPE="a">
284
285<LI>You must cause the modified files to carry prominent notices
286stating that you changed the files and the date of any change.
287
288<LI>You must cause any work that you distribute or publish, that in
289whole or in part contains or is derived from the Program or any
290part thereof, to be licensed as a whole at no charge to all third
291parties under the terms of this License.
292
293<LI>if the modified program normally reads commands interactively
294when run, you must cause it, when started running for such
295interactive use in the most ordinary way, to print or display an
296announcement including an appropriate copyright notice and a
297notice that there is no warranty (or else, saying that you provide
298a warranty) and that users may redistribute the program under
299these conditions, and telling the user how to view a copy of this
300License. (Exception: if the Program itself is interactive but
301does not normally print such an announcement, your work based on
302the Program is not required to print an announcement.)
303
304</OL>
305
306<P>These requirements apply to the modified work as a whole. If
307identifiable sections of that work are not derived from the Program,
308and can be reasonably considered independent and separate works in
309themselves, then this License, and its terms, do not apply to those
310sections when you distribute them as separate works. But when you
311distribute the same sections as part of a whole which is a work based
312on the Program, the distribution of the whole must be on the terms of
313this License, whose permissions for other licensees extend to the
314entire whole, and thus to each and every part regardless of who wrote it.
315
316<P>Thus, it is not the intent of this section to claim rights or contest
317your rights to work written entirely by you; rather, the intent is to
318exercise the right to control the distribution of derivative or
319collective works based on the Program.
320
321<P>In addition, mere aggregation of another work not based on the Program
322with the Program (or with a work based on the Program) on a volume of
323a storage or distribution medium does not bring the other work under
324the scope of this License.
325
326<LI>You may copy and distribute the Program (or a work based on it,
327under Section 2) in object code or executable form under the terms of
328Sections 1 and 2 above provided that you also do one of the following:
329
330<OL TYPE="a">
331
332<LI>Accompany it with the complete corresponding machine-readable
333source code, which must be distributed under the terms of Sections
3341 and 2 above on a medium customarily used for software interchange; or,
335
336<LI>Accompany it with a written offer, valid for at least three
337years, to give any third party, for a charge no more than your
338cost of physically performing source distribution, a complete
339machine-readable copy of the corresponding source code, to be
340distributed under the terms of Sections 1 and 2 above on a medium
341customarily used for software interchange; or,
342
343<LI>Accompany it with the information you received as to the offer
344to distribute corresponding source code. (This alternative is
345allowed only for noncommercial distribution and only if you
346received the program in object code or executable form with such
347an offer, in accord with Subsection b above.)
348
349</OL>
350
351<P>The source code for a work means the preferred form of the work for
352making modifications to it. For an executable work, complete source
353code means all the source code for all modules it contains, plus any
354associated interface definition files, plus the scripts used to
355control compilation and installation of the executable. However, as a
356special exception, the source code distributed need not include
357anything that is normally distributed (in either source or binary
358form) with the major components (compiler, kernel, and so on) of the
359operating system on which the executable runs, unless that component
360itself accompanies the executable.
361
362<P>If distribution of executable or object code is made by offering
363access to copy from a designated place, then offering equivalent
364access to copy the source code from the same place counts as
365distribution of the source code, even though third parties are not
366compelled to copy the source along with the object code.
367
368<LI>You may not copy, modify, sublicense, or distribute the Program
369except as expressly provided under this License. Any attempt
370otherwise to copy, modify, sublicense or distribute the Program is
371void, and will automatically terminate your rights under this License.
372However, parties who have received copies, or rights, from you under
373this License will not have their licenses terminated so long as such
374parties remain in full compliance.
375
376<LI>You are not required to accept this License, since you have not
377signed it. However, nothing else grants you permission to modify or
378distribute the Program or its derivative works. These actions are
379prohibited by law if you do not accept this License. Therefore, by
380modifying or distributing the Program (or any work based on the
381Program), you indicate your acceptance of this License to do so, and
382all its terms and conditions for copying, distributing or modifying
383the Program or works based on it.
384
385<LI>Each time you redistribute the Program (or any work based on the
386Program), the recipient automatically receives a license from the
387original licensor to copy, distribute or modify the Program subject to
388these terms and conditions. You may not impose any further
389restrictions on the recipients' exercise of the rights granted herein.
390You are not responsible for enforcing compliance by third parties to
391this License.
392
393<LI>If, as a consequence of a court judgment or allegation of patent
394infringement or for any other reason (not limited to patent issues),
395conditions are imposed on you (whether by court order, agreement or
396otherwise) that contradict the conditions of this License, they do not
397excuse you from the conditions of this License. If you cannot
398distribute so as to satisfy simultaneously your obligations under this
399License and any other pertinent obligations, then as a consequence you
400may not distribute the Program at all. For example, if a patent
401license would not permit royalty-free redistribution of the Program by
402all those who receive copies directly or indirectly through you, then
403the only way you could satisfy both it and this License would be to
404refrain entirely from distribution of the Program.
405
406<P>If any portion of this section is held invalid or unenforceable under
407any particular circumstance, the balance of the section is intended to
408apply and the section as a whole is intended to apply in other
409circumstances.
410
411<P>It is not the purpose of this section to induce you to infringe any
412patents or other property right claims or to contest validity of any
413such claims; this section has the sole purpose of protecting the
414integrity of the free software distribution system, which is
415implemented by public license practices. Many people have made
416generous contributions to the wide range of software distributed
417through that system in reliance on consistent application of that
418system; it is up to the author/donor to decide if he or she is willing
419to distribute software through any other system and a licensee cannot
420impose that choice.
421
422<P>This section is intended to make thoroughly clear what is believed to
423be a consequence of the rest of this License.
424
425<LI>If the distribution and/or use of the Program is restricted in
426certain countries either by patents or by copyrighted interfaces, the
427original copyright holder who places the Program under this License
428may add an explicit geographical distribution limitation excluding
429those countries, so that distribution is permitted only in or among
430countries not thus excluded. In such case, this License incorporates
431the limitation as if written in the body of this License.
432
433<LI>The Free Software Foundation may publish revised and/or new versions
434of the General Public License from time to time. Such new versions will
435be similar in spirit to the present version, but may differ in detail to
436address new problems or concerns.
437
438<P>Each version is given a distinguishing version number. If the Program
439specifies a version number of this License which applies to it and "any
440later version", you have the option of following the terms and conditions
441either of that version or of any later version published by the Free
442Software Foundation. If the Program does not specify a version number of
443this License, you may choose any version ever published by the Free Software
444Foundation.
445
446<LI>If you wish to incorporate parts of the Program into other free
447programs whose distribution conditions are different, write to the author
448to ask for permission. For software which is copyrighted by the Free
449Software Foundation, write to the Free Software Foundation; we sometimes
450make exceptions for this. Our decision will be guided by the two goals
451of preserving the free status of all derivatives of our free software and
452of promoting the sharing and reuse of software generally.
453
454</OL>
455
4744bd90 456<H3>NO WARRANTY</H3>
ef416fc2 457
458<OL START="11">
459
460<LI>BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
461FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
462OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
463PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
464OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
465MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
466TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
467PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
468REPAIR OR CORRECTION.
469
470<LI>IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
471WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
472REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
473INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
474OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
475TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
476YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
477PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
478POSSIBILITY OF SUCH DAMAGES.
479
480</OL>
481
4744bd90 482<H3>END OF TERMS AND CONDITIONS</H3>
ef416fc2 483
4744bd90 484<H3>How to Apply These Terms to Your New Programs</H3>
ef416fc2 485
486<P>If you develop a new program, and you want it to be of the greatest
487possible use to the public, the best way to achieve this is to make it
488free software which everyone can redistribute and change under these terms.
489
490<P>To do so, attach the following notices to the program. It is safest
491to attach them to the start of each source file to most effectively
492convey the exclusion of warranty; and each file should have at least
493the "copyright" line and a pointer to where the full notice is found.
494
495<PRE>
496<VAR>one line to give the program's name and an idea of what it does.</VAR>
497Copyright (C) <VAR>yyyy</VAR> <VAR>name of author</VAR>
498
499This program is free software; you can redistribute it and/or
500modify it under the terms of the GNU General Public License
501as published by the Free Software Foundation; either version 2
502of the License, or (at your option) any later version.
503
504This program is distributed in the hope that it will be useful,
505but WITHOUT ANY WARRANTY; without even the implied warranty of
506MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
507GNU General Public License for more details.
508
509You should have received a copy of the GNU General Public License
510along with this program; if not, write to the Free Software
511Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
512</PRE>
513
514<P>Also add information on how to contact you by electronic and paper mail.
515
516<P>If the program is interactive, make it output a short notice like this
517when it starts in an interactive mode:
518
519<PRE>
520Gnomovision version 69, Copyright (C) <VAR>year</VAR> <VAR>name of author</VAR>
521Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
522type `show w'. This is free software, and you are welcome
523to redistribute it under certain conditions; type `show c'
524for details.
525</PRE>
526
527<P>The hypothetical commands <SAMP>`show w'</SAMP> and <SAMP>`show c'</SAMP> should show
528the appropriate parts of the General Public License. Of course, the
529commands you use may be called something other than <SAMP>`show w'</SAMP> and
530<SAMP>`show c'</SAMP>; they could even be mouse-clicks or menu items--whatever
531suits your program.
532
533<P>You should also get your employer (if you work as a programmer) or your
534school, if any, to sign a "copyright disclaimer" for the program, if
535necessary. Here is a sample; alter the names:
536
537<PRE>
538Yoyodyne, Inc., hereby disclaims all copyright
539interest in the program `Gnomovision'
540(which makes passes at compilers) written
541by James Hacker.
542
543<VAR>signature of Ty Coon</VAR>, 1 April 1989
544Ty Coon, President of Vice
545</PRE>
546
4744bd90 547<H2 CLASS="title"><A NAME="LGPL">GNU LIBRARY GENERAL PUBLIC LICENSE</A></H2>
ef416fc2 548
549<P>Version 2, June 1991
550
551<PRE>
552Copyright (C) 1991 Free Software Foundation, Inc.
55359 Temple Place - Suite 330, Boston, MA 02111-1307, USA
554Everyone is permitted to copy and distribute verbatim copies
555of this license document, but changing it is not allowed.
556
557[This is the first released version of the library GPL. It is
558 numbered 2 because it goes with version 2 of the ordinary GPL.]
559</PRE>
560
4744bd90 561<H3>Preamble</H3>
ef416fc2 562
563<P>The licenses for most software are designed to take away your
564freedom to share and change it. By contrast, the GNU General Public
565Licenses are intended to guarantee your freedom to share and change
566free software--to make sure the software is free for all its users.
567
568<P>This license, the Library General Public License, applies to some
569specially designated Free Software Foundation software, and to any
570other libraries whose authors decide to use it. You can use it for
571your libraries, too.
572
573<P>When we speak of free software, we are referring to freedom, not
574price. Our General Public Licenses are designed to make sure that you
575have the freedom to distribute copies of free software (and charge for
576this service if you wish), that you receive source code or can get it
577if you want it, that you can change the software or use pieces of it
578in new free programs; and that you know you can do these things.
579
580<P>To protect your rights, we need to make restrictions that forbid
581anyone to deny you these rights or to ask you to surrender the rights.
582These restrictions translate to certain responsibilities for you if
583you distribute copies of the library, or if you modify it.
584
585<P>For example, if you distribute copies of the library, whether gratis
586or for a fee, you must give the recipients all the rights that we gave
587you. You must make sure that they, too, receive or can get the source
588code. If you link a program with the library, you must provide
589complete object files to the recipients so that they can relink them
590with the library, after making changes to the library and recompiling
591it. And you must show them these terms so they know their rights.
592
593<P>Our method of protecting your rights has two steps: (1) copyright
594the library, and (2) offer you this license which gives you legal
595permission to copy, distribute and/or modify the library.
596
597<P>Also, for each distributor's protection, we want to make certain
598that everyone understands that there is no warranty for this free
599library. If the library is modified by someone else and passed on, we
600want its recipients to know that what they have is not the original
601version, so that any problems introduced by others will not reflect on
602the original authors' reputations.
603
604<P>Finally, any free program is threatened constantly by software
605patents. We wish to avoid the danger that companies distributing free
606software will individually obtain patent licenses, thus in effect
607transforming the program into proprietary software. To prevent this,
608we have made it clear that any patent must be licensed for everyone's
609free use or not licensed at all.
610
611<P>Most GNU software, including some libraries, is covered by the ordinary
612GNU General Public License, which was designed for utility programs. This
613license, the GNU Library General Public License, applies to certain
614designated libraries. This license is quite different from the ordinary
615one; be sure to read it in full, and don't assume that anything in it is
616the same as in the ordinary license.
617
618<P>The reason we have a separate public license for some libraries is that
619they blur the distinction we usually make between modifying or adding to a
620program and simply using it. Linking a program with a library, without
621changing the library, is in some sense simply using the library, and is
622analogous to running a utility program or application program. However, in
623a textual and legal sense, the linked executable is a combined work, a
624derivative of the original library, and the ordinary General Public License
625treats it as such.
626
627<P>Because of this blurred distinction, using the ordinary General
628Public License for libraries did not effectively promote software
629sharing, because most developers did not use the libraries. We
630concluded that weaker conditions might promote sharing better.
631
632<P>However, unrestricted linking of non-free programs would deprive the
633users of those programs of all benefit from the free status of the
634libraries themselves. This Library General Public License is intended to
635permit developers of non-free programs to use free libraries, while
636preserving your freedom as a user of such programs to change the free
637libraries that are incorporated in them. (We have not seen how to achieve
638this as regards changes in header files, but we have achieved it as regards
639changes in the actual functions of the Library.) The hope is that this
640will lead to faster development of free libraries.
641
642<P>The precise terms and conditions for copying, distribution and
643modification follow. Pay close attention to the difference between a
644"work based on the library" and a "work that uses the library". The
645former contains code derived from the library, while the latter only
646works together with the library.
647
648<P>Note that it is possible for a library to be covered by the ordinary
649General Public License rather than by this special one.
650
4744bd90 651<H3>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</H3>
ef416fc2 652
653<P><STRONG>0.</STRONG>
654This License Agreement applies to any software library which
655contains a notice placed by the copyright holder or other authorized
656party saying it may be distributed under the terms of this Library
657General Public License (also called "this License"). Each licensee is
658addressed as "you".
659
660<P>A "library" means a collection of software functions and/or data
661prepared so as to be conveniently linked with application programs
662(which use some of those functions and data) to form executables.
663
664<P>The "Library", below, refers to any such software library or work
665which has been distributed under these terms. A "work based on the
666Library" means either the Library or any derivative work under
667copyright law: that is to say, a work containing the Library or a
668portion of it, either verbatim or with modifications and/or translated
669straightforwardly into another language. (Hereinafter, translation is
670included without limitation in the term "modification".)
671
672<P>"Source code" for a work means the preferred form of the work for
673making modifications to it. For a library, complete source code means
674all the source code for all modules it contains, plus any associated
675interface definition files, plus the scripts used to control compilation
676and installation of the library.
677
678<P>Activities other than copying, distribution and modification are not
679covered by this License; they are outside its scope. The act of
680running a program using the Library is not restricted, and output from
681such a program is covered only if its contents constitute a work based
682on the Library (independent of the use of the Library in a tool for
683writing it). Whether that is true depends on what the Library does
684and what the program that uses the Library does.
685
686<P><STRONG>1.</STRONG>
687You may copy and distribute verbatim copies of the Library's
688complete source code as you receive it, in any medium, provided that
689you conspicuously and appropriately publish on each copy an
690appropriate copyright notice and disclaimer of warranty; keep intact
691all the notices that refer to this License and to the absence of any
692warranty; and distribute a copy of this License along with the
693Library.
694
695<P>You may charge a fee for the physical act of transferring a copy,
696and you may at your option offer warranty protection in exchange for a
697fee.
698
699<P><STRONG>2.</STRONG>
700You may modify your copy or copies of the Library or any portion
701of it, thus forming a work based on the Library, and copy and
702distribute such modifications or work under the terms of Section 1
703above, provided that you also meet all of these conditions:
704
705<OL TYPE="a">
706
707 <LI>The modified work must itself be a software library.
708
709 <P>
710 <LI>You must cause the files modified to carry prominent notices
711 stating that you changed the files and the date of any change.
712
713 <P>
714 <LI>You must cause the whole of the work to be licensed at no
715 charge to all third parties under the terms of this License.
716
717 <P>
718 <LI>If a facility in the modified Library refers to a function or a
719 table of data to be supplied by an application program that uses
720 the facility, other than as an argument passed when the facility
721 is invoked, then you must make a good faith effort to ensure that,
722 in the event an application does not supply such function or
723 table, the facility still operates, and performs whatever part of
724 its purpose remains meaningful.
725
726 <P>(For example, a function in a library to compute square roots has
727 a purpose that is entirely well-defined independent of the
728 application. Therefore, Subsection 2d requires that any
729 application-supplied function or table used by this function must
730 be optional: if the application does not supply it, the square
731 root function must still compute square roots.)
732
733</OL>
734
735<P>These requirements apply to the modified work as a whole. If
736identifiable sections of that work are not derived from the Library,
737and can be reasonably considered independent and separate works in
738themselves, then this License, and its terms, do not apply to those
739sections when you distribute them as separate works. But when you
740distribute the same sections as part of a whole which is a work based
741on the Library, the distribution of the whole must be on the terms of
742this License, whose permissions for other licensees extend to the
743entire whole, and thus to each and every part regardless of who wrote
744it.
745
746<P>Thus, it is not the intent of this section to claim rights or contest
747your rights to work written entirely by you; rather, the intent is to
748exercise the right to control the distribution of derivative or
749collective works based on the Library.
750
751<P>In addition, mere aggregation of another work not based on the Library
752with the Library (or with a work based on the Library) on a volume of
753a storage or distribution medium does not bring the other work under
754the scope of this License.
755
756<P><STRONG>3.</STRONG>
757You may opt to apply the terms of the ordinary GNU General Public
758License instead of this License to a given copy of the Library. To do
759this, you must alter all the notices that refer to this License, so
760that they refer to the ordinary GNU General Public License, version 2,
761instead of to this License. (If a newer version than version 2 of the
762ordinary GNU General Public License has appeared, then you can specify
763that version instead if you wish.) Do not make any other change in
764these notices.
765
766<P>Once this change is made in a given copy, it is irreversible for
767that copy, so the ordinary GNU General Public License applies to all
768subsequent copies and derivative works made from that copy.
769
770<P>This option is useful when you wish to copy part of the code of
771the Library into a program that is not a library.
772
773<P><STRONG>4.</STRONG>
774You may copy and distribute the Library (or a portion or
775derivative of it, under Section 2) in object code or executable form
776under the terms of Sections 1 and 2 above provided that you accompany
777it with the complete corresponding machine-readable source code, which
778must be distributed under the terms of Sections 1 and 2 above on a
779medium customarily used for software interchange.
780
781<P>If distribution of object code is made by offering access to copy
782from a designated place, then offering equivalent access to copy the
783source code from the same place satisfies the requirement to
784distribute the source code, even though third parties are not
785compelled to copy the source along with the object code.
786
787<P><STRONG>5.</STRONG>
788A program that contains no derivative of any portion of the
789Library, but is designed to work with the Library by being compiled or
790linked with it, is called a "work that uses the Library". Such a
791work, in isolation, is not a derivative work of the Library, and
792therefore falls outside the scope of this License.
793
794<P>However, linking a "work that uses the Library" with the Library
795creates an executable that is a derivative of the Library (because it
796contains portions of the Library), rather than a "work that uses the
797library". The executable is therefore covered by this License.
798Section 6 states terms for distribution of such executables.
799
800<P>When a "work that uses the Library" uses material from a header file
801that is part of the Library, the object code for the work may be a
802derivative work of the Library even though the source code is not.
803Whether this is true is especially significant if the work can be
804linked without the Library, or if the work is itself a library. The
805threshold for this to be true is not precisely defined by law.
806
807<P>If such an object file uses only numerical parameters, data
808structure layouts and accessors, and small macros and small inline
809functions (ten lines or less in length), then the use of the object
810file is unrestricted, regardless of whether it is legally a derivative
811work. (Executables containing this object code plus portions of the
812Library will still fall under Section 6.)
813
814<P>Otherwise, if the work is a derivative of the Library, you may
815distribute the object code for the work under the terms of Section 6.
816Any executables containing that work also fall under Section 6,
817whether or not they are linked directly with the Library itself.
818
819<P><STRONG>6.</STRONG>
820As an exception to the Sections above, you may also compile or
821link a "work that uses the Library" with the Library to produce a
822work containing portions of the Library, and distribute that work
823under terms of your choice, provided that the terms permit
824modification of the work for the customer's own use and reverse
825engineering for debugging such modifications.
826
827<P>You must give prominent notice with each copy of the work that the
828Library is used in it and that the Library and its use are covered by
829this License. You must supply a copy of this License. If the work
830during execution displays copyright notices, you must include the
831copyright notice for the Library among them, as well as a reference
832directing the user to the copy of this License. Also, you must do one
833of these things:
834
835<OL TYPE="a">
836
837 <LI>Accompany the work with the complete corresponding
838 machine-readable source code for the Library including whatever
839 changes were used in the work (which must be distributed under
840 Sections 1 and 2 above); and, if the work is an executable linked
841 with the Library, with the complete machine-readable "work that
842 uses the Library", as object code and/or source code, so that the
843 user can modify the Library and then relink to produce a modified
844 executable containing the modified Library. (It is understood
845 that the user who changes the contents of definitions files in the
846 Library will not necessarily be able to recompile the application
847 to use the modified definitions.)
848
849 <P>
850 <LI>Accompany the work with a written offer, valid for at
851 least three years, to give the same user the materials
852 specified in Subsection 6a, above, for a charge no more
853 than the cost of performing this distribution.
854
855 <P>
856 <LI>If distribution of the work is made by offering access to copy
857 from a designated place, offer equivalent access to copy the above
858 specified materials from the same place.
859
860 <P>
861 <LI>Verify that the user has already received a copy of these
862 materials or that you have already sent this user a copy.
863
864</OL>
865
866<P>For an executable, the required form of the "work that uses the
867Library" must include any data and utility programs needed for
868reproducing the executable from it. However, as a special exception,
869the source code distributed need not include anything that is normally
870distributed (in either source or binary form) with the major
871components (compiler, kernel, and so on) of the operating system on
872which the executable runs, unless that component itself accompanies
873the executable.
874
875<P>It may happen that this requirement contradicts the license
876restrictions of other proprietary libraries that do not normally
877accompany the operating system. Such a contradiction means you cannot
878use both them and the Library together in an executable that you
879distribute.
880
881<P><STRONG>7.</STRONG>
882You may place library facilities that are a work based on the
883Library side-by-side in a single library together with other library
884facilities not covered by this License, and distribute such a combined
885library, provided that the separate distribution of the work based on
886the Library and of the other library facilities is otherwise
887permitted, and provided that you do these two things:
888
889<OL TYPE="a">
890
891 <LI>Accompany the combined library with a copy of the same work
892 based on the Library, uncombined with any other library
893 facilities. This must be distributed under the terms of the
894 Sections above.
895
896 <P>
897 <LI>Give prominent notice with the combined library of the fact
898 that part of it is a work based on the Library, and explaining
899 where to find the accompanying uncombined form of the same work.
900
901</OL>
902
903<P><STRONG>8.</STRONG>
904You may not copy, modify, sublicense, link with, or distribute
905the Library except as expressly provided under this License. Any
906attempt otherwise to copy, modify, sublicense, link with, or
907distribute the Library is void, and will automatically terminate your
908rights under this License. However, parties who have received copies,
909or rights, from you under this License will not have their licenses
910terminated so long as such parties remain in full compliance.
911
912<P><STRONG>9.</STRONG>
913You are not required to accept this License, since you have not
914signed it. However, nothing else grants you permission to modify or
915distribute the Library or its derivative works. These actions are
916prohibited by law if you do not accept this License. Therefore, by
917modifying or distributing the Library (or any work based on the
918Library), you indicate your acceptance of this License to do so, and
919all its terms and conditions for copying, distributing or modifying
920the Library or works based on it.
921
922<P><STRONG>10.</STRONG>
923Each time you redistribute the Library (or any work based on the
924Library), the recipient automatically receives a license from the
925original licensor to copy, distribute, link with or modify the Library
926subject to these terms and conditions. You may not impose any further
927restrictions on the recipients' exercise of the rights granted herein.
928You are not responsible for enforcing compliance by third parties to
929this License.
930
931<P><STRONG>11.</STRONG>
932If, as a consequence of a court judgment or allegation of patent
933infringement or for any other reason (not limited to patent issues),
934conditions are imposed on you (whether by court order, agreement or
935otherwise) that contradict the conditions of this License, they do not
936excuse you from the conditions of this License. If you cannot
937distribute so as to satisfy simultaneously your obligations under this
938License and any other pertinent obligations, then as a consequence you
939may not distribute the Library at all. For example, if a patent
940license would not permit royalty-free redistribution of the Library by
941all those who receive copies directly or indirectly through you, then
942the only way you could satisfy both it and this License would be to
943refrain entirely from distribution of the Library.
944
945<P>If any portion of this section is held invalid or unenforceable under any
946particular circumstance, the balance of the section is intended to apply,
947and the section as a whole is intended to apply in other circumstances.
948
949<P>It is not the purpose of this section to induce you to infringe any
950patents or other property right claims or to contest validity of any
951such claims; this section has the sole purpose of protecting the
952integrity of the free software distribution system which is
953implemented by public license practices. Many people have made
954generous contributions to the wide range of software distributed
955through that system in reliance on consistent application of that
956system; it is up to the author/donor to decide if he or she is willing
957to distribute software through any other system and a licensee cannot
958impose that choice.
959
960<P>This section is intended to make thoroughly clear what is believed to
961be a consequence of the rest of this License.
962
963<P><STRONG>12.</STRONG>
964If the distribution and/or use of the Library is restricted in
965certain countries either by patents or by copyrighted interfaces, the
966original copyright holder who places the Library under this License may add
967an explicit geographical distribution limitation excluding those countries,
968so that distribution is permitted only in or among countries not thus
969excluded. In such case, this License incorporates the limitation as if
970written in the body of this License.
971
972<P><STRONG>13.</STRONG>
973The Free Software Foundation may publish revised and/or new
974versions of the Library General Public License from time to time.
975Such new versions will be similar in spirit to the present version,
976but may differ in detail to address new problems or concerns.
977
978<P>Each version is given a distinguishing version number. If the Library
979specifies a version number of this License which applies to it and
980"any later version", you have the option of following the terms and
981conditions either of that version or of any later version published by
982the Free Software Foundation. If the Library does not specify a
983license version number, you may choose any version ever published by
984the Free Software Foundation.
985
986<P><STRONG>14.</STRONG>
987If you wish to incorporate parts of the Library into other free
988programs whose distribution conditions are incompatible with these,
989write to the author to ask for permission. For software which is
990copyrighted by the Free Software Foundation, write to the Free
991Software Foundation; we sometimes make exceptions for this. Our
992decision will be guided by the two goals of preserving the free status
993of all derivatives of our free software and of promoting the sharing
994and reuse of software generally.
995
996<P><STRONG>NO WARRANTY</STRONG>
997
998<P><STRONG>15.</STRONG>
999BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
1000WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
1001EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
1002OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
1003KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
1004IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1005PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
1006LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
1007THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
1008
1009<P><STRONG>16.</STRONG>
1010IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
1011WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
1012AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
1013FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
1014CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
1015LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
1016RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
1017FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
1018SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
1019DAMAGES.
1020
4744bd90 1021<H3>END OF TERMS AND CONDITIONS</H3>
ef416fc2 1022
4744bd90 1023<H3>How to Apply These Terms to Your New Libraries</H3>
ef416fc2 1024
1025<P>If you develop a new library, and you want it to be of the greatest
1026possible use to the public, we recommend making it free software that
1027everyone can redistribute and change. You can do so by permitting
1028redistribution under these terms (or, alternatively, under the terms of the
1029ordinary General Public License).
1030
1031<P>To apply these terms, attach the following notices to the library. It is
1032safest to attach them to the start of each source file to most effectively
1033convey the exclusion of warranty; and each file should have at least the
1034"copyright" line and a pointer to where the full notice is found.
1035
1036<PRE>
1037<VAR>one line to give the library's name and an idea of what it does.</VAR>
1038Copyright (C) <VAR>year</VAR> <VAR>name of author</VAR>
1039
1040This library is free software; you can redistribute it and/or
1041modify it under the terms of the GNU Lesser General Public
1042License as published by the Free Software Foundation; either
1043version 2.1 of the License, or (at your option) any later version.
1044
1045This library is distributed in the hope that it will be useful,
1046but WITHOUT ANY WARRANTY; without even the implied warranty of
1047MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1048Lesser General Public License for more details.
1049
1050You should have received a copy of the GNU Lesser General Public
1051License along with this library; if not, write to the Free Software
1052Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
1053</PRE>
1054
1055<P>Also add information on how to contact you by electronic and paper mail.
1056
1057<P>You should also get your employer (if you work as a programmer) or your
1058school, if any, to sign a "copyright disclaimer" for the library, if
1059necessary. Here is a sample; alter the names:
1060
1061<PRE>
1062Yoyodyne, Inc., hereby disclaims all copyright interest in
1063the library `Frob' (a library for tweaking knobs) written
1064by James Random Hacker.
1065
1066<VAR>signature of Ty Coon</VAR>, 1 April 1990
1067Ty Coon, President of Vice
1068</PRE>
1069
1070<P>That's all there is to it!
1071
1072</BODY>
1073</HTML>