Manual

In olfier cases, permission to use a particular libra1T in non-h'ee programs enables a
greater number of people to use a large body of fi'ee software. For example, permission
to use the GNU C Library in non-lS'ee programs enables many more people to use the
whole GNU operaling system, as well as its varianh the GNU/Linux operating system.
Although the Lesser General Public License is Less protective of the users' lreedom, it
does ensure that the user of a program lhat is linked wilh lfie Library has the lreedom
and the wherewithal to run that program using a modified version of the Library.
The precise terms and conditions R}rcopying, distribution and modification lolh)w.
Pay close attention to the dill)fence between a "work based on the library" and a "work
that uses the library". The lk}rmer contains code derived from lhe library, whereas lhe
latter musl be combined with the library in order to run.
GNU LESSER GENERAL PUBLIC L[CENSE
TERMS AN[) COND[T[ONS FOR COPYING, DISTRIB UTION AND
MODIFICAT[ON
(}. This License Agreement applies to any software library or other program which
contains a notice placed by the copyright holder or other aulhorized parly saying il
may he distributed under the terms of lhis Lesser General Public License (also
called "lhis License"). Each licensee is addressed as "you".
A "library" means a colleclion of software funclions and/or data prepared so as to be
conveniently linked with application programs (which use some of lhose lunctions and
data) to l_orm executables.
The "Library'2 helow, refi_rs to any such software library or work which has been
distributed under these terms. A "work based on the Library" means eilfier lhe Library
or any derivative work under copyright law: that is to say, awork containing lhe
Library or a portion of it, either verbatim or with modifications and/or translated
straightfi)rwardly into another language. (Hereinalter, translation is included wilhout
limilation in lhe term "modification".)
"Source code" lor a work means the prelermd lorm of the work lot making
modifications to it. For a library, complete source code means all lhe source code lor
all modules it conlains, plus any associated interface definilion files, plus lhe scripts
used to control compilalion and installation of lhe library.
Activities other than copying, distribution and modification al_ not coveJ_d by this
License; they are oulside ils scope. The act of running a program using the Library is
not l_stricted, and output fi'om such a program is covered only if its contenls constitute
a work based on lhe Libra U (independent of the use of lfie Library in a tool lor writing
it). Whether that is true depends on what lhe Library does and whal lhe program thai
uses the Library does.
I. You may copy and distribute verbatim copies of the Library's complete source
code as you receive it, in any medimn, provided thai you conspicuously and
appropriately publish on each copy an appropriate copyright notice and disclaimer
of warranty; keep intact all the notices that refi_r to this License and to the absence
of any warranty; and dislribute a copy of this License along with lhe Library.
You may charge a ti_e lot the physical acl of translerring a copy_ and you ]nay al your
option oiler warranly protection in exchange lor a Ice.
2. You may modily your copy or copies of the Library or any portion of it, thus
forming a work based on the Library, and copy and distribute such modifications or
work under the terms of Section I above, provided thai you also meet all of lhese
conditions:
a) The modified work musl dself be a software library.
b) You must cause the files modified to carry prominent nolices stating lhat you
changed lhe files and the date of any change.
c) You must cause the whole of the work to be licensed at no charge to all third
parties under the terms of INs License.
d) If a facility in the modified Library relers to a fimction or a table of data to be
supplied by an application program that uses the facility, other lhan as an
argument passed when the facility is invoked, lhen you must make a good laith
eftort to ensure lfiah in the event an applicalion does not supply such fimction
or table, the facility slill operates, and perlorms whatever pro1 of ils puq)ose
remains meaninghd.
(For example, a hmction in a library to compute square roots has a purpose that is
entirely well-defined independent of the application. ThereR)re, Subsection 2d
requires that any applicalion-supplied lunction or table used by this lunction must
be oplionah if the application does ]lot supply it, lhe square root function musl still
compute square rools.)
These requirements apply to the modified work as a whole. [f identifiable sections of
thai work are not derived from lhe Library, and can be reasonably considered
independent and separate works in themselves, then this License, and its terms, do ]lot
apply to lhose seclions when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based on the Library, lhe
distribution of the whole must be on the terms of this License, whose permissions lk)r
olher licensees extend to the entire whole, and lhus 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 to work
wrillen entirely by you; ralher, the intent is to exercise the right to control lfie
distribution of derivative or collective works based on the Library.
hi additiom mere aggB:gation of another work not based on the Library with the Library
(or with a work based on lhe Library) on a vohmle of a storage or distribulion medium
does ]lot bring the other work under lhe scope of INs License.
3. You may opt to apply the terms of lhe ordinary GNU General Public License
instead oflhis License to a given copy of the Library. To do this, you musl alter all
lfie nolices that relcr to this License, so that they refer to the ordinary GNU General
Public License, version 2, instead of to this License. (lf a newer version than
version 2 of the ordinary GNU General Public License has appemx:& then you can
specify thai version instead if you wish.) Do ]lot make any other change ill these
ilolices.
Once this change is made in a given copy, il is irreversible lor that copy, so the ordinary
GNU General Public License applies to all subsequent copies and derivative works
made lrom that copy.
This option is usefill when you wish to copy part of the code of the Library inlo a
program thai is ]lot a library.
4. You may copy and distribute the Library (or a portion or derivative of ih under
Seclion 2) in object code or execulable lorm under the terms of Sections I and 2
above provided that you accompany it with the complete corresponding machine-
readable source code, which must be distributed under the terms of Seclions 1 and 2
above on a medium customarily used R)r software inlerchange.
[f distribution of object code is made by oil)ring access to copy h'om a designated
place, then ollering equivalent access to copy lfie source code lrom the same place
satisfies the requirement to distribute the source code, even though lhird pmlies are ]lot
compelled to copy the source along with the ot)iecl code.
5. A program lhat contains no derivative of any porlion of lhe Library, but is designed
to work wilfi the Library by being compiled or linked with ih is called a "work that
uses the Library". Such a work, in isolaliom is ]lot a derivalive work of the Library,
and there*hre hdls outside the scope of this License.
However, linking a "work that uses the Library" with the Library creates an executable
lhat is a derivative of the Library (because it contains portions of the Library), rather
lhan a "work that uses the library". The executable is lhere*k)re covmvd by this License.
Section 6 states terms lk)r distribution of such executables.
When a "work that uses the Library" uses material lrom a header file that is part of the
Library, the object code *k}rlhe work may be a derivative work of the Library even
lhough the source code is nol. Whether this is true is especially significant if the work
can be linked without the Librau, or if the work is dself a library. The lhreshold fi)r
lhis to be true is not precisely defined by law.
If such an ot_iect file uses only numerical parameters, dala structure layouts and
accessors, and small macros and small inline funclions (ten lines or less in length), lhen
lhe use of lfie object file is unrestricted, regardless of whether il is legally a derivative
work. (Executables containing INs ot_iect code plus pollions of lhe Library will slill
1:111under Section b.)
Olherwise, if the work is a derivative of the Library, you may distribute the objecl code
h}r the work under the terms of Section 6. Any execulables containing that work also
lall under Section 6_ whether or not they are linked dil_ctly with lhe Library itselE
6. As an exception to lhe Sections above, you ]nay also combine or link a 'work that
uses the Library" with the Library to produce a work containing portions of the
Library, and distribute that work under terms of your choice, provided that the
terms permd modificalion of the work h}r the customer's own use and reverse
engineering *hr debugging such modifications.
You must give prominent notice with each copy of the work that the Library is used in
it and lhat the Library and its use are covered by INs License. You musl supply a copy
of lhis License. lfthe work during execution displays copyrighl notices, you musl
include the copyright notice R)r the Library among lhem, as well as a refi_Jvnce
directing lhe user to lhe copy of INs License. Also. you must do one of these lhings:
a) Accompany the work wilh the complete corresponding machine-readable
source code lk)r the Library inchlding whatever changes were used in the work
(which must be distributed under Sections 1and 2 above); and, if the work is an
executable linked with lhe Library, with the complete machineqvadable "work
thai uses the Library'2 as object code and/or source code, so that the user can
modily the Library and lhen relink to produce amodified executable conlaining
the modified Library. (It is understood that the user who changes the contents
of definilions files in the Library will nol necessarily be able to recompile the
application to use the modified definitions.)
b) Use a suitable shared library mectmnism lot linking with the Library. A
suitable mechanism is one that (1) uses at run time a copy of the library already
present on lhe user's computer system, rather than copying library lunctions
inlo the executable, and (2) will operate properly with a modified version of lhe
library, if lhe user inslalls one, as long as lhe modified version is interface-
compalible with the version lhat the work was made with.
c) Accompany the work with a written ofter, valid lot at least three years, to give
the same user the materials specified in Subsection 6a, above, lor a charge no
more lhan the cost of perfi_rming this distribulion.
d) If distribution of the work is made by oftering access to copy h'om a designated
place, oll)r equivalent access to copy the above specified materials from lhe
same place.
e) Verily that the user has ahvady received a copy of these materials or thal you
have ahvady sent this user acopy.
For an executable, lfie required lorm of lhe "work thai uses the Library" must include
any data and utility programs needed lk)r reproducing the executable lrom it. However,
as a special exception, the materials to be distributed need not include anything that is
normally distributed (ill either source or binary R)rm) with the major components
(compiler, kernel and so on) of the operaling system on which the executable runs,
unless that component ilself accompanies the executable.
[1 may happen that this requirement contradicls lhe license restrictions of other
proprietary libraries lfiat do not normally accompany the operating system. Such a
contradiction means you cannot use bolh them and lhe Library together ill an execulable
lhat you distribute.
7. You ]nay place library facilities that alv a work based on lhe Library side-by-side in
a single library together with other library facilities not covered by this License,
and distribute such a combined library, provided that lfie separate distribution of the
work based on the Library and of the other library lacilities is olherwise permitted,
and provided thai you do these two things:
a) Accompany the combined library with a copy of the same work based on the
Library, uncombined wilh any other library lacildies. This must be distributed
under the terms of lhe Seclions above.
III