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