The reason we have a separate public license for some libraries is that they blurthe distinction we usually make between modifying or adding to a program andsimply using it. Linking a program with a library, without changing the library, is insome sense simply using the library, and is analogous to running a utility program orapplication program. However, in a textual and legal sense, the linked executable isa combined work, a derivative of the original library, and the ordinary General PublicLicense treats it as such.Because of this blurred distinction, using the ordinary GeneralPublic License for libraries did not effectively promote softwaresharing, because most developers did not use the libraries. Weconcluded that weaker conditions might promote sharing better.However, unrestricted linking of non-free programs would deprive the users ofthose programs of all benefit from the free status of the libraries themselves. ThisLibrary General Public License is intended to permit developers of non-free programsto use free libraries, while preserving your freedom as a user of such programs tochange the free libraries that are incorporated in them. (We have not seen how toachieve this as regards changes in header files, but we have achieved it as regardschanges in the actual functions of the Library.) The hope is that this will lead to fasterdevelopment of free libraries.The precise terms and conditions for copying, distribution and modification follow.Pay close attention to the difference between a “work based on the library” and a “workthat uses the library”. The former contains code derived from the library, while thelatter only works together with the library.Note that it is possible for a library to be covered by the ordinary General PublicLicense rather than by this special one.GNU LIBRARY GENERAL PUBLIC LICENSE TERMSAND CONDITIONS FOR COPYING, DISTRIBUTION ANDMODIFICATION0. This License Agreement applies to any software library which contains a noticeplaced by the copyright holder or other authorized party saying it may be distributedunder the terms of this Library General Public License (also called “this License”).Each licensee is addressed as “you”. A “library” means a collection of softwarefunctions and/or data prepared so as to be conveniently linked with applicationprograms (which use some of those functions and data) to form executables.The “Library”, below, refers to any such software library or work which has beendistributed under these terms. A “work based on the Library” means either theLibrary or any derivative work under copyright law: that is to say, a work containingthe Library or a portion of it, either verbatim or with modifications and/or translatedstraightforwardly into another language. (Hereinafter, translation is included withoutlimitation in the term “modification”.) “Source code” for a work means the preferredform of the work for making modifications to it. For a library, complete source codemeans all the source code for all modules it contains, plus any associated interfacedefinition files, plus the scripts used to control compilation and installation of thelibrary. Activities other than copying, distribution and modification are not coveredby this License; they are outside its scope. The act of running a program usingthe Library is not restricted, and output from such a program is covered only if itscontents constitute a work based on the Library (independent of the use of theLibrary in a tool for writing it). Whether that is true depends on what the Library doesand what the program that uses the Library does.1. You may copy and distribute verbatim copies of the Library’s complete sourcecode as you receive it, in any medium, provided that you conspicuously andappropriately publish on each copy an appropriate copyright notice and disclaimer ofwarranty; keep intact all the notices that refer to this License and to the absence ofany warranty; and distribute a copy of this License along with the Library. You maycharge a fee for the physical act of transferring a copy, and you may at your optionoffer warranty protection in exchange for a fee.2. You may modify your copy or copies of the Library or any portion of it, thusforming a work based on the Library, and copy and distribute such modifications orwork under the terms of Section 1 above, provided that you also meet all of theseconditions:a) The modified work must itself be a software library.b) You must cause the files modified to carry prominent notices stating that youchanged the files and the date of any change.c) You must cause the whole of the work to be licensed at no charge to all thirdparties under the terms of this License.d) If a facility in the modified Library refers to a function or a table of data to besupplied by an application program that uses the facility, other than as anargument passed when the facility is invoked, then you must make a goodfaith effort to ensure that, in the event an application does not supply suchfunction or table, the facility still operates, and performs whatever part of itspurpose remains meaningful. (For example, a function in a library to computesquare roots has a purpose that is entirely well-defined independent of theapplication.Therefore, Subsection 2d requires that any application-supplied function or tableused by this function must be optional: if the application does not supply it, thesquare root function must still compute square roots.) These requirements apply tothe modified work as a whole. If identifiable sections of that work are not derivedfrom the Library, and can be reasonably considered independent and separate worksin themselves, then this License, and its terms, do not apply to those sections whenyou distribute them as separate works. But when you distribute the same sectionsas part of a whole which is a work based on the Library, the distribution of the wholemust be on the terms of this License, whose permissions for other licensees extendto the entire whole, and thus to each and every part regardless of who wrote it.Thus, it is not the intent of this section to claim rights or contest your rights towork written entirely by you; rather, the intent is to exercise the right to control thedistribution of derivative or ollective works based on the Library. In addition, mereaggregation of another work not based on the Library with the Library (or with a workbased on the Library) on a volume of a storage or distribution medium does not bringthe other work under the scope of this License.3. You may opt to apply the terms of the ordinary GNU General Public Licenseinstead of this License to a given copy of the Library. To do this, you must alter allthe notices that refer to this License, so that they refer to the ordinary GNU GeneralPublic License, version 2, instead of to this License. (If a newer version than version 2of the ordinary GNU General Public License has appeared, then you can specify thatversion instead if you wish.) Do not make any other change in these notices. Oncethis change is made in a given copy, it is irreversible for that copy, so the ordinaryGNU General Public License applies to all subsequent copies and derivative worksmade from that copy. This option is useful when you wish to copy part of the code ofthe Library into a program that is not a library.4. You may copy and distribute the Library (or a portion or derivative of it, underSection 2) in object code or executable form under the terms of Sections 1 and 2above provided that you accompany it with the complete corresponding machinereadable source code, which must be distributed under the terms of Sections 1and 2 above on a medium customarily used for software interchange. If distributionof object code is made by offering access to copy from a designated place, thenoffering equivalent access to copy the source code from the same place satisfiesthe requirement to distribute the source code, even though third parties are notcompelled to copy the source along with the object code.5. A program that contains no derivative of any portion of the Library, but isdesigned to work with the Library by being compiled or linked with it, is called a“work that uses the Library”. Such a work, in isolation, is not a derivative work of theLibrary, and therefore falls outside the scope of this License.However, linking a “work that uses the Library” with the Library creates anexecutable that is a derivative of the Library (because it contains portions of theLibrary), rather than a “work that uses the library”. The executable is thereforecovered by this License. Section 6 states terms for distribution of such executables.When a “work that uses the Library” uses material from a header file that is part ofthe Library, the object code for the work may be a derivative work of the Library eventhough the source code is not. Whether this is true is especially significant if the workcan be linked without the Library, or if the work is itself a library. The threshold for thisto be true is not precisely defined by law.If such an object file uses only numerical parameters, data structure layoutsand accessors, and small macros and small inline functions (ten lines or less inlength), then the use of the object file is unrestricted, regardless of whether it islegally a derivative work. (Executables containing this object code plus portionsof the Library will still fall under Section 6.) Otherwise, if the work is a derivativeof the Library, you may distribute the object code for the work under the termsof Section 6. Any executables containing that work also fall under Section 6,whether or not they are linked directly with the Library itself.6. As an exception to the Sections above, you may also compile or link a “workthat uses the Library” with the Library to produce a work containing portions of theLibrary, and distribute that work under terms of your choice, provided that the termspermit modification of the work for the customer’s own use and reverse engineeringfor debugging such modifications. You must give prominent notice with each copy ofthe work that the Library is used in it and that the Library and its use are covered bythis License. You must supply a copy of this License. If the work during executiondisplays copyright notices, you must include the copyright notice for the Libraryamong them, as well as a reference directing the user to the copy of this License.Also, you must do one of these things:a) Accompany the work with the complete corresponding machine-readablesource code for the Library including whatever changes were used in the work(which must be distributed under Sections 1 and 2 above); and, if the workis an executable linked with the Library, with the complete machine-readable“work that uses the Library”, as object code and/or source code, so that theuser can modify the Library and then relink to produce a modified executablecontaining the modified Library. (It is understood that the user who changesthe contents of definitions files in the Library will not necessarily be able torecompile the application to use the modified definitions.)b) Accompany the work with a written offer, valid for at least three years, to givethe same user the materials specified in Subsection 6a, above, for a charge nomore than the cost of performing this distribution.c) If distribution of the work is made by offering access to copy from a designatedplace, offer equivalent access to copy the above specified materials from thesame place.d) Verify that the user has already received a copy of these materials or that youhave already sent this user a copy.For an executable, the required form of the “work that uses the Library” mustinclude any data and utility programs needed for reproducing the executable fromit. However, as a special exception, the source code distributed need not includeanything that is normally distributed (in either source or binary form) with the majorcomponents (compiler, kernel, and so on) of the operating system on which theexecutable runs, unless that component itself accompanies the executable. It mayhappen that this requirement contradicts the license restrictions of other proprietarylibraries that do not normally accompany the operating system. Such a contradictionmeans you cannot use both them and the Library together in an executable that youdistribute.7. You may place library facilities that are a work based on the Library side-by-sidein a single library together with other library facilities not covered by this License, anddistribute such a combined library, provided that the separate distribution of the workbased on the Library and of the other library facilities is otherwise permitted, andprovided that you do these two things:a) Accompany the combined library with a copy of the same work based on theLibrary, uncombined with any other library facilities. This must be distributedunder the terms of the Sections above.b) Give prominent notice with the combined library of the fact that part of it is awork based on the Library, and explaining where to find the accompanyinguncombined form of the same work.8. You may not copy, modify, sublicense, link with, or distribute the Library exceptas expressly provided under this License. Any attempt otherwise to copy, modify,sublicense, link with, or distribute the Library is void, and will automatically terminateyour rights under this License. However, parties who have received copies, or rights,from you under this License will not have their licenses terminated so long as suchparties remain in full compliance.9. You are not required to accept this License, since you have not signedit. However, nothing else grants you permission to modify or distribute theLibrary or its derivative works. These actions are prohibited by law if you donot accept this License. Therefore, by modifying or distributing the Library (orany work based on the Library), you indicate your acceptance of this Licenseto do so, and all its terms and conditions for copying, distributing or modifyingthe Library or works based on it.10. Each time you redistribute the Library (or any work based on the Library), therecipient automatically receives a license from the original licensor to copy, distribute,link with or modify the Library subject to these terms and conditions. You may notimpose any further restrictions on the recipients’ exercise of the rights granted herein.You are not responsible for enforcing compliance by third parties to this License.11. If, as a consequence of a court judgment or allegation of patent nfringementor for any other reason (not limited to patent issues), conditions are imposed on youエンドユーザーライセンスアグリーメント原文準備編資料87