license.txt 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753
  1. this file includes licensing information for parts of arduino.
  2. first, the gnu general public license, which covers the main body
  3. of the processing/arduino code (in general, all the stuff inside the 'app'
  4. and 'core' subfolders).
  5. next, the gnu lesser general public license that covers the arduino core
  6. and libraries.
  7. .....................................................................
  8. GNU GENERAL PUBLIC LICENSE
  9. Version 2, June 1991
  10. Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  11. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  12. Everyone is permitted to copy and distribute verbatim copies
  13. of this license document, but changing it is not allowed.
  14. Preamble
  15. The licenses for most software are designed to take away your
  16. freedom to share and change it. By contrast, the GNU General Public
  17. License is intended to guarantee your freedom to share and change free
  18. software--to make sure the software is free for all its users. This
  19. General Public License applies to most of the Free Software
  20. Foundation's software and to any other program whose authors commit to
  21. using it. (Some other Free Software Foundation software is covered by
  22. the GNU Library General Public License instead.) You can apply it to
  23. your programs, too.
  24. When we speak of free software, we are referring to freedom, not
  25. price. Our General Public Licenses are designed to make sure that you
  26. have the freedom to distribute copies of free software (and charge for
  27. this service if you wish), that you receive source code or can get it
  28. if you want it, that you can change the software or use pieces of it
  29. in new free programs; and that you know you can do these things.
  30. To protect your rights, we need to make restrictions that forbid
  31. anyone to deny you these rights or to ask you to surrender the rights.
  32. These restrictions translate to certain responsibilities for you if you
  33. distribute copies of the software, or if you modify it.
  34. For example, if you distribute copies of such a program, whether
  35. gratis or for a fee, you must give the recipients all the rights that
  36. you have. You must make sure that they, too, receive or can get the
  37. source code. And you must show them these terms so they know their
  38. rights.
  39. We protect your rights with two steps: (1) copyright the software, and
  40. (2) offer you this license which gives you legal permission to copy,
  41. distribute and/or modify the software.
  42. Also, for each author's protection and ours, we want to make certain
  43. that everyone understands that there is no warranty for this free
  44. software. If the software is modified by someone else and passed on, we
  45. want its recipients to know that what they have is not the original, so
  46. that any problems introduced by others will not reflect on the original
  47. authors' reputations.
  48. Finally, any free program is threatened constantly by software
  49. patents. We wish to avoid the danger that redistributors of a free
  50. program will individually obtain patent licenses, in effect making the
  51. program proprietary. To prevent this, we have made it clear that any
  52. patent must be licensed for everyone's free use or not licensed at all.
  53. The precise terms and conditions for copying, distribution and
  54. modification follow.
  55. GNU GENERAL PUBLIC LICENSE
  56. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  57. 0. This License applies to any program or other work which contains
  58. a notice placed by the copyright holder saying it may be distributed
  59. under the terms of this General Public License. The "Program", below,
  60. refers to any such program or work, and a "work based on the Program"
  61. means either the Program or any derivative work under copyright law:
  62. that is to say, a work containing the Program or a portion of it,
  63. either verbatim or with modifications and/or translated into another
  64. language. (Hereinafter, translation is included without limitation in
  65. the term "modification".) Each licensee is addressed as "you".
  66. Activities other than copying, distribution and modification are not
  67. covered by this License; they are outside its scope. The act of
  68. running the Program is not restricted, and the output from the Program
  69. is covered only if its contents constitute a work based on the
  70. Program (independent of having been made by running the Program).
  71. Whether that is true depends on what the Program does.
  72. 1. You may copy and distribute verbatim copies of the Program's
  73. source code as you receive it, in any medium, provided that you
  74. conspicuously and appropriately publish on each copy an appropriate
  75. copyright notice and disclaimer of warranty; keep intact all the
  76. notices that refer to this License and to the absence of any warranty;
  77. and give any other recipients of the Program a copy of this License
  78. along with the Program.
  79. You may charge a fee for the physical act of transferring a copy, and
  80. you may at your option offer warranty protection in exchange for a fee.
  81. 2. You may modify your copy or copies of the Program or any portion
  82. of it, thus forming a work based on the Program, and copy and
  83. distribute such modifications or work under the terms of Section 1
  84. above, provided that you also meet all of these conditions:
  85. a) You must cause the modified files to carry prominent notices
  86. stating that you changed the files and the date of any change.
  87. b) You must cause any work that you distribute or publish, that in
  88. whole or in part contains or is derived from the Program or any
  89. part thereof, to be licensed as a whole at no charge to all third
  90. parties under the terms of this License.
  91. c) If the modified program normally reads commands interactively
  92. when run, you must cause it, when started running for such
  93. interactive use in the most ordinary way, to print or display an
  94. announcement including an appropriate copyright notice and a
  95. notice that there is no warranty (or else, saying that you provide
  96. a warranty) and that users may redistribute the program under
  97. these conditions, and telling the user how to view a copy of this
  98. License. (Exception: if the Program itself is interactive but
  99. does not normally print such an announcement, your work based on
  100. the Program is not required to print an announcement.)
  101. These requirements apply to the modified work as a whole. If
  102. identifiable sections of that work are not derived from the Program,
  103. and can be reasonably considered independent and separate works in
  104. themselves, then this License, and its terms, do not apply to those
  105. sections when you distribute them as separate works. But when you
  106. distribute the same sections as part of a whole which is a work based
  107. on the Program, the distribution of the whole must be on the terms of
  108. this License, whose permissions for other licensees extend to the
  109. entire whole, and thus to each and every part regardless of who wrote it.
  110. Thus, it is not the intent of this section to claim rights or contest
  111. your rights to work written entirely by you; rather, the intent is to
  112. exercise the right to control the distribution of derivative or
  113. collective works based on the Program.
  114. In addition, mere aggregation of another work not based on the Program
  115. with the Program (or with a work based on the Program) on a volume of
  116. a storage or distribution medium does not bring the other work under
  117. the scope of this License.
  118. 3. You may copy and distribute the Program (or a work based on it,
  119. under Section 2) in object code or executable form under the terms of
  120. Sections 1 and 2 above provided that you also do one of the following:
  121. a) Accompany it with the complete corresponding machine-readable
  122. source code, which must be distributed under the terms of Sections
  123. 1 and 2 above on a medium customarily used for software interchange; or,
  124. b) Accompany it with a written offer, valid for at least three
  125. years, to give any third party, for a charge no more than your
  126. cost of physically performing source distribution, a complete
  127. machine-readable copy of the corresponding source code, to be
  128. distributed under the terms of Sections 1 and 2 above on a medium
  129. customarily used for software interchange; or,
  130. c) Accompany it with the information you received as to the offer
  131. to distribute corresponding source code. (This alternative is
  132. allowed only for noncommercial distribution and only if you
  133. received the program in object code or executable form with such
  134. an offer, in accord with Subsection b above.)
  135. The source code for a work means the preferred form of the work for
  136. making modifications to it. For an executable work, complete source
  137. code means all the source code for all modules it contains, plus any
  138. associated interface definition files, plus the scripts used to
  139. control compilation and installation of the executable. However, as a
  140. special exception, the source code distributed need not include
  141. anything that is normally distributed (in either source or binary
  142. form) with the major components (compiler, kernel, and so on) of the
  143. operating system on which the executable runs, unless that component
  144. itself accompanies the executable.
  145. If distribution of executable or object code is made by offering
  146. access to copy from a designated place, then offering equivalent
  147. access to copy the source code from the same place counts as
  148. distribution of the source code, even though third parties are not
  149. compelled to copy the source along with the object code.
  150. 4. You may not copy, modify, sublicense, or distribute the Program
  151. except as expressly provided under this License. Any attempt
  152. otherwise to copy, modify, sublicense or distribute the Program is
  153. void, and will automatically terminate your rights under this License.
  154. However, parties who have received copies, or rights, from you under
  155. this License will not have their licenses terminated so long as such
  156. parties remain in full compliance.
  157. 5. You are not required to accept this License, since you have not
  158. signed it. However, nothing else grants you permission to modify or
  159. distribute the Program or its derivative works. These actions are
  160. prohibited by law if you do not accept this License. Therefore, by
  161. modifying or distributing the Program (or any work based on the
  162. Program), you indicate your acceptance of this License to do so, and
  163. all its terms and conditions for copying, distributing or modifying
  164. the Program or works based on it.
  165. 6. Each time you redistribute the Program (or any work based on the
  166. Program), the recipient automatically receives a license from the
  167. original licensor to copy, distribute or modify the Program subject to
  168. these terms and conditions. You may not impose any further
  169. restrictions on the recipients' exercise of the rights granted herein.
  170. You are not responsible for enforcing compliance by third parties to
  171. this License.
  172. 7. If, as a consequence of a court judgment or allegation of patent
  173. infringement or for any other reason (not limited to patent issues),
  174. conditions are imposed on you (whether by court order, agreement or
  175. otherwise) that contradict the conditions of this License, they do not
  176. excuse you from the conditions of this License. If you cannot
  177. distribute so as to satisfy simultaneously your obligations under this
  178. License and any other pertinent obligations, then as a consequence you
  179. may not distribute the Program at all. For example, if a patent
  180. license would not permit royalty-free redistribution of the Program by
  181. all those who receive copies directly or indirectly through you, then
  182. the only way you could satisfy both it and this License would be to
  183. refrain entirely from distribution of the Program.
  184. If any portion of this section is held invalid or unenforceable under
  185. any particular circumstance, the balance of the section is intended to
  186. apply and the section as a whole is intended to apply in other
  187. circumstances.
  188. It is not the purpose of this section to induce you to infringe any
  189. patents or other property right claims or to contest validity of any
  190. such claims; this section has the sole purpose of protecting the
  191. integrity of the free software distribution system, which is
  192. implemented by public license practices. Many people have made
  193. generous contributions to the wide range of software distributed
  194. through that system in reliance on consistent application of that
  195. system; it is up to the author/donor to decide if he or she is willing
  196. to distribute software through any other system and a licensee cannot
  197. impose that choice.
  198. This section is intended to make thoroughly clear what is believed to
  199. be a consequence of the rest of this License.
  200. 8. If the distribution and/or use of the Program is restricted in
  201. certain countries either by patents or by copyrighted interfaces, the
  202. original copyright holder who places the Program under this License
  203. may add an explicit geographical distribution limitation excluding
  204. those countries, so that distribution is permitted only in or among
  205. countries not thus excluded. In such case, this License incorporates
  206. the limitation as if written in the body of this License.
  207. 9. The Free Software Foundation may publish revised and/or new versions
  208. of the General Public License from time to time. Such new versions will
  209. be similar in spirit to the present version, but may differ in detail to
  210. address new problems or concerns.
  211. Each version is given a distinguishing version number. If the Program
  212. specifies a version number of this License which applies to it and "any
  213. later version", you have the option of following the terms and conditions
  214. either of that version or of any later version published by the Free
  215. Software Foundation. If the Program does not specify a version number of
  216. this License, you may choose any version ever published by the Free Software
  217. Foundation.
  218. 10. If you wish to incorporate parts of the Program into other free
  219. programs whose distribution conditions are different, write to the author
  220. to ask for permission. For software which is copyrighted by the Free
  221. Software Foundation, write to the Free Software Foundation; we sometimes
  222. make exceptions for this. Our decision will be guided by the two goals
  223. of preserving the free status of all derivatives of our free software and
  224. of promoting the sharing and reuse of software generally.
  225. NO WARRANTY
  226. 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
  227. FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
  228. OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
  229. PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
  230. OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  231. MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
  232. TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
  233. PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
  234. REPAIR OR CORRECTION.
  235. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
  236. WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
  237. REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
  238. INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
  239. OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
  240. TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
  241. YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
  242. PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
  243. POSSIBILITY OF SUCH DAMAGES.
  244. .....................................................................
  245. GNU LESSER GENERAL PUBLIC LICENSE
  246. Version 2.1, February 1999
  247. Copyright (C) 1991, 1999 Free Software Foundation, Inc.
  248. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  249. Everyone is permitted to copy and distribute verbatim copies
  250. of this license document, but changing it is not allowed.
  251. [This is the first released version of the Lesser GPL. It also counts
  252. as the successor of the GNU Library Public License, version 2, hence
  253. the version number 2.1.]
  254. Preamble
  255. The licenses for most software are designed to take away your
  256. freedom to share and change it. By contrast, the GNU General Public
  257. Licenses are intended to guarantee your freedom to share and change
  258. free software--to make sure the software is free for all its users.
  259. This license, the Lesser General Public License, applies to some
  260. specially designated software packages--typically libraries--of the
  261. Free Software Foundation and other authors who decide to use it. You
  262. can use it too, but we suggest you first think carefully about whether
  263. this license or the ordinary General Public License is the better
  264. strategy to use in any particular case, based on the explanations below.
  265. When we speak of free software, we are referring to freedom of use,
  266. not price. Our General Public Licenses are designed to make sure that
  267. you have the freedom to distribute copies of free software (and charge
  268. for this service if you wish); that you receive source code or can get
  269. it if you want it; that you can change the software and use pieces of
  270. it in new free programs; and that you are informed that you can do
  271. these things.
  272. To protect your rights, we need to make restrictions that forbid
  273. distributors to deny you these rights or to ask you to surrender these
  274. rights. These restrictions translate to certain responsibilities for
  275. you if you distribute copies of the library or if you modify it.
  276. For example, if you distribute copies of the library, whether gratis
  277. or for a fee, you must give the recipients all the rights that we gave
  278. you. You must make sure that they, too, receive or can get the source
  279. code. If you link other code with the library, you must provide
  280. complete object files to the recipients, so that they can relink them
  281. with the library after making changes to the library and recompiling
  282. it. And you must show them these terms so they know their rights.
  283. We protect your rights with a two-step method: (1) we copyright the
  284. library, and (2) we offer you this license, which gives you legal
  285. permission to copy, distribute and/or modify the library.
  286. To protect each distributor, we want to make it very clear that
  287. there is no warranty for the free library. Also, if the library is
  288. modified by someone else and passed on, the recipients should know
  289. that what they have is not the original version, so that the original
  290. author's reputation will not be affected by problems that might be
  291. introduced by others.
  292. Finally, software patents pose a constant threat to the existence of
  293. any free program. We wish to make sure that a company cannot
  294. effectively restrict the users of a free program by obtaining a
  295. restrictive license from a patent holder. Therefore, we insist that
  296. any patent license obtained for a version of the library must be
  297. consistent with the full freedom of use specified in this license.
  298. Most GNU software, including some libraries, is covered by the
  299. ordinary GNU General Public License. This license, the GNU Lesser
  300. General Public License, applies to certain designated libraries, and
  301. is quite different from the ordinary General Public License. We use
  302. this license for certain libraries in order to permit linking those
  303. libraries into non-free programs.
  304. When a program is linked with a library, whether statically or using
  305. a shared library, the combination of the two is legally speaking a
  306. combined work, a derivative of the original library. The ordinary
  307. General Public License therefore permits such linking only if the
  308. entire combination fits its criteria of freedom. The Lesser General
  309. Public License permits more lax criteria for linking other code with
  310. the library.
  311. We call this license the "Lesser" General Public License because it
  312. does Less to protect the user's freedom than the ordinary General
  313. Public License. It also provides other free software developers Less
  314. of an advantage over competing non-free programs. These disadvantages
  315. are the reason we use the ordinary General Public License for many
  316. libraries. However, the Lesser license provides advantages in certain
  317. special circumstances.
  318. For example, on rare occasions, there may be a special need to
  319. encourage the widest possible use of a certain library, so that it becomes
  320. a de-facto standard. To achieve this, non-free programs must be
  321. allowed to use the library. A more frequent case is that a free
  322. library does the same job as widely used non-free libraries. In this
  323. case, there is little to gain by limiting the free library to free
  324. software only, so we use the Lesser General Public License.
  325. In other cases, permission to use a particular library in non-free
  326. programs enables a greater number of people to use a large body of
  327. free software. For example, permission to use the GNU C Library in
  328. non-free programs enables many more people to use the whole GNU
  329. operating system, as well as its variant, the GNU/Linux operating
  330. system.
  331. Although the Lesser General Public License is Less protective of the
  332. users' freedom, it does ensure that the user of a program that is
  333. linked with the Library has the freedom and the wherewithal to run
  334. that program using a modified version of the Library.
  335. The precise terms and conditions for copying, distribution and
  336. modification follow. Pay close attention to the difference between a
  337. "work based on the library" and a "work that uses the library". The
  338. former contains code derived from the library, whereas the latter must
  339. be combined with the library in order to run.
  340. GNU LESSER GENERAL PUBLIC LICENSE
  341. TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  342. 0. This License Agreement applies to any software library or other
  343. program which contains a notice placed by the copyright holder or
  344. other authorized party saying it may be distributed under the terms of
  345. this Lesser General Public License (also called "this License").
  346. Each licensee is addressed as "you".
  347. A "library" means a collection of software functions and/or data
  348. prepared so as to be conveniently linked with application programs
  349. (which use some of those functions and data) to form executables.
  350. The "Library", below, refers to any such software library or work
  351. which has been distributed under these terms. A "work based on the
  352. Library" means either the Library or any derivative work under
  353. copyright law: that is to say, a work containing the Library or a
  354. portion of it, either verbatim or with modifications and/or translated
  355. straightforwardly into another language. (Hereinafter, translation is
  356. included without limitation in the term "modification".)
  357. "Source code" for a work means the preferred form of the work for
  358. making modifications to it. For a library, complete source code means
  359. all the source code for all modules it contains, plus any associated
  360. interface definition files, plus the scripts used to control compilation
  361. and installation of the library.
  362. Activities other than copying, distribution and modification are not
  363. covered by this License; they are outside its scope. The act of
  364. running a program using the Library is not restricted, and output from
  365. such a program is covered only if its contents constitute a work based
  366. on the Library (independent of the use of the Library in a tool for
  367. writing it). Whether that is true depends on what the Library does
  368. and what the program that uses the Library does.
  369. 1. You may copy and distribute verbatim copies of the Library's
  370. complete source code as you receive it, in any medium, provided that
  371. you conspicuously and appropriately publish on each copy an
  372. appropriate copyright notice and disclaimer of warranty; keep intact
  373. all the notices that refer to this License and to the absence of any
  374. warranty; and distribute a copy of this License along with the
  375. Library.
  376. You may charge a fee for the physical act of transferring a copy,
  377. and you may at your option offer warranty protection in exchange for a
  378. fee.
  379. 2. You may modify your copy or copies of the Library or any portion
  380. of it, thus forming a work based on the Library, and copy and
  381. distribute such modifications or work under the terms of Section 1
  382. above, provided that you also meet all of these conditions:
  383. a) The modified work must itself be a software library.
  384. b) You must cause the files modified to carry prominent notices
  385. stating that you changed the files and the date of any change.
  386. c) You must cause the whole of the work to be licensed at no
  387. charge to all third parties under the terms of this License.
  388. d) If a facility in the modified Library refers to a function or a
  389. table of data to be supplied by an application program that uses
  390. the facility, other than as an argument passed when the facility
  391. is invoked, then you must make a good faith effort to ensure that,
  392. in the event an application does not supply such function or
  393. table, the facility still operates, and performs whatever part of
  394. its purpose remains meaningful.
  395. (For example, a function in a library to compute square roots has
  396. a purpose that is entirely well-defined independent of the
  397. application. Therefore, Subsection 2d requires that any
  398. application-supplied function or table used by this function must
  399. be optional: if the application does not supply it, the square
  400. root function must still compute square roots.)
  401. These requirements apply to the modified work as a whole. If
  402. identifiable sections of that work are not derived from the Library,
  403. and can be reasonably considered independent and separate works in
  404. themselves, then this License, and its terms, do not apply to those
  405. sections when you distribute them as separate works. But when you
  406. distribute the same sections as part of a whole which is a work based
  407. on the Library, the distribution of the whole must be on the terms of
  408. this License, whose permissions for other licensees extend to the
  409. entire whole, and thus to each and every part regardless of who wrote
  410. it.
  411. Thus, it is not the intent of this section to claim rights or contest
  412. your rights to work written entirely by you; rather, the intent is to
  413. exercise the right to control the distribution of derivative or
  414. collective works based on the Library.
  415. In addition, mere aggregation of another work not based on the Library
  416. with the Library (or with a work based on the Library) on a volume of
  417. a storage or distribution medium does not bring the other work under
  418. the scope of this License.
  419. 3. You may opt to apply the terms of the ordinary GNU General Public
  420. License instead of this License to a given copy of the Library. To do
  421. this, you must alter all the notices that refer to this License, so
  422. that they refer to the ordinary GNU General Public License, version 2,
  423. instead of to this License. (If a newer version than version 2 of the
  424. ordinary GNU General Public License has appeared, then you can specify
  425. that version instead if you wish.) Do not make any other change in
  426. these notices.
  427. Once this change is made in a given copy, it is irreversible for
  428. that copy, so the ordinary GNU General Public License applies to all
  429. subsequent copies and derivative works made from that copy.
  430. This option is useful when you wish to copy part of the code of
  431. the Library into a program that is not a library.
  432. 4. You may copy and distribute the Library (or a portion or
  433. derivative of it, under Section 2) in object code or executable form
  434. under the terms of Sections 1 and 2 above provided that you accompany
  435. it with the complete corresponding machine-readable source code, which
  436. must be distributed under the terms of Sections 1 and 2 above on a
  437. medium customarily used for software interchange.
  438. If distribution of object code is made by offering access to copy
  439. from a designated place, then offering equivalent access to copy the
  440. source code from the same place satisfies the requirement to
  441. distribute the source code, even though third parties are not
  442. compelled to copy the source along with the object code.
  443. 5. A program that contains no derivative of any portion of the
  444. Library, but is designed to work with the Library by being compiled or
  445. linked with it, is called a "work that uses the Library". Such a
  446. work, in isolation, is not a derivative work of the Library, and
  447. therefore falls outside the scope of this License.
  448. However, linking a "work that uses the Library" with the Library
  449. creates an executable that is a derivative of the Library (because it
  450. contains portions of the Library), rather than a "work that uses the
  451. library". The executable is therefore covered by this License.
  452. Section 6 states terms for distribution of such executables.
  453. When a "work that uses the Library" uses material from a header file
  454. that is part of the Library, the object code for the work may be a
  455. derivative work of the Library even though the source code is not.
  456. Whether this is true is especially significant if the work can be
  457. linked without the Library, or if the work is itself a library. The
  458. threshold for this to be true is not precisely defined by law.
  459. If such an object file uses only numerical parameters, data
  460. structure layouts and accessors, and small macros and small inline
  461. functions (ten lines or less in length), then the use of the object
  462. file is unrestricted, regardless of whether it is legally a derivative
  463. work. (Executables containing this object code plus portions of the
  464. Library will still fall under Section 6.)
  465. Otherwise, if the work is a derivative of the Library, you may
  466. distribute the object code for the work under the terms of Section 6.
  467. Any executables containing that work also fall under Section 6,
  468. whether or not they are linked directly with the Library itself.
  469. 6. As an exception to the Sections above, you may also combine or
  470. link a "work that uses the Library" with the Library to produce a
  471. work containing portions of the Library, and distribute that work
  472. under terms of your choice, provided that the terms permit
  473. modification of the work for the customer's own use and reverse
  474. engineering for debugging such modifications.
  475. You must give prominent notice with each copy of the work that the
  476. Library is used in it and that the Library and its use are covered by
  477. this License. You must supply a copy of this License. If the work
  478. during execution displays copyright notices, you must include the
  479. copyright notice for the Library among them, as well as a reference
  480. directing the user to the copy of this License. Also, you must do one
  481. of these things:
  482. a) Accompany the work with the complete corresponding
  483. machine-readable source code for the Library including whatever
  484. changes were used in the work (which must be distributed under
  485. Sections 1 and 2 above); and, if the work is an executable linked
  486. with the Library, with the complete machine-readable "work that
  487. uses the Library", as object code and/or source code, so that the
  488. user can modify the Library and then relink to produce a modified
  489. executable containing the modified Library. (It is understood
  490. that the user who changes the contents of definitions files in the
  491. Library will not necessarily be able to recompile the application
  492. to use the modified definitions.)
  493. b) Use a suitable shared library mechanism for linking with the
  494. Library. A suitable mechanism is one that (1) uses at run time a
  495. copy of the library already present on the user's computer system,
  496. rather than copying library functions into the executable, and (2)
  497. will operate properly with a modified version of the library, if
  498. the user installs one, as long as the modified version is
  499. interface-compatible with the version that the work was made with.
  500. c) Accompany the work with a written offer, valid for at
  501. least three years, to give the same user the materials
  502. specified in Subsection 6a, above, for a charge no more
  503. than the cost of performing this distribution.
  504. d) If distribution of the work is made by offering access to copy
  505. from a designated place, offer equivalent access to copy the above
  506. specified materials from the same place.
  507. e) Verify that the user has already received a copy of these
  508. materials or that you have already sent this user a copy.
  509. For an executable, the required form of the "work that uses the
  510. Library" must include any data and utility programs needed for
  511. reproducing the executable from it. However, as a special exception,
  512. the materials to be distributed need not include anything that is
  513. normally distributed (in either source or binary form) with the major
  514. components (compiler, kernel, and so on) of the operating system on
  515. which the executable runs, unless that component itself accompanies
  516. the executable.
  517. It may happen that this requirement contradicts the license
  518. restrictions of other proprietary libraries that do not normally
  519. accompany the operating system. Such a contradiction means you cannot
  520. use both them and the Library together in an executable that you
  521. distribute.
  522. 7. You may place library facilities that are a work based on the
  523. Library side-by-side in a single library together with other library
  524. facilities not covered by this License, and distribute such a combined
  525. library, provided that the separate distribution of the work based on
  526. the Library and of the other library facilities is otherwise
  527. permitted, and provided that you do these two things:
  528. a) Accompany the combined library with a copy of the same work
  529. based on the Library, uncombined with any other library
  530. facilities. This must be distributed under the terms of the
  531. Sections above.
  532. b) Give prominent notice with the combined library of the fact
  533. that part of it is a work based on the Library, and explaining
  534. where to find the accompanying uncombined form of the same work.
  535. 8. You may not copy, modify, sublicense, link with, or distribute
  536. the Library except as expressly provided under this License. Any
  537. attempt otherwise to copy, modify, sublicense, link with, or
  538. distribute the Library is void, and will automatically terminate your
  539. rights under this License. However, parties who have received copies,
  540. or rights, from you under this License will not have their licenses
  541. terminated so long as such parties remain in full compliance.
  542. 9. You are not required to accept this License, since you have not
  543. signed it. However, nothing else grants you permission to modify or
  544. distribute the Library or its derivative works. These actions are
  545. prohibited by law if you do not accept this License. Therefore, by
  546. modifying or distributing the Library (or any work based on the
  547. Library), you indicate your acceptance of this License to do so, and
  548. all its terms and conditions for copying, distributing or modifying
  549. the Library or works based on it.
  550. 10. Each time you redistribute the Library (or any work based on the
  551. Library), the recipient automatically receives a license from the
  552. original licensor to copy, distribute, link with or modify the Library
  553. subject to these terms and conditions. You may not impose any further
  554. restrictions on the recipients' exercise of the rights granted herein.
  555. You are not responsible for enforcing compliance by third parties with
  556. this License.
  557. 11. If, as a consequence of a court judgment or allegation of patent
  558. infringement or for any other reason (not limited to patent issues),
  559. conditions are imposed on you (whether by court order, agreement or
  560. otherwise) that contradict the conditions of this License, they do not
  561. excuse you from the conditions of this License. If you cannot
  562. distribute so as to satisfy simultaneously your obligations under this
  563. License and any other pertinent obligations, then as a consequence you
  564. may not distribute the Library at all. For example, if a patent
  565. license would not permit royalty-free redistribution of the Library by
  566. all those who receive copies directly or indirectly through you, then
  567. the only way you could satisfy both it and this License would be to
  568. refrain entirely from distribution of the Library.
  569. If any portion of this section is held invalid or unenforceable under any
  570. particular circumstance, the balance of the section is intended to apply,
  571. and the section as a whole is intended to apply in other circumstances.
  572. It is not the purpose of this section to induce you to infringe any
  573. patents or other property right claims or to contest validity of any
  574. such claims; this section has the sole purpose of protecting the
  575. integrity of the free software distribution system which is
  576. implemented by public license practices. Many people have made
  577. generous contributions to the wide range of software distributed
  578. through that system in reliance on consistent application of that
  579. system; it is up to the author/donor to decide if he or she is willing
  580. to distribute software through any other system and a licensee cannot
  581. impose that choice.
  582. This section is intended to make thoroughly clear what is believed to
  583. be a consequence of the rest of this License.
  584. 12. If the distribution and/or use of the Library is restricted in
  585. certain countries either by patents or by copyrighted interfaces, the
  586. original copyright holder who places the Library under this License may add
  587. an explicit geographical distribution limitation excluding those countries,
  588. so that distribution is permitted only in or among countries not thus
  589. excluded. In such case, this License incorporates the limitation as if
  590. written in the body of this License.
  591. 13. The Free Software Foundation may publish revised and/or new
  592. versions of the Lesser General Public License from time to time.
  593. Such new versions will be similar in spirit to the present version,
  594. but may differ in detail to address new problems or concerns.
  595. Each version is given a distinguishing version number. If the Library
  596. specifies a version number of this License which applies to it and
  597. "any later version", you have the option of following the terms and
  598. conditions either of that version or of any later version published by
  599. the Free Software Foundation. If the Library does not specify a
  600. license version number, you may choose any version ever published by
  601. the Free Software Foundation.
  602. 14. If you wish to incorporate parts of the Library into other free
  603. programs whose distribution conditions are incompatible with these,
  604. write to the author to ask for permission. For software which is
  605. copyrighted by the Free Software Foundation, write to the Free
  606. Software Foundation; we sometimes make exceptions for this. Our
  607. decision will be guided by the two goals of preserving the free status
  608. of all derivatives of our free software and of promoting the sharing
  609. and reuse of software generally.
  610. NO WARRANTY
  611. 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
  612. WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
  613. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
  614. OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
  615. KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
  616. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  617. PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
  618. LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
  619. THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
  620. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  621. WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
  622. AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
  623. FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
  624. CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
  625. LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
  626. RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
  627. FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
  628. SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
  629. DAMAGES.