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