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