Imported gammu 0.90.7
[gammu.git] / copying
blob5642cc87a81d9e10cf2a787da77eba30e515edba
1 \r
2 Version 0.90.7 has canceled possibility of getting LGPL up to explaining\r
3 all possible issues.\r
4 \r
5 Marcin Wiacek\r
6 07.12.2003\r
7 -------------------------------------------------------------------------------\r
8 \r
9 After long developing GSM source in Gammu I decided to change license of it.\r
11 Starting from 0.89.1 version project has two licenses. The idea is simple:\r
12 all "normal" people can use it under GNU GPL. People, who will contribute some\r
13 hardware help or will give some other big help required for surviving project,\r
14 will be able to use almost all Gammu under LGPL license.\r
16 We have generally hard times. Everyone everywhere wants money for everything.\r
17 It's required to pay bills, pay for some tools, etc. etc. Additionaly Internet\r
18 access in Poland is very expensive. And the worst: it's more and more difficult\r
19 or impossible find sometimes big (they're big for me of course) money for\r
20 paying for access for some specs or some phone models required for making this\r
21 software "killer app".\r
23 From second hand many people use included here source or experiences more or\r
24 less legally.\r
26 It everything makes, that I decided to give possibility of donating project\r
27 and legally using compiled library made from it in commercional projects this\r
28 way, that source of these applications using library won't be given to users\r
29 (source of Gammu library will be available under requests for everyone).\r
30 Please note, that it can help project this way too, that autors of commercional\r
31 apps can try to help in making Gammu library better. Also agreement for using\r
32 Gammu under LGPL will have ONLY concrete people for CONCRETE projects only.\r
33 It won't be possible to make unlimited money on Gammu without my permission.\r
34 Each LGPL license agreement will be first discussed. Each LGPL license won't\r
35 be automatically inherited by future projects made by marked below people.\r
37 Please understand, that is NOT first step for making Gammu project with closed\r
38 license/source. Normal people will STILL have unlimited access to it. I hope,\r
39 that my current decision won't make speed (in improving project) smaller.\r
41 Now about few words about possible GNU GPL source in current Gammu. When\r
42 somebody will show, that his source was copied to Gammu, will not like current\r
43 Gammu license and will tell me about it, I will try to rewrite it or find some\r
44 agreement with him. Before making requests in this topic please first think,\r
45 that maybe it would be better to say nothing - without donations Gammu could\r
46 die. All unnecessary regrets are not required.\r
48 My words here are connected especially with possible Gnokii authors requests.\r
49 MyGnokii was based on Gnokii and I could understand such requests two years ago\r
50 (times connected with writing MyGnokii). But for now, although many ideas were,\r
51 are and will be exchanged this or other way between Gammu/MyGnokii/Gnokii it\r
52 will be very difficult to find, WHO/when/where/how created some idea or thing\r
53 or function. If there will be some concrete requests connected with it\r
54 (requests about concrete functions or lines of source), I will think about\r
55 them. If not, I will probably ignore them. Please note before making any\r
56 requests, that some similiar solutions are good and maybe some things should\r
57 be like now. If they will be rewritten using for example some tricks it will\r
58 be more difficult to track bugs inside and it will be worse for GNU community.\r
60 In this place in the future will be put info about projects, which can use\r
61 Gammu under LGPL after compiling it with enabled ENABLE_LGPL compiler\r
62 directive (for example after "./configure --enable-lgpl").\r
64 Please note, that this license is not given for 3 party tools available\r
65 in source tarball in other directory\r
67 Marcin Wiacek\r
68 21.11.2003\r
69 -------------------------------------------------------------------------------\r
70                     GNU GENERAL PUBLIC LICENSE\r
71                        Version 2, June 1991\r
73  Copyright (C) 1989, 1991 Free Software Foundation, Inc.\r
74                        59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
75  Everyone is permitted to copy and distribute verbatim copies\r
76  of this license document, but changing it is not allowed.\r
78                             Preamble\r
80   The licenses for most software are designed to take away your\r
81 freedom to share and change it.  By contrast, the GNU General Public\r
82 License is intended to guarantee your freedom to share and change free\r
83 software--to make sure the software is free for all its users.  This\r
84 General Public License applies to most of the Free Software\r
85 Foundation's software and to any other program whose authors commit to\r
86 using it.  (Some other Free Software Foundation software is covered by\r
87 the GNU Library General Public License instead.)  You can apply it to\r
88 your programs, too.\r
90   When we speak of free software, we are referring to freedom, not\r
91 price.  Our General Public Licenses are designed to make sure that you\r
92 have the freedom to distribute copies of free software (and charge for\r
93 this service if you wish), that you receive source code or can get it\r
94 if you want it, that you can change the software or use pieces of it\r
95 in new free programs; and that you know you can do these things.\r
97   To protect your rights, we need to make restrictions that forbid\r
98 anyone to deny you these rights or to ask you to surrender the rights.\r
99 These restrictions translate to certain responsibilities for you if you\r
100 distribute copies of the software, or if you modify it.\r
102   For example, if you distribute copies of such a program, whether\r
103 gratis or for a fee, you must give the recipients all the rights that\r
104 you have.  You must make sure that they, too, receive or can get the\r
105 source code.  And you must show them these terms so they know their\r
106 rights.\r
108   We protect your rights with two steps: (1) copyright the software, and\r
109 (2) offer you this license which gives you legal permission to copy,\r
110 distribute and/or modify the software.\r
112   Also, for each author's protection and ours, we want to make certain\r
113 that everyone understands that there is no warranty for this free\r
114 software.  If the software is modified by someone else and passed on, we\r
115 want its recipients to know that what they have is not the original, so\r
116 that any problems introduced by others will not reflect on the original\r
117 authors' reputations.\r
119   Finally, any free program is threatened constantly by software\r
120 patents.  We wish to avoid the danger that redistributors of a free\r
121 program will individually obtain patent licenses, in effect making the\r
122 program proprietary.  To prevent this, we have made it clear that any\r
123 patent must be licensed for everyone's free use or not licensed at all.\r
125   The precise terms and conditions for copying, distribution and\r
126 modification follow.\r
127 \f\r
128                     GNU GENERAL PUBLIC LICENSE\r
129    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\r
131   0. This License applies to any program or other work which contains\r
132 a notice placed by the copyright holder saying it may be distributed\r
133 under the terms of this General Public License.  The "Program", below,\r
134 refers to any such program or work, and a "work based on the Program"\r
135 means either the Program or any derivative work under copyright law:\r
136 that is to say, a work containing the Program or a portion of it,\r
137 either verbatim or with modifications and/or translated into another\r
138 language.  (Hereinafter, translation is included without limitation in\r
139 the term "modification".)  Each licensee is addressed as "you".\r
141 Activities other than copying, distribution and modification are not\r
142 covered by this License; they are outside its scope.  The act of\r
143 running the Program is not restricted, and the output from the Program\r
144 is covered only if its contents constitute a work based on the\r
145 Program (independent of having been made by running the Program).\r
146 Whether that is true depends on what the Program does.\r
148   1. You may copy and distribute verbatim copies of the Program's\r
149 source code as you receive it, in any medium, provided that you\r
150 conspicuously and appropriately publish on each copy an appropriate\r
151 copyright notice and disclaimer of warranty; keep intact all the\r
152 notices that refer to this License and to the absence of any warranty;\r
153 and give any other recipients of the Program a copy of this License\r
154 along with the Program.\r
156 You may charge a fee for the physical act of transferring a copy, and\r
157 you may at your option offer warranty protection in exchange for a fee.\r
159   2. You may modify your copy or copies of the Program or any portion\r
160 of it, thus forming a work based on the Program, and copy and\r
161 distribute such modifications or work under the terms of Section 1\r
162 above, provided that you also meet all of these conditions:\r
164     a) You must cause the modified files to carry prominent notices\r
165     stating that you changed the files and the date of any change.\r
167     b) You must cause any work that you distribute or publish, that in\r
168     whole or in part contains or is derived from the Program or any\r
169     part thereof, to be licensed as a whole at no charge to all third\r
170     parties under the terms of this License.\r
172     c) If the modified program normally reads commands interactively\r
173     when run, you must cause it, when started running for such\r
174     interactive use in the most ordinary way, to print or display an\r
175     announcement including an appropriate copyright notice and a\r
176     notice that there is no warranty (or else, saying that you provide\r
177     a warranty) and that users may redistribute the program under\r
178     these conditions, and telling the user how to view a copy of this\r
179     License.  (Exception: if the Program itself is interactive but\r
180     does not normally print such an announcement, your work based on\r
181     the Program is not required to print an announcement.)\r
182 \f\r
183 These requirements apply to the modified work as a whole.  If\r
184 identifiable sections of that work are not derived from the Program,\r
185 and can be reasonably considered independent and separate works in\r
186 themselves, then this License, and its terms, do not apply to those\r
187 sections when you distribute them as separate works.  But when you\r
188 distribute the same sections as part of a whole which is a work based\r
189 on the Program, the distribution of the whole must be on the terms of\r
190 this License, whose permissions for other licensees extend to the\r
191 entire whole, and thus to each and every part regardless of who wrote it.\r
193 Thus, it is not the intent of this section to claim rights or contest\r
194 your rights to work written entirely by you; rather, the intent is to\r
195 exercise the right to control the distribution of derivative or\r
196 collective works based on the Program.\r
198 In addition, mere aggregation of another work not based on the Program\r
199 with the Program (or with a work based on the Program) on a volume of\r
200 a storage or distribution medium does not bring the other work under\r
201 the scope of this License.\r
203   3. You may copy and distribute the Program (or a work based on it,\r
204 under Section 2) in object code or executable form under the terms of\r
205 Sections 1 and 2 above provided that you also do one of the following:\r
207     a) Accompany it with the complete corresponding machine-readable\r
208     source code, which must be distributed under the terms of Sections\r
209     1 and 2 above on a medium customarily used for software interchange; or,\r
211     b) Accompany it with a written offer, valid for at least three\r
212     years, to give any third party, for a charge no more than your\r
213     cost of physically performing source distribution, a complete\r
214     machine-readable copy of the corresponding source code, to be\r
215     distributed under the terms of Sections 1 and 2 above on a medium\r
216     customarily used for software interchange; or,\r
218     c) Accompany it with the information you received as to the offer\r
219     to distribute corresponding source code.  (This alternative is\r
220     allowed only for noncommercial distribution and only if you\r
221     received the program in object code or executable form with such\r
222     an offer, in accord with Subsection b above.)\r
224 The source code for a work means the preferred form of the work for\r
225 making modifications to it.  For an executable work, complete source\r
226 code means all the source code for all modules it contains, plus any\r
227 associated interface definition files, plus the scripts used to\r
228 control compilation and installation of the executable.  However, as a\r
229 special exception, the source code distributed need not include\r
230 anything that is normally distributed (in either source or binary\r
231 form) with the major components (compiler, kernel, and so on) of the\r
232 operating system on which the executable runs, unless that component\r
233 itself accompanies the executable.\r
235 If distribution of executable or object code is made by offering\r
236 access to copy from a designated place, then offering equivalent\r
237 access to copy the source code from the same place counts as\r
238 distribution of the source code, even though third parties are not\r
239 compelled to copy the source along with the object code.\r
240 \f\r
241   4. You may not copy, modify, sublicense, or distribute the Program\r
242 except as expressly provided under this License.  Any attempt\r
243 otherwise to copy, modify, sublicense or distribute the Program is\r
244 void, and will automatically terminate your rights under this License.\r
245 However, parties who have received copies, or rights, from you under\r
246 this License will not have their licenses terminated so long as such\r
247 parties remain in full compliance.\r
249   5. You are not required to accept this License, since you have not\r
250 signed it.  However, nothing else grants you permission to modify or\r
251 distribute the Program or its derivative works.  These actions are\r
252 prohibited by law if you do not accept this License.  Therefore, by\r
253 modifying or distributing the Program (or any work based on the\r
254 Program), you indicate your acceptance of this License to do so, and\r
255 all its terms and conditions for copying, distributing or modifying\r
256 the Program or works based on it.\r
258   6. Each time you redistribute the Program (or any work based on the\r
259 Program), the recipient automatically receives a license from the\r
260 original licensor to copy, distribute or modify the Program subject to\r
261 these terms and conditions.  You may not impose any further\r
262 restrictions on the recipients' exercise of the rights granted herein.\r
263 You are not responsible for enforcing compliance by third parties to\r
264 this License.\r
266   7. If, as a consequence of a court judgment or allegation of patent\r
267 infringement or for any other reason (not limited to patent issues),\r
268 conditions are imposed on you (whether by court order, agreement or\r
269 otherwise) that contradict the conditions of this License, they do not\r
270 excuse you from the conditions of this License.  If you cannot\r
271 distribute so as to satisfy simultaneously your obligations under this\r
272 License and any other pertinent obligations, then as a consequence you\r
273 may not distribute the Program at all.  For example, if a patent\r
274 license would not permit royalty-free redistribution of the Program by\r
275 all those who receive copies directly or indirectly through you, then\r
276 the only way you could satisfy both it and this License would be to\r
277 refrain entirely from distribution of the Program.\r
279 If any portion of this section is held invalid or unenforceable under\r
280 any particular circumstance, the balance of the section is intended to\r
281 apply and the section as a whole is intended to apply in other\r
282 circumstances.\r
284 It is not the purpose of this section to induce you to infringe any\r
285 patents or other property right claims or to contest validity of any\r
286 such claims; this section has the sole purpose of protecting the\r
287 integrity of the free software distribution system, which is\r
288 implemented by public license practices.  Many people have made\r
289 generous contributions to the wide range of software distributed\r
290 through that system in reliance on consistent application of that\r
291 system; it is up to the author/donor to decide if he or she is willing\r
292 to distribute software through any other system and a licensee cannot\r
293 impose that choice.\r
295 This section is intended to make thoroughly clear what is believed to\r
296 be a consequence of the rest of this License.\r
297 \f\r
298   8. If the distribution and/or use of the Program is restricted in\r
299 certain countries either by patents or by copyrighted interfaces, the\r
300 original copyright holder who places the Program under this License\r
301 may add an explicit geographical distribution limitation excluding\r
302 those countries, so that distribution is permitted only in or among\r
303 countries not thus excluded.  In such case, this License incorporates\r
304 the limitation as if written in the body of this License.\r
306   9. The Free Software Foundation may publish revised and/or new versions\r
307 of the General Public License from time to time.  Such new versions will\r
308 be similar in spirit to the present version, but may differ in detail to\r
309 address new problems or concerns.\r
311 Each version is given a distinguishing version number.  If the Program\r
312 specifies a version number of this License which applies to it and "any\r
313 later version", you have the option of following the terms and conditions\r
314 either of that version or of any later version published by the Free\r
315 Software Foundation.  If the Program does not specify a version number of\r
316 this License, you may choose any version ever published by the Free Software\r
317 Foundation.\r
319   10. If you wish to incorporate parts of the Program into other free\r
320 programs whose distribution conditions are different, write to the author\r
321 to ask for permission.  For software which is copyrighted by the Free\r
322 Software Foundation, write to the Free Software Foundation; we sometimes\r
323 make exceptions for this.  Our decision will be guided by the two goals\r
324 of preserving the free status of all derivatives of our free software and\r
325 of promoting the sharing and reuse of software generally.\r
327                             NO WARRANTY\r
329   11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\r
330 FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\r
331 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\r
332 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\r
333 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
334 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\r
335 TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\r
336 PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\r
337 REPAIR OR CORRECTION.\r
339   12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\r
340 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\r
341 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\r
342 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\r
343 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\r
344 TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\r
345 YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\r
346 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\r
347 POSSIBILITY OF SUCH DAMAGES.\r
349                      END OF TERMS AND CONDITIONS\r
350 \f\r
351             How to Apply These Terms to Your New Programs\r
353   If you develop a new program, and you want it to be of the greatest\r
354 possible use to the public, the best way to achieve this is to make it\r
355 free software which everyone can redistribute and change under these terms.\r
357   To do so, attach the following notices to the program.  It is safest\r
358 to attach them to the start of each source file to most effectively\r
359 convey the exclusion of warranty; and each file should have at least\r
360 the "copyright" line and a pointer to where the full notice is found.\r
362     <one line to give the program's name and a brief idea of what it does.>\r
363     Copyright (C) 19yy  <name of author>\r
365     This program is free software; you can redistribute it and/or modify\r
366     it under the terms of the GNU General Public License as published by\r
367     the Free Software Foundation; either version 2 of the License, or\r
368     (at your option) any later version.\r
370     This program is distributed in the hope that it will be useful,\r
371     but WITHOUT ANY WARRANTY; without even the implied warranty of\r
372     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
373     GNU General Public License for more details.\r
375     You should have received a copy of the GNU General Public License\r
376     along with this program; if not, write to the Free Software\r
377     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
380 Also add information on how to contact you by electronic and paper mail.\r
382 If the program is interactive, make it output a short notice like this\r
383 when it starts in an interactive mode:\r
385     Gnomovision version 69, Copyright (C) 19yy name of author\r
386     Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\r
387     This is free software, and you are welcome to redistribute it\r
388     under certain conditions; type `show c' for details.\r
390 The hypothetical commands `show w' and `show c' should show the appropriate\r
391 parts of the General Public License.  Of course, the commands you use may\r
392 be called something other than `show w' and `show c'; they could even be\r
393 mouse-clicks or menu items--whatever suits your program.\r
395 You should also get your employer (if you work as a programmer) or your\r
396 school, if any, to sign a "copyright disclaimer" for the program, if\r
397 necessary.  Here is a sample; alter the names:\r
399   Yoyodyne, Inc., hereby disclaims all copyright interest in the program\r
400   `Gnomovision' (which makes passes at compilers) written by James Hacker.\r
402   <signature of Ty Coon>, 1 April 1989\r
403   Ty Coon, President of Vice\r
405 This General Public License does not permit incorporating your program into\r
406 proprietary programs.  If your program is a subroutine library, you may\r
407 consider it more useful to permit linking proprietary applications with the\r
408 library.  If this is what you want to do, use the GNU Library General\r
409 Public License instead of this License.\r
410 -------------------------------------------------------------------------------\r
411                   GNU LESSER GENERAL PUBLIC LICENSE\r
412                        Version 2.1, February 1999\r
414  Copyright (C) 1991, 1999 Free Software Foundation, Inc.\r
415      59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
416  Everyone is permitted to copy and distribute verbatim copies\r
417  of this license document, but changing it is not allowed.\r
419 [This is the first released version of the Lesser GPL.  It also counts\r
420  as the successor of the GNU Library Public License, version 2, hence\r
421  the version number 2.1.]\r
423                             Preamble\r
425   The licenses for most software are designed to take away your\r
426 freedom to share and change it.  By contrast, the GNU General Public\r
427 Licenses are intended to guarantee your freedom to share and change\r
428 free software--to make sure the software is free for all its users.\r
430   This license, the Lesser General Public License, applies to some\r
431 specially designated software packages--typically libraries--of the\r
432 Free Software Foundation and other authors who decide to use it.  You\r
433 can use it too, but we suggest you first think carefully about whether\r
434 this license or the ordinary General Public License is the better\r
435 strategy to use in any particular case, based on the explanations below.\r
437   When we speak of free software, we are referring to freedom of use,\r
438 not price.  Our General Public Licenses are designed to make sure that\r
439 you have the freedom to distribute copies of free software (and charge\r
440 for this service if you wish); that you receive source code or can get\r
441 it if you want it; that you can change the software and use pieces of\r
442 it in new free programs; and that you are informed that you can do\r
443 these things.\r
445   To protect your rights, we need to make restrictions that forbid\r
446 distributors to deny you these rights or to ask you to surrender these\r
447 rights.  These restrictions translate to certain responsibilities for\r
448 you if you distribute copies of the library or if you modify it.\r
450   For example, if you distribute copies of the library, whether gratis\r
451 or for a fee, you must give the recipients all the rights that we gave\r
452 you.  You must make sure that they, too, receive or can get the source\r
453 code.  If you link other code with the library, you must provide\r
454 complete object files to the recipients, so that they can relink them\r
455 with the library after making changes to the library and recompiling\r
456 it.  And you must show them these terms so they know their rights.\r
458   We protect your rights with a two-step method: (1) we copyright the\r
459 library, and (2) we offer you this license, which gives you legal\r
460 permission to copy, distribute and/or modify the library.\r
462   To protect each distributor, we want to make it very clear that\r
463 there is no warranty for the free library.  Also, if the library is\r
464 modified by someone else and passed on, the recipients should know\r
465 that what they have is not the original version, so that the original\r
466 author's reputation will not be affected by problems that might be\r
467 introduced by others.\r
468 \f\r
469   Finally, software patents pose a constant threat to the existence of\r
470 any free program.  We wish to make sure that a company cannot\r
471 effectively restrict the users of a free program by obtaining a\r
472 restrictive license from a patent holder.  Therefore, we insist that\r
473 any patent license obtained for a version of the library must be\r
474 consistent with the full freedom of use specified in this license.\r
476   Most GNU software, including some libraries, is covered by the\r
477 ordinary GNU General Public License.  This license, the GNU Lesser\r
478 General Public License, applies to certain designated libraries, and\r
479 is quite different from the ordinary General Public License.  We use\r
480 this license for certain libraries in order to permit linking those\r
481 libraries into non-free programs.\r
483   When a program is linked with a library, whether statically or using\r
484 a shared library, the combination of the two is legally speaking a\r
485 combined work, a derivative of the original library.  The ordinary\r
486 General Public License therefore permits such linking only if the\r
487 entire combination fits its criteria of freedom.  The Lesser General\r
488 Public License permits more lax criteria for linking other code with\r
489 the library.\r
491   We call this license the "Lesser" General Public License because it\r
492 does Less to protect the user's freedom than the ordinary General\r
493 Public License.  It also provides other free software developers Less\r
494 of an advantage over competing non-free programs.  These disadvantages\r
495 are the reason we use the ordinary General Public License for many\r
496 libraries.  However, the Lesser license provides advantages in certain\r
497 special circumstances.\r
499   For example, on rare occasions, there may be a special need to\r
500 encourage the widest possible use of a certain library, so that it becomes\r
501 a de-facto standard.  To achieve this, non-free programs must be\r
502 allowed to use the library.  A more frequent case is that a free\r
503 library does the same job as widely used non-free libraries.  In this\r
504 case, there is little to gain by limiting the free library to free\r
505 software only, so we use the Lesser General Public License.\r
507   In other cases, permission to use a particular library in non-free\r
508 programs enables a greater number of people to use a large body of\r
509 free software.  For example, permission to use the GNU C Library in\r
510 non-free programs enables many more people to use the whole GNU\r
511 operating system, as well as its variant, the GNU/Linux operating\r
512 system.\r
514   Although the Lesser General Public License is Less protective of the\r
515 users' freedom, it does ensure that the user of a program that is\r
516 linked with the Library has the freedom and the wherewithal to run\r
517 that program using a modified version of the Library.\r
519   The precise terms and conditions for copying, distribution and\r
520 modification follow.  Pay close attention to the difference between a\r
521 "work based on the library" and a "work that uses the library".  The\r
522 former contains code derived from the library, whereas the latter must\r
523 be combined with the library in order to run.\r
524 \f\r
525                   GNU LESSER GENERAL PUBLIC LICENSE\r
526    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\r
528   0. This License Agreement applies to any software library or other\r
529 program which contains a notice placed by the copyright holder or\r
530 other authorized party saying it may be distributed under the terms of\r
531 this Lesser General Public License (also called "this License").\r
532 Each licensee is addressed as "you".\r
534   A "library" means a collection of software functions and/or data\r
535 prepared so as to be conveniently linked with application programs\r
536 (which use some of those functions and data) to form executables.\r
538   The "Library", below, refers to any such software library or work\r
539 which has been distributed under these terms.  A "work based on the\r
540 Library" means either the Library or any derivative work under\r
541 copyright law: that is to say, a work containing the Library or a\r
542 portion of it, either verbatim or with modifications and/or translated\r
543 straightforwardly into another language.  (Hereinafter, translation is\r
544 included without limitation in the term "modification".)\r
546   "Source code" for a work means the preferred form of the work for\r
547 making modifications to it.  For a library, complete source code means\r
548 all the source code for all modules it contains, plus any associated\r
549 interface definition files, plus the scripts used to control compilation\r
550 and installation of the library.\r
552   Activities other than copying, distribution and modification are not\r
553 covered by this License; they are outside its scope.  The act of\r
554 running a program using the Library is not restricted, and output from\r
555 such a program is covered only if its contents constitute a work based\r
556 on the Library (independent of the use of the Library in a tool for\r
557 writing it).  Whether that is true depends on what the Library does\r
558 and what the program that uses the Library does.\r
559   \r
560   1. You may copy and distribute verbatim copies of the Library's\r
561 complete source code as you receive it, in any medium, provided that\r
562 you conspicuously and appropriately publish on each copy an\r
563 appropriate copyright notice and disclaimer of warranty; keep intact\r
564 all the notices that refer to this License and to the absence of any\r
565 warranty; and distribute a copy of this License along with the\r
566 Library.\r
568   You may charge a fee for the physical act of transferring a copy,\r
569 and you may at your option offer warranty protection in exchange for a\r
570 fee.\r
571 \f\r
572   2. You may modify your copy or copies of the Library or any portion\r
573 of it, thus forming a work based on the Library, and copy and\r
574 distribute such modifications or work under the terms of Section 1\r
575 above, provided that you also meet all of these conditions:\r
577     a) The modified work must itself be a software library.\r
579     b) You must cause the files modified to carry prominent notices\r
580     stating that you changed the files and the date of any change.\r
582     c) You must cause the whole of the work to be licensed at no\r
583     charge to all third parties under the terms of this License.\r
585     d) If a facility in the modified Library refers to a function or a\r
586     table of data to be supplied by an application program that uses\r
587     the facility, other than as an argument passed when the facility\r
588     is invoked, then you must make a good faith effort to ensure that,\r
589     in the event an application does not supply such function or\r
590     table, the facility still operates, and performs whatever part of\r
591     its purpose remains meaningful.\r
593     (For example, a function in a library to compute square roots has\r
594     a purpose that is entirely well-defined independent of the\r
595     application.  Therefore, Subsection 2d requires that any\r
596     application-supplied function or table used by this function must\r
597     be optional: if the application does not supply it, the square\r
598     root function must still compute square roots.)\r
600 These requirements apply to the modified work as a whole.  If\r
601 identifiable sections of that work are not derived from the Library,\r
602 and can be reasonably considered independent and separate works in\r
603 themselves, then this License, and its terms, do not apply to those\r
604 sections when you distribute them as separate works.  But when you\r
605 distribute the same sections as part of a whole which is a work based\r
606 on the Library, the distribution of the whole must be on the terms of\r
607 this License, whose permissions for other licensees extend to the\r
608 entire whole, and thus to each and every part regardless of who wrote\r
609 it.\r
611 Thus, it is not the intent of this section to claim rights or contest\r
612 your rights to work written entirely by you; rather, the intent is to\r
613 exercise the right to control the distribution of derivative or\r
614 collective works based on the Library.\r
616 In addition, mere aggregation of another work not based on the Library\r
617 with the Library (or with a work based on the Library) on a volume of\r
618 a storage or distribution medium does not bring the other work under\r
619 the scope of this License.\r
621   3. You may opt to apply the terms of the ordinary GNU General Public\r
622 License instead of this License to a given copy of the Library.  To do\r
623 this, you must alter all the notices that refer to this License, so\r
624 that they refer to the ordinary GNU General Public License, version 2,\r
625 instead of to this License.  (If a newer version than version 2 of the\r
626 ordinary GNU General Public License has appeared, then you can specify\r
627 that version instead if you wish.)  Do not make any other change in\r
628 these notices.\r
629 \f\r
630   Once this change is made in a given copy, it is irreversible for\r
631 that copy, so the ordinary GNU General Public License applies to all\r
632 subsequent copies and derivative works made from that copy.\r
634   This option is useful when you wish to copy part of the code of\r
635 the Library into a program that is not a library.\r
637   4. You may copy and distribute the Library (or a portion or\r
638 derivative of it, under Section 2) in object code or executable form\r
639 under the terms of Sections 1 and 2 above provided that you accompany\r
640 it with the complete corresponding machine-readable source code, which\r
641 must be distributed under the terms of Sections 1 and 2 above on a\r
642 medium customarily used for software interchange.\r
644   If distribution of object code is made by offering access to copy\r
645 from a designated place, then offering equivalent access to copy the\r
646 source code from the same place satisfies the requirement to\r
647 distribute the source code, even though third parties are not\r
648 compelled to copy the source along with the object code.\r
650   5. A program that contains no derivative of any portion of the\r
651 Library, but is designed to work with the Library by being compiled or\r
652 linked with it, is called a "work that uses the Library".  Such a\r
653 work, in isolation, is not a derivative work of the Library, and\r
654 therefore falls outside the scope of this License.\r
656   However, linking a "work that uses the Library" with the Library\r
657 creates an executable that is a derivative of the Library (because it\r
658 contains portions of the Library), rather than a "work that uses the\r
659 library".  The executable is therefore covered by this License.\r
660 Section 6 states terms for distribution of such executables.\r
662   When a "work that uses the Library" uses material from a header file\r
663 that is part of the Library, the object code for the work may be a\r
664 derivative work of the Library even though the source code is not.\r
665 Whether this is true is especially significant if the work can be\r
666 linked without the Library, or if the work is itself a library.  The\r
667 threshold for this to be true is not precisely defined by law.\r
669   If such an object file uses only numerical parameters, data\r
670 structure layouts and accessors, and small macros and small inline\r
671 functions (ten lines or less in length), then the use of the object\r
672 file is unrestricted, regardless of whether it is legally a derivative\r
673 work.  (Executables containing this object code plus portions of the\r
674 Library will still fall under Section 6.)\r
676   Otherwise, if the work is a derivative of the Library, you may\r
677 distribute the object code for the work under the terms of Section 6.\r
678 Any executables containing that work also fall under Section 6,\r
679 whether or not they are linked directly with the Library itself.\r
680 \f\r
681   6. As an exception to the Sections above, you may also combine or\r
682 link a "work that uses the Library" with the Library to produce a\r
683 work containing portions of the Library, and distribute that work\r
684 under terms of your choice, provided that the terms permit\r
685 modification of the work for the customer's own use and reverse\r
686 engineering for debugging such modifications.\r
688   You must give prominent notice with each copy of the work that the\r
689 Library is used in it and that the Library and its use are covered by\r
690 this License.  You must supply a copy of this License.  If the work\r
691 during execution displays copyright notices, you must include the\r
692 copyright notice for the Library among them, as well as a reference\r
693 directing the user to the copy of this License.  Also, you must do one\r
694 of these things:\r
696     a) Accompany the work with the complete corresponding\r
697     machine-readable source code for the Library including whatever\r
698     changes were used in the work (which must be distributed under\r
699     Sections 1 and 2 above); and, if the work is an executable linked\r
700     with the Library, with the complete machine-readable "work that\r
701     uses the Library", as object code and/or source code, so that the\r
702     user can modify the Library and then relink to produce a modified\r
703     executable containing the modified Library.  (It is understood\r
704     that the user who changes the contents of definitions files in the\r
705     Library will not necessarily be able to recompile the application\r
706     to use the modified definitions.)\r
708     b) Use a suitable shared library mechanism for linking with the\r
709     Library.  A suitable mechanism is one that (1) uses at run time a\r
710     copy of the library already present on the user's computer system,\r
711     rather than copying library functions into the executable, and (2)\r
712     will operate properly with a modified version of the library, if\r
713     the user installs one, as long as the modified version is\r
714     interface-compatible with the version that the work was made with.\r
716     c) Accompany the work with a written offer, valid for at\r
717     least three years, to give the same user the materials\r
718     specified in Subsection 6a, above, for a charge no more\r
719     than the cost of performing this distribution.\r
721     d) If distribution of the work is made by offering access to copy\r
722     from a designated place, offer equivalent access to copy the above\r
723     specified materials from the same place.\r
725     e) Verify that the user has already received a copy of these\r
726     materials or that you have already sent this user a copy.\r
728   For an executable, the required form of the "work that uses the\r
729 Library" must include any data and utility programs needed for\r
730 reproducing the executable from it.  However, as a special exception,\r
731 the materials to be distributed need not include anything that is\r
732 normally distributed (in either source or binary form) with the major\r
733 components (compiler, kernel, and so on) of the operating system on\r
734 which the executable runs, unless that component itself accompanies\r
735 the executable.\r
737   It may happen that this requirement contradicts the license\r
738 restrictions of other proprietary libraries that do not normally\r
739 accompany the operating system.  Such a contradiction means you cannot\r
740 use both them and the Library together in an executable that you\r
741 distribute.\r
742 \f\r
743   7. You may place library facilities that are a work based on the\r
744 Library side-by-side in a single library together with other library\r
745 facilities not covered by this License, and distribute such a combined\r
746 library, provided that the separate distribution of the work based on\r
747 the Library and of the other library facilities is otherwise\r
748 permitted, and provided that you do these two things:\r
750     a) Accompany the combined library with a copy of the same work\r
751     based on the Library, uncombined with any other library\r
752     facilities.  This must be distributed under the terms of the\r
753     Sections above.\r
755     b) Give prominent notice with the combined library of the fact\r
756     that part of it is a work based on the Library, and explaining\r
757     where to find the accompanying uncombined form of the same work.\r
759   8. You may not copy, modify, sublicense, link with, or distribute\r
760 the Library except as expressly provided under this License.  Any\r
761 attempt otherwise to copy, modify, sublicense, link with, or\r
762 distribute the Library is void, and will automatically terminate your\r
763 rights under this License.  However, parties who have received copies,\r
764 or rights, from you under this License will not have their licenses\r
765 terminated so long as such parties remain in full compliance.\r
767   9. You are not required to accept this License, since you have not\r
768 signed it.  However, nothing else grants you permission to modify or\r
769 distribute the Library or its derivative works.  These actions are\r
770 prohibited by law if you do not accept this License.  Therefore, by\r
771 modifying or distributing the Library (or any work based on the\r
772 Library), you indicate your acceptance of this License to do so, and\r
773 all its terms and conditions for copying, distributing or modifying\r
774 the Library or works based on it.\r
776   10. Each time you redistribute the Library (or any work based on the\r
777 Library), the recipient automatically receives a license from the\r
778 original licensor to copy, distribute, link with or modify the Library\r
779 subject to these terms and conditions.  You may not impose any further\r
780 restrictions on the recipients' exercise of the rights granted herein.\r
781 You are not responsible for enforcing compliance by third parties with\r
782 this License.\r
783 \f\r
784   11. If, as a consequence of a court judgment or allegation of patent\r
785 infringement or for any other reason (not limited to patent issues),\r
786 conditions are imposed on you (whether by court order, agreement or\r
787 otherwise) that contradict the conditions of this License, they do not\r
788 excuse you from the conditions of this License.  If you cannot\r
789 distribute so as to satisfy simultaneously your obligations under this\r
790 License and any other pertinent obligations, then as a consequence you\r
791 may not distribute the Library at all.  For example, if a patent\r
792 license would not permit royalty-free redistribution of the Library by\r
793 all those who receive copies directly or indirectly through you, then\r
794 the only way you could satisfy both it and this License would be to\r
795 refrain entirely from distribution of the Library.\r
797 If any portion of this section is held invalid or unenforceable under any\r
798 particular circumstance, the balance of the section is intended to apply,\r
799 and the section as a whole is intended to apply in other circumstances.\r
801 It is not the purpose of this section to induce you to infringe any\r
802 patents or other property right claims or to contest validity of any\r
803 such claims; this section has the sole purpose of protecting the\r
804 integrity of the free software distribution system which is\r
805 implemented by public license practices.  Many people have made\r
806 generous contributions to the wide range of software distributed\r
807 through that system in reliance on consistent application of that\r
808 system; it is up to the author/donor to decide if he or she is willing\r
809 to distribute software through any other system and a licensee cannot\r
810 impose that choice.\r
812 This section is intended to make thoroughly clear what is believed to\r
813 be a consequence of the rest of this License.\r
815   12. If the distribution and/or use of the Library is restricted in\r
816 certain countries either by patents or by copyrighted interfaces, the\r
817 original copyright holder who places the Library under this License may add\r
818 an explicit geographical distribution limitation excluding those countries,\r
819 so that distribution is permitted only in or among countries not thus\r
820 excluded.  In such case, this License incorporates the limitation as if\r
821 written in the body of this License.\r
823   13. The Free Software Foundation may publish revised and/or new\r
824 versions of the Lesser General Public License from time to time.\r
825 Such new versions will be similar in spirit to the present version,\r
826 but may differ in detail to address new problems or concerns.\r
828 Each version is given a distinguishing version number.  If the Library\r
829 specifies a version number of this License which applies to it and\r
830 "any later version", you have the option of following the terms and\r
831 conditions either of that version or of any later version published by\r
832 the Free Software Foundation.  If the Library does not specify a\r
833 license version number, you may choose any version ever published by\r
834 the Free Software Foundation.\r
835 \f\r
836   14. If you wish to incorporate parts of the Library into other free\r
837 programs whose distribution conditions are incompatible with these,\r
838 write to the author to ask for permission.  For software which is\r
839 copyrighted by the Free Software Foundation, write to the Free\r
840 Software Foundation; we sometimes make exceptions for this.  Our\r
841 decision will be guided by the two goals of preserving the free status\r
842 of all derivatives of our free software and of promoting the sharing\r
843 and reuse of software generally.\r
845                             NO WARRANTY\r
847   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO\r
848 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.\r
849 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR\r
850 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY\r
851 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE\r
852 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\r
853 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE\r
854 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME\r
855 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\r
857   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN\r
858 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY\r
859 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU\r
860 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR\r
861 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE\r
862 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING\r
863 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A\r
864 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF\r
865 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\r
866 DAMAGES.\r
868                      END OF TERMS AND CONDITIONS\r
869 \f\r
870            How to Apply These Terms to Your New Libraries\r
872   If you develop a new library, and you want it to be of the greatest\r
873 possible use to the public, we recommend making it free software that\r
874 everyone can redistribute and change.  You can do so by permitting\r
875 redistribution under these terms (or, alternatively, under the terms of the\r
876 ordinary General Public License).\r
878   To apply these terms, attach the following notices to the library.  It is\r
879 safest to attach them to the start of each source file to most effectively\r
880 convey the exclusion of warranty; and each file should have at least the\r
881 "copyright" line and a pointer to where the full notice is found.\r
883     <one line to give the library's name and a brief idea of what it does.>\r
884     Copyright (C) <year>  <name of author>\r
886     This library is free software; you can redistribute it and/or\r
887     modify it under the terms of the GNU Lesser General Public\r
888     License as published by the Free Software Foundation; either\r
889     version 2.1 of the License, or (at your option) any later version.\r
891     This library is distributed in the hope that it will be useful,\r
892     but WITHOUT ANY WARRANTY; without even the implied warranty of\r
893     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU\r
894     Lesser General Public License for more details.\r
896     You should have received a copy of the GNU Lesser General Public\r
897     License along with this library; if not, write to the Free Software\r
898     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
900 Also add information on how to contact you by electronic and paper mail.\r
902 You should also get your employer (if you work as a programmer) or your\r
903 school, if any, to sign a "copyright disclaimer" for the library, if\r
904 necessary.  Here is a sample; alter the names:\r
906   Yoyodyne, Inc., hereby disclaims all copyright interest in the\r
907   library `Frob' (a library for tweaking knobs) written by James Random Hacker.\r
909   <signature of Ty Coon>, 1 April 1990\r
910   Ty Coon, President of Vice\r
912 That's all there is to it!\r