xref: /aosp_15_r20/external/eigen/COPYING.GPL (revision bf2c37156dfe67e5dfebd6d394bad8b2ab5804d4)
1*bf2c3715SXin Li                    GNU GENERAL PUBLIC LICENSE
2*bf2c3715SXin Li                       Version 3, 29 June 2007
3*bf2c3715SXin Li
4*bf2c3715SXin Li Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5*bf2c3715SXin Li Everyone is permitted to copy and distribute verbatim copies
6*bf2c3715SXin Li of this license document, but changing it is not allowed.
7*bf2c3715SXin Li
8*bf2c3715SXin Li                            Preamble
9*bf2c3715SXin Li
10*bf2c3715SXin Li  The GNU General Public License is a free, copyleft license for
11*bf2c3715SXin Lisoftware and other kinds of works.
12*bf2c3715SXin Li
13*bf2c3715SXin Li  The licenses for most software and other practical works are designed
14*bf2c3715SXin Lito take away your freedom to share and change the works.  By contrast,
15*bf2c3715SXin Lithe GNU General Public License is intended to guarantee your freedom to
16*bf2c3715SXin Lishare and change all versions of a program--to make sure it remains free
17*bf2c3715SXin Lisoftware for all its users.  We, the Free Software Foundation, use the
18*bf2c3715SXin LiGNU General Public License for most of our software; it applies also to
19*bf2c3715SXin Liany other work released this way by its authors.  You can apply it to
20*bf2c3715SXin Liyour programs, too.
21*bf2c3715SXin Li
22*bf2c3715SXin Li  When we speak of free software, we are referring to freedom, not
23*bf2c3715SXin Liprice.  Our General Public Licenses are designed to make sure that you
24*bf2c3715SXin Lihave the freedom to distribute copies of free software (and charge for
25*bf2c3715SXin Lithem if you wish), that you receive source code or can get it if you
26*bf2c3715SXin Liwant it, that you can change the software or use pieces of it in new
27*bf2c3715SXin Lifree programs, and that you know you can do these things.
28*bf2c3715SXin Li
29*bf2c3715SXin Li  To protect your rights, we need to prevent others from denying you
30*bf2c3715SXin Lithese rights or asking you to surrender the rights.  Therefore, you have
31*bf2c3715SXin Licertain responsibilities if you distribute copies of the software, or if
32*bf2c3715SXin Liyou modify it: responsibilities to respect the freedom of others.
33*bf2c3715SXin Li
34*bf2c3715SXin Li  For example, if you distribute copies of such a program, whether
35*bf2c3715SXin Ligratis or for a fee, you must pass on to the recipients the same
36*bf2c3715SXin Lifreedoms that you received.  You must make sure that they, too, receive
37*bf2c3715SXin Lior can get the source code.  And you must show them these terms so they
38*bf2c3715SXin Liknow their rights.
39*bf2c3715SXin Li
40*bf2c3715SXin Li  Developers that use the GNU GPL protect your rights with two steps:
41*bf2c3715SXin Li(1) assert copyright on the software, and (2) offer you this License
42*bf2c3715SXin Ligiving you legal permission to copy, distribute and/or modify it.
43*bf2c3715SXin Li
44*bf2c3715SXin Li  For the developers' and authors' protection, the GPL clearly explains
45*bf2c3715SXin Lithat there is no warranty for this free software.  For both users' and
46*bf2c3715SXin Liauthors' sake, the GPL requires that modified versions be marked as
47*bf2c3715SXin Lichanged, so that their problems will not be attributed erroneously to
48*bf2c3715SXin Liauthors of previous versions.
49*bf2c3715SXin Li
50*bf2c3715SXin Li  Some devices are designed to deny users access to install or run
51*bf2c3715SXin Limodified versions of the software inside them, although the manufacturer
52*bf2c3715SXin Lican do so.  This is fundamentally incompatible with the aim of
53*bf2c3715SXin Liprotecting users' freedom to change the software.  The systematic
54*bf2c3715SXin Lipattern of such abuse occurs in the area of products for individuals to
55*bf2c3715SXin Liuse, which is precisely where it is most unacceptable.  Therefore, we
56*bf2c3715SXin Lihave designed this version of the GPL to prohibit the practice for those
57*bf2c3715SXin Liproducts.  If such problems arise substantially in other domains, we
58*bf2c3715SXin Listand ready to extend this provision to those domains in future versions
59*bf2c3715SXin Liof the GPL, as needed to protect the freedom of users.
60*bf2c3715SXin Li
61*bf2c3715SXin Li  Finally, every program is threatened constantly by software patents.
62*bf2c3715SXin LiStates should not allow patents to restrict development and use of
63*bf2c3715SXin Lisoftware on general-purpose computers, but in those that do, we wish to
64*bf2c3715SXin Liavoid the special danger that patents applied to a free program could
65*bf2c3715SXin Limake it effectively proprietary.  To prevent this, the GPL assures that
66*bf2c3715SXin Lipatents cannot be used to render the program non-free.
67*bf2c3715SXin Li
68*bf2c3715SXin Li  The precise terms and conditions for copying, distribution and
69*bf2c3715SXin Limodification follow.
70*bf2c3715SXin Li
71*bf2c3715SXin Li                       TERMS AND CONDITIONS
72*bf2c3715SXin Li
73*bf2c3715SXin Li  0. Definitions.
74*bf2c3715SXin Li
75*bf2c3715SXin Li  "This License" refers to version 3 of the GNU General Public License.
76*bf2c3715SXin Li
77*bf2c3715SXin Li  "Copyright" also means copyright-like laws that apply to other kinds of
78*bf2c3715SXin Liworks, such as semiconductor masks.
79*bf2c3715SXin Li
80*bf2c3715SXin Li  "The Program" refers to any copyrightable work licensed under this
81*bf2c3715SXin LiLicense.  Each licensee is addressed as "you".  "Licensees" and
82*bf2c3715SXin Li"recipients" may be individuals or organizations.
83*bf2c3715SXin Li
84*bf2c3715SXin Li  To "modify" a work means to copy from or adapt all or part of the work
85*bf2c3715SXin Liin a fashion requiring copyright permission, other than the making of an
86*bf2c3715SXin Liexact copy.  The resulting work is called a "modified version" of the
87*bf2c3715SXin Liearlier work or a work "based on" the earlier work.
88*bf2c3715SXin Li
89*bf2c3715SXin Li  A "covered work" means either the unmodified Program or a work based
90*bf2c3715SXin Lion the Program.
91*bf2c3715SXin Li
92*bf2c3715SXin Li  To "propagate" a work means to do anything with it that, without
93*bf2c3715SXin Lipermission, would make you directly or secondarily liable for
94*bf2c3715SXin Liinfringement under applicable copyright law, except executing it on a
95*bf2c3715SXin Licomputer or modifying a private copy.  Propagation includes copying,
96*bf2c3715SXin Lidistribution (with or without modification), making available to the
97*bf2c3715SXin Lipublic, and in some countries other activities as well.
98*bf2c3715SXin Li
99*bf2c3715SXin Li  To "convey" a work means any kind of propagation that enables other
100*bf2c3715SXin Liparties to make or receive copies.  Mere interaction with a user through
101*bf2c3715SXin Lia computer network, with no transfer of a copy, is not conveying.
102*bf2c3715SXin Li
103*bf2c3715SXin Li  An interactive user interface displays "Appropriate Legal Notices"
104*bf2c3715SXin Lito the extent that it includes a convenient and prominently visible
105*bf2c3715SXin Lifeature that (1) displays an appropriate copyright notice, and (2)
106*bf2c3715SXin Litells the user that there is no warranty for the work (except to the
107*bf2c3715SXin Liextent that warranties are provided), that licensees may convey the
108*bf2c3715SXin Liwork under this License, and how to view a copy of this License.  If
109*bf2c3715SXin Lithe interface presents a list of user commands or options, such as a
110*bf2c3715SXin Limenu, a prominent item in the list meets this criterion.
111*bf2c3715SXin Li
112*bf2c3715SXin Li  1. Source Code.
113*bf2c3715SXin Li
114*bf2c3715SXin Li  The "source code" for a work means the preferred form of the work
115*bf2c3715SXin Lifor making modifications to it.  "Object code" means any non-source
116*bf2c3715SXin Liform of a work.
117*bf2c3715SXin Li
118*bf2c3715SXin Li  A "Standard Interface" means an interface that either is an official
119*bf2c3715SXin Listandard defined by a recognized standards body, or, in the case of
120*bf2c3715SXin Liinterfaces specified for a particular programming language, one that
121*bf2c3715SXin Liis widely used among developers working in that language.
122*bf2c3715SXin Li
123*bf2c3715SXin Li  The "System Libraries" of an executable work include anything, other
124*bf2c3715SXin Lithan the work as a whole, that (a) is included in the normal form of
125*bf2c3715SXin Lipackaging a Major Component, but which is not part of that Major
126*bf2c3715SXin LiComponent, and (b) serves only to enable use of the work with that
127*bf2c3715SXin LiMajor Component, or to implement a Standard Interface for which an
128*bf2c3715SXin Liimplementation is available to the public in source code form.  A
129*bf2c3715SXin Li"Major Component", in this context, means a major essential component
130*bf2c3715SXin Li(kernel, window system, and so on) of the specific operating system
131*bf2c3715SXin Li(if any) on which the executable work runs, or a compiler used to
132*bf2c3715SXin Liproduce the work, or an object code interpreter used to run it.
133*bf2c3715SXin Li
134*bf2c3715SXin Li  The "Corresponding Source" for a work in object code form means all
135*bf2c3715SXin Lithe source code needed to generate, install, and (for an executable
136*bf2c3715SXin Liwork) run the object code and to modify the work, including scripts to
137*bf2c3715SXin Licontrol those activities.  However, it does not include the work's
138*bf2c3715SXin LiSystem Libraries, or general-purpose tools or generally available free
139*bf2c3715SXin Liprograms which are used unmodified in performing those activities but
140*bf2c3715SXin Liwhich are not part of the work.  For example, Corresponding Source
141*bf2c3715SXin Liincludes interface definition files associated with source files for
142*bf2c3715SXin Lithe work, and the source code for shared libraries and dynamically
143*bf2c3715SXin Lilinked subprograms that the work is specifically designed to require,
144*bf2c3715SXin Lisuch as by intimate data communication or control flow between those
145*bf2c3715SXin Lisubprograms and other parts of the work.
146*bf2c3715SXin Li
147*bf2c3715SXin Li  The Corresponding Source need not include anything that users
148*bf2c3715SXin Lican regenerate automatically from other parts of the Corresponding
149*bf2c3715SXin LiSource.
150*bf2c3715SXin Li
151*bf2c3715SXin Li  The Corresponding Source for a work in source code form is that
152*bf2c3715SXin Lisame work.
153*bf2c3715SXin Li
154*bf2c3715SXin Li  2. Basic Permissions.
155*bf2c3715SXin Li
156*bf2c3715SXin Li  All rights granted under this License are granted for the term of
157*bf2c3715SXin Licopyright on the Program, and are irrevocable provided the stated
158*bf2c3715SXin Liconditions are met.  This License explicitly affirms your unlimited
159*bf2c3715SXin Lipermission to run the unmodified Program.  The output from running a
160*bf2c3715SXin Licovered work is covered by this License only if the output, given its
161*bf2c3715SXin Licontent, constitutes a covered work.  This License acknowledges your
162*bf2c3715SXin Lirights of fair use or other equivalent, as provided by copyright law.
163*bf2c3715SXin Li
164*bf2c3715SXin Li  You may make, run and propagate covered works that you do not
165*bf2c3715SXin Liconvey, without conditions so long as your license otherwise remains
166*bf2c3715SXin Liin force.  You may convey covered works to others for the sole purpose
167*bf2c3715SXin Liof having them make modifications exclusively for you, or provide you
168*bf2c3715SXin Liwith facilities for running those works, provided that you comply with
169*bf2c3715SXin Lithe terms of this License in conveying all material for which you do
170*bf2c3715SXin Linot control copyright.  Those thus making or running the covered works
171*bf2c3715SXin Lifor you must do so exclusively on your behalf, under your direction
172*bf2c3715SXin Liand control, on terms that prohibit them from making any copies of
173*bf2c3715SXin Liyour copyrighted material outside their relationship with you.
174*bf2c3715SXin Li
175*bf2c3715SXin Li  Conveying under any other circumstances is permitted solely under
176*bf2c3715SXin Lithe conditions stated below.  Sublicensing is not allowed; section 10
177*bf2c3715SXin Limakes it unnecessary.
178*bf2c3715SXin Li
179*bf2c3715SXin Li  3. Protecting Users' Legal Rights From Anti-Circumvention Law.
180*bf2c3715SXin Li
181*bf2c3715SXin Li  No covered work shall be deemed part of an effective technological
182*bf2c3715SXin Limeasure under any applicable law fulfilling obligations under article
183*bf2c3715SXin Li11 of the WIPO copyright treaty adopted on 20 December 1996, or
184*bf2c3715SXin Lisimilar laws prohibiting or restricting circumvention of such
185*bf2c3715SXin Limeasures.
186*bf2c3715SXin Li
187*bf2c3715SXin Li  When you convey a covered work, you waive any legal power to forbid
188*bf2c3715SXin Licircumvention of technological measures to the extent such circumvention
189*bf2c3715SXin Liis effected by exercising rights under this License with respect to
190*bf2c3715SXin Lithe covered work, and you disclaim any intention to limit operation or
191*bf2c3715SXin Limodification of the work as a means of enforcing, against the work's
192*bf2c3715SXin Liusers, your or third parties' legal rights to forbid circumvention of
193*bf2c3715SXin Litechnological measures.
194*bf2c3715SXin Li
195*bf2c3715SXin Li  4. Conveying Verbatim Copies.
196*bf2c3715SXin Li
197*bf2c3715SXin Li  You may convey verbatim copies of the Program's source code as you
198*bf2c3715SXin Lireceive it, in any medium, provided that you conspicuously and
199*bf2c3715SXin Liappropriately publish on each copy an appropriate copyright notice;
200*bf2c3715SXin Likeep intact all notices stating that this License and any
201*bf2c3715SXin Linon-permissive terms added in accord with section 7 apply to the code;
202*bf2c3715SXin Likeep intact all notices of the absence of any warranty; and give all
203*bf2c3715SXin Lirecipients a copy of this License along with the Program.
204*bf2c3715SXin Li
205*bf2c3715SXin Li  You may charge any price or no price for each copy that you convey,
206*bf2c3715SXin Liand you may offer support or warranty protection for a fee.
207*bf2c3715SXin Li
208*bf2c3715SXin Li  5. Conveying Modified Source Versions.
209*bf2c3715SXin Li
210*bf2c3715SXin Li  You may convey a work based on the Program, or the modifications to
211*bf2c3715SXin Liproduce it from the Program, in the form of source code under the
212*bf2c3715SXin Literms of section 4, provided that you also meet all of these conditions:
213*bf2c3715SXin Li
214*bf2c3715SXin Li    a) The work must carry prominent notices stating that you modified
215*bf2c3715SXin Li    it, and giving a relevant date.
216*bf2c3715SXin Li
217*bf2c3715SXin Li    b) The work must carry prominent notices stating that it is
218*bf2c3715SXin Li    released under this License and any conditions added under section
219*bf2c3715SXin Li    7.  This requirement modifies the requirement in section 4 to
220*bf2c3715SXin Li    "keep intact all notices".
221*bf2c3715SXin Li
222*bf2c3715SXin Li    c) You must license the entire work, as a whole, under this
223*bf2c3715SXin Li    License to anyone who comes into possession of a copy.  This
224*bf2c3715SXin Li    License will therefore apply, along with any applicable section 7
225*bf2c3715SXin Li    additional terms, to the whole of the work, and all its parts,
226*bf2c3715SXin Li    regardless of how they are packaged.  This License gives no
227*bf2c3715SXin Li    permission to license the work in any other way, but it does not
228*bf2c3715SXin Li    invalidate such permission if you have separately received it.
229*bf2c3715SXin Li
230*bf2c3715SXin Li    d) If the work has interactive user interfaces, each must display
231*bf2c3715SXin Li    Appropriate Legal Notices; however, if the Program has interactive
232*bf2c3715SXin Li    interfaces that do not display Appropriate Legal Notices, your
233*bf2c3715SXin Li    work need not make them do so.
234*bf2c3715SXin Li
235*bf2c3715SXin Li  A compilation of a covered work with other separate and independent
236*bf2c3715SXin Liworks, which are not by their nature extensions of the covered work,
237*bf2c3715SXin Liand which are not combined with it such as to form a larger program,
238*bf2c3715SXin Liin or on a volume of a storage or distribution medium, is called an
239*bf2c3715SXin Li"aggregate" if the compilation and its resulting copyright are not
240*bf2c3715SXin Liused to limit the access or legal rights of the compilation's users
241*bf2c3715SXin Libeyond what the individual works permit.  Inclusion of a covered work
242*bf2c3715SXin Liin an aggregate does not cause this License to apply to the other
243*bf2c3715SXin Liparts of the aggregate.
244*bf2c3715SXin Li
245*bf2c3715SXin Li  6. Conveying Non-Source Forms.
246*bf2c3715SXin Li
247*bf2c3715SXin Li  You may convey a covered work in object code form under the terms
248*bf2c3715SXin Liof sections 4 and 5, provided that you also convey the
249*bf2c3715SXin Limachine-readable Corresponding Source under the terms of this License,
250*bf2c3715SXin Liin one of these ways:
251*bf2c3715SXin Li
252*bf2c3715SXin Li    a) Convey the object code in, or embodied in, a physical product
253*bf2c3715SXin Li    (including a physical distribution medium), accompanied by the
254*bf2c3715SXin Li    Corresponding Source fixed on a durable physical medium
255*bf2c3715SXin Li    customarily used for software interchange.
256*bf2c3715SXin Li
257*bf2c3715SXin Li    b) Convey the object code in, or embodied in, a physical product
258*bf2c3715SXin Li    (including a physical distribution medium), accompanied by a
259*bf2c3715SXin Li    written offer, valid for at least three years and valid for as
260*bf2c3715SXin Li    long as you offer spare parts or customer support for that product
261*bf2c3715SXin Li    model, to give anyone who possesses the object code either (1) a
262*bf2c3715SXin Li    copy of the Corresponding Source for all the software in the
263*bf2c3715SXin Li    product that is covered by this License, on a durable physical
264*bf2c3715SXin Li    medium customarily used for software interchange, for a price no
265*bf2c3715SXin Li    more than your reasonable cost of physically performing this
266*bf2c3715SXin Li    conveying of source, or (2) access to copy the
267*bf2c3715SXin Li    Corresponding Source from a network server at no charge.
268*bf2c3715SXin Li
269*bf2c3715SXin Li    c) Convey individual copies of the object code with a copy of the
270*bf2c3715SXin Li    written offer to provide the Corresponding Source.  This
271*bf2c3715SXin Li    alternative is allowed only occasionally and noncommercially, and
272*bf2c3715SXin Li    only if you received the object code with such an offer, in accord
273*bf2c3715SXin Li    with subsection 6b.
274*bf2c3715SXin Li
275*bf2c3715SXin Li    d) Convey the object code by offering access from a designated
276*bf2c3715SXin Li    place (gratis or for a charge), and offer equivalent access to the
277*bf2c3715SXin Li    Corresponding Source in the same way through the same place at no
278*bf2c3715SXin Li    further charge.  You need not require recipients to copy the
279*bf2c3715SXin Li    Corresponding Source along with the object code.  If the place to
280*bf2c3715SXin Li    copy the object code is a network server, the Corresponding Source
281*bf2c3715SXin Li    may be on a different server (operated by you or a third party)
282*bf2c3715SXin Li    that supports equivalent copying facilities, provided you maintain
283*bf2c3715SXin Li    clear directions next to the object code saying where to find the
284*bf2c3715SXin Li    Corresponding Source.  Regardless of what server hosts the
285*bf2c3715SXin Li    Corresponding Source, you remain obligated to ensure that it is
286*bf2c3715SXin Li    available for as long as needed to satisfy these requirements.
287*bf2c3715SXin Li
288*bf2c3715SXin Li    e) Convey the object code using peer-to-peer transmission, provided
289*bf2c3715SXin Li    you inform other peers where the object code and Corresponding
290*bf2c3715SXin Li    Source of the work are being offered to the general public at no
291*bf2c3715SXin Li    charge under subsection 6d.
292*bf2c3715SXin Li
293*bf2c3715SXin Li  A separable portion of the object code, whose source code is excluded
294*bf2c3715SXin Lifrom the Corresponding Source as a System Library, need not be
295*bf2c3715SXin Liincluded in conveying the object code work.
296*bf2c3715SXin Li
297*bf2c3715SXin Li  A "User Product" is either (1) a "consumer product", which means any
298*bf2c3715SXin Litangible personal property which is normally used for personal, family,
299*bf2c3715SXin Lior household purposes, or (2) anything designed or sold for incorporation
300*bf2c3715SXin Liinto a dwelling.  In determining whether a product is a consumer product,
301*bf2c3715SXin Lidoubtful cases shall be resolved in favor of coverage.  For a particular
302*bf2c3715SXin Liproduct received by a particular user, "normally used" refers to a
303*bf2c3715SXin Litypical or common use of that class of product, regardless of the status
304*bf2c3715SXin Liof the particular user or of the way in which the particular user
305*bf2c3715SXin Liactually uses, or expects or is expected to use, the product.  A product
306*bf2c3715SXin Liis a consumer product regardless of whether the product has substantial
307*bf2c3715SXin Licommercial, industrial or non-consumer uses, unless such uses represent
308*bf2c3715SXin Lithe only significant mode of use of the product.
309*bf2c3715SXin Li
310*bf2c3715SXin Li  "Installation Information" for a User Product means any methods,
311*bf2c3715SXin Liprocedures, authorization keys, or other information required to install
312*bf2c3715SXin Liand execute modified versions of a covered work in that User Product from
313*bf2c3715SXin Lia modified version of its Corresponding Source.  The information must
314*bf2c3715SXin Lisuffice to ensure that the continued functioning of the modified object
315*bf2c3715SXin Licode is in no case prevented or interfered with solely because
316*bf2c3715SXin Limodification has been made.
317*bf2c3715SXin Li
318*bf2c3715SXin Li  If you convey an object code work under this section in, or with, or
319*bf2c3715SXin Lispecifically for use in, a User Product, and the conveying occurs as
320*bf2c3715SXin Lipart of a transaction in which the right of possession and use of the
321*bf2c3715SXin LiUser Product is transferred to the recipient in perpetuity or for a
322*bf2c3715SXin Lifixed term (regardless of how the transaction is characterized), the
323*bf2c3715SXin LiCorresponding Source conveyed under this section must be accompanied
324*bf2c3715SXin Liby the Installation Information.  But this requirement does not apply
325*bf2c3715SXin Liif neither you nor any third party retains the ability to install
326*bf2c3715SXin Limodified object code on the User Product (for example, the work has
327*bf2c3715SXin Libeen installed in ROM).
328*bf2c3715SXin Li
329*bf2c3715SXin Li  The requirement to provide Installation Information does not include a
330*bf2c3715SXin Lirequirement to continue to provide support service, warranty, or updates
331*bf2c3715SXin Lifor a work that has been modified or installed by the recipient, or for
332*bf2c3715SXin Lithe User Product in which it has been modified or installed.  Access to a
333*bf2c3715SXin Linetwork may be denied when the modification itself materially and
334*bf2c3715SXin Liadversely affects the operation of the network or violates the rules and
335*bf2c3715SXin Liprotocols for communication across the network.
336*bf2c3715SXin Li
337*bf2c3715SXin Li  Corresponding Source conveyed, and Installation Information provided,
338*bf2c3715SXin Liin accord with this section must be in a format that is publicly
339*bf2c3715SXin Lidocumented (and with an implementation available to the public in
340*bf2c3715SXin Lisource code form), and must require no special password or key for
341*bf2c3715SXin Liunpacking, reading or copying.
342*bf2c3715SXin Li
343*bf2c3715SXin Li  7. Additional Terms.
344*bf2c3715SXin Li
345*bf2c3715SXin Li  "Additional permissions" are terms that supplement the terms of this
346*bf2c3715SXin LiLicense by making exceptions from one or more of its conditions.
347*bf2c3715SXin LiAdditional permissions that are applicable to the entire Program shall
348*bf2c3715SXin Libe treated as though they were included in this License, to the extent
349*bf2c3715SXin Lithat they are valid under applicable law.  If additional permissions
350*bf2c3715SXin Liapply only to part of the Program, that part may be used separately
351*bf2c3715SXin Liunder those permissions, but the entire Program remains governed by
352*bf2c3715SXin Lithis License without regard to the additional permissions.
353*bf2c3715SXin Li
354*bf2c3715SXin Li  When you convey a copy of a covered work, you may at your option
355*bf2c3715SXin Liremove any additional permissions from that copy, or from any part of
356*bf2c3715SXin Liit.  (Additional permissions may be written to require their own
357*bf2c3715SXin Liremoval in certain cases when you modify the work.)  You may place
358*bf2c3715SXin Liadditional permissions on material, added by you to a covered work,
359*bf2c3715SXin Lifor which you have or can give appropriate copyright permission.
360*bf2c3715SXin Li
361*bf2c3715SXin Li  Notwithstanding any other provision of this License, for material you
362*bf2c3715SXin Liadd to a covered work, you may (if authorized by the copyright holders of
363*bf2c3715SXin Lithat material) supplement the terms of this License with terms:
364*bf2c3715SXin Li
365*bf2c3715SXin Li    a) Disclaiming warranty or limiting liability differently from the
366*bf2c3715SXin Li    terms of sections 15 and 16 of this License; or
367*bf2c3715SXin Li
368*bf2c3715SXin Li    b) Requiring preservation of specified reasonable legal notices or
369*bf2c3715SXin Li    author attributions in that material or in the Appropriate Legal
370*bf2c3715SXin Li    Notices displayed by works containing it; or
371*bf2c3715SXin Li
372*bf2c3715SXin Li    c) Prohibiting misrepresentation of the origin of that material, or
373*bf2c3715SXin Li    requiring that modified versions of such material be marked in
374*bf2c3715SXin Li    reasonable ways as different from the original version; or
375*bf2c3715SXin Li
376*bf2c3715SXin Li    d) Limiting the use for publicity purposes of names of licensors or
377*bf2c3715SXin Li    authors of the material; or
378*bf2c3715SXin Li
379*bf2c3715SXin Li    e) Declining to grant rights under trademark law for use of some
380*bf2c3715SXin Li    trade names, trademarks, or service marks; or
381*bf2c3715SXin Li
382*bf2c3715SXin Li    f) Requiring indemnification of licensors and authors of that
383*bf2c3715SXin Li    material by anyone who conveys the material (or modified versions of
384*bf2c3715SXin Li    it) with contractual assumptions of liability to the recipient, for
385*bf2c3715SXin Li    any liability that these contractual assumptions directly impose on
386*bf2c3715SXin Li    those licensors and authors.
387*bf2c3715SXin Li
388*bf2c3715SXin Li  All other non-permissive additional terms are considered "further
389*bf2c3715SXin Lirestrictions" within the meaning of section 10.  If the Program as you
390*bf2c3715SXin Lireceived it, or any part of it, contains a notice stating that it is
391*bf2c3715SXin Ligoverned by this License along with a term that is a further
392*bf2c3715SXin Lirestriction, you may remove that term.  If a license document contains
393*bf2c3715SXin Lia further restriction but permits relicensing or conveying under this
394*bf2c3715SXin LiLicense, you may add to a covered work material governed by the terms
395*bf2c3715SXin Liof that license document, provided that the further restriction does
396*bf2c3715SXin Linot survive such relicensing or conveying.
397*bf2c3715SXin Li
398*bf2c3715SXin Li  If you add terms to a covered work in accord with this section, you
399*bf2c3715SXin Limust place, in the relevant source files, a statement of the
400*bf2c3715SXin Liadditional terms that apply to those files, or a notice indicating
401*bf2c3715SXin Liwhere to find the applicable terms.
402*bf2c3715SXin Li
403*bf2c3715SXin Li  Additional terms, permissive or non-permissive, may be stated in the
404*bf2c3715SXin Liform of a separately written license, or stated as exceptions;
405*bf2c3715SXin Lithe above requirements apply either way.
406*bf2c3715SXin Li
407*bf2c3715SXin Li  8. Termination.
408*bf2c3715SXin Li
409*bf2c3715SXin Li  You may not propagate or modify a covered work except as expressly
410*bf2c3715SXin Liprovided under this License.  Any attempt otherwise to propagate or
411*bf2c3715SXin Limodify it is void, and will automatically terminate your rights under
412*bf2c3715SXin Lithis License (including any patent licenses granted under the third
413*bf2c3715SXin Liparagraph of section 11).
414*bf2c3715SXin Li
415*bf2c3715SXin Li  However, if you cease all violation of this License, then your
416*bf2c3715SXin Lilicense from a particular copyright holder is reinstated (a)
417*bf2c3715SXin Liprovisionally, unless and until the copyright holder explicitly and
418*bf2c3715SXin Lifinally terminates your license, and (b) permanently, if the copyright
419*bf2c3715SXin Liholder fails to notify you of the violation by some reasonable means
420*bf2c3715SXin Liprior to 60 days after the cessation.
421*bf2c3715SXin Li
422*bf2c3715SXin Li  Moreover, your license from a particular copyright holder is
423*bf2c3715SXin Lireinstated permanently if the copyright holder notifies you of the
424*bf2c3715SXin Liviolation by some reasonable means, this is the first time you have
425*bf2c3715SXin Lireceived notice of violation of this License (for any work) from that
426*bf2c3715SXin Licopyright holder, and you cure the violation prior to 30 days after
427*bf2c3715SXin Liyour receipt of the notice.
428*bf2c3715SXin Li
429*bf2c3715SXin Li  Termination of your rights under this section does not terminate the
430*bf2c3715SXin Lilicenses of parties who have received copies or rights from you under
431*bf2c3715SXin Lithis License.  If your rights have been terminated and not permanently
432*bf2c3715SXin Lireinstated, you do not qualify to receive new licenses for the same
433*bf2c3715SXin Limaterial under section 10.
434*bf2c3715SXin Li
435*bf2c3715SXin Li  9. Acceptance Not Required for Having Copies.
436*bf2c3715SXin Li
437*bf2c3715SXin Li  You are not required to accept this License in order to receive or
438*bf2c3715SXin Lirun a copy of the Program.  Ancillary propagation of a covered work
439*bf2c3715SXin Lioccurring solely as a consequence of using peer-to-peer transmission
440*bf2c3715SXin Lito receive a copy likewise does not require acceptance.  However,
441*bf2c3715SXin Linothing other than this License grants you permission to propagate or
442*bf2c3715SXin Limodify any covered work.  These actions infringe copyright if you do
443*bf2c3715SXin Linot accept this License.  Therefore, by modifying or propagating a
444*bf2c3715SXin Licovered work, you indicate your acceptance of this License to do so.
445*bf2c3715SXin Li
446*bf2c3715SXin Li  10. Automatic Licensing of Downstream Recipients.
447*bf2c3715SXin Li
448*bf2c3715SXin Li  Each time you convey a covered work, the recipient automatically
449*bf2c3715SXin Lireceives a license from the original licensors, to run, modify and
450*bf2c3715SXin Lipropagate that work, subject to this License.  You are not responsible
451*bf2c3715SXin Lifor enforcing compliance by third parties with this License.
452*bf2c3715SXin Li
453*bf2c3715SXin Li  An "entity transaction" is a transaction transferring control of an
454*bf2c3715SXin Liorganization, or substantially all assets of one, or subdividing an
455*bf2c3715SXin Liorganization, or merging organizations.  If propagation of a covered
456*bf2c3715SXin Liwork results from an entity transaction, each party to that
457*bf2c3715SXin Litransaction who receives a copy of the work also receives whatever
458*bf2c3715SXin Lilicenses to the work the party's predecessor in interest had or could
459*bf2c3715SXin Ligive under the previous paragraph, plus a right to possession of the
460*bf2c3715SXin LiCorresponding Source of the work from the predecessor in interest, if
461*bf2c3715SXin Lithe predecessor has it or can get it with reasonable efforts.
462*bf2c3715SXin Li
463*bf2c3715SXin Li  You may not impose any further restrictions on the exercise of the
464*bf2c3715SXin Lirights granted or affirmed under this License.  For example, you may
465*bf2c3715SXin Linot impose a license fee, royalty, or other charge for exercise of
466*bf2c3715SXin Lirights granted under this License, and you may not initiate litigation
467*bf2c3715SXin Li(including a cross-claim or counterclaim in a lawsuit) alleging that
468*bf2c3715SXin Liany patent claim is infringed by making, using, selling, offering for
469*bf2c3715SXin Lisale, or importing the Program or any portion of it.
470*bf2c3715SXin Li
471*bf2c3715SXin Li  11. Patents.
472*bf2c3715SXin Li
473*bf2c3715SXin Li  A "contributor" is a copyright holder who authorizes use under this
474*bf2c3715SXin LiLicense of the Program or a work on which the Program is based.  The
475*bf2c3715SXin Liwork thus licensed is called the contributor's "contributor version".
476*bf2c3715SXin Li
477*bf2c3715SXin Li  A contributor's "essential patent claims" are all patent claims
478*bf2c3715SXin Liowned or controlled by the contributor, whether already acquired or
479*bf2c3715SXin Lihereafter acquired, that would be infringed by some manner, permitted
480*bf2c3715SXin Liby this License, of making, using, or selling its contributor version,
481*bf2c3715SXin Libut do not include claims that would be infringed only as a
482*bf2c3715SXin Liconsequence of further modification of the contributor version.  For
483*bf2c3715SXin Lipurposes of this definition, "control" includes the right to grant
484*bf2c3715SXin Lipatent sublicenses in a manner consistent with the requirements of
485*bf2c3715SXin Lithis License.
486*bf2c3715SXin Li
487*bf2c3715SXin Li  Each contributor grants you a non-exclusive, worldwide, royalty-free
488*bf2c3715SXin Lipatent license under the contributor's essential patent claims, to
489*bf2c3715SXin Limake, use, sell, offer for sale, import and otherwise run, modify and
490*bf2c3715SXin Lipropagate the contents of its contributor version.
491*bf2c3715SXin Li
492*bf2c3715SXin Li  In the following three paragraphs, a "patent license" is any express
493*bf2c3715SXin Liagreement or commitment, however denominated, not to enforce a patent
494*bf2c3715SXin Li(such as an express permission to practice a patent or covenant not to
495*bf2c3715SXin Lisue for patent infringement).  To "grant" such a patent license to a
496*bf2c3715SXin Liparty means to make such an agreement or commitment not to enforce a
497*bf2c3715SXin Lipatent against the party.
498*bf2c3715SXin Li
499*bf2c3715SXin Li  If you convey a covered work, knowingly relying on a patent license,
500*bf2c3715SXin Liand the Corresponding Source of the work is not available for anyone
501*bf2c3715SXin Lito copy, free of charge and under the terms of this License, through a
502*bf2c3715SXin Lipublicly available network server or other readily accessible means,
503*bf2c3715SXin Lithen you must either (1) cause the Corresponding Source to be so
504*bf2c3715SXin Liavailable, or (2) arrange to deprive yourself of the benefit of the
505*bf2c3715SXin Lipatent license for this particular work, or (3) arrange, in a manner
506*bf2c3715SXin Liconsistent with the requirements of this License, to extend the patent
507*bf2c3715SXin Lilicense to downstream recipients.  "Knowingly relying" means you have
508*bf2c3715SXin Liactual knowledge that, but for the patent license, your conveying the
509*bf2c3715SXin Licovered work in a country, or your recipient's use of the covered work
510*bf2c3715SXin Liin a country, would infringe one or more identifiable patents in that
511*bf2c3715SXin Licountry that you have reason to believe are valid.
512*bf2c3715SXin Li
513*bf2c3715SXin Li  If, pursuant to or in connection with a single transaction or
514*bf2c3715SXin Liarrangement, you convey, or propagate by procuring conveyance of, a
515*bf2c3715SXin Licovered work, and grant a patent license to some of the parties
516*bf2c3715SXin Lireceiving the covered work authorizing them to use, propagate, modify
517*bf2c3715SXin Lior convey a specific copy of the covered work, then the patent license
518*bf2c3715SXin Liyou grant is automatically extended to all recipients of the covered
519*bf2c3715SXin Liwork and works based on it.
520*bf2c3715SXin Li
521*bf2c3715SXin Li  A patent license is "discriminatory" if it does not include within
522*bf2c3715SXin Lithe scope of its coverage, prohibits the exercise of, or is
523*bf2c3715SXin Liconditioned on the non-exercise of one or more of the rights that are
524*bf2c3715SXin Lispecifically granted under this License.  You may not convey a covered
525*bf2c3715SXin Liwork if you are a party to an arrangement with a third party that is
526*bf2c3715SXin Liin the business of distributing software, under which you make payment
527*bf2c3715SXin Lito the third party based on the extent of your activity of conveying
528*bf2c3715SXin Lithe work, and under which the third party grants, to any of the
529*bf2c3715SXin Liparties who would receive the covered work from you, a discriminatory
530*bf2c3715SXin Lipatent license (a) in connection with copies of the covered work
531*bf2c3715SXin Liconveyed by you (or copies made from those copies), or (b) primarily
532*bf2c3715SXin Lifor and in connection with specific products or compilations that
533*bf2c3715SXin Licontain the covered work, unless you entered into that arrangement,
534*bf2c3715SXin Lior that patent license was granted, prior to 28 March 2007.
535*bf2c3715SXin Li
536*bf2c3715SXin Li  Nothing in this License shall be construed as excluding or limiting
537*bf2c3715SXin Liany implied license or other defenses to infringement that may
538*bf2c3715SXin Liotherwise be available to you under applicable patent law.
539*bf2c3715SXin Li
540*bf2c3715SXin Li  12. No Surrender of Others' Freedom.
541*bf2c3715SXin Li
542*bf2c3715SXin Li  If conditions are imposed on you (whether by court order, agreement or
543*bf2c3715SXin Liotherwise) that contradict the conditions of this License, they do not
544*bf2c3715SXin Liexcuse you from the conditions of this License.  If you cannot convey a
545*bf2c3715SXin Licovered work so as to satisfy simultaneously your obligations under this
546*bf2c3715SXin LiLicense and any other pertinent obligations, then as a consequence you may
547*bf2c3715SXin Linot convey it at all.  For example, if you agree to terms that obligate you
548*bf2c3715SXin Lito collect a royalty for further conveying from those to whom you convey
549*bf2c3715SXin Lithe Program, the only way you could satisfy both those terms and this
550*bf2c3715SXin LiLicense would be to refrain entirely from conveying the Program.
551*bf2c3715SXin Li
552*bf2c3715SXin Li  13. Use with the GNU Affero General Public License.
553*bf2c3715SXin Li
554*bf2c3715SXin Li  Notwithstanding any other provision of this License, you have
555*bf2c3715SXin Lipermission to link or combine any covered work with a work licensed
556*bf2c3715SXin Liunder version 3 of the GNU Affero General Public License into a single
557*bf2c3715SXin Licombined work, and to convey the resulting work.  The terms of this
558*bf2c3715SXin LiLicense will continue to apply to the part which is the covered work,
559*bf2c3715SXin Libut the special requirements of the GNU Affero General Public License,
560*bf2c3715SXin Lisection 13, concerning interaction through a network will apply to the
561*bf2c3715SXin Licombination as such.
562*bf2c3715SXin Li
563*bf2c3715SXin Li  14. Revised Versions of this License.
564*bf2c3715SXin Li
565*bf2c3715SXin Li  The Free Software Foundation may publish revised and/or new versions of
566*bf2c3715SXin Lithe GNU General Public License from time to time.  Such new versions will
567*bf2c3715SXin Libe similar in spirit to the present version, but may differ in detail to
568*bf2c3715SXin Liaddress new problems or concerns.
569*bf2c3715SXin Li
570*bf2c3715SXin Li  Each version is given a distinguishing version number.  If the
571*bf2c3715SXin LiProgram specifies that a certain numbered version of the GNU General
572*bf2c3715SXin LiPublic License "or any later version" applies to it, you have the
573*bf2c3715SXin Lioption of following the terms and conditions either of that numbered
574*bf2c3715SXin Liversion or of any later version published by the Free Software
575*bf2c3715SXin LiFoundation.  If the Program does not specify a version number of the
576*bf2c3715SXin LiGNU General Public License, you may choose any version ever published
577*bf2c3715SXin Liby the Free Software Foundation.
578*bf2c3715SXin Li
579*bf2c3715SXin Li  If the Program specifies that a proxy can decide which future
580*bf2c3715SXin Liversions of the GNU General Public License can be used, that proxy's
581*bf2c3715SXin Lipublic statement of acceptance of a version permanently authorizes you
582*bf2c3715SXin Lito choose that version for the Program.
583*bf2c3715SXin Li
584*bf2c3715SXin Li  Later license versions may give you additional or different
585*bf2c3715SXin Lipermissions.  However, no additional obligations are imposed on any
586*bf2c3715SXin Liauthor or copyright holder as a result of your choosing to follow a
587*bf2c3715SXin Lilater version.
588*bf2c3715SXin Li
589*bf2c3715SXin Li  15. Disclaimer of Warranty.
590*bf2c3715SXin Li
591*bf2c3715SXin Li  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
592*bf2c3715SXin LiAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
593*bf2c3715SXin LiHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
594*bf2c3715SXin LiOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
595*bf2c3715SXin LiTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
596*bf2c3715SXin LiPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
597*bf2c3715SXin LiIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
598*bf2c3715SXin LiALL NECESSARY SERVICING, REPAIR OR CORRECTION.
599*bf2c3715SXin Li
600*bf2c3715SXin Li  16. Limitation of Liability.
601*bf2c3715SXin Li
602*bf2c3715SXin Li  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
603*bf2c3715SXin LiWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
604*bf2c3715SXin LiTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
605*bf2c3715SXin LiGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
606*bf2c3715SXin LiUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
607*bf2c3715SXin LiDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
608*bf2c3715SXin LiPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
609*bf2c3715SXin LiEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
610*bf2c3715SXin LiSUCH DAMAGES.
611*bf2c3715SXin Li
612*bf2c3715SXin Li  17. Interpretation of Sections 15 and 16.
613*bf2c3715SXin Li
614*bf2c3715SXin Li  If the disclaimer of warranty and limitation of liability provided
615*bf2c3715SXin Liabove cannot be given local legal effect according to their terms,
616*bf2c3715SXin Lireviewing courts shall apply local law that most closely approximates
617*bf2c3715SXin Lian absolute waiver of all civil liability in connection with the
618*bf2c3715SXin LiProgram, unless a warranty or assumption of liability accompanies a
619*bf2c3715SXin Licopy of the Program in return for a fee.
620*bf2c3715SXin Li
621*bf2c3715SXin Li                     END OF TERMS AND CONDITIONS
622*bf2c3715SXin Li
623*bf2c3715SXin Li            How to Apply These Terms to Your New Programs
624*bf2c3715SXin Li
625*bf2c3715SXin Li  If you develop a new program, and you want it to be of the greatest
626*bf2c3715SXin Lipossible use to the public, the best way to achieve this is to make it
627*bf2c3715SXin Lifree software which everyone can redistribute and change under these terms.
628*bf2c3715SXin Li
629*bf2c3715SXin Li  To do so, attach the following notices to the program.  It is safest
630*bf2c3715SXin Lito attach them to the start of each source file to most effectively
631*bf2c3715SXin Listate the exclusion of warranty; and each file should have at least
632*bf2c3715SXin Lithe "copyright" line and a pointer to where the full notice is found.
633*bf2c3715SXin Li
634*bf2c3715SXin Li    <one line to give the program's name and a brief idea of what it does.>
635*bf2c3715SXin Li    Copyright (C) <year>  <name of author>
636*bf2c3715SXin Li
637*bf2c3715SXin Li    This program is free software: you can redistribute it and/or modify
638*bf2c3715SXin Li    it under the terms of the GNU General Public License as published by
639*bf2c3715SXin Li    the Free Software Foundation, either version 3 of the License, or
640*bf2c3715SXin Li    (at your option) any later version.
641*bf2c3715SXin Li
642*bf2c3715SXin Li    This program is distributed in the hope that it will be useful,
643*bf2c3715SXin Li    but WITHOUT ANY WARRANTY; without even the implied warranty of
644*bf2c3715SXin Li    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
645*bf2c3715SXin Li    GNU General Public License for more details.
646*bf2c3715SXin Li
647*bf2c3715SXin Li    You should have received a copy of the GNU General Public License
648*bf2c3715SXin Li    along with this program.  If not, see <http://www.gnu.org/licenses/>.
649*bf2c3715SXin Li
650*bf2c3715SXin LiAlso add information on how to contact you by electronic and paper mail.
651*bf2c3715SXin Li
652*bf2c3715SXin Li  If the program does terminal interaction, make it output a short
653*bf2c3715SXin Linotice like this when it starts in an interactive mode:
654*bf2c3715SXin Li
655*bf2c3715SXin Li    <program>  Copyright (C) <year>  <name of author>
656*bf2c3715SXin Li    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657*bf2c3715SXin Li    This is free software, and you are welcome to redistribute it
658*bf2c3715SXin Li    under certain conditions; type `show c' for details.
659*bf2c3715SXin Li
660*bf2c3715SXin LiThe hypothetical commands `show w' and `show c' should show the appropriate
661*bf2c3715SXin Liparts of the General Public License.  Of course, your program's commands
662*bf2c3715SXin Limight be different; for a GUI interface, you would use an "about box".
663*bf2c3715SXin Li
664*bf2c3715SXin Li  You should also get your employer (if you work as a programmer) or school,
665*bf2c3715SXin Liif any, to sign a "copyright disclaimer" for the program, if necessary.
666*bf2c3715SXin LiFor more information on this, and how to apply and follow the GNU GPL, see
667*bf2c3715SXin Li<http://www.gnu.org/licenses/>.
668*bf2c3715SXin Li
669*bf2c3715SXin Li  The GNU General Public License does not permit incorporating your program
670*bf2c3715SXin Liinto proprietary programs.  If your program is a subroutine library, you
671*bf2c3715SXin Limay consider it more useful to permit linking proprietary applications with
672*bf2c3715SXin Lithe library.  If this is what you want to do, use the GNU Lesser General
673*bf2c3715SXin LiPublic License instead of this License.  But first, please read
674*bf2c3715SXin Li<http://www.gnu.org/philosophy/why-not-lgpl.html>.
675