iv
itscriteriaoffreedom.TheLesserGeneralPublicLicensepermitsmore
laxcriteriaforlinkingothercodewiththelibrary.
Wecallthislicensethe“Lesser”GeneralPublicLicensebecauseitdoes
Lessto protectthe user'sfreedom than theordinaryGeneralPublic
License. It also provides other free software developers Less of an
advantageovercompetingnon-freeprograms.Thesedisadvantagesare
thereasonweusetheordinaryGeneralPublicLicenseformanylibraries.
However, the Lesser license provides advantages in certain special
circumstances.
Forexample,onrareoccasions,theremaybeaspecialneedtoencourage
thewidestpossibleuseofacertainlibrary,sothatitbecomesade-facto
standard.Toachievethis,non-freeprogramsmustbeallowedtousethe
library.Amorefrequentcaseisthatafreelibrarydoesthesamejobas
widelyusednon-freelibraries.Inthiscase,thereislittletogainbylimiting
thefreelibrarytofreesoftwareonly,soweusetheLesserGeneralPublic
License.
Inothercases,permissiontouseaparticularlibraryinnon-freeprograms
enablesagreaternumberofpeopletousealargebodyoffreesoftware.
Forexample,permissiontousetheGNUCLibraryinnon-freeprograms
enablesmanymorepeopletousethewholeGNUoperatingsystem,as
wellasitsvariant,theGNU/Linuxoperatingsystem.
AlthoughtheLesserGeneralPublicLicenseisLessprotectiveoftheusers'
freedom,itdoesensurethattheuserofaprogramthatislinkedwiththe
Libraryhasthefreedomandthewherewithaltorunthatprogramusing
amodiedversionoftheLibrary.
Theprecisetermsandconditionsforcopying,distributionandmodication
follow.Paycloseattentiontothedifferencebetweena“workbasedon
thelibrary”anda“workthatusesthelibrary”.Theformercontainscode
derivedfromthelibrary,whereasthelattermustbecombinedwiththe
libraryinordertorun.
GNULESSERGENERALPUBLICLICENSE
TERMSANDCONDITIONSFORCOPYING,DISTRIBUTIONAND
MODIFICATION
0. ThisLicenseAgreementappliestoanysoftwarelibraryorother
programwhichcontainsanoticeplacedbythecopyrightholder
or other authorized party saying it may be distributed under
thetermsofthisLesserGeneralPublicLicense(alsocalled“this
License”).Eachlicenseeisaddressedas“you”.
A “library” means a collection of software functions and/or
datapreparedsoastobeconvenientlylinkedwithapplication
programs(whichusesomeofthosefunctionsanddata)toform
executables.
The“Library”,below,referstoanysuchsoftwarelibraryorwork
whichhasbeendistributedundertheseterms.A“workbased
on the Library” means either the Library or any derivative
workundercopyrightlaw:thatistosay,aworkcontainingthe
Libraryoraportionofit,eitherverbatimorwithmodications
and/or translated straightforwardly into another language.
(Hereinafter,translationisincludedwithoutlimitationintheterm
“modication”.)
“Sourcecode”foraworkmeansthepreferredformofthework
formakingmodicationstoit.Foralibrary,completesourcecode
meansallthesourcecodeforallmodulesitcontains,plusany
associatedinterfacedenitionles,plusthescriptsusedtocontrol
compilationandinstallationofthelibrary.
Activitiesotherthancopying,distributionandmodicationarenot
covered bythisLicense;theyareoutsideits scope.The actof
runningaprogramusingtheLibraryisnotrestricted,andoutput
fromsuchaprogramiscoveredonlyifitscontentsconstitutea
workbasedontheLibrary(independentoftheuseoftheLibrary
inatoolforwritingit).Whetherthatistruedependsonwhatthe
LibrarydoesandwhattheprogramthatusestheLibrarydoes.
1. You may copyand distribute verbatim copies of the Library's
completesourcecodeasyoureceiveit,inanymedium,provided
thatyouconspicuouslyandappropriatelypublishoneachcopy
anappropriatecopyrightnoticeanddisclaimerofwarranty;keep
intactallthenoticesthatrefertothisLicenseandtotheabsence
ofanywarranty;anddistributeacopyofthisLicensealongwith
theLibrary.
Youmaychargeafeeforthephysicalactoftransferringacopy,
andyoumayatyouroptionofferwarrantyprotectioninexchange
forafee.
2. YoumaymodifyyourcopyorcopiesoftheLibraryoranyportion
ofit,thusformingaworkbasedontheLibrary,andcopyand
distributesuchmodicationsorworkunderthetermsofSection
1above,providedthatyoualsomeetalloftheseconditions:
a)Themodiedworkmustitselfbeasoftwarelibrary.
b)Youmustcausethelesmodiedtocarryprominentnotices
statingthatyouchangedthelesandthedateofanychange.
c)Youmustcausethewholeoftheworktobelicensedatno
chargetoallthirdpartiesunderthetermsofthisLicense.
d)IfafacilityinthemodiedLibraryreferstoafunctionoratable
ofdatatobe suppliedbyanapplicationprogramthatuses
thefacility,otherthanasanargumentpassedwhenthefacility
isinvoked,thenyoumustmakeagoodfaithefforttoensure
that,intheeventanapplicationdoesnotsupplysuchfunction
ortable,thefacilitystilloperates,andperformswhateverpart
ofits purpose remains meaningful.(Forexample, afunction
inalibrary tocompute squarerootshas apurposethatis
entirelywell-denedindependentoftheapplication.Therefore,
Subsection2drequiresthatanyapplication-suppliedfunction
ortableusedbythisfunctionmustbeoptional:iftheapplication
doesnotsupplyit,thesquarerootfunctionmuststillcompute
squareroots.)
Theserequirementsapplytothemodiedworkasawhole.If
identiablesectionsofthatworkarenotderivedfromtheLibrary,
and can be reasonably considered independent and separate
worksinthemselves,thenthisLicense,anditsterms,donotapply
tothosesectionswhenyoudistributethemasseparateworks.
Butwhenyoudistributethesamesectionsaspartofawhole
whichisaworkbasedontheLibrary,thedistributionofthewhole
mustbeonthetermsofthisLicense,whosepermissionsforother
licenseesextendtotheentirewhole,andthustoeachandevery
partregardlessofwhowroteit.
Thus,itisnottheintentofthissectiontoclaimrightsorcontest
yourrightstoworkwrittenentirelybyyou;rather,theintentis
toexercisetherighttocontrolthedistributionofderivativeor
collectiveworksbasedontheLibrary.
Inaddition,mereaggregationofanotherworknotbasedonthe
LibrarywiththeLibrary(orwithaworkbasedontheLibrary)on
avolumeofastorageordistributionmediumdoesnotbringthe
otherworkunderthescopeofthisLicense.
3. YoumayopttoapplythetermsoftheordinaryGNUGeneral
Public License instead of this License to a given copy of the
Library.Todothis,youmustalterallthenoticesthatrefertothis
License,sothattheyrefertotheordinaryGNUGeneralPublic
License,version2,insteadoftothisLicense.(Ifanewerversion
thanversion2oftheordinaryGNUGeneralPublicLicensehas
appeared,thenyoucanspecifythatversioninsteadifyouwish.)
Donotmakeanyotherchangeinthesenotices.
Oncethischangeismadeinagivencopy,itisirreversibleforthat
copy,sotheordinaryGNUGeneralPublicLicenseappliestoall
subsequentcopiesandderivativeworksmadefromthatcopy.
Thisoptionisusefulwhenyouwishtocopypartofthecodeof
theLibraryintoaprogramthatisnotalibrary.