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