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