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