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